
void __regparm3 call_freefun(obstack *h,void *old_chunk)

{
  if ((h->field_0x28 & 1) != 0) {
    (*(h->freefun).plain)(h->extra_arg);
    return;
  }
  (*(h->freefun).plain)(old_chunk);
  return;
}



void __regparm3 FUN_00029310(int param_1,undefined4 param_2)

{
  if ((*(byte *)(param_1 + 0x28) & 1) != 0) {
    (**(code **)(param_1 + 0x20))(*(undefined4 *)(param_1 + 0x24),param_2);
    return;
  }
  (**(code **)(param_1 + 0x20))(param_2);
  return;
}


SUB ESP,0xc
MOV ECX,dword ptr [EAX + 0x20]
TEST byte ptr [EAX + 0x28],0x1
JZ 0x00029330
SUB ESP,0x8
PUSH EDX
PUSH dword ptr [EAX + 0x24]
CALL ECX
ADD ESP,0x10
ADD ESP,0xc
RET
SUB ESP,0xc
PUSH EDX
CALL ECX
ADD ESP,0x10
ADD ESP,0xc
RET
(translation_unit "void __regparm3 FUN_00029310(int param_1,undefined4 param_2)\n\n{\n  if ((*(byte *)(param_1 + 0x28) & 1) != 0) {\n    (**(code **)(param_1 + 0x20))(*(undefined4 *)(param_1 + 0x24),param_2);\n    return;\n  }\n  (**(code **)(param_1 + 0x20))(param_2);\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00029310(int param_1,undefined4 param_2)\n\n{\n  if ((*(byte *)(param_1 + 0x28) & 1) != 0) {\n    (**(code **)(param_1 + 0x20))(*(undefined4 *)(param_1 + 0x24),param_2);\n    return;\n  }\n  (**(code **)(param_1 + 0x20))(param_2);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00029310(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  if ((*(byte *)(param_1 + 0x28) & 1) != 0) {\n    (**(code **)(param_1 + 0x20))(*(undefined4 *)(param_1 + 0x24),param_2);\n    return;\n  }\n  (**(code **)(param_1 + 0x20))(param_2);\n  return;\n}" { (if_statement "if ((*(byte *)(param_1 + 0x28) & 1) != 0) {\n    (**(code **)(param_1 + 0x20))(*(undefined4 *)(param_1 + 0x24),param_2);\n    return;\n  }" if (parenthesized_expression "((*(byte *)(param_1 + 0x28) & 1) != 0)" ( (binary_expression "(*(byte *)(param_1 + 0x28) & 1) != 0" (parenthesized_expression "(*(byte *)(param_1 + 0x28) & 1)" ( (binary_expression "*(byte *)(param_1 + 0x28) & 1" (pointer_expression "*(byte *)(param_1 + 0x28)" * (cast_expression "(byte *)(param_1 + 0x28)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    (**(code **)(param_1 + 0x20))(*(undefined4 *)(param_1 + 0x24),param_2);\n    return;\n  }" { (expression_statement "(**(code **)(param_1 + 0x20))(*(undefined4 *)(param_1 + 0x24),param_2);" (call_expression "(**(code **)(param_1 + 0x20))(*(undefined4 *)(param_1 + 0x24),param_2)" (parenthesized_expression "(**(code **)(param_1 + 0x20))" ( (pointer_expression "**(code **)(param_1 + 0x20)" * (pointer_expression "*(code **)(param_1 + 0x20)" * (cast_expression "(code **)(param_1 + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(param_1 + 0x24),param_2)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x24)" * (cast_expression "(undefined4 *)(param_1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "(**(code **)(param_1 + 0x20))(param_2);" (call_expression "(**(code **)(param_1 + 0x20))(param_2)" (parenthesized_expression "(**(code **)(param_1 + 0x20))" ( (pointer_expression "**(code **)(param_1 + 0x20)" * (pointer_expression "*(code **)(param_1 + 0x20)" * (cast_expression "(code **)(param_1 + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) )) (argument_list "(param_2)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 call_freefun(obstack *h,void *old_chunk)\n\n{\n  if ((h->field_0x28 & 1) != 0) {\n    (*(h->freefun).plain)(h->extra_arg);\n    return;\n  }\n  (*(h->freefun).plain)(old_chunk);\n  return;\n}\n\n" (function_definition "void __regparm3 call_freefun(obstack *h,void *old_chunk)\n\n{\n  if ((h->field_0x28 & 1) != 0) {\n    (*(h->freefun).plain)(h->extra_arg);\n    return;\n  }\n  (*(h->freefun).plain)(old_chunk);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "call_freefun(obstack *h,void *old_chunk)" identifier (parameter_list "(obstack *h,void *old_chunk)" ( (parameter_declaration "obstack *h" type_identifier (pointer_declarator "*h" * identifier)) , (parameter_declaration "void *old_chunk" primitive_type (pointer_declarator "*old_chunk" * identifier)) ))) (compound_statement "{\n  if ((h->field_0x28 & 1) != 0) {\n    (*(h->freefun).plain)(h->extra_arg);\n    return;\n  }\n  (*(h->freefun).plain)(old_chunk);\n  return;\n}" { (if_statement "if ((h->field_0x28 & 1) != 0) {\n    (*(h->freefun).plain)(h->extra_arg);\n    return;\n  }" if (parenthesized_expression "((h->field_0x28 & 1) != 0)" ( (binary_expression "(h->field_0x28 & 1) != 0" (parenthesized_expression "(h->field_0x28 & 1)" ( (binary_expression "h->field_0x28 & 1" (field_expression "h->field_0x28" identifier -> field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n    (*(h->freefun).plain)(h->extra_arg);\n    return;\n  }" { (expression_statement "(*(h->freefun).plain)(h->extra_arg);" (call_expression "(*(h->freefun).plain)(h->extra_arg)" (parenthesized_expression "(*(h->freefun).plain)" ( (pointer_expression "*(h->freefun).plain" * (field_expression "(h->freefun).plain" (parenthesized_expression "(h->freefun)" ( (field_expression "h->freefun" identifier -> field_identifier) )) . field_identifier)) )) (argument_list "(h->extra_arg)" ( (field_expression "h->extra_arg" identifier -> field_identifier) ))) ;) (return_statement "return;" return ;) })) (expression_statement "(*(h->freefun).plain)(old_chunk);" (call_expression "(*(h->freefun).plain)(old_chunk)" (parenthesized_expression "(*(h->freefun).plain)" ( (pointer_expression "*(h->freefun).plain" * (field_expression "(h->freefun).plain" (parenthesized_expression "(h->freefun)" ( (field_expression "h->freefun" identifier -> field_identifier) )) . field_identifier)) )) (argument_list "(old_chunk)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 FUN_00029310(int param_1,undefined4 param_2)\n\n{\n  if ((*(byte *)(param_1 + 0x28) & 1) != 0) {\n    (**(code **)(param_1 + 0x20))(*(undefined4 *)(param_1 + 0x24),param_2);\n    return;\n  }\n  (**(code **)(param_1 + 0x20))(param_2);\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00029310(int param_1,undefined4 param_2)\n\n{\n  if ((*(byte *)(param_1 + 0x28) & 1) != 0) {\n    (**(code **)(param_1 + 0x20))(*(undefined4 *)(param_1 + 0x24),param_2);\n    return;\n  }\n  (**(code **)(param_1 + 0x20))(param_2);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00029310(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  if ((*(byte *)(param_1 + 0x28) & 1) != 0) {\n    (**(code **)(param_1 + 0x20))(*(undefined4 *)(param_1 + 0x24),param_2);\n    return;\n  }\n  (**(code **)(param_1 + 0x20))(param_2);\n  return;\n}" { (if_statement "if ((*(byte *)(param_1 + 0x28) & 1) != 0) {\n    (**(code **)(param_1 + 0x20))(*(undefined4 *)(param_1 + 0x24),param_2);\n    return;\n  }" if (parenthesized_expression "((*(byte *)(param_1 + 0x28) & 1) != 0)" ( (binary_expression "(*(byte *)(param_1 + 0x28) & 1) != 0" (parenthesized_expression "(*(byte *)(param_1 + 0x28) & 1)" ( (binary_expression "*(byte *)(param_1 + 0x28) & 1" (pointer_expression "*(byte *)(param_1 + 0x28)" * (cast_expression "(byte *)(param_1 + 0x28)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    (**(code **)(param_1 + 0x20))(*(undefined4 *)(param_1 + 0x24),param_2);\n    return;\n  }" { (expression_statement "(**(code **)(param_1 + 0x20))(*(undefined4 *)(param_1 + 0x24),param_2);" (call_expression "(**(code **)(param_1 + 0x20))(*(undefined4 *)(param_1 + 0x24),param_2)" (parenthesized_expression "(**(code **)(param_1 + 0x20))" ( (pointer_expression "**(code **)(param_1 + 0x20)" * (pointer_expression "*(code **)(param_1 + 0x20)" * (cast_expression "(code **)(param_1 + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) )) (argument_list "(*(undefined4 *)(param_1 + 0x24),param_2)" ( (pointer_expression "*(undefined4 *)(param_1 + 0x24)" * (cast_expression "(undefined4 *)(param_1 + 0x24)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) )))) , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "(**(code **)(param_1 + 0x20))(param_2);" (call_expression "(**(code **)(param_1 + 0x20))(param_2)" (parenthesized_expression "(**(code **)(param_1 + 0x20))" ( (pointer_expression "**(code **)(param_1 + 0x20)" * (pointer_expression "*(code **)(param_1 + 0x20)" * (cast_expression "(code **)(param_1 + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x20)" ( (binary_expression "param_1 + 0x20" identifier + number_literal) ))))) )) (argument_list "(param_2)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))) ;) (return_statement return ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00029310(int param_1,undefined4 param_2)\n\n{\n  if ((*(byte *)(param_1 + 0x28) & 1) != 0) {\n    (**(code **)(param_1 + 0x20))(*(undefined4 *)(param_1 + 0x24),param_2);\n    return;\n  }\n  (**(code **)(param_1 + 0x20))(param_2);\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00029310(int param_1,undefined4 param_2)" (identifier "FUN_00029310") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  if ((*(byte *)(param_1 + 0x28) & 1) != 0) {\n    (**(code **)(param_1 + 0x20))(*(undefined4 *)(param_1 + 0x24),param_2);\n    return;\n  }\n  (**(code **)(param_1 + 0x20))(param_2);\n  return;\n}" ({ "{") (if_statement "if ((*(byte *)(param_1 + 0x28) & 1) != 0) {\n    (**(code **)(param_1 + 0x20))(*(undefined4 *)(param_1 + 0x24),param_2);\n    return;\n  }" (if "if") (parenthesized_expression "((*(byte *)(param_1 + 0x28) & 1) != 0)" (( "(") (binary_expression "(*(byte *)(param_1 + 0x28) & 1) != 0" (parenthesized_expression "(*(byte *)(param_1 + 0x28) & 1)" (( "(") (binary_expression "*(byte *)(param_1 + 0x28) & 1" (pointer_expression "*(byte *)(param_1 + 0x28)" (* "*") (cast_expression "(byte *)(param_1 + 0x28)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    (**(code **)(param_1 + 0x20))(*(undefined4 *)(param_1 + 0x24),param_2);\n    return;\n  }" ({ "{") (expression_statement "(**(code **)(param_1 + 0x20))(*(undefined4 *)(param_1 + 0x24),param_2);" (call_expression "(**(code **)(param_1 + 0x20))(*(undefined4 *)(param_1 + 0x24),param_2)" (parenthesized_expression "(**(code **)(param_1 + 0x20))" (( "(") (pointer_expression "**(code **)(param_1 + 0x20)" (* "*") (pointer_expression "*(code **)(param_1 + 0x20)" (* "*") (cast_expression "(code **)(param_1 + 0x20)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")"))))) () ")")) (argument_list "(*(undefined4 *)(param_1 + 0x24),param_2)" (( "(") (pointer_expression "*(undefined4 *)(param_1 + 0x24)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x24)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")")))) (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "(**(code **)(param_1 + 0x20))(param_2);" (call_expression "(**(code **)(param_1 + 0x20))(param_2)" (parenthesized_expression "(**(code **)(param_1 + 0x20))" (( "(") (pointer_expression "**(code **)(param_1 + 0x20)" (* "*") (pointer_expression "*(code **)(param_1 + 0x20)" (* "*") (cast_expression "(code **)(param_1 + 0x20)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x20)" (( "(") (binary_expression "param_1 + 0x20" (identifier "param_1") (+ "+") (number_literal "0x20")) () ")"))))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void __regparm3 function_1(type_1 *h,void *old_chunk)

{
  if ((h->field_0x28 & 1) != 0) {
    (*(h->freefun).plain)(h->extra_arg);
    return;
  }
  (*(h->freefun).plain)(old_chunk);
  return;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) 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: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) (identifier)))) (return_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: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) arguments: (argument_list (identifier)))) (return_statement))))

void __regparm3 MASKED(int param_1,undefined4 param_2)

{
  if ((*(byte *)(param_1 + 0x28) & 1) != 0) {
    (**(code **)(param_1 + 0x20))(*(undefined4 *)(param_1 + 0x24),param_2);
    return;
  }
  (**(code **)(param_1 + 0x20))(param_2);
  return;
}

