
/* WARNING: Unknown calling convention */

formal_entry * new_formal(void)

{
  formal_entry *pfVar1;
  
  pfVar1 = (formal_entry *)xmalloc(0x58);
  sb_new(&pfVar1->name);
  sb_new(&pfVar1->def);
  sb_new(&pfVar1->actual);
  pfVar1->next = (formal_struct *)0x0;
  pfVar1->type = FORMAL_OPTIONAL;
  return pfVar1;
}



undefined8 * FUN_0011b7d0(void)

{
  undefined8 *puVar1;
  
  puVar1 = (undefined8 *)xmalloc(0x58);
  FUN_00126e90(puVar1 + 1);
  FUN_00126e90(puVar1 + 4);
  FUN_00126e90(puVar1 + 7);
  *puVar1 = 0;
  *(undefined4 *)((long)puVar1 + 0x54) = 0;
  return puVar1;
}


PUSH RBX
MOV EDI,0x58
CALL 0x00109748
MOV RBX,RAX
LEA RDI,[RAX + 0x8]
CALL 0x00126e90
LEA RDI,[RBX + 0x20]
CALL 0x00126e90
LEA RDI,[RBX + 0x38]
CALL 0x00126e90
MOV RAX,RBX
MOV qword ptr [RBX],0x0
MOV dword ptr [RBX + 0x54],0x0
POP RBX
RET
(translation_unit "undefined8 * FUN_0011b7d0(void)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = (undefined8 *)xmalloc(0x58);\n  FUN_00126e90(puVar1 + 1);\n  FUN_00126e90(puVar1 + 4);\n  FUN_00126e90(puVar1 + 7);\n  *puVar1 = 0;\n  *(undefined4 *)((long)puVar1 + 0x54) = 0;\n  return puVar1;\n}\n\n" (function_definition "undefined8 * FUN_0011b7d0(void)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = (undefined8 *)xmalloc(0x58);\n  FUN_00126e90(puVar1 + 1);\n  FUN_00126e90(puVar1 + 4);\n  FUN_00126e90(puVar1 + 7);\n  *puVar1 = 0;\n  *(undefined4 *)((long)puVar1 + 0x54) = 0;\n  return puVar1;\n}" type_identifier (pointer_declarator "* FUN_0011b7d0(void)" * (function_declarator "FUN_0011b7d0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  undefined8 *puVar1;\n  \n  puVar1 = (undefined8 *)xmalloc(0x58);\n  FUN_00126e90(puVar1 + 1);\n  FUN_00126e90(puVar1 + 4);\n  FUN_00126e90(puVar1 + 7);\n  *puVar1 = 0;\n  *(undefined4 *)((long)puVar1 + 0x54) = 0;\n  return puVar1;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "puVar1 = (undefined8 *)xmalloc(0x58);" (assignment_expression "puVar1 = (undefined8 *)xmalloc(0x58)" identifier = (cast_expression "(undefined8 *)xmalloc(0x58)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x58)" identifier (argument_list "(0x58)" ( number_literal ))))) ;) (expression_statement "FUN_00126e90(puVar1 + 1);" (call_expression "FUN_00126e90(puVar1 + 1)" identifier (argument_list "(puVar1 + 1)" ( (binary_expression "puVar1 + 1" identifier + number_literal) ))) ;) (expression_statement "FUN_00126e90(puVar1 + 4);" (call_expression "FUN_00126e90(puVar1 + 4)" identifier (argument_list "(puVar1 + 4)" ( (binary_expression "puVar1 + 4" identifier + number_literal) ))) ;) (expression_statement "FUN_00126e90(puVar1 + 7);" (call_expression "FUN_00126e90(puVar1 + 7)" identifier (argument_list "(puVar1 + 7)" ( (binary_expression "puVar1 + 7" identifier + number_literal) ))) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "*(undefined4 *)((long)puVar1 + 0x54) = 0;" (assignment_expression "*(undefined4 *)((long)puVar1 + 0x54) = 0" (pointer_expression "*(undefined4 *)((long)puVar1 + 0x54)" * (cast_expression "(undefined4 *)((long)puVar1 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar1 + 0x54)" ( (binary_expression "(long)puVar1 + 0x54" (cast_expression "(long)puVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (return_statement "return puVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nformal_entry * new_formal(void)\n\n{\n  formal_entry *pfVar1;\n  \n  pfVar1 = (formal_entry *)xmalloc(0x58);\n  sb_new(&pfVar1->name);\n  sb_new(&pfVar1->def);\n  sb_new(&pfVar1->actual);\n  pfVar1->next = (formal_struct *)0x0;\n  pfVar1->type = FORMAL_OPTIONAL;\n  return pfVar1;\n}\n\n" comment (function_definition "formal_entry * new_formal(void)\n\n{\n  formal_entry *pfVar1;\n  \n  pfVar1 = (formal_entry *)xmalloc(0x58);\n  sb_new(&pfVar1->name);\n  sb_new(&pfVar1->def);\n  sb_new(&pfVar1->actual);\n  pfVar1->next = (formal_struct *)0x0;\n  pfVar1->type = FORMAL_OPTIONAL;\n  return pfVar1;\n}" type_identifier (pointer_declarator "* new_formal(void)" * (function_declarator "new_formal(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  formal_entry *pfVar1;\n  \n  pfVar1 = (formal_entry *)xmalloc(0x58);\n  sb_new(&pfVar1->name);\n  sb_new(&pfVar1->def);\n  sb_new(&pfVar1->actual);\n  pfVar1->next = (formal_struct *)0x0;\n  pfVar1->type = FORMAL_OPTIONAL;\n  return pfVar1;\n}" { (declaration "formal_entry *pfVar1;" type_identifier (pointer_declarator "*pfVar1" * identifier) ;) (expression_statement "pfVar1 = (formal_entry *)xmalloc(0x58);" (assignment_expression "pfVar1 = (formal_entry *)xmalloc(0x58)" identifier = (cast_expression "(formal_entry *)xmalloc(0x58)" ( (type_descriptor "formal_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x58)" identifier (argument_list "(0x58)" ( number_literal ))))) ;) (expression_statement "sb_new(&pfVar1->name);" (call_expression "sb_new(&pfVar1->name)" identifier (argument_list "(&pfVar1->name)" ( (pointer_expression "&pfVar1->name" & (field_expression "pfVar1->name" identifier -> field_identifier)) ))) ;) (expression_statement "sb_new(&pfVar1->def);" (call_expression "sb_new(&pfVar1->def)" identifier (argument_list "(&pfVar1->def)" ( (pointer_expression "&pfVar1->def" & (field_expression "pfVar1->def" identifier -> field_identifier)) ))) ;) (expression_statement "sb_new(&pfVar1->actual);" (call_expression "sb_new(&pfVar1->actual)" identifier (argument_list "(&pfVar1->actual)" ( (pointer_expression "&pfVar1->actual" & (field_expression "pfVar1->actual" identifier -> field_identifier)) ))) ;) (expression_statement "pfVar1->next = (formal_struct *)0x0;" (assignment_expression "pfVar1->next = (formal_struct *)0x0" (field_expression "pfVar1->next" identifier -> field_identifier) = (cast_expression "(formal_struct *)0x0" ( (type_descriptor "formal_struct *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pfVar1->type = FORMAL_OPTIONAL;" (assignment_expression "pfVar1->type = FORMAL_OPTIONAL" (field_expression "pfVar1->type" identifier -> field_identifier) = identifier) ;) (return_statement "return pfVar1;" return identifier ;) })))
(translation_unit "undefined8 * FUN_0011b7d0(void)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = (undefined8 *)xmalloc(0x58);\n  FUN_00126e90(puVar1 + 1);\n  FUN_00126e90(puVar1 + 4);\n  FUN_00126e90(puVar1 + 7);\n  *puVar1 = 0;\n  *(undefined4 *)((long)puVar1 + 0x54) = 0;\n  return puVar1;\n}\n\n" (function_definition "undefined8 * FUN_0011b7d0(void)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = (undefined8 *)xmalloc(0x58);\n  FUN_00126e90(puVar1 + 1);\n  FUN_00126e90(puVar1 + 4);\n  FUN_00126e90(puVar1 + 7);\n  *puVar1 = 0;\n  *(undefined4 *)((long)puVar1 + 0x54) = 0;\n  return puVar1;\n}" type_identifier (pointer_declarator "* FUN_0011b7d0(void)" * (function_declarator "FUN_0011b7d0(void)" identifier (parameter_list "(void)" ( (parameter_declaration "void" primitive_type) )))) (compound_statement "{\n  undefined8 *puVar1;\n  \n  puVar1 = (undefined8 *)xmalloc(0x58);\n  FUN_00126e90(puVar1 + 1);\n  FUN_00126e90(puVar1 + 4);\n  FUN_00126e90(puVar1 + 7);\n  *puVar1 = 0;\n  *(undefined4 *)((long)puVar1 + 0x54) = 0;\n  return puVar1;\n}" { (declaration "undefined8 *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (expression_statement "puVar1 = (undefined8 *)xmalloc(0x58);" (assignment_expression "puVar1 = (undefined8 *)xmalloc(0x58)" identifier = (cast_expression "(undefined8 *)xmalloc(0x58)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x58)" identifier (argument_list "(0x58)" ( number_literal ))))) ;) (expression_statement "FUN_00126e90(puVar1 + 1);" (call_expression "FUN_00126e90(puVar1 + 1)" identifier (argument_list "(puVar1 + 1)" ( (binary_expression "puVar1 + 1" identifier + number_literal) ))) ;) (expression_statement "FUN_00126e90(puVar1 + 4);" (call_expression "FUN_00126e90(puVar1 + 4)" identifier (argument_list "(puVar1 + 4)" ( (binary_expression "puVar1 + 4" identifier + number_literal) ))) ;) (expression_statement "FUN_00126e90(puVar1 + 7);" (call_expression "FUN_00126e90(puVar1 + 7)" identifier (argument_list "(puVar1 + 7)" ( (binary_expression "puVar1 + 7" identifier + number_literal) ))) ;) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" * identifier) = number_literal) ;) (expression_statement "*(undefined4 *)((long)puVar1 + 0x54) = 0;" (assignment_expression "*(undefined4 *)((long)puVar1 + 0x54) = 0" (pointer_expression "*(undefined4 *)((long)puVar1 + 0x54)" * (cast_expression "(undefined4 *)((long)puVar1 + 0x54)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)puVar1 + 0x54)" ( (binary_expression "(long)puVar1 + 0x54" (cast_expression "(long)puVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (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) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = LIT) ;) (return_statement return IDENT ;) })))
(function_definition "undefined8 * FUN_0011b7d0(void)\n\n{\n  undefined8 *puVar1;\n  \n  puVar1 = (undefined8 *)xmalloc(0x58);\n  FUN_00126e90(puVar1 + 1);\n  FUN_00126e90(puVar1 + 4);\n  FUN_00126e90(puVar1 + 7);\n  *puVar1 = 0;\n  *(undefined4 *)((long)puVar1 + 0x54) = 0;\n  return puVar1;\n}" (type_identifier "undefined8") (pointer_declarator "* FUN_0011b7d0(void)" (* "*") (function_declarator "FUN_0011b7d0(void)" (identifier "FUN_0011b7d0") (parameter_list "(void)" (( "(") (parameter_declaration "void" (primitive_type "void")) () ")")))) (compound_statement "{\n  undefined8 *puVar1;\n  \n  puVar1 = (undefined8 *)xmalloc(0x58);\n  FUN_00126e90(puVar1 + 1);\n  FUN_00126e90(puVar1 + 4);\n  FUN_00126e90(puVar1 + 7);\n  *puVar1 = 0;\n  *(undefined4 *)((long)puVar1 + 0x54) = 0;\n  return puVar1;\n}" ({ "{") (declaration "undefined8 *puVar1;" (type_identifier "undefined8") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (expression_statement "puVar1 = (undefined8 *)xmalloc(0x58);" (assignment_expression "puVar1 = (undefined8 *)xmalloc(0x58)" (identifier "puVar1") (= "=") (cast_expression "(undefined8 *)xmalloc(0x58)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0x58)" (identifier "xmalloc") (argument_list "(0x58)" (( "(") (number_literal "0x58") () ")"))))) (; ";")) (expression_statement "FUN_00126e90(puVar1 + 1);" (call_expression "FUN_00126e90(puVar1 + 1)" (identifier "FUN_00126e90") (argument_list "(puVar1 + 1)" (( "(") (binary_expression "puVar1 + 1" (identifier "puVar1") (+ "+") (number_literal "1")) () ")"))) (; ";")) (expression_statement "FUN_00126e90(puVar1 + 4);" (call_expression "FUN_00126e90(puVar1 + 4)" (identifier "FUN_00126e90") (argument_list "(puVar1 + 4)" (( "(") (binary_expression "puVar1 + 4" (identifier "puVar1") (+ "+") (number_literal "4")) () ")"))) (; ";")) (expression_statement "FUN_00126e90(puVar1 + 7);" (call_expression "FUN_00126e90(puVar1 + 7)" (identifier "FUN_00126e90") (argument_list "(puVar1 + 7)" (( "(") (binary_expression "puVar1 + 7" (identifier "puVar1") (+ "+") (number_literal "7")) () ")"))) (; ";")) (expression_statement "*puVar1 = 0;" (assignment_expression "*puVar1 = 0" (pointer_expression "*puVar1" (* "*") (identifier "puVar1")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)((long)puVar1 + 0x54) = 0;" (assignment_expression "*(undefined4 *)((long)puVar1 + 0x54) = 0" (pointer_expression "*(undefined4 *)((long)puVar1 + 0x54)" (* "*") (cast_expression "(undefined4 *)((long)puVar1 + 0x54)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)puVar1 + 0x54)" (( "(") (binary_expression "(long)puVar1 + 0x54" (cast_expression "(long)puVar1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "puVar1")) (+ "+") (number_literal "0x54")) () ")")))) (= "=") (number_literal "0")) (; ";")) (return_statement "return puVar1;" (return "return") (identifier "puVar1") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

type_1 * function_1(void)

{
  type_1 *pfVar1;
  
  pfVar1 = (type_1 *)var_1(0x58);
  var_2(&pfVar1->name);
  var_2(&pfVar1->def);
  var_2(&pfVar1->actual);
  pfVar1->next = (type_2 *)0x0;
  pfVar1->type = FORMAL_OPTIONAL;
  return pfVar1;
}


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

undefined8 * MASKED(void)

{
  undefined8 *puVar1;
  
  puVar1 = (undefined8 *)xmalloc(0x58);
  FUN_00126e90(puVar1 + 1);
  FUN_00126e90(puVar1 + 4);
  FUN_00126e90(puVar1 + 7);
  *puVar1 = 0;
  *(undefined4 *)((long)puVar1 + 0x54) = 0;
  return puVar1;
}

