
debug_type_conflict
debug_make_set_type(void *handle,debug_type_conflict type,bfd_boolean bitstringp)

{
  debug_type_s *pdVar1;
  debug_set_type *pdVar2;
  debug_handle *info;
  
  if (type != (debug_type_conflict)0x0) {
    pdVar1 = debug_make_type((debug_handle *)0x11,DEBUG_KIND_ILLEGAL,bitstringp);
    if (pdVar1 != (debug_type_s *)0x0) {
      pdVar2 = (debug_set_type *)xmalloc(0x10);
      *(undefined4 *)&pdVar2->field_0xc = 0;
      pdVar2->type = type;
      pdVar2->bitstringp = bitstringp;
      (pdVar1->u).kset = pdVar2;
    }
    return pdVar1;
  }
  return (debug_type_conflict)0x0;
}



long FUN_0012d880(undefined8 param_1,long param_2,undefined4 param_3)

{
  long lVar1;
  long *plVar2;
  
  if (param_2 != 0) {
    lVar1 = FUN_0012b330(0x11,0);
    if (lVar1 != 0) {
      plVar2 = (long *)xmalloc(0x10);
      *(undefined4 *)((long)plVar2 + 0xc) = 0;
      *plVar2 = param_2;
      *(undefined4 *)(plVar2 + 1) = param_3;
      *(long **)(lVar1 + 0x10) = plVar2;
    }
    return lVar1;
  }
  return 0;
}


PUSH R12
PUSH RBP
PUSH RBX
TEST RSI,RSI
JZ 0x0012d8d0
MOV RBX,RSI
MOV EDI,0x11
XOR ESI,ESI
MOV R12D,EDX
CALL 0x0012b330
MOV RBP,RAX
TEST RAX,RAX
JZ 0x0012d8bf
MOV EDI,0x10
CALL 0x00107350
MOV dword ptr [RAX + 0xc],0x0
MOV qword ptr [RAX],RBX
MOV dword ptr [RAX + 0x8],R12D
MOV qword ptr [RBP + 0x10],RAX
MOV RAX,RBP
POP RBX
POP RBP
POP R12
RET
XOR EBP,EBP
POP RBX
MOV RAX,RBP
POP RBP
POP R12
RET
(translation_unit "long FUN_0012d880(undefined8 param_1,long param_2,undefined4 param_3)\n\n{\n  long lVar1;\n  long *plVar2;\n  \n  if (param_2 != 0) {\n    lVar1 = FUN_0012b330(0x11,0);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x10);\n      *(undefined4 *)((long)plVar2 + 0xc) = 0;\n      *plVar2 = param_2;\n      *(undefined4 *)(plVar2 + 1) = param_3;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }\n    return lVar1;\n  }\n  return 0;\n}\n\n" (function_definition "long FUN_0012d880(undefined8 param_1,long param_2,undefined4 param_3)\n\n{\n  long lVar1;\n  long *plVar2;\n  \n  if (param_2 != 0) {\n    lVar1 = FUN_0012b330(0x11,0);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x10);\n      *(undefined4 *)((long)plVar2 + 0xc) = 0;\n      *plVar2 = param_2;\n      *(undefined4 *)(plVar2 + 1) = param_3;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }\n    return lVar1;\n  }\n  return 0;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_0012d880(undefined8 param_1,long param_2,undefined4 param_3)" identifier (parameter_list "(undefined8 param_1,long param_2,undefined4 param_3)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  long *plVar2;\n  \n  if (param_2 != 0) {\n    lVar1 = FUN_0012b330(0x11,0);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x10);\n      *(undefined4 *)((long)plVar2 + 0xc) = 0;\n      *plVar2 = param_2;\n      *(undefined4 *)(plVar2 + 1) = param_3;\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_0012b330(0x11,0);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x10);\n      *(undefined4 *)((long)plVar2 + 0xc) = 0;\n      *plVar2 = param_2;\n      *(undefined4 *)(plVar2 + 1) = param_3;\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_0012b330(0x11,0);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x10);\n      *(undefined4 *)((long)plVar2 + 0xc) = 0;\n      *plVar2 = param_2;\n      *(undefined4 *)(plVar2 + 1) = param_3;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }\n    return lVar1;\n  }" { (expression_statement "lVar1 = FUN_0012b330(0x11,0);" (assignment_expression "lVar1 = FUN_0012b330(0x11,0)" identifier = (call_expression "FUN_0012b330(0x11,0)" identifier (argument_list "(0x11,0)" ( number_literal , number_literal )))) ;) (if_statement "if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x10);\n      *(undefined4 *)((long)plVar2 + 0xc) = 0;\n      *plVar2 = param_2;\n      *(undefined4 *)(plVar2 + 1) = param_3;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }" if (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      plVar2 = (long *)xmalloc(0x10);\n      *(undefined4 *)((long)plVar2 + 0xc) = 0;\n      *plVar2 = param_2;\n      *(undefined4 *)(plVar2 + 1) = param_3;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }" { (expression_statement "plVar2 = (long *)xmalloc(0x10);" (assignment_expression "plVar2 = (long *)xmalloc(0x10)" identifier = (cast_expression "(long *)xmalloc(0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) (expression_statement "*(undefined4 *)((long)plVar2 + 0xc) = 0;" (assignment_expression "*(undefined4 *)((long)plVar2 + 0xc) = 0" (pointer_expression "*(undefined4 *)((long)plVar2 + 0xc)" * (cast_expression "(undefined4 *)((long)plVar2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar2 + 0xc)" ( (binary_expression "(long)plVar2 + 0xc" (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 "*(undefined4 *)(plVar2 + 1) = param_3;" (assignment_expression "*(undefined4 *)(plVar2 + 1) = param_3" (pointer_expression "*(undefined4 *)(plVar2 + 1)" * (cast_expression "(undefined4 *)(plVar2 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar2 + 1)" ( (binary_expression "plVar2 + 1" 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_set_type(void *handle,debug_type_conflict type,bfd_boolean bitstringp)\n\n{\n  debug_type_s *pdVar1;\n  debug_set_type *pdVar2;\n  debug_handle *info;\n  \n  if (type != (debug_type_conflict)0x0) {\n    pdVar1 = debug_make_type((debug_handle *)0x11,DEBUG_KIND_ILLEGAL,bitstringp);\n    if (pdVar1 != (debug_type_s *)0x0) {\n      pdVar2 = (debug_set_type *)xmalloc(0x10);\n      *(undefined4 *)&pdVar2->field_0xc = 0;\n      pdVar2->type = type;\n      pdVar2->bitstringp = bitstringp;\n      (pdVar1->u).kset = pdVar2;\n    }\n    return pdVar1;\n  }\n  return (debug_type_conflict)0x0;\n}\n\n" (function_definition "debug_type_conflict\ndebug_make_set_type(void *handle,debug_type_conflict type,bfd_boolean bitstringp)\n\n{\n  debug_type_s *pdVar1;\n  debug_set_type *pdVar2;\n  debug_handle *info;\n  \n  if (type != (debug_type_conflict)0x0) {\n    pdVar1 = debug_make_type((debug_handle *)0x11,DEBUG_KIND_ILLEGAL,bitstringp);\n    if (pdVar1 != (debug_type_s *)0x0) {\n      pdVar2 = (debug_set_type *)xmalloc(0x10);\n      *(undefined4 *)&pdVar2->field_0xc = 0;\n      pdVar2->type = type;\n      pdVar2->bitstringp = bitstringp;\n      (pdVar1->u).kset = pdVar2;\n    }\n    return pdVar1;\n  }\n  return (debug_type_conflict)0x0;\n}" type_identifier (function_declarator "debug_make_set_type(void *handle,debug_type_conflict type,bfd_boolean bitstringp)" identifier (parameter_list "(void *handle,debug_type_conflict type,bfd_boolean bitstringp)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) , (parameter_declaration "debug_type_conflict type" type_identifier identifier) , (parameter_declaration "bfd_boolean bitstringp" type_identifier identifier) ))) (compound_statement "{\n  debug_type_s *pdVar1;\n  debug_set_type *pdVar2;\n  debug_handle *info;\n  \n  if (type != (debug_type_conflict)0x0) {\n    pdVar1 = debug_make_type((debug_handle *)0x11,DEBUG_KIND_ILLEGAL,bitstringp);\n    if (pdVar1 != (debug_type_s *)0x0) {\n      pdVar2 = (debug_set_type *)xmalloc(0x10);\n      *(undefined4 *)&pdVar2->field_0xc = 0;\n      pdVar2->type = type;\n      pdVar2->bitstringp = bitstringp;\n      (pdVar1->u).kset = 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_set_type *pdVar2;" type_identifier (pointer_declarator "*pdVar2" * identifier) ;) (declaration "debug_handle *info;" type_identifier (pointer_declarator "*info" * identifier) ;) (if_statement "if (type != (debug_type_conflict)0x0) {\n    pdVar1 = debug_make_type((debug_handle *)0x11,DEBUG_KIND_ILLEGAL,bitstringp);\n    if (pdVar1 != (debug_type_s *)0x0) {\n      pdVar2 = (debug_set_type *)xmalloc(0x10);\n      *(undefined4 *)&pdVar2->field_0xc = 0;\n      pdVar2->type = type;\n      pdVar2->bitstringp = bitstringp;\n      (pdVar1->u).kset = pdVar2;\n    }\n    return pdVar1;\n  }" if (parenthesized_expression "(type != (debug_type_conflict)0x0)" ( (binary_expression "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 *)0x11,DEBUG_KIND_ILLEGAL,bitstringp);\n    if (pdVar1 != (debug_type_s *)0x0) {\n      pdVar2 = (debug_set_type *)xmalloc(0x10);\n      *(undefined4 *)&pdVar2->field_0xc = 0;\n      pdVar2->type = type;\n      pdVar2->bitstringp = bitstringp;\n      (pdVar1->u).kset = pdVar2;\n    }\n    return pdVar1;\n  }" { (expression_statement "pdVar1 = debug_make_type((debug_handle *)0x11,DEBUG_KIND_ILLEGAL,bitstringp);" (assignment_expression "pdVar1 = debug_make_type((debug_handle *)0x11,DEBUG_KIND_ILLEGAL,bitstringp)" identifier = (call_expression "debug_make_type((debug_handle *)0x11,DEBUG_KIND_ILLEGAL,bitstringp)" identifier (argument_list "((debug_handle *)0x11,DEBUG_KIND_ILLEGAL,bitstringp)" ( (cast_expression "(debug_handle *)0x11" ( (type_descriptor "debug_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , identifier , identifier )))) ;) (if_statement "if (pdVar1 != (debug_type_s *)0x0) {\n      pdVar2 = (debug_set_type *)xmalloc(0x10);\n      *(undefined4 *)&pdVar2->field_0xc = 0;\n      pdVar2->type = type;\n      pdVar2->bitstringp = bitstringp;\n      (pdVar1->u).kset = 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_set_type *)xmalloc(0x10);\n      *(undefined4 *)&pdVar2->field_0xc = 0;\n      pdVar2->type = type;\n      pdVar2->bitstringp = bitstringp;\n      (pdVar1->u).kset = pdVar2;\n    }" { (expression_statement "pdVar2 = (debug_set_type *)xmalloc(0x10);" (assignment_expression "pdVar2 = (debug_set_type *)xmalloc(0x10)" identifier = (cast_expression "(debug_set_type *)xmalloc(0x10)" ( (type_descriptor "debug_set_type *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) (expression_statement "*(undefined4 *)&pdVar2->field_0xc = 0;" (assignment_expression "*(undefined4 *)&pdVar2->field_0xc = 0" (pointer_expression "*(undefined4 *)&pdVar2->field_0xc" * (cast_expression "(undefined4 *)&pdVar2->field_0xc" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pdVar2->field_0xc" & (field_expression "pdVar2->field_0xc" identifier -> field_identifier)))) = number_literal) ;) (expression_statement "pdVar2->type = type;" (assignment_expression "pdVar2->type = type" (field_expression "pdVar2->type" identifier -> field_identifier) = identifier) ;) (expression_statement "pdVar2->bitstringp = bitstringp;" (assignment_expression "pdVar2->bitstringp = bitstringp" (field_expression "pdVar2->bitstringp" identifier -> field_identifier) = identifier) ;) (expression_statement "(pdVar1->u).kset = pdVar2;" (assignment_expression "(pdVar1->u).kset = pdVar2" (field_expression "(pdVar1->u).kset" (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_0012d880(undefined8 param_1,long param_2,undefined4 param_3)\n\n{\n  long lVar1;\n  long *plVar2;\n  \n  if (param_2 != 0) {\n    lVar1 = FUN_0012b330(0x11,0);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x10);\n      *(undefined4 *)((long)plVar2 + 0xc) = 0;\n      *plVar2 = param_2;\n      *(undefined4 *)(plVar2 + 1) = param_3;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }\n    return lVar1;\n  }\n  return 0;\n}\n\n" (function_definition "long FUN_0012d880(undefined8 param_1,long param_2,undefined4 param_3)\n\n{\n  long lVar1;\n  long *plVar2;\n  \n  if (param_2 != 0) {\n    lVar1 = FUN_0012b330(0x11,0);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x10);\n      *(undefined4 *)((long)plVar2 + 0xc) = 0;\n      *plVar2 = param_2;\n      *(undefined4 *)(plVar2 + 1) = param_3;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }\n    return lVar1;\n  }\n  return 0;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_0012d880(undefined8 param_1,long param_2,undefined4 param_3)" identifier (parameter_list "(undefined8 param_1,long param_2,undefined4 param_3)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  long *plVar2;\n  \n  if (param_2 != 0) {\n    lVar1 = FUN_0012b330(0x11,0);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x10);\n      *(undefined4 *)((long)plVar2 + 0xc) = 0;\n      *plVar2 = param_2;\n      *(undefined4 *)(plVar2 + 1) = param_3;\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_0012b330(0x11,0);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x10);\n      *(undefined4 *)((long)plVar2 + 0xc) = 0;\n      *plVar2 = param_2;\n      *(undefined4 *)(plVar2 + 1) = param_3;\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_0012b330(0x11,0);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x10);\n      *(undefined4 *)((long)plVar2 + 0xc) = 0;\n      *plVar2 = param_2;\n      *(undefined4 *)(plVar2 + 1) = param_3;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }\n    return lVar1;\n  }" { (expression_statement "lVar1 = FUN_0012b330(0x11,0);" (assignment_expression "lVar1 = FUN_0012b330(0x11,0)" identifier = (call_expression "FUN_0012b330(0x11,0)" identifier (argument_list "(0x11,0)" ( number_literal , number_literal )))) ;) (if_statement "if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x10);\n      *(undefined4 *)((long)plVar2 + 0xc) = 0;\n      *plVar2 = param_2;\n      *(undefined4 *)(plVar2 + 1) = param_3;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }" if (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      plVar2 = (long *)xmalloc(0x10);\n      *(undefined4 *)((long)plVar2 + 0xc) = 0;\n      *plVar2 = param_2;\n      *(undefined4 *)(plVar2 + 1) = param_3;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }" { (expression_statement "plVar2 = (long *)xmalloc(0x10);" (assignment_expression "plVar2 = (long *)xmalloc(0x10)" identifier = (cast_expression "(long *)xmalloc(0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) (expression_statement "*(undefined4 *)((long)plVar2 + 0xc) = 0;" (assignment_expression "*(undefined4 *)((long)plVar2 + 0xc) = 0" (pointer_expression "*(undefined4 *)((long)plVar2 + 0xc)" * (cast_expression "(undefined4 *)((long)plVar2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar2 + 0xc)" ( (binary_expression "(long)plVar2 + 0xc" (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 "*(undefined4 *)(plVar2 + 1) = param_3;" (assignment_expression "*(undefined4 *)(plVar2 + 1) = param_3" (pointer_expression "*(undefined4 *)(plVar2 + 1)" * (cast_expression "(undefined4 *)(plVar2 + 1)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar2 + 1)" ( (binary_expression "plVar2 + 1" 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 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 (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_0012d880(undefined8 param_1,long param_2,undefined4 param_3)\n\n{\n  long lVar1;\n  long *plVar2;\n  \n  if (param_2 != 0) {\n    lVar1 = FUN_0012b330(0x11,0);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x10);\n      *(undefined4 *)((long)plVar2 + 0xc) = 0;\n      *plVar2 = param_2;\n      *(undefined4 *)(plVar2 + 1) = param_3;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }\n    return lVar1;\n  }\n  return 0;\n}" (sized_type_specifier "long" (long "long")) (function_declarator "FUN_0012d880(undefined8 param_1,long param_2,undefined4 param_3)" (identifier "FUN_0012d880") (parameter_list "(undefined8 param_1,long param_2,undefined4 param_3)" (( "(") (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 "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) () ")"))) (compound_statement "{\n  long lVar1;\n  long *plVar2;\n  \n  if (param_2 != 0) {\n    lVar1 = FUN_0012b330(0x11,0);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x10);\n      *(undefined4 *)((long)plVar2 + 0xc) = 0;\n      *plVar2 = param_2;\n      *(undefined4 *)(plVar2 + 1) = param_3;\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_0012b330(0x11,0);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x10);\n      *(undefined4 *)((long)plVar2 + 0xc) = 0;\n      *plVar2 = param_2;\n      *(undefined4 *)(plVar2 + 1) = param_3;\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_0012b330(0x11,0);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x10);\n      *(undefined4 *)((long)plVar2 + 0xc) = 0;\n      *plVar2 = param_2;\n      *(undefined4 *)(plVar2 + 1) = param_3;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }\n    return lVar1;\n  }" ({ "{") (expression_statement "lVar1 = FUN_0012b330(0x11,0);" (assignment_expression "lVar1 = FUN_0012b330(0x11,0)" (identifier "lVar1") (= "=") (call_expression "FUN_0012b330(0x11,0)" (identifier "FUN_0012b330") (argument_list "(0x11,0)" (( "(") (number_literal "0x11") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x10);\n      *(undefined4 *)((long)plVar2 + 0xc) = 0;\n      *plVar2 = param_2;\n      *(undefined4 *)(plVar2 + 1) = param_3;\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(0x10);\n      *(undefined4 *)((long)plVar2 + 0xc) = 0;\n      *plVar2 = param_2;\n      *(undefined4 *)(plVar2 + 1) = param_3;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }" ({ "{") (expression_statement "plVar2 = (long *)xmalloc(0x10);" (assignment_expression "plVar2 = (long *)xmalloc(0x10)" (identifier "plVar2") (= "=") (cast_expression "(long *)xmalloc(0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0x10)" (identifier "xmalloc") (argument_list "(0x10)" (( "(") (number_literal "0x10") () ")"))))) (; ";")) (expression_statement "*(undefined4 *)((long)plVar2 + 0xc) = 0;" (assignment_expression "*(undefined4 *)((long)plVar2 + 0xc) = 0" (pointer_expression "*(undefined4 *)((long)plVar2 + 0xc)" (* "*") (cast_expression "(undefined4 *)((long)plVar2 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)plVar2 + 0xc)" (( "(") (binary_expression "(long)plVar2 + 0xc" (cast_expression "(long)plVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "plVar2")) (+ "+") (number_literal "0xc")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*plVar2 = param_2;" (assignment_expression "*plVar2 = param_2" (pointer_expression "*plVar2" (* "*") (identifier "plVar2")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(undefined4 *)(plVar2 + 1) = param_3;" (assignment_expression "*(undefined4 *)(plVar2 + 1) = param_3" (pointer_expression "*(undefined4 *)(plVar2 + 1)" (* "*") (cast_expression "(undefined4 *)(plVar2 + 1)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(plVar2 + 1)" (( "(") (binary_expression "plVar2 + 1" (identifier "plVar2") (+ "+") (number_literal "1")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (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_2 bitstringp)

{
  type_3 *var_3;
  type_4 *pdVar2;
  type_5 *info;
  
  if (var_1 != (type_1)0x0) {
    var_3 = var_2((type_5 *)0x11,DEBUG_KIND_ILLEGAL,bitstringp);
    if (var_3 != (type_3 *)0x0) {
      pdVar2 = (type_4 *)var_4(0x10);
      *(type_6 *)&pdVar2->field_0xc = 0;
      pdVar2->var_1 = var_1;
      pdVar2->bitstringp = bitstringp;
      (var_3->u).kset = 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: (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: (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,undefined4 param_3)

{
  long lVar1;
  long *plVar2;
  
  if (param_2 != 0) {
    lVar1 = FUN_0012b330(0x11,0);
    if (lVar1 != 0) {
      plVar2 = (long *)xmalloc(0x10);
      *(undefined4 *)((long)plVar2 + 0xc) = 0;
      *plVar2 = param_2;
      *(undefined4 *)(plVar2 + 1) = param_3;
      *(long **)(lVar1 + 0x10) = plVar2;
    }
    return lVar1;
  }
  return 0;
}

