
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

bfd_boolean
debug_record_variable
          (void *handle,char *name,debug_type_conflict type,debug_var_kind kind,bfd_vma val)

{
  int iVar1;
  debug_handle *info;
  debug_name *pdVar2;
  debug_variable *pdVar3;
  undefined4 uVar4;
  debug_object_kind kind_00;
  debug_object_linkage in_stack_ffffffd8;
  
  if ((name != (char *)0x0) && (type != (debug_type_conflict)0x0)) {
    if ((*(int *)((int)handle + 4) == 0) || (iVar1 = *(int *)((int)handle + 8), iVar1 == 0)) {
      uVar4 = dcgettext(0,"debug_record_variable: no current file",5);
      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar4);
    }
    else {
      if (kind - DEBUG_GLOBAL < 2) {
        info = (debug_handle *)(iVar1 + 8);
        kind_00 = (kind == DEBUG_GLOBAL) + DEBUG_OBJECT_TAG;
      }
      else {
        kind_00 = DEBUG_OBJECT_TYPE;
        info = (debug_handle *)(*(int *)((int)handle + 0x10) + 0x1c);
        if (*(int *)((int)handle + 0x10) == 0) {
          info = (debug_handle *)(iVar1 + 8);
        }
      }
      pdVar2 = debug_add_to_namespace
                         (info,(debug_namespace **)name,(char *)0x2,kind_00,in_stack_ffffffd8);
      if (pdVar2 != (debug_name *)0x0) {
        pdVar3 = (debug_variable *)xmalloc(0x10);
        *(undefined4 *)&pdVar3->val = (undefined4)val;
        pdVar3->kind = kind;
        pdVar3->type = type;
        *(undefined4 *)((int)&pdVar3->val + 4) = val._4_4_;
        (pdVar2->u).variable = pdVar3;
        return 1;
      }
    }
  }
  return 0;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

undefined4 FUN_0003dd30(int param_1,int param_2,int param_3,int param_4,int param_5,int param_6)

{
  int iVar1;
  int *piVar2;
  undefined4 uVar3;
  char cVar4;
  
  if ((param_2 != 0) && (param_3 != 0)) {
    if ((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0)) {
      uVar3 = dcgettext(0,"debug_record_variable: no current file",5);
      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar3);
    }
    else {
      if (param_4 - 1U < 2) {
        cVar4 = (param_4 == 1) + '\x01';
      }
      else {
        cVar4 = '\0';
      }
      iVar1 = FUN_0003ba10(cVar4);
      if (iVar1 != 0) {
        piVar2 = (int *)xmalloc(0x10);
        piVar2[2] = param_5;
        *piVar2 = param_4;
        piVar2[1] = param_3;
        piVar2[3] = param_6;
        *(int **)(iVar1 + 0x14) = piVar2;
        return 1;
      }
    }
  }
  return 0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000153d0
ADD EBX,0x352c7
SUB ESP,0xc
MOV EBP,dword ptr [ESP + 0x24]
MOV EAX,dword ptr [ESP + 0x20]
MOV ESI,dword ptr [ESP + 0x30]
MOV EDI,dword ptr [ESP + 0x34]
TEST EBP,EBP
JZ 0x0003de0e
MOV ECX,dword ptr [ESP + 0x28]
TEST ECX,ECX
JZ 0x0003de0e
MOV EDX,dword ptr [EAX + 0x4]
TEST EDX,EDX
JZ 0x0003dde0
MOV EDX,dword ptr [EAX + 0x8]
TEST EDX,EDX
JZ 0x0003dde0
MOV ECX,dword ptr [ESP + 0x2c]
SUB ECX,0x1
CMP ECX,0x1
JBE 0x0003de20
MOV ECX,dword ptr [EAX + 0x10]
ADD EDX,0x8
XOR EBP,EBP
LEA EAX,[ECX + 0x1c]
TEST ECX,ECX
CMOVZ EAX,EDX
SUB ESP,0xc
MOV ECX,0x2
PUSH EBP
MOV EDX,dword ptr [ESP + 0x34]
CALL 0x0003ba10
ADD ESP,0x10
MOV EBP,EAX
TEST EAX,EAX
JZ 0x0003de0e
SUB ESP,0xc
PUSH 0x10
CALL 0x000142b0
MOV EBX,dword ptr [ESP + 0x3c]
MOV EDX,dword ptr [ESP + 0x38]
ADD ESP,0x10
MOV dword ptr [EAX + 0x8],ESI
MOV dword ptr [EAX],EBX
MOV dword ptr [EAX + 0x4],EDX
MOV dword ptr [EAX + 0xc],EDI
MOV dword ptr [EBP + 0x14],EAX
ADD ESP,0xc
MOV EAX,0x1
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xfffe4df8]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x000141f0
ADD ESP,0xc
PUSH EAX
LEA EAX,[EBX + 0xfffe2281]
PUSH EAX
MOV EAX,dword ptr [EBX + 0xffffffbc]
PUSH dword ptr [EAX]
CALL 0x00014878
ADD ESP,0x10
ADD ESP,0xc
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[EDX + 0x8]
XOR EDX,EDX
CMP dword ptr [ESP + 0x2c],0x1
SETZ DL
MOV EBP,EDX
ADD EBP,0x1
JMP 0x0003dd94
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_0003dd30(int param_1,int param_2,int param_3,int param_4,int param_5,int param_6)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  char cVar4;\n  \n  if ((param_2 != 0) && (param_3 != 0)) {\n    if ((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0)) {\n      uVar3 = dcgettext(0,"debug_record_variable: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar3);\n    }\n    else {\n      if (param_4 - 1U < 2) {\n        cVar4 = (param_4 == 1) + '\x01';\n      }\n      else {\n        cVar4 = '\0';\n      }\n      iVar1 = FUN_0003ba10(cVar4);\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(0x10);\n        piVar2[2] = param_5;\n        *piVar2 = param_4;\n        piVar2[1] = param_3;\n        piVar2[3] = param_6;\n        *(int **)(iVar1 + 0x14) = piVar2;\n        return 1;\n      }\n    }\n  }\n  return 0;\n}\n\n" comment (function_definition "undefined4 FUN_0003dd30(int param_1,int param_2,int param_3,int param_4,int param_5,int param_6)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  char cVar4;\n  \n  if ((param_2 != 0) && (param_3 != 0)) {\n    if ((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0)) {\n      uVar3 = dcgettext(0,"debug_record_variable: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar3);\n    }\n    else {\n      if (param_4 - 1U < 2) {\n        cVar4 = (param_4 == 1) + '\x01';\n      }\n      else {\n        cVar4 = '\0';\n      }\n      iVar1 = FUN_0003ba10(cVar4);\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(0x10);\n        piVar2[2] = param_5;\n        *piVar2 = param_4;\n        piVar2[1] = param_3;\n        piVar2[3] = param_6;\n        *(int **)(iVar1 + 0x14) = piVar2;\n        return 1;\n      }\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0003dd30(int param_1,int param_2,int param_3,int param_4,int param_5,int param_6)" identifier (parameter_list "(int param_1,int param_2,int param_3,int param_4,int param_5,int param_6)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "int param_6" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  char cVar4;\n  \n  if ((param_2 != 0) && (param_3 != 0)) {\n    if ((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0)) {\n      uVar3 = dcgettext(0,"debug_record_variable: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar3);\n    }\n    else {\n      if (param_4 - 1U < 2) {\n        cVar4 = (param_4 == 1) + '\x01';\n      }\n      else {\n        cVar4 = '\0';\n      }\n      iVar1 = FUN_0003ba10(cVar4);\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(0x10);\n        piVar2[2] = param_5;\n        *piVar2 = param_4;\n        piVar2[1] = param_3;\n        piVar2[3] = param_6;\n        *(int **)(iVar1 + 0x14) = piVar2;\n        return 1;\n      }\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "char cVar4;" primitive_type identifier ;) (if_statement "if ((param_2 != 0) && (param_3 != 0)) {\n    if ((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0)) {\n      uVar3 = dcgettext(0,"debug_record_variable: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar3);\n    }\n    else {\n      if (param_4 - 1U < 2) {\n        cVar4 = (param_4 == 1) + '\x01';\n      }\n      else {\n        cVar4 = '\0';\n      }\n      iVar1 = FUN_0003ba10(cVar4);\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(0x10);\n        piVar2[2] = param_5;\n        *piVar2 = param_4;\n        piVar2[1] = param_3;\n        piVar2[3] = param_6;\n        *(int **)(iVar1 + 0x14) = piVar2;\n        return 1;\n      }\n    }\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    if ((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0)) {\n      uVar3 = dcgettext(0,"debug_record_variable: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar3);\n    }\n    else {\n      if (param_4 - 1U < 2) {\n        cVar4 = (param_4 == 1) + '\x01';\n      }\n      else {\n        cVar4 = '\0';\n      }\n      iVar1 = FUN_0003ba10(cVar4);\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(0x10);\n        piVar2[2] = param_5;\n        *piVar2 = param_4;\n        piVar2[1] = param_3;\n        piVar2[3] = param_6;\n        *(int **)(iVar1 + 0x14) = piVar2;\n        return 1;\n      }\n    }\n  }" { (if_statement "if ((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0)) {\n      uVar3 = dcgettext(0,"debug_record_variable: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar3);\n    }\n    else {\n      if (param_4 - 1U < 2) {\n        cVar4 = (param_4 == 1) + '\x01';\n      }\n      else {\n        cVar4 = '\0';\n      }\n      iVar1 = FUN_0003ba10(cVar4);\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(0x10);\n        piVar2[2] = param_5;\n        *piVar2 = param_4;\n        piVar2[1] = param_3;\n        piVar2[3] = param_6;\n        *(int **)(iVar1 + 0x14) = piVar2;\n        return 1;\n      }\n    }" if (parenthesized_expression "((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0))" ( (binary_expression "(*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0)" (parenthesized_expression "(*(int *)(param_1 + 4) == 0)" ( (binary_expression "*(int *)(param_1 + 4) == 0" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) == number_literal) )) || (parenthesized_expression "(*(int *)(param_1 + 8) == 0)" ( (binary_expression "*(int *)(param_1 + 8) == 0" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n      uVar3 = dcgettext(0,"debug_record_variable: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar3);\n    }" { (expression_statement "uVar3 = dcgettext(0,"debug_record_variable: no current file",5);" (assignment_expression "uVar3 = dcgettext(0,"debug_record_variable: no current file",5)" identifier = (call_expression "dcgettext(0,"debug_record_variable: no current file",5)" identifier (argument_list "(0,"debug_record_variable: no current file",5)" ( number_literal , (string_literal ""debug_record_variable: no current file"" " string_content ") , number_literal )))) ;) (expression_statement "fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar3);" (call_expression "fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar3)" identifier (argument_list "(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar3)" ( (pointer_expression "*(FILE **)PTR_stderr_00072fbc" * (cast_expression "(FILE **)PTR_stderr_00072fbc" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , (string_literal ""%s\n"" " string_content escape_sequence ") , identifier ))) ;) }) (else_clause "else {\n      if (param_4 - 1U < 2) {\n        cVar4 = (param_4 == 1) + '\x01';\n      }\n      else {\n        cVar4 = '\0';\n      }\n      iVar1 = FUN_0003ba10(cVar4);\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(0x10);\n        piVar2[2] = param_5;\n        *piVar2 = param_4;\n        piVar2[1] = param_3;\n        piVar2[3] = param_6;\n        *(int **)(iVar1 + 0x14) = piVar2;\n        return 1;\n      }\n    }" else (compound_statement "{\n      if (param_4 - 1U < 2) {\n        cVar4 = (param_4 == 1) + '\x01';\n      }\n      else {\n        cVar4 = '\0';\n      }\n      iVar1 = FUN_0003ba10(cVar4);\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(0x10);\n        piVar2[2] = param_5;\n        *piVar2 = param_4;\n        piVar2[1] = param_3;\n        piVar2[3] = param_6;\n        *(int **)(iVar1 + 0x14) = piVar2;\n        return 1;\n      }\n    }" { (if_statement "if (param_4 - 1U < 2) {\n        cVar4 = (param_4 == 1) + '\x01';\n      }\n      else {\n        cVar4 = '\0';\n      }" if (parenthesized_expression "(param_4 - 1U < 2)" ( (binary_expression "param_4 - 1U < 2" (binary_expression "param_4 - 1U" identifier - number_literal) < number_literal) )) (compound_statement "{\n        cVar4 = (param_4 == 1) + '\x01';\n      }" { (expression_statement "cVar4 = (param_4 == 1) + '\x01';" (assignment_expression "cVar4 = (param_4 == 1) + '\x01'" identifier = (binary_expression "(param_4 == 1) + '\x01'" (parenthesized_expression "(param_4 == 1)" ( (binary_expression "param_4 == 1" identifier == number_literal) )) + (char_literal "'\x01'" ' escape_sequence '))) ;) }) (else_clause "else {\n        cVar4 = '\0';\n      }" else (compound_statement "{\n        cVar4 = '\0';\n      }" { (expression_statement "cVar4 = '\0';" (assignment_expression "cVar4 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) }))) (expression_statement "iVar1 = FUN_0003ba10(cVar4);" (assignment_expression "iVar1 = FUN_0003ba10(cVar4)" identifier = (call_expression "FUN_0003ba10(cVar4)" identifier (argument_list "(cVar4)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(0x10);\n        piVar2[2] = param_5;\n        *piVar2 = param_4;\n        piVar2[1] = param_3;\n        piVar2[3] = param_6;\n        *(int **)(iVar1 + 0x14) = piVar2;\n        return 1;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        piVar2 = (int *)xmalloc(0x10);\n        piVar2[2] = param_5;\n        *piVar2 = param_4;\n        piVar2[1] = param_3;\n        piVar2[3] = param_6;\n        *(int **)(iVar1 + 0x14) = piVar2;\n        return 1;\n      }" { (expression_statement "piVar2 = (int *)xmalloc(0x10);" (assignment_expression "piVar2 = (int *)xmalloc(0x10)" identifier = (cast_expression "(int *)xmalloc(0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) (expression_statement "piVar2[2] = param_5;" (assignment_expression "piVar2[2] = param_5" (subscript_expression "piVar2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*piVar2 = param_4;" (assignment_expression "*piVar2 = param_4" (pointer_expression "*piVar2" * identifier) = identifier) ;) (expression_statement "piVar2[1] = param_3;" (assignment_expression "piVar2[1] = param_3" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar2[3] = param_6;" (assignment_expression "piVar2[3] = param_6" (subscript_expression "piVar2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(int **)(iVar1 + 0x14) = piVar2;" (assignment_expression "*(int **)(iVar1 + 0x14) = piVar2" (pointer_expression "*(int **)(iVar1 + 0x14)" * (cast_expression "(int **)(iVar1 + 0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) )))) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) }))) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nbfd_boolean\ndebug_record_variable\n          (void *handle,char *name,debug_type_conflict type,debug_var_kind kind,bfd_vma val)\n\n{\n  int iVar1;\n  debug_handle *info;\n  debug_name *pdVar2;\n  debug_variable *pdVar3;\n  undefined4 uVar4;\n  debug_object_kind kind_00;\n  debug_object_linkage in_stack_ffffffd8;\n  \n  if ((name != (char *)0x0) && (type != (debug_type_conflict)0x0)) {\n    if ((*(int *)((int)handle + 4) == 0) || (iVar1 = *(int *)((int)handle + 8), iVar1 == 0)) {\n      uVar4 = dcgettext(0,"debug_record_variable: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar4);\n    }\n    else {\n      if (kind - DEBUG_GLOBAL < 2) {\n        info = (debug_handle *)(iVar1 + 8);\n        kind_00 = (kind == DEBUG_GLOBAL) + DEBUG_OBJECT_TAG;\n      }\n      else {\n        kind_00 = DEBUG_OBJECT_TYPE;\n        info = (debug_handle *)(*(int *)((int)handle + 0x10) + 0x1c);\n        if (*(int *)((int)handle + 0x10) == 0) {\n          info = (debug_handle *)(iVar1 + 8);\n        }\n      }\n      pdVar2 = debug_add_to_namespace\n                         (info,(debug_namespace **)name,(char *)0x2,kind_00,in_stack_ffffffd8);\n      if (pdVar2 != (debug_name *)0x0) {\n        pdVar3 = (debug_variable *)xmalloc(0x10);\n        *(undefined4 *)&pdVar3->val = (undefined4)val;\n        pdVar3->kind = kind;\n        pdVar3->type = type;\n        *(undefined4 *)((int)&pdVar3->val + 4) = val._4_4_;\n        (pdVar2->u).variable = pdVar3;\n        return 1;\n      }\n    }\n  }\n  return 0;\n}\n\n" comment comment (function_definition "bfd_boolean\ndebug_record_variable\n          (void *handle,char *name,debug_type_conflict type,debug_var_kind kind,bfd_vma val)\n\n{\n  int iVar1;\n  debug_handle *info;\n  debug_name *pdVar2;\n  debug_variable *pdVar3;\n  undefined4 uVar4;\n  debug_object_kind kind_00;\n  debug_object_linkage in_stack_ffffffd8;\n  \n  if ((name != (char *)0x0) && (type != (debug_type_conflict)0x0)) {\n    if ((*(int *)((int)handle + 4) == 0) || (iVar1 = *(int *)((int)handle + 8), iVar1 == 0)) {\n      uVar4 = dcgettext(0,"debug_record_variable: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar4);\n    }\n    else {\n      if (kind - DEBUG_GLOBAL < 2) {\n        info = (debug_handle *)(iVar1 + 8);\n        kind_00 = (kind == DEBUG_GLOBAL) + DEBUG_OBJECT_TAG;\n      }\n      else {\n        kind_00 = DEBUG_OBJECT_TYPE;\n        info = (debug_handle *)(*(int *)((int)handle + 0x10) + 0x1c);\n        if (*(int *)((int)handle + 0x10) == 0) {\n          info = (debug_handle *)(iVar1 + 8);\n        }\n      }\n      pdVar2 = debug_add_to_namespace\n                         (info,(debug_namespace **)name,(char *)0x2,kind_00,in_stack_ffffffd8);\n      if (pdVar2 != (debug_name *)0x0) {\n        pdVar3 = (debug_variable *)xmalloc(0x10);\n        *(undefined4 *)&pdVar3->val = (undefined4)val;\n        pdVar3->kind = kind;\n        pdVar3->type = type;\n        *(undefined4 *)((int)&pdVar3->val + 4) = val._4_4_;\n        (pdVar2->u).variable = pdVar3;\n        return 1;\n      }\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "debug_record_variable\n          (void *handle,char *name,debug_type_conflict type,debug_var_kind kind,bfd_vma val)" identifier (parameter_list "(void *handle,char *name,debug_type_conflict type,debug_var_kind kind,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 "debug_var_kind kind" type_identifier identifier) , (parameter_declaration "bfd_vma val" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  debug_handle *info;\n  debug_name *pdVar2;\n  debug_variable *pdVar3;\n  undefined4 uVar4;\n  debug_object_kind kind_00;\n  debug_object_linkage in_stack_ffffffd8;\n  \n  if ((name != (char *)0x0) && (type != (debug_type_conflict)0x0)) {\n    if ((*(int *)((int)handle + 4) == 0) || (iVar1 = *(int *)((int)handle + 8), iVar1 == 0)) {\n      uVar4 = dcgettext(0,"debug_record_variable: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar4);\n    }\n    else {\n      if (kind - DEBUG_GLOBAL < 2) {\n        info = (debug_handle *)(iVar1 + 8);\n        kind_00 = (kind == DEBUG_GLOBAL) + DEBUG_OBJECT_TAG;\n      }\n      else {\n        kind_00 = DEBUG_OBJECT_TYPE;\n        info = (debug_handle *)(*(int *)((int)handle + 0x10) + 0x1c);\n        if (*(int *)((int)handle + 0x10) == 0) {\n          info = (debug_handle *)(iVar1 + 8);\n        }\n      }\n      pdVar2 = debug_add_to_namespace\n                         (info,(debug_namespace **)name,(char *)0x2,kind_00,in_stack_ffffffd8);\n      if (pdVar2 != (debug_name *)0x0) {\n        pdVar3 = (debug_variable *)xmalloc(0x10);\n        *(undefined4 *)&pdVar3->val = (undefined4)val;\n        pdVar3->kind = kind;\n        pdVar3->type = type;\n        *(undefined4 *)((int)&pdVar3->val + 4) = val._4_4_;\n        (pdVar2->u).variable = pdVar3;\n        return 1;\n      }\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "debug_handle *info;" type_identifier (pointer_declarator "*info" * identifier) ;) (declaration "debug_name *pdVar2;" type_identifier (pointer_declarator "*pdVar2" * identifier) ;) (declaration "debug_variable *pdVar3;" type_identifier (pointer_declarator "*pdVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "debug_object_kind kind_00;" type_identifier identifier ;) (declaration "debug_object_linkage in_stack_ffffffd8;" type_identifier identifier ;) (if_statement "if ((name != (char *)0x0) && (type != (debug_type_conflict)0x0)) {\n    if ((*(int *)((int)handle + 4) == 0) || (iVar1 = *(int *)((int)handle + 8), iVar1 == 0)) {\n      uVar4 = dcgettext(0,"debug_record_variable: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar4);\n    }\n    else {\n      if (kind - DEBUG_GLOBAL < 2) {\n        info = (debug_handle *)(iVar1 + 8);\n        kind_00 = (kind == DEBUG_GLOBAL) + DEBUG_OBJECT_TAG;\n      }\n      else {\n        kind_00 = DEBUG_OBJECT_TYPE;\n        info = (debug_handle *)(*(int *)((int)handle + 0x10) + 0x1c);\n        if (*(int *)((int)handle + 0x10) == 0) {\n          info = (debug_handle *)(iVar1 + 8);\n        }\n      }\n      pdVar2 = debug_add_to_namespace\n                         (info,(debug_namespace **)name,(char *)0x2,kind_00,in_stack_ffffffd8);\n      if (pdVar2 != (debug_name *)0x0) {\n        pdVar3 = (debug_variable *)xmalloc(0x10);\n        *(undefined4 *)&pdVar3->val = (undefined4)val;\n        pdVar3->kind = kind;\n        pdVar3->type = type;\n        *(undefined4 *)((int)&pdVar3->val + 4) = val._4_4_;\n        (pdVar2->u).variable = pdVar3;\n        return 1;\n      }\n    }\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    if ((*(int *)((int)handle + 4) == 0) || (iVar1 = *(int *)((int)handle + 8), iVar1 == 0)) {\n      uVar4 = dcgettext(0,"debug_record_variable: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar4);\n    }\n    else {\n      if (kind - DEBUG_GLOBAL < 2) {\n        info = (debug_handle *)(iVar1 + 8);\n        kind_00 = (kind == DEBUG_GLOBAL) + DEBUG_OBJECT_TAG;\n      }\n      else {\n        kind_00 = DEBUG_OBJECT_TYPE;\n        info = (debug_handle *)(*(int *)((int)handle + 0x10) + 0x1c);\n        if (*(int *)((int)handle + 0x10) == 0) {\n          info = (debug_handle *)(iVar1 + 8);\n        }\n      }\n      pdVar2 = debug_add_to_namespace\n                         (info,(debug_namespace **)name,(char *)0x2,kind_00,in_stack_ffffffd8);\n      if (pdVar2 != (debug_name *)0x0) {\n        pdVar3 = (debug_variable *)xmalloc(0x10);\n        *(undefined4 *)&pdVar3->val = (undefined4)val;\n        pdVar3->kind = kind;\n        pdVar3->type = type;\n        *(undefined4 *)((int)&pdVar3->val + 4) = val._4_4_;\n        (pdVar2->u).variable = pdVar3;\n        return 1;\n      }\n    }\n  }" { (if_statement "if ((*(int *)((int)handle + 4) == 0) || (iVar1 = *(int *)((int)handle + 8), iVar1 == 0)) {\n      uVar4 = dcgettext(0,"debug_record_variable: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar4);\n    }\n    else {\n      if (kind - DEBUG_GLOBAL < 2) {\n        info = (debug_handle *)(iVar1 + 8);\n        kind_00 = (kind == DEBUG_GLOBAL) + DEBUG_OBJECT_TAG;\n      }\n      else {\n        kind_00 = DEBUG_OBJECT_TYPE;\n        info = (debug_handle *)(*(int *)((int)handle + 0x10) + 0x1c);\n        if (*(int *)((int)handle + 0x10) == 0) {\n          info = (debug_handle *)(iVar1 + 8);\n        }\n      }\n      pdVar2 = debug_add_to_namespace\n                         (info,(debug_namespace **)name,(char *)0x2,kind_00,in_stack_ffffffd8);\n      if (pdVar2 != (debug_name *)0x0) {\n        pdVar3 = (debug_variable *)xmalloc(0x10);\n        *(undefined4 *)&pdVar3->val = (undefined4)val;\n        pdVar3->kind = kind;\n        pdVar3->type = type;\n        *(undefined4 *)((int)&pdVar3->val + 4) = val._4_4_;\n        (pdVar2->u).variable = pdVar3;\n        return 1;\n      }\n    }" if (parenthesized_expression "((*(int *)((int)handle + 4) == 0) || (iVar1 = *(int *)((int)handle + 8), iVar1 == 0))" ( (binary_expression "(*(int *)((int)handle + 4) == 0) || (iVar1 = *(int *)((int)handle + 8), iVar1 == 0)" (parenthesized_expression "(*(int *)((int)handle + 4) == 0)" ( (binary_expression "*(int *)((int)handle + 4) == 0" (pointer_expression "*(int *)((int)handle + 4)" * (cast_expression "(int *)((int)handle + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 4)" ( (binary_expression "(int)handle + 4" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == number_literal) )) || (parenthesized_expression "(iVar1 = *(int *)((int)handle + 8), iVar1 == 0)" ( (comma_expression "iVar1 = *(int *)((int)handle + 8), iVar1 == 0" (assignment_expression "iVar1 = *(int *)((int)handle + 8)" identifier = (pointer_expression "*(int *)((int)handle + 8)" * (cast_expression "(int *)((int)handle + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 8)" ( (binary_expression "(int)handle + 8" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) , (binary_expression "iVar1 == 0" identifier == number_literal)) ))) )) (compound_statement "{\n      uVar4 = dcgettext(0,"debug_record_variable: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar4);\n    }" { (expression_statement "uVar4 = dcgettext(0,"debug_record_variable: no current file",5);" (assignment_expression "uVar4 = dcgettext(0,"debug_record_variable: no current file",5)" identifier = (call_expression "dcgettext(0,"debug_record_variable: no current file",5)" identifier (argument_list "(0,"debug_record_variable: no current file",5)" ( number_literal , (string_literal ""debug_record_variable: no current file"" " string_content ") , number_literal )))) ;) (expression_statement "fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar4);" (call_expression "fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar4)" identifier (argument_list "(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar4)" ( (pointer_expression "*(FILE **)PTR_stderr_00072fbc" * (cast_expression "(FILE **)PTR_stderr_00072fbc" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , (string_literal ""%s\n"" " string_content escape_sequence ") , identifier ))) ;) }) (else_clause "else {\n      if (kind - DEBUG_GLOBAL < 2) {\n        info = (debug_handle *)(iVar1 + 8);\n        kind_00 = (kind == DEBUG_GLOBAL) + DEBUG_OBJECT_TAG;\n      }\n      else {\n        kind_00 = DEBUG_OBJECT_TYPE;\n        info = (debug_handle *)(*(int *)((int)handle + 0x10) + 0x1c);\n        if (*(int *)((int)handle + 0x10) == 0) {\n          info = (debug_handle *)(iVar1 + 8);\n        }\n      }\n      pdVar2 = debug_add_to_namespace\n                         (info,(debug_namespace **)name,(char *)0x2,kind_00,in_stack_ffffffd8);\n      if (pdVar2 != (debug_name *)0x0) {\n        pdVar3 = (debug_variable *)xmalloc(0x10);\n        *(undefined4 *)&pdVar3->val = (undefined4)val;\n        pdVar3->kind = kind;\n        pdVar3->type = type;\n        *(undefined4 *)((int)&pdVar3->val + 4) = val._4_4_;\n        (pdVar2->u).variable = pdVar3;\n        return 1;\n      }\n    }" else (compound_statement "{\n      if (kind - DEBUG_GLOBAL < 2) {\n        info = (debug_handle *)(iVar1 + 8);\n        kind_00 = (kind == DEBUG_GLOBAL) + DEBUG_OBJECT_TAG;\n      }\n      else {\n        kind_00 = DEBUG_OBJECT_TYPE;\n        info = (debug_handle *)(*(int *)((int)handle + 0x10) + 0x1c);\n        if (*(int *)((int)handle + 0x10) == 0) {\n          info = (debug_handle *)(iVar1 + 8);\n        }\n      }\n      pdVar2 = debug_add_to_namespace\n                         (info,(debug_namespace **)name,(char *)0x2,kind_00,in_stack_ffffffd8);\n      if (pdVar2 != (debug_name *)0x0) {\n        pdVar3 = (debug_variable *)xmalloc(0x10);\n        *(undefined4 *)&pdVar3->val = (undefined4)val;\n        pdVar3->kind = kind;\n        pdVar3->type = type;\n        *(undefined4 *)((int)&pdVar3->val + 4) = val._4_4_;\n        (pdVar2->u).variable = pdVar3;\n        return 1;\n      }\n    }" { (if_statement "if (kind - DEBUG_GLOBAL < 2) {\n        info = (debug_handle *)(iVar1 + 8);\n        kind_00 = (kind == DEBUG_GLOBAL) + DEBUG_OBJECT_TAG;\n      }\n      else {\n        kind_00 = DEBUG_OBJECT_TYPE;\n        info = (debug_handle *)(*(int *)((int)handle + 0x10) + 0x1c);\n        if (*(int *)((int)handle + 0x10) == 0) {\n          info = (debug_handle *)(iVar1 + 8);\n        }\n      }" if (parenthesized_expression "(kind - DEBUG_GLOBAL < 2)" ( (binary_expression "kind - DEBUG_GLOBAL < 2" (binary_expression "kind - DEBUG_GLOBAL" identifier - identifier) < number_literal) )) (compound_statement "{\n        info = (debug_handle *)(iVar1 + 8);\n        kind_00 = (kind == DEBUG_GLOBAL) + DEBUG_OBJECT_TAG;\n      }" { (expression_statement "info = (debug_handle *)(iVar1 + 8);" (assignment_expression "info = (debug_handle *)(iVar1 + 8)" identifier = (cast_expression "(debug_handle *)(iVar1 + 8)" ( (type_descriptor "debug_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) ;) (expression_statement "kind_00 = (kind == DEBUG_GLOBAL) + DEBUG_OBJECT_TAG;" (assignment_expression "kind_00 = (kind == DEBUG_GLOBAL) + DEBUG_OBJECT_TAG" identifier = (binary_expression "(kind == DEBUG_GLOBAL) + DEBUG_OBJECT_TAG" (parenthesized_expression "(kind == DEBUG_GLOBAL)" ( (binary_expression "kind == DEBUG_GLOBAL" identifier == identifier) )) + identifier)) ;) }) (else_clause "else {\n        kind_00 = DEBUG_OBJECT_TYPE;\n        info = (debug_handle *)(*(int *)((int)handle + 0x10) + 0x1c);\n        if (*(int *)((int)handle + 0x10) == 0) {\n          info = (debug_handle *)(iVar1 + 8);\n        }\n      }" else (compound_statement "{\n        kind_00 = DEBUG_OBJECT_TYPE;\n        info = (debug_handle *)(*(int *)((int)handle + 0x10) + 0x1c);\n        if (*(int *)((int)handle + 0x10) == 0) {\n          info = (debug_handle *)(iVar1 + 8);\n        }\n      }" { (expression_statement "kind_00 = DEBUG_OBJECT_TYPE;" (assignment_expression "kind_00 = DEBUG_OBJECT_TYPE" identifier = identifier) ;) (expression_statement "info = (debug_handle *)(*(int *)((int)handle + 0x10) + 0x1c);" (assignment_expression "info = (debug_handle *)(*(int *)((int)handle + 0x10) + 0x1c)" identifier = (cast_expression "(debug_handle *)(*(int *)((int)handle + 0x10) + 0x1c)" ( (type_descriptor "debug_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)((int)handle + 0x10) + 0x1c)" ( (binary_expression "*(int *)((int)handle + 0x10) + 0x1c" (pointer_expression "*(int *)((int)handle + 0x10)" * (cast_expression "(int *)((int)handle + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x10)" ( (binary_expression "(int)handle + 0x10" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + number_literal) )))) ;) (if_statement "if (*(int *)((int)handle + 0x10) == 0) {\n          info = (debug_handle *)(iVar1 + 8);\n        }" if (parenthesized_expression "(*(int *)((int)handle + 0x10) == 0)" ( (binary_expression "*(int *)((int)handle + 0x10) == 0" (pointer_expression "*(int *)((int)handle + 0x10)" * (cast_expression "(int *)((int)handle + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 0x10)" ( (binary_expression "(int)handle + 0x10" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == number_literal) )) (compound_statement "{\n          info = (debug_handle *)(iVar1 + 8);\n        }" { (expression_statement "info = (debug_handle *)(iVar1 + 8);" (assignment_expression "info = (debug_handle *)(iVar1 + 8)" identifier = (cast_expression "(debug_handle *)(iVar1 + 8)" ( (type_descriptor "debug_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8)" ( (binary_expression "iVar1 + 8" identifier + number_literal) )))) ;) })) }))) (expression_statement "pdVar2 = debug_add_to_namespace\n                         (info,(debug_namespace **)name,(char *)0x2,kind_00,in_stack_ffffffd8);" (assignment_expression "pdVar2 = debug_add_to_namespace\n                         (info,(debug_namespace **)name,(char *)0x2,kind_00,in_stack_ffffffd8)" identifier = (call_expression "debug_add_to_namespace\n                         (info,(debug_namespace **)name,(char *)0x2,kind_00,in_stack_ffffffd8)" identifier (argument_list "(info,(debug_namespace **)name,(char *)0x2,kind_00,in_stack_ffffffd8)" ( identifier , (cast_expression "(debug_namespace **)name" ( (type_descriptor "debug_namespace **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier) , (cast_expression "(char *)0x2" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , identifier , identifier )))) ;) (if_statement "if (pdVar2 != (debug_name *)0x0) {\n        pdVar3 = (debug_variable *)xmalloc(0x10);\n        *(undefined4 *)&pdVar3->val = (undefined4)val;\n        pdVar3->kind = kind;\n        pdVar3->type = type;\n        *(undefined4 *)((int)&pdVar3->val + 4) = val._4_4_;\n        (pdVar2->u).variable = pdVar3;\n        return 1;\n      }" if (parenthesized_expression "(pdVar2 != (debug_name *)0x0)" ( (binary_expression "pdVar2 != (debug_name *)0x0" identifier != (cast_expression "(debug_name *)0x0" ( (type_descriptor "debug_name *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        pdVar3 = (debug_variable *)xmalloc(0x10);\n        *(undefined4 *)&pdVar3->val = (undefined4)val;\n        pdVar3->kind = kind;\n        pdVar3->type = type;\n        *(undefined4 *)((int)&pdVar3->val + 4) = val._4_4_;\n        (pdVar2->u).variable = pdVar3;\n        return 1;\n      }" { (expression_statement "pdVar3 = (debug_variable *)xmalloc(0x10);" (assignment_expression "pdVar3 = (debug_variable *)xmalloc(0x10)" identifier = (cast_expression "(debug_variable *)xmalloc(0x10)" ( (type_descriptor "debug_variable *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) (expression_statement "*(undefined4 *)&pdVar3->val = (undefined4)val;" (assignment_expression "*(undefined4 *)&pdVar3->val = (undefined4)val" (pointer_expression "*(undefined4 *)&pdVar3->val" * (cast_expression "(undefined4 *)&pdVar3->val" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pdVar3->val" & (field_expression "pdVar3->val" identifier -> field_identifier)))) = (cast_expression "(undefined4)val" ( (type_descriptor "undefined4" type_identifier) ) identifier)) ;) (expression_statement "pdVar3->kind = kind;" (assignment_expression "pdVar3->kind = kind" (field_expression "pdVar3->kind" identifier -> field_identifier) = identifier) ;) (expression_statement "pdVar3->type = type;" (assignment_expression "pdVar3->type = type" (field_expression "pdVar3->type" identifier -> field_identifier) = identifier) ;) (expression_statement "*(undefined4 *)((int)&pdVar3->val + 4) = val._4_4_;" (assignment_expression "*(undefined4 *)((int)&pdVar3->val + 4) = val._4_4_" (pointer_expression "*(undefined4 *)((int)&pdVar3->val + 4)" * (cast_expression "(undefined4 *)((int)&pdVar3->val + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pdVar3->val + 4)" ( (binary_expression "(int)&pdVar3->val + 4" (cast_expression "(int)&pdVar3->val" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pdVar3->val" & (field_expression "pdVar3->val" identifier -> field_identifier))) + number_literal) )))) = (field_expression "val._4_4_" identifier . field_identifier)) ;) (expression_statement "(pdVar2->u).variable = pdVar3;" (assignment_expression "(pdVar2->u).variable = pdVar3" (field_expression "(pdVar2->u).variable" (parenthesized_expression "(pdVar2->u)" ( (field_expression "pdVar2->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_0003dd30(int param_1,int param_2,int param_3,int param_4,int param_5,int param_6)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  char cVar4;\n  \n  if ((param_2 != 0) && (param_3 != 0)) {\n    if ((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0)) {\n      uVar3 = dcgettext(0,"debug_record_variable: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar3);\n    }\n    else {\n      if (param_4 - 1U < 2) {\n        cVar4 = (param_4 == 1) + '\x01';\n      }\n      else {\n        cVar4 = '\0';\n      }\n      iVar1 = FUN_0003ba10(cVar4);\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(0x10);\n        piVar2[2] = param_5;\n        *piVar2 = param_4;\n        piVar2[1] = param_3;\n        piVar2[3] = param_6;\n        *(int **)(iVar1 + 0x14) = piVar2;\n        return 1;\n      }\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_0003dd30(int param_1,int param_2,int param_3,int param_4,int param_5,int param_6)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  char cVar4;\n  \n  if ((param_2 != 0) && (param_3 != 0)) {\n    if ((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0)) {\n      uVar3 = dcgettext(0,"debug_record_variable: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar3);\n    }\n    else {\n      if (param_4 - 1U < 2) {\n        cVar4 = (param_4 == 1) + '\x01';\n      }\n      else {\n        cVar4 = '\0';\n      }\n      iVar1 = FUN_0003ba10(cVar4);\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(0x10);\n        piVar2[2] = param_5;\n        *piVar2 = param_4;\n        piVar2[1] = param_3;\n        piVar2[3] = param_6;\n        *(int **)(iVar1 + 0x14) = piVar2;\n        return 1;\n      }\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0003dd30(int param_1,int param_2,int param_3,int param_4,int param_5,int param_6)" identifier (parameter_list "(int param_1,int param_2,int param_3,int param_4,int param_5,int param_6)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "int param_6" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  char cVar4;\n  \n  if ((param_2 != 0) && (param_3 != 0)) {\n    if ((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0)) {\n      uVar3 = dcgettext(0,"debug_record_variable: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar3);\n    }\n    else {\n      if (param_4 - 1U < 2) {\n        cVar4 = (param_4 == 1) + '\x01';\n      }\n      else {\n        cVar4 = '\0';\n      }\n      iVar1 = FUN_0003ba10(cVar4);\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(0x10);\n        piVar2[2] = param_5;\n        *piVar2 = param_4;\n        piVar2[1] = param_3;\n        piVar2[3] = param_6;\n        *(int **)(iVar1 + 0x14) = piVar2;\n        return 1;\n      }\n    }\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "char cVar4;" primitive_type identifier ;) (if_statement "if ((param_2 != 0) && (param_3 != 0)) {\n    if ((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0)) {\n      uVar3 = dcgettext(0,"debug_record_variable: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar3);\n    }\n    else {\n      if (param_4 - 1U < 2) {\n        cVar4 = (param_4 == 1) + '\x01';\n      }\n      else {\n        cVar4 = '\0';\n      }\n      iVar1 = FUN_0003ba10(cVar4);\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(0x10);\n        piVar2[2] = param_5;\n        *piVar2 = param_4;\n        piVar2[1] = param_3;\n        piVar2[3] = param_6;\n        *(int **)(iVar1 + 0x14) = piVar2;\n        return 1;\n      }\n    }\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    if ((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0)) {\n      uVar3 = dcgettext(0,"debug_record_variable: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar3);\n    }\n    else {\n      if (param_4 - 1U < 2) {\n        cVar4 = (param_4 == 1) + '\x01';\n      }\n      else {\n        cVar4 = '\0';\n      }\n      iVar1 = FUN_0003ba10(cVar4);\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(0x10);\n        piVar2[2] = param_5;\n        *piVar2 = param_4;\n        piVar2[1] = param_3;\n        piVar2[3] = param_6;\n        *(int **)(iVar1 + 0x14) = piVar2;\n        return 1;\n      }\n    }\n  }" { (if_statement "if ((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0)) {\n      uVar3 = dcgettext(0,"debug_record_variable: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar3);\n    }\n    else {\n      if (param_4 - 1U < 2) {\n        cVar4 = (param_4 == 1) + '\x01';\n      }\n      else {\n        cVar4 = '\0';\n      }\n      iVar1 = FUN_0003ba10(cVar4);\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(0x10);\n        piVar2[2] = param_5;\n        *piVar2 = param_4;\n        piVar2[1] = param_3;\n        piVar2[3] = param_6;\n        *(int **)(iVar1 + 0x14) = piVar2;\n        return 1;\n      }\n    }" if (parenthesized_expression "((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0))" ( (binary_expression "(*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0)" (parenthesized_expression "(*(int *)(param_1 + 4) == 0)" ( (binary_expression "*(int *)(param_1 + 4) == 0" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) == number_literal) )) || (parenthesized_expression "(*(int *)(param_1 + 8) == 0)" ( (binary_expression "*(int *)(param_1 + 8) == 0" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n      uVar3 = dcgettext(0,"debug_record_variable: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar3);\n    }" { (expression_statement "uVar3 = dcgettext(0,"debug_record_variable: no current file",5);" (assignment_expression "uVar3 = dcgettext(0,"debug_record_variable: no current file",5)" identifier = (call_expression "dcgettext(0,"debug_record_variable: no current file",5)" identifier (argument_list "(0,"debug_record_variable: no current file",5)" ( number_literal , (string_literal ""debug_record_variable: no current file"" " string_content ") , number_literal )))) ;) (expression_statement "fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar3);" (call_expression "fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar3)" identifier (argument_list "(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar3)" ( (pointer_expression "*(FILE **)PTR_stderr_00072fbc" * (cast_expression "(FILE **)PTR_stderr_00072fbc" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , (string_literal ""%s\n"" " string_content escape_sequence ") , identifier ))) ;) }) (else_clause "else {\n      if (param_4 - 1U < 2) {\n        cVar4 = (param_4 == 1) + '\x01';\n      }\n      else {\n        cVar4 = '\0';\n      }\n      iVar1 = FUN_0003ba10(cVar4);\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(0x10);\n        piVar2[2] = param_5;\n        *piVar2 = param_4;\n        piVar2[1] = param_3;\n        piVar2[3] = param_6;\n        *(int **)(iVar1 + 0x14) = piVar2;\n        return 1;\n      }\n    }" else (compound_statement "{\n      if (param_4 - 1U < 2) {\n        cVar4 = (param_4 == 1) + '\x01';\n      }\n      else {\n        cVar4 = '\0';\n      }\n      iVar1 = FUN_0003ba10(cVar4);\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(0x10);\n        piVar2[2] = param_5;\n        *piVar2 = param_4;\n        piVar2[1] = param_3;\n        piVar2[3] = param_6;\n        *(int **)(iVar1 + 0x14) = piVar2;\n        return 1;\n      }\n    }" { (if_statement "if (param_4 - 1U < 2) {\n        cVar4 = (param_4 == 1) + '\x01';\n      }\n      else {\n        cVar4 = '\0';\n      }" if (parenthesized_expression "(param_4 - 1U < 2)" ( (binary_expression "param_4 - 1U < 2" (binary_expression "param_4 - 1U" identifier - number_literal) < number_literal) )) (compound_statement "{\n        cVar4 = (param_4 == 1) + '\x01';\n      }" { (expression_statement "cVar4 = (param_4 == 1) + '\x01';" (assignment_expression "cVar4 = (param_4 == 1) + '\x01'" identifier = (binary_expression "(param_4 == 1) + '\x01'" (parenthesized_expression "(param_4 == 1)" ( (binary_expression "param_4 == 1" identifier == number_literal) )) + (char_literal "'\x01'" ' escape_sequence '))) ;) }) (else_clause "else {\n        cVar4 = '\0';\n      }" else (compound_statement "{\n        cVar4 = '\0';\n      }" { (expression_statement "cVar4 = '\0';" (assignment_expression "cVar4 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) }))) (expression_statement "iVar1 = FUN_0003ba10(cVar4);" (assignment_expression "iVar1 = FUN_0003ba10(cVar4)" identifier = (call_expression "FUN_0003ba10(cVar4)" identifier (argument_list "(cVar4)" ( identifier )))) ;) (if_statement "if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(0x10);\n        piVar2[2] = param_5;\n        *piVar2 = param_4;\n        piVar2[1] = param_3;\n        piVar2[3] = param_6;\n        *(int **)(iVar1 + 0x14) = piVar2;\n        return 1;\n      }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        piVar2 = (int *)xmalloc(0x10);\n        piVar2[2] = param_5;\n        *piVar2 = param_4;\n        piVar2[1] = param_3;\n        piVar2[3] = param_6;\n        *(int **)(iVar1 + 0x14) = piVar2;\n        return 1;\n      }" { (expression_statement "piVar2 = (int *)xmalloc(0x10);" (assignment_expression "piVar2 = (int *)xmalloc(0x10)" identifier = (cast_expression "(int *)xmalloc(0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x10)" identifier (argument_list "(0x10)" ( number_literal ))))) ;) (expression_statement "piVar2[2] = param_5;" (assignment_expression "piVar2[2] = param_5" (subscript_expression "piVar2[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*piVar2 = param_4;" (assignment_expression "*piVar2 = param_4" (pointer_expression "*piVar2" * identifier) = identifier) ;) (expression_statement "piVar2[1] = param_3;" (assignment_expression "piVar2[1] = param_3" (subscript_expression "piVar2[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar2[3] = param_6;" (assignment_expression "piVar2[3] = param_6" (subscript_expression "piVar2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(int **)(iVar1 + 0x14) = piVar2;" (assignment_expression "*(int **)(iVar1 + 0x14) = piVar2" (pointer_expression "*(int **)(iVar1 + 0x14)" * (cast_expression "(int **)(iVar1 + 0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" 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) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) IDENT)) , (string_literal " string_content escape_sequence ") , IDENT ))) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT - LIT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) + (char_literal ' escape_sequence '))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (char_literal ' escape_sequence ')) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (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 TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return LIT ;) })) }))) })) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_0003dd30(int param_1,int param_2,int param_3,int param_4,int param_5,int param_6)\n\n{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  char cVar4;\n  \n  if ((param_2 != 0) && (param_3 != 0)) {\n    if ((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0)) {\n      uVar3 = dcgettext(0,"debug_record_variable: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar3);\n    }\n    else {\n      if (param_4 - 1U < 2) {\n        cVar4 = (param_4 == 1) + '\x01';\n      }\n      else {\n        cVar4 = '\0';\n      }\n      iVar1 = FUN_0003ba10(cVar4);\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(0x10);\n        piVar2[2] = param_5;\n        *piVar2 = param_4;\n        piVar2[1] = param_3;\n        piVar2[3] = param_6;\n        *(int **)(iVar1 + 0x14) = piVar2;\n        return 1;\n      }\n    }\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_0003dd30(int param_1,int param_2,int param_3,int param_4,int param_5,int param_6)" (identifier "FUN_0003dd30") (parameter_list "(int param_1,int param_2,int param_3,int param_4,int param_5,int param_6)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) (, ",") (parameter_declaration "int param_6" (primitive_type "int") (identifier "param_6")) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  undefined4 uVar3;\n  char cVar4;\n  \n  if ((param_2 != 0) && (param_3 != 0)) {\n    if ((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0)) {\n      uVar3 = dcgettext(0,"debug_record_variable: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar3);\n    }\n    else {\n      if (param_4 - 1U < 2) {\n        cVar4 = (param_4 == 1) + '\x01';\n      }\n      else {\n        cVar4 = '\0';\n      }\n      iVar1 = FUN_0003ba10(cVar4);\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(0x10);\n        piVar2[2] = param_5;\n        *piVar2 = param_4;\n        piVar2[1] = param_3;\n        piVar2[3] = param_6;\n        *(int **)(iVar1 + 0x14) = piVar2;\n        return 1;\n      }\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "char cVar4;" (primitive_type "char") (identifier "cVar4") (; ";")) (if_statement "if ((param_2 != 0) && (param_3 != 0)) {\n    if ((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0)) {\n      uVar3 = dcgettext(0,"debug_record_variable: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar3);\n    }\n    else {\n      if (param_4 - 1U < 2) {\n        cVar4 = (param_4 == 1) + '\x01';\n      }\n      else {\n        cVar4 = '\0';\n      }\n      iVar1 = FUN_0003ba10(cVar4);\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(0x10);\n        piVar2[2] = param_5;\n        *piVar2 = param_4;\n        piVar2[1] = param_3;\n        piVar2[3] = param_6;\n        *(int **)(iVar1 + 0x14) = piVar2;\n        return 1;\n      }\n    }\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    if ((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0)) {\n      uVar3 = dcgettext(0,"debug_record_variable: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar3);\n    }\n    else {\n      if (param_4 - 1U < 2) {\n        cVar4 = (param_4 == 1) + '\x01';\n      }\n      else {\n        cVar4 = '\0';\n      }\n      iVar1 = FUN_0003ba10(cVar4);\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(0x10);\n        piVar2[2] = param_5;\n        *piVar2 = param_4;\n        piVar2[1] = param_3;\n        piVar2[3] = param_6;\n        *(int **)(iVar1 + 0x14) = piVar2;\n        return 1;\n      }\n    }\n  }" ({ "{") (if_statement "if ((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0)) {\n      uVar3 = dcgettext(0,"debug_record_variable: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar3);\n    }\n    else {\n      if (param_4 - 1U < 2) {\n        cVar4 = (param_4 == 1) + '\x01';\n      }\n      else {\n        cVar4 = '\0';\n      }\n      iVar1 = FUN_0003ba10(cVar4);\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(0x10);\n        piVar2[2] = param_5;\n        *piVar2 = param_4;\n        piVar2[1] = param_3;\n        piVar2[3] = param_6;\n        *(int **)(iVar1 + 0x14) = piVar2;\n        return 1;\n      }\n    }" (if "if") (parenthesized_expression "((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0))" (( "(") (binary_expression "(*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0)" (parenthesized_expression "(*(int *)(param_1 + 4) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 4) == 0" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(*(int *)(param_1 + 8) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 8) == 0" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      uVar3 = dcgettext(0,"debug_record_variable: no current file",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar3);\n    }" ({ "{") (expression_statement "uVar3 = dcgettext(0,"debug_record_variable: no current file",5);" (assignment_expression "uVar3 = dcgettext(0,"debug_record_variable: no current file",5)" (identifier "uVar3") (= "=") (call_expression "dcgettext(0,"debug_record_variable: no current file",5)" (identifier "dcgettext") (argument_list "(0,"debug_record_variable: no current file",5)" (( "(") (number_literal "0") (, ",") (string_literal ""debug_record_variable: no current file"" (" """) (string_content "debug_record_variable: no current file") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar3);" (call_expression "fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar3)" (identifier "fprintf") (argument_list "(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar3)" (( "(") (pointer_expression "*(FILE **)PTR_stderr_00072fbc" (* "*") (cast_expression "(FILE **)PTR_stderr_00072fbc" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_stderr_00072fbc"))) (, ",") (string_literal ""%s\n"" (" """) (string_content "%s") (escape_sequence "\n") (" """)) (, ",") (identifier "uVar3") () ")"))) (; ";")) (} "}")) (else_clause "else {\n      if (param_4 - 1U < 2) {\n        cVar4 = (param_4 == 1) + '\x01';\n      }\n      else {\n        cVar4 = '\0';\n      }\n      iVar1 = FUN_0003ba10(cVar4);\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(0x10);\n        piVar2[2] = param_5;\n        *piVar2 = param_4;\n        piVar2[1] = param_3;\n        piVar2[3] = param_6;\n        *(int **)(iVar1 + 0x14) = piVar2;\n        return 1;\n      }\n    }" (else "else") (compound_statement "{\n      if (param_4 - 1U < 2) {\n        cVar4 = (param_4 == 1) + '\x01';\n      }\n      else {\n        cVar4 = '\0';\n      }\n      iVar1 = FUN_0003ba10(cVar4);\n      if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(0x10);\n        piVar2[2] = param_5;\n        *piVar2 = param_4;\n        piVar2[1] = param_3;\n        piVar2[3] = param_6;\n        *(int **)(iVar1 + 0x14) = piVar2;\n        return 1;\n      }\n    }" ({ "{") (if_statement "if (param_4 - 1U < 2) {\n        cVar4 = (param_4 == 1) + '\x01';\n      }\n      else {\n        cVar4 = '\0';\n      }" (if "if") (parenthesized_expression "(param_4 - 1U < 2)" (( "(") (binary_expression "param_4 - 1U < 2" (binary_expression "param_4 - 1U" (identifier "param_4") (- "-") (number_literal "1U")) (< "<") (number_literal "2")) () ")")) (compound_statement "{\n        cVar4 = (param_4 == 1) + '\x01';\n      }" ({ "{") (expression_statement "cVar4 = (param_4 == 1) + '\x01';" (assignment_expression "cVar4 = (param_4 == 1) + '\x01'" (identifier "cVar4") (= "=") (binary_expression "(param_4 == 1) + '\x01'" (parenthesized_expression "(param_4 == 1)" (( "(") (binary_expression "param_4 == 1" (identifier "param_4") (== "==") (number_literal "1")) () ")")) (+ "+") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'")))) (; ";")) (} "}")) (else_clause "else {\n        cVar4 = '\0';\n      }" (else "else") (compound_statement "{\n        cVar4 = '\0';\n      }" ({ "{") (expression_statement "cVar4 = '\0';" (assignment_expression "cVar4 = '\0'" (identifier "cVar4") (= "=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) (; ";")) (} "}")))) (expression_statement "iVar1 = FUN_0003ba10(cVar4);" (assignment_expression "iVar1 = FUN_0003ba10(cVar4)" (identifier "iVar1") (= "=") (call_expression "FUN_0003ba10(cVar4)" (identifier "FUN_0003ba10") (argument_list "(cVar4)" (( "(") (identifier "cVar4") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n        piVar2 = (int *)xmalloc(0x10);\n        piVar2[2] = param_5;\n        *piVar2 = param_4;\n        piVar2[1] = param_3;\n        piVar2[3] = param_6;\n        *(int **)(iVar1 + 0x14) = piVar2;\n        return 1;\n      }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        piVar2 = (int *)xmalloc(0x10);\n        piVar2[2] = param_5;\n        *piVar2 = param_4;\n        piVar2[1] = param_3;\n        piVar2[3] = param_6;\n        *(int **)(iVar1 + 0x14) = piVar2;\n        return 1;\n      }" ({ "{") (expression_statement "piVar2 = (int *)xmalloc(0x10);" (assignment_expression "piVar2 = (int *)xmalloc(0x10)" (identifier "piVar2") (= "=") (cast_expression "(int *)xmalloc(0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0x10)" (identifier "xmalloc") (argument_list "(0x10)" (( "(") (number_literal "0x10") () ")"))))) (; ";")) (expression_statement "piVar2[2] = param_5;" (assignment_expression "piVar2[2] = param_5" (subscript_expression "piVar2[2]" (identifier "piVar2") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_5")) (; ";")) (expression_statement "*piVar2 = param_4;" (assignment_expression "*piVar2 = param_4" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "piVar2[1] = param_3;" (assignment_expression "piVar2[1] = param_3" (subscript_expression "piVar2[1]" (identifier "piVar2") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "piVar2[3] = param_6;" (assignment_expression "piVar2[3] = param_6" (subscript_expression "piVar2[3]" (identifier "piVar2") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "param_6")) (; ";")) (expression_statement "*(int **)(iVar1 + 0x14) = piVar2;" (assignment_expression "*(int **)(iVar1 + 0x14) = piVar2" (pointer_expression "*(int **)(iVar1 + 0x14)" (* "*") (cast_expression "(int **)(iVar1 + 0x14)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar1 + 0x14)" (( "(") (binary_expression "iVar1 + 0x14" (identifier "iVar1") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "piVar2")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (} "}")))) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

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

{
  int var_3;
  type_5 *info;
  type_6 *var_10;
  type_7 *pdVar3;
  type_8 uVar4;
  type_9 kind_00;
  type_10 in_stack_ffffffd8;
  
  if ((var_1 != (char *)0x0) && (var_2 != (type_2)0x0)) {
    if ((*(int *)((int)handle + 4) == 0) || (var_3 = *(int *)((int)handle + 8), var_3 == 0)) {
      uVar4 = var_4(0,"debug_record_variable: no current file",5);
      var_5(*(type_11 **)PTR_stderr_00072fbc,"%s\n",uVar4);
    }
    else {
      if (var_6 - var_7 < 2) {
        info = (type_5 *)(var_3 + 8);
        kind_00 = (var_6 == var_7) + var_8;
      }
      else {
        kind_00 = DEBUG_OBJECT_TYPE;
        info = (type_5 *)(*(int *)((int)handle + 0x10) + 0x1c);
        if (*(int *)((int)handle + 0x10) == 0) {
          info = (type_5 *)(var_3 + 8);
        }
      }
      var_10 = var_9
                         (info,(type_12 **)var_1,(char *)0x2,kind_00,in_stack_ffffffd8);
      if (var_10 != (type_6 *)0x0) {
        pdVar3 = (type_7 *)var_11(0x10);
        *(type_8 *)&pdVar3->val = (type_8)val;
        pdVar3->var_6 = var_6;
        pdVar3->var_2 = var_2;
        *(type_8 *)((int)&pdVar3->val + 4) = val._4_4_;
        (var_10->u).variable = pdVar3;
        return 1;
      }
    }
  }
  return 0;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) 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 (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (identifier))) (string_literal (string_content) (escape_sequence)) (identifier))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (char_literal (escape_sequence)))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (char_literal (escape_sequence))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (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: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (return_statement (number_literal))))))))) (return_statement (number_literal)))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

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

{
  int iVar1;
  int *piVar2;
  undefined4 uVar3;
  char cVar4;
  
  if ((param_2 != 0) && (param_3 != 0)) {
    if ((*(int *)(param_1 + 4) == 0) || (*(int *)(param_1 + 8) == 0)) {
      uVar3 = dcgettext(0,"debug_record_variable: no current file",5);
      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar3);
    }
    else {
      if (param_4 - 1U < 2) {
        cVar4 = (param_4 == 1) + '\x01';
      }
      else {
        cVar4 = '\0';
      }
      iVar1 = FUN_0003ba10(cVar4);
      if (iVar1 != 0) {
        piVar2 = (int *)xmalloc(0x10);
        piVar2[2] = param_5;
        *piVar2 = param_4;
        piVar2[1] = param_3;
        piVar2[3] = param_6;
        *(int **)(iVar1 + 0x14) = piVar2;
        return 1;
      }
    }
  }
  return 0;
}

