
pthread_t * Curl_thread_create(_func_uint_void_ptr *func,void *arg)

{
  undefined *puVar1;
  undefined *puVar2;
  pthread_t *ppVar3;
  undefined4 *puVar4;
  int iVar5;
  
  puVar1 = PTR_Curl_cmalloc_000a6198;
  ppVar3 = (pthread_t *)(**(code **)PTR_Curl_cmalloc_000a6198)(4);
  puVar4 = (undefined4 *)(**(code **)puVar1)(8);
  puVar2 = PTR_pthread_create_000a6be0;
  puVar1 = PTR_LAB_000a6744;
  if ((puVar4 != (undefined4 *)0x0) && (ppVar3 != (pthread_t *)0x0)) {
    *puVar4 = func;
    puVar4[1] = arg;
    iVar5 = (*(code *)puVar2)(ppVar3,0,puVar1 + -0x1320,puVar4);
    if (iVar5 == 0) {
      return ppVar3;
    }
  }
  puVar1 = PTR_Curl_cfree_000a6144;
  (**(code **)PTR_Curl_cfree_000a6144)(ppVar3);
  (**(code **)puVar1)(puVar4);
  return (pthread_t *)0x0;
}



int FUN_0005ed38(undefined4 param_1,undefined4 param_2)

{
  undefined *puVar1;
  undefined *puVar2;
  int iVar3;
  undefined4 *puVar4;
  int iVar5;
  
  puVar1 = PTR_PTR_malloc_000a6198;
  iVar3 = (**(code **)PTR_PTR_malloc_000a6198)(4);
  puVar4 = (undefined4 *)(**(code **)puVar1)(8);
  puVar2 = PTR_pthread_create_000a6be0;
  puVar1 = PTR_LAB_000a6744;
  if ((puVar4 != (undefined4 *)0x0) && (iVar3 != 0)) {
    *puVar4 = param_1;
    puVar4[1] = param_2;
    iVar5 = (*(code *)puVar2)(iVar3,0,puVar1 + -0x1320,puVar4);
    if (iVar5 == 0) {
      return iVar3;
    }
  }
  puVar1 = PTR_PTR_free_000a6144;
  (**(code **)PTR_PTR_free_000a6144)(iVar3);
  (**(code **)puVar1)(puVar4);
  return 0;
}


lui gp,0x5
addiu gp,gp,-0xc28
addu gp,gp,t9
addiu sp,sp,-0x30
sw s0,0x1c(sp)
lw s0,-0x7f78(gp)
sw s3,0x28(sp)
or s3,a0,zero
li a0,0x4
sw gp,0x10(sp)
sw ra,0x2c(sp)
sw s2,0x24(sp)
sw s1,0x20(sp)
lw t9,0x0(s0)
jalr t9
_or s2,a1,zero
li a0,0x8
lw t9,0x0(s0)
jalr t9
_or s1,v0,zero
lw gp,0x10(sp)
beq v0,zero,0x0005ede4
_or s0,v0,zero
beq s1,zero,0x0005ede4
_lw a2,-0x79cc(gp)
or a1,zero,zero
lw t9,-0x7530(gp)
or a3,v0,zero
sw s3,0x0(v0)
or a0,s1,zero
addiu a2,a2,-0x1320
jalr t9
_sw s2,0x4(v0)
bne v0,zero,0x0005ede4
_lw gp,0x10(sp)
lw ra,0x2c(sp)
or v0,s1,zero
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
lw s2,-0x7fcc(gp)
or a0,s1,zero
lw t9,0x0(s2)
jalr t9
_or s1,zero,zero
lw t9,0x0(s2)
jalr t9
_or a0,s0,zero
or v0,s1,zero
lw ra,0x2c(sp)
lw s3,0x28(sp)
lw s2,0x24(sp)
lw s1,0x20(sp)
lw s0,0x1c(sp)
jr ra
_addiu sp,sp,0x30
(translation_unit "int FUN_0005ed38(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  \n  puVar1 = PTR_PTR_malloc_000a6198;\n  iVar3 = (**(code **)PTR_PTR_malloc_000a6198)(4);\n  puVar4 = (undefined4 *)(**(code **)puVar1)(8);\n  puVar2 = PTR_pthread_create_000a6be0;\n  puVar1 = PTR_LAB_000a6744;\n  if ((puVar4 != (undefined4 *)0x0) && (iVar3 != 0)) {\n    *puVar4 = param_1;\n    puVar4[1] = param_2;\n    iVar5 = (*(code *)puVar2)(iVar3,0,puVar1 + -0x1320,puVar4);\n    if (iVar5 == 0) {\n      return iVar3;\n    }\n  }\n  puVar1 = PTR_PTR_free_000a6144;\n  (**(code **)PTR_PTR_free_000a6144)(iVar3);\n  (**(code **)puVar1)(puVar4);\n  return 0;\n}\n\n" (function_definition "int FUN_0005ed38(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  \n  puVar1 = PTR_PTR_malloc_000a6198;\n  iVar3 = (**(code **)PTR_PTR_malloc_000a6198)(4);\n  puVar4 = (undefined4 *)(**(code **)puVar1)(8);\n  puVar2 = PTR_pthread_create_000a6be0;\n  puVar1 = PTR_LAB_000a6744;\n  if ((puVar4 != (undefined4 *)0x0) && (iVar3 != 0)) {\n    *puVar4 = param_1;\n    puVar4[1] = param_2;\n    iVar5 = (*(code *)puVar2)(iVar3,0,puVar1 + -0x1320,puVar4);\n    if (iVar5 == 0) {\n      return iVar3;\n    }\n  }\n  puVar1 = PTR_PTR_free_000a6144;\n  (**(code **)PTR_PTR_free_000a6144)(iVar3);\n  (**(code **)puVar1)(puVar4);\n  return 0;\n}" primitive_type (function_declarator "FUN_0005ed38(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  \n  puVar1 = PTR_PTR_malloc_000a6198;\n  iVar3 = (**(code **)PTR_PTR_malloc_000a6198)(4);\n  puVar4 = (undefined4 *)(**(code **)puVar1)(8);\n  puVar2 = PTR_pthread_create_000a6be0;\n  puVar1 = PTR_LAB_000a6744;\n  if ((puVar4 != (undefined4 *)0x0) && (iVar3 != 0)) {\n    *puVar4 = param_1;\n    puVar4[1] = param_2;\n    iVar5 = (*(code *)puVar2)(iVar3,0,puVar1 + -0x1320,puVar4);\n    if (iVar5 == 0) {\n      return iVar3;\n    }\n  }\n  puVar1 = PTR_PTR_free_000a6144;\n  (**(code **)PTR_PTR_free_000a6144)(iVar3);\n  (**(code **)puVar1)(puVar4);\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "puVar1 = PTR_PTR_malloc_000a6198;" (assignment_expression "puVar1 = PTR_PTR_malloc_000a6198" identifier = identifier) ;) (expression_statement "iVar3 = (**(code **)PTR_PTR_malloc_000a6198)(4);" (assignment_expression "iVar3 = (**(code **)PTR_PTR_malloc_000a6198)(4)" identifier = (call_expression "(**(code **)PTR_PTR_malloc_000a6198)(4)" (parenthesized_expression "(**(code **)PTR_PTR_malloc_000a6198)" ( (pointer_expression "**(code **)PTR_PTR_malloc_000a6198" * (pointer_expression "*(code **)PTR_PTR_malloc_000a6198" * (cast_expression "(code **)PTR_PTR_malloc_000a6198" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(4)" ( number_literal )))) ;) (expression_statement "puVar4 = (undefined4 *)(**(code **)puVar1)(8);" (assignment_expression "puVar4 = (undefined4 *)(**(code **)puVar1)(8)" identifier = (cast_expression "(undefined4 *)(**(code **)puVar1)(8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)puVar1)(8)" (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 "(8)" ( number_literal ))))) ;) (expression_statement "puVar2 = PTR_pthread_create_000a6be0;" (assignment_expression "puVar2 = PTR_pthread_create_000a6be0" identifier = identifier) ;) (expression_statement "puVar1 = PTR_LAB_000a6744;" (assignment_expression "puVar1 = PTR_LAB_000a6744" identifier = identifier) ;) (if_statement "if ((puVar4 != (undefined4 *)0x0) && (iVar3 != 0)) {\n    *puVar4 = param_1;\n    puVar4[1] = param_2;\n    iVar5 = (*(code *)puVar2)(iVar3,0,puVar1 + -0x1320,puVar4);\n    if (iVar5 == 0) {\n      return iVar3;\n    }\n  }" if (parenthesized_expression "((puVar4 != (undefined4 *)0x0) && (iVar3 != 0))" ( (binary_expression "(puVar4 != (undefined4 *)0x0) && (iVar3 != 0)" (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)) )) && (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    *puVar4 = param_1;\n    puVar4[1] = param_2;\n    iVar5 = (*(code *)puVar2)(iVar3,0,puVar1 + -0x1320,puVar4);\n    if (iVar5 == 0) {\n      return iVar3;\n    }\n  }" { (expression_statement "*puVar4 = param_1;" (assignment_expression "*puVar4 = param_1" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "puVar4[1] = param_2;" (assignment_expression "puVar4[1] = param_2" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar5 = (*(code *)puVar2)(iVar3,0,puVar1 + -0x1320,puVar4);" (assignment_expression "iVar5 = (*(code *)puVar2)(iVar3,0,puVar1 + -0x1320,puVar4)" identifier = (call_expression "(*(code *)puVar2)(iVar3,0,puVar1 + -0x1320,puVar4)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3,0,puVar1 + -0x1320,puVar4)" ( identifier , number_literal , (binary_expression "puVar1 + -0x1320" identifier + number_literal) , identifier )))) ;) (if_statement "if (iVar5 == 0) {\n      return iVar3;\n    }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      return iVar3;\n    }" { (return_statement "return iVar3;" return identifier ;) })) })) (expression_statement "puVar1 = PTR_PTR_free_000a6144;" (assignment_expression "puVar1 = PTR_PTR_free_000a6144" identifier = identifier) ;) (expression_statement "(**(code **)PTR_PTR_free_000a6144)(iVar3);" (call_expression "(**(code **)PTR_PTR_free_000a6144)(iVar3)" (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 "(iVar3)" ( identifier ))) ;) (expression_statement "(**(code **)puVar1)(puVar4);" (call_expression "(**(code **)puVar1)(puVar4)" (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 "(puVar4)" ( identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "pthread_t * Curl_thread_create(_func_uint_void_ptr *func,void *arg)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  pthread_t *ppVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  \n  puVar1 = PTR_Curl_cmalloc_000a6198;\n  ppVar3 = (pthread_t *)(**(code **)PTR_Curl_cmalloc_000a6198)(4);\n  puVar4 = (undefined4 *)(**(code **)puVar1)(8);\n  puVar2 = PTR_pthread_create_000a6be0;\n  puVar1 = PTR_LAB_000a6744;\n  if ((puVar4 != (undefined4 *)0x0) && (ppVar3 != (pthread_t *)0x0)) {\n    *puVar4 = func;\n    puVar4[1] = arg;\n    iVar5 = (*(code *)puVar2)(ppVar3,0,puVar1 + -0x1320,puVar4);\n    if (iVar5 == 0) {\n      return ppVar3;\n    }\n  }\n  puVar1 = PTR_Curl_cfree_000a6144;\n  (**(code **)PTR_Curl_cfree_000a6144)(ppVar3);\n  (**(code **)puVar1)(puVar4);\n  return (pthread_t *)0x0;\n}\n\n" (function_definition "pthread_t * Curl_thread_create(_func_uint_void_ptr *func,void *arg)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  pthread_t *ppVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  \n  puVar1 = PTR_Curl_cmalloc_000a6198;\n  ppVar3 = (pthread_t *)(**(code **)PTR_Curl_cmalloc_000a6198)(4);\n  puVar4 = (undefined4 *)(**(code **)puVar1)(8);\n  puVar2 = PTR_pthread_create_000a6be0;\n  puVar1 = PTR_LAB_000a6744;\n  if ((puVar4 != (undefined4 *)0x0) && (ppVar3 != (pthread_t *)0x0)) {\n    *puVar4 = func;\n    puVar4[1] = arg;\n    iVar5 = (*(code *)puVar2)(ppVar3,0,puVar1 + -0x1320,puVar4);\n    if (iVar5 == 0) {\n      return ppVar3;\n    }\n  }\n  puVar1 = PTR_Curl_cfree_000a6144;\n  (**(code **)PTR_Curl_cfree_000a6144)(ppVar3);\n  (**(code **)puVar1)(puVar4);\n  return (pthread_t *)0x0;\n}" type_identifier (pointer_declarator "* Curl_thread_create(_func_uint_void_ptr *func,void *arg)" * (function_declarator "Curl_thread_create(_func_uint_void_ptr *func,void *arg)" identifier (parameter_list "(_func_uint_void_ptr *func,void *arg)" ( (parameter_declaration "_func_uint_void_ptr *func" type_identifier (pointer_declarator "*func" * identifier)) , (parameter_declaration "void *arg" primitive_type (pointer_declarator "*arg" * identifier)) )))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  pthread_t *ppVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  \n  puVar1 = PTR_Curl_cmalloc_000a6198;\n  ppVar3 = (pthread_t *)(**(code **)PTR_Curl_cmalloc_000a6198)(4);\n  puVar4 = (undefined4 *)(**(code **)puVar1)(8);\n  puVar2 = PTR_pthread_create_000a6be0;\n  puVar1 = PTR_LAB_000a6744;\n  if ((puVar4 != (undefined4 *)0x0) && (ppVar3 != (pthread_t *)0x0)) {\n    *puVar4 = func;\n    puVar4[1] = arg;\n    iVar5 = (*(code *)puVar2)(ppVar3,0,puVar1 + -0x1320,puVar4);\n    if (iVar5 == 0) {\n      return ppVar3;\n    }\n  }\n  puVar1 = PTR_Curl_cfree_000a6144;\n  (**(code **)PTR_Curl_cfree_000a6144)(ppVar3);\n  (**(code **)puVar1)(puVar4);\n  return (pthread_t *)0x0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "pthread_t *ppVar3;" type_identifier (pointer_declarator "*ppVar3" * identifier) ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "puVar1 = PTR_Curl_cmalloc_000a6198;" (assignment_expression "puVar1 = PTR_Curl_cmalloc_000a6198" identifier = identifier) ;) (expression_statement "ppVar3 = (pthread_t *)(**(code **)PTR_Curl_cmalloc_000a6198)(4);" (assignment_expression "ppVar3 = (pthread_t *)(**(code **)PTR_Curl_cmalloc_000a6198)(4)" identifier = (cast_expression "(pthread_t *)(**(code **)PTR_Curl_cmalloc_000a6198)(4)" ( (type_descriptor "pthread_t *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)PTR_Curl_cmalloc_000a6198)(4)" (parenthesized_expression "(**(code **)PTR_Curl_cmalloc_000a6198)" ( (pointer_expression "**(code **)PTR_Curl_cmalloc_000a6198" * (pointer_expression "*(code **)PTR_Curl_cmalloc_000a6198" * (cast_expression "(code **)PTR_Curl_cmalloc_000a6198" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(4)" ( number_literal ))))) ;) (expression_statement "puVar4 = (undefined4 *)(**(code **)puVar1)(8);" (assignment_expression "puVar4 = (undefined4 *)(**(code **)puVar1)(8)" identifier = (cast_expression "(undefined4 *)(**(code **)puVar1)(8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)puVar1)(8)" (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 "(8)" ( number_literal ))))) ;) (expression_statement "puVar2 = PTR_pthread_create_000a6be0;" (assignment_expression "puVar2 = PTR_pthread_create_000a6be0" identifier = identifier) ;) (expression_statement "puVar1 = PTR_LAB_000a6744;" (assignment_expression "puVar1 = PTR_LAB_000a6744" identifier = identifier) ;) (if_statement "if ((puVar4 != (undefined4 *)0x0) && (ppVar3 != (pthread_t *)0x0)) {\n    *puVar4 = func;\n    puVar4[1] = arg;\n    iVar5 = (*(code *)puVar2)(ppVar3,0,puVar1 + -0x1320,puVar4);\n    if (iVar5 == 0) {\n      return ppVar3;\n    }\n  }" if (parenthesized_expression "((puVar4 != (undefined4 *)0x0) && (ppVar3 != (pthread_t *)0x0))" ( (binary_expression "(puVar4 != (undefined4 *)0x0) && (ppVar3 != (pthread_t *)0x0)" (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)) )) && (parenthesized_expression "(ppVar3 != (pthread_t *)0x0)" ( (binary_expression "ppVar3 != (pthread_t *)0x0" identifier != (cast_expression "(pthread_t *)0x0" ( (type_descriptor "pthread_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    *puVar4 = func;\n    puVar4[1] = arg;\n    iVar5 = (*(code *)puVar2)(ppVar3,0,puVar1 + -0x1320,puVar4);\n    if (iVar5 == 0) {\n      return ppVar3;\n    }\n  }" { (expression_statement "*puVar4 = func;" (assignment_expression "*puVar4 = func" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "puVar4[1] = arg;" (assignment_expression "puVar4[1] = arg" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar5 = (*(code *)puVar2)(ppVar3,0,puVar1 + -0x1320,puVar4);" (assignment_expression "iVar5 = (*(code *)puVar2)(ppVar3,0,puVar1 + -0x1320,puVar4)" identifier = (call_expression "(*(code *)puVar2)(ppVar3,0,puVar1 + -0x1320,puVar4)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(ppVar3,0,puVar1 + -0x1320,puVar4)" ( identifier , number_literal , (binary_expression "puVar1 + -0x1320" identifier + number_literal) , identifier )))) ;) (if_statement "if (iVar5 == 0) {\n      return ppVar3;\n    }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      return ppVar3;\n    }" { (return_statement "return ppVar3;" return identifier ;) })) })) (expression_statement "puVar1 = PTR_Curl_cfree_000a6144;" (assignment_expression "puVar1 = PTR_Curl_cfree_000a6144" identifier = identifier) ;) (expression_statement "(**(code **)PTR_Curl_cfree_000a6144)(ppVar3);" (call_expression "(**(code **)PTR_Curl_cfree_000a6144)(ppVar3)" (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 "(ppVar3)" ( identifier ))) ;) (expression_statement "(**(code **)puVar1)(puVar4);" (call_expression "(**(code **)puVar1)(puVar4)" (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 "(puVar4)" ( identifier ))) ;) (return_statement "return (pthread_t *)0x0;" return (cast_expression "(pthread_t *)0x0" ( (type_descriptor "pthread_t *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "int FUN_0005ed38(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  \n  puVar1 = PTR_PTR_malloc_000a6198;\n  iVar3 = (**(code **)PTR_PTR_malloc_000a6198)(4);\n  puVar4 = (undefined4 *)(**(code **)puVar1)(8);\n  puVar2 = PTR_pthread_create_000a6be0;\n  puVar1 = PTR_LAB_000a6744;\n  if ((puVar4 != (undefined4 *)0x0) && (iVar3 != 0)) {\n    *puVar4 = param_1;\n    puVar4[1] = param_2;\n    iVar5 = (*(code *)puVar2)(iVar3,0,puVar1 + -0x1320,puVar4);\n    if (iVar5 == 0) {\n      return iVar3;\n    }\n  }\n  puVar1 = PTR_PTR_free_000a6144;\n  (**(code **)PTR_PTR_free_000a6144)(iVar3);\n  (**(code **)puVar1)(puVar4);\n  return 0;\n}\n\n" (function_definition "int FUN_0005ed38(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  \n  puVar1 = PTR_PTR_malloc_000a6198;\n  iVar3 = (**(code **)PTR_PTR_malloc_000a6198)(4);\n  puVar4 = (undefined4 *)(**(code **)puVar1)(8);\n  puVar2 = PTR_pthread_create_000a6be0;\n  puVar1 = PTR_LAB_000a6744;\n  if ((puVar4 != (undefined4 *)0x0) && (iVar3 != 0)) {\n    *puVar4 = param_1;\n    puVar4[1] = param_2;\n    iVar5 = (*(code *)puVar2)(iVar3,0,puVar1 + -0x1320,puVar4);\n    if (iVar5 == 0) {\n      return iVar3;\n    }\n  }\n  puVar1 = PTR_PTR_free_000a6144;\n  (**(code **)PTR_PTR_free_000a6144)(iVar3);\n  (**(code **)puVar1)(puVar4);\n  return 0;\n}" primitive_type (function_declarator "FUN_0005ed38(undefined4 param_1,undefined4 param_2)" identifier (parameter_list "(undefined4 param_1,undefined4 param_2)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  \n  puVar1 = PTR_PTR_malloc_000a6198;\n  iVar3 = (**(code **)PTR_PTR_malloc_000a6198)(4);\n  puVar4 = (undefined4 *)(**(code **)puVar1)(8);\n  puVar2 = PTR_pthread_create_000a6be0;\n  puVar1 = PTR_LAB_000a6744;\n  if ((puVar4 != (undefined4 *)0x0) && (iVar3 != 0)) {\n    *puVar4 = param_1;\n    puVar4[1] = param_2;\n    iVar5 = (*(code *)puVar2)(iVar3,0,puVar1 + -0x1320,puVar4);\n    if (iVar5 == 0) {\n      return iVar3;\n    }\n  }\n  puVar1 = PTR_PTR_free_000a6144;\n  (**(code **)PTR_PTR_free_000a6144)(iVar3);\n  (**(code **)puVar1)(puVar4);\n  return 0;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (expression_statement "puVar1 = PTR_PTR_malloc_000a6198;" (assignment_expression "puVar1 = PTR_PTR_malloc_000a6198" identifier = identifier) ;) (expression_statement "iVar3 = (**(code **)PTR_PTR_malloc_000a6198)(4);" (assignment_expression "iVar3 = (**(code **)PTR_PTR_malloc_000a6198)(4)" identifier = (call_expression "(**(code **)PTR_PTR_malloc_000a6198)(4)" (parenthesized_expression "(**(code **)PTR_PTR_malloc_000a6198)" ( (pointer_expression "**(code **)PTR_PTR_malloc_000a6198" * (pointer_expression "*(code **)PTR_PTR_malloc_000a6198" * (cast_expression "(code **)PTR_PTR_malloc_000a6198" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (argument_list "(4)" ( number_literal )))) ;) (expression_statement "puVar4 = (undefined4 *)(**(code **)puVar1)(8);" (assignment_expression "puVar4 = (undefined4 *)(**(code **)puVar1)(8)" identifier = (cast_expression "(undefined4 *)(**(code **)puVar1)(8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)puVar1)(8)" (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 "(8)" ( number_literal ))))) ;) (expression_statement "puVar2 = PTR_pthread_create_000a6be0;" (assignment_expression "puVar2 = PTR_pthread_create_000a6be0" identifier = identifier) ;) (expression_statement "puVar1 = PTR_LAB_000a6744;" (assignment_expression "puVar1 = PTR_LAB_000a6744" identifier = identifier) ;) (if_statement "if ((puVar4 != (undefined4 *)0x0) && (iVar3 != 0)) {\n    *puVar4 = param_1;\n    puVar4[1] = param_2;\n    iVar5 = (*(code *)puVar2)(iVar3,0,puVar1 + -0x1320,puVar4);\n    if (iVar5 == 0) {\n      return iVar3;\n    }\n  }" if (parenthesized_expression "((puVar4 != (undefined4 *)0x0) && (iVar3 != 0))" ( (binary_expression "(puVar4 != (undefined4 *)0x0) && (iVar3 != 0)" (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)) )) && (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    *puVar4 = param_1;\n    puVar4[1] = param_2;\n    iVar5 = (*(code *)puVar2)(iVar3,0,puVar1 + -0x1320,puVar4);\n    if (iVar5 == 0) {\n      return iVar3;\n    }\n  }" { (expression_statement "*puVar4 = param_1;" (assignment_expression "*puVar4 = param_1" (pointer_expression "*puVar4" * identifier) = identifier) ;) (expression_statement "puVar4[1] = param_2;" (assignment_expression "puVar4[1] = param_2" (subscript_expression "puVar4[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar5 = (*(code *)puVar2)(iVar3,0,puVar1 + -0x1320,puVar4);" (assignment_expression "iVar5 = (*(code *)puVar2)(iVar3,0,puVar1 + -0x1320,puVar4)" identifier = (call_expression "(*(code *)puVar2)(iVar3,0,puVar1 + -0x1320,puVar4)" (parenthesized_expression "(*(code *)puVar2)" ( (pointer_expression "*(code *)puVar2" * (cast_expression "(code *)puVar2" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar3,0,puVar1 + -0x1320,puVar4)" ( identifier , number_literal , (binary_expression "puVar1 + -0x1320" identifier + number_literal) , identifier )))) ;) (if_statement "if (iVar5 == 0) {\n      return iVar3;\n    }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n      return iVar3;\n    }" { (return_statement "return iVar3;" return identifier ;) })) })) (expression_statement "puVar1 = PTR_PTR_free_000a6144;" (assignment_expression "puVar1 = PTR_PTR_free_000a6144" identifier = identifier) ;) (expression_statement "(**(code **)PTR_PTR_free_000a6144)(iVar3);" (call_expression "(**(code **)PTR_PTR_free_000a6144)(iVar3)" (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 "(iVar3)" ( identifier ))) ;) (expression_statement "(**(code **)puVar1)(puVar4);" (call_expression "(**(code **)puVar1)(puVar4)" (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 "(puVar4)" ( 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) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT))) )) (argument_list ( LIT )))) ;) (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 ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , (binary_expression IDENT + LIT) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return IDENT ;) })) })) (expression_statement (assignment_expression IDENT = 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 ))) ;) (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_0005ed38(undefined4 param_1,undefined4 param_2)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  \n  puVar1 = PTR_PTR_malloc_000a6198;\n  iVar3 = (**(code **)PTR_PTR_malloc_000a6198)(4);\n  puVar4 = (undefined4 *)(**(code **)puVar1)(8);\n  puVar2 = PTR_pthread_create_000a6be0;\n  puVar1 = PTR_LAB_000a6744;\n  if ((puVar4 != (undefined4 *)0x0) && (iVar3 != 0)) {\n    *puVar4 = param_1;\n    puVar4[1] = param_2;\n    iVar5 = (*(code *)puVar2)(iVar3,0,puVar1 + -0x1320,puVar4);\n    if (iVar5 == 0) {\n      return iVar3;\n    }\n  }\n  puVar1 = PTR_PTR_free_000a6144;\n  (**(code **)PTR_PTR_free_000a6144)(iVar3);\n  (**(code **)puVar1)(puVar4);\n  return 0;\n}" (primitive_type "int") (function_declarator "FUN_0005ed38(undefined4 param_1,undefined4 param_2)" (identifier "FUN_0005ed38") (parameter_list "(undefined4 param_1,undefined4 param_2)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  int iVar3;\n  undefined4 *puVar4;\n  int iVar5;\n  \n  puVar1 = PTR_PTR_malloc_000a6198;\n  iVar3 = (**(code **)PTR_PTR_malloc_000a6198)(4);\n  puVar4 = (undefined4 *)(**(code **)puVar1)(8);\n  puVar2 = PTR_pthread_create_000a6be0;\n  puVar1 = PTR_LAB_000a6744;\n  if ((puVar4 != (undefined4 *)0x0) && (iVar3 != 0)) {\n    *puVar4 = param_1;\n    puVar4[1] = param_2;\n    iVar5 = (*(code *)puVar2)(iVar3,0,puVar1 + -0x1320,puVar4);\n    if (iVar5 == 0) {\n      return iVar3;\n    }\n  }\n  puVar1 = PTR_PTR_free_000a6144;\n  (**(code **)PTR_PTR_free_000a6144)(iVar3);\n  (**(code **)puVar1)(puVar4);\n  return 0;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (expression_statement "puVar1 = PTR_PTR_malloc_000a6198;" (assignment_expression "puVar1 = PTR_PTR_malloc_000a6198" (identifier "puVar1") (= "=") (identifier "PTR_PTR_malloc_000a6198")) (; ";")) (expression_statement "iVar3 = (**(code **)PTR_PTR_malloc_000a6198)(4);" (assignment_expression "iVar3 = (**(code **)PTR_PTR_malloc_000a6198)(4)" (identifier "iVar3") (= "=") (call_expression "(**(code **)PTR_PTR_malloc_000a6198)(4)" (parenthesized_expression "(**(code **)PTR_PTR_malloc_000a6198)" (( "(") (pointer_expression "**(code **)PTR_PTR_malloc_000a6198" (* "*") (pointer_expression "*(code **)PTR_PTR_malloc_000a6198" (* "*") (cast_expression "(code **)PTR_PTR_malloc_000a6198" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_PTR_malloc_000a6198")))) () ")")) (argument_list "(4)" (( "(") (number_literal "4") () ")")))) (; ";")) (expression_statement "puVar4 = (undefined4 *)(**(code **)puVar1)(8);" (assignment_expression "puVar4 = (undefined4 *)(**(code **)puVar1)(8)" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)(**(code **)puVar1)(8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(**(code **)puVar1)(8)" (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 "(8)" (( "(") (number_literal "8") () ")"))))) (; ";")) (expression_statement "puVar2 = PTR_pthread_create_000a6be0;" (assignment_expression "puVar2 = PTR_pthread_create_000a6be0" (identifier "puVar2") (= "=") (identifier "PTR_pthread_create_000a6be0")) (; ";")) (expression_statement "puVar1 = PTR_LAB_000a6744;" (assignment_expression "puVar1 = PTR_LAB_000a6744" (identifier "puVar1") (= "=") (identifier "PTR_LAB_000a6744")) (; ";")) (if_statement "if ((puVar4 != (undefined4 *)0x0) && (iVar3 != 0)) {\n    *puVar4 = param_1;\n    puVar4[1] = param_2;\n    iVar5 = (*(code *)puVar2)(iVar3,0,puVar1 + -0x1320,puVar4);\n    if (iVar5 == 0) {\n      return iVar3;\n    }\n  }" (if "if") (parenthesized_expression "((puVar4 != (undefined4 *)0x0) && (iVar3 != 0))" (( "(") (binary_expression "(puVar4 != (undefined4 *)0x0) && (iVar3 != 0)" (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"))) () ")")) (&& "&&") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    *puVar4 = param_1;\n    puVar4[1] = param_2;\n    iVar5 = (*(code *)puVar2)(iVar3,0,puVar1 + -0x1320,puVar4);\n    if (iVar5 == 0) {\n      return iVar3;\n    }\n  }" ({ "{") (expression_statement "*puVar4 = param_1;" (assignment_expression "*puVar4 = param_1" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (identifier "param_1")) (; ";")) (expression_statement "puVar4[1] = param_2;" (assignment_expression "puVar4[1] = param_2" (subscript_expression "puVar4[1]" (identifier "puVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "iVar5 = (*(code *)puVar2)(iVar3,0,puVar1 + -0x1320,puVar4);" (assignment_expression "iVar5 = (*(code *)puVar2)(iVar3,0,puVar1 + -0x1320,puVar4)" (identifier "iVar5") (= "=") (call_expression "(*(code *)puVar2)(iVar3,0,puVar1 + -0x1320,puVar4)" (parenthesized_expression "(*(code *)puVar2)" (( "(") (pointer_expression "*(code *)puVar2" (* "*") (cast_expression "(code *)puVar2" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar2"))) () ")")) (argument_list "(iVar3,0,puVar1 + -0x1320,puVar4)" (( "(") (identifier "iVar3") (, ",") (number_literal "0") (, ",") (binary_expression "puVar1 + -0x1320" (identifier "puVar1") (+ "+") (number_literal "-0x1320")) (, ",") (identifier "puVar4") () ")")))) (; ";")) (if_statement "if (iVar5 == 0) {\n      return iVar3;\n    }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return iVar3;\n    }" ({ "{") (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}"))) (} "}"))) (expression_statement "puVar1 = PTR_PTR_free_000a6144;" (assignment_expression "puVar1 = PTR_PTR_free_000a6144" (identifier "puVar1") (= "=") (identifier "PTR_PTR_free_000a6144")) (; ";")) (expression_statement "(**(code **)PTR_PTR_free_000a6144)(iVar3);" (call_expression "(**(code **)PTR_PTR_free_000a6144)(iVar3)" (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 "(iVar3)" (( "(") (identifier "iVar3") () ")"))) (; ";")) (expression_statement "(**(code **)puVar1)(puVar4);" (call_expression "(**(code **)puVar1)(puVar4)" (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 "(puVar4)" (( "(") (identifier "puVar4") () ")"))) (; ";")) (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: (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: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (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))))) (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)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (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) (number_literal) (binary_expression left: (identifier) right: (number_literal)) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (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)))) (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(undefined4 param_1,undefined4 param_2)

{
  undefined *puVar1;
  undefined *puVar2;
  int iVar3;
  undefined4 *puVar4;
  int iVar5;
  
  puVar1 = PTR_PTR_malloc_000a6198;
  iVar3 = (**(code **)PTR_PTR_malloc_000a6198)(4);
  puVar4 = (undefined4 *)(**(code **)puVar1)(8);
  puVar2 = PTR_pthread_create_000a6be0;
  puVar1 = PTR_LAB_000a6744;
  if ((puVar4 != (undefined4 *)0x0) && (iVar3 != 0)) {
    *puVar4 = param_1;
    puVar4[1] = param_2;
    iVar5 = (*(code *)puVar2)(iVar3,0,puVar1 + -0x1320,puVar4);
    if (iVar5 == 0) {
      return iVar3;
    }
  }
  puVar1 = PTR_PTR_free_000a6144;
  (**(code **)PTR_PTR_free_000a6144)(iVar3);
  (**(code **)puVar1)(puVar4);
  return 0;
}

