
/* WARNING: Unknown calling convention */

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

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



undefined4 FUN_0003dbe0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)

{
  int iVar1;
  
  if (param_2 != 0) {
    iVar1 = FUN_0003d310();
    if (iVar1 != 0) {
      *(undefined4 *)(iVar1 + 0x14) = param_3;
      *(undefined4 *)(iVar1 + 0x18) = param_4;
      return 1;
    }
  }
  return 0;
}


PUSH EDI
PUSH ESI
SUB ESP,0x4
MOV EDX,dword ptr [ESP + 0x14]
MOV ESI,dword ptr [ESP + 0x18]
MOV EDI,dword ptr [ESP + 0x1c]
TEST EDX,EDX
JZ 0x0003dc20
MOV EAX,dword ptr [ESP + 0x10]
MOV ECX,0x4
CALL 0x0003d310
TEST EAX,EAX
JZ 0x0003dc20
MOV dword ptr [EAX + 0x14],ESI
MOV dword ptr [EAX + 0x18],EDI
ADD ESP,0x4
MOV EAX,0x1
POP ESI
POP EDI
RET
ADD ESP,0x4
XOR EAX,EAX
POP ESI
POP EDI
RET
(translation_unit "undefined4 FUN_0003dbe0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  \n  if (param_2 != 0) {\n    iVar1 = FUN_0003d310();\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar1 + 0x14) = param_3;\n      *(undefined4 *)(iVar1 + 0x18) = param_4;\n      return 1;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_0003dbe0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  \n  if (param_2 != 0) {\n    iVar1 = FUN_0003d310();\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar1 + 0x14) = param_3;\n      *(undefined4 *)(iVar1 + 0x18) = param_4;\n      return 1;\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0003dbe0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (param_2 != 0) {\n    iVar1 = FUN_0003d310();\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar1 + 0x14) = param_3;\n      *(undefined4 *)(iVar1 + 0x18) = param_4;\n      return 1;\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_2 != 0) {\n    iVar1 = FUN_0003d310();\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar1 + 0x14) = param_3;\n      *(undefined4 *)(iVar1 + 0x18) = param_4;\n      return 1;\n    }\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = FUN_0003d310();\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar1 + 0x14) = param_3;\n      *(undefined4 *)(iVar1 + 0x18) = param_4;\n      return 1;\n    }\n  }" { (expression_statement "iVar1 = FUN_0003d310();" (assignment_expression "iVar1 = FUN_0003d310()" identifier = (call_expression "FUN_0003d310()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0) {\n      *(undefined4 *)(iVar1 + 0x14) = param_3;\n      *(undefined4 *)(iVar1 + 0x18) = param_4;\n      return 1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      *(undefined4 *)(iVar1 + 0x14) = param_3;\n      *(undefined4 *)(iVar1 + 0x18) = param_4;\n      return 1;\n    }" { (expression_statement "*(undefined4 *)(iVar1 + 0x14) = param_3;" (assignment_expression "*(undefined4 *)(iVar1 + 0x14) = param_3" (pointer_expression "*(undefined4 *)(iVar1 + 0x14)" * (cast_expression "(undefined4 *)(iVar1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x18) = param_4;" (assignment_expression "*(undefined4 *)(iVar1 + 0x18) = param_4" (pointer_expression "*(undefined4 *)(iVar1 + 0x18)" * (cast_expression "(undefined4 *)(iVar1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x18)" ( (binary_expression "iVar1 + 0x18" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nbfd_boolean debug_record_int_const(void *handle,char *name,bfd_vma val)\n\n{\n  debug_name *pdVar1;\n  debug_object_linkage in_stack_fffffff4;\n  \n  if (name != (char *)0x0) {\n    pdVar1 = debug_add_to_current_namespace\n                       ((debug_handle *)handle,name,DEBUG_OBJECT_INT_CONSTANT,in_stack_fffffff4);\n    if (pdVar1 != (debug_name *)0x0) {\n      (pdVar1->u).int_constant = val;\n      return 1;\n    }\n  }\n  return 0;\n}\n\n" comment (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_stack_fffffff4;\n  \n  if (name != (char *)0x0) {\n    pdVar1 = debug_add_to_current_namespace\n                       ((debug_handle *)handle,name,DEBUG_OBJECT_INT_CONSTANT,in_stack_fffffff4);\n    if (pdVar1 != (debug_name *)0x0) {\n      (pdVar1->u).int_constant = val;\n      return 1;\n    }\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_stack_fffffff4;\n  \n  if (name != (char *)0x0) {\n    pdVar1 = debug_add_to_current_namespace\n                       ((debug_handle *)handle,name,DEBUG_OBJECT_INT_CONSTANT,in_stack_fffffff4);\n    if (pdVar1 != (debug_name *)0x0) {\n      (pdVar1->u).int_constant = val;\n      return 1;\n    }\n  }\n  return 0;\n}" { (declaration "debug_name *pdVar1;" type_identifier (pointer_declarator "*pdVar1" * identifier) ;) (declaration "debug_object_linkage in_stack_fffffff4;" type_identifier identifier ;) (if_statement "if (name != (char *)0x0) {\n    pdVar1 = debug_add_to_current_namespace\n                       ((debug_handle *)handle,name,DEBUG_OBJECT_INT_CONSTANT,in_stack_fffffff4);\n    if (pdVar1 != (debug_name *)0x0) {\n      (pdVar1->u).int_constant = val;\n      return 1;\n    }\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    pdVar1 = debug_add_to_current_namespace\n                       ((debug_handle *)handle,name,DEBUG_OBJECT_INT_CONSTANT,in_stack_fffffff4);\n    if (pdVar1 != (debug_name *)0x0) {\n      (pdVar1->u).int_constant = val;\n      return 1;\n    }\n  }" { (expression_statement "pdVar1 = debug_add_to_current_namespace\n                       ((debug_handle *)handle,name,DEBUG_OBJECT_INT_CONSTANT,in_stack_fffffff4);" (assignment_expression "pdVar1 = debug_add_to_current_namespace\n                       ((debug_handle *)handle,name,DEBUG_OBJECT_INT_CONSTANT,in_stack_fffffff4)" identifier = (call_expression "debug_add_to_current_namespace\n                       ((debug_handle *)handle,name,DEBUG_OBJECT_INT_CONSTANT,in_stack_fffffff4)" identifier (argument_list "((debug_handle *)handle,name,DEBUG_OBJECT_INT_CONSTANT,in_stack_fffffff4)" ( (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 "undefined4 FUN_0003dbe0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  \n  if (param_2 != 0) {\n    iVar1 = FUN_0003d310();\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar1 + 0x14) = param_3;\n      *(undefined4 *)(iVar1 + 0x18) = param_4;\n      return 1;\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_0003dbe0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  \n  if (param_2 != 0) {\n    iVar1 = FUN_0003d310();\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar1 + 0x14) = param_3;\n      *(undefined4 *)(iVar1 + 0x18) = param_4;\n      return 1;\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0003dbe0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)" identifier (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (param_2 != 0) {\n    iVar1 = FUN_0003d310();\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar1 + 0x14) = param_3;\n      *(undefined4 *)(iVar1 + 0x18) = param_4;\n      return 1;\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (param_2 != 0) {\n    iVar1 = FUN_0003d310();\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar1 + 0x14) = param_3;\n      *(undefined4 *)(iVar1 + 0x18) = param_4;\n      return 1;\n    }\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = FUN_0003d310();\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar1 + 0x14) = param_3;\n      *(undefined4 *)(iVar1 + 0x18) = param_4;\n      return 1;\n    }\n  }" { (expression_statement "iVar1 = FUN_0003d310();" (assignment_expression "iVar1 = FUN_0003d310()" identifier = (call_expression "FUN_0003d310()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar1 != 0) {\n      *(undefined4 *)(iVar1 + 0x14) = param_3;\n      *(undefined4 *)(iVar1 + 0x18) = param_4;\n      return 1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      *(undefined4 *)(iVar1 + 0x14) = param_3;\n      *(undefined4 *)(iVar1 + 0x18) = param_4;\n      return 1;\n    }" { (expression_statement "*(undefined4 *)(iVar1 + 0x14) = param_3;" (assignment_expression "*(undefined4 *)(iVar1 + 0x14) = param_3" (pointer_expression "*(undefined4 *)(iVar1 + 0x14)" * (cast_expression "(undefined4 *)(iVar1 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar1 + 0x18) = param_4;" (assignment_expression "*(undefined4 *)(iVar1 + 0x18) = param_4" (pointer_expression "*(undefined4 *)(iVar1 + 0x18)" * (cast_expression "(undefined4 *)(iVar1 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x18)" ( (binary_expression "iVar1 + 0x18" 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 TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (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) ;) (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 "undefined4 FUN_0003dbe0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)\n\n{\n  int iVar1;\n  \n  if (param_2 != 0) {\n    iVar1 = FUN_0003d310();\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar1 + 0x14) = param_3;\n      *(undefined4 *)(iVar1 + 0x18) = param_4;\n      return 1;\n    }\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_0003dbe0(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)" (identifier "FUN_0003dbe0") (parameter_list "(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if (param_2 != 0) {\n    iVar1 = FUN_0003d310();\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar1 + 0x14) = param_3;\n      *(undefined4 *)(iVar1 + 0x18) = param_4;\n      return 1;\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (param_2 != 0) {\n    iVar1 = FUN_0003d310();\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar1 + 0x14) = param_3;\n      *(undefined4 *)(iVar1 + 0x18) = param_4;\n      return 1;\n    }\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = FUN_0003d310();\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar1 + 0x14) = param_3;\n      *(undefined4 *)(iVar1 + 0x18) = param_4;\n      return 1;\n    }\n  }" ({ "{") (expression_statement "iVar1 = FUN_0003d310();" (assignment_expression "iVar1 = FUN_0003d310()" (identifier "iVar1") (= "=") (call_expression "FUN_0003d310()" (identifier "FUN_0003d310") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n      *(undefined4 *)(iVar1 + 0x14) = param_3;\n      *(undefined4 *)(iVar1 + 0x18) = param_4;\n      return 1;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      *(undefined4 *)(iVar1 + 0x14) = param_3;\n      *(undefined4 *)(iVar1 + 0x18) = param_4;\n      return 1;\n    }" ({ "{") (expression_statement "*(undefined4 *)(iVar1 + 0x14) = param_3;" (assignment_expression "*(undefined4 *)(iVar1 + 0x14) = param_3" (pointer_expression "*(undefined4 *)(iVar1 + 0x14)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x14)" (( "(") (binary_expression "iVar1 + 0x14" (identifier "iVar1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 0x18) = param_4;" (assignment_expression "*(undefined4 *)(iVar1 + 0x18) = param_4" (pointer_expression "*(undefined4 *)(iVar1 + 0x18)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x18)" (( "(") (binary_expression "iVar1 + 0x18" (identifier "iVar1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (identifier "param_4")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

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

{
  type_3 *var_3;
  type_4 in_stack_fffffff4;
  
  if (var_1 != (char *)0x0) {
    var_3 = var_2
                       ((type_5 *)handle,var_1,DEBUG_OBJECT_INT_CONSTANT,in_stack_fffffff4);
    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: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) 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)))) (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))) (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)))))

undefined4 MASKED(undefined4 param_1,int param_2,undefined4 param_3,undefined4 param_4)

{
  int iVar1;
  
  if (param_2 != 0) {
    iVar1 = FUN_0003d310();
    if (iVar1 != 0) {
      *(undefined4 *)(iVar1 + 0x14) = param_3;
      *(undefined4 *)(iVar1 + 0x18) = param_4;
      return 1;
    }
  }
  return 0;
}

