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

bfd_boolean
debug_record_function
          (void *handle,char *name,debug_type_conflict return_type,bfd_boolean global,bfd_vma addr)

{
  debug_function *pdVar1;
  debug_block *pdVar2;
  debug_name *pdVar3;
  undefined4 uVar4;
  uint uVar5;
  uint uVar6;
  debug_object_linkage in_stack_ffffffc8;
  
  if (name == (char *)0x0) {
    name = &DAT_0004fa07;
  }
  if (return_type != (debug_type_conflict)0x0) {
    if (*(int *)((int)handle + 4) == 0) {
      uVar4 = dcgettext(0,"debug_record_function: no debug_set_filename call",5);
      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar4);
    }
    else {
      pdVar1 = (debug_function *)xmalloc(0xc);
      pdVar1->parameters = (debug_parameter *)0x0;
      pdVar1->blocks = (debug_block *)0x0;
      pdVar1->return_type = return_type;
      pdVar2 = (debug_block *)xmalloc(0x20);
      uVar5 = 0;
      pdVar2->next = (debug_block *)0x0;
      uVar6 = (uint)&pdVar2->parent & 0xfffffffc;
      pdVar2->locals = (debug_namespace *)0x0;
      do {
        *(undefined4 *)(uVar6 + uVar5) = 0;
        uVar5 = uVar5 + 4;
      } while (uVar5 < ((int)pdVar2 + (0x20 - uVar6) & 0xfffffffc));
      *(undefined4 *)&pdVar2->end = 0xffffffff;
      *(undefined4 *)((int)&pdVar2->end + 4) = 0xffffffff;
      pdVar2->start = addr;
      *(debug_block **)((int)handle + 0x10) = pdVar2;
      pdVar1->blocks = pdVar2;
      *(debug_function **)((int)handle + 0xc) = pdVar1;
      pdVar3 = debug_add_to_namespace
                         ((debug_handle *)(*(int *)((int)handle + 8) + 8),(debug_namespace **)name,
                          (char *)0x3,(global != 0) + DEBUG_OBJECT_TAG,in_stack_ffffffc8);
      if (pdVar3 != (debug_name *)0x0) {
        (pdVar3->u).function = pdVar1;
        return 1;
      }
    }
  }
  return 0;
}



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

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

{
  int *piVar1;
  undefined4 *puVar2;
  int iVar3;
  undefined4 uVar4;
  uint uVar5;
  
  if (param_3 != 0) {
    if (*(int *)(param_1 + 4) == 0) {
      uVar4 = dcgettext(0,"debug_record_function: no debug_set_filename call",5);
      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar4);
    }
    else {
      piVar1 = (int *)xmalloc(0xc);
      piVar1[1] = 0;
      piVar1[2] = 0;
      *piVar1 = param_3;
      puVar2 = (undefined4 *)xmalloc(0x20);
      uVar5 = 0;
      *puVar2 = 0;
      puVar2[7] = 0;
      do {
        *(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5) = 0;
        uVar5 = uVar5 + 4;
      } while (uVar5 < ((int)puVar2 + (0x20 - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc));
      puVar2[5] = 0xffffffff;
      puVar2[6] = 0xffffffff;
      puVar2[3] = param_5;
      puVar2[4] = param_6;
      *(undefined4 **)(param_1 + 0x10) = puVar2;
      piVar1[2] = (int)puVar2;
      *(int **)(param_1 + 0xc) = piVar1;
      iVar3 = FUN_0003ba10((param_4 != 0) + '\x01');
      if (iVar3 != 0) {
        *(int **)(iVar3 + 0x14) = piVar1;
        return 1;
      }
    }
  }
  return 0;
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000153d0
ADD EBX,0x35a55
SUB ESP,0x1c
MOV EDI,dword ptr [EBP + 0xc]
MOV EAX,dword ptr [EBP + 0x18]
MOV EDX,dword ptr [EBP + 0x1c]
MOV ECX,dword ptr [EBP + 0x10]
MOV dword ptr [EBP + -0x20],EAX
TEST EDI,EDI
MOV dword ptr [EBP + -0x1c],EDX
LEA EAX,[EBX + 0xfffdca07]
CMOVZ EDI,EAX
TEST ECX,ECX
JZ 0x0003d6ce
MOV EAX,dword ptr [EBP + 0x8]
MOV EDX,dword ptr [EAX + 0x4]
TEST EDX,EDX
JZ 0x0003d6a0
SUB ESP,0xc
PUSH 0xc
CALL 0x000142b0
MOV dword ptr [EAX + 0x4],0x0
MOV ESI,EAX
MOV dword ptr [EAX + 0x8],0x0
MOV EAX,dword ptr [EBP + 0x10]
MOV dword ptr [ESP],0x20
MOV dword ptr [ESI],EAX
CALL 0x000142b0
XOR ECX,ECX
LEA EBX,[EAX + 0x4]
MOV EDX,EAX
MOV dword ptr [EAX],0x0
AND EBX,0xfffffffc
MOV dword ptr [EAX + 0x1c],0x0
SUB EDX,EBX
ADD EDX,0x20
AND EDX,0xfffffffc
MOV dword ptr [EBX + ECX*0x1],0x0
ADD ECX,0x4
CMP ECX,EDX
JC 0x0003d631
MOV ECX,dword ptr [EBP + -0x20]
MOV EBX,dword ptr [EBP + -0x1c]
MOV dword ptr [EAX + 0x14],0xffffffff
XOR EDX,EDX
MOV dword ptr [EAX + 0x18],0xffffffff
MOV dword ptr [EAX + 0xc],ECX
MOV ECX,dword ptr [EBP + 0x8]
MOV dword ptr [EAX + 0x10],EBX
MOV dword ptr [ECX + 0x10],EAX
MOV dword ptr [ESI + 0x8],EAX
MOV EAX,dword ptr [EBP + 0x14]
MOV dword ptr [ECX + 0xc],ESI
TEST EAX,EAX
MOV EAX,dword ptr [ECX + 0x8]
MOV ECX,0x3
SETNZ DL
ADD EDX,0x1
ADD EAX,0x8
MOV dword ptr [ESP],EDX
MOV EDX,EDI
CALL 0x0003ba10
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0003d6ce
MOV dword ptr [EAX + 0x14],ESI
LEA ESP,[EBP + -0xc]
MOV EAX,0x1
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xfffe4c28]
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
LEA ESP,[EBP + -0xc]
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4\nFUN_0003d5a0(int param_1,undefined4 param_2,int param_3,int param_4,undefined4 param_5,\n            undefined4 param_6)\n\n{\n  int *piVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  \n  if (param_3 != 0) {\n    if (*(int *)(param_1 + 4) == 0) {\n      uVar4 = dcgettext(0,"debug_record_function: no debug_set_filename call",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar4);\n    }\n    else {\n      piVar1 = (int *)xmalloc(0xc);\n      piVar1[1] = 0;\n      piVar1[2] = 0;\n      *piVar1 = param_3;\n      puVar2 = (undefined4 *)xmalloc(0x20);\n      uVar5 = 0;\n      *puVar2 = 0;\n      puVar2[7] = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5) = 0;\n        uVar5 = uVar5 + 4;\n      } while (uVar5 < ((int)puVar2 + (0x20 - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc));\n      puVar2[5] = 0xffffffff;\n      puVar2[6] = 0xffffffff;\n      puVar2[3] = param_5;\n      puVar2[4] = param_6;\n      *(undefined4 **)(param_1 + 0x10) = puVar2;\n      piVar1[2] = (int)puVar2;\n      *(int **)(param_1 + 0xc) = piVar1;\n      iVar3 = FUN_0003ba10((param_4 != 0) + '\x01');\n      if (iVar3 != 0) {\n        *(int **)(iVar3 + 0x14) = piVar1;\n        return 1;\n      }\n    }\n  }\n  return 0;\n}\n\n" comment (function_definition "undefined4\nFUN_0003d5a0(int param_1,undefined4 param_2,int param_3,int param_4,undefined4 param_5,\n            undefined4 param_6)\n\n{\n  int *piVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  \n  if (param_3 != 0) {\n    if (*(int *)(param_1 + 4) == 0) {\n      uVar4 = dcgettext(0,"debug_record_function: no debug_set_filename call",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar4);\n    }\n    else {\n      piVar1 = (int *)xmalloc(0xc);\n      piVar1[1] = 0;\n      piVar1[2] = 0;\n      *piVar1 = param_3;\n      puVar2 = (undefined4 *)xmalloc(0x20);\n      uVar5 = 0;\n      *puVar2 = 0;\n      puVar2[7] = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5) = 0;\n        uVar5 = uVar5 + 4;\n      } while (uVar5 < ((int)puVar2 + (0x20 - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc));\n      puVar2[5] = 0xffffffff;\n      puVar2[6] = 0xffffffff;\n      puVar2[3] = param_5;\n      puVar2[4] = param_6;\n      *(undefined4 **)(param_1 + 0x10) = puVar2;\n      piVar1[2] = (int)puVar2;\n      *(int **)(param_1 + 0xc) = piVar1;\n      iVar3 = FUN_0003ba10((param_4 != 0) + '\x01');\n      if (iVar3 != 0) {\n        *(int **)(iVar3 + 0x14) = piVar1;\n        return 1;\n      }\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0003d5a0(int param_1,undefined4 param_2,int param_3,int param_4,undefined4 param_5,\n            undefined4 param_6)" identifier (parameter_list "(int param_1,undefined4 param_2,int param_3,int param_4,undefined4 param_5,\n            undefined4 param_6)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  \n  if (param_3 != 0) {\n    if (*(int *)(param_1 + 4) == 0) {\n      uVar4 = dcgettext(0,"debug_record_function: no debug_set_filename call",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar4);\n    }\n    else {\n      piVar1 = (int *)xmalloc(0xc);\n      piVar1[1] = 0;\n      piVar1[2] = 0;\n      *piVar1 = param_3;\n      puVar2 = (undefined4 *)xmalloc(0x20);\n      uVar5 = 0;\n      *puVar2 = 0;\n      puVar2[7] = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5) = 0;\n        uVar5 = uVar5 + 4;\n      } while (uVar5 < ((int)puVar2 + (0x20 - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc));\n      puVar2[5] = 0xffffffff;\n      puVar2[6] = 0xffffffff;\n      puVar2[3] = param_5;\n      puVar2[4] = param_6;\n      *(undefined4 **)(param_1 + 0x10) = puVar2;\n      piVar1[2] = (int)puVar2;\n      *(int **)(param_1 + 0xc) = piVar1;\n      iVar3 = FUN_0003ba10((param_4 != 0) + '\x01');\n      if (iVar3 != 0) {\n        *(int **)(iVar3 + 0x14) = piVar1;\n        return 1;\n      }\n    }\n  }\n  return 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (if_statement "if (param_3 != 0) {\n    if (*(int *)(param_1 + 4) == 0) {\n      uVar4 = dcgettext(0,"debug_record_function: no debug_set_filename call",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar4);\n    }\n    else {\n      piVar1 = (int *)xmalloc(0xc);\n      piVar1[1] = 0;\n      piVar1[2] = 0;\n      *piVar1 = param_3;\n      puVar2 = (undefined4 *)xmalloc(0x20);\n      uVar5 = 0;\n      *puVar2 = 0;\n      puVar2[7] = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5) = 0;\n        uVar5 = uVar5 + 4;\n      } while (uVar5 < ((int)puVar2 + (0x20 - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc));\n      puVar2[5] = 0xffffffff;\n      puVar2[6] = 0xffffffff;\n      puVar2[3] = param_5;\n      puVar2[4] = param_6;\n      *(undefined4 **)(param_1 + 0x10) = puVar2;\n      piVar1[2] = (int)puVar2;\n      *(int **)(param_1 + 0xc) = piVar1;\n      iVar3 = FUN_0003ba10((param_4 != 0) + '\x01');\n      if (iVar3 != 0) {\n        *(int **)(iVar3 + 0x14) = piVar1;\n        return 1;\n      }\n    }\n  }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 4) == 0) {\n      uVar4 = dcgettext(0,"debug_record_function: no debug_set_filename call",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar4);\n    }\n    else {\n      piVar1 = (int *)xmalloc(0xc);\n      piVar1[1] = 0;\n      piVar1[2] = 0;\n      *piVar1 = param_3;\n      puVar2 = (undefined4 *)xmalloc(0x20);\n      uVar5 = 0;\n      *puVar2 = 0;\n      puVar2[7] = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5) = 0;\n        uVar5 = uVar5 + 4;\n      } while (uVar5 < ((int)puVar2 + (0x20 - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc));\n      puVar2[5] = 0xffffffff;\n      puVar2[6] = 0xffffffff;\n      puVar2[3] = param_5;\n      puVar2[4] = param_6;\n      *(undefined4 **)(param_1 + 0x10) = puVar2;\n      piVar1[2] = (int)puVar2;\n      *(int **)(param_1 + 0xc) = piVar1;\n      iVar3 = FUN_0003ba10((param_4 != 0) + '\x01');\n      if (iVar3 != 0) {\n        *(int **)(iVar3 + 0x14) = piVar1;\n        return 1;\n      }\n    }\n  }" { (if_statement "if (*(int *)(param_1 + 4) == 0) {\n      uVar4 = dcgettext(0,"debug_record_function: no debug_set_filename call",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar4);\n    }\n    else {\n      piVar1 = (int *)xmalloc(0xc);\n      piVar1[1] = 0;\n      piVar1[2] = 0;\n      *piVar1 = param_3;\n      puVar2 = (undefined4 *)xmalloc(0x20);\n      uVar5 = 0;\n      *puVar2 = 0;\n      puVar2[7] = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5) = 0;\n        uVar5 = uVar5 + 4;\n      } while (uVar5 < ((int)puVar2 + (0x20 - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc));\n      puVar2[5] = 0xffffffff;\n      puVar2[6] = 0xffffffff;\n      puVar2[3] = param_5;\n      puVar2[4] = param_6;\n      *(undefined4 **)(param_1 + 0x10) = puVar2;\n      piVar1[2] = (int)puVar2;\n      *(int **)(param_1 + 0xc) = piVar1;\n      iVar3 = FUN_0003ba10((param_4 != 0) + '\x01');\n      if (iVar3 != 0) {\n        *(int **)(iVar3 + 0x14) = piVar1;\n        return 1;\n      }\n    }" if (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) )) (compound_statement "{\n      uVar4 = dcgettext(0,"debug_record_function: no debug_set_filename call",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar4);\n    }" { (expression_statement "uVar4 = dcgettext(0,"debug_record_function: no debug_set_filename call",5);" (assignment_expression "uVar4 = dcgettext(0,"debug_record_function: no debug_set_filename call",5)" identifier = (call_expression "dcgettext(0,"debug_record_function: no debug_set_filename call",5)" identifier (argument_list "(0,"debug_record_function: no debug_set_filename call",5)" ( number_literal , (string_literal ""debug_record_function: no debug_set_filename call"" " 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      piVar1 = (int *)xmalloc(0xc);\n      piVar1[1] = 0;\n      piVar1[2] = 0;\n      *piVar1 = param_3;\n      puVar2 = (undefined4 *)xmalloc(0x20);\n      uVar5 = 0;\n      *puVar2 = 0;\n      puVar2[7] = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5) = 0;\n        uVar5 = uVar5 + 4;\n      } while (uVar5 < ((int)puVar2 + (0x20 - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc));\n      puVar2[5] = 0xffffffff;\n      puVar2[6] = 0xffffffff;\n      puVar2[3] = param_5;\n      puVar2[4] = param_6;\n      *(undefined4 **)(param_1 + 0x10) = puVar2;\n      piVar1[2] = (int)puVar2;\n      *(int **)(param_1 + 0xc) = piVar1;\n      iVar3 = FUN_0003ba10((param_4 != 0) + '\x01');\n      if (iVar3 != 0) {\n        *(int **)(iVar3 + 0x14) = piVar1;\n        return 1;\n      }\n    }" else (compound_statement "{\n      piVar1 = (int *)xmalloc(0xc);\n      piVar1[1] = 0;\n      piVar1[2] = 0;\n      *piVar1 = param_3;\n      puVar2 = (undefined4 *)xmalloc(0x20);\n      uVar5 = 0;\n      *puVar2 = 0;\n      puVar2[7] = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5) = 0;\n        uVar5 = uVar5 + 4;\n      } while (uVar5 < ((int)puVar2 + (0x20 - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc));\n      puVar2[5] = 0xffffffff;\n      puVar2[6] = 0xffffffff;\n      puVar2[3] = param_5;\n      puVar2[4] = param_6;\n      *(undefined4 **)(param_1 + 0x10) = puVar2;\n      piVar1[2] = (int)puVar2;\n      *(int **)(param_1 + 0xc) = piVar1;\n      iVar3 = FUN_0003ba10((param_4 != 0) + '\x01');\n      if (iVar3 != 0) {\n        *(int **)(iVar3 + 0x14) = piVar1;\n        return 1;\n      }\n    }" { (expression_statement "piVar1 = (int *)xmalloc(0xc);" (assignment_expression "piVar1 = (int *)xmalloc(0xc)" identifier = (cast_expression "(int *)xmalloc(0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "piVar1[1] = 0;" (assignment_expression "piVar1[1] = 0" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[2] = 0;" (assignment_expression "piVar1[2] = 0" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*piVar1 = param_3;" (assignment_expression "*piVar1 = param_3" (pointer_expression "*piVar1" * identifier) = identifier) ;) (expression_statement "puVar2 = (undefined4 *)xmalloc(0x20);" (assignment_expression "puVar2 = (undefined4 *)xmalloc(0x20)" identifier = (cast_expression "(undefined4 *)xmalloc(0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x20)" identifier (argument_list "(0x20)" ( number_literal ))))) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2[7] = 0;" (assignment_expression "puVar2[7] = 0" (subscript_expression "puVar2[7]" identifier [ number_literal ]) = number_literal) ;) (do_statement "do {\n        *(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5) = 0;\n        uVar5 = uVar5 + 4;\n      } while (uVar5 < ((int)puVar2 + (0x20 - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc));" do (compound_statement "{\n        *(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5) = 0;\n        uVar5 = uVar5 + 4;\n      }" { (expression_statement "*(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5) = 0;" (assignment_expression "*(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5) = 0" (pointer_expression "*(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5)" * (cast_expression "(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5)" ( (binary_expression "((uint)(puVar2 + 1) & 0xfffffffc) + uVar5" (parenthesized_expression "((uint)(puVar2 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(puVar2 + 1) & 0xfffffffc" (call_expression "(uint)(puVar2 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar2 + 1)" ( (binary_expression "puVar2 + 1" identifier + number_literal) ))) & number_literal) )) + identifier) )))) = number_literal) ;) (expression_statement "uVar5 = uVar5 + 4;" (assignment_expression "uVar5 = uVar5 + 4" identifier = (binary_expression "uVar5 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar5 < ((int)puVar2 + (0x20 - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc))" ( (binary_expression "uVar5 < ((int)puVar2 + (0x20 - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc)" identifier < (parenthesized_expression "((int)puVar2 + (0x20 - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc)" ( (binary_expression "(int)puVar2 + (0x20 - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc" (binary_expression "(int)puVar2 + (0x20 - ((uint)(puVar2 + 1) & 0xfffffffc))" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x20 - ((uint)(puVar2 + 1) & 0xfffffffc))" ( (binary_expression "0x20 - ((uint)(puVar2 + 1) & 0xfffffffc)" number_literal - (parenthesized_expression "((uint)(puVar2 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(puVar2 + 1) & 0xfffffffc" (call_expression "(uint)(puVar2 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar2 + 1)" ( (binary_expression "puVar2 + 1" identifier + number_literal) ))) & number_literal) ))) ))) & number_literal) ))) )) ;) (expression_statement "puVar2[5] = 0xffffffff;" (assignment_expression "puVar2[5] = 0xffffffff" (subscript_expression "puVar2[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[6] = 0xffffffff;" (assignment_expression "puVar2[6] = 0xffffffff" (subscript_expression "puVar2[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[3] = param_5;" (assignment_expression "puVar2[3] = param_5" (subscript_expression "puVar2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[4] = param_6;" (assignment_expression "puVar2[4] = param_6" (subscript_expression "puVar2[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined4 **)(param_1 + 0x10) = puVar2;" (assignment_expression "*(undefined4 **)(param_1 + 0x10) = puVar2" (pointer_expression "*(undefined4 **)(param_1 + 0x10)" * (cast_expression "(undefined4 **)(param_1 + 0x10)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "piVar1[2] = (int)puVar2;" (assignment_expression "piVar1[2] = (int)puVar2" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*(int **)(param_1 + 0xc) = piVar1;" (assignment_expression "*(int **)(param_1 + 0xc) = piVar1" (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar3 = FUN_0003ba10((param_4 != 0) + '\x01');" (assignment_expression "iVar3 = FUN_0003ba10((param_4 != 0) + '\x01')" identifier = (call_expression "FUN_0003ba10((param_4 != 0) + '\x01')" identifier (argument_list "((param_4 != 0) + '\x01')" ( (binary_expression "(param_4 != 0) + '\x01'" (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) + (char_literal "'\x01'" ' escape_sequence ')) )))) ;) (if_statement "if (iVar3 != 0) {\n        *(int **)(iVar3 + 0x14) = piVar1;\n        return 1;\n      }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        *(int **)(iVar3 + 0x14) = piVar1;\n        return 1;\n      }" { (expression_statement "*(int **)(iVar3 + 0x14) = piVar1;" (assignment_expression "*(int **)(iVar3 + 0x14) = piVar1" (pointer_expression "*(int **)(iVar3 + 0x14)" * (cast_expression "(int **)(iVar3 + 0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 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\nbfd_boolean\ndebug_record_function\n          (void *handle,char *name,debug_type_conflict return_type,bfd_boolean global,bfd_vma addr)\n\n{\n  debug_function *pdVar1;\n  debug_block *pdVar2;\n  debug_name *pdVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  uint uVar6;\n  debug_object_linkage in_stack_ffffffc8;\n  \n  if (name == (char *)0x0) {\n    name = &DAT_0004fa07;\n  }\n  if (return_type != (debug_type_conflict)0x0) {\n    if (*(int *)((int)handle + 4) == 0) {\n      uVar4 = dcgettext(0,"debug_record_function: no debug_set_filename call",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar4);\n    }\n    else {\n      pdVar1 = (debug_function *)xmalloc(0xc);\n      pdVar1->parameters = (debug_parameter *)0x0;\n      pdVar1->blocks = (debug_block *)0x0;\n      pdVar1->return_type = return_type;\n      pdVar2 = (debug_block *)xmalloc(0x20);\n      uVar5 = 0;\n      pdVar2->next = (debug_block *)0x0;\n      uVar6 = (uint)&pdVar2->parent & 0xfffffffc;\n      pdVar2->locals = (debug_namespace *)0x0;\n      do {\n        *(undefined4 *)(uVar6 + uVar5) = 0;\n        uVar5 = uVar5 + 4;\n      } while (uVar5 < ((int)pdVar2 + (0x20 - uVar6) & 0xfffffffc));\n      *(undefined4 *)&pdVar2->end = 0xffffffff;\n      *(undefined4 *)((int)&pdVar2->end + 4) = 0xffffffff;\n      pdVar2->start = addr;\n      *(debug_block **)((int)handle + 0x10) = pdVar2;\n      pdVar1->blocks = pdVar2;\n      *(debug_function **)((int)handle + 0xc) = pdVar1;\n      pdVar3 = debug_add_to_namespace\n                         ((debug_handle *)(*(int *)((int)handle + 8) + 8),(debug_namespace **)name,\n                          (char *)0x3,(global != 0) + DEBUG_OBJECT_TAG,in_stack_ffffffc8);\n      if (pdVar3 != (debug_name *)0x0) {\n        (pdVar3->u).function = pdVar1;\n        return 1;\n      }\n    }\n  }\n  return 0;\n}\n\n" comment (function_definition "bfd_boolean\ndebug_record_function\n          (void *handle,char *name,debug_type_conflict return_type,bfd_boolean global,bfd_vma addr)\n\n{\n  debug_function *pdVar1;\n  debug_block *pdVar2;\n  debug_name *pdVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  uint uVar6;\n  debug_object_linkage in_stack_ffffffc8;\n  \n  if (name == (char *)0x0) {\n    name = &DAT_0004fa07;\n  }\n  if (return_type != (debug_type_conflict)0x0) {\n    if (*(int *)((int)handle + 4) == 0) {\n      uVar4 = dcgettext(0,"debug_record_function: no debug_set_filename call",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar4);\n    }\n    else {\n      pdVar1 = (debug_function *)xmalloc(0xc);\n      pdVar1->parameters = (debug_parameter *)0x0;\n      pdVar1->blocks = (debug_block *)0x0;\n      pdVar1->return_type = return_type;\n      pdVar2 = (debug_block *)xmalloc(0x20);\n      uVar5 = 0;\n      pdVar2->next = (debug_block *)0x0;\n      uVar6 = (uint)&pdVar2->parent & 0xfffffffc;\n      pdVar2->locals = (debug_namespace *)0x0;\n      do {\n        *(undefined4 *)(uVar6 + uVar5) = 0;\n        uVar5 = uVar5 + 4;\n      } while (uVar5 < ((int)pdVar2 + (0x20 - uVar6) & 0xfffffffc));\n      *(undefined4 *)&pdVar2->end = 0xffffffff;\n      *(undefined4 *)((int)&pdVar2->end + 4) = 0xffffffff;\n      pdVar2->start = addr;\n      *(debug_block **)((int)handle + 0x10) = pdVar2;\n      pdVar1->blocks = pdVar2;\n      *(debug_function **)((int)handle + 0xc) = pdVar1;\n      pdVar3 = debug_add_to_namespace\n                         ((debug_handle *)(*(int *)((int)handle + 8) + 8),(debug_namespace **)name,\n                          (char *)0x3,(global != 0) + DEBUG_OBJECT_TAG,in_stack_ffffffc8);\n      if (pdVar3 != (debug_name *)0x0) {\n        (pdVar3->u).function = pdVar1;\n        return 1;\n      }\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "debug_record_function\n          (void *handle,char *name,debug_type_conflict return_type,bfd_boolean global,bfd_vma addr)" identifier (parameter_list "(void *handle,char *name,debug_type_conflict return_type,bfd_boolean global,bfd_vma addr)" ( (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 return_type" type_identifier identifier) , (parameter_declaration "bfd_boolean global" type_identifier identifier) , (parameter_declaration "bfd_vma addr" type_identifier identifier) ))) (compound_statement "{\n  debug_function *pdVar1;\n  debug_block *pdVar2;\n  debug_name *pdVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  uint uVar6;\n  debug_object_linkage in_stack_ffffffc8;\n  \n  if (name == (char *)0x0) {\n    name = &DAT_0004fa07;\n  }\n  if (return_type != (debug_type_conflict)0x0) {\n    if (*(int *)((int)handle + 4) == 0) {\n      uVar4 = dcgettext(0,"debug_record_function: no debug_set_filename call",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar4);\n    }\n    else {\n      pdVar1 = (debug_function *)xmalloc(0xc);\n      pdVar1->parameters = (debug_parameter *)0x0;\n      pdVar1->blocks = (debug_block *)0x0;\n      pdVar1->return_type = return_type;\n      pdVar2 = (debug_block *)xmalloc(0x20);\n      uVar5 = 0;\n      pdVar2->next = (debug_block *)0x0;\n      uVar6 = (uint)&pdVar2->parent & 0xfffffffc;\n      pdVar2->locals = (debug_namespace *)0x0;\n      do {\n        *(undefined4 *)(uVar6 + uVar5) = 0;\n        uVar5 = uVar5 + 4;\n      } while (uVar5 < ((int)pdVar2 + (0x20 - uVar6) & 0xfffffffc));\n      *(undefined4 *)&pdVar2->end = 0xffffffff;\n      *(undefined4 *)((int)&pdVar2->end + 4) = 0xffffffff;\n      pdVar2->start = addr;\n      *(debug_block **)((int)handle + 0x10) = pdVar2;\n      pdVar1->blocks = pdVar2;\n      *(debug_function **)((int)handle + 0xc) = pdVar1;\n      pdVar3 = debug_add_to_namespace\n                         ((debug_handle *)(*(int *)((int)handle + 8) + 8),(debug_namespace **)name,\n                          (char *)0x3,(global != 0) + DEBUG_OBJECT_TAG,in_stack_ffffffc8);\n      if (pdVar3 != (debug_name *)0x0) {\n        (pdVar3->u).function = pdVar1;\n        return 1;\n      }\n    }\n  }\n  return 0;\n}" { (declaration "debug_function *pdVar1;" type_identifier (pointer_declarator "*pdVar1" * identifier) ;) (declaration "debug_block *pdVar2;" type_identifier (pointer_declarator "*pdVar2" * identifier) ;) (declaration "debug_name *pdVar3;" type_identifier (pointer_declarator "*pdVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "debug_object_linkage in_stack_ffffffc8;" type_identifier identifier ;) (if_statement "if (name == (char *)0x0) {\n    name = &DAT_0004fa07;\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    name = &DAT_0004fa07;\n  }" { (expression_statement "name = &DAT_0004fa07;" (assignment_expression "name = &DAT_0004fa07" identifier = (pointer_expression "&DAT_0004fa07" & identifier)) ;) })) (if_statement "if (return_type != (debug_type_conflict)0x0) {\n    if (*(int *)((int)handle + 4) == 0) {\n      uVar4 = dcgettext(0,"debug_record_function: no debug_set_filename call",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar4);\n    }\n    else {\n      pdVar1 = (debug_function *)xmalloc(0xc);\n      pdVar1->parameters = (debug_parameter *)0x0;\n      pdVar1->blocks = (debug_block *)0x0;\n      pdVar1->return_type = return_type;\n      pdVar2 = (debug_block *)xmalloc(0x20);\n      uVar5 = 0;\n      pdVar2->next = (debug_block *)0x0;\n      uVar6 = (uint)&pdVar2->parent & 0xfffffffc;\n      pdVar2->locals = (debug_namespace *)0x0;\n      do {\n        *(undefined4 *)(uVar6 + uVar5) = 0;\n        uVar5 = uVar5 + 4;\n      } while (uVar5 < ((int)pdVar2 + (0x20 - uVar6) & 0xfffffffc));\n      *(undefined4 *)&pdVar2->end = 0xffffffff;\n      *(undefined4 *)((int)&pdVar2->end + 4) = 0xffffffff;\n      pdVar2->start = addr;\n      *(debug_block **)((int)handle + 0x10) = pdVar2;\n      pdVar1->blocks = pdVar2;\n      *(debug_function **)((int)handle + 0xc) = pdVar1;\n      pdVar3 = debug_add_to_namespace\n                         ((debug_handle *)(*(int *)((int)handle + 8) + 8),(debug_namespace **)name,\n                          (char *)0x3,(global != 0) + DEBUG_OBJECT_TAG,in_stack_ffffffc8);\n      if (pdVar3 != (debug_name *)0x0) {\n        (pdVar3->u).function = pdVar1;\n        return 1;\n      }\n    }\n  }" if (parenthesized_expression "(return_type != (debug_type_conflict)0x0)" ( (binary_expression "return_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) {\n      uVar4 = dcgettext(0,"debug_record_function: no debug_set_filename call",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar4);\n    }\n    else {\n      pdVar1 = (debug_function *)xmalloc(0xc);\n      pdVar1->parameters = (debug_parameter *)0x0;\n      pdVar1->blocks = (debug_block *)0x0;\n      pdVar1->return_type = return_type;\n      pdVar2 = (debug_block *)xmalloc(0x20);\n      uVar5 = 0;\n      pdVar2->next = (debug_block *)0x0;\n      uVar6 = (uint)&pdVar2->parent & 0xfffffffc;\n      pdVar2->locals = (debug_namespace *)0x0;\n      do {\n        *(undefined4 *)(uVar6 + uVar5) = 0;\n        uVar5 = uVar5 + 4;\n      } while (uVar5 < ((int)pdVar2 + (0x20 - uVar6) & 0xfffffffc));\n      *(undefined4 *)&pdVar2->end = 0xffffffff;\n      *(undefined4 *)((int)&pdVar2->end + 4) = 0xffffffff;\n      pdVar2->start = addr;\n      *(debug_block **)((int)handle + 0x10) = pdVar2;\n      pdVar1->blocks = pdVar2;\n      *(debug_function **)((int)handle + 0xc) = pdVar1;\n      pdVar3 = debug_add_to_namespace\n                         ((debug_handle *)(*(int *)((int)handle + 8) + 8),(debug_namespace **)name,\n                          (char *)0x3,(global != 0) + DEBUG_OBJECT_TAG,in_stack_ffffffc8);\n      if (pdVar3 != (debug_name *)0x0) {\n        (pdVar3->u).function = pdVar1;\n        return 1;\n      }\n    }\n  }" { (if_statement "if (*(int *)((int)handle + 4) == 0) {\n      uVar4 = dcgettext(0,"debug_record_function: no debug_set_filename call",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar4);\n    }\n    else {\n      pdVar1 = (debug_function *)xmalloc(0xc);\n      pdVar1->parameters = (debug_parameter *)0x0;\n      pdVar1->blocks = (debug_block *)0x0;\n      pdVar1->return_type = return_type;\n      pdVar2 = (debug_block *)xmalloc(0x20);\n      uVar5 = 0;\n      pdVar2->next = (debug_block *)0x0;\n      uVar6 = (uint)&pdVar2->parent & 0xfffffffc;\n      pdVar2->locals = (debug_namespace *)0x0;\n      do {\n        *(undefined4 *)(uVar6 + uVar5) = 0;\n        uVar5 = uVar5 + 4;\n      } while (uVar5 < ((int)pdVar2 + (0x20 - uVar6) & 0xfffffffc));\n      *(undefined4 *)&pdVar2->end = 0xffffffff;\n      *(undefined4 *)((int)&pdVar2->end + 4) = 0xffffffff;\n      pdVar2->start = addr;\n      *(debug_block **)((int)handle + 0x10) = pdVar2;\n      pdVar1->blocks = pdVar2;\n      *(debug_function **)((int)handle + 0xc) = pdVar1;\n      pdVar3 = debug_add_to_namespace\n                         ((debug_handle *)(*(int *)((int)handle + 8) + 8),(debug_namespace **)name,\n                          (char *)0x3,(global != 0) + DEBUG_OBJECT_TAG,in_stack_ffffffc8);\n      if (pdVar3 != (debug_name *)0x0) {\n        (pdVar3->u).function = pdVar1;\n        return 1;\n      }\n    }" if (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) )) (compound_statement "{\n      uVar4 = dcgettext(0,"debug_record_function: no debug_set_filename call",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar4);\n    }" { (expression_statement "uVar4 = dcgettext(0,"debug_record_function: no debug_set_filename call",5);" (assignment_expression "uVar4 = dcgettext(0,"debug_record_function: no debug_set_filename call",5)" identifier = (call_expression "dcgettext(0,"debug_record_function: no debug_set_filename call",5)" identifier (argument_list "(0,"debug_record_function: no debug_set_filename call",5)" ( number_literal , (string_literal ""debug_record_function: no debug_set_filename call"" " 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      pdVar1 = (debug_function *)xmalloc(0xc);\n      pdVar1->parameters = (debug_parameter *)0x0;\n      pdVar1->blocks = (debug_block *)0x0;\n      pdVar1->return_type = return_type;\n      pdVar2 = (debug_block *)xmalloc(0x20);\n      uVar5 = 0;\n      pdVar2->next = (debug_block *)0x0;\n      uVar6 = (uint)&pdVar2->parent & 0xfffffffc;\n      pdVar2->locals = (debug_namespace *)0x0;\n      do {\n        *(undefined4 *)(uVar6 + uVar5) = 0;\n        uVar5 = uVar5 + 4;\n      } while (uVar5 < ((int)pdVar2 + (0x20 - uVar6) & 0xfffffffc));\n      *(undefined4 *)&pdVar2->end = 0xffffffff;\n      *(undefined4 *)((int)&pdVar2->end + 4) = 0xffffffff;\n      pdVar2->start = addr;\n      *(debug_block **)((int)handle + 0x10) = pdVar2;\n      pdVar1->blocks = pdVar2;\n      *(debug_function **)((int)handle + 0xc) = pdVar1;\n      pdVar3 = debug_add_to_namespace\n                         ((debug_handle *)(*(int *)((int)handle + 8) + 8),(debug_namespace **)name,\n                          (char *)0x3,(global != 0) + DEBUG_OBJECT_TAG,in_stack_ffffffc8);\n      if (pdVar3 != (debug_name *)0x0) {\n        (pdVar3->u).function = pdVar1;\n        return 1;\n      }\n    }" else (compound_statement "{\n      pdVar1 = (debug_function *)xmalloc(0xc);\n      pdVar1->parameters = (debug_parameter *)0x0;\n      pdVar1->blocks = (debug_block *)0x0;\n      pdVar1->return_type = return_type;\n      pdVar2 = (debug_block *)xmalloc(0x20);\n      uVar5 = 0;\n      pdVar2->next = (debug_block *)0x0;\n      uVar6 = (uint)&pdVar2->parent & 0xfffffffc;\n      pdVar2->locals = (debug_namespace *)0x0;\n      do {\n        *(undefined4 *)(uVar6 + uVar5) = 0;\n        uVar5 = uVar5 + 4;\n      } while (uVar5 < ((int)pdVar2 + (0x20 - uVar6) & 0xfffffffc));\n      *(undefined4 *)&pdVar2->end = 0xffffffff;\n      *(undefined4 *)((int)&pdVar2->end + 4) = 0xffffffff;\n      pdVar2->start = addr;\n      *(debug_block **)((int)handle + 0x10) = pdVar2;\n      pdVar1->blocks = pdVar2;\n      *(debug_function **)((int)handle + 0xc) = pdVar1;\n      pdVar3 = debug_add_to_namespace\n                         ((debug_handle *)(*(int *)((int)handle + 8) + 8),(debug_namespace **)name,\n                          (char *)0x3,(global != 0) + DEBUG_OBJECT_TAG,in_stack_ffffffc8);\n      if (pdVar3 != (debug_name *)0x0) {\n        (pdVar3->u).function = pdVar1;\n        return 1;\n      }\n    }" { (expression_statement "pdVar1 = (debug_function *)xmalloc(0xc);" (assignment_expression "pdVar1 = (debug_function *)xmalloc(0xc)" identifier = (cast_expression "(debug_function *)xmalloc(0xc)" ( (type_descriptor "debug_function *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "pdVar1->parameters = (debug_parameter *)0x0;" (assignment_expression "pdVar1->parameters = (debug_parameter *)0x0" (field_expression "pdVar1->parameters" identifier -> field_identifier) = (cast_expression "(debug_parameter *)0x0" ( (type_descriptor "debug_parameter *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pdVar1->blocks = (debug_block *)0x0;" (assignment_expression "pdVar1->blocks = (debug_block *)0x0" (field_expression "pdVar1->blocks" identifier -> field_identifier) = (cast_expression "(debug_block *)0x0" ( (type_descriptor "debug_block *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pdVar1->return_type = return_type;" (assignment_expression "pdVar1->return_type = return_type" (field_expression "pdVar1->return_type" identifier -> field_identifier) = identifier) ;) (expression_statement "pdVar2 = (debug_block *)xmalloc(0x20);" (assignment_expression "pdVar2 = (debug_block *)xmalloc(0x20)" identifier = (cast_expression "(debug_block *)xmalloc(0x20)" ( (type_descriptor "debug_block *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x20)" identifier (argument_list "(0x20)" ( number_literal ))))) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (expression_statement "pdVar2->next = (debug_block *)0x0;" (assignment_expression "pdVar2->next = (debug_block *)0x0" (field_expression "pdVar2->next" identifier -> field_identifier) = (cast_expression "(debug_block *)0x0" ( (type_descriptor "debug_block *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "uVar6 = (uint)&pdVar2->parent & 0xfffffffc;" (assignment_expression "uVar6 = (uint)&pdVar2->parent & 0xfffffffc" identifier = (binary_expression "(uint)&pdVar2->parent & 0xfffffffc" (binary_expression "(uint)&pdVar2->parent" (parenthesized_expression "(uint)" ( identifier )) & (field_expression "pdVar2->parent" identifier -> field_identifier)) & number_literal)) ;) (expression_statement "pdVar2->locals = (debug_namespace *)0x0;" (assignment_expression "pdVar2->locals = (debug_namespace *)0x0" (field_expression "pdVar2->locals" identifier -> field_identifier) = (cast_expression "(debug_namespace *)0x0" ( (type_descriptor "debug_namespace *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (do_statement "do {\n        *(undefined4 *)(uVar6 + uVar5) = 0;\n        uVar5 = uVar5 + 4;\n      } while (uVar5 < ((int)pdVar2 + (0x20 - uVar6) & 0xfffffffc));" do (compound_statement "{\n        *(undefined4 *)(uVar6 + uVar5) = 0;\n        uVar5 = uVar5 + 4;\n      }" { (expression_statement "*(undefined4 *)(uVar6 + uVar5) = 0;" (assignment_expression "*(undefined4 *)(uVar6 + uVar5) = 0" (pointer_expression "*(undefined4 *)(uVar6 + uVar5)" * (cast_expression "(undefined4 *)(uVar6 + uVar5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(uVar6 + uVar5)" ( (binary_expression "uVar6 + uVar5" identifier + identifier) )))) = number_literal) ;) (expression_statement "uVar5 = uVar5 + 4;" (assignment_expression "uVar5 = uVar5 + 4" identifier = (binary_expression "uVar5 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar5 < ((int)pdVar2 + (0x20 - uVar6) & 0xfffffffc))" ( (binary_expression "uVar5 < ((int)pdVar2 + (0x20 - uVar6) & 0xfffffffc)" identifier < (parenthesized_expression "((int)pdVar2 + (0x20 - uVar6) & 0xfffffffc)" ( (binary_expression "(int)pdVar2 + (0x20 - uVar6) & 0xfffffffc" (binary_expression "(int)pdVar2 + (0x20 - uVar6)" (cast_expression "(int)pdVar2" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x20 - uVar6)" ( (binary_expression "0x20 - uVar6" number_literal - identifier) ))) & number_literal) ))) )) ;) (expression_statement "*(undefined4 *)&pdVar2->end = 0xffffffff;" (assignment_expression "*(undefined4 *)&pdVar2->end = 0xffffffff" (pointer_expression "*(undefined4 *)&pdVar2->end" * (cast_expression "(undefined4 *)&pdVar2->end" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pdVar2->end" & (field_expression "pdVar2->end" identifier -> field_identifier)))) = number_literal) ;) (expression_statement "*(undefined4 *)((int)&pdVar2->end + 4) = 0xffffffff;" (assignment_expression "*(undefined4 *)((int)&pdVar2->end + 4) = 0xffffffff" (pointer_expression "*(undefined4 *)((int)&pdVar2->end + 4)" * (cast_expression "(undefined4 *)((int)&pdVar2->end + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pdVar2->end + 4)" ( (binary_expression "(int)&pdVar2->end + 4" (cast_expression "(int)&pdVar2->end" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pdVar2->end" & (field_expression "pdVar2->end" identifier -> field_identifier))) + number_literal) )))) = number_literal) ;) (expression_statement "pdVar2->start = addr;" (assignment_expression "pdVar2->start = addr" (field_expression "pdVar2->start" identifier -> field_identifier) = identifier) ;) (expression_statement "*(debug_block **)((int)handle + 0x10) = pdVar2;" (assignment_expression "*(debug_block **)((int)handle + 0x10) = pdVar2" (pointer_expression "*(debug_block **)((int)handle + 0x10)" * (cast_expression "(debug_block **)((int)handle + 0x10)" ( (type_descriptor "debug_block **" type_identifier (abstract_pointer_declarator "**" * (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) )))) = identifier) ;) (expression_statement "pdVar1->blocks = pdVar2;" (assignment_expression "pdVar1->blocks = pdVar2" (field_expression "pdVar1->blocks" identifier -> field_identifier) = identifier) ;) (expression_statement "*(debug_function **)((int)handle + 0xc) = pdVar1;" (assignment_expression "*(debug_function **)((int)handle + 0xc) = pdVar1" (pointer_expression "*(debug_function **)((int)handle + 0xc)" * (cast_expression "(debug_function **)((int)handle + 0xc)" ( (type_descriptor "debug_function **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((int)handle + 0xc)" ( (binary_expression "(int)handle + 0xc" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "pdVar3 = debug_add_to_namespace\n                         ((debug_handle *)(*(int *)((int)handle + 8) + 8),(debug_namespace **)name,\n                          (char *)0x3,(global != 0) + DEBUG_OBJECT_TAG,in_stack_ffffffc8);" (assignment_expression "pdVar3 = debug_add_to_namespace\n                         ((debug_handle *)(*(int *)((int)handle + 8) + 8),(debug_namespace **)name,\n                          (char *)0x3,(global != 0) + DEBUG_OBJECT_TAG,in_stack_ffffffc8)" identifier = (call_expression "debug_add_to_namespace\n                         ((debug_handle *)(*(int *)((int)handle + 8) + 8),(debug_namespace **)name,\n                          (char *)0x3,(global != 0) + DEBUG_OBJECT_TAG,in_stack_ffffffc8)" identifier (argument_list "((debug_handle *)(*(int *)((int)handle + 8) + 8),(debug_namespace **)name,\n                          (char *)0x3,(global != 0) + DEBUG_OBJECT_TAG,in_stack_ffffffc8)" ( (cast_expression "(debug_handle *)(*(int *)((int)handle + 8) + 8)" ( (type_descriptor "debug_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)((int)handle + 8) + 8)" ( (binary_expression "*(int *)((int)handle + 8) + 8" (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) )))) + number_literal) ))) , (cast_expression "(debug_namespace **)name" ( (type_descriptor "debug_namespace **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier) , (cast_expression "(char *)0x3" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , (binary_expression "(global != 0) + DEBUG_OBJECT_TAG" (parenthesized_expression "(global != 0)" ( (binary_expression "global != 0" identifier != number_literal) )) + identifier) , identifier )))) ;) (if_statement "if (pdVar3 != (debug_name *)0x0) {\n        (pdVar3->u).function = pdVar1;\n        return 1;\n      }" if (parenthesized_expression "(pdVar3 != (debug_name *)0x0)" ( (binary_expression "pdVar3 != (debug_name *)0x0" identifier != (cast_expression "(debug_name *)0x0" ( (type_descriptor "debug_name *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        (pdVar3->u).function = pdVar1;\n        return 1;\n      }" { (expression_statement "(pdVar3->u).function = pdVar1;" (assignment_expression "(pdVar3->u).function = pdVar1" (field_expression "(pdVar3->u).function" (parenthesized_expression "(pdVar3->u)" ( (field_expression "pdVar3->u" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) }))) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4\nFUN_0003d5a0(int param_1,undefined4 param_2,int param_3,int param_4,undefined4 param_5,\n            undefined4 param_6)\n\n{\n  int *piVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  \n  if (param_3 != 0) {\n    if (*(int *)(param_1 + 4) == 0) {\n      uVar4 = dcgettext(0,"debug_record_function: no debug_set_filename call",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar4);\n    }\n    else {\n      piVar1 = (int *)xmalloc(0xc);\n      piVar1[1] = 0;\n      piVar1[2] = 0;\n      *piVar1 = param_3;\n      puVar2 = (undefined4 *)xmalloc(0x20);\n      uVar5 = 0;\n      *puVar2 = 0;\n      puVar2[7] = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5) = 0;\n        uVar5 = uVar5 + 4;\n      } while (uVar5 < ((int)puVar2 + (0x20 - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc));\n      puVar2[5] = 0xffffffff;\n      puVar2[6] = 0xffffffff;\n      puVar2[3] = param_5;\n      puVar2[4] = param_6;\n      *(undefined4 **)(param_1 + 0x10) = puVar2;\n      piVar1[2] = (int)puVar2;\n      *(int **)(param_1 + 0xc) = piVar1;\n      iVar3 = FUN_0003ba10((param_4 != 0) + '\x01');\n      if (iVar3 != 0) {\n        *(int **)(iVar3 + 0x14) = piVar1;\n        return 1;\n      }\n    }\n  }\n  return 0;\n}\n\n" (function_definition "undefined4\nFUN_0003d5a0(int param_1,undefined4 param_2,int param_3,int param_4,undefined4 param_5,\n            undefined4 param_6)\n\n{\n  int *piVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  \n  if (param_3 != 0) {\n    if (*(int *)(param_1 + 4) == 0) {\n      uVar4 = dcgettext(0,"debug_record_function: no debug_set_filename call",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar4);\n    }\n    else {\n      piVar1 = (int *)xmalloc(0xc);\n      piVar1[1] = 0;\n      piVar1[2] = 0;\n      *piVar1 = param_3;\n      puVar2 = (undefined4 *)xmalloc(0x20);\n      uVar5 = 0;\n      *puVar2 = 0;\n      puVar2[7] = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5) = 0;\n        uVar5 = uVar5 + 4;\n      } while (uVar5 < ((int)puVar2 + (0x20 - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc));\n      puVar2[5] = 0xffffffff;\n      puVar2[6] = 0xffffffff;\n      puVar2[3] = param_5;\n      puVar2[4] = param_6;\n      *(undefined4 **)(param_1 + 0x10) = puVar2;\n      piVar1[2] = (int)puVar2;\n      *(int **)(param_1 + 0xc) = piVar1;\n      iVar3 = FUN_0003ba10((param_4 != 0) + '\x01');\n      if (iVar3 != 0) {\n        *(int **)(iVar3 + 0x14) = piVar1;\n        return 1;\n      }\n    }\n  }\n  return 0;\n}" type_identifier (function_declarator "FUN_0003d5a0(int param_1,undefined4 param_2,int param_3,int param_4,undefined4 param_5,\n            undefined4 param_6)" identifier (parameter_list "(int param_1,undefined4 param_2,int param_3,int param_4,undefined4 param_5,\n            undefined4 param_6)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  \n  if (param_3 != 0) {\n    if (*(int *)(param_1 + 4) == 0) {\n      uVar4 = dcgettext(0,"debug_record_function: no debug_set_filename call",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar4);\n    }\n    else {\n      piVar1 = (int *)xmalloc(0xc);\n      piVar1[1] = 0;\n      piVar1[2] = 0;\n      *piVar1 = param_3;\n      puVar2 = (undefined4 *)xmalloc(0x20);\n      uVar5 = 0;\n      *puVar2 = 0;\n      puVar2[7] = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5) = 0;\n        uVar5 = uVar5 + 4;\n      } while (uVar5 < ((int)puVar2 + (0x20 - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc));\n      puVar2[5] = 0xffffffff;\n      puVar2[6] = 0xffffffff;\n      puVar2[3] = param_5;\n      puVar2[4] = param_6;\n      *(undefined4 **)(param_1 + 0x10) = puVar2;\n      piVar1[2] = (int)puVar2;\n      *(int **)(param_1 + 0xc) = piVar1;\n      iVar3 = FUN_0003ba10((param_4 != 0) + '\x01');\n      if (iVar3 != 0) {\n        *(int **)(iVar3 + 0x14) = piVar1;\n        return 1;\n      }\n    }\n  }\n  return 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (if_statement "if (param_3 != 0) {\n    if (*(int *)(param_1 + 4) == 0) {\n      uVar4 = dcgettext(0,"debug_record_function: no debug_set_filename call",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar4);\n    }\n    else {\n      piVar1 = (int *)xmalloc(0xc);\n      piVar1[1] = 0;\n      piVar1[2] = 0;\n      *piVar1 = param_3;\n      puVar2 = (undefined4 *)xmalloc(0x20);\n      uVar5 = 0;\n      *puVar2 = 0;\n      puVar2[7] = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5) = 0;\n        uVar5 = uVar5 + 4;\n      } while (uVar5 < ((int)puVar2 + (0x20 - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc));\n      puVar2[5] = 0xffffffff;\n      puVar2[6] = 0xffffffff;\n      puVar2[3] = param_5;\n      puVar2[4] = param_6;\n      *(undefined4 **)(param_1 + 0x10) = puVar2;\n      piVar1[2] = (int)puVar2;\n      *(int **)(param_1 + 0xc) = piVar1;\n      iVar3 = FUN_0003ba10((param_4 != 0) + '\x01');\n      if (iVar3 != 0) {\n        *(int **)(iVar3 + 0x14) = piVar1;\n        return 1;\n      }\n    }\n  }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n    if (*(int *)(param_1 + 4) == 0) {\n      uVar4 = dcgettext(0,"debug_record_function: no debug_set_filename call",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar4);\n    }\n    else {\n      piVar1 = (int *)xmalloc(0xc);\n      piVar1[1] = 0;\n      piVar1[2] = 0;\n      *piVar1 = param_3;\n      puVar2 = (undefined4 *)xmalloc(0x20);\n      uVar5 = 0;\n      *puVar2 = 0;\n      puVar2[7] = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5) = 0;\n        uVar5 = uVar5 + 4;\n      } while (uVar5 < ((int)puVar2 + (0x20 - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc));\n      puVar2[5] = 0xffffffff;\n      puVar2[6] = 0xffffffff;\n      puVar2[3] = param_5;\n      puVar2[4] = param_6;\n      *(undefined4 **)(param_1 + 0x10) = puVar2;\n      piVar1[2] = (int)puVar2;\n      *(int **)(param_1 + 0xc) = piVar1;\n      iVar3 = FUN_0003ba10((param_4 != 0) + '\x01');\n      if (iVar3 != 0) {\n        *(int **)(iVar3 + 0x14) = piVar1;\n        return 1;\n      }\n    }\n  }" { (if_statement "if (*(int *)(param_1 + 4) == 0) {\n      uVar4 = dcgettext(0,"debug_record_function: no debug_set_filename call",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar4);\n    }\n    else {\n      piVar1 = (int *)xmalloc(0xc);\n      piVar1[1] = 0;\n      piVar1[2] = 0;\n      *piVar1 = param_3;\n      puVar2 = (undefined4 *)xmalloc(0x20);\n      uVar5 = 0;\n      *puVar2 = 0;\n      puVar2[7] = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5) = 0;\n        uVar5 = uVar5 + 4;\n      } while (uVar5 < ((int)puVar2 + (0x20 - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc));\n      puVar2[5] = 0xffffffff;\n      puVar2[6] = 0xffffffff;\n      puVar2[3] = param_5;\n      puVar2[4] = param_6;\n      *(undefined4 **)(param_1 + 0x10) = puVar2;\n      piVar1[2] = (int)puVar2;\n      *(int **)(param_1 + 0xc) = piVar1;\n      iVar3 = FUN_0003ba10((param_4 != 0) + '\x01');\n      if (iVar3 != 0) {\n        *(int **)(iVar3 + 0x14) = piVar1;\n        return 1;\n      }\n    }" if (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) )) (compound_statement "{\n      uVar4 = dcgettext(0,"debug_record_function: no debug_set_filename call",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar4);\n    }" { (expression_statement "uVar4 = dcgettext(0,"debug_record_function: no debug_set_filename call",5);" (assignment_expression "uVar4 = dcgettext(0,"debug_record_function: no debug_set_filename call",5)" identifier = (call_expression "dcgettext(0,"debug_record_function: no debug_set_filename call",5)" identifier (argument_list "(0,"debug_record_function: no debug_set_filename call",5)" ( number_literal , (string_literal ""debug_record_function: no debug_set_filename call"" " 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      piVar1 = (int *)xmalloc(0xc);\n      piVar1[1] = 0;\n      piVar1[2] = 0;\n      *piVar1 = param_3;\n      puVar2 = (undefined4 *)xmalloc(0x20);\n      uVar5 = 0;\n      *puVar2 = 0;\n      puVar2[7] = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5) = 0;\n        uVar5 = uVar5 + 4;\n      } while (uVar5 < ((int)puVar2 + (0x20 - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc));\n      puVar2[5] = 0xffffffff;\n      puVar2[6] = 0xffffffff;\n      puVar2[3] = param_5;\n      puVar2[4] = param_6;\n      *(undefined4 **)(param_1 + 0x10) = puVar2;\n      piVar1[2] = (int)puVar2;\n      *(int **)(param_1 + 0xc) = piVar1;\n      iVar3 = FUN_0003ba10((param_4 != 0) + '\x01');\n      if (iVar3 != 0) {\n        *(int **)(iVar3 + 0x14) = piVar1;\n        return 1;\n      }\n    }" else (compound_statement "{\n      piVar1 = (int *)xmalloc(0xc);\n      piVar1[1] = 0;\n      piVar1[2] = 0;\n      *piVar1 = param_3;\n      puVar2 = (undefined4 *)xmalloc(0x20);\n      uVar5 = 0;\n      *puVar2 = 0;\n      puVar2[7] = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5) = 0;\n        uVar5 = uVar5 + 4;\n      } while (uVar5 < ((int)puVar2 + (0x20 - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc));\n      puVar2[5] = 0xffffffff;\n      puVar2[6] = 0xffffffff;\n      puVar2[3] = param_5;\n      puVar2[4] = param_6;\n      *(undefined4 **)(param_1 + 0x10) = puVar2;\n      piVar1[2] = (int)puVar2;\n      *(int **)(param_1 + 0xc) = piVar1;\n      iVar3 = FUN_0003ba10((param_4 != 0) + '\x01');\n      if (iVar3 != 0) {\n        *(int **)(iVar3 + 0x14) = piVar1;\n        return 1;\n      }\n    }" { (expression_statement "piVar1 = (int *)xmalloc(0xc);" (assignment_expression "piVar1 = (int *)xmalloc(0xc)" identifier = (cast_expression "(int *)xmalloc(0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "piVar1[1] = 0;" (assignment_expression "piVar1[1] = 0" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[2] = 0;" (assignment_expression "piVar1[2] = 0" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*piVar1 = param_3;" (assignment_expression "*piVar1 = param_3" (pointer_expression "*piVar1" * identifier) = identifier) ;) (expression_statement "puVar2 = (undefined4 *)xmalloc(0x20);" (assignment_expression "puVar2 = (undefined4 *)xmalloc(0x20)" identifier = (cast_expression "(undefined4 *)xmalloc(0x20)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x20)" identifier (argument_list "(0x20)" ( number_literal ))))) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "puVar2[7] = 0;" (assignment_expression "puVar2[7] = 0" (subscript_expression "puVar2[7]" identifier [ number_literal ]) = number_literal) ;) (do_statement "do {\n        *(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5) = 0;\n        uVar5 = uVar5 + 4;\n      } while (uVar5 < ((int)puVar2 + (0x20 - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc));" do (compound_statement "{\n        *(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5) = 0;\n        uVar5 = uVar5 + 4;\n      }" { (expression_statement "*(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5) = 0;" (assignment_expression "*(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5) = 0" (pointer_expression "*(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5)" * (cast_expression "(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5)" ( (binary_expression "((uint)(puVar2 + 1) & 0xfffffffc) + uVar5" (parenthesized_expression "((uint)(puVar2 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(puVar2 + 1) & 0xfffffffc" (call_expression "(uint)(puVar2 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar2 + 1)" ( (binary_expression "puVar2 + 1" identifier + number_literal) ))) & number_literal) )) + identifier) )))) = number_literal) ;) (expression_statement "uVar5 = uVar5 + 4;" (assignment_expression "uVar5 = uVar5 + 4" identifier = (binary_expression "uVar5 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar5 < ((int)puVar2 + (0x20 - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc))" ( (binary_expression "uVar5 < ((int)puVar2 + (0x20 - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc)" identifier < (parenthesized_expression "((int)puVar2 + (0x20 - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc)" ( (binary_expression "(int)puVar2 + (0x20 - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc" (binary_expression "(int)puVar2 + (0x20 - ((uint)(puVar2 + 1) & 0xfffffffc))" (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x20 - ((uint)(puVar2 + 1) & 0xfffffffc))" ( (binary_expression "0x20 - ((uint)(puVar2 + 1) & 0xfffffffc)" number_literal - (parenthesized_expression "((uint)(puVar2 + 1) & 0xfffffffc)" ( (binary_expression "(uint)(puVar2 + 1) & 0xfffffffc" (call_expression "(uint)(puVar2 + 1)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(puVar2 + 1)" ( (binary_expression "puVar2 + 1" identifier + number_literal) ))) & number_literal) ))) ))) & number_literal) ))) )) ;) (expression_statement "puVar2[5] = 0xffffffff;" (assignment_expression "puVar2[5] = 0xffffffff" (subscript_expression "puVar2[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[6] = 0xffffffff;" (assignment_expression "puVar2[6] = 0xffffffff" (subscript_expression "puVar2[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar2[3] = param_5;" (assignment_expression "puVar2[3] = param_5" (subscript_expression "puVar2[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2[4] = param_6;" (assignment_expression "puVar2[4] = param_6" (subscript_expression "puVar2[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*(undefined4 **)(param_1 + 0x10) = puVar2;" (assignment_expression "*(undefined4 **)(param_1 + 0x10) = puVar2" (pointer_expression "*(undefined4 **)(param_1 + 0x10)" * (cast_expression "(undefined4 **)(param_1 + 0x10)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x10)" ( (binary_expression "param_1 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "piVar1[2] = (int)puVar2;" (assignment_expression "piVar1[2] = (int)puVar2" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = (cast_expression "(int)puVar2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*(int **)(param_1 + 0xc) = piVar1;" (assignment_expression "*(int **)(param_1 + 0xc) = piVar1" (pointer_expression "*(int **)(param_1 + 0xc)" * (cast_expression "(int **)(param_1 + 0xc)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar3 = FUN_0003ba10((param_4 != 0) + '\x01');" (assignment_expression "iVar3 = FUN_0003ba10((param_4 != 0) + '\x01')" identifier = (call_expression "FUN_0003ba10((param_4 != 0) + '\x01')" identifier (argument_list "((param_4 != 0) + '\x01')" ( (binary_expression "(param_4 != 0) + '\x01'" (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) + (char_literal "'\x01'" ' escape_sequence ')) )))) ;) (if_statement "if (iVar3 != 0) {\n        *(int **)(iVar3 + 0x14) = piVar1;\n        return 1;\n      }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n        *(int **)(iVar3 + 0x14) = piVar1;\n        return 1;\n      }" { (expression_statement "*(int **)(iVar3 + 0x14) = piVar1;" (assignment_expression "*(int **)(iVar3 + 0x14) = piVar1" (pointer_expression "*(int **)(iVar3 + 0x14)" * (cast_expression "(int **)(iVar3 + 0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0x14)" ( (binary_expression "iVar3 + 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 (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (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 { (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 ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) )) + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression LIT - (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) ))) ))) & LIT) ))) )) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (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) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) 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) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) + (char_literal ' escape_sequence ')) )))) ;) (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 * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return LIT ;) })) }))) })) (return_statement return LIT ;) })))
(function_definition "undefined4\nFUN_0003d5a0(int param_1,undefined4 param_2,int param_3,int param_4,undefined4 param_5,\n            undefined4 param_6)\n\n{\n  int *piVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  \n  if (param_3 != 0) {\n    if (*(int *)(param_1 + 4) == 0) {\n      uVar4 = dcgettext(0,"debug_record_function: no debug_set_filename call",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar4);\n    }\n    else {\n      piVar1 = (int *)xmalloc(0xc);\n      piVar1[1] = 0;\n      piVar1[2] = 0;\n      *piVar1 = param_3;\n      puVar2 = (undefined4 *)xmalloc(0x20);\n      uVar5 = 0;\n      *puVar2 = 0;\n      puVar2[7] = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5) = 0;\n        uVar5 = uVar5 + 4;\n      } while (uVar5 < ((int)puVar2 + (0x20 - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc));\n      puVar2[5] = 0xffffffff;\n      puVar2[6] = 0xffffffff;\n      puVar2[3] = param_5;\n      puVar2[4] = param_6;\n      *(undefined4 **)(param_1 + 0x10) = puVar2;\n      piVar1[2] = (int)puVar2;\n      *(int **)(param_1 + 0xc) = piVar1;\n      iVar3 = FUN_0003ba10((param_4 != 0) + '\x01');\n      if (iVar3 != 0) {\n        *(int **)(iVar3 + 0x14) = piVar1;\n        return 1;\n      }\n    }\n  }\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_0003d5a0(int param_1,undefined4 param_2,int param_3,int param_4,undefined4 param_5,\n            undefined4 param_6)" (identifier "FUN_0003d5a0") (parameter_list "(int param_1,undefined4 param_2,int param_3,int param_4,undefined4 param_5,\n            undefined4 param_6)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (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 "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) (, ",") (parameter_declaration "undefined4 param_6" (type_identifier "undefined4") (identifier "param_6")) () ")"))) (compound_statement "{\n  int *piVar1;\n  undefined4 *puVar2;\n  int iVar3;\n  undefined4 uVar4;\n  uint uVar5;\n  \n  if (param_3 != 0) {\n    if (*(int *)(param_1 + 4) == 0) {\n      uVar4 = dcgettext(0,"debug_record_function: no debug_set_filename call",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar4);\n    }\n    else {\n      piVar1 = (int *)xmalloc(0xc);\n      piVar1[1] = 0;\n      piVar1[2] = 0;\n      *piVar1 = param_3;\n      puVar2 = (undefined4 *)xmalloc(0x20);\n      uVar5 = 0;\n      *puVar2 = 0;\n      puVar2[7] = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5) = 0;\n        uVar5 = uVar5 + 4;\n      } while (uVar5 < ((int)puVar2 + (0x20 - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc));\n      puVar2[5] = 0xffffffff;\n      puVar2[6] = 0xffffffff;\n      puVar2[3] = param_5;\n      puVar2[4] = param_6;\n      *(undefined4 **)(param_1 + 0x10) = puVar2;\n      piVar1[2] = (int)puVar2;\n      *(int **)(param_1 + 0xc) = piVar1;\n      iVar3 = FUN_0003ba10((param_4 != 0) + '\x01');\n      if (iVar3 != 0) {\n        *(int **)(iVar3 + 0x14) = piVar1;\n        return 1;\n      }\n    }\n  }\n  return 0;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (if_statement "if (param_3 != 0) {\n    if (*(int *)(param_1 + 4) == 0) {\n      uVar4 = dcgettext(0,"debug_record_function: no debug_set_filename call",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar4);\n    }\n    else {\n      piVar1 = (int *)xmalloc(0xc);\n      piVar1[1] = 0;\n      piVar1[2] = 0;\n      *piVar1 = param_3;\n      puVar2 = (undefined4 *)xmalloc(0x20);\n      uVar5 = 0;\n      *puVar2 = 0;\n      puVar2[7] = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5) = 0;\n        uVar5 = uVar5 + 4;\n      } while (uVar5 < ((int)puVar2 + (0x20 - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc));\n      puVar2[5] = 0xffffffff;\n      puVar2[6] = 0xffffffff;\n      puVar2[3] = param_5;\n      puVar2[4] = param_6;\n      *(undefined4 **)(param_1 + 0x10) = puVar2;\n      piVar1[2] = (int)puVar2;\n      *(int **)(param_1 + 0xc) = piVar1;\n      iVar3 = FUN_0003ba10((param_4 != 0) + '\x01');\n      if (iVar3 != 0) {\n        *(int **)(iVar3 + 0x14) = piVar1;\n        return 1;\n      }\n    }\n  }" (if "if") (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) {\n      uVar4 = dcgettext(0,"debug_record_function: no debug_set_filename call",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar4);\n    }\n    else {\n      piVar1 = (int *)xmalloc(0xc);\n      piVar1[1] = 0;\n      piVar1[2] = 0;\n      *piVar1 = param_3;\n      puVar2 = (undefined4 *)xmalloc(0x20);\n      uVar5 = 0;\n      *puVar2 = 0;\n      puVar2[7] = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5) = 0;\n        uVar5 = uVar5 + 4;\n      } while (uVar5 < ((int)puVar2 + (0x20 - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc));\n      puVar2[5] = 0xffffffff;\n      puVar2[6] = 0xffffffff;\n      puVar2[3] = param_5;\n      puVar2[4] = param_6;\n      *(undefined4 **)(param_1 + 0x10) = puVar2;\n      piVar1[2] = (int)puVar2;\n      *(int **)(param_1 + 0xc) = piVar1;\n      iVar3 = FUN_0003ba10((param_4 != 0) + '\x01');\n      if (iVar3 != 0) {\n        *(int **)(iVar3 + 0x14) = piVar1;\n        return 1;\n      }\n    }\n  }" ({ "{") (if_statement "if (*(int *)(param_1 + 4) == 0) {\n      uVar4 = dcgettext(0,"debug_record_function: no debug_set_filename call",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar4);\n    }\n    else {\n      piVar1 = (int *)xmalloc(0xc);\n      piVar1[1] = 0;\n      piVar1[2] = 0;\n      *piVar1 = param_3;\n      puVar2 = (undefined4 *)xmalloc(0x20);\n      uVar5 = 0;\n      *puVar2 = 0;\n      puVar2[7] = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5) = 0;\n        uVar5 = uVar5 + 4;\n      } while (uVar5 < ((int)puVar2 + (0x20 - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc));\n      puVar2[5] = 0xffffffff;\n      puVar2[6] = 0xffffffff;\n      puVar2[3] = param_5;\n      puVar2[4] = param_6;\n      *(undefined4 **)(param_1 + 0x10) = puVar2;\n      piVar1[2] = (int)puVar2;\n      *(int **)(param_1 + 0xc) = piVar1;\n      iVar3 = FUN_0003ba10((param_4 != 0) + '\x01');\n      if (iVar3 != 0) {\n        *(int **)(iVar3 + 0x14) = piVar1;\n        return 1;\n      }\n    }" (if "if") (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")) () ")")) (compound_statement "{\n      uVar4 = dcgettext(0,"debug_record_function: no debug_set_filename call",5);\n      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar4);\n    }" ({ "{") (expression_statement "uVar4 = dcgettext(0,"debug_record_function: no debug_set_filename call",5);" (assignment_expression "uVar4 = dcgettext(0,"debug_record_function: no debug_set_filename call",5)" (identifier "uVar4") (= "=") (call_expression "dcgettext(0,"debug_record_function: no debug_set_filename call",5)" (identifier "dcgettext") (argument_list "(0,"debug_record_function: no debug_set_filename call",5)" (( "(") (number_literal "0") (, ",") (string_literal ""debug_record_function: no debug_set_filename call"" (" """) (string_content "debug_record_function: no debug_set_filename call") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar4);" (call_expression "fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar4)" (identifier "fprintf") (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 "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_stderr_00072fbc"))) (, ",") (string_literal ""%s\n"" (" """) (string_content "%s") (escape_sequence "\n") (" """)) (, ",") (identifier "uVar4") () ")"))) (; ";")) (} "}")) (else_clause "else {\n      piVar1 = (int *)xmalloc(0xc);\n      piVar1[1] = 0;\n      piVar1[2] = 0;\n      *piVar1 = param_3;\n      puVar2 = (undefined4 *)xmalloc(0x20);\n      uVar5 = 0;\n      *puVar2 = 0;\n      puVar2[7] = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5) = 0;\n        uVar5 = uVar5 + 4;\n      } while (uVar5 < ((int)puVar2 + (0x20 - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc));\n      puVar2[5] = 0xffffffff;\n      puVar2[6] = 0xffffffff;\n      puVar2[3] = param_5;\n      puVar2[4] = param_6;\n      *(undefined4 **)(param_1 + 0x10) = puVar2;\n      piVar1[2] = (int)puVar2;\n      *(int **)(param_1 + 0xc) = piVar1;\n      iVar3 = FUN_0003ba10((param_4 != 0) + '\x01');\n      if (iVar3 != 0) {\n        *(int **)(iVar3 + 0x14) = piVar1;\n        return 1;\n      }\n    }" (else "else") (compound_statement "{\n      piVar1 = (int *)xmalloc(0xc);\n      piVar1[1] = 0;\n      piVar1[2] = 0;\n      *piVar1 = param_3;\n      puVar2 = (undefined4 *)xmalloc(0x20);\n      uVar5 = 0;\n      *puVar2 = 0;\n      puVar2[7] = 0;\n      do {\n        *(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5) = 0;\n        uVar5 = uVar5 + 4;\n      } while (uVar5 < ((int)puVar2 + (0x20 - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc));\n      puVar2[5] = 0xffffffff;\n      puVar2[6] = 0xffffffff;\n      puVar2[3] = param_5;\n      puVar2[4] = param_6;\n      *(undefined4 **)(param_1 + 0x10) = puVar2;\n      piVar1[2] = (int)puVar2;\n      *(int **)(param_1 + 0xc) = piVar1;\n      iVar3 = FUN_0003ba10((param_4 != 0) + '\x01');\n      if (iVar3 != 0) {\n        *(int **)(iVar3 + 0x14) = piVar1;\n        return 1;\n      }\n    }" ({ "{") (expression_statement "piVar1 = (int *)xmalloc(0xc);" (assignment_expression "piVar1 = (int *)xmalloc(0xc)" (identifier "piVar1") (= "=") (cast_expression "(int *)xmalloc(0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0xc)" (identifier "xmalloc") (argument_list "(0xc)" (( "(") (number_literal "0xc") () ")"))))) (; ";")) (expression_statement "piVar1[1] = 0;" (assignment_expression "piVar1[1] = 0" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar1[2] = 0;" (assignment_expression "piVar1[2] = 0" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*piVar1 = param_3;" (assignment_expression "*piVar1 = param_3" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "puVar2 = (undefined4 *)xmalloc(0x20);" (assignment_expression "puVar2 = (undefined4 *)xmalloc(0x20)" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)xmalloc(0x20)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0x20)" (identifier "xmalloc") (argument_list "(0x20)" (( "(") (number_literal "0x20") () ")"))))) (; ";")) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" (identifier "uVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "*puVar2 = 0;" (assignment_expression "*puVar2 = 0" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2[7] = 0;" (assignment_expression "puVar2[7] = 0" (subscript_expression "puVar2[7]" (identifier "puVar2") ([ "[") (number_literal "7") (] "]")) (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        *(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5) = 0;\n        uVar5 = uVar5 + 4;\n      } while (uVar5 < ((int)puVar2 + (0x20 - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc));" (do "do") (compound_statement "{\n        *(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5) = 0;\n        uVar5 = uVar5 + 4;\n      }" ({ "{") (expression_statement "*(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5) = 0;" (assignment_expression "*(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5) = 0" (pointer_expression "*(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5)" (* "*") (cast_expression "(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5)" (( "(") (binary_expression "((uint)(puVar2 + 1) & 0xfffffffc) + uVar5" (parenthesized_expression "((uint)(puVar2 + 1) & 0xfffffffc)" (( "(") (binary_expression "(uint)(puVar2 + 1) & 0xfffffffc" (call_expression "(uint)(puVar2 + 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(puVar2 + 1)" (( "(") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")")) (+ "+") (identifier "uVar5")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar5 = uVar5 + 4;" (assignment_expression "uVar5 = uVar5 + 4" (identifier "uVar5") (= "=") (binary_expression "uVar5 + 4" (identifier "uVar5") (+ "+") (number_literal "4"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar5 < ((int)puVar2 + (0x20 - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc))" (( "(") (binary_expression "uVar5 < ((int)puVar2 + (0x20 - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc)" (identifier "uVar5") (< "<") (parenthesized_expression "((int)puVar2 + (0x20 - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc)" (( "(") (binary_expression "(int)puVar2 + (0x20 - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc" (binary_expression "(int)puVar2 + (0x20 - ((uint)(puVar2 + 1) & 0xfffffffc))" (cast_expression "(int)puVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar2")) (+ "+") (parenthesized_expression "(0x20 - ((uint)(puVar2 + 1) & 0xfffffffc))" (( "(") (binary_expression "0x20 - ((uint)(puVar2 + 1) & 0xfffffffc)" (number_literal "0x20") (- "-") (parenthesized_expression "((uint)(puVar2 + 1) & 0xfffffffc)" (( "(") (binary_expression "(uint)(puVar2 + 1) & 0xfffffffc" (call_expression "(uint)(puVar2 + 1)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(puVar2 + 1)" (( "(") (binary_expression "puVar2 + 1" (identifier "puVar2") (+ "+") (number_literal "1")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")"))) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")"))) () ")")) (; ";")) (expression_statement "puVar2[5] = 0xffffffff;" (assignment_expression "puVar2[5] = 0xffffffff" (subscript_expression "puVar2[5]" (identifier "puVar2") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "puVar2[6] = 0xffffffff;" (assignment_expression "puVar2[6] = 0xffffffff" (subscript_expression "puVar2[6]" (identifier "puVar2") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "puVar2[3] = param_5;" (assignment_expression "puVar2[3] = param_5" (subscript_expression "puVar2[3]" (identifier "puVar2") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "param_5")) (; ";")) (expression_statement "puVar2[4] = param_6;" (assignment_expression "puVar2[4] = param_6" (subscript_expression "puVar2[4]" (identifier "puVar2") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "param_6")) (; ";")) (expression_statement "*(undefined4 **)(param_1 + 0x10) = puVar2;" (assignment_expression "*(undefined4 **)(param_1 + 0x10) = puVar2" (pointer_expression "*(undefined4 **)(param_1 + 0x10)" (* "*") (cast_expression "(undefined4 **)(param_1 + 0x10)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x10)" (( "(") (binary_expression "param_1 + 0x10" (identifier "param_1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "puVar2")) (; ";")) (expression_statement "piVar1[2] = (int)puVar2;" (assignment_expression "piVar1[2] = (int)puVar2" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (cast_expression "(int)puVar2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar2"))) (; ";")) (expression_statement "*(int **)(param_1 + 0xc) = piVar1;" (assignment_expression "*(int **)(param_1 + 0xc) = piVar1" (pointer_expression "*(int **)(param_1 + 0xc)" (* "*") (cast_expression "(int **)(param_1 + 0xc)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "piVar1")) (; ";")) (expression_statement "iVar3 = FUN_0003ba10((param_4 != 0) + '\x01');" (assignment_expression "iVar3 = FUN_0003ba10((param_4 != 0) + '\x01')" (identifier "iVar3") (= "=") (call_expression "FUN_0003ba10((param_4 != 0) + '\x01')" (identifier "FUN_0003ba10") (argument_list "((param_4 != 0) + '\x01')" (( "(") (binary_expression "(param_4 != 0) + '\x01'" (parenthesized_expression "(param_4 != 0)" (( "(") (binary_expression "param_4 != 0" (identifier "param_4") (!= "!=") (number_literal "0")) () ")")) (+ "+") (char_literal "'\x01'" (' "'") (escape_sequence "\x01") (' "'"))) () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\n        *(int **)(iVar3 + 0x14) = piVar1;\n        return 1;\n      }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        *(int **)(iVar3 + 0x14) = piVar1;\n        return 1;\n      }" ({ "{") (expression_statement "*(int **)(iVar3 + 0x14) = piVar1;" (assignment_expression "*(int **)(iVar3 + 0x14) = piVar1" (pointer_expression "*(int **)(iVar3 + 0x14)" (* "*") (cast_expression "(int **)(iVar3 + 0x14)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar3 + 0x14)" (( "(") (binary_expression "iVar3 + 0x14" (identifier "iVar3") (+ "+") (number_literal "0x14")) () ")")))) (= "=") (identifier "piVar1")) (; ";")) (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 */

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

{
  type_4 *pdVar1;
  type_5 *pdVar2;
  type_6 *var_11;
  type_7 uVar4;
  type_8 var_7;
  type_8 var_6;
  type_9 in_stack_ffffffc8;
  
  if (var_1 == (char *)0x0) {
    var_1 = &DAT_0004fa07;
  }
  if (var_2 != (type_2)0x0) {
    if (*(int *)((int)handle + 4) == 0) {
      uVar4 = var_3(0,"debug_record_function: no debug_set_filename call",5);
      var_4(*(type_10 **)PTR_stderr_00072fbc,"%s\n",uVar4);
    }
    else {
      pdVar1 = (type_4 *)var_5(0xc);
      pdVar1->parameters = (type_11 *)0x0;
      pdVar1->blocks = (type_5 *)0x0;
      pdVar1->var_2 = var_2;
      pdVar2 = (type_5 *)var_5(0x20);
      var_7 = 0;
      pdVar2->next = (type_5 *)0x0;
      var_6 = (type_8)&pdVar2->parent & 0xfffffffc;
      pdVar2->locals = (type_12 *)0x0;
      do {
        *(type_7 *)(var_6 + var_7) = 0;
        var_7 = var_7 + 4;
      } while (var_7 < ((int)pdVar2 + (0x20 - var_6) & 0xfffffffc));
      *(type_7 *)&pdVar2->end = 0xffffffff;
      *(type_7 *)((int)&pdVar2->end + 4) = 0xffffffff;
      pdVar2->start = addr;
      *(type_5 **)((int)handle + 0x10) = pdVar2;
      pdVar1->blocks = pdVar2;
      *(type_4 **)((int)handle + 0xc) = pdVar1;
      var_11 = var_8
                         ((type_13 *)(*(int *)((int)handle + 8) + 8),(type_12 **)var_1,
                          (char *)0x3,(var_9 != 0) + var_10,in_stack_ffffffc8);
      if (var_11 != (type_6 *)0x0) {
        (var_11->u).function = pdVar1;
        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: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) 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: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (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 (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: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (do_statement body: (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: (parenthesized_expression (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))) right: (number_literal))) right: (identifier))))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (parenthesized_expression (binary_expression left: (number_literal) right: (parenthesized_expression (binary_expression left: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)))) right: (number_literal)))))) right: (number_literal)))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) (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: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (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))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (char_literal (escape_sequence))))))) (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: (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,undefined4 param_2,int param_3,int param_4,undefined4 param_5,
            undefined4 param_6)

{
  int *piVar1;
  undefined4 *puVar2;
  int iVar3;
  undefined4 uVar4;
  uint uVar5;
  
  if (param_3 != 0) {
    if (*(int *)(param_1 + 4) == 0) {
      uVar4 = dcgettext(0,"debug_record_function: no debug_set_filename call",5);
      fprintf(*(FILE **)PTR_stderr_00072fbc,"%s\n",uVar4);
    }
    else {
      piVar1 = (int *)xmalloc(0xc);
      piVar1[1] = 0;
      piVar1[2] = 0;
      *piVar1 = param_3;
      puVar2 = (undefined4 *)xmalloc(0x20);
      uVar5 = 0;
      *puVar2 = 0;
      puVar2[7] = 0;
      do {
        *(undefined4 *)(((uint)(puVar2 + 1) & 0xfffffffc) + uVar5) = 0;
        uVar5 = uVar5 + 4;
      } while (uVar5 < ((int)puVar2 + (0x20 - ((uint)(puVar2 + 1) & 0xfffffffc)) & 0xfffffffc));
      puVar2[5] = 0xffffffff;
      puVar2[6] = 0xffffffff;
      puVar2[3] = param_5;
      puVar2[4] = param_6;
      *(undefined4 **)(param_1 + 0x10) = puVar2;
      piVar1[2] = (int)puVar2;
      *(int **)(param_1 + 0xc) = piVar1;
      iVar3 = FUN_0003ba10((param_4 != 0) + '\x01');
      if (iVar3 != 0) {
        *(int **)(iVar3 + 0x14) = piVar1;
        return 1;
      }
    }
  }
  return 0;
}

