
void * call_chunkfun(obstack *h,size_t size)

{
  void *pvVar1;
  
  if ((h->field_0x50 & 1) == 0) {
    pvVar1 = (*(h->chunkfun).plain)(size);
  }
  else {
    pvVar1 = (*(h->chunkfun).plain)((size_t)h->extra_arg);
  }
  return pvVar1;
}



void FUN_00112699(long param_1,undefined8 param_2)

{
  if ((*(byte *)(param_1 + 0x50) & 1) == 0) {
    (**(code **)(param_1 + 0x38))(param_2);
  }
  else {
    (**(code **)(param_1 + 0x38))(*(undefined8 *)(param_1 + 0x48));
  }
  return;
}


SUB RSP,0x8
MOV RAX,RDI
TEST byte ptr [RDI + 0x50],0x1
JZ 0x001126b2
MOV RDI,qword ptr [RDI + 0x48]
CALL qword ptr [RAX + 0x38]
ADD RSP,0x8
RET
MOV RDI,RSI
CALL qword ptr [RAX + 0x38]
JMP 0x001126ad
(translation_unit "void FUN_00112699(long param_1,undefined8 param_2)\n\n{\n  if ((*(byte *)(param_1 + 0x50) & 1) == 0) {\n    (**(code **)(param_1 + 0x38))(param_2);\n  }\n  else {\n    (**(code **)(param_1 + 0x38))(*(undefined8 *)(param_1 + 0x48));\n  }\n  return;\n}\n\n" (function_definition "void FUN_00112699(long param_1,undefined8 param_2)\n\n{\n  if ((*(byte *)(param_1 + 0x50) & 1) == 0) {\n    (**(code **)(param_1 + 0x38))(param_2);\n  }\n  else {\n    (**(code **)(param_1 + 0x38))(*(undefined8 *)(param_1 + 0x48));\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00112699(long param_1,undefined8 param_2)" identifier (parameter_list "(long param_1,undefined8 param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  if ((*(byte *)(param_1 + 0x50) & 1) == 0) {\n    (**(code **)(param_1 + 0x38))(param_2);\n  }\n  else {\n    (**(code **)(param_1 + 0x38))(*(undefined8 *)(param_1 + 0x48));\n  }\n  return;\n}" { (if_statement "if ((*(byte *)(param_1 + 0x50) & 1) == 0) {\n    (**(code **)(param_1 + 0x38))(param_2);\n  }\n  else {\n    (**(code **)(param_1 + 0x38))(*(undefined8 *)(param_1 + 0x48));\n  }" if (parenthesized_expression "((*(byte *)(param_1 + 0x50) & 1) == 0)" ( (binary_expression "(*(byte *)(param_1 + 0x50) & 1) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x50) & 1)" ( (binary_expression "*(byte *)(param_1 + 0x50) & 1" (pointer_expression "*(byte *)(param_1 + 0x50)" * (cast_expression "(byte *)(param_1 + 0x50)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    (**(code **)(param_1 + 0x38))(param_2);\n  }" { (expression_statement "(**(code **)(param_1 + 0x38))(param_2);" (call_expression "(**(code **)(param_1 + 0x38))(param_2)" (parenthesized_expression "(**(code **)(param_1 + 0x38))" ( (pointer_expression "**(code **)(param_1 + 0x38)" * (pointer_expression "*(code **)(param_1 + 0x38)" * (cast_expression "(code **)(param_1 + 0x38)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) ))))) )) (argument_list "(param_2)" ( identifier ))) ;) }) (else_clause "else {\n    (**(code **)(param_1 + 0x38))(*(undefined8 *)(param_1 + 0x48));\n  }" else (compound_statement "{\n    (**(code **)(param_1 + 0x38))(*(undefined8 *)(param_1 + 0x48));\n  }" { (expression_statement "(**(code **)(param_1 + 0x38))(*(undefined8 *)(param_1 + 0x48));" (call_expression "(**(code **)(param_1 + 0x38))(*(undefined8 *)(param_1 + 0x48))" (parenthesized_expression "(**(code **)(param_1 + 0x38))" ( (pointer_expression "**(code **)(param_1 + 0x38)" * (pointer_expression "*(code **)(param_1 + 0x38)" * (cast_expression "(code **)(param_1 + 0x38)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) ))))) )) (argument_list "(*(undefined8 *)(param_1 + 0x48))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x48)" * (cast_expression "(undefined8 *)(param_1 + 0x48)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) ))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit "void * call_chunkfun(obstack *h,size_t size)\n\n{\n  void *pvVar1;\n  \n  if ((h->field_0x50 & 1) == 0) {\n    pvVar1 = (*(h->chunkfun).plain)(size);\n  }\n  else {\n    pvVar1 = (*(h->chunkfun).plain)((size_t)h->extra_arg);\n  }\n  return pvVar1;\n}\n\n" (function_definition "void * call_chunkfun(obstack *h,size_t size)\n\n{\n  void *pvVar1;\n  \n  if ((h->field_0x50 & 1) == 0) {\n    pvVar1 = (*(h->chunkfun).plain)(size);\n  }\n  else {\n    pvVar1 = (*(h->chunkfun).plain)((size_t)h->extra_arg);\n  }\n  return pvVar1;\n}" primitive_type (pointer_declarator "* call_chunkfun(obstack *h,size_t size)" * (function_declarator "call_chunkfun(obstack *h,size_t size)" identifier (parameter_list "(obstack *h,size_t size)" ( (parameter_declaration "obstack *h" type_identifier (pointer_declarator "*h" * identifier)) , (parameter_declaration "size_t size" primitive_type identifier) )))) (compound_statement "{\n  void *pvVar1;\n  \n  if ((h->field_0x50 & 1) == 0) {\n    pvVar1 = (*(h->chunkfun).plain)(size);\n  }\n  else {\n    pvVar1 = (*(h->chunkfun).plain)((size_t)h->extra_arg);\n  }\n  return pvVar1;\n}" { (declaration "void *pvVar1;" primitive_type (pointer_declarator "*pvVar1" * identifier) ;) (if_statement "if ((h->field_0x50 & 1) == 0) {\n    pvVar1 = (*(h->chunkfun).plain)(size);\n  }\n  else {\n    pvVar1 = (*(h->chunkfun).plain)((size_t)h->extra_arg);\n  }" if (parenthesized_expression "((h->field_0x50 & 1) == 0)" ( (binary_expression "(h->field_0x50 & 1) == 0" (parenthesized_expression "(h->field_0x50 & 1)" ( (binary_expression "h->field_0x50 & 1" (field_expression "h->field_0x50" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    pvVar1 = (*(h->chunkfun).plain)(size);\n  }" { (expression_statement "pvVar1 = (*(h->chunkfun).plain)(size);" (assignment_expression "pvVar1 = (*(h->chunkfun).plain)(size)" identifier = (call_expression "(*(h->chunkfun).plain)(size)" (parenthesized_expression "(*(h->chunkfun).plain)" ( (pointer_expression "*(h->chunkfun).plain" * (field_expression "(h->chunkfun).plain" (parenthesized_expression "(h->chunkfun)" ( (field_expression "h->chunkfun" identifier -> field_identifier) )) . field_identifier)) )) (argument_list "(size)" ( identifier )))) ;) }) (else_clause "else {\n    pvVar1 = (*(h->chunkfun).plain)((size_t)h->extra_arg);\n  }" else (compound_statement "{\n    pvVar1 = (*(h->chunkfun).plain)((size_t)h->extra_arg);\n  }" { (expression_statement "pvVar1 = (*(h->chunkfun).plain)((size_t)h->extra_arg);" (assignment_expression "pvVar1 = (*(h->chunkfun).plain)((size_t)h->extra_arg)" identifier = (call_expression "(*(h->chunkfun).plain)((size_t)h->extra_arg)" (parenthesized_expression "(*(h->chunkfun).plain)" ( (pointer_expression "*(h->chunkfun).plain" * (field_expression "(h->chunkfun).plain" (parenthesized_expression "(h->chunkfun)" ( (field_expression "h->chunkfun" identifier -> field_identifier) )) . field_identifier)) )) (argument_list "((size_t)h->extra_arg)" ( (cast_expression "(size_t)h->extra_arg" ( (type_descriptor "size_t" primitive_type) ) (field_expression "h->extra_arg" identifier -> field_identifier)) )))) ;) }))) (return_statement "return pvVar1;" return identifier ;) })))
(translation_unit "void FUN_00112699(long param_1,undefined8 param_2)\n\n{\n  if ((*(byte *)(param_1 + 0x50) & 1) == 0) {\n    (**(code **)(param_1 + 0x38))(param_2);\n  }\n  else {\n    (**(code **)(param_1 + 0x38))(*(undefined8 *)(param_1 + 0x48));\n  }\n  return;\n}\n\n" (function_definition "void FUN_00112699(long param_1,undefined8 param_2)\n\n{\n  if ((*(byte *)(param_1 + 0x50) & 1) == 0) {\n    (**(code **)(param_1 + 0x38))(param_2);\n  }\n  else {\n    (**(code **)(param_1 + 0x38))(*(undefined8 *)(param_1 + 0x48));\n  }\n  return;\n}" primitive_type (function_declarator "FUN_00112699(long param_1,undefined8 param_2)" identifier (parameter_list "(long param_1,undefined8 param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_2" type_identifier identifier) ))) (compound_statement "{\n  if ((*(byte *)(param_1 + 0x50) & 1) == 0) {\n    (**(code **)(param_1 + 0x38))(param_2);\n  }\n  else {\n    (**(code **)(param_1 + 0x38))(*(undefined8 *)(param_1 + 0x48));\n  }\n  return;\n}" { (if_statement "if ((*(byte *)(param_1 + 0x50) & 1) == 0) {\n    (**(code **)(param_1 + 0x38))(param_2);\n  }\n  else {\n    (**(code **)(param_1 + 0x38))(*(undefined8 *)(param_1 + 0x48));\n  }" if (parenthesized_expression "((*(byte *)(param_1 + 0x50) & 1) == 0)" ( (binary_expression "(*(byte *)(param_1 + 0x50) & 1) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x50) & 1)" ( (binary_expression "*(byte *)(param_1 + 0x50) & 1" (pointer_expression "*(byte *)(param_1 + 0x50)" * (cast_expression "(byte *)(param_1 + 0x50)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x50)" ( (binary_expression "param_1 + 0x50" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    (**(code **)(param_1 + 0x38))(param_2);\n  }" { (expression_statement "(**(code **)(param_1 + 0x38))(param_2);" (call_expression "(**(code **)(param_1 + 0x38))(param_2)" (parenthesized_expression "(**(code **)(param_1 + 0x38))" ( (pointer_expression "**(code **)(param_1 + 0x38)" * (pointer_expression "*(code **)(param_1 + 0x38)" * (cast_expression "(code **)(param_1 + 0x38)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) ))))) )) (argument_list "(param_2)" ( identifier ))) ;) }) (else_clause "else {\n    (**(code **)(param_1 + 0x38))(*(undefined8 *)(param_1 + 0x48));\n  }" else (compound_statement "{\n    (**(code **)(param_1 + 0x38))(*(undefined8 *)(param_1 + 0x48));\n  }" { (expression_statement "(**(code **)(param_1 + 0x38))(*(undefined8 *)(param_1 + 0x48));" (call_expression "(**(code **)(param_1 + 0x38))(*(undefined8 *)(param_1 + 0x48))" (parenthesized_expression "(**(code **)(param_1 + 0x38))" ( (pointer_expression "**(code **)(param_1 + 0x38)" * (pointer_expression "*(code **)(param_1 + 0x38)" * (cast_expression "(code **)(param_1 + 0x38)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) ))))) )) (argument_list "(*(undefined8 *)(param_1 + 0x48))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x48)" * (cast_expression "(undefined8 *)(param_1 + 0x48)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) ))) ;) }))) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) 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 ( IDENT ))) ;) }) (else_clause else (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) )))) ))) ;) }))) (return_statement return ;) })))
(function_definition "void FUN_00112699(long param_1,undefined8 param_2)\n\n{\n  if ((*(byte *)(param_1 + 0x50) & 1) == 0) {\n    (**(code **)(param_1 + 0x38))(param_2);\n  }\n  else {\n    (**(code **)(param_1 + 0x38))(*(undefined8 *)(param_1 + 0x48));\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00112699(long param_1,undefined8 param_2)" (identifier "FUN_00112699") (parameter_list "(long param_1,undefined8 param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "undefined8 param_2" (type_identifier "undefined8") (identifier "param_2")) () ")"))) (compound_statement "{\n  if ((*(byte *)(param_1 + 0x50) & 1) == 0) {\n    (**(code **)(param_1 + 0x38))(param_2);\n  }\n  else {\n    (**(code **)(param_1 + 0x38))(*(undefined8 *)(param_1 + 0x48));\n  }\n  return;\n}" ({ "{") (if_statement "if ((*(byte *)(param_1 + 0x50) & 1) == 0) {\n    (**(code **)(param_1 + 0x38))(param_2);\n  }\n  else {\n    (**(code **)(param_1 + 0x38))(*(undefined8 *)(param_1 + 0x48));\n  }" (if "if") (parenthesized_expression "((*(byte *)(param_1 + 0x50) & 1) == 0)" (( "(") (binary_expression "(*(byte *)(param_1 + 0x50) & 1) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0x50) & 1)" (( "(") (binary_expression "*(byte *)(param_1 + 0x50) & 1" (pointer_expression "*(byte *)(param_1 + 0x50)" (* "*") (cast_expression "(byte *)(param_1 + 0x50)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x50)" (( "(") (binary_expression "param_1 + 0x50" (identifier "param_1") (+ "+") (number_literal "0x50")) () ")")))) (& "&") (number_literal "1")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    (**(code **)(param_1 + 0x38))(param_2);\n  }" ({ "{") (expression_statement "(**(code **)(param_1 + 0x38))(param_2);" (call_expression "(**(code **)(param_1 + 0x38))(param_2)" (parenthesized_expression "(**(code **)(param_1 + 0x38))" (( "(") (pointer_expression "**(code **)(param_1 + 0x38)" (* "*") (pointer_expression "*(code **)(param_1 + 0x38)" (* "*") (cast_expression "(code **)(param_1 + 0x38)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")"))))) () ")")) (argument_list "(param_2)" (( "(") (identifier "param_2") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    (**(code **)(param_1 + 0x38))(*(undefined8 *)(param_1 + 0x48));\n  }" (else "else") (compound_statement "{\n    (**(code **)(param_1 + 0x38))(*(undefined8 *)(param_1 + 0x48));\n  }" ({ "{") (expression_statement "(**(code **)(param_1 + 0x38))(*(undefined8 *)(param_1 + 0x48));" (call_expression "(**(code **)(param_1 + 0x38))(*(undefined8 *)(param_1 + 0x48))" (parenthesized_expression "(**(code **)(param_1 + 0x38))" (( "(") (pointer_expression "**(code **)(param_1 + 0x38)" (* "*") (pointer_expression "*(code **)(param_1 + 0x38)" (* "*") (cast_expression "(code **)(param_1 + 0x38)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")"))))) () ")")) (argument_list "(*(undefined8 *)(param_1 + 0x48))" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0x48)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x48)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x48)" (( "(") (binary_expression "param_1 + 0x48" (identifier "param_1") (+ "+") (number_literal "0x48")) () ")")))) () ")"))) (; ";")) (} "}")))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void * function_1(type_1 *h,size_t size)

{
  void *pvVar1;
  
  if ((h->field_0x50 & 1) == 0) {
    pvVar1 = (*(h->chunkfun).plain)(size);
  }
  else {
    pvVar1 = (*(h->chunkfun).plain)((size_t)h->extra_arg);
  }
  return pvVar1;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) 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 (identifier))))) alternative: (else_clause (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))))))))))) (return_statement))))

void MASKED(long param_1,undefined8 param_2)

{
  if ((*(byte *)(param_1 + 0x50) & 1) == 0) {
    (**(code **)(param_1 + 0x38))(param_2);
  }
  else {
    (**(code **)(param_1 + 0x38))(*(undefined8 *)(param_1 + 0x48));
  }
  return;
}

