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

Curl_dns_entry * Curl_cache_addr(Curl_easy *data,Curl_addrinfo *addr,char *hostname,int port)

{
  undefined *puVar1;
  CURLcode CVar2;
  char *pcVar3;
  int iVar4;
  undefined4 *puVar5;
  Curl_dns_entry *pCVar6;
  code *pcVar7;
  Curl_addrinfo *local_res4;
  char *pcStackX_8;
  int iStackX_c;
  
  local_res4 = addr;
  if (((data->set).dns_shuffle_addresses != false) &&
     (pcStackX_8 = hostname, iStackX_c = port, CVar2 = Curl_shuffle_addr(data,&local_res4),
     hostname = pcStackX_8, port = iStackX_c, CVar2 != CURLE_OK)) {
    return (Curl_dns_entry *)0x0;
  }
  pcVar3 = create_hostcache_id(hostname,port);
  if (pcVar3 != (char *)0x0) {
    iVar4 = (*(code *)PTR_strlen_000a6ea8)(pcVar3);
    puVar5 = (undefined4 *)(**(code **)PTR_Curl_ccalloc_000a6140)(1,0xc);
    puVar1 = PTR_time_000a6e00;
    if (puVar5 != (undefined4 *)0x0) {
      puVar5[2] = 1;
      *puVar5 = local_res4;
      (*(code *)puVar1)(puVar5 + 1);
      if (puVar5[1] == 0) {
        puVar5[1] = 1;
      }
      pCVar6 = (Curl_dns_entry *)
               (*(code *)PTR_Curl_hash_add_000a61dc)((data->dns).hostcache,pcVar3,iVar4 + 1,puVar5);
      puVar1 = PTR_Curl_cfree_000a6144;
      if (pCVar6 == (Curl_dns_entry *)0x0) {
        (**(code **)PTR_Curl_cfree_000a6144)(puVar5);
        (**(code **)puVar1)(pcVar3);
      }
      else {
        pcVar7 = *(code **)PTR_Curl_cfree_000a6144;
        pCVar6->inuse = pCVar6->inuse + 1;
        (*pcVar7)(pcVar3);
      }
      return pCVar6;
    }
    (**(code **)PTR_Curl_cfree_000a6144)(pcVar3);
  }
  return (Curl_dns_entry *)0x0;
}



int FUN_000190f4(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  undefined4 *puVar4;
  code *pcVar5;
  undefined4 local_res4;
  undefined4 local_res8;
  undefined4 local_resc;
  
  local_res4 = param_2;
  if ((*(char *)(param_1 + 0xaf9) != '\0') &&
     (local_res8 = param_3, local_resc = param_4, iVar2 = FUN_00018f00(param_1,&local_res4),
     param_3 = local_res8, param_4 = local_resc, iVar2 != 0)) {
    return 0;
  }
  iVar2 = FUN_000188a8(param_3,param_4);
  if (iVar2 != 0) {
    iVar3 = (*(code *)PTR_strlen_000a6ea8)(iVar2);
    puVar4 = (undefined4 *)(**(code **)PTR_PTR_calloc_000a6140)(1,0xc);
    puVar1 = PTR_time_000a6e00;
    if (puVar4 != (undefined4 *)0x0) {
      puVar4[2] = 1;
      *puVar4 = local_res4;
      (*(code *)puVar1)(puVar4 + 1);
      if (puVar4[1] == 0) {
        puVar4[1] = 1;
      }
      iVar3 = (*(code *)PTR_FUN_000a61dc)(*(undefined4 *)(param_1 + 0x7c),iVar2,iVar3 + 1,puVar4);
      puVar1 = PTR_PTR_free_000a6144;
      if (iVar3 == 0) {
        (**(code **)PTR_PTR_free_000a6144)(puVar4);
        (**(code **)puVar1)(iVar2);
      }
      else {
        pcVar5 = *(code **)PTR_PTR_free_000a6144;
        *(int *)(iVar3 + 8) = *(int *)(iVar3 + 8) + 1;
        (*pcVar5)(iVar2);
      }
      return iVar3;
    }
    (**(code **)PTR_PTR_free_000a6144)(iVar2);
  }
  return 0;
}


lui gp,0x9
addiu gp,gp,0x501c
addu gp,gp,t9
addiu sp,sp,-0x38
lbu v0,0xaf9(a0)
sw gp,0x10(sp)
sw s2,0x28(sp)
or s2,a0,zero
sw ra,0x34(sp)
sw s4,0x30(sp)
sw s3,0x2c(sp)
sw s1,0x24(sp)
sw s0,0x20(sp)
beq v0,zero,0x00019154
_sw a1,0x3c(sp)
lw t9,-0x7f38(gp)
addiu a1,sp,0x3c
sw a3,0x44(sp)
bal 0x00018f00
_sw a2,0x40(sp)
lw gp,0x10(sp)
lw a2,0x40(sp)
bne v0,zero,0x0001924c
_lw a3,0x44(sp)
lw t9,-0x7f70(gp)
or a1,a3,zero
addiu t9,t9,-0x7758
bal 0x000188a8
_or a0,a2,zero
lw gp,0x10(sp)
beq v0,zero,0x0001924c
_or s1,v0,zero
lw t9,-0x7268(gp)
jalr t9
_or a0,v0,zero
li a1,0xc
lw gp,0x10(sp)
or s4,v0,zero
lw v0,-0x7fd0(gp)
lw t9,0x0(v0)
jalr t9
_li a0,0x1
lw gp,0x10(sp)
beq v0,zero,0x0001923c
_or s0,v0,zero
li s3,0x1
lw t9,-0x7310(gp)
addiu a0,v0,0x4
sw s3,0x8(v0)
lw v0,0x3c(sp)
jalr t9
_sw v0,0x0(s0)
lw v0,0x4(s0)
beq v0,zero,0x00019234
_lw gp,0x10(sp)
lw t9,-0x7f34(gp)
addiu a2,s4,0x1
lw a0,0x7c(s2)
or a3,s0,zero
jalr t9
_or a1,s1,zero
beq v0,zero,0x00019270
_lw gp,0x10(sp)
lw a1,-0x7fcc(gp)
or a0,s1,zero
lw v1,0x8(v0)
sw v0,0x1c(sp)
addiu v1,v1,0x1
lw t9,0x0(a1)
jalr t9
_sw v1,0x8(v0)
lw v0,0x1c(sp)
lw ra,0x34(sp)
lw s4,0x30(sp)
lw s3,0x2c(sp)
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x38
b 0x000191d0
_sw s3,0x4(s0)
lw v0,-0x7fcc(gp)
lw t9,0x0(v0)
jalr t9
_or a0,s1,zero
lw ra,0x34(sp)
or v0,zero,zero
lw s4,0x30(sp)
lw s3,0x2c(sp)
lw s2,0x28(sp)
lw s1,0x24(sp)
lw s0,0x20(sp)
jr ra
_addiu sp,sp,0x38
lw s2,-0x7fcc(gp)
sw v0,0x1c(sp)
lw t9,0x0(s2)
jalr t9
_or a0,s0,zero
lw t9,0x0(s2)
jalr t9
_or a0,s1,zero
b 0x00019214
_lw v0,0x1c(sp)
(translation_unit "int FUN_000190f4(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  code *pcVar5;\n  undefined4 local_res4;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  local_res4 = param_2;\n  if ((*(char *)(param_1 + 0xaf9) != '\0') &&\n     (local_res8 = param_3, local_resc = param_4, iVar2 = FUN_00018f00(param_1,&local_res4),\n     param_3 = local_res8, param_4 = local_resc, iVar2 != 0)) {\n    return 0;\n  }\n  iVar2 = FUN_000188a8(param_3,param_4);\n  if (iVar2 != 0) {\n    iVar3 = (*(code *)PTR_strlen_000a6ea8)(iVar2);\n    puVar4 = (undefined4 *)(**(code **)PTR_PTR_calloc_000a6140)(1,0xc);\n    puVar1 = PTR_time_000a6e00;\n    if (puVar4 != (undefined4 *)0x0) {\n      puVar4[2] = 1;\n      *puVar4 = local_res4;\n      (*(code *)puVar1)(puVar4 + 1);\n      if (puVar4[1] == 0) {\n        puVar4[1] = 1;\n      }\n      iVar3 = (*(code *)PTR_FUN_000a61dc)(*(undefined4 *)(param_1 + 0x7c),iVar2,iVar3 + 1,puVar4);\n      puVar1 = PTR_PTR_free_000a6144;\n      if (iVar3 == 0) {\n        (**(code **)PTR_PTR_free_000a6144)(puVar4);\n        (**(code **)puVar1)(iVar2);\n      }\n      else {\n        pcVar5 = *(code **)PTR_PTR_free_000a6144;\n        *(int *)(iVar3 + 8) = *(int *)(iVar3 + 8) + 1;\n        (*pcVar5)(iVar2);\n      }\n      return iVar3;\n    }\n    (**(code **)PTR_PTR_free_000a6144)(iVar2);\n  }\n  return 0;\n}\n\n" (function_definition "int FUN_000190f4(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  code *pcVar5;\n  undefined4 local_res4;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  local_res4 = param_2;\n  if ((*(char *)(param_1 + 0xaf9) != '\0') &&\n     (local_res8 = param_3, local_resc = param_4, iVar2 = FUN_00018f00(param_1,&local_res4),\n     param_3 = local_res8, param_4 = local_resc, iVar2 != 0)) {\n    return 0;\n  }\n  iVar2 = FUN_000188a8(param_3,param_4);\n  if (iVar2 != 0) {\n    iVar3 = (*(code *)PTR_strlen_000a6ea8)(iVar2);\n    puVar4 = (undefined4 *)(**(code **)PTR_PTR_calloc_000a6140)(1,0xc);\n    puVar1 = PTR_time_000a6e00;\n    if (puVar4 != (undefined4 *)0x0) {\n      puVar4[2] = 1;\n      *puVar4 = local_res4;\n      (*(code *)puVar1)(puVar4 + 1);\n      if (puVar4[1] == 0) {\n        puVar4[1] = 1;\n      }\n      iVar3 = (*(code *)PTR_FUN_000a61dc)(*(undefined4 *)(param_1 + 0x7c),iVar2,iVar3 + 1,puVar4);\n      puVar1 = PTR_PTR_free_000a6144;\n      if (iVar3 == 0) {\n        (**(code **)PTR_PTR_free_000a6144)(puVar4);\n        (**(code **)puVar1)(iVar2);\n      }\n      else {\n        pcVar5 = *(code **)PTR_PTR_free_000a6144;\n        *(int *)(iVar3 + 8) = *(int *)(iVar3 + 8) + 1;\n        (*pcVar5)(iVar2);\n      }\n      return iVar3;\n    }\n    (**(code **)PTR_PTR_free_000a6144)(iVar2);\n  }\n  return 0;\n}" primitive_type (function_declarator "FUN_000190f4(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  code *pcVar5;\n  undefined4 local_res4;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  local_res4 = param_2;\n  if ((*(char *)(param_1 + 0xaf9) != '\0') &&\n     (local_res8 = param_3, local_resc = param_4, iVar2 = FUN_00018f00(param_1,&local_res4),\n     param_3 = local_res8, param_4 = local_resc, iVar2 != 0)) {\n    return 0;\n  }\n  iVar2 = FUN_000188a8(param_3,param_4);\n  if (iVar2 != 0) {\n    iVar3 = (*(code *)PTR_strlen_000a6ea8)(iVar2);\n    puVar4 = (undefined4 *)(**(code **)PTR_PTR_calloc_000a6140)(1,0xc);\n    puVar1 = PTR_time_000a6e00;\n    if (puVar4 != (undefined4 *)0x0) {\n      puVar4[2] = 1;\n      *puVar4 = local_res4;\n      (*(code *)puVar1)(puVar4 + 1);\n      if (puVar4[1] == 0) {\n        puVar4[1] = 1;\n      }\n      iVar3 = (*(code *)PTR_FUN_000a61dc)(*(undefined4 *)(param_1 + 0x7c),iVar2,iVar3 + 1,puVar4);\n      puVar1 = PTR_PTR_free_000a6144;\n      if (iVar3 == 0) {\n        (**(code **)PTR_PTR_free_000a6144)(puVar4);\n        (**(code **)puVar1)(iVar2);\n      }\n      else {\n        pcVar5 = *(code **)PTR_PTR_free_000a6144;\n        *(int *)(iVar3 + 8) = *(int *)(iVar3 + 8) + 1;\n        (*pcVar5)(iVar2);\n      }\n      return iVar3;\n    }\n    (**(code **)PTR_PTR_free_000a6144)(iVar2);\n  }\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "code *pcVar5;" type_identifier (pointer_declarator "*pcVar5" * identifier) ;) (declaration "undefined4 local_res4;" type_identifier identifier ;) (declaration "undefined4 local_res8;" type_identifier identifier ;) (declaration "undefined4 local_resc;" type_identifier identifier ;) (expression_statement "local_res4 = param_2;" (assignment_expression "local_res4 = param_2" identifier = identifier) ;) (if_statement "if ((*(char *)(param_1 + 0xaf9) != '\0') &&\n     (local_res8 = param_3, local_resc = param_4, iVar2 = FUN_00018f00(param_1,&local_res4),\n     param_3 = local_res8, param_4 = local_resc, iVar2 != 0)) {\n    return 0;\n  }" if (parenthesized_expression "((*(char *)(param_1 + 0xaf9) != '\0') &&\n     (local_res8 = param_3, local_resc = param_4, iVar2 = FUN_00018f00(param_1,&local_res4),\n     param_3 = local_res8, param_4 = local_resc, iVar2 != 0))" ( (binary_expression "(*(char *)(param_1 + 0xaf9) != '\0') &&\n     (local_res8 = param_3, local_resc = param_4, iVar2 = FUN_00018f00(param_1,&local_res4),\n     param_3 = local_res8, param_4 = local_resc, iVar2 != 0)" (parenthesized_expression "(*(char *)(param_1 + 0xaf9) != '\0')" ( (binary_expression "*(char *)(param_1 + 0xaf9) != '\0'" (pointer_expression "*(char *)(param_1 + 0xaf9)" * (cast_expression "(char *)(param_1 + 0xaf9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xaf9)" ( (binary_expression "param_1 + 0xaf9" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(local_res8 = param_3, local_resc = param_4, iVar2 = FUN_00018f00(param_1,&local_res4),\n     param_3 = local_res8, param_4 = local_resc, iVar2 != 0)" ( (comma_expression "local_res8 = param_3, local_resc = param_4, iVar2 = FUN_00018f00(param_1,&local_res4),\n     param_3 = local_res8, param_4 = local_resc, iVar2 != 0" (assignment_expression "local_res8 = param_3" identifier = identifier) , (comma_expression "local_resc = param_4, iVar2 = FUN_00018f00(param_1,&local_res4),\n     param_3 = local_res8, param_4 = local_resc, iVar2 != 0" (assignment_expression "local_resc = param_4" identifier = identifier) , (comma_expression "iVar2 = FUN_00018f00(param_1,&local_res4),\n     param_3 = local_res8, param_4 = local_resc, iVar2 != 0" (assignment_expression "iVar2 = FUN_00018f00(param_1,&local_res4)" identifier = (call_expression "FUN_00018f00(param_1,&local_res4)" identifier (argument_list "(param_1,&local_res4)" ( identifier , (pointer_expression "&local_res4" & identifier) )))) , (comma_expression "param_3 = local_res8, param_4 = local_resc, iVar2 != 0" (assignment_expression "param_3 = local_res8" identifier = identifier) , (comma_expression "param_4 = local_resc, iVar2 != 0" (assignment_expression "param_4 = local_resc" identifier = identifier) , (binary_expression "iVar2 != 0" identifier != number_literal)))))) ))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = FUN_000188a8(param_3,param_4);" (assignment_expression "iVar2 = FUN_000188a8(param_3,param_4)" identifier = (call_expression "FUN_000188a8(param_3,param_4)" identifier (argument_list "(param_3,param_4)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n    iVar3 = (*(code *)PTR_strlen_000a6ea8)(iVar2);\n    puVar4 = (undefined4 *)(**(code **)PTR_PTR_calloc_000a6140)(1,0xc);\n    puVar1 = PTR_time_000a6e00;\n    if (puVar4 != (undefined4 *)0x0) {\n      puVar4[2] = 1;\n      *puVar4 = local_res4;\n      (*(code *)puVar1)(puVar4 + 1);\n      if (puVar4[1] == 0) {\n        puVar4[1] = 1;\n      }\n      iVar3 = (*(code *)PTR_FUN_000a61dc)(*(undefined4 *)(param_1 + 0x7c),iVar2,iVar3 + 1,puVar4);\n      puVar1 = PTR_PTR_free_000a6144;\n      if (iVar3 == 0) {\n        (**(code **)PTR_PTR_free_000a6144)(puVar4);\n        (**(code **)puVar1)(iVar2);\n      }\n      else {\n        pcVar5 = *(code **)PTR_PTR_free_000a6144;\n        *(int *)(iVar3 + 8) = *(int *)(iVar3 + 8) + 1;\n        (*pcVar5)(iVar2);\n      }\n      return iVar3;\n    }\n    (**(code **)PTR_PTR_free_000a6144)(iVar2);\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar3 = (*(code *)PTR_strlen_000a6ea8)(iVar2);\n    puVar4 = (undefined4 *)(**(code **)PTR_PTR_calloc_000a6140)(1,0xc);\n    puVar1 = PTR_time_000a6e00;\n    if (puVar4 != (undefined4 *)0x0) {\n      puVar4[2] = 1;\n      *puVar4 = local_res4;\n      (*(code *)puVar1)(puVar4 + 1);\n      if (puVar4[1] == 0) {\n        puVar4[1] = 1;\n      }\n      iVar3 = (*(code *)PTR_FUN_000a61dc)(*(undefined4 *)(param_1 + 0x7c),iVar2,iVar3 + 1,puVar4);\n      puVar1 = PTR_PTR_free_000a6144;\n      if (iVar3 == 0) {\n        (**(code **)PTR_PTR_free_000a6144)(puVar4);\n        (**(code **)puVar1)(iVar2);\n      }\n      else {\n        pcVar5 = *(code **)PTR_PTR_free_000a6144;\n        *(int *)(iVar3 + 8) = *(int *)(iVar3 + 8) + 1;\n        (*pcVar5)(iVar2);\n      }\n      return iVar3;\n    }\n    (**(code **)PTR_PTR_free_000a6144)(iVar2);\n  }" { (expression_statement "iVar3 = (*(code *)PTR_strlen_000a6ea8)(iVar2);" (assignment_expression "iVar3 = (*(code *)PTR_strlen_000a6ea8)(iVar2)" identifier = (call_expression "(*(code *)PTR_strlen_000a6ea8)(iVar2)" (parenthesized_expression "(*(code *)PTR_strlen_000a6ea8)" ( (pointer_expression "*(code *)PTR_strlen_000a6ea8" * (cast_expression "(code *)PTR_strlen_000a6ea8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2)" ( identifier )))) ;) (expression_statement "puVar4 = (undefined4 *)(**(code **)PTR_PTR_calloc_000a6140)(1,0xc);" (assignment_expression "puVar4 = (undefined4 *)(**(code **)PTR_PTR_calloc_000a6140)(1,0xc)" identifier = (cast_expression "(undefined4 *)(**(code **)PTR_PTR_calloc_000a6140)(1,0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)PTR_PTR_calloc_000a6140)(1,0xc)" (parenthesized_expression "(**(code **)PTR_PTR_calloc_000a6140)" ( (pointer_expression "**(code **)PTR_PTR_calloc_000a6140" * (pointer_expression "*(code **)PTR_PTR_calloc_000a6140" * (cast_expression "(code **)PTR_PTR_calloc_000a6140" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(1,0xc)" ( number_literal , number_literal ))))) ;) (expression_statement "puVar1 = PTR_time_000a6e00;" (assignment_expression "puVar1 = PTR_time_000a6e00" identifier = identifier) ;) (if_statement "if (puVar4 != (undefined4 *)0x0) {\n      puVar4[2] = 1;\n      *puVar4 = local_res4;\n      (*(code *)puVar1)(puVar4 + 1);\n      if (puVar4[1] == 0) {\n        puVar4[1] = 1;\n      }\n      iVar3 = (*(code *)PTR_FUN_000a61dc)(*(undefined4 *)(param_1 + 0x7c),iVar2,iVar3 + 1,puVar4);\n      puVar1 = PTR_PTR_free_000a6144;\n      if (iVar3 == 0) {\n        (**(code **)PTR_PTR_free_000a6144)(puVar4);\n        (**(code **)puVar1)(iVar2);\n      }\n      else {\n        pcVar5 = *(code **)PTR_PTR_free_000a6144;\n        *(int *)(iVar3 + 8) = *(int *)(iVar3 + 8) + 1;\n        (*pcVar5)(iVar2);\n      }\n      return iVar3;\n    }" if (parenthesized_expression "(puVar4 != (undefined4 *)0x0)" ( (binary_expression "puVar4 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar4[2] = 1;\n      *puVar4 = local_res4;\n      (*(code *)puVar1)(puVar4 + 1);\n      if (puVar4[1] == 0) {\n        puVar4[1] = 1;\n      }\n      iVar3 = (*(code *)PTR_FUN_000a61dc)(*(undefined4 *)(param_1 + 0x7c),iVar2,iVar3 + 1,puVar4);\n      puVar1 = PTR_PTR_free_000a6144;\n      if (iVar3 == 0) {\n        (**(code **)PTR_PTR_free_000a6144)(puVar4);\n        (**(code **)puVar1)(iVar2);\n      }\n      else {\n        pcVar5 = *(code **)PTR_PTR_free_000a6144;\n        *(int *)(iVar3 + 8) = *(int *)(iVar3 + 8) + 1;\n        (*pcVar5)(iVar2);\n      }\n      return iVar3;\n    }" { (expression_statement "puVar4[2] = 1;" (assignment_expression "puVar4[2] = 1" (subscript_expression "puVar4[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar4 = local_res4;" (assignment_expression "*puVar4 = local_res4" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "(*(code *)puVar1)(puVar4 + 1);" (call_expression "(*(code *)puVar1)(puVar4 + 1)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar4 + 1)" ( (binary_expression "puVar4 + 1" identifier + number_literal) ))) ;) (if_statement "if (puVar4[1] == 0) {\n        puVar4[1] = 1;\n      }" if (parenthesized_expression "(puVar4[1] == 0)" ( (binary_expression "puVar4[1] == 0" (subscript_expression "puVar4[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n        puVar4[1] = 1;\n      }" { (expression_statement "puVar4[1] = 1;" (assignment_expression "puVar4[1] = 1" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = number_literal) ;) })) (expression_statement "iVar3 = (*(code *)PTR_FUN_000a61dc)(*(undefined4 *)(param_1 + 0x7c),iVar2,iVar3 + 1,puVar4);" (assignment_expression "iVar3 = (*(code *)PTR_FUN_000a61dc)(*(undefined4 *)(param_1 + 0x7c),iVar2,iVar3 + 1,puVar4)" identifier = (call_expression "(*(code *)PTR_FUN_000a61dc)(*(undefined4 *)(param_1 + 0x7c),iVar2,iVar3 + 1,puVar4)" (parenthesized_expression "(*(code *)PTR_FUN_000a61dc)" ( (pointer_expression "*(code *)PTR_FUN_000a61dc" * (cast_expression "(code *)PTR_FUN_000a61dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0x7c),iVar2,iVar3 + 1,puVar4)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x7c)" * (cast_expression "(undefined4 *)(param_1 + 0x7c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x7c)" ( (binary_expression "param_1 + 0x7c" identifier + number_literal) )))) , identifier , (binary_expression "iVar3 + 1" identifier + number_literal) , identifier )))) ;) (expression_statement "puVar1 = PTR_PTR_free_000a6144;" (assignment_expression "puVar1 = PTR_PTR_free_000a6144" identifier = identifier) ;) (if_statement "if (iVar3 == 0) {\n        (**(code **)PTR_PTR_free_000a6144)(puVar4);\n        (**(code **)puVar1)(iVar2);\n      }\n      else {\n        pcVar5 = *(code **)PTR_PTR_free_000a6144;\n        *(int *)(iVar3 + 8) = *(int *)(iVar3 + 8) + 1;\n        (*pcVar5)(iVar2);\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        (**(code **)PTR_PTR_free_000a6144)(puVar4);\n        (**(code **)puVar1)(iVar2);\n      }" { (expression_statement "(**(code **)PTR_PTR_free_000a6144)(puVar4);" (call_expression "(**(code **)PTR_PTR_free_000a6144)(puVar4)" (parenthesized_expression "(**(code **)PTR_PTR_free_000a6144)" ( (pointer_expression "**(code **)PTR_PTR_free_000a6144" * (pointer_expression "*(code **)PTR_PTR_free_000a6144" * (cast_expression "(code **)PTR_PTR_free_000a6144" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(puVar4)" ( identifier ))) ;) (expression_statement "(**(code **)puVar1)(iVar2);" (call_expression "(**(code **)puVar1)(iVar2)" (parenthesized_expression "(**(code **)puVar1)" ( (pointer_expression "**(code **)puVar1" * (pointer_expression "*(code **)puVar1" * (cast_expression "(code **)puVar1" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(iVar2)" ( identifier ))) ;) }) (else_clause "else {\n        pcVar5 = *(code **)PTR_PTR_free_000a6144;\n        *(int *)(iVar3 + 8) = *(int *)(iVar3 + 8) + 1;\n        (*pcVar5)(iVar2);\n      }" else (compound_statement "{\n        pcVar5 = *(code **)PTR_PTR_free_000a6144;\n        *(int *)(iVar3 + 8) = *(int *)(iVar3 + 8) + 1;\n        (*pcVar5)(iVar2);\n      }" { (expression_statement "pcVar5 = *(code **)PTR_PTR_free_000a6144;" (assignment_expression "pcVar5 = *(code **)PTR_PTR_free_000a6144" identifier = (pointer_expression "*(code **)PTR_PTR_free_000a6144" * (cast_expression "(code **)PTR_PTR_free_000a6144" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "*(int *)(iVar3 + 8) = *(int *)(iVar3 + 8) + 1;" (assignment_expression "*(int *)(iVar3 + 8) = *(int *)(iVar3 + 8) + 1" (pointer_expression "*(int *)(iVar3 + 8)" * (cast_expression "(int *)(iVar3 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar3 + 8) + 1" (pointer_expression "*(int *)(iVar3 + 8)" * (cast_expression "(int *)(iVar3 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "(*pcVar5)(iVar2);" (call_expression "(*pcVar5)(iVar2)" (parenthesized_expression "(*pcVar5)" ( (pointer_expression "*pcVar5" * identifier) )) (argument_list "(iVar2)" ( identifier ))) ;) }))) (return_statement "return iVar3;" return identifier ;) })) (expression_statement "(**(code **)PTR_PTR_free_000a6144)(iVar2);" (call_expression "(**(code **)PTR_PTR_free_000a6144)(iVar2)" (parenthesized_expression "(**(code **)PTR_PTR_free_000a6144)" ( (pointer_expression "**(code **)PTR_PTR_free_000a6144" * (pointer_expression "*(code **)PTR_PTR_free_000a6144" * (cast_expression "(code **)PTR_PTR_free_000a6144" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(iVar2)" ( identifier ))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nCurl_dns_entry * Curl_cache_addr(Curl_easy *data,Curl_addrinfo *addr,char *hostname,int port)\n\n{\n  undefined *puVar1;\n  CURLcode CVar2;\n  char *pcVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  Curl_dns_entry *pCVar6;\n  code *pcVar7;\n  Curl_addrinfo *local_res4;\n  char *pcStackX_8;\n  int iStackX_c;\n  \n  local_res4 = addr;\n  if (((data->set).dns_shuffle_addresses != false) &&\n     (pcStackX_8 = hostname, iStackX_c = port, CVar2 = Curl_shuffle_addr(data,&local_res4),\n     hostname = pcStackX_8, port = iStackX_c, CVar2 != CURLE_OK)) {\n    return (Curl_dns_entry *)0x0;\n  }\n  pcVar3 = create_hostcache_id(hostname,port);\n  if (pcVar3 != (char *)0x0) {\n    iVar4 = (*(code *)PTR_strlen_000a6ea8)(pcVar3);\n    puVar5 = (undefined4 *)(**(code **)PTR_Curl_ccalloc_000a6140)(1,0xc);\n    puVar1 = PTR_time_000a6e00;\n    if (puVar5 != (undefined4 *)0x0) {\n      puVar5[2] = 1;\n      *puVar5 = local_res4;\n      (*(code *)puVar1)(puVar5 + 1);\n      if (puVar5[1] == 0) {\n        puVar5[1] = 1;\n      }\n      pCVar6 = (Curl_dns_entry *)\n               (*(code *)PTR_Curl_hash_add_000a61dc)((data->dns).hostcache,pcVar3,iVar4 + 1,puVar5);\n      puVar1 = PTR_Curl_cfree_000a6144;\n      if (pCVar6 == (Curl_dns_entry *)0x0) {\n        (**(code **)PTR_Curl_cfree_000a6144)(puVar5);\n        (**(code **)puVar1)(pcVar3);\n      }\n      else {\n        pcVar7 = *(code **)PTR_Curl_cfree_000a6144;\n        pCVar6->inuse = pCVar6->inuse + 1;\n        (*pcVar7)(pcVar3);\n      }\n      return pCVar6;\n    }\n    (**(code **)PTR_Curl_cfree_000a6144)(pcVar3);\n  }\n  return (Curl_dns_entry *)0x0;\n}\n\n" comment (function_definition "Curl_dns_entry * Curl_cache_addr(Curl_easy *data,Curl_addrinfo *addr,char *hostname,int port)\n\n{\n  undefined *puVar1;\n  CURLcode CVar2;\n  char *pcVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  Curl_dns_entry *pCVar6;\n  code *pcVar7;\n  Curl_addrinfo *local_res4;\n  char *pcStackX_8;\n  int iStackX_c;\n  \n  local_res4 = addr;\n  if (((data->set).dns_shuffle_addresses != false) &&\n     (pcStackX_8 = hostname, iStackX_c = port, CVar2 = Curl_shuffle_addr(data,&local_res4),\n     hostname = pcStackX_8, port = iStackX_c, CVar2 != CURLE_OK)) {\n    return (Curl_dns_entry *)0x0;\n  }\n  pcVar3 = create_hostcache_id(hostname,port);\n  if (pcVar3 != (char *)0x0) {\n    iVar4 = (*(code *)PTR_strlen_000a6ea8)(pcVar3);\n    puVar5 = (undefined4 *)(**(code **)PTR_Curl_ccalloc_000a6140)(1,0xc);\n    puVar1 = PTR_time_000a6e00;\n    if (puVar5 != (undefined4 *)0x0) {\n      puVar5[2] = 1;\n      *puVar5 = local_res4;\n      (*(code *)puVar1)(puVar5 + 1);\n      if (puVar5[1] == 0) {\n        puVar5[1] = 1;\n      }\n      pCVar6 = (Curl_dns_entry *)\n               (*(code *)PTR_Curl_hash_add_000a61dc)((data->dns).hostcache,pcVar3,iVar4 + 1,puVar5);\n      puVar1 = PTR_Curl_cfree_000a6144;\n      if (pCVar6 == (Curl_dns_entry *)0x0) {\n        (**(code **)PTR_Curl_cfree_000a6144)(puVar5);\n        (**(code **)puVar1)(pcVar3);\n      }\n      else {\n        pcVar7 = *(code **)PTR_Curl_cfree_000a6144;\n        pCVar6->inuse = pCVar6->inuse + 1;\n        (*pcVar7)(pcVar3);\n      }\n      return pCVar6;\n    }\n    (**(code **)PTR_Curl_cfree_000a6144)(pcVar3);\n  }\n  return (Curl_dns_entry *)0x0;\n}" type_identifier (pointer_declarator "* Curl_cache_addr(Curl_easy *data,Curl_addrinfo *addr,char *hostname,int port)" * (function_declarator "Curl_cache_addr(Curl_easy *data,Curl_addrinfo *addr,char *hostname,int port)" identifier (parameter_list "(Curl_easy *data,Curl_addrinfo *addr,char *hostname,int port)" ( (parameter_declaration "Curl_easy *data" type_identifier (pointer_declarator "*data" * identifier)) , (parameter_declaration "Curl_addrinfo *addr" type_identifier (pointer_declarator "*addr" * identifier)) , (parameter_declaration "char *hostname" primitive_type (pointer_declarator "*hostname" * identifier)) , (parameter_declaration "int port" primitive_type identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  CURLcode CVar2;\n  char *pcVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  Curl_dns_entry *pCVar6;\n  code *pcVar7;\n  Curl_addrinfo *local_res4;\n  char *pcStackX_8;\n  int iStackX_c;\n  \n  local_res4 = addr;\n  if (((data->set).dns_shuffle_addresses != false) &&\n     (pcStackX_8 = hostname, iStackX_c = port, CVar2 = Curl_shuffle_addr(data,&local_res4),\n     hostname = pcStackX_8, port = iStackX_c, CVar2 != CURLE_OK)) {\n    return (Curl_dns_entry *)0x0;\n  }\n  pcVar3 = create_hostcache_id(hostname,port);\n  if (pcVar3 != (char *)0x0) {\n    iVar4 = (*(code *)PTR_strlen_000a6ea8)(pcVar3);\n    puVar5 = (undefined4 *)(**(code **)PTR_Curl_ccalloc_000a6140)(1,0xc);\n    puVar1 = PTR_time_000a6e00;\n    if (puVar5 != (undefined4 *)0x0) {\n      puVar5[2] = 1;\n      *puVar5 = local_res4;\n      (*(code *)puVar1)(puVar5 + 1);\n      if (puVar5[1] == 0) {\n        puVar5[1] = 1;\n      }\n      pCVar6 = (Curl_dns_entry *)\n               (*(code *)PTR_Curl_hash_add_000a61dc)((data->dns).hostcache,pcVar3,iVar4 + 1,puVar5);\n      puVar1 = PTR_Curl_cfree_000a6144;\n      if (pCVar6 == (Curl_dns_entry *)0x0) {\n        (**(code **)PTR_Curl_cfree_000a6144)(puVar5);\n        (**(code **)puVar1)(pcVar3);\n      }\n      else {\n        pcVar7 = *(code **)PTR_Curl_cfree_000a6144;\n        pCVar6->inuse = pCVar6->inuse + 1;\n        (*pcVar7)(pcVar3);\n      }\n      return pCVar6;\n    }\n    (**(code **)PTR_Curl_cfree_000a6144)(pcVar3);\n  }\n  return (Curl_dns_entry *)0x0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "CURLcode CVar2;" type_identifier identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "Curl_dns_entry *pCVar6;" type_identifier (pointer_declarator "*pCVar6" * identifier) ;) (declaration "code *pcVar7;" type_identifier (pointer_declarator "*pcVar7" * identifier) ;) (declaration "Curl_addrinfo *local_res4;" type_identifier (pointer_declarator "*local_res4" * identifier) ;) (declaration "char *pcStackX_8;" primitive_type (pointer_declarator "*pcStackX_8" * identifier) ;) (declaration "int iStackX_c;" primitive_type identifier ;) (expression_statement "local_res4 = addr;" (assignment_expression "local_res4 = addr" identifier = identifier) ;) (if_statement "if (((data->set).dns_shuffle_addresses != false) &&\n     (pcStackX_8 = hostname, iStackX_c = port, CVar2 = Curl_shuffle_addr(data,&local_res4),\n     hostname = pcStackX_8, port = iStackX_c, CVar2 != CURLE_OK)) {\n    return (Curl_dns_entry *)0x0;\n  }" if (parenthesized_expression "(((data->set).dns_shuffle_addresses != false) &&\n     (pcStackX_8 = hostname, iStackX_c = port, CVar2 = Curl_shuffle_addr(data,&local_res4),\n     hostname = pcStackX_8, port = iStackX_c, CVar2 != CURLE_OK))" ( (binary_expression "((data->set).dns_shuffle_addresses != false) &&\n     (pcStackX_8 = hostname, iStackX_c = port, CVar2 = Curl_shuffle_addr(data,&local_res4),\n     hostname = pcStackX_8, port = iStackX_c, CVar2 != CURLE_OK)" (parenthesized_expression "((data->set).dns_shuffle_addresses != false)" ( (binary_expression "(data->set).dns_shuffle_addresses != false" (field_expression "(data->set).dns_shuffle_addresses" (parenthesized_expression "(data->set)" ( (field_expression "data->set" identifier -> field_identifier) )) . field_identifier) != false) )) && (parenthesized_expression "(pcStackX_8 = hostname, iStackX_c = port, CVar2 = Curl_shuffle_addr(data,&local_res4),\n     hostname = pcStackX_8, port = iStackX_c, CVar2 != CURLE_OK)" ( (comma_expression "pcStackX_8 = hostname, iStackX_c = port, CVar2 = Curl_shuffle_addr(data,&local_res4),\n     hostname = pcStackX_8, port = iStackX_c, CVar2 != CURLE_OK" (assignment_expression "pcStackX_8 = hostname" identifier = identifier) , (comma_expression "iStackX_c = port, CVar2 = Curl_shuffle_addr(data,&local_res4),\n     hostname = pcStackX_8, port = iStackX_c, CVar2 != CURLE_OK" (assignment_expression "iStackX_c = port" identifier = identifier) , (comma_expression "CVar2 = Curl_shuffle_addr(data,&local_res4),\n     hostname = pcStackX_8, port = iStackX_c, CVar2 != CURLE_OK" (assignment_expression "CVar2 = Curl_shuffle_addr(data,&local_res4)" identifier = (call_expression "Curl_shuffle_addr(data,&local_res4)" identifier (argument_list "(data,&local_res4)" ( identifier , (pointer_expression "&local_res4" & identifier) )))) , (comma_expression "hostname = pcStackX_8, port = iStackX_c, CVar2 != CURLE_OK" (assignment_expression "hostname = pcStackX_8" identifier = identifier) , (comma_expression "port = iStackX_c, CVar2 != CURLE_OK" (assignment_expression "port = iStackX_c" identifier = identifier) , (binary_expression "CVar2 != CURLE_OK" identifier != identifier)))))) ))) )) (compound_statement "{\n    return (Curl_dns_entry *)0x0;\n  }" { (return_statement "return (Curl_dns_entry *)0x0;" return (cast_expression "(Curl_dns_entry *)0x0" ( (type_descriptor "Curl_dns_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "pcVar3 = create_hostcache_id(hostname,port);" (assignment_expression "pcVar3 = create_hostcache_id(hostname,port)" identifier = (call_expression "create_hostcache_id(hostname,port)" identifier (argument_list "(hostname,port)" ( identifier , identifier )))) ;) (if_statement "if (pcVar3 != (char *)0x0) {\n    iVar4 = (*(code *)PTR_strlen_000a6ea8)(pcVar3);\n    puVar5 = (undefined4 *)(**(code **)PTR_Curl_ccalloc_000a6140)(1,0xc);\n    puVar1 = PTR_time_000a6e00;\n    if (puVar5 != (undefined4 *)0x0) {\n      puVar5[2] = 1;\n      *puVar5 = local_res4;\n      (*(code *)puVar1)(puVar5 + 1);\n      if (puVar5[1] == 0) {\n        puVar5[1] = 1;\n      }\n      pCVar6 = (Curl_dns_entry *)\n               (*(code *)PTR_Curl_hash_add_000a61dc)((data->dns).hostcache,pcVar3,iVar4 + 1,puVar5);\n      puVar1 = PTR_Curl_cfree_000a6144;\n      if (pCVar6 == (Curl_dns_entry *)0x0) {\n        (**(code **)PTR_Curl_cfree_000a6144)(puVar5);\n        (**(code **)puVar1)(pcVar3);\n      }\n      else {\n        pcVar7 = *(code **)PTR_Curl_cfree_000a6144;\n        pCVar6->inuse = pCVar6->inuse + 1;\n        (*pcVar7)(pcVar3);\n      }\n      return pCVar6;\n    }\n    (**(code **)PTR_Curl_cfree_000a6144)(pcVar3);\n  }" if (parenthesized_expression "(pcVar3 != (char *)0x0)" ( (binary_expression "pcVar3 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar4 = (*(code *)PTR_strlen_000a6ea8)(pcVar3);\n    puVar5 = (undefined4 *)(**(code **)PTR_Curl_ccalloc_000a6140)(1,0xc);\n    puVar1 = PTR_time_000a6e00;\n    if (puVar5 != (undefined4 *)0x0) {\n      puVar5[2] = 1;\n      *puVar5 = local_res4;\n      (*(code *)puVar1)(puVar5 + 1);\n      if (puVar5[1] == 0) {\n        puVar5[1] = 1;\n      }\n      pCVar6 = (Curl_dns_entry *)\n               (*(code *)PTR_Curl_hash_add_000a61dc)((data->dns).hostcache,pcVar3,iVar4 + 1,puVar5);\n      puVar1 = PTR_Curl_cfree_000a6144;\n      if (pCVar6 == (Curl_dns_entry *)0x0) {\n        (**(code **)PTR_Curl_cfree_000a6144)(puVar5);\n        (**(code **)puVar1)(pcVar3);\n      }\n      else {\n        pcVar7 = *(code **)PTR_Curl_cfree_000a6144;\n        pCVar6->inuse = pCVar6->inuse + 1;\n        (*pcVar7)(pcVar3);\n      }\n      return pCVar6;\n    }\n    (**(code **)PTR_Curl_cfree_000a6144)(pcVar3);\n  }" { (expression_statement "iVar4 = (*(code *)PTR_strlen_000a6ea8)(pcVar3);" (assignment_expression "iVar4 = (*(code *)PTR_strlen_000a6ea8)(pcVar3)" identifier = (call_expression "(*(code *)PTR_strlen_000a6ea8)(pcVar3)" (parenthesized_expression "(*(code *)PTR_strlen_000a6ea8)" ( (pointer_expression "*(code *)PTR_strlen_000a6ea8" * (cast_expression "(code *)PTR_strlen_000a6ea8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar3)" ( identifier )))) ;) (expression_statement "puVar5 = (undefined4 *)(**(code **)PTR_Curl_ccalloc_000a6140)(1,0xc);" (assignment_expression "puVar5 = (undefined4 *)(**(code **)PTR_Curl_ccalloc_000a6140)(1,0xc)" identifier = (cast_expression "(undefined4 *)(**(code **)PTR_Curl_ccalloc_000a6140)(1,0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)PTR_Curl_ccalloc_000a6140)(1,0xc)" (parenthesized_expression "(**(code **)PTR_Curl_ccalloc_000a6140)" ( (pointer_expression "**(code **)PTR_Curl_ccalloc_000a6140" * (pointer_expression "*(code **)PTR_Curl_ccalloc_000a6140" * (cast_expression "(code **)PTR_Curl_ccalloc_000a6140" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(1,0xc)" ( number_literal , number_literal ))))) ;) (expression_statement "puVar1 = PTR_time_000a6e00;" (assignment_expression "puVar1 = PTR_time_000a6e00" identifier = identifier) ;) (if_statement "if (puVar5 != (undefined4 *)0x0) {\n      puVar5[2] = 1;\n      *puVar5 = local_res4;\n      (*(code *)puVar1)(puVar5 + 1);\n      if (puVar5[1] == 0) {\n        puVar5[1] = 1;\n      }\n      pCVar6 = (Curl_dns_entry *)\n               (*(code *)PTR_Curl_hash_add_000a61dc)((data->dns).hostcache,pcVar3,iVar4 + 1,puVar5);\n      puVar1 = PTR_Curl_cfree_000a6144;\n      if (pCVar6 == (Curl_dns_entry *)0x0) {\n        (**(code **)PTR_Curl_cfree_000a6144)(puVar5);\n        (**(code **)puVar1)(pcVar3);\n      }\n      else {\n        pcVar7 = *(code **)PTR_Curl_cfree_000a6144;\n        pCVar6->inuse = pCVar6->inuse + 1;\n        (*pcVar7)(pcVar3);\n      }\n      return pCVar6;\n    }" if (parenthesized_expression "(puVar5 != (undefined4 *)0x0)" ( (binary_expression "puVar5 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar5[2] = 1;\n      *puVar5 = local_res4;\n      (*(code *)puVar1)(puVar5 + 1);\n      if (puVar5[1] == 0) {\n        puVar5[1] = 1;\n      }\n      pCVar6 = (Curl_dns_entry *)\n               (*(code *)PTR_Curl_hash_add_000a61dc)((data->dns).hostcache,pcVar3,iVar4 + 1,puVar5);\n      puVar1 = PTR_Curl_cfree_000a6144;\n      if (pCVar6 == (Curl_dns_entry *)0x0) {\n        (**(code **)PTR_Curl_cfree_000a6144)(puVar5);\n        (**(code **)puVar1)(pcVar3);\n      }\n      else {\n        pcVar7 = *(code **)PTR_Curl_cfree_000a6144;\n        pCVar6->inuse = pCVar6->inuse + 1;\n        (*pcVar7)(pcVar3);\n      }\n      return pCVar6;\n    }" { (expression_statement "puVar5[2] = 1;" (assignment_expression "puVar5[2] = 1" (subscript_expression "puVar5[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar5 = local_res4;" (assignment_expression "*puVar5 = local_res4" (pointer_expression "*puVar5" * identifier) = identifier) ;) (expression_statement "(*(code *)puVar1)(puVar5 + 1);" (call_expression "(*(code *)puVar1)(puVar5 + 1)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar5 + 1)" ( (binary_expression "puVar5 + 1" identifier + number_literal) ))) ;) (if_statement "if (puVar5[1] == 0) {\n        puVar5[1] = 1;\n      }" if (parenthesized_expression "(puVar5[1] == 0)" ( (binary_expression "puVar5[1] == 0" (subscript_expression "puVar5[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n        puVar5[1] = 1;\n      }" { (expression_statement "puVar5[1] = 1;" (assignment_expression "puVar5[1] = 1" (subscript_expression "puVar5[1]" identifier [ number_literal ]) = number_literal) ;) })) (expression_statement "pCVar6 = (Curl_dns_entry *)\n               (*(code *)PTR_Curl_hash_add_000a61dc)((data->dns).hostcache,pcVar3,iVar4 + 1,puVar5);" (assignment_expression "pCVar6 = (Curl_dns_entry *)\n               (*(code *)PTR_Curl_hash_add_000a61dc)((data->dns).hostcache,pcVar3,iVar4 + 1,puVar5)" identifier = (cast_expression "(Curl_dns_entry *)\n               (*(code *)PTR_Curl_hash_add_000a61dc)((data->dns).hostcache,pcVar3,iVar4 + 1,puVar5)" ( (type_descriptor "Curl_dns_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_Curl_hash_add_000a61dc)((data->dns).hostcache,pcVar3,iVar4 + 1,puVar5)" (parenthesized_expression "(*(code *)PTR_Curl_hash_add_000a61dc)" ( (pointer_expression "*(code *)PTR_Curl_hash_add_000a61dc" * (cast_expression "(code *)PTR_Curl_hash_add_000a61dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "((data->dns).hostcache,pcVar3,iVar4 + 1,puVar5)" ( (field_expression "(data->dns).hostcache" (parenthesized_expression "(data->dns)" ( (field_expression "data->dns" identifier -> field_identifier) )) . field_identifier) , identifier , (binary_expression "iVar4 + 1" identifier + number_literal) , identifier ))))) ;) (expression_statement "puVar1 = PTR_Curl_cfree_000a6144;" (assignment_expression "puVar1 = PTR_Curl_cfree_000a6144" identifier = identifier) ;) (if_statement "if (pCVar6 == (Curl_dns_entry *)0x0) {\n        (**(code **)PTR_Curl_cfree_000a6144)(puVar5);\n        (**(code **)puVar1)(pcVar3);\n      }\n      else {\n        pcVar7 = *(code **)PTR_Curl_cfree_000a6144;\n        pCVar6->inuse = pCVar6->inuse + 1;\n        (*pcVar7)(pcVar3);\n      }" if (parenthesized_expression "(pCVar6 == (Curl_dns_entry *)0x0)" ( (binary_expression "pCVar6 == (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        (**(code **)PTR_Curl_cfree_000a6144)(puVar5);\n        (**(code **)puVar1)(pcVar3);\n      }" { (expression_statement "(**(code **)PTR_Curl_cfree_000a6144)(puVar5);" (call_expression "(**(code **)PTR_Curl_cfree_000a6144)(puVar5)" (parenthesized_expression "(**(code **)PTR_Curl_cfree_000a6144)" ( (pointer_expression "**(code **)PTR_Curl_cfree_000a6144" * (pointer_expression "*(code **)PTR_Curl_cfree_000a6144" * (cast_expression "(code **)PTR_Curl_cfree_000a6144" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(puVar5)" ( identifier ))) ;) (expression_statement "(**(code **)puVar1)(pcVar3);" (call_expression "(**(code **)puVar1)(pcVar3)" (parenthesized_expression "(**(code **)puVar1)" ( (pointer_expression "**(code **)puVar1" * (pointer_expression "*(code **)puVar1" * (cast_expression "(code **)puVar1" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(pcVar3)" ( identifier ))) ;) }) (else_clause "else {\n        pcVar7 = *(code **)PTR_Curl_cfree_000a6144;\n        pCVar6->inuse = pCVar6->inuse + 1;\n        (*pcVar7)(pcVar3);\n      }" else (compound_statement "{\n        pcVar7 = *(code **)PTR_Curl_cfree_000a6144;\n        pCVar6->inuse = pCVar6->inuse + 1;\n        (*pcVar7)(pcVar3);\n      }" { (expression_statement "pcVar7 = *(code **)PTR_Curl_cfree_000a6144;" (assignment_expression "pcVar7 = *(code **)PTR_Curl_cfree_000a6144" identifier = (pointer_expression "*(code **)PTR_Curl_cfree_000a6144" * (cast_expression "(code **)PTR_Curl_cfree_000a6144" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "pCVar6->inuse = pCVar6->inuse + 1;" (assignment_expression "pCVar6->inuse = pCVar6->inuse + 1" (field_expression "pCVar6->inuse" identifier -> field_identifier) = (binary_expression "pCVar6->inuse + 1" (field_expression "pCVar6->inuse" identifier -> field_identifier) + number_literal)) ;) (expression_statement "(*pcVar7)(pcVar3);" (call_expression "(*pcVar7)(pcVar3)" (parenthesized_expression "(*pcVar7)" ( (pointer_expression "*pcVar7" * identifier) )) (argument_list "(pcVar3)" ( identifier ))) ;) }))) (return_statement "return pCVar6;" return identifier ;) })) (expression_statement "(**(code **)PTR_Curl_cfree_000a6144)(pcVar3);" (call_expression "(**(code **)PTR_Curl_cfree_000a6144)(pcVar3)" (parenthesized_expression "(**(code **)PTR_Curl_cfree_000a6144)" ( (pointer_expression "**(code **)PTR_Curl_cfree_000a6144" * (pointer_expression "*(code **)PTR_Curl_cfree_000a6144" * (cast_expression "(code **)PTR_Curl_cfree_000a6144" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(pcVar3)" ( identifier ))) ;) })) (return_statement "return (Curl_dns_entry *)0x0;" return (cast_expression "(Curl_dns_entry *)0x0" ( (type_descriptor "Curl_dns_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "int FUN_000190f4(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  code *pcVar5;\n  undefined4 local_res4;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  local_res4 = param_2;\n  if ((*(char *)(param_1 + 0xaf9) != '\0') &&\n     (local_res8 = param_3, local_resc = param_4, iVar2 = FUN_00018f00(param_1,&local_res4),\n     param_3 = local_res8, param_4 = local_resc, iVar2 != 0)) {\n    return 0;\n  }\n  iVar2 = FUN_000188a8(param_3,param_4);\n  if (iVar2 != 0) {\n    iVar3 = (*(code *)PTR_strlen_000a6ea8)(iVar2);\n    puVar4 = (undefined4 *)(**(code **)PTR_PTR_calloc_000a6140)(1,0xc);\n    puVar1 = PTR_time_000a6e00;\n    if (puVar4 != (undefined4 *)0x0) {\n      puVar4[2] = 1;\n      *puVar4 = local_res4;\n      (*(code *)puVar1)(puVar4 + 1);\n      if (puVar4[1] == 0) {\n        puVar4[1] = 1;\n      }\n      iVar3 = (*(code *)PTR_FUN_000a61dc)(*(undefined4 *)(param_1 + 0x7c),iVar2,iVar3 + 1,puVar4);\n      puVar1 = PTR_PTR_free_000a6144;\n      if (iVar3 == 0) {\n        (**(code **)PTR_PTR_free_000a6144)(puVar4);\n        (**(code **)puVar1)(iVar2);\n      }\n      else {\n        pcVar5 = *(code **)PTR_PTR_free_000a6144;\n        *(int *)(iVar3 + 8) = *(int *)(iVar3 + 8) + 1;\n        (*pcVar5)(iVar2);\n      }\n      return iVar3;\n    }\n    (**(code **)PTR_PTR_free_000a6144)(iVar2);\n  }\n  return 0;\n}\n\n" (function_definition "int FUN_000190f4(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  code *pcVar5;\n  undefined4 local_res4;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  local_res4 = param_2;\n  if ((*(char *)(param_1 + 0xaf9) != '\0') &&\n     (local_res8 = param_3, local_resc = param_4, iVar2 = FUN_00018f00(param_1,&local_res4),\n     param_3 = local_res8, param_4 = local_resc, iVar2 != 0)) {\n    return 0;\n  }\n  iVar2 = FUN_000188a8(param_3,param_4);\n  if (iVar2 != 0) {\n    iVar3 = (*(code *)PTR_strlen_000a6ea8)(iVar2);\n    puVar4 = (undefined4 *)(**(code **)PTR_PTR_calloc_000a6140)(1,0xc);\n    puVar1 = PTR_time_000a6e00;\n    if (puVar4 != (undefined4 *)0x0) {\n      puVar4[2] = 1;\n      *puVar4 = local_res4;\n      (*(code *)puVar1)(puVar4 + 1);\n      if (puVar4[1] == 0) {\n        puVar4[1] = 1;\n      }\n      iVar3 = (*(code *)PTR_FUN_000a61dc)(*(undefined4 *)(param_1 + 0x7c),iVar2,iVar3 + 1,puVar4);\n      puVar1 = PTR_PTR_free_000a6144;\n      if (iVar3 == 0) {\n        (**(code **)PTR_PTR_free_000a6144)(puVar4);\n        (**(code **)puVar1)(iVar2);\n      }\n      else {\n        pcVar5 = *(code **)PTR_PTR_free_000a6144;\n        *(int *)(iVar3 + 8) = *(int *)(iVar3 + 8) + 1;\n        (*pcVar5)(iVar2);\n      }\n      return iVar3;\n    }\n    (**(code **)PTR_PTR_free_000a6144)(iVar2);\n  }\n  return 0;\n}" primitive_type (function_declarator "FUN_000190f4(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  code *pcVar5;\n  undefined4 local_res4;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  local_res4 = param_2;\n  if ((*(char *)(param_1 + 0xaf9) != '\0') &&\n     (local_res8 = param_3, local_resc = param_4, iVar2 = FUN_00018f00(param_1,&local_res4),\n     param_3 = local_res8, param_4 = local_resc, iVar2 != 0)) {\n    return 0;\n  }\n  iVar2 = FUN_000188a8(param_3,param_4);\n  if (iVar2 != 0) {\n    iVar3 = (*(code *)PTR_strlen_000a6ea8)(iVar2);\n    puVar4 = (undefined4 *)(**(code **)PTR_PTR_calloc_000a6140)(1,0xc);\n    puVar1 = PTR_time_000a6e00;\n    if (puVar4 != (undefined4 *)0x0) {\n      puVar4[2] = 1;\n      *puVar4 = local_res4;\n      (*(code *)puVar1)(puVar4 + 1);\n      if (puVar4[1] == 0) {\n        puVar4[1] = 1;\n      }\n      iVar3 = (*(code *)PTR_FUN_000a61dc)(*(undefined4 *)(param_1 + 0x7c),iVar2,iVar3 + 1,puVar4);\n      puVar1 = PTR_PTR_free_000a6144;\n      if (iVar3 == 0) {\n        (**(code **)PTR_PTR_free_000a6144)(puVar4);\n        (**(code **)puVar1)(iVar2);\n      }\n      else {\n        pcVar5 = *(code **)PTR_PTR_free_000a6144;\n        *(int *)(iVar3 + 8) = *(int *)(iVar3 + 8) + 1;\n        (*pcVar5)(iVar2);\n      }\n      return iVar3;\n    }\n    (**(code **)PTR_PTR_free_000a6144)(iVar2);\n  }\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "code *pcVar5;" type_identifier (pointer_declarator "*pcVar5" * identifier) ;) (declaration "undefined4 local_res4;" type_identifier identifier ;) (declaration "undefined4 local_res8;" type_identifier identifier ;) (declaration "undefined4 local_resc;" type_identifier identifier ;) (expression_statement "local_res4 = param_2;" (assignment_expression "local_res4 = param_2" identifier = identifier) ;) (if_statement "if ((*(char *)(param_1 + 0xaf9) != '\0') &&\n     (local_res8 = param_3, local_resc = param_4, iVar2 = FUN_00018f00(param_1,&local_res4),\n     param_3 = local_res8, param_4 = local_resc, iVar2 != 0)) {\n    return 0;\n  }" if (parenthesized_expression "((*(char *)(param_1 + 0xaf9) != '\0') &&\n     (local_res8 = param_3, local_resc = param_4, iVar2 = FUN_00018f00(param_1,&local_res4),\n     param_3 = local_res8, param_4 = local_resc, iVar2 != 0))" ( (binary_expression "(*(char *)(param_1 + 0xaf9) != '\0') &&\n     (local_res8 = param_3, local_resc = param_4, iVar2 = FUN_00018f00(param_1,&local_res4),\n     param_3 = local_res8, param_4 = local_resc, iVar2 != 0)" (parenthesized_expression "(*(char *)(param_1 + 0xaf9) != '\0')" ( (binary_expression "*(char *)(param_1 + 0xaf9) != '\0'" (pointer_expression "*(char *)(param_1 + 0xaf9)" * (cast_expression "(char *)(param_1 + 0xaf9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xaf9)" ( (binary_expression "param_1 + 0xaf9" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(local_res8 = param_3, local_resc = param_4, iVar2 = FUN_00018f00(param_1,&local_res4),\n     param_3 = local_res8, param_4 = local_resc, iVar2 != 0)" ( (comma_expression "local_res8 = param_3, local_resc = param_4, iVar2 = FUN_00018f00(param_1,&local_res4),\n     param_3 = local_res8, param_4 = local_resc, iVar2 != 0" (assignment_expression "local_res8 = param_3" identifier = identifier) , (comma_expression "local_resc = param_4, iVar2 = FUN_00018f00(param_1,&local_res4),\n     param_3 = local_res8, param_4 = local_resc, iVar2 != 0" (assignment_expression "local_resc = param_4" identifier = identifier) , (comma_expression "iVar2 = FUN_00018f00(param_1,&local_res4),\n     param_3 = local_res8, param_4 = local_resc, iVar2 != 0" (assignment_expression "iVar2 = FUN_00018f00(param_1,&local_res4)" identifier = (call_expression "FUN_00018f00(param_1,&local_res4)" identifier (argument_list "(param_1,&local_res4)" ( identifier , (pointer_expression "&local_res4" & identifier) )))) , (comma_expression "param_3 = local_res8, param_4 = local_resc, iVar2 != 0" (assignment_expression "param_3 = local_res8" identifier = identifier) , (comma_expression "param_4 = local_resc, iVar2 != 0" (assignment_expression "param_4 = local_resc" identifier = identifier) , (binary_expression "iVar2 != 0" identifier != number_literal)))))) ))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = FUN_000188a8(param_3,param_4);" (assignment_expression "iVar2 = FUN_000188a8(param_3,param_4)" identifier = (call_expression "FUN_000188a8(param_3,param_4)" identifier (argument_list "(param_3,param_4)" ( identifier , identifier )))) ;) (if_statement "if (iVar2 != 0) {\n    iVar3 = (*(code *)PTR_strlen_000a6ea8)(iVar2);\n    puVar4 = (undefined4 *)(**(code **)PTR_PTR_calloc_000a6140)(1,0xc);\n    puVar1 = PTR_time_000a6e00;\n    if (puVar4 != (undefined4 *)0x0) {\n      puVar4[2] = 1;\n      *puVar4 = local_res4;\n      (*(code *)puVar1)(puVar4 + 1);\n      if (puVar4[1] == 0) {\n        puVar4[1] = 1;\n      }\n      iVar3 = (*(code *)PTR_FUN_000a61dc)(*(undefined4 *)(param_1 + 0x7c),iVar2,iVar3 + 1,puVar4);\n      puVar1 = PTR_PTR_free_000a6144;\n      if (iVar3 == 0) {\n        (**(code **)PTR_PTR_free_000a6144)(puVar4);\n        (**(code **)puVar1)(iVar2);\n      }\n      else {\n        pcVar5 = *(code **)PTR_PTR_free_000a6144;\n        *(int *)(iVar3 + 8) = *(int *)(iVar3 + 8) + 1;\n        (*pcVar5)(iVar2);\n      }\n      return iVar3;\n    }\n    (**(code **)PTR_PTR_free_000a6144)(iVar2);\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar3 = (*(code *)PTR_strlen_000a6ea8)(iVar2);\n    puVar4 = (undefined4 *)(**(code **)PTR_PTR_calloc_000a6140)(1,0xc);\n    puVar1 = PTR_time_000a6e00;\n    if (puVar4 != (undefined4 *)0x0) {\n      puVar4[2] = 1;\n      *puVar4 = local_res4;\n      (*(code *)puVar1)(puVar4 + 1);\n      if (puVar4[1] == 0) {\n        puVar4[1] = 1;\n      }\n      iVar3 = (*(code *)PTR_FUN_000a61dc)(*(undefined4 *)(param_1 + 0x7c),iVar2,iVar3 + 1,puVar4);\n      puVar1 = PTR_PTR_free_000a6144;\n      if (iVar3 == 0) {\n        (**(code **)PTR_PTR_free_000a6144)(puVar4);\n        (**(code **)puVar1)(iVar2);\n      }\n      else {\n        pcVar5 = *(code **)PTR_PTR_free_000a6144;\n        *(int *)(iVar3 + 8) = *(int *)(iVar3 + 8) + 1;\n        (*pcVar5)(iVar2);\n      }\n      return iVar3;\n    }\n    (**(code **)PTR_PTR_free_000a6144)(iVar2);\n  }" { (expression_statement "iVar3 = (*(code *)PTR_strlen_000a6ea8)(iVar2);" (assignment_expression "iVar3 = (*(code *)PTR_strlen_000a6ea8)(iVar2)" identifier = (call_expression "(*(code *)PTR_strlen_000a6ea8)(iVar2)" (parenthesized_expression "(*(code *)PTR_strlen_000a6ea8)" ( (pointer_expression "*(code *)PTR_strlen_000a6ea8" * (cast_expression "(code *)PTR_strlen_000a6ea8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2)" ( identifier )))) ;) (expression_statement "puVar4 = (undefined4 *)(**(code **)PTR_PTR_calloc_000a6140)(1,0xc);" (assignment_expression "puVar4 = (undefined4 *)(**(code **)PTR_PTR_calloc_000a6140)(1,0xc)" identifier = (cast_expression "(undefined4 *)(**(code **)PTR_PTR_calloc_000a6140)(1,0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)PTR_PTR_calloc_000a6140)(1,0xc)" (parenthesized_expression "(**(code **)PTR_PTR_calloc_000a6140)" ( (pointer_expression "**(code **)PTR_PTR_calloc_000a6140" * (pointer_expression "*(code **)PTR_PTR_calloc_000a6140" * (cast_expression "(code **)PTR_PTR_calloc_000a6140" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(1,0xc)" ( number_literal , number_literal ))))) ;) (expression_statement "puVar1 = PTR_time_000a6e00;" (assignment_expression "puVar1 = PTR_time_000a6e00" identifier = identifier) ;) (if_statement "if (puVar4 != (undefined4 *)0x0) {\n      puVar4[2] = 1;\n      *puVar4 = local_res4;\n      (*(code *)puVar1)(puVar4 + 1);\n      if (puVar4[1] == 0) {\n        puVar4[1] = 1;\n      }\n      iVar3 = (*(code *)PTR_FUN_000a61dc)(*(undefined4 *)(param_1 + 0x7c),iVar2,iVar3 + 1,puVar4);\n      puVar1 = PTR_PTR_free_000a6144;\n      if (iVar3 == 0) {\n        (**(code **)PTR_PTR_free_000a6144)(puVar4);\n        (**(code **)puVar1)(iVar2);\n      }\n      else {\n        pcVar5 = *(code **)PTR_PTR_free_000a6144;\n        *(int *)(iVar3 + 8) = *(int *)(iVar3 + 8) + 1;\n        (*pcVar5)(iVar2);\n      }\n      return iVar3;\n    }" if (parenthesized_expression "(puVar4 != (undefined4 *)0x0)" ( (binary_expression "puVar4 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar4[2] = 1;\n      *puVar4 = local_res4;\n      (*(code *)puVar1)(puVar4 + 1);\n      if (puVar4[1] == 0) {\n        puVar4[1] = 1;\n      }\n      iVar3 = (*(code *)PTR_FUN_000a61dc)(*(undefined4 *)(param_1 + 0x7c),iVar2,iVar3 + 1,puVar4);\n      puVar1 = PTR_PTR_free_000a6144;\n      if (iVar3 == 0) {\n        (**(code **)PTR_PTR_free_000a6144)(puVar4);\n        (**(code **)puVar1)(iVar2);\n      }\n      else {\n        pcVar5 = *(code **)PTR_PTR_free_000a6144;\n        *(int *)(iVar3 + 8) = *(int *)(iVar3 + 8) + 1;\n        (*pcVar5)(iVar2);\n      }\n      return iVar3;\n    }" { (expression_statement "puVar4[2] = 1;" (assignment_expression "puVar4[2] = 1" (subscript_expression "puVar4[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar4 = local_res4;" (assignment_expression "*puVar4 = local_res4" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "(*(code *)puVar1)(puVar4 + 1);" (call_expression "(*(code *)puVar1)(puVar4 + 1)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar4 + 1)" ( (binary_expression "puVar4 + 1" identifier + number_literal) ))) ;) (if_statement "if (puVar4[1] == 0) {\n        puVar4[1] = 1;\n      }" if (parenthesized_expression "(puVar4[1] == 0)" ( (binary_expression "puVar4[1] == 0" (subscript_expression "puVar4[1]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n        puVar4[1] = 1;\n      }" { (expression_statement "puVar4[1] = 1;" (assignment_expression "puVar4[1] = 1" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = number_literal) ;) })) (expression_statement "iVar3 = (*(code *)PTR_FUN_000a61dc)(*(undefined4 *)(param_1 + 0x7c),iVar2,iVar3 + 1,puVar4);" (assignment_expression "iVar3 = (*(code *)PTR_FUN_000a61dc)(*(undefined4 *)(param_1 + 0x7c),iVar2,iVar3 + 1,puVar4)" identifier = (call_expression "(*(code *)PTR_FUN_000a61dc)(*(undefined4 *)(param_1 + 0x7c),iVar2,iVar3 + 1,puVar4)" (parenthesized_expression "(*(code *)PTR_FUN_000a61dc)" ( (pointer_expression "*(code *)PTR_FUN_000a61dc" * (cast_expression "(code *)PTR_FUN_000a61dc" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(*(undefined4 *)(param_1 + 0x7c),iVar2,iVar3 + 1,puVar4)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x7c)" * (cast_expression "(undefined4 *)(param_1 + 0x7c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x7c)" ( (binary_expression "param_1 + 0x7c" identifier + number_literal) )))) , identifier , (binary_expression "iVar3 + 1" identifier + number_literal) , identifier )))) ;) (expression_statement "puVar1 = PTR_PTR_free_000a6144;" (assignment_expression "puVar1 = PTR_PTR_free_000a6144" identifier = identifier) ;) (if_statement "if (iVar3 == 0) {\n        (**(code **)PTR_PTR_free_000a6144)(puVar4);\n        (**(code **)puVar1)(iVar2);\n      }\n      else {\n        pcVar5 = *(code **)PTR_PTR_free_000a6144;\n        *(int *)(iVar3 + 8) = *(int *)(iVar3 + 8) + 1;\n        (*pcVar5)(iVar2);\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        (**(code **)PTR_PTR_free_000a6144)(puVar4);\n        (**(code **)puVar1)(iVar2);\n      }" { (expression_statement "(**(code **)PTR_PTR_free_000a6144)(puVar4);" (call_expression "(**(code **)PTR_PTR_free_000a6144)(puVar4)" (parenthesized_expression "(**(code **)PTR_PTR_free_000a6144)" ( (pointer_expression "**(code **)PTR_PTR_free_000a6144" * (pointer_expression "*(code **)PTR_PTR_free_000a6144" * (cast_expression "(code **)PTR_PTR_free_000a6144" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(puVar4)" ( identifier ))) ;) (expression_statement "(**(code **)puVar1)(iVar2);" (call_expression "(**(code **)puVar1)(iVar2)" (parenthesized_expression "(**(code **)puVar1)" ( (pointer_expression "**(code **)puVar1" * (pointer_expression "*(code **)puVar1" * (cast_expression "(code **)puVar1" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(iVar2)" ( identifier ))) ;) }) (else_clause "else {\n        pcVar5 = *(code **)PTR_PTR_free_000a6144;\n        *(int *)(iVar3 + 8) = *(int *)(iVar3 + 8) + 1;\n        (*pcVar5)(iVar2);\n      }" else (compound_statement "{\n        pcVar5 = *(code **)PTR_PTR_free_000a6144;\n        *(int *)(iVar3 + 8) = *(int *)(iVar3 + 8) + 1;\n        (*pcVar5)(iVar2);\n      }" { (expression_statement "pcVar5 = *(code **)PTR_PTR_free_000a6144;" (assignment_expression "pcVar5 = *(code **)PTR_PTR_free_000a6144" identifier = (pointer_expression "*(code **)PTR_PTR_free_000a6144" * (cast_expression "(code **)PTR_PTR_free_000a6144" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "*(int *)(iVar3 + 8) = *(int *)(iVar3 + 8) + 1;" (assignment_expression "*(int *)(iVar3 + 8) = *(int *)(iVar3 + 8) + 1" (pointer_expression "*(int *)(iVar3 + 8)" * (cast_expression "(int *)(iVar3 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) )))) = (binary_expression "*(int *)(iVar3 + 8) + 1" (pointer_expression "*(int *)(iVar3 + 8)" * (cast_expression "(int *)(iVar3 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "(*pcVar5)(iVar2);" (call_expression "(*pcVar5)(iVar2)" (parenthesized_expression "(*pcVar5)" ( (pointer_expression "*pcVar5" * identifier) )) (argument_list "(iVar2)" ( identifier ))) ;) }))) (return_statement "return iVar3;" return identifier ;) })) (expression_statement "(**(code **)PTR_PTR_free_000a6144)(iVar2);" (call_expression "(**(code **)PTR_PTR_free_000a6144)(iVar2)" (parenthesized_expression "(**(code **)PTR_PTR_free_000a6144)" ( (pointer_expression "**(code **)PTR_PTR_free_000a6144" * (pointer_expression "*(code **)PTR_PTR_free_000a6144" * (cast_expression "(code **)PTR_PTR_free_000a6144" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(iVar2)" ( identifier ))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = IDENT) , (comma_expression (assignment_expression IDENT = IDENT) , (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression & IDENT) )))) , (comma_expression (assignment_expression IDENT = IDENT) , (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression IDENT != LIT)))))) ))) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) )) (argument_list ( LIT , LIT ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , (binary_expression IDENT + LIT) , IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) )) (argument_list ( IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) )) (argument_list ( IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT ))) ;) }))) (return_statement return IDENT ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) )) (argument_list ( IDENT ))) ;) })) (return_statement return LIT ;) })))
(function_definition "int FUN_000190f4(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  code *pcVar5;\n  undefined4 local_res4;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  local_res4 = param_2;\n  if ((*(char *)(param_1 + 0xaf9) != '\0') &&\n     (local_res8 = param_3, local_resc = param_4, iVar2 = FUN_00018f00(param_1,&local_res4),\n     param_3 = local_res8, param_4 = local_resc, iVar2 != 0)) {\n    return 0;\n  }\n  iVar2 = FUN_000188a8(param_3,param_4);\n  if (iVar2 != 0) {\n    iVar3 = (*(code *)PTR_strlen_000a6ea8)(iVar2);\n    puVar4 = (undefined4 *)(**(code **)PTR_PTR_calloc_000a6140)(1,0xc);\n    puVar1 = PTR_time_000a6e00;\n    if (puVar4 != (undefined4 *)0x0) {\n      puVar4[2] = 1;\n      *puVar4 = local_res4;\n      (*(code *)puVar1)(puVar4 + 1);\n      if (puVar4[1] == 0) {\n        puVar4[1] = 1;\n      }\n      iVar3 = (*(code *)PTR_FUN_000a61dc)(*(undefined4 *)(param_1 + 0x7c),iVar2,iVar3 + 1,puVar4);\n      puVar1 = PTR_PTR_free_000a6144;\n      if (iVar3 == 0) {\n        (**(code **)PTR_PTR_free_000a6144)(puVar4);\n        (**(code **)puVar1)(iVar2);\n      }\n      else {\n        pcVar5 = *(code **)PTR_PTR_free_000a6144;\n        *(int *)(iVar3 + 8) = *(int *)(iVar3 + 8) + 1;\n        (*pcVar5)(iVar2);\n      }\n      return iVar3;\n    }\n    (**(code **)PTR_PTR_free_000a6144)(iVar2);\n  }\n  return 0;\n}" (primitive_type "int") (function_declarator "FUN_000190f4(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (identifier "FUN_000190f4") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  code *pcVar5;\n  undefined4 local_res4;\n  undefined4 local_res8;\n  undefined4 local_resc;\n  \n  local_res4 = param_2;\n  if ((*(char *)(param_1 + 0xaf9) != '\0') &&\n     (local_res8 = param_3, local_resc = param_4, iVar2 = FUN_00018f00(param_1,&local_res4),\n     param_3 = local_res8, param_4 = local_resc, iVar2 != 0)) {\n    return 0;\n  }\n  iVar2 = FUN_000188a8(param_3,param_4);\n  if (iVar2 != 0) {\n    iVar3 = (*(code *)PTR_strlen_000a6ea8)(iVar2);\n    puVar4 = (undefined4 *)(**(code **)PTR_PTR_calloc_000a6140)(1,0xc);\n    puVar1 = PTR_time_000a6e00;\n    if (puVar4 != (undefined4 *)0x0) {\n      puVar4[2] = 1;\n      *puVar4 = local_res4;\n      (*(code *)puVar1)(puVar4 + 1);\n      if (puVar4[1] == 0) {\n        puVar4[1] = 1;\n      }\n      iVar3 = (*(code *)PTR_FUN_000a61dc)(*(undefined4 *)(param_1 + 0x7c),iVar2,iVar3 + 1,puVar4);\n      puVar1 = PTR_PTR_free_000a6144;\n      if (iVar3 == 0) {\n        (**(code **)PTR_PTR_free_000a6144)(puVar4);\n        (**(code **)puVar1)(iVar2);\n      }\n      else {\n        pcVar5 = *(code **)PTR_PTR_free_000a6144;\n        *(int *)(iVar3 + 8) = *(int *)(iVar3 + 8) + 1;\n        (*pcVar5)(iVar2);\n      }\n      return iVar3;\n    }\n    (**(code **)PTR_PTR_free_000a6144)(iVar2);\n  }\n  return 0;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "code *pcVar5;" (type_identifier "code") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "undefined4 local_res4;" (type_identifier "undefined4") (identifier "local_res4") (; ";")) (declaration "undefined4 local_res8;" (type_identifier "undefined4") (identifier "local_res8") (; ";")) (declaration "undefined4 local_resc;" (type_identifier "undefined4") (identifier "local_resc") (; ";")) (expression_statement "local_res4 = param_2;" (assignment_expression "local_res4 = param_2" (identifier "local_res4") (= "=") (identifier "param_2")) (; ";")) (if_statement "if ((*(char *)(param_1 + 0xaf9) != '\0') &&\n     (local_res8 = param_3, local_resc = param_4, iVar2 = FUN_00018f00(param_1,&local_res4),\n     param_3 = local_res8, param_4 = local_resc, iVar2 != 0)) {\n    return 0;\n  }" (if "if") (parenthesized_expression "((*(char *)(param_1 + 0xaf9) != '\0') &&\n     (local_res8 = param_3, local_resc = param_4, iVar2 = FUN_00018f00(param_1,&local_res4),\n     param_3 = local_res8, param_4 = local_resc, iVar2 != 0))" (( "(") (binary_expression "(*(char *)(param_1 + 0xaf9) != '\0') &&\n     (local_res8 = param_3, local_resc = param_4, iVar2 = FUN_00018f00(param_1,&local_res4),\n     param_3 = local_res8, param_4 = local_resc, iVar2 != 0)" (parenthesized_expression "(*(char *)(param_1 + 0xaf9) != '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0xaf9) != '\0'" (pointer_expression "*(char *)(param_1 + 0xaf9)" (* "*") (cast_expression "(char *)(param_1 + 0xaf9)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xaf9)" (( "(") (binary_expression "param_1 + 0xaf9" (identifier "param_1") (+ "+") (number_literal "0xaf9")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(local_res8 = param_3, local_resc = param_4, iVar2 = FUN_00018f00(param_1,&local_res4),\n     param_3 = local_res8, param_4 = local_resc, iVar2 != 0)" (( "(") (comma_expression "local_res8 = param_3, local_resc = param_4, iVar2 = FUN_00018f00(param_1,&local_res4),\n     param_3 = local_res8, param_4 = local_resc, iVar2 != 0" (assignment_expression "local_res8 = param_3" (identifier "local_res8") (= "=") (identifier "param_3")) (, ",") (comma_expression "local_resc = param_4, iVar2 = FUN_00018f00(param_1,&local_res4),\n     param_3 = local_res8, param_4 = local_resc, iVar2 != 0" (assignment_expression "local_resc = param_4" (identifier "local_resc") (= "=") (identifier "param_4")) (, ",") (comma_expression "iVar2 = FUN_00018f00(param_1,&local_res4),\n     param_3 = local_res8, param_4 = local_resc, iVar2 != 0" (assignment_expression "iVar2 = FUN_00018f00(param_1,&local_res4)" (identifier "iVar2") (= "=") (call_expression "FUN_00018f00(param_1,&local_res4)" (identifier "FUN_00018f00") (argument_list "(param_1,&local_res4)" (( "(") (identifier "param_1") (, ",") (pointer_expression "&local_res4" (& "&") (identifier "local_res4")) () ")")))) (, ",") (comma_expression "param_3 = local_res8, param_4 = local_resc, iVar2 != 0" (assignment_expression "param_3 = local_res8" (identifier "param_3") (= "=") (identifier "local_res8")) (, ",") (comma_expression "param_4 = local_resc, iVar2 != 0" (assignment_expression "param_4 = local_resc" (identifier "param_4") (= "=") (identifier "local_resc")) (, ",") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0"))))))) () ")"))) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar2 = FUN_000188a8(param_3,param_4);" (assignment_expression "iVar2 = FUN_000188a8(param_3,param_4)" (identifier "iVar2") (= "=") (call_expression "FUN_000188a8(param_3,param_4)" (identifier "FUN_000188a8") (argument_list "(param_3,param_4)" (( "(") (identifier "param_3") (, ",") (identifier "param_4") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n    iVar3 = (*(code *)PTR_strlen_000a6ea8)(iVar2);\n    puVar4 = (undefined4 *)(**(code **)PTR_PTR_calloc_000a6140)(1,0xc);\n    puVar1 = PTR_time_000a6e00;\n    if (puVar4 != (undefined4 *)0x0) {\n      puVar4[2] = 1;\n      *puVar4 = local_res4;\n      (*(code *)puVar1)(puVar4 + 1);\n      if (puVar4[1] == 0) {\n        puVar4[1] = 1;\n      }\n      iVar3 = (*(code *)PTR_FUN_000a61dc)(*(undefined4 *)(param_1 + 0x7c),iVar2,iVar3 + 1,puVar4);\n      puVar1 = PTR_PTR_free_000a6144;\n      if (iVar3 == 0) {\n        (**(code **)PTR_PTR_free_000a6144)(puVar4);\n        (**(code **)puVar1)(iVar2);\n      }\n      else {\n        pcVar5 = *(code **)PTR_PTR_free_000a6144;\n        *(int *)(iVar3 + 8) = *(int *)(iVar3 + 8) + 1;\n        (*pcVar5)(iVar2);\n      }\n      return iVar3;\n    }\n    (**(code **)PTR_PTR_free_000a6144)(iVar2);\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar3 = (*(code *)PTR_strlen_000a6ea8)(iVar2);\n    puVar4 = (undefined4 *)(**(code **)PTR_PTR_calloc_000a6140)(1,0xc);\n    puVar1 = PTR_time_000a6e00;\n    if (puVar4 != (undefined4 *)0x0) {\n      puVar4[2] = 1;\n      *puVar4 = local_res4;\n      (*(code *)puVar1)(puVar4 + 1);\n      if (puVar4[1] == 0) {\n        puVar4[1] = 1;\n      }\n      iVar3 = (*(code *)PTR_FUN_000a61dc)(*(undefined4 *)(param_1 + 0x7c),iVar2,iVar3 + 1,puVar4);\n      puVar1 = PTR_PTR_free_000a6144;\n      if (iVar3 == 0) {\n        (**(code **)PTR_PTR_free_000a6144)(puVar4);\n        (**(code **)puVar1)(iVar2);\n      }\n      else {\n        pcVar5 = *(code **)PTR_PTR_free_000a6144;\n        *(int *)(iVar3 + 8) = *(int *)(iVar3 + 8) + 1;\n        (*pcVar5)(iVar2);\n      }\n      return iVar3;\n    }\n    (**(code **)PTR_PTR_free_000a6144)(iVar2);\n  }" ({ "{") (expression_statement "iVar3 = (*(code *)PTR_strlen_000a6ea8)(iVar2);" (assignment_expression "iVar3 = (*(code *)PTR_strlen_000a6ea8)(iVar2)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_strlen_000a6ea8)(iVar2)" (parenthesized_expression "(*(code *)PTR_strlen_000a6ea8)" (( "(") (pointer_expression "*(code *)PTR_strlen_000a6ea8" (* "*") (cast_expression "(code *)PTR_strlen_000a6ea8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_000a6ea8"))) () ")")) (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")")))) (; ";")) (expression_statement "puVar4 = (undefined4 *)(**(code **)PTR_PTR_calloc_000a6140)(1,0xc);" (assignment_expression "puVar4 = (undefined4 *)(**(code **)PTR_PTR_calloc_000a6140)(1,0xc)" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)(**(code **)PTR_PTR_calloc_000a6140)(1,0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(**(code **)PTR_PTR_calloc_000a6140)(1,0xc)" (parenthesized_expression "(**(code **)PTR_PTR_calloc_000a6140)" (( "(") (pointer_expression "**(code **)PTR_PTR_calloc_000a6140" (* "*") (pointer_expression "*(code **)PTR_PTR_calloc_000a6140" (* "*") (cast_expression "(code **)PTR_PTR_calloc_000a6140" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_PTR_calloc_000a6140")))) () ")")) (argument_list "(1,0xc)" (( "(") (number_literal "1") (, ",") (number_literal "0xc") () ")"))))) (; ";")) (expression_statement "puVar1 = PTR_time_000a6e00;" (assignment_expression "puVar1 = PTR_time_000a6e00" (identifier "puVar1") (= "=") (identifier "PTR_time_000a6e00")) (; ";")) (if_statement "if (puVar4 != (undefined4 *)0x0) {\n      puVar4[2] = 1;\n      *puVar4 = local_res4;\n      (*(code *)puVar1)(puVar4 + 1);\n      if (puVar4[1] == 0) {\n        puVar4[1] = 1;\n      }\n      iVar3 = (*(code *)PTR_FUN_000a61dc)(*(undefined4 *)(param_1 + 0x7c),iVar2,iVar3 + 1,puVar4);\n      puVar1 = PTR_PTR_free_000a6144;\n      if (iVar3 == 0) {\n        (**(code **)PTR_PTR_free_000a6144)(puVar4);\n        (**(code **)puVar1)(iVar2);\n      }\n      else {\n        pcVar5 = *(code **)PTR_PTR_free_000a6144;\n        *(int *)(iVar3 + 8) = *(int *)(iVar3 + 8) + 1;\n        (*pcVar5)(iVar2);\n      }\n      return iVar3;\n    }" (if "if") (parenthesized_expression "(puVar4 != (undefined4 *)0x0)" (( "(") (binary_expression "puVar4 != (undefined4 *)0x0" (identifier "puVar4") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      puVar4[2] = 1;\n      *puVar4 = local_res4;\n      (*(code *)puVar1)(puVar4 + 1);\n      if (puVar4[1] == 0) {\n        puVar4[1] = 1;\n      }\n      iVar3 = (*(code *)PTR_FUN_000a61dc)(*(undefined4 *)(param_1 + 0x7c),iVar2,iVar3 + 1,puVar4);\n      puVar1 = PTR_PTR_free_000a6144;\n      if (iVar3 == 0) {\n        (**(code **)PTR_PTR_free_000a6144)(puVar4);\n        (**(code **)puVar1)(iVar2);\n      }\n      else {\n        pcVar5 = *(code **)PTR_PTR_free_000a6144;\n        *(int *)(iVar3 + 8) = *(int *)(iVar3 + 8) + 1;\n        (*pcVar5)(iVar2);\n      }\n      return iVar3;\n    }" ({ "{") (expression_statement "puVar4[2] = 1;" (assignment_expression "puVar4[2] = 1" (subscript_expression "puVar4[2]" (identifier "puVar4") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "*puVar4 = local_res4;" (assignment_expression "*puVar4 = local_res4" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (identifier "local_res4")) (; ";")) (expression_statement "(*(code *)puVar1)(puVar4 + 1);" (call_expression "(*(code *)puVar1)(puVar4 + 1)" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "(puVar4 + 1)" (( "(") (binary_expression "puVar4 + 1" (identifier "puVar4") (+ "+") (number_literal "1")) () ")"))) (; ";")) (if_statement "if (puVar4[1] == 0) {\n        puVar4[1] = 1;\n      }" (if "if") (parenthesized_expression "(puVar4[1] == 0)" (( "(") (binary_expression "puVar4[1] == 0" (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        puVar4[1] = 1;\n      }" ({ "{") (expression_statement "puVar4[1] = 1;" (assignment_expression "puVar4[1] = 1" (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "1")) (; ";")) (} "}"))) (expression_statement "iVar3 = (*(code *)PTR_FUN_000a61dc)(*(undefined4 *)(param_1 + 0x7c),iVar2,iVar3 + 1,puVar4);" (assignment_expression "iVar3 = (*(code *)PTR_FUN_000a61dc)(*(undefined4 *)(param_1 + 0x7c),iVar2,iVar3 + 1,puVar4)" (identifier "iVar3") (= "=") (call_expression "(*(code *)PTR_FUN_000a61dc)(*(undefined4 *)(param_1 + 0x7c),iVar2,iVar3 + 1,puVar4)" (parenthesized_expression "(*(code *)PTR_FUN_000a61dc)" (( "(") (pointer_expression "*(code *)PTR_FUN_000a61dc" (* "*") (cast_expression "(code *)PTR_FUN_000a61dc" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_FUN_000a61dc"))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 0x7c),iVar2,iVar3 + 1,puVar4)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x7c)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x7c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x7c)" (( "(") (binary_expression "param_1 + 0x7c" (identifier "param_1") (+ "+") (number_literal "0x7c")) () ")")))) (, ",") (identifier "iVar2") (, ",") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1")) (, ",") (identifier "puVar4") () ")")))) (; ";")) (expression_statement "puVar1 = PTR_PTR_free_000a6144;" (assignment_expression "puVar1 = PTR_PTR_free_000a6144" (identifier "puVar1") (= "=") (identifier "PTR_PTR_free_000a6144")) (; ";")) (if_statement "if (iVar3 == 0) {\n        (**(code **)PTR_PTR_free_000a6144)(puVar4);\n        (**(code **)puVar1)(iVar2);\n      }\n      else {\n        pcVar5 = *(code **)PTR_PTR_free_000a6144;\n        *(int *)(iVar3 + 8) = *(int *)(iVar3 + 8) + 1;\n        (*pcVar5)(iVar2);\n      }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        (**(code **)PTR_PTR_free_000a6144)(puVar4);\n        (**(code **)puVar1)(iVar2);\n      }" ({ "{") (expression_statement "(**(code **)PTR_PTR_free_000a6144)(puVar4);" (call_expression "(**(code **)PTR_PTR_free_000a6144)(puVar4)" (parenthesized_expression "(**(code **)PTR_PTR_free_000a6144)" (( "(") (pointer_expression "**(code **)PTR_PTR_free_000a6144" (* "*") (pointer_expression "*(code **)PTR_PTR_free_000a6144" (* "*") (cast_expression "(code **)PTR_PTR_free_000a6144" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_PTR_free_000a6144")))) () ")")) (argument_list "(puVar4)" (( "(") (identifier "puVar4") () ")"))) (; ";")) (expression_statement "(**(code **)puVar1)(iVar2);" (call_expression "(**(code **)puVar1)(iVar2)" (parenthesized_expression "(**(code **)puVar1)" (( "(") (pointer_expression "**(code **)puVar1" (* "*") (pointer_expression "*(code **)puVar1" (* "*") (cast_expression "(code **)puVar1" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "puVar1")))) () ")")) (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (} "}")) (else_clause "else {\n        pcVar5 = *(code **)PTR_PTR_free_000a6144;\n        *(int *)(iVar3 + 8) = *(int *)(iVar3 + 8) + 1;\n        (*pcVar5)(iVar2);\n      }" (else "else") (compound_statement "{\n        pcVar5 = *(code **)PTR_PTR_free_000a6144;\n        *(int *)(iVar3 + 8) = *(int *)(iVar3 + 8) + 1;\n        (*pcVar5)(iVar2);\n      }" ({ "{") (expression_statement "pcVar5 = *(code **)PTR_PTR_free_000a6144;" (assignment_expression "pcVar5 = *(code **)PTR_PTR_free_000a6144" (identifier "pcVar5") (= "=") (pointer_expression "*(code **)PTR_PTR_free_000a6144" (* "*") (cast_expression "(code **)PTR_PTR_free_000a6144" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_PTR_free_000a6144")))) (; ";")) (expression_statement "*(int *)(iVar3 + 8) = *(int *)(iVar3 + 8) + 1;" (assignment_expression "*(int *)(iVar3 + 8) = *(int *)(iVar3 + 8) + 1" (pointer_expression "*(int *)(iVar3 + 8)" (* "*") (cast_expression "(int *)(iVar3 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 8)" (( "(") (binary_expression "iVar3 + 8" (identifier "iVar3") (+ "+") (number_literal "8")) () ")")))) (= "=") (binary_expression "*(int *)(iVar3 + 8) + 1" (pointer_expression "*(int *)(iVar3 + 8)" (* "*") (cast_expression "(int *)(iVar3 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 8)" (( "(") (binary_expression "iVar3 + 8" (identifier "iVar3") (+ "+") (number_literal "8")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "(*pcVar5)(iVar2);" (call_expression "(*pcVar5)(iVar2)" (parenthesized_expression "(*pcVar5)" (( "(") (pointer_expression "*pcVar5" (* "*") (identifier "pcVar5")) () ")")) (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (} "}")))) (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}"))) (expression_statement "(**(code **)PTR_PTR_free_000a6144)(iVar2);" (call_expression "(**(code **)PTR_PTR_free_000a6144)(iVar2)" (parenthesized_expression "(**(code **)PTR_PTR_free_000a6144)" (( "(") (pointer_expression "**(code **)PTR_PTR_free_000a6144" (* "*") (pointer_expression "*(code **)PTR_PTR_free_000a6144" (* "*") (cast_expression "(code **)PTR_PTR_free_000a6144" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_PTR_free_000a6144")))) () ")")) (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))
(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (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: (char_literal (escape_sequence)))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (comma_expression left: (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (pointer_expression argument: (identifier))))) right: (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (comma_expression left: (assignment_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))))))))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))))) arguments: (argument_list (number_literal) (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))) (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: (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (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))))) (identifier) (binary_expression left: (identifier) right: (number_literal)) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))))) arguments: (argument_list (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))))) arguments: (argument_list (identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))))) (expression_statement (assignment_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: (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)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier))))))) (return_statement (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))))) arguments: (argument_list (identifier)))))) (return_statement (number_literal)))))

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

{
  undefined *puVar1;
  int iVar2;
  int iVar3;
  undefined4 *puVar4;
  code *pcVar5;
  undefined4 local_res4;
  undefined4 local_res8;
  undefined4 local_resc;
  
  local_res4 = param_2;
  if ((*(char *)(param_1 + 0xaf9) != '\0') &&
     (local_res8 = param_3, local_resc = param_4, iVar2 = FUN_00018f00(param_1,&local_res4),
     param_3 = local_res8, param_4 = local_resc, iVar2 != 0)) {
    return 0;
  }
  iVar2 = FUN_000188a8(param_3,param_4);
  if (iVar2 != 0) {
    iVar3 = (*(code *)PTR_strlen_000a6ea8)(iVar2);
    puVar4 = (undefined4 *)(**(code **)PTR_PTR_calloc_000a6140)(1,0xc);
    puVar1 = PTR_time_000a6e00;
    if (puVar4 != (undefined4 *)0x0) {
      puVar4[2] = 1;
      *puVar4 = local_res4;
      (*(code *)puVar1)(puVar4 + 1);
      if (puVar4[1] == 0) {
        puVar4[1] = 1;
      }
      iVar3 = (*(code *)PTR_FUN_000a61dc)(*(undefined4 *)(param_1 + 0x7c),iVar2,iVar3 + 1,puVar4);
      puVar1 = PTR_PTR_free_000a6144;
      if (iVar3 == 0) {
        (**(code **)PTR_PTR_free_000a6144)(puVar4);
        (**(code **)puVar1)(iVar2);
      }
      else {
        pcVar5 = *(code **)PTR_PTR_free_000a6144;
        *(int *)(iVar3 + 8) = *(int *)(iVar3 + 8) + 1;
        (*pcVar5)(iVar2);
      }
      return iVar3;
    }
    (**(code **)PTR_PTR_free_000a6144)(iVar2);
  }
  return 0;
}

