
debug_type_conflict
debug_make_method_type
          (void *handle,debug_type_conflict return_type,debug_type_conflict domain_type,
          debug_type_conflict *arg_types,bfd_boolean varargs)

{
  debug_type_s *pdVar1;
  debug_method_type *pdVar2;
  debug_handle *info;
  
  if (return_type != (debug_type_conflict)0x0) {
    pdVar1 = debug_make_type((debug_handle *)0x13,DEBUG_KIND_ILLEGAL,(uint)domain_type);
    if (pdVar1 != (debug_type_s *)0x0) {
      pdVar2 = (debug_method_type *)xmalloc(0x20);
      *(undefined4 *)&pdVar2->field_0x1c = 0;
      pdVar2->return_type = return_type;
      pdVar2->domain_type = domain_type;
      pdVar2->arg_types = arg_types;
      pdVar2->varargs = varargs;
      (pdVar1->u).kmethod = pdVar2;
    }
    return pdVar1;
  }
  return (debug_type_conflict)0x0;
}



long FUN_0010f880(undefined8 param_1,long param_2,long param_3,long param_4,undefined4 param_5)

{
  long lVar1;
  long *plVar2;
  
  if (param_2 != 0) {
    lVar1 = FUN_0010d270(0x13,0);
    if (lVar1 != 0) {
      plVar2 = (long *)xmalloc(0x20);
      *(undefined4 *)((long)plVar2 + 0x1c) = 0;
      *plVar2 = param_2;
      plVar2[1] = param_3;
      plVar2[2] = param_4;
      *(undefined4 *)(plVar2 + 3) = param_5;
      *(long **)(lVar1 + 0x10) = plVar2;
    }
    return lVar1;
  }
  return 0;
}


PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
TEST RSI,RSI
JZ 0x0010f8e0
MOV RBX,RSI
MOV EDI,0x13
XOR ESI,ESI
MOV EBP,R8D
MOV R12,RCX
MOV R13,RDX
CALL 0x0010d270
MOV R14,RAX
TEST RAX,RAX
JZ 0x0010f8d0
MOV EDI,0x20
CALL 0x00104370
MOV dword ptr [RAX + 0x1c],0x0
MOV qword ptr [RAX],RBX
MOV qword ptr [RAX + 0x8],R13
MOV qword ptr [RAX + 0x10],R12
MOV dword ptr [RAX + 0x18],EBP
MOV qword ptr [R14 + 0x10],RAX
POP RBX
MOV RAX,R14
POP RBP
POP R12
POP R13
POP R14
RET
XOR R14D,R14D
POP RBX
POP RBP
MOV RAX,R14
POP R12
POP R13
POP R14
RET
(translation_unit "long FUN_0010f880(undefined8 param_1,long param_2,long param_3,long param_4,undefined4 param_5)\n\n{\n  long lVar1;\n  long *plVar2;\n  \n  if (param_2 != 0) {\n    lVar1 = FUN_0010d270(0x13,0);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x20);\n      *(undefined4 *)((long)plVar2 + 0x1c) = 0;\n      *plVar2 = param_2;\n      plVar2[1] = param_3;\n      plVar2[2] = param_4;\n      *(undefined4 *)(plVar2 + 3) = param_5;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }\n    return lVar1;\n  }\n  return 0;\n}\n\n" (function_definition "long FUN_0010f880(undefined8 param_1,long param_2,long param_3,long param_4,undefined4 param_5)\n\n{\n  long lVar1;\n  long *plVar2;\n  \n  if (param_2 != 0) {\n    lVar1 = FUN_0010d270(0x13,0);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x20);\n      *(undefined4 *)((long)plVar2 + 0x1c) = 0;\n      *plVar2 = param_2;\n      plVar2[1] = param_3;\n      plVar2[2] = param_4;\n      *(undefined4 *)(plVar2 + 3) = param_5;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }\n    return lVar1;\n  }\n  return 0;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_0010f880(undefined8 param_1,long param_2,long param_3,long param_4,undefined4 param_5)" identifier (parameter_list "(undefined8 param_1,long param_2,long param_3,long param_4,undefined4 param_5)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_4" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  long *plVar2;\n  \n  if (param_2 != 0) {\n    lVar1 = FUN_0010d270(0x13,0);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x20);\n      *(undefined4 *)((long)plVar2 + 0x1c) = 0;\n      *plVar2 = param_2;\n      plVar2[1] = param_3;\n      plVar2[2] = param_4;\n      *(undefined4 *)(plVar2 + 3) = param_5;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }\n    return lVar1;\n  }\n  return 0;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (if_statement "if (param_2 != 0) {\n    lVar1 = FUN_0010d270(0x13,0);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x20);\n      *(undefined4 *)((long)plVar2 + 0x1c) = 0;\n      *plVar2 = param_2;\n      plVar2[1] = param_3;\n      plVar2[2] = param_4;\n      *(undefined4 *)(plVar2 + 3) = param_5;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }\n    return lVar1;\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    lVar1 = FUN_0010d270(0x13,0);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x20);\n      *(undefined4 *)((long)plVar2 + 0x1c) = 0;\n      *plVar2 = param_2;\n      plVar2[1] = param_3;\n      plVar2[2] = param_4;\n      *(undefined4 *)(plVar2 + 3) = param_5;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }\n    return lVar1;\n  }" { (expression_statement "lVar1 = FUN_0010d270(0x13,0);" (assignment_expression "lVar1 = FUN_0010d270(0x13,0)" identifier = (call_expression "FUN_0010d270(0x13,0)" identifier (argument_list "(0x13,0)" ( number_literal , number_literal )))) ;) (if_statement "if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x20);\n      *(undefined4 *)((long)plVar2 + 0x1c) = 0;\n      *plVar2 = param_2;\n      plVar2[1] = param_3;\n      plVar2[2] = param_4;\n      *(undefined4 *)(plVar2 + 3) = param_5;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }" if (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      plVar2 = (long *)xmalloc(0x20);\n      *(undefined4 *)((long)plVar2 + 0x1c) = 0;\n      *plVar2 = param_2;\n      plVar2[1] = param_3;\n      plVar2[2] = param_4;\n      *(undefined4 *)(plVar2 + 3) = param_5;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }" { (expression_statement "plVar2 = (long *)xmalloc(0x20);" (assignment_expression "plVar2 = (long *)xmalloc(0x20)" identifier = (cast_expression "(long *)xmalloc(0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x20)" identifier (argument_list "(0x20)" ( number_literal ))))) ;) (expression_statement "*(undefined4 *)((long)plVar2 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)((long)plVar2 + 0x1c) = 0" (pointer_expression "*(undefined4 *)((long)plVar2 + 0x1c)" * (cast_expression "(undefined4 *)((long)plVar2 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar2 + 0x1c)" ( (binary_expression "(long)plVar2 + 0x1c" (cast_expression "(long)plVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*plVar2 = param_2;" (assignment_expression "*plVar2 = param_2" (pointer_expression "*plVar2" * identifier) = identifier) ;) (expression_statement "plVar2[1] = param_3;" (assignment_expression "plVar2[1] = param_3" (subscript_expression "plVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "plVar2[2] = param_4;" (assignment_expression "plVar2[2] = param_4" (subscript_expression "plVar2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined4 *)(plVar2 + 3) = param_5;" (assignment_expression "*(undefined4 *)(plVar2 + 3) = param_5" (pointer_expression "*(undefined4 *)(plVar2 + 3)" * (cast_expression "(undefined4 *)(plVar2 + 3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar2 + 3)" ( (binary_expression "plVar2 + 3" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(long **)(lVar1 + 0x10) = plVar2;" (assignment_expression "*(long **)(lVar1 + 0x10) = plVar2" (pointer_expression "*(long **)(lVar1 + 0x10)" * (cast_expression "(long **)(lVar1 + 0x10)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar1 + 0x10)" ( (binary_expression "lVar1 + 0x10" identifier + number_literal) )))) = identifier) ;) })) (return_statement "return lVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "debug_type_conflict\ndebug_make_method_type\n          (void *handle,debug_type_conflict return_type,debug_type_conflict domain_type,\n          debug_type_conflict *arg_types,bfd_boolean varargs)\n\n{\n  debug_type_s *pdVar1;\n  debug_method_type *pdVar2;\n  debug_handle *info;\n  \n  if (return_type != (debug_type_conflict)0x0) {\n    pdVar1 = debug_make_type((debug_handle *)0x13,DEBUG_KIND_ILLEGAL,(uint)domain_type);\n    if (pdVar1 != (debug_type_s *)0x0) {\n      pdVar2 = (debug_method_type *)xmalloc(0x20);\n      *(undefined4 *)&pdVar2->field_0x1c = 0;\n      pdVar2->return_type = return_type;\n      pdVar2->domain_type = domain_type;\n      pdVar2->arg_types = arg_types;\n      pdVar2->varargs = varargs;\n      (pdVar1->u).kmethod = pdVar2;\n    }\n    return pdVar1;\n  }\n  return (debug_type_conflict)0x0;\n}\n\n" (function_definition "debug_type_conflict\ndebug_make_method_type\n          (void *handle,debug_type_conflict return_type,debug_type_conflict domain_type,\n          debug_type_conflict *arg_types,bfd_boolean varargs)\n\n{\n  debug_type_s *pdVar1;\n  debug_method_type *pdVar2;\n  debug_handle *info;\n  \n  if (return_type != (debug_type_conflict)0x0) {\n    pdVar1 = debug_make_type((debug_handle *)0x13,DEBUG_KIND_ILLEGAL,(uint)domain_type);\n    if (pdVar1 != (debug_type_s *)0x0) {\n      pdVar2 = (debug_method_type *)xmalloc(0x20);\n      *(undefined4 *)&pdVar2->field_0x1c = 0;\n      pdVar2->return_type = return_type;\n      pdVar2->domain_type = domain_type;\n      pdVar2->arg_types = arg_types;\n      pdVar2->varargs = varargs;\n      (pdVar1->u).kmethod = pdVar2;\n    }\n    return pdVar1;\n  }\n  return (debug_type_conflict)0x0;\n}" type_identifier (function_declarator "debug_make_method_type\n          (void *handle,debug_type_conflict return_type,debug_type_conflict domain_type,\n          debug_type_conflict *arg_types,bfd_boolean varargs)" identifier (parameter_list "(void *handle,debug_type_conflict return_type,debug_type_conflict domain_type,\n          debug_type_conflict *arg_types,bfd_boolean varargs)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) , (parameter_declaration "debug_type_conflict return_type" type_identifier identifier) , (parameter_declaration "debug_type_conflict domain_type" type_identifier identifier) , (parameter_declaration "debug_type_conflict *arg_types" type_identifier (pointer_declarator "*arg_types" * identifier)) , (parameter_declaration "bfd_boolean varargs" type_identifier identifier) ))) (compound_statement "{\n  debug_type_s *pdVar1;\n  debug_method_type *pdVar2;\n  debug_handle *info;\n  \n  if (return_type != (debug_type_conflict)0x0) {\n    pdVar1 = debug_make_type((debug_handle *)0x13,DEBUG_KIND_ILLEGAL,(uint)domain_type);\n    if (pdVar1 != (debug_type_s *)0x0) {\n      pdVar2 = (debug_method_type *)xmalloc(0x20);\n      *(undefined4 *)&pdVar2->field_0x1c = 0;\n      pdVar2->return_type = return_type;\n      pdVar2->domain_type = domain_type;\n      pdVar2->arg_types = arg_types;\n      pdVar2->varargs = varargs;\n      (pdVar1->u).kmethod = pdVar2;\n    }\n    return pdVar1;\n  }\n  return (debug_type_conflict)0x0;\n}" { (declaration "debug_type_s *pdVar1;" type_identifier (pointer_declarator "*pdVar1" * identifier) ;) (declaration "debug_method_type *pdVar2;" type_identifier (pointer_declarator "*pdVar2" * identifier) ;) (declaration "debug_handle *info;" type_identifier (pointer_declarator "*info" * identifier) ;) (if_statement "if (return_type != (debug_type_conflict)0x0) {\n    pdVar1 = debug_make_type((debug_handle *)0x13,DEBUG_KIND_ILLEGAL,(uint)domain_type);\n    if (pdVar1 != (debug_type_s *)0x0) {\n      pdVar2 = (debug_method_type *)xmalloc(0x20);\n      *(undefined4 *)&pdVar2->field_0x1c = 0;\n      pdVar2->return_type = return_type;\n      pdVar2->domain_type = domain_type;\n      pdVar2->arg_types = arg_types;\n      pdVar2->varargs = varargs;\n      (pdVar1->u).kmethod = pdVar2;\n    }\n    return pdVar1;\n  }" if (parenthesized_expression "(return_type != (debug_type_conflict)0x0)" ( (binary_expression "return_type != (debug_type_conflict)0x0" identifier != (cast_expression "(debug_type_conflict)0x0" ( (type_descriptor "debug_type_conflict" type_identifier) ) number_literal)) )) (compound_statement "{\n    pdVar1 = debug_make_type((debug_handle *)0x13,DEBUG_KIND_ILLEGAL,(uint)domain_type);\n    if (pdVar1 != (debug_type_s *)0x0) {\n      pdVar2 = (debug_method_type *)xmalloc(0x20);\n      *(undefined4 *)&pdVar2->field_0x1c = 0;\n      pdVar2->return_type = return_type;\n      pdVar2->domain_type = domain_type;\n      pdVar2->arg_types = arg_types;\n      pdVar2->varargs = varargs;\n      (pdVar1->u).kmethod = pdVar2;\n    }\n    return pdVar1;\n  }" { (expression_statement "pdVar1 = debug_make_type((debug_handle *)0x13,DEBUG_KIND_ILLEGAL,(uint)domain_type);" (assignment_expression "pdVar1 = debug_make_type((debug_handle *)0x13,DEBUG_KIND_ILLEGAL,(uint)domain_type)" identifier = (call_expression "debug_make_type((debug_handle *)0x13,DEBUG_KIND_ILLEGAL,(uint)domain_type)" identifier (argument_list "((debug_handle *)0x13,DEBUG_KIND_ILLEGAL,(uint)domain_type)" ( (cast_expression "(debug_handle *)0x13" ( (type_descriptor "debug_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , identifier , (cast_expression "(uint)domain_type" ( (type_descriptor "uint" type_identifier) ) identifier) )))) ;) (if_statement "if (pdVar1 != (debug_type_s *)0x0) {\n      pdVar2 = (debug_method_type *)xmalloc(0x20);\n      *(undefined4 *)&pdVar2->field_0x1c = 0;\n      pdVar2->return_type = return_type;\n      pdVar2->domain_type = domain_type;\n      pdVar2->arg_types = arg_types;\n      pdVar2->varargs = varargs;\n      (pdVar1->u).kmethod = 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_method_type *)xmalloc(0x20);\n      *(undefined4 *)&pdVar2->field_0x1c = 0;\n      pdVar2->return_type = return_type;\n      pdVar2->domain_type = domain_type;\n      pdVar2->arg_types = arg_types;\n      pdVar2->varargs = varargs;\n      (pdVar1->u).kmethod = pdVar2;\n    }" { (expression_statement "pdVar2 = (debug_method_type *)xmalloc(0x20);" (assignment_expression "pdVar2 = (debug_method_type *)xmalloc(0x20)" identifier = (cast_expression "(debug_method_type *)xmalloc(0x20)" ( (type_descriptor "debug_method_type *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x20)" identifier (argument_list "(0x20)" ( number_literal ))))) ;) (expression_statement "*(undefined4 *)&pdVar2->field_0x1c = 0;" (assignment_expression "*(undefined4 *)&pdVar2->field_0x1c = 0" (pointer_expression "*(undefined4 *)&pdVar2->field_0x1c" * (cast_expression "(undefined4 *)&pdVar2->field_0x1c" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pdVar2->field_0x1c" & (field_expression "pdVar2->field_0x1c" identifier -> field_identifier)))) = number_literal) ;) (expression_statement "pdVar2->return_type = return_type;" (assignment_expression "pdVar2->return_type = return_type" (field_expression "pdVar2->return_type" identifier -> field_identifier) = identifier) ;) (expression_statement "pdVar2->domain_type = domain_type;" (assignment_expression "pdVar2->domain_type = domain_type" (field_expression "pdVar2->domain_type" identifier -> field_identifier) = identifier) ;) (expression_statement "pdVar2->arg_types = arg_types;" (assignment_expression "pdVar2->arg_types = arg_types" (field_expression "pdVar2->arg_types" identifier -> field_identifier) = identifier) ;) (expression_statement "pdVar2->varargs = varargs;" (assignment_expression "pdVar2->varargs = varargs" (field_expression "pdVar2->varargs" identifier -> field_identifier) = identifier) ;) (expression_statement "(pdVar1->u).kmethod = pdVar2;" (assignment_expression "(pdVar1->u).kmethod = pdVar2" (field_expression "(pdVar1->u).kmethod" (parenthesized_expression "(pdVar1->u)" ( (field_expression "pdVar1->u" identifier -> field_identifier) )) . field_identifier) = identifier) ;) })) (return_statement "return pdVar1;" return identifier ;) })) (return_statement "return (debug_type_conflict)0x0;" return (cast_expression "(debug_type_conflict)0x0" ( (type_descriptor "debug_type_conflict" type_identifier) ) number_literal) ;) })))
(translation_unit "long FUN_0010f880(undefined8 param_1,long param_2,long param_3,long param_4,undefined4 param_5)\n\n{\n  long lVar1;\n  long *plVar2;\n  \n  if (param_2 != 0) {\n    lVar1 = FUN_0010d270(0x13,0);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x20);\n      *(undefined4 *)((long)plVar2 + 0x1c) = 0;\n      *plVar2 = param_2;\n      plVar2[1] = param_3;\n      plVar2[2] = param_4;\n      *(undefined4 *)(plVar2 + 3) = param_5;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }\n    return lVar1;\n  }\n  return 0;\n}\n\n" (function_definition "long FUN_0010f880(undefined8 param_1,long param_2,long param_3,long param_4,undefined4 param_5)\n\n{\n  long lVar1;\n  long *plVar2;\n  \n  if (param_2 != 0) {\n    lVar1 = FUN_0010d270(0x13,0);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x20);\n      *(undefined4 *)((long)plVar2 + 0x1c) = 0;\n      *plVar2 = param_2;\n      plVar2[1] = param_3;\n      plVar2[2] = param_4;\n      *(undefined4 *)(plVar2 + 3) = param_5;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }\n    return lVar1;\n  }\n  return 0;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_0010f880(undefined8 param_1,long param_2,long param_3,long param_4,undefined4 param_5)" identifier (parameter_list "(undefined8 param_1,long param_2,long param_3,long param_4,undefined4 param_5)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_4" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  long *plVar2;\n  \n  if (param_2 != 0) {\n    lVar1 = FUN_0010d270(0x13,0);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x20);\n      *(undefined4 *)((long)plVar2 + 0x1c) = 0;\n      *plVar2 = param_2;\n      plVar2[1] = param_3;\n      plVar2[2] = param_4;\n      *(undefined4 *)(plVar2 + 3) = param_5;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }\n    return lVar1;\n  }\n  return 0;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (if_statement "if (param_2 != 0) {\n    lVar1 = FUN_0010d270(0x13,0);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x20);\n      *(undefined4 *)((long)plVar2 + 0x1c) = 0;\n      *plVar2 = param_2;\n      plVar2[1] = param_3;\n      plVar2[2] = param_4;\n      *(undefined4 *)(plVar2 + 3) = param_5;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }\n    return lVar1;\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    lVar1 = FUN_0010d270(0x13,0);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x20);\n      *(undefined4 *)((long)plVar2 + 0x1c) = 0;\n      *plVar2 = param_2;\n      plVar2[1] = param_3;\n      plVar2[2] = param_4;\n      *(undefined4 *)(plVar2 + 3) = param_5;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }\n    return lVar1;\n  }" { (expression_statement "lVar1 = FUN_0010d270(0x13,0);" (assignment_expression "lVar1 = FUN_0010d270(0x13,0)" identifier = (call_expression "FUN_0010d270(0x13,0)" identifier (argument_list "(0x13,0)" ( number_literal , number_literal )))) ;) (if_statement "if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x20);\n      *(undefined4 *)((long)plVar2 + 0x1c) = 0;\n      *plVar2 = param_2;\n      plVar2[1] = param_3;\n      plVar2[2] = param_4;\n      *(undefined4 *)(plVar2 + 3) = param_5;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }" if (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      plVar2 = (long *)xmalloc(0x20);\n      *(undefined4 *)((long)plVar2 + 0x1c) = 0;\n      *plVar2 = param_2;\n      plVar2[1] = param_3;\n      plVar2[2] = param_4;\n      *(undefined4 *)(plVar2 + 3) = param_5;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }" { (expression_statement "plVar2 = (long *)xmalloc(0x20);" (assignment_expression "plVar2 = (long *)xmalloc(0x20)" identifier = (cast_expression "(long *)xmalloc(0x20)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x20)" identifier (argument_list "(0x20)" ( number_literal ))))) ;) (expression_statement "*(undefined4 *)((long)plVar2 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)((long)plVar2 + 0x1c) = 0" (pointer_expression "*(undefined4 *)((long)plVar2 + 0x1c)" * (cast_expression "(undefined4 *)((long)plVar2 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar2 + 0x1c)" ( (binary_expression "(long)plVar2 + 0x1c" (cast_expression "(long)plVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*plVar2 = param_2;" (assignment_expression "*plVar2 = param_2" (pointer_expression "*plVar2" * identifier) = identifier) ;) (expression_statement "plVar2[1] = param_3;" (assignment_expression "plVar2[1] = param_3" (subscript_expression "plVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "plVar2[2] = param_4;" (assignment_expression "plVar2[2] = param_4" (subscript_expression "plVar2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined4 *)(plVar2 + 3) = param_5;" (assignment_expression "*(undefined4 *)(plVar2 + 3) = param_5" (pointer_expression "*(undefined4 *)(plVar2 + 3)" * (cast_expression "(undefined4 *)(plVar2 + 3)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar2 + 3)" ( (binary_expression "plVar2 + 3" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(long **)(lVar1 + 0x10) = plVar2;" (assignment_expression "*(long **)(lVar1 + 0x10) = plVar2" (pointer_expression "*(long **)(lVar1 + 0x10)" * (cast_expression "(long **)(lVar1 + 0x10)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar1 + 0x10)" ( (binary_expression "lVar1 + 0x10" identifier + number_literal) )))) = identifier) ;) })) (return_statement "return lVar1;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition (sized_type_specifier long) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "long FUN_0010f880(undefined8 param_1,long param_2,long param_3,long param_4,undefined4 param_5)\n\n{\n  long lVar1;\n  long *plVar2;\n  \n  if (param_2 != 0) {\n    lVar1 = FUN_0010d270(0x13,0);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x20);\n      *(undefined4 *)((long)plVar2 + 0x1c) = 0;\n      *plVar2 = param_2;\n      plVar2[1] = param_3;\n      plVar2[2] = param_4;\n      *(undefined4 *)(plVar2 + 3) = param_5;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }\n    return lVar1;\n  }\n  return 0;\n}" (sized_type_specifier "long" (long "long")) (function_declarator "FUN_0010f880(undefined8 param_1,long param_2,long param_3,long param_4,undefined4 param_5)" (identifier "FUN_0010f880") (parameter_list "(undefined8 param_1,long param_2,long param_3,long param_4,undefined4 param_5)" (( "(") (parameter_declaration "undefined8 param_1" (type_identifier "undefined8") (identifier "param_1")) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) (, ",") (parameter_declaration "long param_3" (sized_type_specifier "long" (long "long")) (identifier "param_3")) (, ",") (parameter_declaration "long param_4" (sized_type_specifier "long" (long "long")) (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) () ")"))) (compound_statement "{\n  long lVar1;\n  long *plVar2;\n  \n  if (param_2 != 0) {\n    lVar1 = FUN_0010d270(0x13,0);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x20);\n      *(undefined4 *)((long)plVar2 + 0x1c) = 0;\n      *plVar2 = param_2;\n      plVar2[1] = param_3;\n      plVar2[2] = param_4;\n      *(undefined4 *)(plVar2 + 3) = param_5;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }\n    return lVar1;\n  }\n  return 0;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "long *plVar2;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar2" (* "*") (identifier "plVar2")) (; ";")) (if_statement "if (param_2 != 0) {\n    lVar1 = FUN_0010d270(0x13,0);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x20);\n      *(undefined4 *)((long)plVar2 + 0x1c) = 0;\n      *plVar2 = param_2;\n      plVar2[1] = param_3;\n      plVar2[2] = param_4;\n      *(undefined4 *)(plVar2 + 3) = param_5;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }\n    return lVar1;\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    lVar1 = FUN_0010d270(0x13,0);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x20);\n      *(undefined4 *)((long)plVar2 + 0x1c) = 0;\n      *plVar2 = param_2;\n      plVar2[1] = param_3;\n      plVar2[2] = param_4;\n      *(undefined4 *)(plVar2 + 3) = param_5;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }\n    return lVar1;\n  }" ({ "{") (expression_statement "lVar1 = FUN_0010d270(0x13,0);" (assignment_expression "lVar1 = FUN_0010d270(0x13,0)" (identifier "lVar1") (= "=") (call_expression "FUN_0010d270(0x13,0)" (identifier "FUN_0010d270") (argument_list "(0x13,0)" (( "(") (number_literal "0x13") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x20);\n      *(undefined4 *)((long)plVar2 + 0x1c) = 0;\n      *plVar2 = param_2;\n      plVar2[1] = param_3;\n      plVar2[2] = param_4;\n      *(undefined4 *)(plVar2 + 3) = param_5;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }" (if "if") (parenthesized_expression "(lVar1 != 0)" (( "(") (binary_expression "lVar1 != 0" (identifier "lVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      plVar2 = (long *)xmalloc(0x20);\n      *(undefined4 *)((long)plVar2 + 0x1c) = 0;\n      *plVar2 = param_2;\n      plVar2[1] = param_3;\n      plVar2[2] = param_4;\n      *(undefined4 *)(plVar2 + 3) = param_5;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }" ({ "{") (expression_statement "plVar2 = (long *)xmalloc(0x20);" (assignment_expression "plVar2 = (long *)xmalloc(0x20)" (identifier "plVar2") (= "=") (cast_expression "(long *)xmalloc(0x20)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0x20)" (identifier "xmalloc") (argument_list "(0x20)" (( "(") (number_literal "0x20") () ")"))))) (; ";")) (expression_statement "*(undefined4 *)((long)plVar2 + 0x1c) = 0;" (assignment_expression "*(undefined4 *)((long)plVar2 + 0x1c) = 0" (pointer_expression "*(undefined4 *)((long)plVar2 + 0x1c)" (* "*") (cast_expression "(undefined4 *)((long)plVar2 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)plVar2 + 0x1c)" (( "(") (binary_expression "(long)plVar2 + 0x1c" (cast_expression "(long)plVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "plVar2")) (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*plVar2 = param_2;" (assignment_expression "*plVar2 = param_2" (pointer_expression "*plVar2" (* "*") (identifier "plVar2")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "plVar2[1] = param_3;" (assignment_expression "plVar2[1] = param_3" (subscript_expression "plVar2[1]" (identifier "plVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "plVar2[2] = param_4;" (assignment_expression "plVar2[2] = param_4" (subscript_expression "plVar2[2]" (identifier "plVar2") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "*(undefined4 *)(plVar2 + 3) = param_5;" (assignment_expression "*(undefined4 *)(plVar2 + 3) = param_5" (pointer_expression "*(undefined4 *)(plVar2 + 3)" (* "*") (cast_expression "(undefined4 *)(plVar2 + 3)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(plVar2 + 3)" (( "(") (binary_expression "plVar2 + 3" (identifier "plVar2") (+ "+") (number_literal "3")) () ")")))) (= "=") (identifier "param_5")) (; ";")) (expression_statement "*(long **)(lVar1 + 0x10) = plVar2;" (assignment_expression "*(long **)(lVar1 + 0x10) = plVar2" (pointer_expression "*(long **)(lVar1 + 0x10)" (* "*") (cast_expression "(long **)(lVar1 + 0x10)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar1 + 0x10)" (( "(") (binary_expression "lVar1 + 0x10" (identifier "lVar1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "plVar2")) (; ";")) (} "}"))) (return_statement "return lVar1;" (return "return") (identifier "lVar1") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

type_1
function_1
          (void *handle,type_1 var_1,type_1 domain_type,
          type_1 *arg_types,type_2 varargs)

{
  type_3 *var_3;
  type_4 *pdVar2;
  type_5 *info;
  
  if (var_1 != (type_1)0x0) {
    var_3 = var_2((type_5 *)0x13,DEBUG_KIND_ILLEGAL,(type_6)domain_type);
    if (var_3 != (type_3 *)0x0) {
      pdVar2 = (type_4 *)var_4(0x20);
      *(type_7 *)&pdVar2->field_0x1c = 0;
      pdVar2->var_1 = var_1;
      pdVar2->domain_type = domain_type;
      pdVar2->arg_types = arg_types;
      pdVar2->varargs = varargs;
      (var_3->u).kmethod = pdVar2;
    }
    return var_3;
  }
  return (type_1)0x0;
}


(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: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (pointer_declarator declarator: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (number_literal))))) (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: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (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: (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: (identifier))) (expression_statement (assignment_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: (identifier))))) (return_statement (identifier)))) (return_statement (number_literal)))))

long MASKED(undefined8 param_1,long param_2,long param_3,long param_4,undefined4 param_5)

{
  long lVar1;
  long *plVar2;
  
  if (param_2 != 0) {
    lVar1 = FUN_0010d270(0x13,0);
    if (lVar1 != 0) {
      plVar2 = (long *)xmalloc(0x20);
      *(undefined4 *)((long)plVar2 + 0x1c) = 0;
      *plVar2 = param_2;
      plVar2[1] = param_3;
      plVar2[2] = param_4;
      *(undefined4 *)(plVar2 + 3) = param_5;
      *(long **)(lVar1 + 0x10) = plVar2;
    }
    return lVar1;
  }
  return 0;
}

