
bfd_boolean debug_record_int_const(void *handle,char *name,bfd_vma val)

{
  debug_name *pdVar1;
  debug_object_linkage in_ECX;
  debug_handle *info;
  
  if (name == (char *)0x0) {
    return 0;
  }
  pdVar1 = debug_add_to_current_namespace
                     ((debug_handle *)handle,name,DEBUG_OBJECT_INT_CONSTANT,in_ECX);
  if (pdVar1 != (debug_name *)0x0) {
    (pdVar1->u).int_constant = val;
    return 1;
  }
  return 0;
}



undefined8 FUN_0010f220(undefined8 param_1,long param_2,undefined8 param_3)

{
  long lVar1;
  
  if (param_2 == 0) {
    return 0;
  }
  lVar1 = FUN_0010ea30(param_1,param_2,4);
  if (lVar1 != 0) {
    *(undefined8 *)(lVar1 + 0x20) = param_3;
    return 1;
  }
  return 0;
}


TEST RSI,RSI
JZ 0x0010f250
PUSH RBX
MOV RBX,RDX
MOV EDX,0x4
CALL 0x0010ea30
TEST RAX,RAX
JZ 0x0010f248
MOV qword ptr [RAX + 0x20],RBX
MOV EAX,0x1
POP RBX
RET
XOR EAX,EAX
POP RBX
RET
XOR EAX,EAX
RET
(translation_unit "undefined8 FUN_0010f220(undefined8 param_1,long param_2,undefined8 param_3)\n\n{\n  long lVar1;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  lVar1 = FUN_0010ea30(param_1,param_2,4);\n  if (lVar1 != 0) {\n    *(undefined8 *)(lVar1 + 0x20) = param_3;\n    return 1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined8 FUN_0010f220(undefined8 param_1,long param_2,undefined8 param_3)\n\n{\n  long lVar1;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  lVar1 = FUN_0010ea30(param_1,param_2,4);\n  if (lVar1 != 0) {\n    *(undefined8 *)(lVar1 + 0x20) = param_3;\n    return 1;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0010f220(undefined8 param_1,long param_2,undefined8 param_3)" identifier (parameter_list "(undefined8 param_1,long param_2,undefined8 param_3)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  lVar1 = FUN_0010ea30(param_1,param_2,4);\n  if (lVar1 != 0) {\n    *(undefined8 *)(lVar1 + 0x20) = param_3;\n    return 1;\n  }\n  return 0;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (if_statement "if (param_2 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "lVar1 = FUN_0010ea30(param_1,param_2,4);" (assignment_expression "lVar1 = FUN_0010ea30(param_1,param_2,4)" identifier = (call_expression "FUN_0010ea30(param_1,param_2,4)" identifier (argument_list "(param_1,param_2,4)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (lVar1 != 0) {\n    *(undefined8 *)(lVar1 + 0x20) = param_3;\n    return 1;\n  }" if (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    *(undefined8 *)(lVar1 + 0x20) = param_3;\n    return 1;\n  }" { (expression_statement "*(undefined8 *)(lVar1 + 0x20) = param_3;" (assignment_expression "*(undefined8 *)(lVar1 + 0x20) = param_3" (pointer_expression "*(undefined8 *)(lVar1 + 0x20)" * (cast_expression "(undefined8 *)(lVar1 + 0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x20)" ( (binary_expression "lVar1 + 0x20" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "bfd_boolean debug_record_int_const(void *handle,char *name,bfd_vma val)\n\n{\n  debug_name *pdVar1;\n  debug_object_linkage in_ECX;\n  debug_handle *info;\n  \n  if (name == (char *)0x0) {\n    return 0;\n  }\n  pdVar1 = debug_add_to_current_namespace\n                     ((debug_handle *)handle,name,DEBUG_OBJECT_INT_CONSTANT,in_ECX);\n  if (pdVar1 != (debug_name *)0x0) {\n    (pdVar1->u).int_constant = val;\n    return 1;\n  }\n  return 0;\n}\n\n" (function_definition "bfd_boolean debug_record_int_const(void *handle,char *name,bfd_vma val)\n\n{\n  debug_name *pdVar1;\n  debug_object_linkage in_ECX;\n  debug_handle *info;\n  \n  if (name == (char *)0x0) {\n    return 0;\n  }\n  pdVar1 = debug_add_to_current_namespace\n                     ((debug_handle *)handle,name,DEBUG_OBJECT_INT_CONSTANT,in_ECX);\n  if (pdVar1 != (debug_name *)0x0) {\n    (pdVar1->u).int_constant = val;\n    return 1;\n  }\n  return 0;\n}" type_identifier (function_declarator "debug_record_int_const(void *handle,char *name,bfd_vma val)" identifier (parameter_list "(void *handle,char *name,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 "bfd_vma val" type_identifier identifier) ))) (compound_statement "{\n  debug_name *pdVar1;\n  debug_object_linkage in_ECX;\n  debug_handle *info;\n  \n  if (name == (char *)0x0) {\n    return 0;\n  }\n  pdVar1 = debug_add_to_current_namespace\n                     ((debug_handle *)handle,name,DEBUG_OBJECT_INT_CONSTANT,in_ECX);\n  if (pdVar1 != (debug_name *)0x0) {\n    (pdVar1->u).int_constant = val;\n    return 1;\n  }\n  return 0;\n}" { (declaration "debug_name *pdVar1;" type_identifier (pointer_declarator "*pdVar1" * identifier) ;) (declaration "debug_object_linkage in_ECX;" type_identifier identifier ;) (declaration "debug_handle *info;" type_identifier (pointer_declarator "*info" * identifier) ;) (if_statement "if (name == (char *)0x0) {\n    return 0;\n  }" if (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)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "pdVar1 = debug_add_to_current_namespace\n                     ((debug_handle *)handle,name,DEBUG_OBJECT_INT_CONSTANT,in_ECX);" (assignment_expression "pdVar1 = debug_add_to_current_namespace\n                     ((debug_handle *)handle,name,DEBUG_OBJECT_INT_CONSTANT,in_ECX)" identifier = (call_expression "debug_add_to_current_namespace\n                     ((debug_handle *)handle,name,DEBUG_OBJECT_INT_CONSTANT,in_ECX)" identifier (argument_list "((debug_handle *)handle,name,DEBUG_OBJECT_INT_CONSTANT,in_ECX)" ( (cast_expression "(debug_handle *)handle" ( (type_descriptor "debug_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier , identifier )))) ;) (if_statement "if (pdVar1 != (debug_name *)0x0) {\n    (pdVar1->u).int_constant = val;\n    return 1;\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    (pdVar1->u).int_constant = val;\n    return 1;\n  }" { (expression_statement "(pdVar1->u).int_constant = val;" (assignment_expression "(pdVar1->u).int_constant = val" (field_expression "(pdVar1->u).int_constant" (parenthesized_expression "(pdVar1->u)" ( (field_expression "pdVar1->u" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined8 FUN_0010f220(undefined8 param_1,long param_2,undefined8 param_3)\n\n{\n  long lVar1;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  lVar1 = FUN_0010ea30(param_1,param_2,4);\n  if (lVar1 != 0) {\n    *(undefined8 *)(lVar1 + 0x20) = param_3;\n    return 1;\n  }\n  return 0;\n}\n\n" (function_definition "undefined8 FUN_0010f220(undefined8 param_1,long param_2,undefined8 param_3)\n\n{\n  long lVar1;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  lVar1 = FUN_0010ea30(param_1,param_2,4);\n  if (lVar1 != 0) {\n    *(undefined8 *)(lVar1 + 0x20) = param_3;\n    return 1;\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0010f220(undefined8 param_1,long param_2,undefined8 param_3)" identifier (parameter_list "(undefined8 param_1,long param_2,undefined8 param_3)" ( (parameter_declaration "undefined8 param_1" type_identifier identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined8 param_3" type_identifier identifier) ))) (compound_statement "{\n  long lVar1;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  lVar1 = FUN_0010ea30(param_1,param_2,4);\n  if (lVar1 != 0) {\n    *(undefined8 *)(lVar1 + 0x20) = param_3;\n    return 1;\n  }\n  return 0;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (if_statement "if (param_2 == 0) {\n    return 0;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "lVar1 = FUN_0010ea30(param_1,param_2,4);" (assignment_expression "lVar1 = FUN_0010ea30(param_1,param_2,4)" identifier = (call_expression "FUN_0010ea30(param_1,param_2,4)" identifier (argument_list "(param_1,param_2,4)" ( identifier , identifier , number_literal )))) ;) (if_statement "if (lVar1 != 0) {\n    *(undefined8 *)(lVar1 + 0x20) = param_3;\n    return 1;\n  }" if (parenthesized_expression "(lVar1 != 0)" ( (binary_expression "lVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    *(undefined8 *)(lVar1 + 0x20) = param_3;\n    return 1;\n  }" { (expression_statement "*(undefined8 *)(lVar1 + 0x20) = param_3;" (assignment_expression "*(undefined8 *)(lVar1 + 0x20) = param_3" (pointer_expression "*(undefined8 *)(lVar1 + 0x20)" * (cast_expression "(undefined8 *)(lVar1 + 0x20)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x20)" ( (binary_expression "lVar1 + 0x20" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (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 ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return LIT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined8 FUN_0010f220(undefined8 param_1,long param_2,undefined8 param_3)\n\n{\n  long lVar1;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  lVar1 = FUN_0010ea30(param_1,param_2,4);\n  if (lVar1 != 0) {\n    *(undefined8 *)(lVar1 + 0x20) = param_3;\n    return 1;\n  }\n  return 0;\n}" (type_identifier "undefined8") (function_declarator "FUN_0010f220(undefined8 param_1,long param_2,undefined8 param_3)" (identifier "FUN_0010f220") (parameter_list "(undefined8 param_1,long param_2,undefined8 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 "undefined8 param_3" (type_identifier "undefined8") (identifier "param_3")) () ")"))) (compound_statement "{\n  long lVar1;\n  \n  if (param_2 == 0) {\n    return 0;\n  }\n  lVar1 = FUN_0010ea30(param_1,param_2,4);\n  if (lVar1 != 0) {\n    *(undefined8 *)(lVar1 + 0x20) = param_3;\n    return 1;\n  }\n  return 0;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (if_statement "if (param_2 == 0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "lVar1 = FUN_0010ea30(param_1,param_2,4);" (assignment_expression "lVar1 = FUN_0010ea30(param_1,param_2,4)" (identifier "lVar1") (= "=") (call_expression "FUN_0010ea30(param_1,param_2,4)" (identifier "FUN_0010ea30") (argument_list "(param_1,param_2,4)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (number_literal "4") () ")")))) (; ";")) (if_statement "if (lVar1 != 0) {\n    *(undefined8 *)(lVar1 + 0x20) = param_3;\n    return 1;\n  }" (if "if") (parenthesized_expression "(lVar1 != 0)" (( "(") (binary_expression "lVar1 != 0" (identifier "lVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *(undefined8 *)(lVar1 + 0x20) = param_3;\n    return 1;\n  }" ({ "{") (expression_statement "*(undefined8 *)(lVar1 + 0x20) = param_3;" (assignment_expression "*(undefined8 *)(lVar1 + 0x20) = param_3" (pointer_expression "*(undefined8 *)(lVar1 + 0x20)" (* "*") (cast_expression "(undefined8 *)(lVar1 + 0x20)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x20)" (( "(") (binary_expression "lVar1 + 0x20" (identifier "lVar1") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

{
  type_3 *var_3;
  type_4 in_ECX;
  type_5 *info;
  
  if (var_1 == (char *)0x0) {
    return 0;
  }
  var_3 = var_2
                     ((type_5 *)handle,var_1,DEBUG_OBJECT_INT_CONSTANT,in_ECX);
  if (var_3 != (type_3 *)0x0) {
    (var_3->u).int_constant = val;
    return 1;
  }
  return 0;
}


(translation_unit (function_definition type: (type_identifier) 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)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (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: (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))) (return_statement (number_literal)))) (return_statement (number_literal)))))

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

{
  long lVar1;
  
  if (param_2 == 0) {
    return 0;
  }
  lVar1 = FUN_0010ea30(param_1,param_2,4);
  if (lVar1 != 0) {
    *(undefined8 *)(lVar1 + 0x20) = param_3;
    return 1;
  }
  return 0;
}

