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

bfd_boolean
debug_record_parameter
          (void *handle,char *name,debug_type_conflict type,debug_parm_kind kind,bfd_vma val)

{
  int iVar1;
  undefined4 *puVar2;
  undefined4 *puVar3;
  undefined4 uVar4;
  undefined4 *puVar5;
  
  if ((name == (char *)0x0) || (type == (debug_type_conflict)0x0)) {
    return 0;
  }
  if ((*(int *)((int)handle + 4) != 0) && (*(int *)((int)handle + 0xc) != 0)) {
    puVar3 = (undefined4 *)xmalloc(0x18);
    iVar1 = *(int *)((int)handle + 0xc);
    *puVar3 = 0;
    puVar3[1] = name;
    puVar2 = *(undefined4 **)(iVar1 + 4);
    puVar3[4] = (undefined4)val;
    puVar3[2] = type;
    puVar3[5] = val._4_4_;
    puVar3[3] = kind;
    if (puVar2 == (undefined4 *)0x0) {
      puVar5 = (undefined4 *)(iVar1 + 4);
    }
    else {
      do {
        puVar5 = puVar2;
        puVar2 = (undefined4 *)*puVar5;
      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);
    }
    *puVar5 = puVar3;
    return 1;
  }
  uVar4 = dcgettext(0,"debug_record_parameter: no current function",5);
  fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);
  return 0;
}



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

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

{
  int iVar1;
  undefined4 *puVar2;
  undefined4 *puVar3;
  undefined4 uVar4;
  undefined4 *puVar5;
  
  if ((param_2 == 0) || (param_3 == 0)) {
    return 0;
  }
  if ((*(int *)(param_1 + 4) != 0) && (*(int *)(param_1 + 0xc) != 0)) {
    puVar3 = (undefined4 *)xmalloc(0x18);
    iVar1 = *(int *)(param_1 + 0xc);
    *puVar3 = 0;
    puVar3[1] = param_2;
    puVar2 = *(undefined4 **)(iVar1 + 4);
    puVar3[4] = param_5;
    puVar3[2] = param_3;
    puVar3[5] = param_6;
    puVar3[3] = param_4;
    if (puVar2 == (undefined4 *)0x0) {
      puVar5 = (undefined4 *)(iVar1 + 4);
    }
    else {
      do {
        puVar5 = puVar2;
        puVar2 = (undefined4 *)*puVar5;
      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);
    }
    *puVar5 = puVar3;
    return 1;
  }
  uVar4 = dcgettext(0,"debug_record_parameter: no current function",5);
  fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);
  return 0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000166c0
ADD EBX,0x20f97
SUB ESP,0xc
MOV EAX,dword ptr [ESP + 0x24]
MOV ESI,dword ptr [ESP + 0x20]
MOV EDI,dword ptr [ESP + 0x30]
MOV EBP,dword ptr [ESP + 0x34]
TEST EAX,EAX
JZ 0x0001f140
MOV ECX,dword ptr [ESP + 0x28]
TEST ECX,ECX
JZ 0x0001f140
MOV EDX,dword ptr [ESI + 0x4]
TEST EDX,EDX
JZ 0x0001f100
MOV EAX,dword ptr [ESI + 0xc]
TEST EAX,EAX
JZ 0x0001f100
SUB ESP,0xc
PUSH 0x18
CALL 0x000132e0
MOV EBX,dword ptr [ESP + 0x34]
MOV EDX,dword ptr [ESI + 0xc]
MOV dword ptr [EAX],0x0
MOV dword ptr [EAX + 0x4],EBX
MOV EBX,dword ptr [ESP + 0x38]
MOV ECX,dword ptr [EDX + 0x4]
MOV dword ptr [EAX + 0x10],EDI
MOV dword ptr [EAX + 0x8],EBX
MOV EBX,dword ptr [ESP + 0x3c]
ADD ESP,0x10
MOV dword ptr [EAX + 0x14],EBP
MOV dword ptr [EAX + 0xc],EBX
TEST ECX,ECX
JNZ 0x0001f0e2
JMP 0x0001f150
MOV ECX,EDX
MOV EDX,dword ptr [ECX]
TEST EDX,EDX
JNZ 0x0001f0e0
MOV dword ptr [ECX],EAX
ADD ESP,0xc
MOV EAX,0x1
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0x4
LEA EAX,[EBX + 0xffff39ec]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00013200
ADD ESP,0xc
PUSH EAX
LEA EAX,[EBX + 0xffff532f]
PUSH EAX
MOV EAX,dword ptr [EBX + 0xffffffa8]
PUSH dword ptr [EAX]
CALL 0x00013520
ADD ESP,0x10
XOR EAX,EAX
ADD ESP,0xc
POP EBX
POP ESI
POP EDI
POP EBP
RET
ADD ESP,0xc
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA ECX,[EDX + 0x4]
JMP 0x0001f0e8
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4\nFUN_0001f060(int param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n            undefined4 param_6)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  \n  if ((param_2 == 0) || (param_3 == 0)) {\n    return 0;\n  }\n  if ((*(int *)(param_1 + 4) != 0) && (*(int *)(param_1 + 0xc) != 0)) {\n    puVar3 = (undefined4 *)xmalloc(0x18);\n    iVar1 = *(int *)(param_1 + 0xc);\n    *puVar3 = 0;\n    puVar3[1] = param_2;\n    puVar2 = *(undefined4 **)(iVar1 + 4);\n    puVar3[4] = param_5;\n    puVar3[2] = param_3;\n    puVar3[5] = param_6;\n    puVar3[3] = param_4;\n    if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 4);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }\n    *puVar5 = puVar3;\n    return 1;\n  }\n  uVar4 = dcgettext(0,"debug_record_parameter: no current function",5);\n  fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);\n  return 0;\n}\n\n" comment (function_definition "undefined4\nFUN_0001f060(int param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n            undefined4 param_6)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  \n  if ((param_2 == 0) || (param_3 == 0)) {\n    return 0;\n  }\n  if ((*(int *)(param_1 + 4) != 0) && (*(int *)(param_1 + 0xc) != 0)) {\n    puVar3 = (undefined4 *)xmalloc(0x18);\n    iVar1 = *(int *)(param_1 + 0xc);\n    *puVar3 = 0;\n    puVar3[1] = param_2;\n    puVar2 = *(undefined4 **)(iVar1 + 4);\n    puVar3[4] = param_5;\n    puVar3[2] = param_3;\n    puVar3[5] = param_6;\n    puVar3[3] = param_4;\n    if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 4);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }\n    *puVar5 = puVar3;\n    return 1;\n  }\n  uVar4 = dcgettext(0,"debug_record_parameter: no current function",5);\n  fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);\n  return 0;\n}" type_identifier (function_declarator "FUN_0001f060(int param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n            undefined4 param_6)" identifier (parameter_list "(int param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n            undefined4 param_6)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  \n  if ((param_2 == 0) || (param_3 == 0)) {\n    return 0;\n  }\n  if ((*(int *)(param_1 + 4) != 0) && (*(int *)(param_1 + 0xc) != 0)) {\n    puVar3 = (undefined4 *)xmalloc(0x18);\n    iVar1 = *(int *)(param_1 + 0xc);\n    *puVar3 = 0;\n    puVar3[1] = param_2;\n    puVar2 = *(undefined4 **)(iVar1 + 4);\n    puVar3[4] = param_5;\n    puVar3[2] = param_3;\n    puVar3[5] = param_6;\n    puVar3[3] = param_4;\n    if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 4);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }\n    *puVar5 = puVar3;\n    return 1;\n  }\n  uVar4 = dcgettext(0,"debug_record_parameter: no current function",5);\n  fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (if_statement "if ((param_2 == 0) || (param_3 == 0)) {\n    return 0;\n  }" if (parenthesized_expression "((param_2 == 0) || (param_3 == 0))" ( (binary_expression "(param_2 == 0) || (param_3 == 0)" (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) || (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) ))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((*(int *)(param_1 + 4) != 0) && (*(int *)(param_1 + 0xc) != 0)) {\n    puVar3 = (undefined4 *)xmalloc(0x18);\n    iVar1 = *(int *)(param_1 + 0xc);\n    *puVar3 = 0;\n    puVar3[1] = param_2;\n    puVar2 = *(undefined4 **)(iVar1 + 4);\n    puVar3[4] = param_5;\n    puVar3[2] = param_3;\n    puVar3[5] = param_6;\n    puVar3[3] = param_4;\n    if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 4);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }\n    *puVar5 = puVar3;\n    return 1;\n  }" if (parenthesized_expression "((*(int *)(param_1 + 4) != 0) && (*(int *)(param_1 + 0xc) != 0))" ( (binary_expression "(*(int *)(param_1 + 4) != 0) && (*(int *)(param_1 + 0xc) != 0)" (parenthesized_expression "(*(int *)(param_1 + 4) != 0)" ( (binary_expression "*(int *)(param_1 + 4) != 0" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    puVar3 = (undefined4 *)xmalloc(0x18);\n    iVar1 = *(int *)(param_1 + 0xc);\n    *puVar3 = 0;\n    puVar3[1] = param_2;\n    puVar2 = *(undefined4 **)(iVar1 + 4);\n    puVar3[4] = param_5;\n    puVar3[2] = param_3;\n    puVar3[5] = param_6;\n    puVar3[3] = param_4;\n    if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 4);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }\n    *puVar5 = puVar3;\n    return 1;\n  }" { (expression_statement "puVar3 = (undefined4 *)xmalloc(0x18);" (assignment_expression "puVar3 = (undefined4 *)xmalloc(0x18)" identifier = (cast_expression "(undefined4 *)xmalloc(0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x18)" identifier (argument_list "(0x18)" ( number_literal ))))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar1 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3[1] = param_2;" (assignment_expression "puVar3[1] = param_2" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2 = *(undefined4 **)(iVar1 + 4);" (assignment_expression "puVar2 = *(undefined4 **)(iVar1 + 4)" identifier = (pointer_expression "*(undefined4 **)(iVar1 + 4)" * (cast_expression "(undefined4 **)(iVar1 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) ))))) ;) (expression_statement "puVar3[4] = param_5;" (assignment_expression "puVar3[4] = param_5" (subscript_expression "puVar3[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3[2] = param_3;" (assignment_expression "puVar3[2] = param_3" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3[5] = param_6;" (assignment_expression "puVar3[5] = param_6" (subscript_expression "puVar3[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3[3] = param_4;" (assignment_expression "puVar3[3] = param_4" (subscript_expression "puVar3[3]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 4);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }" if (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" ( (binary_expression "puVar2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar5 = (undefined4 *)(iVar1 + 4);\n    }" { (expression_statement "puVar5 = (undefined4 *)(iVar1 + 4);" (assignment_expression "puVar5 = (undefined4 *)(iVar1 + 4)" identifier = (cast_expression "(undefined4 *)(iVar1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) ;) }) (else_clause "else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }" else (compound_statement "{\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }" { (do_statement "do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);" do (compound_statement "{\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      }" { (expression_statement "puVar5 = puVar2;" (assignment_expression "puVar5 = puVar2" identifier = identifier) ;) (expression_statement "puVar2 = (undefined4 *)*puVar5;" (assignment_expression "puVar2 = (undefined4 *)*puVar5" identifier = (cast_expression "(undefined4 *)*puVar5" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier))) ;) }) while (parenthesized_expression "((undefined4 *)*puVar5 != (undefined4 *)0x0)" ( (binary_expression "(undefined4 *)*puVar5 != (undefined4 *)0x0" (cast_expression "(undefined4 *)*puVar5" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier)) != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) }))) (expression_statement "*puVar5 = puVar3;" (assignment_expression "*puVar5 = puVar3" (pointer_expression "*puVar5" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "uVar4 = dcgettext(0,"debug_record_parameter: no current function",5);" (assignment_expression "uVar4 = dcgettext(0,"debug_record_parameter: no current function",5)" identifier = (call_expression "dcgettext(0,"debug_record_parameter: no current function",5)" identifier (argument_list "(0,"debug_record_parameter: no current function",5)" ( number_literal , (string_literal ""debug_record_parameter: no current function"" " string_content ") , number_literal )))) ;) (expression_statement "fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);" (call_expression "fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4)" identifier (argument_list "(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4)" ( (pointer_expression "*(FILE **)PTR_stderr_0003ffa8" * (cast_expression "(FILE **)PTR_stderr_0003ffa8" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , (string_literal ""%s\n"" " string_content escape_sequence ") , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nbfd_boolean\ndebug_record_parameter\n          (void *handle,char *name,debug_type_conflict type,debug_parm_kind kind,bfd_vma val)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  \n  if ((name == (char *)0x0) || (type == (debug_type_conflict)0x0)) {\n    return 0;\n  }\n  if ((*(int *)((int)handle + 4) != 0) && (*(int *)((int)handle + 0xc) != 0)) {\n    puVar3 = (undefined4 *)xmalloc(0x18);\n    iVar1 = *(int *)((int)handle + 0xc);\n    *puVar3 = 0;\n    puVar3[1] = name;\n    puVar2 = *(undefined4 **)(iVar1 + 4);\n    puVar3[4] = (undefined4)val;\n    puVar3[2] = type;\n    puVar3[5] = val._4_4_;\n    puVar3[3] = kind;\n    if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 4);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }\n    *puVar5 = puVar3;\n    return 1;\n  }\n  uVar4 = dcgettext(0,"debug_record_parameter: no current function",5);\n  fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);\n  return 0;\n}\n\n" comment comment (function_definition "bfd_boolean\ndebug_record_parameter\n          (void *handle,char *name,debug_type_conflict type,debug_parm_kind kind,bfd_vma val)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  \n  if ((name == (char *)0x0) || (type == (debug_type_conflict)0x0)) {\n    return 0;\n  }\n  if ((*(int *)((int)handle + 4) != 0) && (*(int *)((int)handle + 0xc) != 0)) {\n    puVar3 = (undefined4 *)xmalloc(0x18);\n    iVar1 = *(int *)((int)handle + 0xc);\n    *puVar3 = 0;\n    puVar3[1] = name;\n    puVar2 = *(undefined4 **)(iVar1 + 4);\n    puVar3[4] = (undefined4)val;\n    puVar3[2] = type;\n    puVar3[5] = val._4_4_;\n    puVar3[3] = kind;\n    if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 4);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }\n    *puVar5 = puVar3;\n    return 1;\n  }\n  uVar4 = dcgettext(0,"debug_record_parameter: no current function",5);\n  fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);\n  return 0;\n}" type_identifier (function_declarator "debug_record_parameter\n          (void *handle,char *name,debug_type_conflict type,debug_parm_kind kind,bfd_vma val)" identifier (parameter_list "(void *handle,char *name,debug_type_conflict type,debug_parm_kind kind,bfd_vma val)" ( (parameter_declaration "void *handle" primitive_type (pointer_declarator "*handle" * identifier)) , (parameter_declaration "char *name" primitive_type (pointer_declarator "*name" * identifier)) , (parameter_declaration "debug_type_conflict type" type_identifier identifier) , (parameter_declaration "debug_parm_kind kind" type_identifier identifier) , (parameter_declaration "bfd_vma val" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  \n  if ((name == (char *)0x0) || (type == (debug_type_conflict)0x0)) {\n    return 0;\n  }\n  if ((*(int *)((int)handle + 4) != 0) && (*(int *)((int)handle + 0xc) != 0)) {\n    puVar3 = (undefined4 *)xmalloc(0x18);\n    iVar1 = *(int *)((int)handle + 0xc);\n    *puVar3 = 0;\n    puVar3[1] = name;\n    puVar2 = *(undefined4 **)(iVar1 + 4);\n    puVar3[4] = (undefined4)val;\n    puVar3[2] = type;\n    puVar3[5] = val._4_4_;\n    puVar3[3] = kind;\n    if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 4);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }\n    *puVar5 = puVar3;\n    return 1;\n  }\n  uVar4 = dcgettext(0,"debug_record_parameter: no current function",5);\n  fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (if_statement "if ((name == (char *)0x0) || (type == (debug_type_conflict)0x0)) {\n    return 0;\n  }" if (parenthesized_expression "((name == (char *)0x0) || (type == (debug_type_conflict)0x0))" ( (binary_expression "(name == (char *)0x0) || (type == (debug_type_conflict)0x0)" (parenthesized_expression "(name == (char *)0x0)" ( (binary_expression "name == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(type == (debug_type_conflict)0x0)" ( (binary_expression "type == (debug_type_conflict)0x0" identifier == (cast_expression "(debug_type_conflict)0x0" ( (type_descriptor "debug_type_conflict" type_identifier) ) number_literal)) ))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((*(int *)((int)handle + 4) != 0) && (*(int *)((int)handle + 0xc) != 0)) {\n    puVar3 = (undefined4 *)xmalloc(0x18);\n    iVar1 = *(int *)((int)handle + 0xc);\n    *puVar3 = 0;\n    puVar3[1] = name;\n    puVar2 = *(undefined4 **)(iVar1 + 4);\n    puVar3[4] = (undefined4)val;\n    puVar3[2] = type;\n    puVar3[5] = val._4_4_;\n    puVar3[3] = kind;\n    if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 4);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }\n    *puVar5 = puVar3;\n    return 1;\n  }" if (parenthesized_expression "((*(int *)((int)handle + 4) != 0) && (*(int *)((int)handle + 0xc) != 0))" ( (binary_expression "(*(int *)((int)handle + 4) != 0) && (*(int *)((int)handle + 0xc) != 0)" (parenthesized_expression "(*(int *)((int)handle + 4) != 0)" ( (binary_expression "*(int *)((int)handle + 4) != 0" (pointer_expression "*(int *)((int)handle + 4)" * (cast_expression "(int *)((int)handle + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)handle + 4)" ( (binary_expression "(int)handle + 4" (cast_expression "(int)handle" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) != number_literal) )) && (parenthesized_expression "(*(int *)((int)handle + 0xc) != 0)" ( (binary_expression "*(int *)((int)handle + 0xc) != 0" (pointer_expression "*(int *)((int)handle + 0xc)" * (cast_expression "(int *)((int)handle + 0xc)" ( (type_descriptor "int *" primitive_type (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) )))) != number_literal) ))) )) (compound_statement "{\n    puVar3 = (undefined4 *)xmalloc(0x18);\n    iVar1 = *(int *)((int)handle + 0xc);\n    *puVar3 = 0;\n    puVar3[1] = name;\n    puVar2 = *(undefined4 **)(iVar1 + 4);\n    puVar3[4] = (undefined4)val;\n    puVar3[2] = type;\n    puVar3[5] = val._4_4_;\n    puVar3[3] = kind;\n    if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 4);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }\n    *puVar5 = puVar3;\n    return 1;\n  }" { (expression_statement "puVar3 = (undefined4 *)xmalloc(0x18);" (assignment_expression "puVar3 = (undefined4 *)xmalloc(0x18)" identifier = (cast_expression "(undefined4 *)xmalloc(0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x18)" identifier (argument_list "(0x18)" ( number_literal ))))) ;) (expression_statement "iVar1 = *(int *)((int)handle + 0xc);" (assignment_expression "iVar1 = *(int *)((int)handle + 0xc)" identifier = (pointer_expression "*(int *)((int)handle + 0xc)" * (cast_expression "(int *)((int)handle + 0xc)" ( (type_descriptor "int *" primitive_type (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) ))))) ;) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3[1] = name;" (assignment_expression "puVar3[1] = name" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2 = *(undefined4 **)(iVar1 + 4);" (assignment_expression "puVar2 = *(undefined4 **)(iVar1 + 4)" identifier = (pointer_expression "*(undefined4 **)(iVar1 + 4)" * (cast_expression "(undefined4 **)(iVar1 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) ))))) ;) (expression_statement "puVar3[4] = (undefined4)val;" (assignment_expression "puVar3[4] = (undefined4)val" (subscript_expression "puVar3[4]" identifier [ number_literal ]) = (cast_expression "(undefined4)val" ( (type_descriptor "undefined4" type_identifier) ) identifier)) ;) (expression_statement "puVar3[2] = type;" (assignment_expression "puVar3[2] = type" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3[5] = val._4_4_;" (assignment_expression "puVar3[5] = val._4_4_" (subscript_expression "puVar3[5]" identifier [ number_literal ]) = (field_expression "val._4_4_" identifier . field_identifier)) ;) (expression_statement "puVar3[3] = kind;" (assignment_expression "puVar3[3] = kind" (subscript_expression "puVar3[3]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 4);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }" if (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" ( (binary_expression "puVar2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar5 = (undefined4 *)(iVar1 + 4);\n    }" { (expression_statement "puVar5 = (undefined4 *)(iVar1 + 4);" (assignment_expression "puVar5 = (undefined4 *)(iVar1 + 4)" identifier = (cast_expression "(undefined4 *)(iVar1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) ;) }) (else_clause "else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }" else (compound_statement "{\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }" { (do_statement "do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);" do (compound_statement "{\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      }" { (expression_statement "puVar5 = puVar2;" (assignment_expression "puVar5 = puVar2" identifier = identifier) ;) (expression_statement "puVar2 = (undefined4 *)*puVar5;" (assignment_expression "puVar2 = (undefined4 *)*puVar5" identifier = (cast_expression "(undefined4 *)*puVar5" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier))) ;) }) while (parenthesized_expression "((undefined4 *)*puVar5 != (undefined4 *)0x0)" ( (binary_expression "(undefined4 *)*puVar5 != (undefined4 *)0x0" (cast_expression "(undefined4 *)*puVar5" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier)) != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) }))) (expression_statement "*puVar5 = puVar3;" (assignment_expression "*puVar5 = puVar3" (pointer_expression "*puVar5" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "uVar4 = dcgettext(0,"debug_record_parameter: no current function",5);" (assignment_expression "uVar4 = dcgettext(0,"debug_record_parameter: no current function",5)" identifier = (call_expression "dcgettext(0,"debug_record_parameter: no current function",5)" identifier (argument_list "(0,"debug_record_parameter: no current function",5)" ( number_literal , (string_literal ""debug_record_parameter: no current function"" " string_content ") , number_literal )))) ;) (expression_statement "fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);" (call_expression "fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4)" identifier (argument_list "(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4)" ( (pointer_expression "*(FILE **)PTR_stderr_0003ffa8" * (cast_expression "(FILE **)PTR_stderr_0003ffa8" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , (string_literal ""%s\n"" " string_content escape_sequence ") , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4\nFUN_0001f060(int param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n            undefined4 param_6)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  \n  if ((param_2 == 0) || (param_3 == 0)) {\n    return 0;\n  }\n  if ((*(int *)(param_1 + 4) != 0) && (*(int *)(param_1 + 0xc) != 0)) {\n    puVar3 = (undefined4 *)xmalloc(0x18);\n    iVar1 = *(int *)(param_1 + 0xc);\n    *puVar3 = 0;\n    puVar3[1] = param_2;\n    puVar2 = *(undefined4 **)(iVar1 + 4);\n    puVar3[4] = param_5;\n    puVar3[2] = param_3;\n    puVar3[5] = param_6;\n    puVar3[3] = param_4;\n    if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 4);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }\n    *puVar5 = puVar3;\n    return 1;\n  }\n  uVar4 = dcgettext(0,"debug_record_parameter: no current function",5);\n  fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);\n  return 0;\n}\n\n" (function_definition "undefined4\nFUN_0001f060(int param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n            undefined4 param_6)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  \n  if ((param_2 == 0) || (param_3 == 0)) {\n    return 0;\n  }\n  if ((*(int *)(param_1 + 4) != 0) && (*(int *)(param_1 + 0xc) != 0)) {\n    puVar3 = (undefined4 *)xmalloc(0x18);\n    iVar1 = *(int *)(param_1 + 0xc);\n    *puVar3 = 0;\n    puVar3[1] = param_2;\n    puVar2 = *(undefined4 **)(iVar1 + 4);\n    puVar3[4] = param_5;\n    puVar3[2] = param_3;\n    puVar3[5] = param_6;\n    puVar3[3] = param_4;\n    if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 4);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }\n    *puVar5 = puVar3;\n    return 1;\n  }\n  uVar4 = dcgettext(0,"debug_record_parameter: no current function",5);\n  fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);\n  return 0;\n}" type_identifier (function_declarator "FUN_0001f060(int param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n            undefined4 param_6)" identifier (parameter_list "(int param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n            undefined4 param_6)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "undefined4 param_6" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  \n  if ((param_2 == 0) || (param_3 == 0)) {\n    return 0;\n  }\n  if ((*(int *)(param_1 + 4) != 0) && (*(int *)(param_1 + 0xc) != 0)) {\n    puVar3 = (undefined4 *)xmalloc(0x18);\n    iVar1 = *(int *)(param_1 + 0xc);\n    *puVar3 = 0;\n    puVar3[1] = param_2;\n    puVar2 = *(undefined4 **)(iVar1 + 4);\n    puVar3[4] = param_5;\n    puVar3[2] = param_3;\n    puVar3[5] = param_6;\n    puVar3[3] = param_4;\n    if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 4);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }\n    *puVar5 = puVar3;\n    return 1;\n  }\n  uVar4 = dcgettext(0,"debug_record_parameter: no current function",5);\n  fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined4 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (if_statement "if ((param_2 == 0) || (param_3 == 0)) {\n    return 0;\n  }" if (parenthesized_expression "((param_2 == 0) || (param_3 == 0))" ( (binary_expression "(param_2 == 0) || (param_3 == 0)" (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) || (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) ))) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if ((*(int *)(param_1 + 4) != 0) && (*(int *)(param_1 + 0xc) != 0)) {\n    puVar3 = (undefined4 *)xmalloc(0x18);\n    iVar1 = *(int *)(param_1 + 0xc);\n    *puVar3 = 0;\n    puVar3[1] = param_2;\n    puVar2 = *(undefined4 **)(iVar1 + 4);\n    puVar3[4] = param_5;\n    puVar3[2] = param_3;\n    puVar3[5] = param_6;\n    puVar3[3] = param_4;\n    if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 4);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }\n    *puVar5 = puVar3;\n    return 1;\n  }" if (parenthesized_expression "((*(int *)(param_1 + 4) != 0) && (*(int *)(param_1 + 0xc) != 0))" ( (binary_expression "(*(int *)(param_1 + 4) != 0) && (*(int *)(param_1 + 0xc) != 0)" (parenthesized_expression "(*(int *)(param_1 + 4) != 0)" ( (binary_expression "*(int *)(param_1 + 4) != 0" (pointer_expression "*(int *)(param_1 + 4)" * (cast_expression "(int *)(param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) )))) != number_literal) )) && (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" ( (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    puVar3 = (undefined4 *)xmalloc(0x18);\n    iVar1 = *(int *)(param_1 + 0xc);\n    *puVar3 = 0;\n    puVar3[1] = param_2;\n    puVar2 = *(undefined4 **)(iVar1 + 4);\n    puVar3[4] = param_5;\n    puVar3[2] = param_3;\n    puVar3[5] = param_6;\n    puVar3[3] = param_4;\n    if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 4);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }\n    *puVar5 = puVar3;\n    return 1;\n  }" { (expression_statement "puVar3 = (undefined4 *)xmalloc(0x18);" (assignment_expression "puVar3 = (undefined4 *)xmalloc(0x18)" identifier = (cast_expression "(undefined4 *)xmalloc(0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x18)" identifier (argument_list "(0x18)" ( number_literal ))))) ;) (expression_statement "iVar1 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar1 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" * identifier) = number_literal) ;) (expression_statement "puVar3[1] = param_2;" (assignment_expression "puVar3[1] = param_2" (subscript_expression "puVar3[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar2 = *(undefined4 **)(iVar1 + 4);" (assignment_expression "puVar2 = *(undefined4 **)(iVar1 + 4)" identifier = (pointer_expression "*(undefined4 **)(iVar1 + 4)" * (cast_expression "(undefined4 **)(iVar1 + 4)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) ))))) ;) (expression_statement "puVar3[4] = param_5;" (assignment_expression "puVar3[4] = param_5" (subscript_expression "puVar3[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3[2] = param_3;" (assignment_expression "puVar3[2] = param_3" (subscript_expression "puVar3[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3[5] = param_6;" (assignment_expression "puVar3[5] = param_6" (subscript_expression "puVar3[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "puVar3[3] = param_4;" (assignment_expression "puVar3[3] = param_4" (subscript_expression "puVar3[3]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 4);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }" if (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" ( (binary_expression "puVar2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      puVar5 = (undefined4 *)(iVar1 + 4);\n    }" { (expression_statement "puVar5 = (undefined4 *)(iVar1 + 4);" (assignment_expression "puVar5 = (undefined4 *)(iVar1 + 4)" identifier = (cast_expression "(undefined4 *)(iVar1 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4)" ( (binary_expression "iVar1 + 4" identifier + number_literal) )))) ;) }) (else_clause "else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }" else (compound_statement "{\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }" { (do_statement "do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);" do (compound_statement "{\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      }" { (expression_statement "puVar5 = puVar2;" (assignment_expression "puVar5 = puVar2" identifier = identifier) ;) (expression_statement "puVar2 = (undefined4 *)*puVar5;" (assignment_expression "puVar2 = (undefined4 *)*puVar5" identifier = (cast_expression "(undefined4 *)*puVar5" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier))) ;) }) while (parenthesized_expression "((undefined4 *)*puVar5 != (undefined4 *)0x0)" ( (binary_expression "(undefined4 *)*puVar5 != (undefined4 *)0x0" (cast_expression "(undefined4 *)*puVar5" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar5" * identifier)) != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) }))) (expression_statement "*puVar5 = puVar3;" (assignment_expression "*puVar5 = puVar3" (pointer_expression "*puVar5" * identifier) = identifier) ;) (return_statement "return 1;" return number_literal ;) })) (expression_statement "uVar4 = dcgettext(0,"debug_record_parameter: no current function",5);" (assignment_expression "uVar4 = dcgettext(0,"debug_record_parameter: no current function",5)" identifier = (call_expression "dcgettext(0,"debug_record_parameter: no current function",5)" identifier (argument_list "(0,"debug_record_parameter: no current function",5)" ( number_literal , (string_literal ""debug_record_parameter: no current function"" " string_content ") , number_literal )))) ;) (expression_statement "fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);" (call_expression "fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4)" identifier (argument_list "(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4)" ( (pointer_expression "*(FILE **)PTR_stderr_0003ffa8" * (cast_expression "(FILE **)PTR_stderr_0003ffa8" ( (type_descriptor "FILE **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) , (string_literal ""%s\n"" " string_content escape_sequence ") , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) }) (else_clause else (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) }) while (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT)) != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) ;) }))) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (return_statement return LIT ;) })) (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 ))) ;) (return_statement return LIT ;) })))
(function_definition "undefined4\nFUN_0001f060(int param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n            undefined4 param_6)\n\n{\n  int iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  \n  if ((param_2 == 0) || (param_3 == 0)) {\n    return 0;\n  }\n  if ((*(int *)(param_1 + 4) != 0) && (*(int *)(param_1 + 0xc) != 0)) {\n    puVar3 = (undefined4 *)xmalloc(0x18);\n    iVar1 = *(int *)(param_1 + 0xc);\n    *puVar3 = 0;\n    puVar3[1] = param_2;\n    puVar2 = *(undefined4 **)(iVar1 + 4);\n    puVar3[4] = param_5;\n    puVar3[2] = param_3;\n    puVar3[5] = param_6;\n    puVar3[3] = param_4;\n    if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 4);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }\n    *puVar5 = puVar3;\n    return 1;\n  }\n  uVar4 = dcgettext(0,"debug_record_parameter: no current function",5);\n  fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_0001f060(int param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n            undefined4 param_6)" (identifier "FUN_0001f060") (parameter_list "(int param_1,int param_2,int param_3,undefined4 param_4,undefined4 param_5,\n            undefined4 param_6)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (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 iVar1;\n  undefined4 *puVar2;\n  undefined4 *puVar3;\n  undefined4 uVar4;\n  undefined4 *puVar5;\n  \n  if ((param_2 == 0) || (param_3 == 0)) {\n    return 0;\n  }\n  if ((*(int *)(param_1 + 4) != 0) && (*(int *)(param_1 + 0xc) != 0)) {\n    puVar3 = (undefined4 *)xmalloc(0x18);\n    iVar1 = *(int *)(param_1 + 0xc);\n    *puVar3 = 0;\n    puVar3[1] = param_2;\n    puVar2 = *(undefined4 **)(iVar1 + 4);\n    puVar3[4] = param_5;\n    puVar3[2] = param_3;\n    puVar3[5] = param_6;\n    puVar3[3] = param_4;\n    if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 4);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }\n    *puVar5 = puVar3;\n    return 1;\n  }\n  uVar4 = dcgettext(0,"debug_record_parameter: no current function",5);\n  fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 *puVar2;" (type_identifier "undefined4") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined4 *puVar3;" (type_identifier "undefined4") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (if_statement "if ((param_2 == 0) || (param_3 == 0)) {\n    return 0;\n  }" (if "if") (parenthesized_expression "((param_2 == 0) || (param_3 == 0))" (( "(") (binary_expression "(param_2 == 0) || (param_3 == 0)" (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if ((*(int *)(param_1 + 4) != 0) && (*(int *)(param_1 + 0xc) != 0)) {\n    puVar3 = (undefined4 *)xmalloc(0x18);\n    iVar1 = *(int *)(param_1 + 0xc);\n    *puVar3 = 0;\n    puVar3[1] = param_2;\n    puVar2 = *(undefined4 **)(iVar1 + 4);\n    puVar3[4] = param_5;\n    puVar3[2] = param_3;\n    puVar3[5] = param_6;\n    puVar3[3] = param_4;\n    if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 4);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }\n    *puVar5 = puVar3;\n    return 1;\n  }" (if "if") (parenthesized_expression "((*(int *)(param_1 + 4) != 0) && (*(int *)(param_1 + 0xc) != 0))" (( "(") (binary_expression "(*(int *)(param_1 + 4) != 0) && (*(int *)(param_1 + 0xc) != 0)" (parenthesized_expression "(*(int *)(param_1 + 4) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 4) != 0" (pointer_expression "*(int *)(param_1 + 4)" (* "*") (cast_expression "(int *)(param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(param_1 + 0xc) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0xc) != 0" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    puVar3 = (undefined4 *)xmalloc(0x18);\n    iVar1 = *(int *)(param_1 + 0xc);\n    *puVar3 = 0;\n    puVar3[1] = param_2;\n    puVar2 = *(undefined4 **)(iVar1 + 4);\n    puVar3[4] = param_5;\n    puVar3[2] = param_3;\n    puVar3[5] = param_6;\n    puVar3[3] = param_4;\n    if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 4);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }\n    *puVar5 = puVar3;\n    return 1;\n  }" ({ "{") (expression_statement "puVar3 = (undefined4 *)xmalloc(0x18);" (assignment_expression "puVar3 = (undefined4 *)xmalloc(0x18)" (identifier "puVar3") (= "=") (cast_expression "(undefined4 *)xmalloc(0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0x18)" (identifier "xmalloc") (argument_list "(0x18)" (( "(") (number_literal "0x18") () ")"))))) (; ";")) (expression_statement "iVar1 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar1 = *(int *)(param_1 + 0xc)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "*puVar3 = 0;" (assignment_expression "*puVar3 = 0" (pointer_expression "*puVar3" (* "*") (identifier "puVar3")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar3[1] = param_2;" (assignment_expression "puVar3[1] = param_2" (subscript_expression "puVar3[1]" (identifier "puVar3") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "puVar2 = *(undefined4 **)(iVar1 + 4);" (assignment_expression "puVar2 = *(undefined4 **)(iVar1 + 4)" (identifier "puVar2") (= "=") (pointer_expression "*(undefined4 **)(iVar1 + 4)" (* "*") (cast_expression "(undefined4 **)(iVar1 + 4)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar1 + 4)" (( "(") (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "puVar3[4] = param_5;" (assignment_expression "puVar3[4] = param_5" (subscript_expression "puVar3[4]" (identifier "puVar3") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "param_5")) (; ";")) (expression_statement "puVar3[2] = param_3;" (assignment_expression "puVar3[2] = param_3" (subscript_expression "puVar3[2]" (identifier "puVar3") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "puVar3[5] = param_6;" (assignment_expression "puVar3[5] = param_6" (subscript_expression "puVar3[5]" (identifier "puVar3") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "param_6")) (; ";")) (expression_statement "puVar3[3] = param_4;" (assignment_expression "puVar3[3] = param_4" (subscript_expression "puVar3[3]" (identifier "puVar3") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "param_4")) (; ";")) (if_statement "if (puVar2 == (undefined4 *)0x0) {\n      puVar5 = (undefined4 *)(iVar1 + 4);\n    }\n    else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }" (if "if") (parenthesized_expression "(puVar2 == (undefined4 *)0x0)" (( "(") (binary_expression "puVar2 == (undefined4 *)0x0" (identifier "puVar2") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      puVar5 = (undefined4 *)(iVar1 + 4);\n    }" ({ "{") (expression_statement "puVar5 = (undefined4 *)(iVar1 + 4);" (assignment_expression "puVar5 = (undefined4 *)(iVar1 + 4)" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)(iVar1 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 4)" (( "(") (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }" (else "else") (compound_statement "{\n      do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);\n    }" ({ "{") (do_statement "do {\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);" (do "do") (compound_statement "{\n        puVar5 = puVar2;\n        puVar2 = (undefined4 *)*puVar5;\n      }" ({ "{") (expression_statement "puVar5 = puVar2;" (assignment_expression "puVar5 = puVar2" (identifier "puVar5") (= "=") (identifier "puVar2")) (; ";")) (expression_statement "puVar2 = (undefined4 *)*puVar5;" (assignment_expression "puVar2 = (undefined4 *)*puVar5" (identifier "puVar2") (= "=") (cast_expression "(undefined4 *)*puVar5" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar5" (* "*") (identifier "puVar5")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((undefined4 *)*puVar5 != (undefined4 *)0x0)" (( "(") (binary_expression "(undefined4 *)*puVar5 != (undefined4 *)0x0" (cast_expression "(undefined4 *)*puVar5" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*puVar5" (* "*") (identifier "puVar5"))) (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (; ";")) (} "}")))) (expression_statement "*puVar5 = puVar3;" (assignment_expression "*puVar5 = puVar3" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (identifier "puVar3")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "uVar4 = dcgettext(0,"debug_record_parameter: no current function",5);" (assignment_expression "uVar4 = dcgettext(0,"debug_record_parameter: no current function",5)" (identifier "uVar4") (= "=") (call_expression "dcgettext(0,"debug_record_parameter: no current function",5)" (identifier "dcgettext") (argument_list "(0,"debug_record_parameter: no current function",5)" (( "(") (number_literal "0") (, ",") (string_literal ""debug_record_parameter: no current function"" (" """) (string_content "debug_record_parameter: no current function") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);" (call_expression "fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4)" (identifier "fprintf") (argument_list "(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4)" (( "(") (pointer_expression "*(FILE **)PTR_stderr_0003ffa8" (* "*") (cast_expression "(FILE **)PTR_stderr_0003ffa8" (( "(") (type_descriptor "FILE **" (type_identifier "FILE") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (identifier "PTR_stderr_0003ffa8"))) (, ",") (string_literal ""%s\n"" (" """) (string_content "%s") (escape_sequence "\n") (" """)) (, ",") (identifier "uVar4") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

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

{
  int var_4;
  type_5 *var_5;
  type_5 *puVar3;
  type_5 uVar4;
  type_5 *puVar5;
  
  if ((var_1 == (char *)0x0) || (var_2 == (type_2)0x0)) {
    return 0;
  }
  if ((*(int *)((int)handle + 4) != 0) && (*(int *)((int)handle + 0xc) != 0)) {
    puVar3 = (type_5 *)var_3(0x18);
    var_4 = *(int *)((int)handle + 0xc);
    *puVar3 = 0;
    puVar3[1] = var_1;
    var_5 = *(type_5 **)(var_4 + 4);
    puVar3[4] = (type_5)val;
    puVar3[2] = var_2;
    puVar3[5] = val._4_4_;
    puVar3[3] = kind;
    if (var_5 == (type_5 *)0x0) {
      puVar5 = (type_5 *)(var_4 + 4);
    }
    else {
      do {
        puVar5 = var_5;
        var_5 = (type_5 *)*puVar5;
      } while ((type_5 *)*puVar5 != (type_5 *)0x0);
    }
    *puVar5 = puVar3;
    return 1;
  }
  uVar4 = var_6(0,"debug_record_parameter: no current function",5);
  var_7(*(type_6 **)PTR_stderr_0003ffa8,"%s\n",uVar4);
  return 0;
}


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

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

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

{
  int iVar1;
  undefined4 *puVar2;
  undefined4 *puVar3;
  undefined4 uVar4;
  undefined4 *puVar5;
  
  if ((param_2 == 0) || (param_3 == 0)) {
    return 0;
  }
  if ((*(int *)(param_1 + 4) != 0) && (*(int *)(param_1 + 0xc) != 0)) {
    puVar3 = (undefined4 *)xmalloc(0x18);
    iVar1 = *(int *)(param_1 + 0xc);
    *puVar3 = 0;
    puVar3[1] = param_2;
    puVar2 = *(undefined4 **)(iVar1 + 4);
    puVar3[4] = param_5;
    puVar3[2] = param_3;
    puVar3[5] = param_6;
    puVar3[3] = param_4;
    if (puVar2 == (undefined4 *)0x0) {
      puVar5 = (undefined4 *)(iVar1 + 4);
    }
    else {
      do {
        puVar5 = puVar2;
        puVar2 = (undefined4 *)*puVar5;
      } while ((undefined4 *)*puVar5 != (undefined4 *)0x0);
    }
    *puVar5 = puVar3;
    return 1;
  }
  uVar4 = dcgettext(0,"debug_record_parameter: no current function",5);
  fprintf(*(FILE **)PTR_stderr_0003ffa8,"%s\n",uVar4);
  return 0;
}

