
/* WARNING: Unknown calling convention */

pollwrapper * pollwrap_new(void)

{
  pollwrapper *ppVar1;
  pollfd *ppVar2;
  tree234 *ptVar3;
  
  ppVar1 = (pollwrapper *)(*(code *)PTR_safemalloc_000be3d4)(1,0x10);
  ppVar1->fdsize = 0x10;
  ppVar1->nfd = 0;
  ppVar2 = (pollfd *)(*(code *)PTR_safemalloc_000be3d4)(0x10,8);
  ppVar1->fds = ppVar2;
  ptVar3 = newtree234((cmpfn234)(PTR_LAB_000bec24 + -0x780));
  ppVar1->fdtopos = ptVar3;
  return ppVar1;
}



undefined4 * pollwrap_new(void)

{
  undefined4 *puVar1;
  undefined4 uVar2;
  
  puVar1 = (undefined4 *)(*(code *)PTR_safemalloc_000be3d4)(1,0x10);
  puVar1[2] = 0x10;
  puVar1[1] = 0;
  uVar2 = (*(code *)PTR_safemalloc_000be3d4)(0x10,8);
  *puVar1 = uVar2;
  uVar2 = newtree234(PTR_LAB_000bec24 + -0x780);
  puVar1[3] = uVar2;
  return puVar1;
}


lui gp,0x3
addiu gp,gp,0x6acc
addu gp,gp,t9
addiu sp,sp,-0x20
sw ra,0x1c(sp)
sw s0,0x18(sp)
sw gp,0x10(sp)
li a1,0x10
li a0,0x1
lw t9,-0x7f9c(gp)
jalr t9
_nop
lw gp,0x10(sp)
or s0,v0,zero
li v0,0x10
sw v0,0x8(s0)
sw zero,0x4(s0)
li a1,0x8
li a0,0x10
lw t9,-0x7f9c(gp)
jalr t9
_nop
lw gp,0x10(sp)
sw v0,0x0(s0)
lw a0,-0x774c(gp)
addiu a0,a0,-0x780
lw t9,-0x7f10(gp)
bal 0x000888bc
_nop
lw gp,0x10(sp)
sw v0,0xc(s0)
or v0,s0,zero
lw ra,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x20
(translation_unit "undefined4 * pollwrap_new(void)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)(*(code *)PTR_safemalloc_000be3d4)(1,0x10);\n  puVar1[2] = 0x10;\n  puVar1[1] = 0;\n  uVar2 = (*(code *)PTR_safemalloc_000be3d4)(0x10,8);\n  *puVar1 = uVar2;\n  uVar2 = newtree234(PTR_LAB_000bec24 + -0x780);\n  puVar1[3] = uVar2;\n  return puVar1;\n}\n\n" (function_definition "undefined4 * pollwrap_new(void)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)(*(code *)PTR_safemalloc_000be3d4)(1,0x10);\n  puVar1[2] = 0x10;\n  puVar1[1] = 0;\n  uVar2 = (*(code *)PTR_safemalloc_000be3d4)(0x10,8);\n  *puVar1 = uVar2;\n  uVar2 = newtree234(PTR_LAB_000bec24 + -0x780);\n  puVar1[3] = uVar2;\n  return puVar1;\n}" type_identifier (pointer_declarator "* pollwrap_new(void)" * (function_declarator "pollwrap_new(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)(*(code *)PTR_safemalloc_000be3d4)(1,0x10);\n  puVar1[2] = 0x10;\n  puVar1[1] = 0;\n  uVar2 = (*(code *)PTR_safemalloc_000be3d4)(0x10,8);\n  *puVar1 = uVar2;\n  uVar2 = newtree234(PTR_LAB_000bec24 + -0x780);\n  puVar1[3] = uVar2;\n  return puVar1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR_safemalloc_000be3d4)(1,0x10);" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR_safemalloc_000be3d4)(1,0x10)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_safemalloc_000be3d4)(1,0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_000be3d4)(1,0x10)" (parenthesized_expression "(*(code *)PTR_safemalloc_000be3d4)" ( (pointer_expression "*(code *)PTR_safemalloc_000be3d4" * (cast_expression "(code *)PTR_safemalloc_000be3d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0x10)" ( number_literal , number_literal ))))) ;) (expression_statement "puVar1[2] = 0x10;" (assignment_expression "puVar1[2] = 0x10" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar2 = (*(code *)PTR_safemalloc_000be3d4)(0x10,8);" (assignment_expression "uVar2 = (*(code *)PTR_safemalloc_000be3d4)(0x10,8)" identifier = (call_expression "(*(code *)PTR_safemalloc_000be3d4)(0x10,8)" (parenthesized_expression "(*(code *)PTR_safemalloc_000be3d4)" ( (pointer_expression "*(code *)PTR_safemalloc_000be3d4" * (cast_expression "(code *)PTR_safemalloc_000be3d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x10,8)" ( number_literal , number_literal )))) ;) (expression_statement "*puVar1 = uVar2;" (assignment_expression "*puVar1 = uVar2" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "uVar2 = newtree234(PTR_LAB_000bec24 + -0x780);" (assignment_expression "uVar2 = newtree234(PTR_LAB_000bec24 + -0x780)" identifier = (call_expression "newtree234(PTR_LAB_000bec24 + -0x780)" identifier (argument_list "(PTR_LAB_000bec24 + -0x780)" ( (binary_expression "PTR_LAB_000bec24 + -0x780" identifier + number_literal) )))) ;) (expression_statement "puVar1[3] = uVar2;" (assignment_expression "puVar1[3] = uVar2" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = identifier) ;) (return_statement "return puVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\npollwrapper * pollwrap_new(void)\n\n{\n  pollwrapper *ppVar1;\n  pollfd *ppVar2;\n  tree234 *ptVar3;\n  \n  ppVar1 = (pollwrapper *)(*(code *)PTR_safemalloc_000be3d4)(1,0x10);\n  ppVar1->fdsize = 0x10;\n  ppVar1->nfd = 0;\n  ppVar2 = (pollfd *)(*(code *)PTR_safemalloc_000be3d4)(0x10,8);\n  ppVar1->fds = ppVar2;\n  ptVar3 = newtree234((cmpfn234)(PTR_LAB_000bec24 + -0x780));\n  ppVar1->fdtopos = ptVar3;\n  return ppVar1;\n}\n\n" comment (function_definition "pollwrapper * pollwrap_new(void)\n\n{\n  pollwrapper *ppVar1;\n  pollfd *ppVar2;\n  tree234 *ptVar3;\n  \n  ppVar1 = (pollwrapper *)(*(code *)PTR_safemalloc_000be3d4)(1,0x10);\n  ppVar1->fdsize = 0x10;\n  ppVar1->nfd = 0;\n  ppVar2 = (pollfd *)(*(code *)PTR_safemalloc_000be3d4)(0x10,8);\n  ppVar1->fds = ppVar2;\n  ptVar3 = newtree234((cmpfn234)(PTR_LAB_000bec24 + -0x780));\n  ppVar1->fdtopos = ptVar3;\n  return ppVar1;\n}" type_identifier (pointer_declarator "* pollwrap_new(void)" * (function_declarator "pollwrap_new(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  pollwrapper *ppVar1;\n  pollfd *ppVar2;\n  tree234 *ptVar3;\n  \n  ppVar1 = (pollwrapper *)(*(code *)PTR_safemalloc_000be3d4)(1,0x10);\n  ppVar1->fdsize = 0x10;\n  ppVar1->nfd = 0;\n  ppVar2 = (pollfd *)(*(code *)PTR_safemalloc_000be3d4)(0x10,8);\n  ppVar1->fds = ppVar2;\n  ptVar3 = newtree234((cmpfn234)(PTR_LAB_000bec24 + -0x780));\n  ppVar1->fdtopos = ptVar3;\n  return ppVar1;\n}" { (declaration "pollwrapper *ppVar1;" type_identifier (pointer_declarator "*ppVar1" * identifier) ;) (declaration "pollfd *ppVar2;" type_identifier (pointer_declarator "*ppVar2" * identifier) ;) (declaration "tree234 *ptVar3;" type_identifier (pointer_declarator "*ptVar3" * identifier) ;) (expression_statement "ppVar1 = (pollwrapper *)(*(code *)PTR_safemalloc_000be3d4)(1,0x10);" (assignment_expression "ppVar1 = (pollwrapper *)(*(code *)PTR_safemalloc_000be3d4)(1,0x10)" identifier = (cast_expression "(pollwrapper *)(*(code *)PTR_safemalloc_000be3d4)(1,0x10)" ( (type_descriptor "pollwrapper *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_000be3d4)(1,0x10)" (parenthesized_expression "(*(code *)PTR_safemalloc_000be3d4)" ( (pointer_expression "*(code *)PTR_safemalloc_000be3d4" * (cast_expression "(code *)PTR_safemalloc_000be3d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0x10)" ( number_literal , number_literal ))))) ;) (expression_statement "ppVar1->fdsize = 0x10;" (assignment_expression "ppVar1->fdsize = 0x10" (field_expression "ppVar1->fdsize" identifier -> field_identifier) = number_literal) ;) (expression_statement "ppVar1->nfd = 0;" (assignment_expression "ppVar1->nfd = 0" (field_expression "ppVar1->nfd" identifier -> field_identifier) = number_literal) ;) (expression_statement "ppVar2 = (pollfd *)(*(code *)PTR_safemalloc_000be3d4)(0x10,8);" (assignment_expression "ppVar2 = (pollfd *)(*(code *)PTR_safemalloc_000be3d4)(0x10,8)" identifier = (cast_expression "(pollfd *)(*(code *)PTR_safemalloc_000be3d4)(0x10,8)" ( (type_descriptor "pollfd *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_000be3d4)(0x10,8)" (parenthesized_expression "(*(code *)PTR_safemalloc_000be3d4)" ( (pointer_expression "*(code *)PTR_safemalloc_000be3d4" * (cast_expression "(code *)PTR_safemalloc_000be3d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x10,8)" ( number_literal , number_literal ))))) ;) (expression_statement "ppVar1->fds = ppVar2;" (assignment_expression "ppVar1->fds = ppVar2" (field_expression "ppVar1->fds" identifier -> field_identifier) = identifier) ;) (expression_statement "ptVar3 = newtree234((cmpfn234)(PTR_LAB_000bec24 + -0x780));" (assignment_expression "ptVar3 = newtree234((cmpfn234)(PTR_LAB_000bec24 + -0x780))" identifier = (call_expression "newtree234((cmpfn234)(PTR_LAB_000bec24 + -0x780))" identifier (argument_list "((cmpfn234)(PTR_LAB_000bec24 + -0x780))" ( (call_expression "(cmpfn234)(PTR_LAB_000bec24 + -0x780)" (parenthesized_expression "(cmpfn234)" ( identifier )) (argument_list "(PTR_LAB_000bec24 + -0x780)" ( (binary_expression "PTR_LAB_000bec24 + -0x780" identifier + number_literal) ))) )))) ;) (expression_statement "ppVar1->fdtopos = ptVar3;" (assignment_expression "ppVar1->fdtopos = ptVar3" (field_expression "ppVar1->fdtopos" identifier -> field_identifier) = identifier) ;) (return_statement "return ppVar1;" return identifier ;) })))
(translation_unit "undefined4 * pollwrap_new(void)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)(*(code *)PTR_safemalloc_000be3d4)(1,0x10);\n  puVar1[2] = 0x10;\n  puVar1[1] = 0;\n  uVar2 = (*(code *)PTR_safemalloc_000be3d4)(0x10,8);\n  *puVar1 = uVar2;\n  uVar2 = newtree234(PTR_LAB_000bec24 + -0x780);\n  puVar1[3] = uVar2;\n  return puVar1;\n}\n\n" (function_definition "undefined4 * pollwrap_new(void)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)(*(code *)PTR_safemalloc_000be3d4)(1,0x10);\n  puVar1[2] = 0x10;\n  puVar1[1] = 0;\n  uVar2 = (*(code *)PTR_safemalloc_000be3d4)(0x10,8);\n  *puVar1 = uVar2;\n  uVar2 = newtree234(PTR_LAB_000bec24 + -0x780);\n  puVar1[3] = uVar2;\n  return puVar1;\n}" type_identifier (pointer_declarator "* pollwrap_new(void)" * (function_declarator "pollwrap_new(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)(*(code *)PTR_safemalloc_000be3d4)(1,0x10);\n  puVar1[2] = 0x10;\n  puVar1[1] = 0;\n  uVar2 = (*(code *)PTR_safemalloc_000be3d4)(0x10,8);\n  *puVar1 = uVar2;\n  uVar2 = newtree234(PTR_LAB_000bec24 + -0x780);\n  puVar1[3] = uVar2;\n  return puVar1;\n}" { (declaration "undefined4 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR_safemalloc_000be3d4)(1,0x10);" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR_safemalloc_000be3d4)(1,0x10)" identifier = (cast_expression "(undefined4 *)(*(code *)PTR_safemalloc_000be3d4)(1,0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_safemalloc_000be3d4)(1,0x10)" (parenthesized_expression "(*(code *)PTR_safemalloc_000be3d4)" ( (pointer_expression "*(code *)PTR_safemalloc_000be3d4" * (cast_expression "(code *)PTR_safemalloc_000be3d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(1,0x10)" ( number_literal , number_literal ))))) ;) (expression_statement "puVar1[2] = 0x10;" (assignment_expression "puVar1[2] = 0x10" (subscript_expression "puVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar2 = (*(code *)PTR_safemalloc_000be3d4)(0x10,8);" (assignment_expression "uVar2 = (*(code *)PTR_safemalloc_000be3d4)(0x10,8)" identifier = (call_expression "(*(code *)PTR_safemalloc_000be3d4)(0x10,8)" (parenthesized_expression "(*(code *)PTR_safemalloc_000be3d4)" ( (pointer_expression "*(code *)PTR_safemalloc_000be3d4" * (cast_expression "(code *)PTR_safemalloc_000be3d4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0x10,8)" ( number_literal , number_literal )))) ;) (expression_statement "*puVar1 = uVar2;" (assignment_expression "*puVar1 = uVar2" (pointer_expression "*puVar1" * identifier) = identifier) ;) (expression_statement "uVar2 = newtree234(PTR_LAB_000bec24 + -0x780);" (assignment_expression "uVar2 = newtree234(PTR_LAB_000bec24 + -0x780)" identifier = (call_expression "newtree234(PTR_LAB_000bec24 + -0x780)" identifier (argument_list "(PTR_LAB_000bec24 + -0x780)" ( (binary_expression "PTR_LAB_000bec24 + -0x780" identifier + number_literal) )))) ;) (expression_statement "puVar1[3] = uVar2;" (assignment_expression "puVar1[3] = uVar2" (subscript_expression "puVar1[3]" identifier [ number_literal ]) = identifier) ;) (return_statement "return puVar1;" 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 IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( LIT , LIT ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (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 ( LIT , LIT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return IDENT ;) })))
(function_definition "undefined4 * pollwrap_new(void)\n\n{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)(*(code *)PTR_safemalloc_000be3d4)(1,0x10);\n  puVar1[2] = 0x10;\n  puVar1[1] = 0;\n  uVar2 = (*(code *)PTR_safemalloc_000be3d4)(0x10,8);\n  *puVar1 = uVar2;\n  uVar2 = newtree234(PTR_LAB_000bec24 + -0x780);\n  puVar1[3] = uVar2;\n  return puVar1;\n}" (type_identifier "undefined4") (pointer_declarator "* pollwrap_new(void)" (* "*") (function_declarator "pollwrap_new(void)" (identifier "pollwrap_new") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")")))) (compound_statement "{\n  undefined4 *puVar1;\n  undefined4 uVar2;\n  \n  puVar1 = (undefined4 *)(*(code *)PTR_safemalloc_000be3d4)(1,0x10);\n  puVar1[2] = 0x10;\n  puVar1[1] = 0;\n  uVar2 = (*(code *)PTR_safemalloc_000be3d4)(0x10,8);\n  *puVar1 = uVar2;\n  uVar2 = newtree234(PTR_LAB_000bec24 + -0x780);\n  puVar1[3] = uVar2;\n  return puVar1;\n}" ({ "{") (declaration "undefined4 *puVar1;" (type_identifier "undefined4") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (expression_statement "puVar1 = (undefined4 *)(*(code *)PTR_safemalloc_000be3d4)(1,0x10);" (assignment_expression "puVar1 = (undefined4 *)(*(code *)PTR_safemalloc_000be3d4)(1,0x10)" (identifier "puVar1") (= "=") (cast_expression "(undefined4 *)(*(code *)PTR_safemalloc_000be3d4)(1,0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_safemalloc_000be3d4)(1,0x10)" (parenthesized_expression "(*(code *)PTR_safemalloc_000be3d4)" (( "(") (pointer_expression "*(code *)PTR_safemalloc_000be3d4" (* "*") (cast_expression "(code *)PTR_safemalloc_000be3d4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safemalloc_000be3d4"))) () ")")) (argument_list "(1,0x10)" (( "(") (number_literal "1") (, ",") (number_literal "0x10") () ")"))))) (; ";")) (expression_statement "puVar1[2] = 0x10;" (assignment_expression "puVar1[2] = 0x10" (subscript_expression "puVar1[2]" (identifier "puVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0x10")) (; ";")) (expression_statement "puVar1[1] = 0;" (assignment_expression "puVar1[1] = 0" (subscript_expression "puVar1[1]" (identifier "puVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar2 = (*(code *)PTR_safemalloc_000be3d4)(0x10,8);" (assignment_expression "uVar2 = (*(code *)PTR_safemalloc_000be3d4)(0x10,8)" (identifier "uVar2") (= "=") (call_expression "(*(code *)PTR_safemalloc_000be3d4)(0x10,8)" (parenthesized_expression "(*(code *)PTR_safemalloc_000be3d4)" (( "(") (pointer_expression "*(code *)PTR_safemalloc_000be3d4" (* "*") (cast_expression "(code *)PTR_safemalloc_000be3d4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_safemalloc_000be3d4"))) () ")")) (argument_list "(0x10,8)" (( "(") (number_literal "0x10") (, ",") (number_literal "8") () ")")))) (; ";")) (expression_statement "*puVar1 = uVar2;" (assignment_expression "*puVar1 = uVar2" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (identifier "uVar2")) (; ";")) (expression_statement "uVar2 = newtree234(PTR_LAB_000bec24 + -0x780);" (assignment_expression "uVar2 = newtree234(PTR_LAB_000bec24 + -0x780)" (identifier "uVar2") (= "=") (call_expression "newtree234(PTR_LAB_000bec24 + -0x780)" (identifier "newtree234") (argument_list "(PTR_LAB_000bec24 + -0x780)" (( "(") (binary_expression "PTR_LAB_000bec24 + -0x780" (identifier "PTR_LAB_000bec24") (+ "+") (number_literal "-0x780")) () ")")))) (; ";")) (expression_statement "puVar1[3] = uVar2;" (assignment_expression "puVar1[3] = uVar2" (subscript_expression "puVar1[3]" (identifier "puVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "uVar2")) (; ";")) (return_statement "return puVar1;" (return "return") (identifier "puVar1") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

type_1 * function_1(void)

{
  type_1 *ppVar1;
  type_2 *ppVar2;
  type_3 *ptVar3;
  
  ppVar1 = (type_1 *)(*(type_4 *)PTR_safemalloc_000be3d4)(1,0x10);
  ppVar1->fdsize = 0x10;
  ppVar1->nfd = 0;
  ppVar2 = (type_2 *)(*(type_4 *)PTR_safemalloc_000be3d4)(0x10,8);
  ppVar1->fds = ppVar2;
  ptVar3 = var_1((cmpfn234)(var_2 + -0x780));
  ppVar1->fdtopos = ptVar3;
  return ppVar1;
}


(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: (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: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (number_literal) (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier)))) arguments: (argument_list (number_literal) (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (return_statement (identifier)))))

undefined4 * MASKED(void)

{
  undefined4 *puVar1;
  undefined4 uVar2;
  
  puVar1 = (undefined4 *)(*(code *)PTR_safemalloc_000be3d4)(1,0x10);
  puVar1[2] = 0x10;
  puVar1[1] = 0;
  uVar2 = (*(code *)PTR_safemalloc_000be3d4)(0x10,8);
  *puVar1 = uVar2;
  uVar2 = newtree234(PTR_LAB_000bec24 + -0x780);
  puVar1[3] = uVar2;
  return puVar1;
}

