
void telnet_free(void *handle)

{
  safefree(*(void **)((long)handle + 0x78));
  if (*(long **)((long)handle + 8) != (long *)0x0) {
    (**(code **)(**(long **)((long)handle + 8) + 8))();
  }
  if (*(Pinger *)((long)handle + 0x98) != (Pinger)0x0) {
    pinger_free(*(Pinger *)((long)handle + 0x98));
  }
  conf_free(*(Conf **)((long)handle + 0x90));
  safefree(handle);
  return;
}



void FUN_0012bbec(long param_1)

{
  FUN_00122b5a(*(undefined8 *)(param_1 + 0x78));
  if (*(long **)(param_1 + 8) != (long *)0x0) {
    (**(code **)(**(long **)(param_1 + 8) + 8))();
  }
  if (*(long *)(param_1 + 0x98) != 0) {
    FUN_0012368a();
  }
  FUN_00115459(*(undefined8 *)(param_1 + 0x90));
  FUN_00122b5a(param_1);
  return;
}


PUSH RBX
MOV RBX,RDI
MOV RDI,qword ptr [RDI + 0x78]
CALL 0x00122b5a
MOV RDI,qword ptr [RBX + 0x8]
TEST RDI,RDI
JZ 0x0012bc08
MOV RAX,qword ptr [RDI]
CALL qword ptr [RAX + 0x8]
MOV RDI,qword ptr [RBX + 0x98]
TEST RDI,RDI
JZ 0x0012bc19
CALL 0x0012368a
MOV RDI,qword ptr [RBX + 0x90]
CALL 0x00115459
MOV RDI,RBX
CALL 0x00122b5a
POP RBX
RET
(translation_unit "void FUN_0012bbec(long param_1)\n\n{\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x78));\n  if (*(long **)(param_1 + 8) != (long *)0x0) {\n    (**(code **)(**(long **)(param_1 + 8) + 8))();\n  }\n  if (*(long *)(param_1 + 0x98) != 0) {\n    FUN_0012368a();\n  }\n  FUN_00115459(*(undefined8 *)(param_1 + 0x90));\n  FUN_00122b5a(param_1);\n  return;\n}\n\n" (function_definition "void FUN_0012bbec(long param_1)\n\n{\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x78));\n  if (*(long **)(param_1 + 8) != (long *)0x0) {\n    (**(code **)(**(long **)(param_1 + 8) + 8))();\n  }\n  if (*(long *)(param_1 + 0x98) != 0) {\n    FUN_0012368a();\n  }\n  FUN_00115459(*(undefined8 *)(param_1 + 0x90));\n  FUN_00122b5a(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_0012bbec(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x78));\n  if (*(long **)(param_1 + 8) != (long *)0x0) {\n    (**(code **)(**(long **)(param_1 + 8) + 8))();\n  }\n  if (*(long *)(param_1 + 0x98) != 0) {\n    FUN_0012368a();\n  }\n  FUN_00115459(*(undefined8 *)(param_1 + 0x90));\n  FUN_00122b5a(param_1);\n  return;\n}" { (expression_statement "FUN_00122b5a(*(undefined8 *)(param_1 + 0x78));" (call_expression "FUN_00122b5a(*(undefined8 *)(param_1 + 0x78))" identifier (argument_list "(*(undefined8 *)(param_1 + 0x78))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x78)" * (cast_expression "(undefined8 *)(param_1 + 0x78)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x78)" ( (binary_expression "param_1 + 0x78" identifier + number_literal) )))) ))) ;) (if_statement "if (*(long **)(param_1 + 8) != (long *)0x0) {\n    (**(code **)(**(long **)(param_1 + 8) + 8))();\n  }" if (parenthesized_expression "(*(long **)(param_1 + 8) != (long *)0x0)" ( (binary_expression "*(long **)(param_1 + 8) != (long *)0x0" (pointer_expression "*(long **)(param_1 + 8)" * (cast_expression "(long **)(param_1 + 8)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (**(code **)(**(long **)(param_1 + 8) + 8))();\n  }" { (expression_statement "(**(code **)(**(long **)(param_1 + 8) + 8))();" (call_expression "(**(code **)(**(long **)(param_1 + 8) + 8))()" (parenthesized_expression "(**(code **)(**(long **)(param_1 + 8) + 8))" ( (pointer_expression "**(code **)(**(long **)(param_1 + 8) + 8)" * (pointer_expression "*(code **)(**(long **)(param_1 + 8) + 8)" * (cast_expression "(code **)(**(long **)(param_1 + 8) + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(long **)(param_1 + 8) + 8)" ( (binary_expression "**(long **)(param_1 + 8) + 8" (pointer_expression "**(long **)(param_1 + 8)" * (pointer_expression "*(long **)(param_1 + 8)" * (cast_expression "(long **)(param_1 + 8)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (if_statement "if (*(long *)(param_1 + 0x98) != 0) {\n    FUN_0012368a();\n  }" if (parenthesized_expression "(*(long *)(param_1 + 0x98) != 0)" ( (binary_expression "*(long *)(param_1 + 0x98) != 0" (pointer_expression "*(long *)(param_1 + 0x98)" * (cast_expression "(long *)(param_1 + 0x98)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x98)" ( (binary_expression "param_1 + 0x98" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    FUN_0012368a();\n  }" { (expression_statement "FUN_0012368a();" (call_expression "FUN_0012368a()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "FUN_00115459(*(undefined8 *)(param_1 + 0x90));" (call_expression "FUN_00115459(*(undefined8 *)(param_1 + 0x90))" identifier (argument_list "(*(undefined8 *)(param_1 + 0x90))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x90)" * (cast_expression "(undefined8 *)(param_1 + 0x90)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x90)" ( (binary_expression "param_1 + 0x90" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_00122b5a(param_1);" (call_expression "FUN_00122b5a(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void telnet_free(void *handle)\n\n{\n  safefree(*(void **)((long)handle + 0x78));\n  if (*(long **)((long)handle + 8) != (long *)0x0) {\n    (**(code **)(**(long **)((long)handle + 8) + 8))();\n  }\n  if (*(Pinger *)((long)handle + 0x98) != (Pinger)0x0) {\n    pinger_free(*(Pinger *)((long)handle + 0x98));\n  }\n  conf_free(*(Conf **)((long)handle + 0x90));\n  safefree(handle);\n  return;\n}\n\n" (function_definition "void telnet_free(void *handle)\n\n{\n  safefree(*(void **)((long)handle + 0x78));\n  if (*(long **)((long)handle + 8) != (long *)0x0) {\n    (**(code **)(**(long **)((long)handle + 8) + 8))();\n  }\n  if (*(Pinger *)((long)handle + 0x98) != (Pinger)0x0) {\n    pinger_free(*(Pinger *)((long)handle + 0x98));\n  }\n  conf_free(*(Conf **)((long)handle + 0x90));\n  safefree(handle);\n  return;\n}" primitive_type (function_declarator "telnet_free(void *handle)" identifier (parameter_list "(void *handle)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) ))) (compound_statement "{\n  safefree(*(void **)((long)handle + 0x78));\n  if (*(long **)((long)handle + 8) != (long *)0x0) {\n    (**(code **)(**(long **)((long)handle + 8) + 8))();\n  }\n  if (*(Pinger *)((long)handle + 0x98) != (Pinger)0x0) {\n    pinger_free(*(Pinger *)((long)handle + 0x98));\n  }\n  conf_free(*(Conf **)((long)handle + 0x90));\n  safefree(handle);\n  return;\n}" { (expression_statement "safefree(*(void **)((long)handle + 0x78));" (call_expression "safefree(*(void **)((long)handle + 0x78))" identifier (argument_list "(*(void **)((long)handle + 0x78))" ( (pointer_expression "*(void **)((long)handle + 0x78)" * (cast_expression "(void **)((long)handle + 0x78)" ( (type_descriptor "void **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)handle + 0x78)" ( (binary_expression "(long)handle + 0x78" (cast_expression "(long)handle" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) ))) ;) (if_statement "if (*(long **)((long)handle + 8) != (long *)0x0) {\n    (**(code **)(**(long **)((long)handle + 8) + 8))();\n  }" if (parenthesized_expression "(*(long **)((long)handle + 8) != (long *)0x0)" ( (binary_expression "*(long **)((long)handle + 8) != (long *)0x0" (pointer_expression "*(long **)((long)handle + 8)" * (cast_expression "(long **)((long)handle + 8)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)handle + 8)" ( (binary_expression "(long)handle + 8" (cast_expression "(long)handle" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (**(code **)(**(long **)((long)handle + 8) + 8))();\n  }" { (expression_statement "(**(code **)(**(long **)((long)handle + 8) + 8))();" (call_expression "(**(code **)(**(long **)((long)handle + 8) + 8))()" (parenthesized_expression "(**(code **)(**(long **)((long)handle + 8) + 8))" ( (pointer_expression "**(code **)(**(long **)((long)handle + 8) + 8)" * (pointer_expression "*(code **)(**(long **)((long)handle + 8) + 8)" * (cast_expression "(code **)(**(long **)((long)handle + 8) + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(long **)((long)handle + 8) + 8)" ( (binary_expression "**(long **)((long)handle + 8) + 8" (pointer_expression "**(long **)((long)handle + 8)" * (pointer_expression "*(long **)((long)handle + 8)" * (cast_expression "(long **)((long)handle + 8)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)handle + 8)" ( (binary_expression "(long)handle + 8" (cast_expression "(long)handle" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) ))))) + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (if_statement "if (*(Pinger *)((long)handle + 0x98) != (Pinger)0x0) {\n    pinger_free(*(Pinger *)((long)handle + 0x98));\n  }" if (parenthesized_expression "(*(Pinger *)((long)handle + 0x98) != (Pinger)0x0)" ( (binary_expression "*(Pinger *)((long)handle + 0x98) != (Pinger)0x0" (pointer_expression "*(Pinger *)((long)handle + 0x98)" * (cast_expression "(Pinger *)((long)handle + 0x98)" ( (type_descriptor "Pinger *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)handle + 0x98)" ( (binary_expression "(long)handle + 0x98" (cast_expression "(long)handle" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) != (cast_expression "(Pinger)0x0" ( (type_descriptor "Pinger" type_identifier) ) number_literal)) )) (compound_statement "{\n    pinger_free(*(Pinger *)((long)handle + 0x98));\n  }" { (expression_statement "pinger_free(*(Pinger *)((long)handle + 0x98));" (call_expression "pinger_free(*(Pinger *)((long)handle + 0x98))" identifier (argument_list "(*(Pinger *)((long)handle + 0x98))" ( (pointer_expression "*(Pinger *)((long)handle + 0x98)" * (cast_expression "(Pinger *)((long)handle + 0x98)" ( (type_descriptor "Pinger *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)handle + 0x98)" ( (binary_expression "(long)handle + 0x98" (cast_expression "(long)handle" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) ))) ;) })) (expression_statement "conf_free(*(Conf **)((long)handle + 0x90));" (call_expression "conf_free(*(Conf **)((long)handle + 0x90))" identifier (argument_list "(*(Conf **)((long)handle + 0x90))" ( (pointer_expression "*(Conf **)((long)handle + 0x90)" * (cast_expression "(Conf **)((long)handle + 0x90)" ( (type_descriptor "Conf **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)handle + 0x90)" ( (binary_expression "(long)handle + 0x90" (cast_expression "(long)handle" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) ))) ;) (expression_statement "safefree(handle);" (call_expression "safefree(handle)" identifier (argument_list "(handle)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_0012bbec(long param_1)\n\n{\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x78));\n  if (*(long **)(param_1 + 8) != (long *)0x0) {\n    (**(code **)(**(long **)(param_1 + 8) + 8))();\n  }\n  if (*(long *)(param_1 + 0x98) != 0) {\n    FUN_0012368a();\n  }\n  FUN_00115459(*(undefined8 *)(param_1 + 0x90));\n  FUN_00122b5a(param_1);\n  return;\n}\n\n" (function_definition "void FUN_0012bbec(long param_1)\n\n{\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x78));\n  if (*(long **)(param_1 + 8) != (long *)0x0) {\n    (**(code **)(**(long **)(param_1 + 8) + 8))();\n  }\n  if (*(long *)(param_1 + 0x98) != 0) {\n    FUN_0012368a();\n  }\n  FUN_00115459(*(undefined8 *)(param_1 + 0x90));\n  FUN_00122b5a(param_1);\n  return;\n}" primitive_type (function_declarator "FUN_0012bbec(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x78));\n  if (*(long **)(param_1 + 8) != (long *)0x0) {\n    (**(code **)(**(long **)(param_1 + 8) + 8))();\n  }\n  if (*(long *)(param_1 + 0x98) != 0) {\n    FUN_0012368a();\n  }\n  FUN_00115459(*(undefined8 *)(param_1 + 0x90));\n  FUN_00122b5a(param_1);\n  return;\n}" { (expression_statement "FUN_00122b5a(*(undefined8 *)(param_1 + 0x78));" (call_expression "FUN_00122b5a(*(undefined8 *)(param_1 + 0x78))" identifier (argument_list "(*(undefined8 *)(param_1 + 0x78))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x78)" * (cast_expression "(undefined8 *)(param_1 + 0x78)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x78)" ( (binary_expression "param_1 + 0x78" identifier + number_literal) )))) ))) ;) (if_statement "if (*(long **)(param_1 + 8) != (long *)0x0) {\n    (**(code **)(**(long **)(param_1 + 8) + 8))();\n  }" if (parenthesized_expression "(*(long **)(param_1 + 8) != (long *)0x0)" ( (binary_expression "*(long **)(param_1 + 8) != (long *)0x0" (pointer_expression "*(long **)(param_1 + 8)" * (cast_expression "(long **)(param_1 + 8)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) != (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    (**(code **)(**(long **)(param_1 + 8) + 8))();\n  }" { (expression_statement "(**(code **)(**(long **)(param_1 + 8) + 8))();" (call_expression "(**(code **)(**(long **)(param_1 + 8) + 8))()" (parenthesized_expression "(**(code **)(**(long **)(param_1 + 8) + 8))" ( (pointer_expression "**(code **)(**(long **)(param_1 + 8) + 8)" * (pointer_expression "*(code **)(**(long **)(param_1 + 8) + 8)" * (cast_expression "(code **)(**(long **)(param_1 + 8) + 8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(long **)(param_1 + 8) + 8)" ( (binary_expression "**(long **)(param_1 + 8) + 8" (pointer_expression "**(long **)(param_1 + 8)" * (pointer_expression "*(long **)(param_1 + 8)" * (cast_expression "(long **)(param_1 + 8)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) ))))) + number_literal) ))))) )) (argument_list "()" ( ))) ;) })) (if_statement "if (*(long *)(param_1 + 0x98) != 0) {\n    FUN_0012368a();\n  }" if (parenthesized_expression "(*(long *)(param_1 + 0x98) != 0)" ( (binary_expression "*(long *)(param_1 + 0x98) != 0" (pointer_expression "*(long *)(param_1 + 0x98)" * (cast_expression "(long *)(param_1 + 0x98)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x98)" ( (binary_expression "param_1 + 0x98" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    FUN_0012368a();\n  }" { (expression_statement "FUN_0012368a();" (call_expression "FUN_0012368a()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "FUN_00115459(*(undefined8 *)(param_1 + 0x90));" (call_expression "FUN_00115459(*(undefined8 *)(param_1 + 0x90))" identifier (argument_list "(*(undefined8 *)(param_1 + 0x90))" ( (pointer_expression "*(undefined8 *)(param_1 + 0x90)" * (cast_expression "(undefined8 *)(param_1 + 0x90)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x90)" ( (binary_expression "param_1 + 0x90" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_00122b5a(param_1);" (call_expression "FUN_00122b5a(param_1)" identifier (argument_list "(param_1)" ( identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) 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 (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) ))))) )) (argument_list ( ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return ;) })))
(function_definition "void FUN_0012bbec(long param_1)\n\n{\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x78));\n  if (*(long **)(param_1 + 8) != (long *)0x0) {\n    (**(code **)(**(long **)(param_1 + 8) + 8))();\n  }\n  if (*(long *)(param_1 + 0x98) != 0) {\n    FUN_0012368a();\n  }\n  FUN_00115459(*(undefined8 *)(param_1 + 0x90));\n  FUN_00122b5a(param_1);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_0012bbec(long param_1)" (identifier "FUN_0012bbec") (parameter_list "(long param_1)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) () ")"))) (compound_statement "{\n  FUN_00122b5a(*(undefined8 *)(param_1 + 0x78));\n  if (*(long **)(param_1 + 8) != (long *)0x0) {\n    (**(code **)(**(long **)(param_1 + 8) + 8))();\n  }\n  if (*(long *)(param_1 + 0x98) != 0) {\n    FUN_0012368a();\n  }\n  FUN_00115459(*(undefined8 *)(param_1 + 0x90));\n  FUN_00122b5a(param_1);\n  return;\n}" ({ "{") (expression_statement "FUN_00122b5a(*(undefined8 *)(param_1 + 0x78));" (call_expression "FUN_00122b5a(*(undefined8 *)(param_1 + 0x78))" (identifier "FUN_00122b5a") (argument_list "(*(undefined8 *)(param_1 + 0x78))" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0x78)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x78)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x78)" (( "(") (binary_expression "param_1 + 0x78" (identifier "param_1") (+ "+") (number_literal "0x78")) () ")")))) () ")"))) (; ";")) (if_statement "if (*(long **)(param_1 + 8) != (long *)0x0) {\n    (**(code **)(**(long **)(param_1 + 8) + 8))();\n  }" (if "if") (parenthesized_expression "(*(long **)(param_1 + 8) != (long *)0x0)" (( "(") (binary_expression "*(long **)(param_1 + 8) != (long *)0x0" (pointer_expression "*(long **)(param_1 + 8)" (* "*") (cast_expression "(long **)(param_1 + 8)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (!= "!=") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    (**(code **)(**(long **)(param_1 + 8) + 8))();\n  }" ({ "{") (expression_statement "(**(code **)(**(long **)(param_1 + 8) + 8))();" (call_expression "(**(code **)(**(long **)(param_1 + 8) + 8))()" (parenthesized_expression "(**(code **)(**(long **)(param_1 + 8) + 8))" (( "(") (pointer_expression "**(code **)(**(long **)(param_1 + 8) + 8)" (* "*") (pointer_expression "*(code **)(**(long **)(param_1 + 8) + 8)" (* "*") (cast_expression "(code **)(**(long **)(param_1 + 8) + 8)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(long **)(param_1 + 8) + 8)" (( "(") (binary_expression "**(long **)(param_1 + 8) + 8" (pointer_expression "**(long **)(param_1 + 8)" (* "*") (pointer_expression "*(long **)(param_1 + 8)" (* "*") (cast_expression "(long **)(param_1 + 8)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")"))))) (+ "+") (number_literal "8")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (if_statement "if (*(long *)(param_1 + 0x98) != 0) {\n    FUN_0012368a();\n  }" (if "if") (parenthesized_expression "(*(long *)(param_1 + 0x98) != 0)" (( "(") (binary_expression "*(long *)(param_1 + 0x98) != 0" (pointer_expression "*(long *)(param_1 + 0x98)" (* "*") (cast_expression "(long *)(param_1 + 0x98)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x98)" (( "(") (binary_expression "param_1 + 0x98" (identifier "param_1") (+ "+") (number_literal "0x98")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_0012368a();\n  }" ({ "{") (expression_statement "FUN_0012368a();" (call_expression "FUN_0012368a()" (identifier "FUN_0012368a") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_00115459(*(undefined8 *)(param_1 + 0x90));" (call_expression "FUN_00115459(*(undefined8 *)(param_1 + 0x90))" (identifier "FUN_00115459") (argument_list "(*(undefined8 *)(param_1 + 0x90))" (( "(") (pointer_expression "*(undefined8 *)(param_1 + 0x90)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x90)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x90)" (( "(") (binary_expression "param_1 + 0x90" (identifier "param_1") (+ "+") (number_literal "0x90")) () ")")))) () ")"))) (; ";")) (expression_statement "FUN_00122b5a(param_1);" (call_expression "FUN_00122b5a(param_1)" (identifier "FUN_00122b5a") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(void *handle)

{
  var_1(*(void **)((long)handle + 0x78));
  if (*(long **)((long)handle + 8) != (long *)0x0) {
    (**(type_1 **)(**(long **)((long)handle + 8) + 8))();
  }
  if (*(type_2 *)((long)handle + 0x98) != (type_2)0x0) {
    var_2(*(type_2 *)((long)handle + 0x98));
  }
  var_3(*(type_3 **)((long)handle + 0x90));
  var_1(handle);
  return;
}


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

void MASKED(long param_1)

{
  FUN_00122b5a(*(undefined8 *)(param_1 + 0x78));
  if (*(long **)(param_1 + 8) != (long *)0x0) {
    (**(code **)(**(long **)(param_1 + 8) + 8))();
  }
  if (*(long *)(param_1 + 0x98) != 0) {
    FUN_0012368a();
  }
  FUN_00115459(*(undefined8 *)(param_1 + 0x90));
  FUN_00122b5a(param_1);
  return;
}

