
debug_type_conflict
debug_make_range_type
          (void *handle,debug_type_conflict type,bfd_signed_vma lower,bfd_signed_vma upper)

{
  debug_type_s *pdVar1;
  debug_range_type *pdVar2;
  debug_handle *info;
  
  if (type != (debug_type_conflict)0x0) {
    pdVar1 = debug_make_type((debug_handle *)0xf,DEBUG_KIND_ILLEGAL,(uint)lower);
    if (pdVar1 != (debug_type_s *)0x0) {
      pdVar2 = (debug_range_type *)xmalloc(0x18);
      pdVar2->type = type;
      pdVar2->lower = lower;
      pdVar2->upper = upper;
      (pdVar1->u).krange = pdVar2;
    }
    return pdVar1;
  }
  return (debug_type_conflict)0x0;
}



long FUN_0012d790(undefined8 param_1,long param_2,long param_3,long param_4)

{
  long lVar1;
  long *plVar2;
  
  if (param_2 != 0) {
    lVar1 = FUN_0012b330(0xf,0);
    if (lVar1 != 0) {
      plVar2 = (long *)xmalloc(0x18);
      *plVar2 = param_2;
      plVar2[1] = param_3;
      plVar2[2] = param_4;
      *(long **)(lVar1 + 0x10) = plVar2;
    }
    return lVar1;
  }
  return 0;
}


PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x8
TEST RSI,RSI
JZ 0x0012d7e8
MOV RBX,RSI
MOV EDI,0xf
XOR ESI,ESI
MOV R12,RCX
MOV R13,RDX
CALL 0x0012b330
MOV RBP,RAX
TEST RAX,RAX
JZ 0x0012d7d5
MOV EDI,0x18
CALL 0x00107350
MOV qword ptr [RAX],RBX
MOV qword ptr [RAX + 0x8],R13
MOV qword ptr [RAX + 0x10],R12
MOV qword ptr [RBP + 0x10],RAX
ADD RSP,0x8
MOV RAX,RBP
POP RBX
POP RBP
POP R12
POP R13
RET
ADD RSP,0x8
XOR EBP,EBP
POP RBX
MOV RAX,RBP
POP RBP
POP R12
POP R13
RET
(translation_unit "long FUN_0012d790(undefined8 param_1,long param_2,long param_3,long param_4)\n\n{\n  long lVar1;\n  long *plVar2;\n  \n  if (param_2 != 0) {\n    lVar1 = FUN_0012b330(0xf,0);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x18);\n      *plVar2 = param_2;\n      plVar2[1] = param_3;\n      plVar2[2] = param_4;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }\n    return lVar1;\n  }\n  return 0;\n}\n\n" (function_definition "long FUN_0012d790(undefined8 param_1,long param_2,long param_3,long param_4)\n\n{\n  long lVar1;\n  long *plVar2;\n  \n  if (param_2 != 0) {\n    lVar1 = FUN_0012b330(0xf,0);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x18);\n      *plVar2 = param_2;\n      plVar2[1] = param_3;\n      plVar2[2] = param_4;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }\n    return lVar1;\n  }\n  return 0;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_0012d790(undefined8 param_1,long param_2,long param_3,long param_4)" identifier (parameter_list "(undefined8 param_1,long param_2,long param_3,long param_4)" ( (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) ))) (compound_statement "{\n  long lVar1;\n  long *plVar2;\n  \n  if (param_2 != 0) {\n    lVar1 = FUN_0012b330(0xf,0);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x18);\n      *plVar2 = param_2;\n      plVar2[1] = param_3;\n      plVar2[2] = param_4;\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(0xf,0);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x18);\n      *plVar2 = param_2;\n      plVar2[1] = param_3;\n      plVar2[2] = param_4;\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(0xf,0);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x18);\n      *plVar2 = param_2;\n      plVar2[1] = param_3;\n      plVar2[2] = param_4;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }\n    return lVar1;\n  }" { (expression_statement "lVar1 = FUN_0012b330(0xf,0);" (assignment_expression "lVar1 = FUN_0012b330(0xf,0)" identifier = (call_expression "FUN_0012b330(0xf,0)" identifier (argument_list "(0xf,0)" ( number_literal , number_literal )))) ;) (if_statement "if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x18);\n      *plVar2 = param_2;\n      plVar2[1] = param_3;\n      plVar2[2] = param_4;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }" if (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      plVar2 = (long *)xmalloc(0x18);\n      *plVar2 = param_2;\n      plVar2[1] = param_3;\n      plVar2[2] = param_4;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }" { (expression_statement "plVar2 = (long *)xmalloc(0x18);" (assignment_expression "plVar2 = (long *)xmalloc(0x18)" identifier = (cast_expression "(long *)xmalloc(0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x18)" identifier (argument_list "(0x18)" ( 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 "*(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_range_type\n          (void *handle,debug_type_conflict type,bfd_signed_vma lower,bfd_signed_vma upper)\n\n{\n  debug_type_s *pdVar1;\n  debug_range_type *pdVar2;\n  debug_handle *info;\n  \n  if (type != (debug_type_conflict)0x0) {\n    pdVar1 = debug_make_type((debug_handle *)0xf,DEBUG_KIND_ILLEGAL,(uint)lower);\n    if (pdVar1 != (debug_type_s *)0x0) {\n      pdVar2 = (debug_range_type *)xmalloc(0x18);\n      pdVar2->type = type;\n      pdVar2->lower = lower;\n      pdVar2->upper = upper;\n      (pdVar1->u).krange = pdVar2;\n    }\n    return pdVar1;\n  }\n  return (debug_type_conflict)0x0;\n}\n\n" (function_definition "debug_type_conflict\ndebug_make_range_type\n          (void *handle,debug_type_conflict type,bfd_signed_vma lower,bfd_signed_vma upper)\n\n{\n  debug_type_s *pdVar1;\n  debug_range_type *pdVar2;\n  debug_handle *info;\n  \n  if (type != (debug_type_conflict)0x0) {\n    pdVar1 = debug_make_type((debug_handle *)0xf,DEBUG_KIND_ILLEGAL,(uint)lower);\n    if (pdVar1 != (debug_type_s *)0x0) {\n      pdVar2 = (debug_range_type *)xmalloc(0x18);\n      pdVar2->type = type;\n      pdVar2->lower = lower;\n      pdVar2->upper = upper;\n      (pdVar1->u).krange = pdVar2;\n    }\n    return pdVar1;\n  }\n  return (debug_type_conflict)0x0;\n}" type_identifier (function_declarator "debug_make_range_type\n          (void *handle,debug_type_conflict type,bfd_signed_vma lower,bfd_signed_vma upper)" identifier (parameter_list "(void *handle,debug_type_conflict type,bfd_signed_vma lower,bfd_signed_vma upper)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) , (parameter_declaration "debug_type_conflict type" type_identifier identifier) , (parameter_declaration "bfd_signed_vma lower" type_identifier identifier) , (parameter_declaration "bfd_signed_vma upper" type_identifier identifier) ))) (compound_statement "{\n  debug_type_s *pdVar1;\n  debug_range_type *pdVar2;\n  debug_handle *info;\n  \n  if (type != (debug_type_conflict)0x0) {\n    pdVar1 = debug_make_type((debug_handle *)0xf,DEBUG_KIND_ILLEGAL,(uint)lower);\n    if (pdVar1 != (debug_type_s *)0x0) {\n      pdVar2 = (debug_range_type *)xmalloc(0x18);\n      pdVar2->type = type;\n      pdVar2->lower = lower;\n      pdVar2->upper = upper;\n      (pdVar1->u).krange = 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_range_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 *)0xf,DEBUG_KIND_ILLEGAL,(uint)lower);\n    if (pdVar1 != (debug_type_s *)0x0) {\n      pdVar2 = (debug_range_type *)xmalloc(0x18);\n      pdVar2->type = type;\n      pdVar2->lower = lower;\n      pdVar2->upper = upper;\n      (pdVar1->u).krange = 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 *)0xf,DEBUG_KIND_ILLEGAL,(uint)lower);\n    if (pdVar1 != (debug_type_s *)0x0) {\n      pdVar2 = (debug_range_type *)xmalloc(0x18);\n      pdVar2->type = type;\n      pdVar2->lower = lower;\n      pdVar2->upper = upper;\n      (pdVar1->u).krange = pdVar2;\n    }\n    return pdVar1;\n  }" { (expression_statement "pdVar1 = debug_make_type((debug_handle *)0xf,DEBUG_KIND_ILLEGAL,(uint)lower);" (assignment_expression "pdVar1 = debug_make_type((debug_handle *)0xf,DEBUG_KIND_ILLEGAL,(uint)lower)" identifier = (call_expression "debug_make_type((debug_handle *)0xf,DEBUG_KIND_ILLEGAL,(uint)lower)" identifier (argument_list "((debug_handle *)0xf,DEBUG_KIND_ILLEGAL,(uint)lower)" ( (cast_expression "(debug_handle *)0xf" ( (type_descriptor "debug_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , identifier , (cast_expression "(uint)lower" ( (type_descriptor "uint" type_identifier) ) identifier) )))) ;) (if_statement "if (pdVar1 != (debug_type_s *)0x0) {\n      pdVar2 = (debug_range_type *)xmalloc(0x18);\n      pdVar2->type = type;\n      pdVar2->lower = lower;\n      pdVar2->upper = upper;\n      (pdVar1->u).krange = 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_range_type *)xmalloc(0x18);\n      pdVar2->type = type;\n      pdVar2->lower = lower;\n      pdVar2->upper = upper;\n      (pdVar1->u).krange = pdVar2;\n    }" { (expression_statement "pdVar2 = (debug_range_type *)xmalloc(0x18);" (assignment_expression "pdVar2 = (debug_range_type *)xmalloc(0x18)" identifier = (cast_expression "(debug_range_type *)xmalloc(0x18)" ( (type_descriptor "debug_range_type *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x18)" identifier (argument_list "(0x18)" ( number_literal ))))) ;) (expression_statement "pdVar2->type = type;" (assignment_expression "pdVar2->type = type" (field_expression "pdVar2->type" identifier -> field_identifier) = identifier) ;) (expression_statement "pdVar2->lower = lower;" (assignment_expression "pdVar2->lower = lower" (field_expression "pdVar2->lower" identifier -> field_identifier) = identifier) ;) (expression_statement "pdVar2->upper = upper;" (assignment_expression "pdVar2->upper = upper" (field_expression "pdVar2->upper" identifier -> field_identifier) = identifier) ;) (expression_statement "(pdVar1->u).krange = pdVar2;" (assignment_expression "(pdVar1->u).krange = pdVar2" (field_expression "(pdVar1->u).krange" (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_0012d790(undefined8 param_1,long param_2,long param_3,long param_4)\n\n{\n  long lVar1;\n  long *plVar2;\n  \n  if (param_2 != 0) {\n    lVar1 = FUN_0012b330(0xf,0);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x18);\n      *plVar2 = param_2;\n      plVar2[1] = param_3;\n      plVar2[2] = param_4;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }\n    return lVar1;\n  }\n  return 0;\n}\n\n" (function_definition "long FUN_0012d790(undefined8 param_1,long param_2,long param_3,long param_4)\n\n{\n  long lVar1;\n  long *plVar2;\n  \n  if (param_2 != 0) {\n    lVar1 = FUN_0012b330(0xf,0);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x18);\n      *plVar2 = param_2;\n      plVar2[1] = param_3;\n      plVar2[2] = param_4;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }\n    return lVar1;\n  }\n  return 0;\n}" (sized_type_specifier "long" long) (function_declarator "FUN_0012d790(undefined8 param_1,long param_2,long param_3,long param_4)" identifier (parameter_list "(undefined8 param_1,long param_2,long param_3,long param_4)" ( (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) ))) (compound_statement "{\n  long lVar1;\n  long *plVar2;\n  \n  if (param_2 != 0) {\n    lVar1 = FUN_0012b330(0xf,0);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x18);\n      *plVar2 = param_2;\n      plVar2[1] = param_3;\n      plVar2[2] = param_4;\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(0xf,0);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x18);\n      *plVar2 = param_2;\n      plVar2[1] = param_3;\n      plVar2[2] = param_4;\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(0xf,0);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x18);\n      *plVar2 = param_2;\n      plVar2[1] = param_3;\n      plVar2[2] = param_4;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }\n    return lVar1;\n  }" { (expression_statement "lVar1 = FUN_0012b330(0xf,0);" (assignment_expression "lVar1 = FUN_0012b330(0xf,0)" identifier = (call_expression "FUN_0012b330(0xf,0)" identifier (argument_list "(0xf,0)" ( number_literal , number_literal )))) ;) (if_statement "if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x18);\n      *plVar2 = param_2;\n      plVar2[1] = param_3;\n      plVar2[2] = param_4;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }" if (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      plVar2 = (long *)xmalloc(0x18);\n      *plVar2 = param_2;\n      plVar2[1] = param_3;\n      plVar2[2] = param_4;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }" { (expression_statement "plVar2 = (long *)xmalloc(0x18);" (assignment_expression "plVar2 = (long *)xmalloc(0x18)" identifier = (cast_expression "(long *)xmalloc(0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x18)" identifier (argument_list "(0x18)" ( 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 "*(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) ))) (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 * 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 (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_0012d790(undefined8 param_1,long param_2,long param_3,long param_4)\n\n{\n  long lVar1;\n  long *plVar2;\n  \n  if (param_2 != 0) {\n    lVar1 = FUN_0012b330(0xf,0);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x18);\n      *plVar2 = param_2;\n      plVar2[1] = param_3;\n      plVar2[2] = param_4;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }\n    return lVar1;\n  }\n  return 0;\n}" (sized_type_specifier "long" (long "long")) (function_declarator "FUN_0012d790(undefined8 param_1,long param_2,long param_3,long param_4)" (identifier "FUN_0012d790") (parameter_list "(undefined8 param_1,long param_2,long param_3,long param_4)" (( "(") (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")) () ")"))) (compound_statement "{\n  long lVar1;\n  long *plVar2;\n  \n  if (param_2 != 0) {\n    lVar1 = FUN_0012b330(0xf,0);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x18);\n      *plVar2 = param_2;\n      plVar2[1] = param_3;\n      plVar2[2] = param_4;\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(0xf,0);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x18);\n      *plVar2 = param_2;\n      plVar2[1] = param_3;\n      plVar2[2] = param_4;\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(0xf,0);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x18);\n      *plVar2 = param_2;\n      plVar2[1] = param_3;\n      plVar2[2] = param_4;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }\n    return lVar1;\n  }" ({ "{") (expression_statement "lVar1 = FUN_0012b330(0xf,0);" (assignment_expression "lVar1 = FUN_0012b330(0xf,0)" (identifier "lVar1") (= "=") (call_expression "FUN_0012b330(0xf,0)" (identifier "FUN_0012b330") (argument_list "(0xf,0)" (( "(") (number_literal "0xf") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x18);\n      *plVar2 = param_2;\n      plVar2[1] = param_3;\n      plVar2[2] = param_4;\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(0x18);\n      *plVar2 = param_2;\n      plVar2[1] = param_3;\n      plVar2[2] = param_4;\n      *(long **)(lVar1 + 0x10) = plVar2;\n    }" ({ "{") (expression_statement "plVar2 = (long *)xmalloc(0x18);" (assignment_expression "plVar2 = (long *)xmalloc(0x18)" (identifier "plVar2") (= "=") (cast_expression "(long *)xmalloc(0x18)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0x18)" (identifier "xmalloc") (argument_list "(0x18)" (( "(") (number_literal "0x18") () ")"))))) (; ";")) (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 "*(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 lower,type_2 upper)

{
  type_3 *var_3;
  type_4 *pdVar2;
  type_5 *info;
  
  if (var_1 != (type_1)0x0) {
    var_3 = var_2((type_5 *)0xf,DEBUG_KIND_ILLEGAL,(type_6)lower);
    if (var_3 != (type_3 *)0x0) {
      pdVar2 = (type_4 *)var_4(0x18);
      pdVar2->var_1 = var_1;
      pdVar2->lower = lower;
      pdVar2->upper = upper;
      (var_3->u).krange = 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)))) 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: (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: (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)

{
  long lVar1;
  long *plVar2;
  
  if (param_2 != 0) {
    lVar1 = FUN_0012b330(0xf,0);
    if (lVar1 != 0) {
      plVar2 = (long *)xmalloc(0x18);
      *plVar2 = param_2;
      plVar2[1] = param_3;
      plVar2[2] = param_4;
      *(long **)(lVar1 + 0x10) = plVar2;
    }
    return lVar1;
  }
  return 0;
}

