
bfd_boolean debug_record_typed_const(void *handle,char *name,debug_type_conflict type,bfd_vma val)

{
  debug_name *pdVar1;
  debug_typed_constant *pdVar2;
  debug_handle *info;
  
  if ((name != (char *)0x0) && (type != (debug_type_conflict)0x0)) {
    pdVar1 = debug_add_to_current_namespace
                       ((debug_handle *)handle,name,DEBUG_OBJECT_TYPED_CONSTANT,
                        (debug_object_linkage)val);
    if (pdVar1 != (debug_name *)0x0) {
      pdVar2 = (debug_typed_constant *)xmalloc(0x10);
      pdVar2->type = type;
      pdVar2->val = val;
      (pdVar1->u).typed_constant = pdVar2;
    }
    return (uint)(pdVar1 != (debug_name *)0x0);
  }
  return 0;
}



bool FUN_0010f2b0(undefined8 param_1,long param_2,long param_3,long param_4)

{
  long lVar1;
  long *plVar2;
  
  if ((param_2 != 0) && (param_3 != 0)) {
    lVar1 = FUN_0010ea30(param_1,param_2,6);
    if (lVar1 != 0) {
      plVar2 = (long *)xmalloc(0x10);
      *plVar2 = param_3;
      plVar2[1] = param_4;
      *(long **)(lVar1 + 0x20) = plVar2;
    }
    return lVar1 != 0;
  }
  return false;
}


TEST RSI,RSI
JZ 0x0010f300
TEST RDX,RDX
JZ 0x0010f300
PUSH R12
PUSH RBP
MOV RBP,RDX
MOV EDX,0x6
PUSH RBX
MOV RBX,RCX
CALL 0x0010ea30
MOV R12,RAX
XOR EAX,EAX
TEST R12,R12
JZ 0x0010f2f3
MOV EDI,0x10
CALL 0x00104370
MOV qword ptr [RAX],RBP
MOV qword ptr [RAX + 0x8],RBX
MOV qword ptr [R12 + 0x20],RAX
MOV EAX,0x1
POP RBX
POP RBP
POP R12
RET
XOR EAX,EAX
RET
(translation_unit "bool FUN_0010f2b0(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) && (param_3 != 0)) {\n    lVar1 = FUN_0010ea30(param_1,param_2,6);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x10);\n      *plVar2 = param_3;\n      plVar2[1] = param_4;\n      *(long **)(lVar1 + 0x20) = plVar2;\n    }\n    return lVar1 != 0;\n  }\n  return false;\n}\n\n" (function_definition "bool FUN_0010f2b0(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) && (param_3 != 0)) {\n    lVar1 = FUN_0010ea30(param_1,param_2,6);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x10);\n      *plVar2 = param_3;\n      plVar2[1] = param_4;\n      *(long **)(lVar1 + 0x20) = plVar2;\n    }\n    return lVar1 != 0;\n  }\n  return false;\n}" primitive_type (function_declarator "FUN_0010f2b0(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) && (param_3 != 0)) {\n    lVar1 = FUN_0010ea30(param_1,param_2,6);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x10);\n      *plVar2 = param_3;\n      plVar2[1] = param_4;\n      *(long **)(lVar1 + 0x20) = plVar2;\n    }\n    return lVar1 != 0;\n  }\n  return false;\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) && (param_3 != 0)) {\n    lVar1 = FUN_0010ea30(param_1,param_2,6);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x10);\n      *plVar2 = param_3;\n      plVar2[1] = param_4;\n      *(long **)(lVar1 + 0x20) = plVar2;\n    }\n    return lVar1 != 0;\n  }" if (parenthesized_expression "((param_2 != 0) && (param_3 != 0))" ( (binary_expression "(param_2 != 0) && (param_3 != 0)" (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    lVar1 = FUN_0010ea30(param_1,param_2,6);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x10);\n      *plVar2 = param_3;\n      plVar2[1] = param_4;\n      *(long **)(lVar1 + 0x20) = plVar2;\n    }\n    return lVar1 != 0;\n  }" { (expression_statement "lVar1 = FUN_0010ea30(param_1,param_2,6);" (assignment_expression "lVar1 = FUN_0010ea30(param_1,param_2,6)" identifier = (call_expression "FUN_0010ea30(param_1,param_2,6)" identifier (argument_list "(param_1,param_2,6)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x10);\n      *plVar2 = param_3;\n      plVar2[1] = param_4;\n      *(long **)(lVar1 + 0x20) = plVar2;\n    }" if (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      plVar2 = (long *)xmalloc(0x10);\n      *plVar2 = param_3;\n      plVar2[1] = param_4;\n      *(long **)(lVar1 + 0x20) = 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 "*plVar2 = param_3;" (assignment_expression "*plVar2 = param_3" (pointer_expression "*plVar2" * identifier) = identifier) ;) (expression_statement "plVar2[1] = param_4;" (assignment_expression "plVar2[1] = param_4" (subscript_expression "plVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(long **)(lVar1 + 0x20) = plVar2;" (assignment_expression "*(long **)(lVar1 + 0x20) = plVar2" (pointer_expression "*(long **)(lVar1 + 0x20)" * (cast_expression "(long **)(lVar1 + 0x20)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar1 + 0x20)" ( (binary_expression "lVar1 + 0x20" identifier + number_literal) )))) = identifier) ;) })) (return_statement "return lVar1 != 0;" return (binary_expression "lVar1 != 0" identifier != number_literal) ;) })) (return_statement "return false;" return false ;) })))
(translation_unit "bfd_boolean debug_record_typed_const(void *handle,char *name,debug_type_conflict type,bfd_vma val)\n\n{\n  debug_name *pdVar1;\n  debug_typed_constant *pdVar2;\n  debug_handle *info;\n  \n  if ((name != (char *)0x0) && (type != (debug_type_conflict)0x0)) {\n    pdVar1 = debug_add_to_current_namespace\n                       ((debug_handle *)handle,name,DEBUG_OBJECT_TYPED_CONSTANT,\n                        (debug_object_linkage)val);\n    if (pdVar1 != (debug_name *)0x0) {\n      pdVar2 = (debug_typed_constant *)xmalloc(0x10);\n      pdVar2->type = type;\n      pdVar2->val = val;\n      (pdVar1->u).typed_constant = pdVar2;\n    }\n    return (uint)(pdVar1 != (debug_name *)0x0);\n  }\n  return 0;\n}\n\n" (function_definition "bfd_boolean debug_record_typed_const(void *handle,char *name,debug_type_conflict type,bfd_vma val)\n\n{\n  debug_name *pdVar1;\n  debug_typed_constant *pdVar2;\n  debug_handle *info;\n  \n  if ((name != (char *)0x0) && (type != (debug_type_conflict)0x0)) {\n    pdVar1 = debug_add_to_current_namespace\n                       ((debug_handle *)handle,name,DEBUG_OBJECT_TYPED_CONSTANT,\n                        (debug_object_linkage)val);\n    if (pdVar1 != (debug_name *)0x0) {\n      pdVar2 = (debug_typed_constant *)xmalloc(0x10);\n      pdVar2->type = type;\n      pdVar2->val = val;\n      (pdVar1->u).typed_constant = pdVar2;\n    }\n    return (uint)(pdVar1 != (debug_name *)0x0);\n  }\n  return 0;\n}" type_identifier (function_declarator "debug_record_typed_const(void *handle,char *name,debug_type_conflict type,bfd_vma val)" identifier (parameter_list "(void *handle,char *name,debug_type_conflict type,bfd_vma val)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) , (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "debug_type_conflict type" type_identifier identifier) , (parameter_declaration "bfd_vma val" type_identifier identifier) ))) (compound_statement "{\n  debug_name *pdVar1;\n  debug_typed_constant *pdVar2;\n  debug_handle *info;\n  \n  if ((name != (char *)0x0) && (type != (debug_type_conflict)0x0)) {\n    pdVar1 = debug_add_to_current_namespace\n                       ((debug_handle *)handle,name,DEBUG_OBJECT_TYPED_CONSTANT,\n                        (debug_object_linkage)val);\n    if (pdVar1 != (debug_name *)0x0) {\n      pdVar2 = (debug_typed_constant *)xmalloc(0x10);\n      pdVar2->type = type;\n      pdVar2->val = val;\n      (pdVar1->u).typed_constant = pdVar2;\n    }\n    return (uint)(pdVar1 != (debug_name *)0x0);\n  }\n  return 0;\n}" { (declaration "debug_name *pdVar1;" type_identifier (pointer_declarator "*pdVar1" * identifier) ;) (declaration "debug_typed_constant *pdVar2;" type_identifier (pointer_declarator "*pdVar2" * identifier) ;) (declaration "debug_handle *info;" type_identifier (pointer_declarator "*info" * identifier) ;) (if_statement "if ((name != (char *)0x0) && (type != (debug_type_conflict)0x0)) {\n    pdVar1 = debug_add_to_current_namespace\n                       ((debug_handle *)handle,name,DEBUG_OBJECT_TYPED_CONSTANT,\n                        (debug_object_linkage)val);\n    if (pdVar1 != (debug_name *)0x0) {\n      pdVar2 = (debug_typed_constant *)xmalloc(0x10);\n      pdVar2->type = type;\n      pdVar2->val = val;\n      (pdVar1->u).typed_constant = pdVar2;\n    }\n    return (uint)(pdVar1 != (debug_name *)0x0);\n  }" if (parenthesized_expression "((name != (char *)0x0) && (type != (debug_type_conflict)0x0))" ( (binary_expression "(name != (char *)0x0) && (type != (debug_type_conflict)0x0)" (parenthesized_expression "(name != (char *)0x0)" ( (binary_expression "name != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (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_add_to_current_namespace\n                       ((debug_handle *)handle,name,DEBUG_OBJECT_TYPED_CONSTANT,\n                        (debug_object_linkage)val);\n    if (pdVar1 != (debug_name *)0x0) {\n      pdVar2 = (debug_typed_constant *)xmalloc(0x10);\n      pdVar2->type = type;\n      pdVar2->val = val;\n      (pdVar1->u).typed_constant = pdVar2;\n    }\n    return (uint)(pdVar1 != (debug_name *)0x0);\n  }" { (expression_statement "pdVar1 = debug_add_to_current_namespace\n                       ((debug_handle *)handle,name,DEBUG_OBJECT_TYPED_CONSTANT,\n                        (debug_object_linkage)val);" (assignment_expression "pdVar1 = debug_add_to_current_namespace\n                       ((debug_handle *)handle,name,DEBUG_OBJECT_TYPED_CONSTANT,\n                        (debug_object_linkage)val)" identifier = (call_expression "debug_add_to_current_namespace\n                       ((debug_handle *)handle,name,DEBUG_OBJECT_TYPED_CONSTANT,\n                        (debug_object_linkage)val)" identifier (argument_list "((debug_handle *)handle,name,DEBUG_OBJECT_TYPED_CONSTANT,\n                        (debug_object_linkage)val)" ( (cast_expression "(debug_handle *)handle" ( (type_descriptor "debug_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier , (cast_expression "(debug_object_linkage)val" ( (type_descriptor "debug_object_linkage" type_identifier) ) identifier) )))) ;) (if_statement "if (pdVar1 != (debug_name *)0x0) {\n      pdVar2 = (debug_typed_constant *)xmalloc(0x10);\n      pdVar2->type = type;\n      pdVar2->val = val;\n      (pdVar1->u).typed_constant = pdVar2;\n    }" if (parenthesized_expression "(pdVar1 != (debug_name *)0x0)" ( (binary_expression "pdVar1 != (debug_name *)0x0" identifier != (cast_expression "(debug_name *)0x0" ( (type_descriptor "debug_name *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pdVar2 = (debug_typed_constant *)xmalloc(0x10);\n      pdVar2->type = type;\n      pdVar2->val = val;\n      (pdVar1->u).typed_constant = pdVar2;\n    }" { (expression_statement "pdVar2 = (debug_typed_constant *)xmalloc(0x10);" (assignment_expression "pdVar2 = (debug_typed_constant *)xmalloc(0x10)" identifier = (cast_expression "(debug_typed_constant *)xmalloc(0x10)" ( (type_descriptor "debug_typed_constant *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) (expression_statement "pdVar2->type = type;" (assignment_expression "pdVar2->type = type" (field_expression "pdVar2->type" identifier -> field_identifier) = identifier) ;) (expression_statement "pdVar2->val = val;" (assignment_expression "pdVar2->val = val" (field_expression "pdVar2->val" identifier -> field_identifier) = identifier) ;) (expression_statement "(pdVar1->u).typed_constant = pdVar2;" (assignment_expression "(pdVar1->u).typed_constant = pdVar2" (field_expression "(pdVar1->u).typed_constant" (parenthesized_expression "(pdVar1->u)" ( (field_expression "pdVar1->u" identifier -> field_identifier) )) . field_identifier) = identifier) ;) })) (return_statement "return (uint)(pdVar1 != (debug_name *)0x0);" return (call_expression "(uint)(pdVar1 != (debug_name *)0x0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pdVar1 != (debug_name *)0x0)" ( (binary_expression "pdVar1 != (debug_name *)0x0" identifier != (cast_expression "(debug_name *)0x0" ( (type_descriptor "debug_name *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "bool FUN_0010f2b0(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) && (param_3 != 0)) {\n    lVar1 = FUN_0010ea30(param_1,param_2,6);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x10);\n      *plVar2 = param_3;\n      plVar2[1] = param_4;\n      *(long **)(lVar1 + 0x20) = plVar2;\n    }\n    return lVar1 != 0;\n  }\n  return false;\n}\n\n" (function_definition "bool FUN_0010f2b0(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) && (param_3 != 0)) {\n    lVar1 = FUN_0010ea30(param_1,param_2,6);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x10);\n      *plVar2 = param_3;\n      plVar2[1] = param_4;\n      *(long **)(lVar1 + 0x20) = plVar2;\n    }\n    return lVar1 != 0;\n  }\n  return false;\n}" primitive_type (function_declarator "FUN_0010f2b0(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) && (param_3 != 0)) {\n    lVar1 = FUN_0010ea30(param_1,param_2,6);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x10);\n      *plVar2 = param_3;\n      plVar2[1] = param_4;\n      *(long **)(lVar1 + 0x20) = plVar2;\n    }\n    return lVar1 != 0;\n  }\n  return false;\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) && (param_3 != 0)) {\n    lVar1 = FUN_0010ea30(param_1,param_2,6);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x10);\n      *plVar2 = param_3;\n      plVar2[1] = param_4;\n      *(long **)(lVar1 + 0x20) = plVar2;\n    }\n    return lVar1 != 0;\n  }" if (parenthesized_expression "((param_2 != 0) && (param_3 != 0))" ( (binary_expression "(param_2 != 0) && (param_3 != 0)" (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    lVar1 = FUN_0010ea30(param_1,param_2,6);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x10);\n      *plVar2 = param_3;\n      plVar2[1] = param_4;\n      *(long **)(lVar1 + 0x20) = plVar2;\n    }\n    return lVar1 != 0;\n  }" { (expression_statement "lVar1 = FUN_0010ea30(param_1,param_2,6);" (assignment_expression "lVar1 = FUN_0010ea30(param_1,param_2,6)" identifier = (call_expression "FUN_0010ea30(param_1,param_2,6)" identifier (argument_list "(param_1,param_2,6)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x10);\n      *plVar2 = param_3;\n      plVar2[1] = param_4;\n      *(long **)(lVar1 + 0x20) = plVar2;\n    }" if (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      plVar2 = (long *)xmalloc(0x10);\n      *plVar2 = param_3;\n      plVar2[1] = param_4;\n      *(long **)(lVar1 + 0x20) = 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 "*plVar2 = param_3;" (assignment_expression "*plVar2 = param_3" (pointer_expression "*plVar2" * identifier) = identifier) ;) (expression_statement "plVar2[1] = param_4;" (assignment_expression "plVar2[1] = param_4" (subscript_expression "plVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(long **)(lVar1 + 0x20) = plVar2;" (assignment_expression "*(long **)(lVar1 + 0x20) = plVar2" (pointer_expression "*(long **)(lVar1 + 0x20)" * (cast_expression "(long **)(lVar1 + 0x20)" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(lVar1 + 0x20)" ( (binary_expression "lVar1 + 0x20" identifier + number_literal) )))) = identifier) ;) })) (return_statement "return lVar1 != 0;" return (binary_expression "lVar1 != 0" identifier != number_literal) ;) })) (return_statement "return false;" return false ;) })))
(translation_unit (function_definition TYPE (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 (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , 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 (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 (binary_expression IDENT != LIT) ;) })) (return_statement return BOOL ;) })))
(function_definition "bool FUN_0010f2b0(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) && (param_3 != 0)) {\n    lVar1 = FUN_0010ea30(param_1,param_2,6);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x10);\n      *plVar2 = param_3;\n      plVar2[1] = param_4;\n      *(long **)(lVar1 + 0x20) = plVar2;\n    }\n    return lVar1 != 0;\n  }\n  return false;\n}" (primitive_type "bool") (function_declarator "FUN_0010f2b0(undefined8 param_1,long param_2,long param_3,long param_4)" (identifier "FUN_0010f2b0") (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) && (param_3 != 0)) {\n    lVar1 = FUN_0010ea30(param_1,param_2,6);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x10);\n      *plVar2 = param_3;\n      plVar2[1] = param_4;\n      *(long **)(lVar1 + 0x20) = plVar2;\n    }\n    return lVar1 != 0;\n  }\n  return false;\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) && (param_3 != 0)) {\n    lVar1 = FUN_0010ea30(param_1,param_2,6);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x10);\n      *plVar2 = param_3;\n      plVar2[1] = param_4;\n      *(long **)(lVar1 + 0x20) = plVar2;\n    }\n    return lVar1 != 0;\n  }" (if "if") (parenthesized_expression "((param_2 != 0) && (param_3 != 0))" (( "(") (binary_expression "(param_2 != 0) && (param_3 != 0)" (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    lVar1 = FUN_0010ea30(param_1,param_2,6);\n    if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x10);\n      *plVar2 = param_3;\n      plVar2[1] = param_4;\n      *(long **)(lVar1 + 0x20) = plVar2;\n    }\n    return lVar1 != 0;\n  }" ({ "{") (expression_statement "lVar1 = FUN_0010ea30(param_1,param_2,6);" (assignment_expression "lVar1 = FUN_0010ea30(param_1,param_2,6)" (identifier "lVar1") (= "=") (call_expression "FUN_0010ea30(param_1,param_2,6)" (identifier "FUN_0010ea30") (argument_list "(param_1,param_2,6)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (number_literal "6") () ")")))) (; ";")) (if_statement "if (lVar1 != 0) {\n      plVar2 = (long *)xmalloc(0x10);\n      *plVar2 = param_3;\n      plVar2[1] = param_4;\n      *(long **)(lVar1 + 0x20) = 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      *plVar2 = param_3;\n      plVar2[1] = param_4;\n      *(long **)(lVar1 + 0x20) = 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 "*plVar2 = param_3;" (assignment_expression "*plVar2 = param_3" (pointer_expression "*plVar2" (* "*") (identifier "plVar2")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "plVar2[1] = param_4;" (assignment_expression "plVar2[1] = param_4" (subscript_expression "plVar2[1]" (identifier "plVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "*(long **)(lVar1 + 0x20) = plVar2;" (assignment_expression "*(long **)(lVar1 + 0x20) = plVar2" (pointer_expression "*(long **)(lVar1 + 0x20)" (* "*") (cast_expression "(long **)(lVar1 + 0x20)" (( "(") (type_descriptor "long **" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(lVar1 + 0x20)" (( "(") (binary_expression "lVar1 + 0x20" (identifier "lVar1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "plVar2")) (; ";")) (} "}"))) (return_statement "return lVar1 != 0;" (return "return") (binary_expression "lVar1 != 0" (identifier "lVar1") (!= "!=") (number_literal "0")) (; ";")) (} "}"))) (return_statement "return false;" (return "return") (false "false") (; ";")) (} "}")))

type_1 function_1(void *handle,char *var_1,type_2 var_2,type_3 val)

{
  type_4 *var_4;
  type_5 *pdVar2;
  type_6 *info;
  
  if ((var_1 != (char *)0x0) && (var_2 != (type_2)0x0)) {
    var_4 = var_3
                       ((type_6 *)handle,var_1,DEBUG_OBJECT_TYPED_CONSTANT,
                        (type_7)val);
    if (var_4 != (type_4 *)0x0) {
      pdVar2 = (type_5 *)var_5(0x10);
      pdVar2->var_2 = var_2;
      pdVar2->val = val;
      (var_4->u).typed_constant = pdVar2;
    }
    return (uint)(var_4 != (type_4 *)0x0);
  }
  return 0;
}


(translation_unit (function_definition type: (primitive_type) 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: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (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 (identifier) (identifier) (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: (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 (binary_expression left: (identifier) right: (number_literal))))) (return_statement (false)))))

bool MASKED(undefined8 param_1,long param_2,long param_3,long param_4)

{
  long lVar1;
  long *plVar2;
  
  if ((param_2 != 0) && (param_3 != 0)) {
    lVar1 = FUN_0010ea30(param_1,param_2,6);
    if (lVar1 != 0) {
      plVar2 = (long *)xmalloc(0x10);
      *plVar2 = param_3;
      plVar2[1] = param_4;
      *(long **)(lVar1 + 0x20) = plVar2;
    }
    return lVar1 != 0;
  }
  return false;
}

