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

Curl_share * curl_share_init(void)

{
  undefined *puVar1;
  Curl_share *pCVar2;
  int iVar3;
  
  pCVar2 = (Curl_share *)(**(code **)PTR_Curl_ccalloc_000a6140)(1,0x74);
  puVar1 = PTR_Curl_mk_dnscache_000a663c;
  if (pCVar2 != (Curl_share *)0x0) {
    pCVar2->specifier = pCVar2->specifier | 2;
    iVar3 = (*(code *)puVar1)(&pCVar2->hostcache);
    if (iVar3 != 0) {
      (**(code **)PTR_Curl_cfree_000a6144)(pCVar2);
      pCVar2 = (Curl_share *)0x0;
    }
  }
  return pCVar2;
}



uint * curl_share_init(void)

{
  undefined *puVar1;
  uint *puVar2;
  int iVar3;
  
  puVar2 = (uint *)(**(code **)PTR_PTR_calloc_000a6140)(1,0x74);
  puVar1 = PTR_FUN_000a663c;
  if (puVar2 != (uint *)0x0) {
    *puVar2 = *puVar2 | 2;
    iVar3 = (*(code *)puVar1)(puVar2 + 0x10);
    if (iVar3 != 0) {
      (**(code **)PTR_PTR_free_000a6144)(puVar2);
      puVar2 = (uint *)0x0;
    }
  }
  return puVar2;
}


lui gp,0x6
addiu gp,gp,0x49d0
addu gp,gp,t9
lw v0,-0x7fd0(gp)
addiu sp,sp,-0x20
li a1,0x74
sw gp,0x10(sp)
sw s0,0x18(sp)
sw ra,0x1c(sp)
lw t9,0x0(v0)
jalr t9
_li a0,0x1
lw gp,0x10(sp)
beq v0,zero,0x0004979c
_or s0,v0,zero
lw v0,0x0(v0)
addiu a0,s0,0x40
lw t9,-0x7ad4(gp)
ori v0,v0,0x2
jalr t9
_sw v0,0x0(s0)
bne v0,zero,0x000497b0
_lw gp,0x10(sp)
lw ra,0x1c(sp)
or v0,s0,zero
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
lw v0,-0x7fcc(gp)
or a0,s0,zero
lw t9,0x0(v0)
jalr t9
_or s0,zero,zero
b 0x000497a0
_lw ra,0x1c(sp)
(translation_unit "uint * curl_share_init(void)\n\n{\n  undefined *puVar1;\n  uint *puVar2;\n  int iVar3;\n  \n  puVar2 = (uint *)(**(code **)PTR_PTR_calloc_000a6140)(1,0x74);\n  puVar1 = PTR_FUN_000a663c;\n  if (puVar2 != (uint *)0x0) {\n    *puVar2 = *puVar2 | 2;\n    iVar3 = (*(code *)puVar1)(puVar2 + 0x10);\n    if (iVar3 != 0) {\n      (**(code **)PTR_PTR_free_000a6144)(puVar2);\n      puVar2 = (uint *)0x0;\n    }\n  }\n  return puVar2;\n}\n\n" (function_definition "uint * curl_share_init(void)\n\n{\n  undefined *puVar1;\n  uint *puVar2;\n  int iVar3;\n  \n  puVar2 = (uint *)(**(code **)PTR_PTR_calloc_000a6140)(1,0x74);\n  puVar1 = PTR_FUN_000a663c;\n  if (puVar2 != (uint *)0x0) {\n    *puVar2 = *puVar2 | 2;\n    iVar3 = (*(code *)puVar1)(puVar2 + 0x10);\n    if (iVar3 != 0) {\n      (**(code **)PTR_PTR_free_000a6144)(puVar2);\n      puVar2 = (uint *)0x0;\n    }\n  }\n  return puVar2;\n}" type_identifier (pointer_declarator "* curl_share_init(void)" * (function_declarator "curl_share_init(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  undefined *puVar1;\n  uint *puVar2;\n  int iVar3;\n  \n  puVar2 = (uint *)(**(code **)PTR_PTR_calloc_000a6140)(1,0x74);\n  puVar1 = PTR_FUN_000a663c;\n  if (puVar2 != (uint *)0x0) {\n    *puVar2 = *puVar2 | 2;\n    iVar3 = (*(code *)puVar1)(puVar2 + 0x10);\n    if (iVar3 != 0) {\n      (**(code **)PTR_PTR_free_000a6144)(puVar2);\n      puVar2 = (uint *)0x0;\n    }\n  }\n  return puVar2;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "puVar2 = (uint *)(**(code **)PTR_PTR_calloc_000a6140)(1,0x74);" (assignment_expression "puVar2 = (uint *)(**(code **)PTR_PTR_calloc_000a6140)(1,0x74)" identifier = (cast_expression "(uint *)(**(code **)PTR_PTR_calloc_000a6140)(1,0x74)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)PTR_PTR_calloc_000a6140)(1,0x74)" (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,0x74)" ( number_literal , number_literal ))))) ;) (expression_statement "puVar1 = PTR_FUN_000a663c;" (assignment_expression "puVar1 = PTR_FUN_000a663c" identifier = identifier) ;) (if_statement "if (puVar2 != (uint *)0x0) {\n    *puVar2 = *puVar2 | 2;\n    iVar3 = (*(code *)puVar1)(puVar2 + 0x10);\n    if (iVar3 != 0) {\n      (**(code **)PTR_PTR_free_000a6144)(puVar2);\n      puVar2 = (uint *)0x0;\n    }\n  }" if (parenthesized_expression "(puVar2 != (uint *)0x0)" ( (binary_expression "puVar2 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *puVar2 = *puVar2 | 2;\n    iVar3 = (*(code *)puVar1)(puVar2 + 0x10);\n    if (iVar3 != 0) {\n      (**(code **)PTR_PTR_free_000a6144)(puVar2);\n      puVar2 = (uint *)0x0;\n    }\n  }" { (expression_statement "*puVar2 = *puVar2 | 2;" (assignment_expression "*puVar2 = *puVar2 | 2" (pointer_expression "*puVar2" * identifier) = (binary_expression "*puVar2 | 2" (pointer_expression "*puVar2" * identifier) | number_literal)) ;) (expression_statement "iVar3 = (*(code *)puVar1)(puVar2 + 0x10);" (assignment_expression "iVar3 = (*(code *)puVar1)(puVar2 + 0x10)" identifier = (call_expression "(*(code *)puVar1)(puVar2 + 0x10)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2 + 0x10)" ( (binary_expression "puVar2 + 0x10" identifier + number_literal) )))) ;) (if_statement "if (iVar3 != 0) {\n      (**(code **)PTR_PTR_free_000a6144)(puVar2);\n      puVar2 = (uint *)0x0;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      (**(code **)PTR_PTR_free_000a6144)(puVar2);\n      puVar2 = (uint *)0x0;\n    }" { (expression_statement "(**(code **)PTR_PTR_free_000a6144)(puVar2);" (call_expression "(**(code **)PTR_PTR_free_000a6144)(puVar2)" (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 "(puVar2)" ( identifier ))) ;) (expression_statement "puVar2 = (uint *)0x0;" (assignment_expression "puVar2 = (uint *)0x0" identifier = (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) })) (return_statement "return puVar2;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n/* WARNING: Enum "anon_enum_32": Some values do not have unique names */\n\nCurl_share * curl_share_init(void)\n\n{\n  undefined *puVar1;\n  Curl_share *pCVar2;\n  int iVar3;\n  \n  pCVar2 = (Curl_share *)(**(code **)PTR_Curl_ccalloc_000a6140)(1,0x74);\n  puVar1 = PTR_Curl_mk_dnscache_000a663c;\n  if (pCVar2 != (Curl_share *)0x0) {\n    pCVar2->specifier = pCVar2->specifier | 2;\n    iVar3 = (*(code *)puVar1)(&pCVar2->hostcache);\n    if (iVar3 != 0) {\n      (**(code **)PTR_Curl_cfree_000a6144)(pCVar2);\n      pCVar2 = (Curl_share *)0x0;\n    }\n  }\n  return pCVar2;\n}\n\n" comment comment (function_definition "Curl_share * curl_share_init(void)\n\n{\n  undefined *puVar1;\n  Curl_share *pCVar2;\n  int iVar3;\n  \n  pCVar2 = (Curl_share *)(**(code **)PTR_Curl_ccalloc_000a6140)(1,0x74);\n  puVar1 = PTR_Curl_mk_dnscache_000a663c;\n  if (pCVar2 != (Curl_share *)0x0) {\n    pCVar2->specifier = pCVar2->specifier | 2;\n    iVar3 = (*(code *)puVar1)(&pCVar2->hostcache);\n    if (iVar3 != 0) {\n      (**(code **)PTR_Curl_cfree_000a6144)(pCVar2);\n      pCVar2 = (Curl_share *)0x0;\n    }\n  }\n  return pCVar2;\n}" type_identifier (pointer_declarator "* curl_share_init(void)" * (function_declarator "curl_share_init(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  undefined *puVar1;\n  Curl_share *pCVar2;\n  int iVar3;\n  \n  pCVar2 = (Curl_share *)(**(code **)PTR_Curl_ccalloc_000a6140)(1,0x74);\n  puVar1 = PTR_Curl_mk_dnscache_000a663c;\n  if (pCVar2 != (Curl_share *)0x0) {\n    pCVar2->specifier = pCVar2->specifier | 2;\n    iVar3 = (*(code *)puVar1)(&pCVar2->hostcache);\n    if (iVar3 != 0) {\n      (**(code **)PTR_Curl_cfree_000a6144)(pCVar2);\n      pCVar2 = (Curl_share *)0x0;\n    }\n  }\n  return pCVar2;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "Curl_share *pCVar2;" type_identifier (pointer_declarator "*pCVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "pCVar2 = (Curl_share *)(**(code **)PTR_Curl_ccalloc_000a6140)(1,0x74);" (assignment_expression "pCVar2 = (Curl_share *)(**(code **)PTR_Curl_ccalloc_000a6140)(1,0x74)" identifier = (cast_expression "(Curl_share *)(**(code **)PTR_Curl_ccalloc_000a6140)(1,0x74)" ( (type_descriptor "Curl_share *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)PTR_Curl_ccalloc_000a6140)(1,0x74)" (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,0x74)" ( number_literal , number_literal ))))) ;) (expression_statement "puVar1 = PTR_Curl_mk_dnscache_000a663c;" (assignment_expression "puVar1 = PTR_Curl_mk_dnscache_000a663c" identifier = identifier) ;) (if_statement "if (pCVar2 != (Curl_share *)0x0) {\n    pCVar2->specifier = pCVar2->specifier | 2;\n    iVar3 = (*(code *)puVar1)(&pCVar2->hostcache);\n    if (iVar3 != 0) {\n      (**(code **)PTR_Curl_cfree_000a6144)(pCVar2);\n      pCVar2 = (Curl_share *)0x0;\n    }\n  }" if (parenthesized_expression "(pCVar2 != (Curl_share *)0x0)" ( (binary_expression "pCVar2 != (Curl_share *)0x0" identifier != (cast_expression "(Curl_share *)0x0" ( (type_descriptor "Curl_share *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pCVar2->specifier = pCVar2->specifier | 2;\n    iVar3 = (*(code *)puVar1)(&pCVar2->hostcache);\n    if (iVar3 != 0) {\n      (**(code **)PTR_Curl_cfree_000a6144)(pCVar2);\n      pCVar2 = (Curl_share *)0x0;\n    }\n  }" { (expression_statement "pCVar2->specifier = pCVar2->specifier | 2;" (assignment_expression "pCVar2->specifier = pCVar2->specifier | 2" (field_expression "pCVar2->specifier" identifier -> field_identifier) = (binary_expression "pCVar2->specifier | 2" (field_expression "pCVar2->specifier" identifier -> field_identifier) | number_literal)) ;) (expression_statement "iVar3 = (*(code *)puVar1)(&pCVar2->hostcache);" (assignment_expression "iVar3 = (*(code *)puVar1)(&pCVar2->hostcache)" identifier = (call_expression "(*(code *)puVar1)(&pCVar2->hostcache)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(&pCVar2->hostcache)" ( (pointer_expression "&pCVar2->hostcache" & (field_expression "pCVar2->hostcache" identifier -> field_identifier)) )))) ;) (if_statement "if (iVar3 != 0) {\n      (**(code **)PTR_Curl_cfree_000a6144)(pCVar2);\n      pCVar2 = (Curl_share *)0x0;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      (**(code **)PTR_Curl_cfree_000a6144)(pCVar2);\n      pCVar2 = (Curl_share *)0x0;\n    }" { (expression_statement "(**(code **)PTR_Curl_cfree_000a6144)(pCVar2);" (call_expression "(**(code **)PTR_Curl_cfree_000a6144)(pCVar2)" (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 "(pCVar2)" ( identifier ))) ;) (expression_statement "pCVar2 = (Curl_share *)0x0;" (assignment_expression "pCVar2 = (Curl_share *)0x0" identifier = (cast_expression "(Curl_share *)0x0" ( (type_descriptor "Curl_share *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) })) (return_statement "return pCVar2;" return identifier ;) })))
(translation_unit "uint * curl_share_init(void)\n\n{\n  undefined *puVar1;\n  uint *puVar2;\n  int iVar3;\n  \n  puVar2 = (uint *)(**(code **)PTR_PTR_calloc_000a6140)(1,0x74);\n  puVar1 = PTR_FUN_000a663c;\n  if (puVar2 != (uint *)0x0) {\n    *puVar2 = *puVar2 | 2;\n    iVar3 = (*(code *)puVar1)(puVar2 + 0x10);\n    if (iVar3 != 0) {\n      (**(code **)PTR_PTR_free_000a6144)(puVar2);\n      puVar2 = (uint *)0x0;\n    }\n  }\n  return puVar2;\n}\n\n" (function_definition "uint * curl_share_init(void)\n\n{\n  undefined *puVar1;\n  uint *puVar2;\n  int iVar3;\n  \n  puVar2 = (uint *)(**(code **)PTR_PTR_calloc_000a6140)(1,0x74);\n  puVar1 = PTR_FUN_000a663c;\n  if (puVar2 != (uint *)0x0) {\n    *puVar2 = *puVar2 | 2;\n    iVar3 = (*(code *)puVar1)(puVar2 + 0x10);\n    if (iVar3 != 0) {\n      (**(code **)PTR_PTR_free_000a6144)(puVar2);\n      puVar2 = (uint *)0x0;\n    }\n  }\n  return puVar2;\n}" type_identifier (pointer_declarator "* curl_share_init(void)" * (function_declarator "curl_share_init(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  undefined *puVar1;\n  uint *puVar2;\n  int iVar3;\n  \n  puVar2 = (uint *)(**(code **)PTR_PTR_calloc_000a6140)(1,0x74);\n  puVar1 = PTR_FUN_000a663c;\n  if (puVar2 != (uint *)0x0) {\n    *puVar2 = *puVar2 | 2;\n    iVar3 = (*(code *)puVar1)(puVar2 + 0x10);\n    if (iVar3 != 0) {\n      (**(code **)PTR_PTR_free_000a6144)(puVar2);\n      puVar2 = (uint *)0x0;\n    }\n  }\n  return puVar2;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "uint *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (expression_statement "puVar2 = (uint *)(**(code **)PTR_PTR_calloc_000a6140)(1,0x74);" (assignment_expression "puVar2 = (uint *)(**(code **)PTR_PTR_calloc_000a6140)(1,0x74)" identifier = (cast_expression "(uint *)(**(code **)PTR_PTR_calloc_000a6140)(1,0x74)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)PTR_PTR_calloc_000a6140)(1,0x74)" (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,0x74)" ( number_literal , number_literal ))))) ;) (expression_statement "puVar1 = PTR_FUN_000a663c;" (assignment_expression "puVar1 = PTR_FUN_000a663c" identifier = identifier) ;) (if_statement "if (puVar2 != (uint *)0x0) {\n    *puVar2 = *puVar2 | 2;\n    iVar3 = (*(code *)puVar1)(puVar2 + 0x10);\n    if (iVar3 != 0) {\n      (**(code **)PTR_PTR_free_000a6144)(puVar2);\n      puVar2 = (uint *)0x0;\n    }\n  }" if (parenthesized_expression "(puVar2 != (uint *)0x0)" ( (binary_expression "puVar2 != (uint *)0x0" identifier != (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *puVar2 = *puVar2 | 2;\n    iVar3 = (*(code *)puVar1)(puVar2 + 0x10);\n    if (iVar3 != 0) {\n      (**(code **)PTR_PTR_free_000a6144)(puVar2);\n      puVar2 = (uint *)0x0;\n    }\n  }" { (expression_statement "*puVar2 = *puVar2 | 2;" (assignment_expression "*puVar2 = *puVar2 | 2" (pointer_expression "*puVar2" * identifier) = (binary_expression "*puVar2 | 2" (pointer_expression "*puVar2" * identifier) | number_literal)) ;) (expression_statement "iVar3 = (*(code *)puVar1)(puVar2 + 0x10);" (assignment_expression "iVar3 = (*(code *)puVar1)(puVar2 + 0x10)" identifier = (call_expression "(*(code *)puVar1)(puVar2 + 0x10)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2 + 0x10)" ( (binary_expression "puVar2 + 0x10" identifier + number_literal) )))) ;) (if_statement "if (iVar3 != 0) {\n      (**(code **)PTR_PTR_free_000a6144)(puVar2);\n      puVar2 = (uint *)0x0;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      (**(code **)PTR_PTR_free_000a6144)(puVar2);\n      puVar2 = (uint *)0x0;\n    }" { (expression_statement "(**(code **)PTR_PTR_free_000a6144)(puVar2);" (call_expression "(**(code **)PTR_PTR_free_000a6144)(puVar2)" (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 "(puVar2)" ( identifier ))) ;) (expression_statement "puVar2 = (uint *)0x0;" (assignment_expression "puVar2 = (uint *)0x0" identifier = (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) })) (return_statement "return puVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE 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 (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) | LIT)) ;) (expression_statement (assignment_expression IDENT = (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 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 (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) })) })) (return_statement return IDENT ;) })))
(function_definition "uint * curl_share_init(void)\n\n{\n  undefined *puVar1;\n  uint *puVar2;\n  int iVar3;\n  \n  puVar2 = (uint *)(**(code **)PTR_PTR_calloc_000a6140)(1,0x74);\n  puVar1 = PTR_FUN_000a663c;\n  if (puVar2 != (uint *)0x0) {\n    *puVar2 = *puVar2 | 2;\n    iVar3 = (*(code *)puVar1)(puVar2 + 0x10);\n    if (iVar3 != 0) {\n      (**(code **)PTR_PTR_free_000a6144)(puVar2);\n      puVar2 = (uint *)0x0;\n    }\n  }\n  return puVar2;\n}" (type_identifier "uint") (pointer_declarator "* curl_share_init(void)" (* "*") (function_declarator "curl_share_init(void)" (identifier "curl_share_init") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")")))) (compound_statement "{\n  undefined *puVar1;\n  uint *puVar2;\n  int iVar3;\n  \n  puVar2 = (uint *)(**(code **)PTR_PTR_calloc_000a6140)(1,0x74);\n  puVar1 = PTR_FUN_000a663c;\n  if (puVar2 != (uint *)0x0) {\n    *puVar2 = *puVar2 | 2;\n    iVar3 = (*(code *)puVar1)(puVar2 + 0x10);\n    if (iVar3 != 0) {\n      (**(code **)PTR_PTR_free_000a6144)(puVar2);\n      puVar2 = (uint *)0x0;\n    }\n  }\n  return puVar2;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "uint *puVar2;" (type_identifier "uint") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (expression_statement "puVar2 = (uint *)(**(code **)PTR_PTR_calloc_000a6140)(1,0x74);" (assignment_expression "puVar2 = (uint *)(**(code **)PTR_PTR_calloc_000a6140)(1,0x74)" (identifier "puVar2") (= "=") (cast_expression "(uint *)(**(code **)PTR_PTR_calloc_000a6140)(1,0x74)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(**(code **)PTR_PTR_calloc_000a6140)(1,0x74)" (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,0x74)" (( "(") (number_literal "1") (, ",") (number_literal "0x74") () ")"))))) (; ";")) (expression_statement "puVar1 = PTR_FUN_000a663c;" (assignment_expression "puVar1 = PTR_FUN_000a663c" (identifier "puVar1") (= "=") (identifier "PTR_FUN_000a663c")) (; ";")) (if_statement "if (puVar2 != (uint *)0x0) {\n    *puVar2 = *puVar2 | 2;\n    iVar3 = (*(code *)puVar1)(puVar2 + 0x10);\n    if (iVar3 != 0) {\n      (**(code **)PTR_PTR_free_000a6144)(puVar2);\n      puVar2 = (uint *)0x0;\n    }\n  }" (if "if") (parenthesized_expression "(puVar2 != (uint *)0x0)" (( "(") (binary_expression "puVar2 != (uint *)0x0" (identifier "puVar2") (!= "!=") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    *puVar2 = *puVar2 | 2;\n    iVar3 = (*(code *)puVar1)(puVar2 + 0x10);\n    if (iVar3 != 0) {\n      (**(code **)PTR_PTR_free_000a6144)(puVar2);\n      puVar2 = (uint *)0x0;\n    }\n  }" ({ "{") (expression_statement "*puVar2 = *puVar2 | 2;" (assignment_expression "*puVar2 = *puVar2 | 2" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (binary_expression "*puVar2 | 2" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (| "|") (number_literal "2"))) (; ";")) (expression_statement "iVar3 = (*(code *)puVar1)(puVar2 + 0x10);" (assignment_expression "iVar3 = (*(code *)puVar1)(puVar2 + 0x10)" (identifier "iVar3") (= "=") (call_expression "(*(code *)puVar1)(puVar2 + 0x10)" (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 "(puVar2 + 0x10)" (( "(") (binary_expression "puVar2 + 0x10" (identifier "puVar2") (+ "+") (number_literal "0x10")) () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\n      (**(code **)PTR_PTR_free_000a6144)(puVar2);\n      puVar2 = (uint *)0x0;\n    }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      (**(code **)PTR_PTR_free_000a6144)(puVar2);\n      puVar2 = (uint *)0x0;\n    }" ({ "{") (expression_statement "(**(code **)PTR_PTR_free_000a6144)(puVar2);" (call_expression "(**(code **)PTR_PTR_free_000a6144)(puVar2)" (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 "(puVar2)" (( "(") (identifier "puVar2") () ")"))) (; ";")) (expression_statement "puVar2 = (uint *)0x0;" (assignment_expression "puVar2 = (uint *)0x0" (identifier "puVar2") (= "=") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}"))) (} "}"))) (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}")))

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

type_1 * function_1(void)

{
  type_2 *puVar1;
  type_1 *var_1;
  int var_2;
  
  var_1 = (type_1 *)(**(type_3 **)PTR_Curl_ccalloc_000a6140)(1,0x74);
  puVar1 = PTR_Curl_mk_dnscache_000a663c;
  if (var_1 != (type_1 *)0x0) {
    var_1->specifier = var_1->specifier | 2;
    var_2 = (*(type_3 *)puVar1)(&var_1->hostcache);
    if (var_2 != 0) {
      (**(type_3 **)PTR_Curl_cfree_000a6144)(var_1);
      var_1 = (type_1 *)0x0;
    }
  }
  return var_1;
}


(translation_unit (function_definition type: (type_identifier) declarator: (pointer_declarator declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (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: (pointer_expression argument: (identifier)) right: (binary_expression left: (pointer_expression argument: (identifier)) 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 (binary_expression left: (identifier) right: (number_literal)))))) (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 (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))))))) (return_statement (identifier)))))

uint * MASKED(void)

{
  undefined *puVar1;
  uint *puVar2;
  int iVar3;
  
  puVar2 = (uint *)(**(code **)PTR_PTR_calloc_000a6140)(1,0x74);
  puVar1 = PTR_FUN_000a663c;
  if (puVar2 != (uint *)0x0) {
    *puVar2 = *puVar2 | 2;
    iVar3 = (*(code *)puVar1)(puVar2 + 0x10);
    if (iVar3 != 0) {
      (**(code **)PTR_PTR_free_000a6144)(puVar2);
      puVar2 = (uint *)0x0;
    }
  }
  return puVar2;
}

