
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

CURLcode Curl_addrinfo_callback(connectdata *conn,int status,Curl_addrinfo *ai)

{
  Curl_easy *data;
  Curl_dns_entry *pCVar1;
  CURLcode CVar2;
  
  (conn->async).status = status;
  if (status == 0) {
    if (ai == (Curl_addrinfo *)0x0) {
      pCVar1 = (Curl_dns_entry *)0x0;
      CVar2 = CURLE_OUT_OF_MEMORY;
    }
    else {
      data = conn->data;
      if (data->share != (Curl_share *)0x0) {
        Curl_share_lock(data,CURL_LOCK_DATA_DNS,CURL_LOCK_ACCESS_SINGLE);
      }
      CVar2 = CURLE_OK;
      pCVar1 = Curl_cache_addr(data,ai,(conn->async).hostname,(conn->async).port);
      if (pCVar1 == (Curl_dns_entry *)0x0) {
        CVar2 = CURLE_OUT_OF_MEMORY;
        Curl_freeaddrinfo(ai);
      }
      if (data->share != (Curl_share *)0x0) {
        Curl_share_unlock(data,CURL_LOCK_DATA_DNS);
      }
    }
  }
  else {
    CVar2 = CURLE_OK;
    pCVar1 = (Curl_dns_entry *)0x0;
  }
  (conn->async).dns = pCVar1;
  (conn->async).done = true;
  return CVar2;
}



undefined4 __regparm2 FUN_0004c760(undefined4 param_1,undefined4 param_2,int param_3,int param_4)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  int *unaff_retaddr;
  
  entry(param_2,0x4c769);
  unaff_retaddr[0x124] = param_3;
  if (param_3 == 0) {
    if (param_4 == 0) {
      iVar2 = 0;
      uVar3 = 0x1b;
    }
    else {
      iVar1 = *unaff_retaddr;
      if (*(int *)(iVar1 + 0x8c) != 0) {
        FUN_0004b730(iVar1,3,2);
      }
      uVar3 = 0;
      iVar2 = FUN_0001b880(iVar1,param_4,unaff_retaddr[0x120],unaff_retaddr[0x121]);
      if (iVar2 == 0) {
        uVar3 = 0x1b;
        FUN_000564d0(param_4);
      }
      if (*(int *)(iVar1 + 0x8c) != 0) {
        FUN_0004b790(iVar1,3);
      }
    }
  }
  else {
    uVar3 = 0;
    iVar2 = 0;
  }
  unaff_retaddr[0x122] = iVar2;
  *(undefined1 *)(unaff_retaddr + 0x123) = 1;
  return uVar3;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00019ed0
ADD EBX,0x6a077
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x30]
MOV EAX,dword ptr [ESP + 0x34]
MOV dword ptr [ESI + 0x490],EAX
TEST EAX,EAX
JNZ 0x0004c800
MOV EDI,dword ptr [ESP + 0x38]
TEST EDI,EDI
JZ 0x0004c820
MOV EDX,dword ptr [ESI]
MOV ECX,dword ptr [EDX + 0x8c]
TEST ECX,ECX
JZ 0x0004c7b4
SUB ESP,0x4
PUSH 0x2
PUSH 0x3
PUSH EDX
MOV dword ptr [ESP + 0x1c],EDX
CALL 0x0004b730
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
PUSH dword ptr [ESI + 0x484]
XOR EBP,EBP
PUSH dword ptr [ESI + 0x480]
PUSH dword ptr [ESP + 0x40]
PUSH EDX
MOV dword ptr [ESP + 0x1c],EDX
CALL 0x0001b880
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
TEST EAX,EAX
MOV EDI,EAX
JZ 0x0004c830
MOV EAX,dword ptr [EDX + 0x8c]
TEST EAX,EAX
JZ 0x0004c804
SUB ESP,0x8
PUSH 0x3
PUSH EDX
CALL 0x0004b790
ADD ESP,0x10
JMP 0x0004c804
XOR EBP,EBP
XOR EDI,EDI
MOV dword ptr [ESI + 0x488],EDI
MOV EAX,EBP
MOV byte ptr [ESI + 0x48c],0x1
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
XOR EDI,EDI
MOV EBP,0x1b
JMP 0x0004c804
SUB ESP,0xc
MOV EBP,0x1b
PUSH dword ptr [ESP + 0x44]
CALL 0x000564d0
ADD ESP,0x10
MOV EDX,dword ptr [ESP + 0xc]
JMP 0x0004c7dd
(translation_unit "undefined4 __regparm2 FUN_0004c760(undefined4 param_1,undefined4 param_2,int param_3,int param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *unaff_retaddr;\n  \n  entry(param_2,0x4c769);\n  unaff_retaddr[0x124] = param_3;\n  if (param_3 == 0) {\n    if (param_4 == 0) {\n      iVar2 = 0;\n      uVar3 = 0x1b;\n    }\n    else {\n      iVar1 = *unaff_retaddr;\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b730(iVar1,3,2);\n      }\n      uVar3 = 0;\n      iVar2 = FUN_0001b880(iVar1,param_4,unaff_retaddr[0x120],unaff_retaddr[0x121]);\n      if (iVar2 == 0) {\n        uVar3 = 0x1b;\n        FUN_000564d0(param_4);\n      }\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b790(iVar1,3);\n      }\n    }\n  }\n  else {\n    uVar3 = 0;\n    iVar2 = 0;\n  }\n  unaff_retaddr[0x122] = iVar2;\n  *(undefined1 *)(unaff_retaddr + 0x123) = 1;\n  return uVar3;\n}\n\n" (function_definition "undefined4 __regparm2 FUN_0004c760(undefined4 param_1,undefined4 param_2,int param_3,int param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *unaff_retaddr;\n  \n  entry(param_2,0x4c769);\n  unaff_retaddr[0x124] = param_3;\n  if (param_3 == 0) {\n    if (param_4 == 0) {\n      iVar2 = 0;\n      uVar3 = 0x1b;\n    }\n    else {\n      iVar1 = *unaff_retaddr;\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b730(iVar1,3,2);\n      }\n      uVar3 = 0;\n      iVar2 = FUN_0001b880(iVar1,param_4,unaff_retaddr[0x120],unaff_retaddr[0x121]);\n      if (iVar2 == 0) {\n        uVar3 = 0x1b;\n        FUN_000564d0(param_4);\n      }\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b790(iVar1,3);\n      }\n    }\n  }\n  else {\n    uVar3 = 0;\n    iVar2 = 0;\n  }\n  unaff_retaddr[0x122] = iVar2;\n  *(undefined1 *)(unaff_retaddr + 0x123) = 1;\n  return uVar3;\n}" type_identifier (ERROR "__regparm2" identifier) (function_declarator "FUN_0004c760(undefined4 param_1,undefined4 param_2,int param_3,int param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3,int param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *unaff_retaddr;\n  \n  entry(param_2,0x4c769);\n  unaff_retaddr[0x124] = param_3;\n  if (param_3 == 0) {\n    if (param_4 == 0) {\n      iVar2 = 0;\n      uVar3 = 0x1b;\n    }\n    else {\n      iVar1 = *unaff_retaddr;\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b730(iVar1,3,2);\n      }\n      uVar3 = 0;\n      iVar2 = FUN_0001b880(iVar1,param_4,unaff_retaddr[0x120],unaff_retaddr[0x121]);\n      if (iVar2 == 0) {\n        uVar3 = 0x1b;\n        FUN_000564d0(param_4);\n      }\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b790(iVar1,3);\n      }\n    }\n  }\n  else {\n    uVar3 = 0;\n    iVar2 = 0;\n  }\n  unaff_retaddr[0x122] = iVar2;\n  *(undefined1 *)(unaff_retaddr + 0x123) = 1;\n  return uVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int *unaff_retaddr;" primitive_type (pointer_declarator "*unaff_retaddr" * identifier) ;) (expression_statement "entry(param_2,0x4c769);" (call_expression "entry(param_2,0x4c769)" identifier (argument_list "(param_2,0x4c769)" ( identifier , number_literal ))) ;) (expression_statement "unaff_retaddr[0x124] = param_3;" (assignment_expression "unaff_retaddr[0x124] = param_3" (subscript_expression "unaff_retaddr[0x124]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (param_3 == 0) {\n    if (param_4 == 0) {\n      iVar2 = 0;\n      uVar3 = 0x1b;\n    }\n    else {\n      iVar1 = *unaff_retaddr;\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b730(iVar1,3,2);\n      }\n      uVar3 = 0;\n      iVar2 = FUN_0001b880(iVar1,param_4,unaff_retaddr[0x120],unaff_retaddr[0x121]);\n      if (iVar2 == 0) {\n        uVar3 = 0x1b;\n        FUN_000564d0(param_4);\n      }\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b790(iVar1,3);\n      }\n    }\n  }\n  else {\n    uVar3 = 0;\n    iVar2 = 0;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    if (param_4 == 0) {\n      iVar2 = 0;\n      uVar3 = 0x1b;\n    }\n    else {\n      iVar1 = *unaff_retaddr;\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b730(iVar1,3,2);\n      }\n      uVar3 = 0;\n      iVar2 = FUN_0001b880(iVar1,param_4,unaff_retaddr[0x120],unaff_retaddr[0x121]);\n      if (iVar2 == 0) {\n        uVar3 = 0x1b;\n        FUN_000564d0(param_4);\n      }\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b790(iVar1,3);\n      }\n    }\n  }" { (if_statement "if (param_4 == 0) {\n      iVar2 = 0;\n      uVar3 = 0x1b;\n    }\n    else {\n      iVar1 = *unaff_retaddr;\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b730(iVar1,3,2);\n      }\n      uVar3 = 0;\n      iVar2 = FUN_0001b880(iVar1,param_4,unaff_retaddr[0x120],unaff_retaddr[0x121]);\n      if (iVar2 == 0) {\n        uVar3 = 0x1b;\n        FUN_000564d0(param_4);\n      }\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b790(iVar1,3);\n      }\n    }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar2 = 0;\n      uVar3 = 0x1b;\n    }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "uVar3 = 0x1b;" (assignment_expression "uVar3 = 0x1b" identifier = number_literal) ;) }) (else_clause "else {\n      iVar1 = *unaff_retaddr;\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b730(iVar1,3,2);\n      }\n      uVar3 = 0;\n      iVar2 = FUN_0001b880(iVar1,param_4,unaff_retaddr[0x120],unaff_retaddr[0x121]);\n      if (iVar2 == 0) {\n        uVar3 = 0x1b;\n        FUN_000564d0(param_4);\n      }\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b790(iVar1,3);\n      }\n    }" else (compound_statement "{\n      iVar1 = *unaff_retaddr;\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b730(iVar1,3,2);\n      }\n      uVar3 = 0;\n      iVar2 = FUN_0001b880(iVar1,param_4,unaff_retaddr[0x120],unaff_retaddr[0x121]);\n      if (iVar2 == 0) {\n        uVar3 = 0x1b;\n        FUN_000564d0(param_4);\n      }\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b790(iVar1,3);\n      }\n    }" { (expression_statement "iVar1 = *unaff_retaddr;" (assignment_expression "iVar1 = *unaff_retaddr" identifier = (pointer_expression "*unaff_retaddr" * identifier)) ;) (if_statement "if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b730(iVar1,3,2);\n      }" if (parenthesized_expression "(*(int *)(iVar1 + 0x8c) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x8c) != 0" (pointer_expression "*(int *)(iVar1 + 0x8c)" * (cast_expression "(int *)(iVar1 + 0x8c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x8c)" ( (binary_expression "iVar1 + 0x8c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        FUN_0004b730(iVar1,3,2);\n      }" { (expression_statement "FUN_0004b730(iVar1,3,2);" (call_expression "FUN_0004b730(iVar1,3,2)" identifier (argument_list "(iVar1,3,2)" ( identifier , number_literal , number_literal ))) ;) })) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = FUN_0001b880(iVar1,param_4,unaff_retaddr[0x120],unaff_retaddr[0x121]);" (assignment_expression "iVar2 = FUN_0001b880(iVar1,param_4,unaff_retaddr[0x120],unaff_retaddr[0x121])" identifier = (call_expression "FUN_0001b880(iVar1,param_4,unaff_retaddr[0x120],unaff_retaddr[0x121])" identifier (argument_list "(iVar1,param_4,unaff_retaddr[0x120],unaff_retaddr[0x121])" ( identifier , identifier , (subscript_expression "unaff_retaddr[0x120]" identifier [ number_literal ]) , (subscript_expression "unaff_retaddr[0x121]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar2 == 0) {\n        uVar3 = 0x1b;\n        FUN_000564d0(param_4);\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar3 = 0x1b;\n        FUN_000564d0(param_4);\n      }" { (expression_statement "uVar3 = 0x1b;" (assignment_expression "uVar3 = 0x1b" identifier = number_literal) ;) (expression_statement "FUN_000564d0(param_4);" (call_expression "FUN_000564d0(param_4)" identifier (argument_list "(param_4)" ( identifier ))) ;) })) (if_statement "if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b790(iVar1,3);\n      }" if (parenthesized_expression "(*(int *)(iVar1 + 0x8c) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x8c) != 0" (pointer_expression "*(int *)(iVar1 + 0x8c)" * (cast_expression "(int *)(iVar1 + 0x8c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x8c)" ( (binary_expression "iVar1 + 0x8c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        FUN_0004b790(iVar1,3);\n      }" { (expression_statement "FUN_0004b790(iVar1,3);" (call_expression "FUN_0004b790(iVar1,3)" identifier (argument_list "(iVar1,3)" ( identifier , number_literal ))) ;) })) }))) }) (else_clause "else {\n    uVar3 = 0;\n    iVar2 = 0;\n  }" else (compound_statement "{\n    uVar3 = 0;\n    iVar2 = 0;\n  }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) }))) (expression_statement "unaff_retaddr[0x122] = iVar2;" (assignment_expression "unaff_retaddr[0x122] = iVar2" (subscript_expression "unaff_retaddr[0x122]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined1 *)(unaff_retaddr + 0x123) = 1;" (assignment_expression "*(undefined1 *)(unaff_retaddr + 0x123) = 1" (pointer_expression "*(undefined1 *)(unaff_retaddr + 0x123)" * (cast_expression "(undefined1 *)(unaff_retaddr + 0x123)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x123)" ( (binary_expression "unaff_retaddr + 0x123" identifier + number_literal) )))) = number_literal) ;) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nCURLcode Curl_addrinfo_callback(connectdata *conn,int status,Curl_addrinfo *ai)\n\n{\n  Curl_easy *data;\n  Curl_dns_entry *pCVar1;\n  CURLcode CVar2;\n  \n  (conn->async).status = status;\n  if (status == 0) {\n    if (ai == (Curl_addrinfo *)0x0) {\n      pCVar1 = (Curl_dns_entry *)0x0;\n      CVar2 = CURLE_OUT_OF_MEMORY;\n    }\n    else {\n      data = conn->data;\n      if (data->share != (Curl_share *)0x0) {\n        Curl_share_lock(data,CURL_LOCK_DATA_DNS,CURL_LOCK_ACCESS_SINGLE);\n      }\n      CVar2 = CURLE_OK;\n      pCVar1 = Curl_cache_addr(data,ai,(conn->async).hostname,(conn->async).port);\n      if (pCVar1 == (Curl_dns_entry *)0x0) {\n        CVar2 = CURLE_OUT_OF_MEMORY;\n        Curl_freeaddrinfo(ai);\n      }\n      if (data->share != (Curl_share *)0x0) {\n        Curl_share_unlock(data,CURL_LOCK_DATA_DNS);\n      }\n    }\n  }\n  else {\n    CVar2 = CURLE_OK;\n    pCVar1 = (Curl_dns_entry *)0x0;\n  }\n  (conn->async).dns = pCVar1;\n  (conn->async).done = true;\n  return CVar2;\n}\n\n" comment comment comment (function_definition "CURLcode Curl_addrinfo_callback(connectdata *conn,int status,Curl_addrinfo *ai)\n\n{\n  Curl_easy *data;\n  Curl_dns_entry *pCVar1;\n  CURLcode CVar2;\n  \n  (conn->async).status = status;\n  if (status == 0) {\n    if (ai == (Curl_addrinfo *)0x0) {\n      pCVar1 = (Curl_dns_entry *)0x0;\n      CVar2 = CURLE_OUT_OF_MEMORY;\n    }\n    else {\n      data = conn->data;\n      if (data->share != (Curl_share *)0x0) {\n        Curl_share_lock(data,CURL_LOCK_DATA_DNS,CURL_LOCK_ACCESS_SINGLE);\n      }\n      CVar2 = CURLE_OK;\n      pCVar1 = Curl_cache_addr(data,ai,(conn->async).hostname,(conn->async).port);\n      if (pCVar1 == (Curl_dns_entry *)0x0) {\n        CVar2 = CURLE_OUT_OF_MEMORY;\n        Curl_freeaddrinfo(ai);\n      }\n      if (data->share != (Curl_share *)0x0) {\n        Curl_share_unlock(data,CURL_LOCK_DATA_DNS);\n      }\n    }\n  }\n  else {\n    CVar2 = CURLE_OK;\n    pCVar1 = (Curl_dns_entry *)0x0;\n  }\n  (conn->async).dns = pCVar1;\n  (conn->async).done = true;\n  return CVar2;\n}" type_identifier (function_declarator "Curl_addrinfo_callback(connectdata *conn,int status,Curl_addrinfo *ai)" identifier (parameter_list "(connectdata *conn,int status,Curl_addrinfo *ai)" ( (parameter_declaration "connectdata *conn" type_identifier (pointer_declarator "*conn" * identifier)) , (parameter_declaration "int status" primitive_type identifier) , (parameter_declaration "Curl_addrinfo *ai" type_identifier (pointer_declarator "*ai" * identifier)) ))) (compound_statement "{\n  Curl_easy *data;\n  Curl_dns_entry *pCVar1;\n  CURLcode CVar2;\n  \n  (conn->async).status = status;\n  if (status == 0) {\n    if (ai == (Curl_addrinfo *)0x0) {\n      pCVar1 = (Curl_dns_entry *)0x0;\n      CVar2 = CURLE_OUT_OF_MEMORY;\n    }\n    else {\n      data = conn->data;\n      if (data->share != (Curl_share *)0x0) {\n        Curl_share_lock(data,CURL_LOCK_DATA_DNS,CURL_LOCK_ACCESS_SINGLE);\n      }\n      CVar2 = CURLE_OK;\n      pCVar1 = Curl_cache_addr(data,ai,(conn->async).hostname,(conn->async).port);\n      if (pCVar1 == (Curl_dns_entry *)0x0) {\n        CVar2 = CURLE_OUT_OF_MEMORY;\n        Curl_freeaddrinfo(ai);\n      }\n      if (data->share != (Curl_share *)0x0) {\n        Curl_share_unlock(data,CURL_LOCK_DATA_DNS);\n      }\n    }\n  }\n  else {\n    CVar2 = CURLE_OK;\n    pCVar1 = (Curl_dns_entry *)0x0;\n  }\n  (conn->async).dns = pCVar1;\n  (conn->async).done = true;\n  return CVar2;\n}" { (declaration "Curl_easy *data;" type_identifier (pointer_declarator "*data" * identifier) ;) (declaration "Curl_dns_entry *pCVar1;" type_identifier (pointer_declarator "*pCVar1" * identifier) ;) (declaration "CURLcode CVar2;" type_identifier identifier ;) (expression_statement "(conn->async).status = status;" (assignment_expression "(conn->async).status = status" (field_expression "(conn->async).status" (parenthesized_expression "(conn->async)" ( (field_expression "conn->async" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (if_statement "if (status == 0) {\n    if (ai == (Curl_addrinfo *)0x0) {\n      pCVar1 = (Curl_dns_entry *)0x0;\n      CVar2 = CURLE_OUT_OF_MEMORY;\n    }\n    else {\n      data = conn->data;\n      if (data->share != (Curl_share *)0x0) {\n        Curl_share_lock(data,CURL_LOCK_DATA_DNS,CURL_LOCK_ACCESS_SINGLE);\n      }\n      CVar2 = CURLE_OK;\n      pCVar1 = Curl_cache_addr(data,ai,(conn->async).hostname,(conn->async).port);\n      if (pCVar1 == (Curl_dns_entry *)0x0) {\n        CVar2 = CURLE_OUT_OF_MEMORY;\n        Curl_freeaddrinfo(ai);\n      }\n      if (data->share != (Curl_share *)0x0) {\n        Curl_share_unlock(data,CURL_LOCK_DATA_DNS);\n      }\n    }\n  }\n  else {\n    CVar2 = CURLE_OK;\n    pCVar1 = (Curl_dns_entry *)0x0;\n  }" if (parenthesized_expression "(status == 0)" ( (binary_expression "status == 0" identifier == number_literal) )) (compound_statement "{\n    if (ai == (Curl_addrinfo *)0x0) {\n      pCVar1 = (Curl_dns_entry *)0x0;\n      CVar2 = CURLE_OUT_OF_MEMORY;\n    }\n    else {\n      data = conn->data;\n      if (data->share != (Curl_share *)0x0) {\n        Curl_share_lock(data,CURL_LOCK_DATA_DNS,CURL_LOCK_ACCESS_SINGLE);\n      }\n      CVar2 = CURLE_OK;\n      pCVar1 = Curl_cache_addr(data,ai,(conn->async).hostname,(conn->async).port);\n      if (pCVar1 == (Curl_dns_entry *)0x0) {\n        CVar2 = CURLE_OUT_OF_MEMORY;\n        Curl_freeaddrinfo(ai);\n      }\n      if (data->share != (Curl_share *)0x0) {\n        Curl_share_unlock(data,CURL_LOCK_DATA_DNS);\n      }\n    }\n  }" { (if_statement "if (ai == (Curl_addrinfo *)0x0) {\n      pCVar1 = (Curl_dns_entry *)0x0;\n      CVar2 = CURLE_OUT_OF_MEMORY;\n    }\n    else {\n      data = conn->data;\n      if (data->share != (Curl_share *)0x0) {\n        Curl_share_lock(data,CURL_LOCK_DATA_DNS,CURL_LOCK_ACCESS_SINGLE);\n      }\n      CVar2 = CURLE_OK;\n      pCVar1 = Curl_cache_addr(data,ai,(conn->async).hostname,(conn->async).port);\n      if (pCVar1 == (Curl_dns_entry *)0x0) {\n        CVar2 = CURLE_OUT_OF_MEMORY;\n        Curl_freeaddrinfo(ai);\n      }\n      if (data->share != (Curl_share *)0x0) {\n        Curl_share_unlock(data,CURL_LOCK_DATA_DNS);\n      }\n    }" if (parenthesized_expression "(ai == (Curl_addrinfo *)0x0)" ( (binary_expression "ai == (Curl_addrinfo *)0x0" identifier == (cast_expression "(Curl_addrinfo *)0x0" ( (type_descriptor "Curl_addrinfo *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pCVar1 = (Curl_dns_entry *)0x0;\n      CVar2 = CURLE_OUT_OF_MEMORY;\n    }" { (expression_statement "pCVar1 = (Curl_dns_entry *)0x0;" (assignment_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)) ;) (expression_statement "CVar2 = CURLE_OUT_OF_MEMORY;" (assignment_expression "CVar2 = CURLE_OUT_OF_MEMORY" identifier = identifier) ;) }) (else_clause "else {\n      data = conn->data;\n      if (data->share != (Curl_share *)0x0) {\n        Curl_share_lock(data,CURL_LOCK_DATA_DNS,CURL_LOCK_ACCESS_SINGLE);\n      }\n      CVar2 = CURLE_OK;\n      pCVar1 = Curl_cache_addr(data,ai,(conn->async).hostname,(conn->async).port);\n      if (pCVar1 == (Curl_dns_entry *)0x0) {\n        CVar2 = CURLE_OUT_OF_MEMORY;\n        Curl_freeaddrinfo(ai);\n      }\n      if (data->share != (Curl_share *)0x0) {\n        Curl_share_unlock(data,CURL_LOCK_DATA_DNS);\n      }\n    }" else (compound_statement "{\n      data = conn->data;\n      if (data->share != (Curl_share *)0x0) {\n        Curl_share_lock(data,CURL_LOCK_DATA_DNS,CURL_LOCK_ACCESS_SINGLE);\n      }\n      CVar2 = CURLE_OK;\n      pCVar1 = Curl_cache_addr(data,ai,(conn->async).hostname,(conn->async).port);\n      if (pCVar1 == (Curl_dns_entry *)0x0) {\n        CVar2 = CURLE_OUT_OF_MEMORY;\n        Curl_freeaddrinfo(ai);\n      }\n      if (data->share != (Curl_share *)0x0) {\n        Curl_share_unlock(data,CURL_LOCK_DATA_DNS);\n      }\n    }" { (expression_statement "data = conn->data;" (assignment_expression "data = conn->data" identifier = (field_expression "conn->data" identifier -> field_identifier)) ;) (if_statement "if (data->share != (Curl_share *)0x0) {\n        Curl_share_lock(data,CURL_LOCK_DATA_DNS,CURL_LOCK_ACCESS_SINGLE);\n      }" if (parenthesized_expression "(data->share != (Curl_share *)0x0)" ( (binary_expression "data->share != (Curl_share *)0x0" (field_expression "data->share" identifier -> field_identifier) != (cast_expression "(Curl_share *)0x0" ( (type_descriptor "Curl_share *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        Curl_share_lock(data,CURL_LOCK_DATA_DNS,CURL_LOCK_ACCESS_SINGLE);\n      }" { (expression_statement "Curl_share_lock(data,CURL_LOCK_DATA_DNS,CURL_LOCK_ACCESS_SINGLE);" (call_expression "Curl_share_lock(data,CURL_LOCK_DATA_DNS,CURL_LOCK_ACCESS_SINGLE)" identifier (argument_list "(data,CURL_LOCK_DATA_DNS,CURL_LOCK_ACCESS_SINGLE)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "CVar2 = CURLE_OK;" (assignment_expression "CVar2 = CURLE_OK" identifier = identifier) ;) (expression_statement "pCVar1 = Curl_cache_addr(data,ai,(conn->async).hostname,(conn->async).port);" (assignment_expression "pCVar1 = Curl_cache_addr(data,ai,(conn->async).hostname,(conn->async).port)" identifier = (call_expression "Curl_cache_addr(data,ai,(conn->async).hostname,(conn->async).port)" identifier (argument_list "(data,ai,(conn->async).hostname,(conn->async).port)" ( identifier , identifier , (field_expression "(conn->async).hostname" (parenthesized_expression "(conn->async)" ( (field_expression "conn->async" identifier -> field_identifier) )) . field_identifier) , (field_expression "(conn->async).port" (parenthesized_expression "(conn->async)" ( (field_expression "conn->async" identifier -> field_identifier) )) . field_identifier) )))) ;) (if_statement "if (pCVar1 == (Curl_dns_entry *)0x0) {\n        CVar2 = CURLE_OUT_OF_MEMORY;\n        Curl_freeaddrinfo(ai);\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        CVar2 = CURLE_OUT_OF_MEMORY;\n        Curl_freeaddrinfo(ai);\n      }" { (expression_statement "CVar2 = CURLE_OUT_OF_MEMORY;" (assignment_expression "CVar2 = CURLE_OUT_OF_MEMORY" identifier = identifier) ;) (expression_statement "Curl_freeaddrinfo(ai);" (call_expression "Curl_freeaddrinfo(ai)" identifier (argument_list "(ai)" ( identifier ))) ;) })) (if_statement "if (data->share != (Curl_share *)0x0) {\n        Curl_share_unlock(data,CURL_LOCK_DATA_DNS);\n      }" if (parenthesized_expression "(data->share != (Curl_share *)0x0)" ( (binary_expression "data->share != (Curl_share *)0x0" (field_expression "data->share" identifier -> field_identifier) != (cast_expression "(Curl_share *)0x0" ( (type_descriptor "Curl_share *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        Curl_share_unlock(data,CURL_LOCK_DATA_DNS);\n      }" { (expression_statement "Curl_share_unlock(data,CURL_LOCK_DATA_DNS);" (call_expression "Curl_share_unlock(data,CURL_LOCK_DATA_DNS)" identifier (argument_list "(data,CURL_LOCK_DATA_DNS)" ( identifier , identifier ))) ;) })) }))) }) (else_clause "else {\n    CVar2 = CURLE_OK;\n    pCVar1 = (Curl_dns_entry *)0x0;\n  }" else (compound_statement "{\n    CVar2 = CURLE_OK;\n    pCVar1 = (Curl_dns_entry *)0x0;\n  }" { (expression_statement "CVar2 = CURLE_OK;" (assignment_expression "CVar2 = CURLE_OK" identifier = identifier) ;) (expression_statement "pCVar1 = (Curl_dns_entry *)0x0;" (assignment_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)) ;) }))) (expression_statement "(conn->async).dns = pCVar1;" (assignment_expression "(conn->async).dns = pCVar1" (field_expression "(conn->async).dns" (parenthesized_expression "(conn->async)" ( (field_expression "conn->async" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "(conn->async).done = true;" (assignment_expression "(conn->async).done = true" (field_expression "(conn->async).done" (parenthesized_expression "(conn->async)" ( (field_expression "conn->async" identifier -> field_identifier) )) . field_identifier) = true) ;) (return_statement "return CVar2;" return identifier ;) })))
(translation_unit "undefined4 __regparm2 FUN_0004c760(undefined4 param_1,undefined4 param_2,int param_3,int param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *unaff_retaddr;\n  \n  entry(param_2,0x4c769);\n  unaff_retaddr[0x124] = param_3;\n  if (param_3 == 0) {\n    if (param_4 == 0) {\n      iVar2 = 0;\n      uVar3 = 0x1b;\n    }\n    else {\n      iVar1 = *unaff_retaddr;\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b730(iVar1,3,2);\n      }\n      uVar3 = 0;\n      iVar2 = FUN_0001b880(iVar1,param_4,unaff_retaddr[0x120],unaff_retaddr[0x121]);\n      if (iVar2 == 0) {\n        uVar3 = 0x1b;\n        FUN_000564d0(param_4);\n      }\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b790(iVar1,3);\n      }\n    }\n  }\n  else {\n    uVar3 = 0;\n    iVar2 = 0;\n  }\n  unaff_retaddr[0x122] = iVar2;\n  *(undefined1 *)(unaff_retaddr + 0x123) = 1;\n  return uVar3;\n}\n\n" (function_definition "undefined4 __regparm2 FUN_0004c760(undefined4 param_1,undefined4 param_2,int param_3,int param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *unaff_retaddr;\n  \n  entry(param_2,0x4c769);\n  unaff_retaddr[0x124] = param_3;\n  if (param_3 == 0) {\n    if (param_4 == 0) {\n      iVar2 = 0;\n      uVar3 = 0x1b;\n    }\n    else {\n      iVar1 = *unaff_retaddr;\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b730(iVar1,3,2);\n      }\n      uVar3 = 0;\n      iVar2 = FUN_0001b880(iVar1,param_4,unaff_retaddr[0x120],unaff_retaddr[0x121]);\n      if (iVar2 == 0) {\n        uVar3 = 0x1b;\n        FUN_000564d0(param_4);\n      }\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b790(iVar1,3);\n      }\n    }\n  }\n  else {\n    uVar3 = 0;\n    iVar2 = 0;\n  }\n  unaff_retaddr[0x122] = iVar2;\n  *(undefined1 *)(unaff_retaddr + 0x123) = 1;\n  return uVar3;\n}" type_identifier (ERROR "__regparm2" identifier) (function_declarator "FUN_0004c760(undefined4 param_1,undefined4 param_2,int param_3,int param_4)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3,int param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *unaff_retaddr;\n  \n  entry(param_2,0x4c769);\n  unaff_retaddr[0x124] = param_3;\n  if (param_3 == 0) {\n    if (param_4 == 0) {\n      iVar2 = 0;\n      uVar3 = 0x1b;\n    }\n    else {\n      iVar1 = *unaff_retaddr;\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b730(iVar1,3,2);\n      }\n      uVar3 = 0;\n      iVar2 = FUN_0001b880(iVar1,param_4,unaff_retaddr[0x120],unaff_retaddr[0x121]);\n      if (iVar2 == 0) {\n        uVar3 = 0x1b;\n        FUN_000564d0(param_4);\n      }\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b790(iVar1,3);\n      }\n    }\n  }\n  else {\n    uVar3 = 0;\n    iVar2 = 0;\n  }\n  unaff_retaddr[0x122] = iVar2;\n  *(undefined1 *)(unaff_retaddr + 0x123) = 1;\n  return uVar3;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int *unaff_retaddr;" primitive_type (pointer_declarator "*unaff_retaddr" * identifier) ;) (expression_statement "entry(param_2,0x4c769);" (call_expression "entry(param_2,0x4c769)" identifier (argument_list "(param_2,0x4c769)" ( identifier , number_literal ))) ;) (expression_statement "unaff_retaddr[0x124] = param_3;" (assignment_expression "unaff_retaddr[0x124] = param_3" (subscript_expression "unaff_retaddr[0x124]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (param_3 == 0) {\n    if (param_4 == 0) {\n      iVar2 = 0;\n      uVar3 = 0x1b;\n    }\n    else {\n      iVar1 = *unaff_retaddr;\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b730(iVar1,3,2);\n      }\n      uVar3 = 0;\n      iVar2 = FUN_0001b880(iVar1,param_4,unaff_retaddr[0x120],unaff_retaddr[0x121]);\n      if (iVar2 == 0) {\n        uVar3 = 0x1b;\n        FUN_000564d0(param_4);\n      }\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b790(iVar1,3);\n      }\n    }\n  }\n  else {\n    uVar3 = 0;\n    iVar2 = 0;\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    if (param_4 == 0) {\n      iVar2 = 0;\n      uVar3 = 0x1b;\n    }\n    else {\n      iVar1 = *unaff_retaddr;\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b730(iVar1,3,2);\n      }\n      uVar3 = 0;\n      iVar2 = FUN_0001b880(iVar1,param_4,unaff_retaddr[0x120],unaff_retaddr[0x121]);\n      if (iVar2 == 0) {\n        uVar3 = 0x1b;\n        FUN_000564d0(param_4);\n      }\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b790(iVar1,3);\n      }\n    }\n  }" { (if_statement "if (param_4 == 0) {\n      iVar2 = 0;\n      uVar3 = 0x1b;\n    }\n    else {\n      iVar1 = *unaff_retaddr;\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b730(iVar1,3,2);\n      }\n      uVar3 = 0;\n      iVar2 = FUN_0001b880(iVar1,param_4,unaff_retaddr[0x120],unaff_retaddr[0x121]);\n      if (iVar2 == 0) {\n        uVar3 = 0x1b;\n        FUN_000564d0(param_4);\n      }\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b790(iVar1,3);\n      }\n    }" if (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) (compound_statement "{\n      iVar2 = 0;\n      uVar3 = 0x1b;\n    }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "uVar3 = 0x1b;" (assignment_expression "uVar3 = 0x1b" identifier = number_literal) ;) }) (else_clause "else {\n      iVar1 = *unaff_retaddr;\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b730(iVar1,3,2);\n      }\n      uVar3 = 0;\n      iVar2 = FUN_0001b880(iVar1,param_4,unaff_retaddr[0x120],unaff_retaddr[0x121]);\n      if (iVar2 == 0) {\n        uVar3 = 0x1b;\n        FUN_000564d0(param_4);\n      }\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b790(iVar1,3);\n      }\n    }" else (compound_statement "{\n      iVar1 = *unaff_retaddr;\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b730(iVar1,3,2);\n      }\n      uVar3 = 0;\n      iVar2 = FUN_0001b880(iVar1,param_4,unaff_retaddr[0x120],unaff_retaddr[0x121]);\n      if (iVar2 == 0) {\n        uVar3 = 0x1b;\n        FUN_000564d0(param_4);\n      }\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b790(iVar1,3);\n      }\n    }" { (expression_statement "iVar1 = *unaff_retaddr;" (assignment_expression "iVar1 = *unaff_retaddr" identifier = (pointer_expression "*unaff_retaddr" * identifier)) ;) (if_statement "if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b730(iVar1,3,2);\n      }" if (parenthesized_expression "(*(int *)(iVar1 + 0x8c) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x8c) != 0" (pointer_expression "*(int *)(iVar1 + 0x8c)" * (cast_expression "(int *)(iVar1 + 0x8c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x8c)" ( (binary_expression "iVar1 + 0x8c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        FUN_0004b730(iVar1,3,2);\n      }" { (expression_statement "FUN_0004b730(iVar1,3,2);" (call_expression "FUN_0004b730(iVar1,3,2)" identifier (argument_list "(iVar1,3,2)" ( identifier , number_literal , number_literal ))) ;) })) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = FUN_0001b880(iVar1,param_4,unaff_retaddr[0x120],unaff_retaddr[0x121]);" (assignment_expression "iVar2 = FUN_0001b880(iVar1,param_4,unaff_retaddr[0x120],unaff_retaddr[0x121])" identifier = (call_expression "FUN_0001b880(iVar1,param_4,unaff_retaddr[0x120],unaff_retaddr[0x121])" identifier (argument_list "(iVar1,param_4,unaff_retaddr[0x120],unaff_retaddr[0x121])" ( identifier , identifier , (subscript_expression "unaff_retaddr[0x120]" identifier [ number_literal ]) , (subscript_expression "unaff_retaddr[0x121]" identifier [ number_literal ]) )))) ;) (if_statement "if (iVar2 == 0) {\n        uVar3 = 0x1b;\n        FUN_000564d0(param_4);\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar3 = 0x1b;\n        FUN_000564d0(param_4);\n      }" { (expression_statement "uVar3 = 0x1b;" (assignment_expression "uVar3 = 0x1b" identifier = number_literal) ;) (expression_statement "FUN_000564d0(param_4);" (call_expression "FUN_000564d0(param_4)" identifier (argument_list "(param_4)" ( identifier ))) ;) })) (if_statement "if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b790(iVar1,3);\n      }" if (parenthesized_expression "(*(int *)(iVar1 + 0x8c) != 0)" ( (binary_expression "*(int *)(iVar1 + 0x8c) != 0" (pointer_expression "*(int *)(iVar1 + 0x8c)" * (cast_expression "(int *)(iVar1 + 0x8c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x8c)" ( (binary_expression "iVar1 + 0x8c" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        FUN_0004b790(iVar1,3);\n      }" { (expression_statement "FUN_0004b790(iVar1,3);" (call_expression "FUN_0004b790(iVar1,3)" identifier (argument_list "(iVar1,3)" ( identifier , number_literal ))) ;) })) }))) }) (else_clause "else {\n    uVar3 = 0;\n    iVar2 = 0;\n  }" else (compound_statement "{\n    uVar3 = 0;\n    iVar2 = 0;\n  }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) }))) (expression_statement "unaff_retaddr[0x122] = iVar2;" (assignment_expression "unaff_retaddr[0x122] = iVar2" (subscript_expression "unaff_retaddr[0x122]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined1 *)(unaff_retaddr + 0x123) = 1;" (assignment_expression "*(undefined1 *)(unaff_retaddr + 0x123) = 1" (pointer_expression "*(undefined1 *)(unaff_retaddr + 0x123)" * (cast_expression "(undefined1 *)(unaff_retaddr + 0x123)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(unaff_retaddr + 0x123)" ( (binary_expression "unaff_retaddr + 0x123" identifier + number_literal) )))) = number_literal) ;) (return_statement "return uVar3;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , LIT ))) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , (subscript_expression IDENT [ LIT ]) , (subscript_expression IDENT [ LIT ]) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) })) }))) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 __regparm2 FUN_0004c760(undefined4 param_1,undefined4 param_2,int param_3,int param_4)\n\n{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *unaff_retaddr;\n  \n  entry(param_2,0x4c769);\n  unaff_retaddr[0x124] = param_3;\n  if (param_3 == 0) {\n    if (param_4 == 0) {\n      iVar2 = 0;\n      uVar3 = 0x1b;\n    }\n    else {\n      iVar1 = *unaff_retaddr;\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b730(iVar1,3,2);\n      }\n      uVar3 = 0;\n      iVar2 = FUN_0001b880(iVar1,param_4,unaff_retaddr[0x120],unaff_retaddr[0x121]);\n      if (iVar2 == 0) {\n        uVar3 = 0x1b;\n        FUN_000564d0(param_4);\n      }\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b790(iVar1,3);\n      }\n    }\n  }\n  else {\n    uVar3 = 0;\n    iVar2 = 0;\n  }\n  unaff_retaddr[0x122] = iVar2;\n  *(undefined1 *)(unaff_retaddr + 0x123) = 1;\n  return uVar3;\n}" (type_identifier "undefined4") (ERROR "__regparm2" (identifier "__regparm2")) (function_declarator "FUN_0004c760(undefined4 param_1,undefined4 param_2,int param_3,int param_4)" (identifier "FUN_0004c760") (parameter_list "(undefined4 param_1,undefined4 param_2,int param_3,int param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int *unaff_retaddr;\n  \n  entry(param_2,0x4c769);\n  unaff_retaddr[0x124] = param_3;\n  if (param_3 == 0) {\n    if (param_4 == 0) {\n      iVar2 = 0;\n      uVar3 = 0x1b;\n    }\n    else {\n      iVar1 = *unaff_retaddr;\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b730(iVar1,3,2);\n      }\n      uVar3 = 0;\n      iVar2 = FUN_0001b880(iVar1,param_4,unaff_retaddr[0x120],unaff_retaddr[0x121]);\n      if (iVar2 == 0) {\n        uVar3 = 0x1b;\n        FUN_000564d0(param_4);\n      }\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b790(iVar1,3);\n      }\n    }\n  }\n  else {\n    uVar3 = 0;\n    iVar2 = 0;\n  }\n  unaff_retaddr[0x122] = iVar2;\n  *(undefined1 *)(unaff_retaddr + 0x123) = 1;\n  return uVar3;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int *unaff_retaddr;" (primitive_type "int") (pointer_declarator "*unaff_retaddr" (* "*") (identifier "unaff_retaddr")) (; ";")) (expression_statement "entry(param_2,0x4c769);" (call_expression "entry(param_2,0x4c769)" (identifier "entry") (argument_list "(param_2,0x4c769)" (( "(") (identifier "param_2") (, ",") (number_literal "0x4c769") () ")"))) (; ";")) (expression_statement "unaff_retaddr[0x124] = param_3;" (assignment_expression "unaff_retaddr[0x124] = param_3" (subscript_expression "unaff_retaddr[0x124]" (identifier "unaff_retaddr") ([ "[") (number_literal "0x124") (] "]")) (= "=") (identifier "param_3")) (; ";")) (if_statement "if (param_3 == 0) {\n    if (param_4 == 0) {\n      iVar2 = 0;\n      uVar3 = 0x1b;\n    }\n    else {\n      iVar1 = *unaff_retaddr;\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b730(iVar1,3,2);\n      }\n      uVar3 = 0;\n      iVar2 = FUN_0001b880(iVar1,param_4,unaff_retaddr[0x120],unaff_retaddr[0x121]);\n      if (iVar2 == 0) {\n        uVar3 = 0x1b;\n        FUN_000564d0(param_4);\n      }\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b790(iVar1,3);\n      }\n    }\n  }\n  else {\n    uVar3 = 0;\n    iVar2 = 0;\n  }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (param_4 == 0) {\n      iVar2 = 0;\n      uVar3 = 0x1b;\n    }\n    else {\n      iVar1 = *unaff_retaddr;\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b730(iVar1,3,2);\n      }\n      uVar3 = 0;\n      iVar2 = FUN_0001b880(iVar1,param_4,unaff_retaddr[0x120],unaff_retaddr[0x121]);\n      if (iVar2 == 0) {\n        uVar3 = 0x1b;\n        FUN_000564d0(param_4);\n      }\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b790(iVar1,3);\n      }\n    }\n  }" ({ "{") (if_statement "if (param_4 == 0) {\n      iVar2 = 0;\n      uVar3 = 0x1b;\n    }\n    else {\n      iVar1 = *unaff_retaddr;\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b730(iVar1,3,2);\n      }\n      uVar3 = 0;\n      iVar2 = FUN_0001b880(iVar1,param_4,unaff_retaddr[0x120],unaff_retaddr[0x121]);\n      if (iVar2 == 0) {\n        uVar3 = 0x1b;\n        FUN_000564d0(param_4);\n      }\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b790(iVar1,3);\n      }\n    }" (if "if") (parenthesized_expression "(param_4 == 0)" (( "(") (binary_expression "param_4 == 0" (identifier "param_4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar2 = 0;\n      uVar3 = 0x1b;\n    }" ({ "{") (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar3 = 0x1b;" (assignment_expression "uVar3 = 0x1b" (identifier "uVar3") (= "=") (number_literal "0x1b")) (; ";")) (} "}")) (else_clause "else {\n      iVar1 = *unaff_retaddr;\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b730(iVar1,3,2);\n      }\n      uVar3 = 0;\n      iVar2 = FUN_0001b880(iVar1,param_4,unaff_retaddr[0x120],unaff_retaddr[0x121]);\n      if (iVar2 == 0) {\n        uVar3 = 0x1b;\n        FUN_000564d0(param_4);\n      }\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b790(iVar1,3);\n      }\n    }" (else "else") (compound_statement "{\n      iVar1 = *unaff_retaddr;\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b730(iVar1,3,2);\n      }\n      uVar3 = 0;\n      iVar2 = FUN_0001b880(iVar1,param_4,unaff_retaddr[0x120],unaff_retaddr[0x121]);\n      if (iVar2 == 0) {\n        uVar3 = 0x1b;\n        FUN_000564d0(param_4);\n      }\n      if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b790(iVar1,3);\n      }\n    }" ({ "{") (expression_statement "iVar1 = *unaff_retaddr;" (assignment_expression "iVar1 = *unaff_retaddr" (identifier "iVar1") (= "=") (pointer_expression "*unaff_retaddr" (* "*") (identifier "unaff_retaddr"))) (; ";")) (if_statement "if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b730(iVar1,3,2);\n      }" (if "if") (parenthesized_expression "(*(int *)(iVar1 + 0x8c) != 0)" (( "(") (binary_expression "*(int *)(iVar1 + 0x8c) != 0" (pointer_expression "*(int *)(iVar1 + 0x8c)" (* "*") (cast_expression "(int *)(iVar1 + 0x8c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x8c)" (( "(") (binary_expression "iVar1 + 0x8c" (identifier "iVar1") (+ "+") (number_literal "0x8c")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_0004b730(iVar1,3,2);\n      }" ({ "{") (expression_statement "FUN_0004b730(iVar1,3,2);" (call_expression "FUN_0004b730(iVar1,3,2)" (identifier "FUN_0004b730") (argument_list "(iVar1,3,2)" (( "(") (identifier "iVar1") (, ",") (number_literal "3") (, ",") (number_literal "2") () ")"))) (; ";")) (} "}"))) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar2 = FUN_0001b880(iVar1,param_4,unaff_retaddr[0x120],unaff_retaddr[0x121]);" (assignment_expression "iVar2 = FUN_0001b880(iVar1,param_4,unaff_retaddr[0x120],unaff_retaddr[0x121])" (identifier "iVar2") (= "=") (call_expression "FUN_0001b880(iVar1,param_4,unaff_retaddr[0x120],unaff_retaddr[0x121])" (identifier "FUN_0001b880") (argument_list "(iVar1,param_4,unaff_retaddr[0x120],unaff_retaddr[0x121])" (( "(") (identifier "iVar1") (, ",") (identifier "param_4") (, ",") (subscript_expression "unaff_retaddr[0x120]" (identifier "unaff_retaddr") ([ "[") (number_literal "0x120") (] "]")) (, ",") (subscript_expression "unaff_retaddr[0x121]" (identifier "unaff_retaddr") ([ "[") (number_literal "0x121") (] "]")) () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n        uVar3 = 0x1b;\n        FUN_000564d0(param_4);\n      }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        uVar3 = 0x1b;\n        FUN_000564d0(param_4);\n      }" ({ "{") (expression_statement "uVar3 = 0x1b;" (assignment_expression "uVar3 = 0x1b" (identifier "uVar3") (= "=") (number_literal "0x1b")) (; ";")) (expression_statement "FUN_000564d0(param_4);" (call_expression "FUN_000564d0(param_4)" (identifier "FUN_000564d0") (argument_list "(param_4)" (( "(") (identifier "param_4") () ")"))) (; ";")) (} "}"))) (if_statement "if (*(int *)(iVar1 + 0x8c) != 0) {\n        FUN_0004b790(iVar1,3);\n      }" (if "if") (parenthesized_expression "(*(int *)(iVar1 + 0x8c) != 0)" (( "(") (binary_expression "*(int *)(iVar1 + 0x8c) != 0" (pointer_expression "*(int *)(iVar1 + 0x8c)" (* "*") (cast_expression "(int *)(iVar1 + 0x8c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x8c)" (( "(") (binary_expression "iVar1 + 0x8c" (identifier "iVar1") (+ "+") (number_literal "0x8c")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_0004b790(iVar1,3);\n      }" ({ "{") (expression_statement "FUN_0004b790(iVar1,3);" (call_expression "FUN_0004b790(iVar1,3)" (identifier "FUN_0004b790") (argument_list "(iVar1,3)" (( "(") (identifier "iVar1") (, ",") (number_literal "3") () ")"))) (; ";")) (} "}"))) (} "}")))) (} "}")) (else_clause "else {\n    uVar3 = 0;\n    iVar2 = 0;\n  }" (else "else") (compound_statement "{\n    uVar3 = 0;\n    iVar2 = 0;\n  }" ({ "{") (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (} "}")))) (expression_statement "unaff_retaddr[0x122] = iVar2;" (assignment_expression "unaff_retaddr[0x122] = iVar2" (subscript_expression "unaff_retaddr[0x122]" (identifier "unaff_retaddr") ([ "[") (number_literal "0x122") (] "]")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "*(undefined1 *)(unaff_retaddr + 0x123) = 1;" (assignment_expression "*(undefined1 *)(unaff_retaddr + 0x123) = 1" (pointer_expression "*(undefined1 *)(unaff_retaddr + 0x123)" (* "*") (cast_expression "(undefined1 *)(unaff_retaddr + 0x123)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(unaff_retaddr + 0x123)" (( "(") (binary_expression "unaff_retaddr + 0x123" (identifier "unaff_retaddr") (+ "+") (number_literal "0x123")) () ")")))) (= "=") (number_literal "1")) (; ";")) (return_statement "return uVar3;" (return "return") (identifier "uVar3") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */
/* WARNING: Enum "anon_enum_32": Some values do not have unique names */

type_1 function_1(type_2 *conn,int var_1,type_3 *var_2)

{
  type_4 *data;
  type_5 *var_5;
  type_1 CVar2;
  
  (conn->async).var_1 = var_1;
  if (var_1 == 0) {
    if (var_2 == (type_3 *)0x0) {
      var_5 = (type_5 *)0x0;
      CVar2 = CURLE_OUT_OF_MEMORY;
    }
    else {
      data = conn->data;
      if (data->share != (type_6 *)0x0) {
        var_3(data,CURL_LOCK_DATA_DNS,CURL_LOCK_ACCESS_SINGLE);
      }
      CVar2 = CURLE_OK;
      var_5 = var_4(data,var_2,(conn->async).hostname,(conn->async).port);
      if (var_5 == (type_5 *)0x0) {
        CVar2 = CURLE_OUT_OF_MEMORY;
        var_6(var_2);
      }
      if (data->share != (type_6 *)0x0) {
        var_7(data,CURL_LOCK_DATA_DNS);
      }
    }
  }
  else {
    CVar2 = CURLE_OK;
    var_5 = (type_5 *)0x0;
  }
  (conn->async).dns = var_5;
  (conn->async).done = true;
  return CVar2;
}


(translation_unit (function_definition type: (type_identifier) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (subscript_expression argument: (identifier) index: (number_literal)) (subscript_expression argument: (identifier) index: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (return_statement (identifier)))))

undefined4 __regparm2 MASKED(undefined4 param_1,undefined4 param_2,int param_3,int param_4)

{
  int iVar1;
  int iVar2;
  undefined4 uVar3;
  int *unaff_retaddr;
  
  entry(param_2,0x4c769);
  unaff_retaddr[0x124] = param_3;
  if (param_3 == 0) {
    if (param_4 == 0) {
      iVar2 = 0;
      uVar3 = 0x1b;
    }
    else {
      iVar1 = *unaff_retaddr;
      if (*(int *)(iVar1 + 0x8c) != 0) {
        FUN_0004b730(iVar1,3,2);
      }
      uVar3 = 0;
      iVar2 = FUN_0001b880(iVar1,param_4,unaff_retaddr[0x120],unaff_retaddr[0x121]);
      if (iVar2 == 0) {
        uVar3 = 0x1b;
        FUN_000564d0(param_4);
      }
      if (*(int *)(iVar1 + 0x8c) != 0) {
        FUN_0004b790(iVar1,3);
      }
    }
  }
  else {
    uVar3 = 0;
    iVar2 = 0;
  }
  unaff_retaddr[0x122] = iVar2;
  *(undefined1 *)(unaff_retaddr + 0x123) = 1;
  return uVar3;
}

