
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

CURLcode Curl_once_resolved(connectdata *conn,_Bool *protocol_done)

{
  Curl_dns_entry *pCVar1;
  CURLcode CVar2;
  
  pCVar1 = (conn->async).dns;
  if (pCVar1 != (Curl_dns_entry *)0x0) {
    conn->dns_entry = pCVar1;
    (conn->async).dns = (Curl_dns_entry *)0x0;
  }
  CVar2 = Curl_setup_conn(conn,protocol_done);
  if (CVar2 == CURLE_OK) {
    return CURLE_OK;
  }
  Curl_disconnect(conn->data,conn,true);
  return CVar2;
}



int FUN_00019d40(undefined4 *param_1)

{
  int iVar1;
  
  if (param_1[0x124] != 0) {
    param_1[0x13] = param_1[0x124];
    param_1[0x124] = 0;
  }
  iVar1 = FUN_0002fc7c(param_1);
  if (iVar1 == 0) {
    return 0;
  }
  FUN_0002e650(*param_1,param_1,1);
  return iVar1;
}


lui gp,0x9
addiu gp,gp,0x43d0
addu gp,gp,t9
addiu sp,sp,-0x28
lw v0,0x490(a0)
sw gp,0x10(sp)
sw s0,0x1c(sp)
or s0,a0,zero
sw ra,0x24(sp)
beq v0,zero,0x00019d74
_sw s1,0x20(sp)
sw v0,0x4c(a0)
sw zero,0x490(a0)
lw t9,-0x7f00(gp)
bal 0x0002fc7c
_or a0,s0,zero
lw gp,0x10(sp)
bne v0,zero,0x00019da4
_or s1,v0,zero
lw ra,0x24(sp)
or v0,s1,zero
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
lw t9,-0x7efc(gp)
li a2,0x1
lw a0,0x0(s0)
bal 0x0002e650
_or a1,s0,zero
or v0,s1,zero
lw ra,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x28
(translation_unit "int FUN_00019d40(undefined4 *param_1)\n\n{\n  int iVar1;\n  \n  if (param_1[0x124] != 0) {\n    param_1[0x13] = param_1[0x124];\n    param_1[0x124] = 0;\n  }\n  iVar1 = FUN_0002fc7c(param_1);\n  if (iVar1 == 0) {\n    return 0;\n  }\n  FUN_0002e650(*param_1,param_1,1);\n  return iVar1;\n}\n\n" (function_definition "int FUN_00019d40(undefined4 *param_1)\n\n{\n  int iVar1;\n  \n  if (param_1[0x124] != 0) {\n    param_1[0x13] = param_1[0x124];\n    param_1[0x124] = 0;\n  }\n  iVar1 = FUN_0002fc7c(param_1);\n  if (iVar1 == 0) {\n    return 0;\n  }\n  FUN_0002e650(*param_1,param_1,1);\n  return iVar1;\n}" primitive_type (function_declarator "FUN_00019d40(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1[0x124] != 0) {\n    param_1[0x13] = param_1[0x124];\n    param_1[0x124] = 0;\n  }\n  iVar1 = FUN_0002fc7c(param_1);\n  if (iVar1 == 0) {\n    return 0;\n  }\n  FUN_0002e650(*param_1,param_1,1);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_1[0x124] != 0) {\n    param_1[0x13] = param_1[0x124];\n    param_1[0x124] = 0;\n  }" if (parenthesized_expression "(param_1[0x124] != 0)" ( (binary_expression "param_1[0x124] != 0" (subscript_expression "param_1[0x124]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    param_1[0x13] = param_1[0x124];\n    param_1[0x124] = 0;\n  }" { (expression_statement "param_1[0x13] = param_1[0x124];" (assignment_expression "param_1[0x13] = param_1[0x124]" (subscript_expression "param_1[0x13]" identifier [ number_literal ]) = (subscript_expression "param_1[0x124]" identifier [ number_literal ])) ;) (expression_statement "param_1[0x124] = 0;" (assignment_expression "param_1[0x124] = 0" (subscript_expression "param_1[0x124]" identifier [ number_literal ]) = number_literal) ;) })) (expression_statement "iVar1 = FUN_0002fc7c(param_1);" (assignment_expression "iVar1 = FUN_0002fc7c(param_1)" identifier = (call_expression "FUN_0002fc7c(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "FUN_0002e650(*param_1,param_1,1);" (call_expression "FUN_0002e650(*param_1,param_1,1)" identifier (argument_list "(*param_1,param_1,1)" ( (pointer_expression "*param_1" * identifier) , identifier , number_literal ))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nCURLcode Curl_once_resolved(connectdata *conn,_Bool *protocol_done)\n\n{\n  Curl_dns_entry *pCVar1;\n  CURLcode CVar2;\n  \n  pCVar1 = (conn->async).dns;\n  if (pCVar1 != (Curl_dns_entry *)0x0) {\n    conn->dns_entry = pCVar1;\n    (conn->async).dns = (Curl_dns_entry *)0x0;\n  }\n  CVar2 = Curl_setup_conn(conn,protocol_done);\n  if (CVar2 == CURLE_OK) {\n    return CURLE_OK;\n  }\n  Curl_disconnect(conn->data,conn,true);\n  return CVar2;\n}\n\n" comment (function_definition "CURLcode Curl_once_resolved(connectdata *conn,_Bool *protocol_done)\n\n{\n  Curl_dns_entry *pCVar1;\n  CURLcode CVar2;\n  \n  pCVar1 = (conn->async).dns;\n  if (pCVar1 != (Curl_dns_entry *)0x0) {\n    conn->dns_entry = pCVar1;\n    (conn->async).dns = (Curl_dns_entry *)0x0;\n  }\n  CVar2 = Curl_setup_conn(conn,protocol_done);\n  if (CVar2 == CURLE_OK) {\n    return CURLE_OK;\n  }\n  Curl_disconnect(conn->data,conn,true);\n  return CVar2;\n}" type_identifier (function_declarator "Curl_once_resolved(connectdata *conn,_Bool *protocol_done)" identifier (parameter_list "(connectdata *conn,_Bool *protocol_done)" ( (parameter_declaration "connectdata *conn" type_identifier (pointer_declarator "*conn" * identifier)) , (parameter_declaration "_Bool *protocol_done" type_identifier (pointer_declarator "*protocol_done" * identifier)) ))) (compound_statement "{\n  Curl_dns_entry *pCVar1;\n  CURLcode CVar2;\n  \n  pCVar1 = (conn->async).dns;\n  if (pCVar1 != (Curl_dns_entry *)0x0) {\n    conn->dns_entry = pCVar1;\n    (conn->async).dns = (Curl_dns_entry *)0x0;\n  }\n  CVar2 = Curl_setup_conn(conn,protocol_done);\n  if (CVar2 == CURLE_OK) {\n    return CURLE_OK;\n  }\n  Curl_disconnect(conn->data,conn,true);\n  return CVar2;\n}" { (declaration "Curl_dns_entry *pCVar1;" type_identifier (pointer_declarator "*pCVar1" * identifier) ;) (declaration "CURLcode CVar2;" type_identifier identifier ;) (expression_statement "pCVar1 = (conn->async).dns;" (assignment_expression "pCVar1 = (conn->async).dns" identifier = (field_expression "(conn->async).dns" (parenthesized_expression "(conn->async)" ( (field_expression "conn->async" identifier -> field_identifier) )) . field_identifier)) ;) (if_statement "if (pCVar1 != (Curl_dns_entry *)0x0) {\n    conn->dns_entry = pCVar1;\n    (conn->async).dns = (Curl_dns_entry *)0x0;\n  }" if (parenthesized_expression "(pCVar1 != (Curl_dns_entry *)0x0)" ( (binary_expression "pCVar1 != (Curl_dns_entry *)0x0" identifier != (cast_expression "(Curl_dns_entry *)0x0" ( (type_descriptor "Curl_dns_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    conn->dns_entry = pCVar1;\n    (conn->async).dns = (Curl_dns_entry *)0x0;\n  }" { (expression_statement "conn->dns_entry = pCVar1;" (assignment_expression "conn->dns_entry = pCVar1" (field_expression "conn->dns_entry" identifier -> field_identifier) = identifier) ;) (expression_statement "(conn->async).dns = (Curl_dns_entry *)0x0;" (assignment_expression "(conn->async).dns = (Curl_dns_entry *)0x0" (field_expression "(conn->async).dns" (parenthesized_expression "(conn->async)" ( (field_expression "conn->async" identifier -> field_identifier) )) . field_identifier) = (cast_expression "(Curl_dns_entry *)0x0" ( (type_descriptor "Curl_dns_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (expression_statement "CVar2 = Curl_setup_conn(conn,protocol_done);" (assignment_expression "CVar2 = Curl_setup_conn(conn,protocol_done)" identifier = (call_expression "Curl_setup_conn(conn,protocol_done)" identifier (argument_list "(conn,protocol_done)" ( identifier , identifier )))) ;) (if_statement "if (CVar2 == CURLE_OK) {\n    return CURLE_OK;\n  }" if (parenthesized_expression "(CVar2 == CURLE_OK)" ( (binary_expression "CVar2 == CURLE_OK" identifier == identifier) )) (compound_statement "{\n    return CURLE_OK;\n  }" { (return_statement "return CURLE_OK;" return identifier ;) })) (expression_statement "Curl_disconnect(conn->data,conn,true);" (call_expression "Curl_disconnect(conn->data,conn,true)" identifier (argument_list "(conn->data,conn,true)" ( (field_expression "conn->data" identifier -> field_identifier) , identifier , true ))) ;) (return_statement "return CVar2;" return identifier ;) })))
(translation_unit "int FUN_00019d40(undefined4 *param_1)\n\n{\n  int iVar1;\n  \n  if (param_1[0x124] != 0) {\n    param_1[0x13] = param_1[0x124];\n    param_1[0x124] = 0;\n  }\n  iVar1 = FUN_0002fc7c(param_1);\n  if (iVar1 == 0) {\n    return 0;\n  }\n  FUN_0002e650(*param_1,param_1,1);\n  return iVar1;\n}\n\n" (function_definition "int FUN_00019d40(undefined4 *param_1)\n\n{\n  int iVar1;\n  \n  if (param_1[0x124] != 0) {\n    param_1[0x13] = param_1[0x124];\n    param_1[0x124] = 0;\n  }\n  iVar1 = FUN_0002fc7c(param_1);\n  if (iVar1 == 0) {\n    return 0;\n  }\n  FUN_0002e650(*param_1,param_1,1);\n  return iVar1;\n}" primitive_type (function_declarator "FUN_00019d40(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1[0x124] != 0) {\n    param_1[0x13] = param_1[0x124];\n    param_1[0x124] = 0;\n  }\n  iVar1 = FUN_0002fc7c(param_1);\n  if (iVar1 == 0) {\n    return 0;\n  }\n  FUN_0002e650(*param_1,param_1,1);\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_1[0x124] != 0) {\n    param_1[0x13] = param_1[0x124];\n    param_1[0x124] = 0;\n  }" if (parenthesized_expression "(param_1[0x124] != 0)" ( (binary_expression "param_1[0x124] != 0" (subscript_expression "param_1[0x124]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n    param_1[0x13] = param_1[0x124];\n    param_1[0x124] = 0;\n  }" { (expression_statement "param_1[0x13] = param_1[0x124];" (assignment_expression "param_1[0x13] = param_1[0x124]" (subscript_expression "param_1[0x13]" identifier [ number_literal ]) = (subscript_expression "param_1[0x124]" identifier [ number_literal ])) ;) (expression_statement "param_1[0x124] = 0;" (assignment_expression "param_1[0x124] = 0" (subscript_expression "param_1[0x124]" identifier [ number_literal ]) = number_literal) ;) })) (expression_statement "iVar1 = FUN_0002fc7c(param_1);" (assignment_expression "iVar1 = FUN_0002fc7c(param_1)" identifier = (call_expression "FUN_0002fc7c(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (if_statement "if (iVar1 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "FUN_0002e650(*param_1,param_1,1);" (call_expression "FUN_0002e650(*param_1,param_1,1)" identifier (argument_list "(*param_1,param_1,1)" ( (pointer_expression "*param_1" * identifier) , identifier , number_literal ))) ;) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT , LIT ))) ;) (return_statement return IDENT ;) })))
(function_definition "int FUN_00019d40(undefined4 *param_1)\n\n{\n  int iVar1;\n  \n  if (param_1[0x124] != 0) {\n    param_1[0x13] = param_1[0x124];\n    param_1[0x124] = 0;\n  }\n  iVar1 = FUN_0002fc7c(param_1);\n  if (iVar1 == 0) {\n    return 0;\n  }\n  FUN_0002e650(*param_1,param_1,1);\n  return iVar1;\n}" (primitive_type "int") (function_declarator "FUN_00019d40(undefined4 *param_1)" (identifier "FUN_00019d40") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if (param_1[0x124] != 0) {\n    param_1[0x13] = param_1[0x124];\n    param_1[0x124] = 0;\n  }\n  iVar1 = FUN_0002fc7c(param_1);\n  if (iVar1 == 0) {\n    return 0;\n  }\n  FUN_0002e650(*param_1,param_1,1);\n  return iVar1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (param_1[0x124] != 0) {\n    param_1[0x13] = param_1[0x124];\n    param_1[0x124] = 0;\n  }" (if "if") (parenthesized_expression "(param_1[0x124] != 0)" (( "(") (binary_expression "param_1[0x124] != 0" (subscript_expression "param_1[0x124]" (identifier "param_1") ([ "[") (number_literal "0x124") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    param_1[0x13] = param_1[0x124];\n    param_1[0x124] = 0;\n  }" ({ "{") (expression_statement "param_1[0x13] = param_1[0x124];" (assignment_expression "param_1[0x13] = param_1[0x124]" (subscript_expression "param_1[0x13]" (identifier "param_1") ([ "[") (number_literal "0x13") (] "]")) (= "=") (subscript_expression "param_1[0x124]" (identifier "param_1") ([ "[") (number_literal "0x124") (] "]"))) (; ";")) (expression_statement "param_1[0x124] = 0;" (assignment_expression "param_1[0x124] = 0" (subscript_expression "param_1[0x124]" (identifier "param_1") ([ "[") (number_literal "0x124") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "iVar1 = FUN_0002fc7c(param_1);" (assignment_expression "iVar1 = FUN_0002fc7c(param_1)" (identifier "iVar1") (= "=") (call_expression "FUN_0002fc7c(param_1)" (identifier "FUN_0002fc7c") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "FUN_0002e650(*param_1,param_1,1);" (call_expression "FUN_0002e650(*param_1,param_1,1)" (identifier "FUN_0002e650") (argument_list "(*param_1,param_1,1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (identifier "param_1") (, ",") (number_literal "1") () ")"))) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier) (number_literal)))) (return_statement (identifier)))))

int MASKED(undefined4 *param_1)

{
  int iVar1;
  
  if (param_1[0x124] != 0) {
    param_1[0x13] = param_1[0x124];
    param_1[0x124] = 0;
  }
  iVar1 = FUN_0002fc7c(param_1);
  if (iVar1 == 0) {
    return 0;
  }
  FUN_0002e650(*param_1,param_1,1);
  return iVar1;
}

