
debug_type_conflict
debug_make_object_type
          (void *handle,bfd_boolean structp,bfd_vma size,debug_field *fields,
          debug_baseclass *baseclasses,debug_method *methods,debug_type_conflict vptrbase,
          bfd_boolean ownvptr)

{
  debug_type_s *pdVar1;
  debug_class_type *pdVar2;
  debug_handle *info;
  
  pdVar1 = debug_make_type((debug_handle *)(ulong)((structp == 0) + 9),(debug_type_kind)size,
                           (debug_type_kind)size);
  if (pdVar1 != (debug_type_s *)0x0) {
    pdVar2 = (debug_class_type *)xmalloc(0x28);
    pdVar2->mark = 0;
    pdVar2->id = 0;
    pdVar2->fields = fields;
    if (ownvptr != 0) {
      vptrbase = pdVar1;
    }
    pdVar2->baseclasses = baseclasses;
    pdVar2->methods = methods;
    pdVar2->vptrbase = vptrbase;
    (pdVar1->u).kclass = pdVar2;
  }
  return pdVar1;
}



long FUN_0010f540(undefined8 param_1,int param_2,undefined4 param_3,undefined8 param_4,
                 undefined8 param_5,undefined8 param_6,long param_7,int param_8)

{
  long lVar1;
  undefined8 *puVar2;
  
  lVar1 = FUN_0010d270((param_2 == 0) + '\t',param_3);
  if (lVar1 != 0) {
    puVar2 = (undefined8 *)xmalloc(0x28);
    puVar2[1] = 0;
    *puVar2 = param_4;
    if (param_8 != 0) {
      param_7 = lVar1;
    }
    puVar2[2] = param_5;
    puVar2[3] = param_6;
    puVar2[4] = param_7;
    *(undefined8 **)(lVar1 + 0x10) = puVar2;
  }
  return lVar1;
}


PUSH R14
XOR EDI,EDI
TEST ESI,ESI
MOV ESI,EDX
PUSH R13
SETZ DIL
MOV R14,RCX
MOV R13,R8
PUSH R12
ADD EDI,0x9
MOV R12,R9
PUSH RBP
PUSH RBX
MOV RBP,qword ptr [RSP + 0x30]
CALL 0x0010d270
MOV RBX,RAX
TEST RAX,RAX
JZ 0x0010f59f
MOV EDI,0x28
CALL 0x00104370
MOV EDX,dword ptr [RSP + 0x38]
MOV qword ptr [RAX + 0x8],0x0
TEST EDX,EDX
MOV qword ptr [RAX],R14
CMOVNZ RBP,RBX
MOV qword ptr [RAX + 0x10],R13
MOV qword ptr [RAX + 0x18],R12
MOV qword ptr [RAX + 0x20],RBP
MOV qword ptr [RBX + 0x10],RAX
MOV RAX,RBX
POP RBX
POP RBP
POP R12
POP R13
POP R14
RET
(translation_unit "long FUN_0010f540(undefined8 param_1,int param_2,undefined4 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,long param_7,int param_8)\n\n{\n  long lVar1;\n  undefined8 *puVar2;\n  \n  lVar1 = FUN_0010d270((param_2 == 0) + '\t',param_3);\n  if (lVar1 != 0) {\n    puVar2 = (undefined8 *)xmalloc(0x28);\n    puVar2[1] = 0;\n    *puVar2 = param_4;\n    if (param_8 != 0) {\n      param_7 = lVar1;\n    }\n    puVar2[2] = param_5;\n    puVar2[3] = param_6;\n    puVar2[4] = param_7;\n    *(undefined8 **)(lVar1 + 0x10) = puVar2;\n  }\n  return lVar1;\n}\n\n" (function_definition "long FUN_0010f540(undefined8 param_1,int param_2,undefined4 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,long param_7,int param_8)\n\n{\n  long lVar1;\n  undefined8 *puVar2;\n  \n  lVar1 = FUN_0010d270((param_2 == 0) + '\t',param_3);\n  if (lVar1 != 0) {\n    puVar2 = (undefined8 *)xmalloc(0x28);\n    puVar2[1] = 0;\n    *puVar2 = param_4;\n    if (param_8 != 0) {\n      param_7 = lVar1;\n    }\n    puVar2[2] = param_5;\n    puVar2[3] = param_6;\n    puVar2[4] = param_7;\n    *(undefined8 **)(lVar1 + 0x10) = puVar2;\n  }\n  return lVar1;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_0010f540(undefined8 param_1,int param_2,undefined4 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,long param_7,int param_8)" identifier (parameter_list "(undefined8 param_1,int param_2,undefined4 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,long param_7,int param_8)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) , (parameter_declaration "undefined8 param_5" type_identifier identifier) , (parameter_declaration "undefined8 param_6" type_identifier identifier) , (parameter_declaration "long param_7" (sized_type_specifier "long" long) identifier) , (parameter_declaration "int param_8" primitive_type identifier) ))) (compound_statement "{\n  long lVar1;\n  undefined8 *puVar2;\n  \n  lVar1 = FUN_0010d270((param_2 == 0) + '\t',param_3);\n  if (lVar1 != 0) {\n    puVar2 = (undefined8 *)xmalloc(0x28);\n    puVar2[1] = 0;\n    *puVar2 = param_4;\n    if (param_8 != 0) {\n      param_7 = lVar1;\n    }\n    puVar2[2] = param_5;\n    puVar2[3] = param_6;\n    puVar2[4] = param_7;\n    *(undefined8 **)(lVar1 + 0x10) = puVar2;\n  }\n  return lVar1;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "lVar1 = FUN_0010d270((param_2 == 0) + '\t',param_3);" (assignment_expression "lVar1 = FUN_0010d270((param_2 == 0) + '\t',param_3)" identifier = (call_expression "FUN_0010d270((param_2 == 0) + '\t',param_3)" identifier (argument_list "((param_2 == 0) + '\t',param_3)" ( (binary_expression "(param_2 == 0) + '\t'" (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) + (char_literal "'\t'" ' escape_sequence ')) , identifier )))) ;) (if_statement "if (lVar1 != 0) {\n    puVar2 = (undefined8 *)xmalloc(0x28);\n    puVar2[1] = 0;\n    *puVar2 = param_4;\n    if (param_8 != 0) {\n      param_7 = lVar1;\n    }\n    puVar2[2] = param_5;\n    puVar2[3] = param_6;\n    puVar2[4] = param_7;\n    *(undefined8 **)(lVar1 + 0x10) = puVar2;\n  }" if (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    puVar2 = (undefined8 *)xmalloc(0x28);\n    puVar2[1] = 0;\n    *puVar2 = param_4;\n    if (param_8 != 0) {\n      param_7 = lVar1;\n    }\n    puVar2[2] = param_5;\n    puVar2[3] = param_6;\n    puVar2[4] = param_7;\n    *(undefined8 **)(lVar1 + 0x10) = puVar2;\n  }" { (expression_statement "puVar2 = (undefined8 *)xmalloc(0x28);" (assignment_expression "puVar2 = (undefined8 *)xmalloc(0x28)" identifier = (cast_expression "(undefined8 *)xmalloc(0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x28)" identifier (argument_list "(0x28)" ( number_literal ))))) ;) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar2 = param_4;" (assignment_expression "*puVar2 = param_4" (pointer_expression "*puVar2" * identifier) = identifier) ;) (if_statement "if (param_8 != 0) {\n      param_7 = lVar1;\n    }" if (parenthesized_expression "(param_8 != 0)" ( (binary_expression "param_8 != 0" identifier != number_literal) )) (compound_statement "{\n      param_7 = lVar1;\n    }" { (expression_statement "param_7 = lVar1;" (assignment_expression "param_7 = lVar1" identifier = identifier) ;) })) (expression_statement "puVar2[2] = param_5;" (assignment_expression "puVar2[2] = param_5" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[3] = param_6;" (assignment_expression "puVar2[3] = param_6" (subscript_expression "puVar2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[4] = param_7;" (assignment_expression "puVar2[4] = param_7" (subscript_expression "puVar2[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined8 **)(lVar1 + 0x10) = puVar2;" (assignment_expression "*(undefined8 **)(lVar1 + 0x10) = puVar2" (pointer_expression "*(undefined8 **)(lVar1 + 0x10)" * (cast_expression "(undefined8 **)(lVar1 + 0x10)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar1 + 0x10)" ( (binary_expression "lVar1 + 0x10" identifier + number_literal) )))) = identifier) ;) })) (return_statement "return lVar1;" return identifier ;) })))
(translation_unit "debug_type_conflict\ndebug_make_object_type\n          (void *handle,bfd_boolean structp,bfd_vma size,debug_field *fields,\n          debug_baseclass *baseclasses,debug_method *methods,debug_type_conflict vptrbase,\n          bfd_boolean ownvptr)\n\n{\n  debug_type_s *pdVar1;\n  debug_class_type *pdVar2;\n  debug_handle *info;\n  \n  pdVar1 = debug_make_type((debug_handle *)(ulong)((structp == 0) + 9),(debug_type_kind)size,\n                           (debug_type_kind)size);\n  if (pdVar1 != (debug_type_s *)0x0) {\n    pdVar2 = (debug_class_type *)xmalloc(0x28);\n    pdVar2->mark = 0;\n    pdVar2->id = 0;\n    pdVar2->fields = fields;\n    if (ownvptr != 0) {\n      vptrbase = pdVar1;\n    }\n    pdVar2->baseclasses = baseclasses;\n    pdVar2->methods = methods;\n    pdVar2->vptrbase = vptrbase;\n    (pdVar1->u).kclass = pdVar2;\n  }\n  return pdVar1;\n}\n\n" (function_definition "debug_type_conflict\ndebug_make_object_type\n          (void *handle,bfd_boolean structp,bfd_vma size,debug_field *fields,\n          debug_baseclass *baseclasses,debug_method *methods,debug_type_conflict vptrbase,\n          bfd_boolean ownvptr)\n\n{\n  debug_type_s *pdVar1;\n  debug_class_type *pdVar2;\n  debug_handle *info;\n  \n  pdVar1 = debug_make_type((debug_handle *)(ulong)((structp == 0) + 9),(debug_type_kind)size,\n                           (debug_type_kind)size);\n  if (pdVar1 != (debug_type_s *)0x0) {\n    pdVar2 = (debug_class_type *)xmalloc(0x28);\n    pdVar2->mark = 0;\n    pdVar2->id = 0;\n    pdVar2->fields = fields;\n    if (ownvptr != 0) {\n      vptrbase = pdVar1;\n    }\n    pdVar2->baseclasses = baseclasses;\n    pdVar2->methods = methods;\n    pdVar2->vptrbase = vptrbase;\n    (pdVar1->u).kclass = pdVar2;\n  }\n  return pdVar1;\n}" type_identifier (function_declarator "debug_make_object_type\n          (void *handle,bfd_boolean structp,bfd_vma size,debug_field *fields,\n          debug_baseclass *baseclasses,debug_method *methods,debug_type_conflict vptrbase,\n          bfd_boolean ownvptr)" identifier (parameter_list "(void *handle,bfd_boolean structp,bfd_vma size,debug_field *fields,\n          debug_baseclass *baseclasses,debug_method *methods,debug_type_conflict vptrbase,\n          bfd_boolean ownvptr)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) , (parameter_declaration "bfd_boolean structp" type_identifier identifier) , (parameter_declaration "bfd_vma size" type_identifier identifier) , (parameter_declaration "debug_field *fields" type_identifier (pointer_declarator "*fields" * identifier)) , (parameter_declaration "debug_baseclass *baseclasses" type_identifier (pointer_declarator "*baseclasses" * identifier)) , (parameter_declaration "debug_method *methods" type_identifier (pointer_declarator "*methods" * identifier)) , (parameter_declaration "debug_type_conflict vptrbase" type_identifier identifier) , (parameter_declaration "bfd_boolean ownvptr" type_identifier identifier) ))) (compound_statement "{\n  debug_type_s *pdVar1;\n  debug_class_type *pdVar2;\n  debug_handle *info;\n  \n  pdVar1 = debug_make_type((debug_handle *)(ulong)((structp == 0) + 9),(debug_type_kind)size,\n                           (debug_type_kind)size);\n  if (pdVar1 != (debug_type_s *)0x0) {\n    pdVar2 = (debug_class_type *)xmalloc(0x28);\n    pdVar2->mark = 0;\n    pdVar2->id = 0;\n    pdVar2->fields = fields;\n    if (ownvptr != 0) {\n      vptrbase = pdVar1;\n    }\n    pdVar2->baseclasses = baseclasses;\n    pdVar2->methods = methods;\n    pdVar2->vptrbase = vptrbase;\n    (pdVar1->u).kclass = pdVar2;\n  }\n  return pdVar1;\n}" { (declaration "debug_type_s *pdVar1;" type_identifier (pointer_declarator "*pdVar1" * identifier) ;) (declaration "debug_class_type *pdVar2;" type_identifier (pointer_declarator "*pdVar2" * identifier) ;) (declaration "debug_handle *info;" type_identifier (pointer_declarator "*info" * identifier) ;) (expression_statement "pdVar1 = debug_make_type((debug_handle *)(ulong)((structp == 0) + 9),(debug_type_kind)size,\n                           (debug_type_kind)size);" (assignment_expression "pdVar1 = debug_make_type((debug_handle *)(ulong)((structp == 0) + 9),(debug_type_kind)size,\n                           (debug_type_kind)size)" identifier = (call_expression "debug_make_type((debug_handle *)(ulong)((structp == 0) + 9),(debug_type_kind)size,\n                           (debug_type_kind)size)" identifier (argument_list "((debug_handle *)(ulong)((structp == 0) + 9),(debug_type_kind)size,\n                           (debug_type_kind)size)" ( (cast_expression "(debug_handle *)(ulong)((structp == 0) + 9)" ( (type_descriptor "debug_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(ulong)((structp == 0) + 9)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "((structp == 0) + 9)" ( (binary_expression "(structp == 0) + 9" (parenthesized_expression "(structp == 0)" ( (binary_expression "structp == 0" identifier == number_literal) )) + number_literal) )))) , (cast_expression "(debug_type_kind)size" ( (type_descriptor "debug_type_kind" type_identifier) ) identifier) , (cast_expression "(debug_type_kind)size" ( (type_descriptor "debug_type_kind" type_identifier) ) identifier) )))) ;) (if_statement "if (pdVar1 != (debug_type_s *)0x0) {\n    pdVar2 = (debug_class_type *)xmalloc(0x28);\n    pdVar2->mark = 0;\n    pdVar2->id = 0;\n    pdVar2->fields = fields;\n    if (ownvptr != 0) {\n      vptrbase = pdVar1;\n    }\n    pdVar2->baseclasses = baseclasses;\n    pdVar2->methods = methods;\n    pdVar2->vptrbase = vptrbase;\n    (pdVar1->u).kclass = pdVar2;\n  }" if (parenthesized_expression "(pdVar1 != (debug_type_s *)0x0)" ( (binary_expression "pdVar1 != (debug_type_s *)0x0" identifier != (cast_expression "(debug_type_s *)0x0" ( (type_descriptor "debug_type_s *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pdVar2 = (debug_class_type *)xmalloc(0x28);\n    pdVar2->mark = 0;\n    pdVar2->id = 0;\n    pdVar2->fields = fields;\n    if (ownvptr != 0) {\n      vptrbase = pdVar1;\n    }\n    pdVar2->baseclasses = baseclasses;\n    pdVar2->methods = methods;\n    pdVar2->vptrbase = vptrbase;\n    (pdVar1->u).kclass = pdVar2;\n  }" { (expression_statement "pdVar2 = (debug_class_type *)xmalloc(0x28);" (assignment_expression "pdVar2 = (debug_class_type *)xmalloc(0x28)" identifier = (cast_expression "(debug_class_type *)xmalloc(0x28)" ( (type_descriptor "debug_class_type *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x28)" identifier (argument_list "(0x28)" ( number_literal ))))) ;) (expression_statement "pdVar2->mark = 0;" (assignment_expression "pdVar2->mark = 0" (field_expression "pdVar2->mark" identifier -> field_identifier) = number_literal) ;) (expression_statement "pdVar2->id = 0;" (assignment_expression "pdVar2->id = 0" (field_expression "pdVar2->id" identifier -> field_identifier) = number_literal) ;) (expression_statement "pdVar2->fields = fields;" (assignment_expression "pdVar2->fields = fields" (field_expression "pdVar2->fields" identifier -> field_identifier) = identifier) ;) (if_statement "if (ownvptr != 0) {\n      vptrbase = pdVar1;\n    }" if (parenthesized_expression "(ownvptr != 0)" ( (binary_expression "ownvptr != 0" identifier != number_literal) )) (compound_statement "{\n      vptrbase = pdVar1;\n    }" { (expression_statement "vptrbase = pdVar1;" (assignment_expression "vptrbase = pdVar1" identifier = identifier) ;) })) (expression_statement "pdVar2->baseclasses = baseclasses;" (assignment_expression "pdVar2->baseclasses = baseclasses" (field_expression "pdVar2->baseclasses" identifier -> field_identifier) = identifier) ;) (expression_statement "pdVar2->methods = methods;" (assignment_expression "pdVar2->methods = methods" (field_expression "pdVar2->methods" identifier -> field_identifier) = identifier) ;) (expression_statement "pdVar2->vptrbase = vptrbase;" (assignment_expression "pdVar2->vptrbase = vptrbase" (field_expression "pdVar2->vptrbase" identifier -> field_identifier) = identifier) ;) (expression_statement "(pdVar1->u).kclass = pdVar2;" (assignment_expression "(pdVar1->u).kclass = pdVar2" (field_expression "(pdVar1->u).kclass" (parenthesized_expression "(pdVar1->u)" ( (field_expression "pdVar1->u" identifier -> field_identifier) )) . field_identifier) = identifier) ;) })) (return_statement "return pdVar1;" return identifier ;) })))
(translation_unit "long FUN_0010f540(undefined8 param_1,int param_2,undefined4 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,long param_7,int param_8)\n\n{\n  long lVar1;\n  undefined8 *puVar2;\n  \n  lVar1 = FUN_0010d270((param_2 == 0) + '\t',param_3);\n  if (lVar1 != 0) {\n    puVar2 = (undefined8 *)xmalloc(0x28);\n    puVar2[1] = 0;\n    *puVar2 = param_4;\n    if (param_8 != 0) {\n      param_7 = lVar1;\n    }\n    puVar2[2] = param_5;\n    puVar2[3] = param_6;\n    puVar2[4] = param_7;\n    *(undefined8 **)(lVar1 + 0x10) = puVar2;\n  }\n  return lVar1;\n}\n\n" (function_definition "long FUN_0010f540(undefined8 param_1,int param_2,undefined4 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,long param_7,int param_8)\n\n{\n  long lVar1;\n  undefined8 *puVar2;\n  \n  lVar1 = FUN_0010d270((param_2 == 0) + '\t',param_3);\n  if (lVar1 != 0) {\n    puVar2 = (undefined8 *)xmalloc(0x28);\n    puVar2[1] = 0;\n    *puVar2 = param_4;\n    if (param_8 != 0) {\n      param_7 = lVar1;\n    }\n    puVar2[2] = param_5;\n    puVar2[3] = param_6;\n    puVar2[4] = param_7;\n    *(undefined8 **)(lVar1 + 0x10) = puVar2;\n  }\n  return lVar1;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_0010f540(undefined8 param_1,int param_2,undefined4 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,long param_7,int param_8)" identifier (parameter_list "(undefined8 param_1,int param_2,undefined4 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,long param_7,int param_8)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) , (parameter_declaration "undefined8 param_5" type_identifier identifier) , (parameter_declaration "undefined8 param_6" type_identifier identifier) , (parameter_declaration "long param_7" (sized_type_specifier "long" long) identifier) , (parameter_declaration "int param_8" primitive_type identifier) ))) (compound_statement "{\n  long lVar1;\n  undefined8 *puVar2;\n  \n  lVar1 = FUN_0010d270((param_2 == 0) + '\t',param_3);\n  if (lVar1 != 0) {\n    puVar2 = (undefined8 *)xmalloc(0x28);\n    puVar2[1] = 0;\n    *puVar2 = param_4;\n    if (param_8 != 0) {\n      param_7 = lVar1;\n    }\n    puVar2[2] = param_5;\n    puVar2[3] = param_6;\n    puVar2[4] = param_7;\n    *(undefined8 **)(lVar1 + 0x10) = puVar2;\n  }\n  return lVar1;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (expression_statement "lVar1 = FUN_0010d270((param_2 == 0) + '\t',param_3);" (assignment_expression "lVar1 = FUN_0010d270((param_2 == 0) + '\t',param_3)" identifier = (call_expression "FUN_0010d270((param_2 == 0) + '\t',param_3)" identifier (argument_list "((param_2 == 0) + '\t',param_3)" ( (binary_expression "(param_2 == 0) + '\t'" (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) + (char_literal "'\t'" ' escape_sequence ')) , identifier )))) ;) (if_statement "if (lVar1 != 0) {\n    puVar2 = (undefined8 *)xmalloc(0x28);\n    puVar2[1] = 0;\n    *puVar2 = param_4;\n    if (param_8 != 0) {\n      param_7 = lVar1;\n    }\n    puVar2[2] = param_5;\n    puVar2[3] = param_6;\n    puVar2[4] = param_7;\n    *(undefined8 **)(lVar1 + 0x10) = puVar2;\n  }" if (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    puVar2 = (undefined8 *)xmalloc(0x28);\n    puVar2[1] = 0;\n    *puVar2 = param_4;\n    if (param_8 != 0) {\n      param_7 = lVar1;\n    }\n    puVar2[2] = param_5;\n    puVar2[3] = param_6;\n    puVar2[4] = param_7;\n    *(undefined8 **)(lVar1 + 0x10) = puVar2;\n  }" { (expression_statement "puVar2 = (undefined8 *)xmalloc(0x28);" (assignment_expression "puVar2 = (undefined8 *)xmalloc(0x28)" identifier = (cast_expression "(undefined8 *)xmalloc(0x28)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x28)" identifier (argument_list "(0x28)" ( number_literal ))))) ;) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*puVar2 = param_4;" (assignment_expression "*puVar2 = param_4" (pointer_expression "*puVar2" * identifier) = identifier) ;) (if_statement "if (param_8 != 0) {\n      param_7 = lVar1;\n    }" if (parenthesized_expression "(param_8 != 0)" ( (binary_expression "param_8 != 0" identifier != number_literal) )) (compound_statement "{\n      param_7 = lVar1;\n    }" { (expression_statement "param_7 = lVar1;" (assignment_expression "param_7 = lVar1" identifier = identifier) ;) })) (expression_statement "puVar2[2] = param_5;" (assignment_expression "puVar2[2] = param_5" (subscript_expression "puVar2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[3] = param_6;" (assignment_expression "puVar2[3] = param_6" (subscript_expression "puVar2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[4] = param_7;" (assignment_expression "puVar2[4] = param_7" (subscript_expression "puVar2[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined8 **)(lVar1 + 0x10) = puVar2;" (assignment_expression "*(undefined8 **)(lVar1 + 0x10) = puVar2" (pointer_expression "*(undefined8 **)(lVar1 + 0x10)" * (cast_expression "(undefined8 **)(lVar1 + 0x10)" ( (type_descriptor "undefined8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar1 + 0x10)" ( (binary_expression "lVar1 + 0x10" identifier + number_literal) )))) = identifier) ;) })) (return_statement "return lVar1;" return identifier ;) })))
(translation_unit (function_definition (sized_type_specifier long) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) + (char_literal ' escape_sequence ')) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (return_statement return IDENT ;) })))
(function_definition "long FUN_0010f540(undefined8 param_1,int param_2,undefined4 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,long param_7,int param_8)\n\n{\n  long lVar1;\n  undefined8 *puVar2;\n  \n  lVar1 = FUN_0010d270((param_2 == 0) + '\t',param_3);\n  if (lVar1 != 0) {\n    puVar2 = (undefined8 *)xmalloc(0x28);\n    puVar2[1] = 0;\n    *puVar2 = param_4;\n    if (param_8 != 0) {\n      param_7 = lVar1;\n    }\n    puVar2[2] = param_5;\n    puVar2[3] = param_6;\n    puVar2[4] = param_7;\n    *(undefined8 **)(lVar1 + 0x10) = puVar2;\n  }\n  return lVar1;\n}" (sized_type_specifier "long" (long "long")) (function_declarator "FUN_0010f540(undefined8 param_1,int param_2,undefined4 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,long param_7,int param_8)" (identifier "FUN_0010f540") (parameter_list "(undefined8 param_1,int param_2,undefined4 param_3,undefined8 param_4,\n                 undefined8 param_5,undefined8 param_6,long param_7,int param_8)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined8 param_4" (type_identifier "undefined8") (identifier "param_4")) (, ",") (parameter_declaration "undefined8 param_5" (type_identifier "undefined8") (identifier "param_5")) (, ",") (parameter_declaration "undefined8 param_6" (type_identifier "undefined8") (identifier "param_6")) (, ",") (parameter_declaration "long param_7" (sized_type_specifier "long" (long "long")) (identifier "param_7")) (, ",") (parameter_declaration "int param_8" (primitive_type "int") (identifier "param_8")) () ")"))) (compound_statement "{\n  long lVar1;\n  undefined8 *puVar2;\n  \n  lVar1 = FUN_0010d270((param_2 == 0) + '\t',param_3);\n  if (lVar1 != 0) {\n    puVar2 = (undefined8 *)xmalloc(0x28);\n    puVar2[1] = 0;\n    *puVar2 = param_4;\n    if (param_8 != 0) {\n      param_7 = lVar1;\n    }\n    puVar2[2] = param_5;\n    puVar2[3] = param_6;\n    puVar2[4] = param_7;\n    *(undefined8 **)(lVar1 + 0x10) = puVar2;\n  }\n  return lVar1;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "undefined8 *puVar2;" (type_identifier "undefined8") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (expression_statement "lVar1 = FUN_0010d270((param_2 == 0) + '\t',param_3);" (assignment_expression "lVar1 = FUN_0010d270((param_2 == 0) + '\t',param_3)" (identifier "lVar1") (= "=") (call_expression "FUN_0010d270((param_2 == 0) + '\t',param_3)" (identifier "FUN_0010d270") (argument_list "((param_2 == 0) + '\t',param_3)" (( "(") (binary_expression "(param_2 == 0) + '\t'" (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (+ "+") (char_literal "'\t'" (' "'") (escape_sequence "\t") (' "'"))) (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (lVar1 != 0) {\n    puVar2 = (undefined8 *)xmalloc(0x28);\n    puVar2[1] = 0;\n    *puVar2 = param_4;\n    if (param_8 != 0) {\n      param_7 = lVar1;\n    }\n    puVar2[2] = param_5;\n    puVar2[3] = param_6;\n    puVar2[4] = param_7;\n    *(undefined8 **)(lVar1 + 0x10) = puVar2;\n  }" (if "if") (parenthesized_expression "(lVar1 != 0)" (( "(") (binary_expression "lVar1 != 0" (identifier "lVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    puVar2 = (undefined8 *)xmalloc(0x28);\n    puVar2[1] = 0;\n    *puVar2 = param_4;\n    if (param_8 != 0) {\n      param_7 = lVar1;\n    }\n    puVar2[2] = param_5;\n    puVar2[3] = param_6;\n    puVar2[4] = param_7;\n    *(undefined8 **)(lVar1 + 0x10) = puVar2;\n  }" ({ "{") (expression_statement "puVar2 = (undefined8 *)xmalloc(0x28);" (assignment_expression "puVar2 = (undefined8 *)xmalloc(0x28)" (identifier "puVar2") (= "=") (cast_expression "(undefined8 *)xmalloc(0x28)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0x28)" (identifier "xmalloc") (argument_list "(0x28)" (( "(") (number_literal "0x28") () ")"))))) (; ";")) (expression_statement "puVar2[1] = 0;" (assignment_expression "puVar2[1] = 0" (subscript_expression "puVar2[1]" (identifier "puVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar2 = param_4;" (assignment_expression "*puVar2 = param_4" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (identifier "param_4")) (; ";")) (if_statement "if (param_8 != 0) {\n      param_7 = lVar1;\n    }" (if "if") (parenthesized_expression "(param_8 != 0)" (( "(") (binary_expression "param_8 != 0" (identifier "param_8") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      param_7 = lVar1;\n    }" ({ "{") (expression_statement "param_7 = lVar1;" (assignment_expression "param_7 = lVar1" (identifier "param_7") (= "=") (identifier "lVar1")) (; ";")) (} "}"))) (expression_statement "puVar2[2] = param_5;" (assignment_expression "puVar2[2] = param_5" (subscript_expression "puVar2[2]" (identifier "puVar2") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_5")) (; ";")) (expression_statement "puVar2[3] = param_6;" (assignment_expression "puVar2[3] = param_6" (subscript_expression "puVar2[3]" (identifier "puVar2") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "param_6")) (; ";")) (expression_statement "puVar2[4] = param_7;" (assignment_expression "puVar2[4] = param_7" (subscript_expression "puVar2[4]" (identifier "puVar2") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "param_7")) (; ";")) (expression_statement "*(undefined8 **)(lVar1 + 0x10) = puVar2;" (assignment_expression "*(undefined8 **)(lVar1 + 0x10) = puVar2" (pointer_expression "*(undefined8 **)(lVar1 + 0x10)" (* "*") (cast_expression "(undefined8 **)(lVar1 + 0x10)" (( "(") (type_descriptor "undefined8 **" (type_identifier "undefined8") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar1 + 0x10)" (( "(") (binary_expression "lVar1 + 0x10" (identifier "lVar1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "puVar2")) (; ";")) (} "}"))) (return_statement "return lVar1;" (return "return") (identifier "lVar1") (; ";")) (} "}")))

type_1
function_1
          (void *handle,type_2 var_2,type_3 size,type_4 *fields,
          type_5 *baseclasses,type_6 *methods,type_1 vptrbase,
          type_2 var_5)

{
  type_7 *var_3;
  type_8 *pdVar2;
  type_9 *info;
  
  var_3 = var_1((type_9 *)(ulong)((var_2 == 0) + 9),(type_10)size,
                           (type_10)size);
  if (var_3 != (type_7 *)0x0) {
    pdVar2 = (type_8 *)var_4(0x28);
    pdVar2->mark = 0;
    pdVar2->id = 0;
    pdVar2->fields = fields;
    if (var_5 != 0) {
      vptrbase = var_3;
    }
    pdVar2->baseclasses = baseclasses;
    pdVar2->methods = methods;
    pdVar2->vptrbase = vptrbase;
    (var_3->u).kclass = pdVar2;
  }
  return var_3;
}


(translation_unit (function_definition type: (sized_type_specifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (char_literal (escape_sequence))) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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 (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (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))))) right: (identifier))))) (return_statement (identifier)))))

long MASKED(undefined8 param_1,int param_2,undefined4 param_3,undefined8 param_4,
                 undefined8 param_5,undefined8 param_6,long param_7,int param_8)

{
  long lVar1;
  undefined8 *puVar2;
  
  lVar1 = FUN_0010d270((param_2 == 0) + '\t',param_3);
  if (lVar1 != 0) {
    puVar2 = (undefined8 *)xmalloc(0x28);
    puVar2[1] = 0;
    *puVar2 = param_4;
    if (param_8 != 0) {
      param_7 = lVar1;
    }
    puVar2[2] = param_5;
    puVar2[3] = param_6;
    puVar2[4] = param_7;
    *(undefined8 **)(lVar1 + 0x10) = puVar2;
  }
  return lVar1;
}

