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

bfd_boolean
stab_start_class_type
          (void *p,char *tag,uint id,bfd_boolean structp,uint size,bfd_boolean vptr,
          bfd_boolean ownvptr)

{
  int iVar1;
  int iVar2;
  bfd_boolean bVar3;
  char *pcVar4;
  char *pcVar5;
  size_t sVar6;
  undefined4 uVar7;
  
  if ((vptr == 0) || (ownvptr != 0)) {
    bVar3 = stab_start_struct_type(p,tag,id,structp,size);
    if (bVar3 == 0) {
      return 0;
    }
    if (vptr != 0) {
      if (ownvptr == 0) {
        sVar6 = strlen((char *)0x0);
        pcVar5 = (char *)xmalloc(sVar6 + 3);
        uVar7 = 0;
        pcVar4 = "~%%%s";
      }
      else {
        if (*(int *)(*(int *)((int)p + 0x38) + 8) < 1) {
                    /* WARNING: Subroutine does not return */
          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,
                        "stab_start_class_type");
        }
        pcVar5 = (char *)xmalloc(0x14);
        uVar7 = *(undefined4 *)(*(int *)((int)p + 0x38) + 8);
        pcVar4 = "~%%%ld";
      }
      sprintf(pcVar5,pcVar4,uVar7);
      *(char **)(*(int *)((int)p + 0x38) + 0x20) = pcVar5;
    }
  }
  else {
    iVar1 = *(int *)(*(int *)((int)p + 0x38) + 0x10);
    pcVar4 = stab_pop_type((stab_write_handle *)((int)p + 0x38));
    bVar3 = stab_start_struct_type(p,tag,id,structp,size);
    if (bVar3 == 0) {
      return 0;
    }
    sVar6 = strlen(pcVar4);
    pcVar5 = (char *)xmalloc(sVar6 + 3);
    sprintf(pcVar5,"~%%%s",pcVar4);
    free(pcVar4);
    iVar2 = *(int *)((int)p + 0x38);
    *(char **)(iVar2 + 0x20) = pcVar5;
    if (iVar1 != 0) {
      *(undefined4 *)(iVar2 + 0x10) = 1;
      return 1;
    }
  }
  return 1;
}



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

undefined4
FUN_00029980(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5
            ,int param_6,int param_7)

{
  int iVar1;
  char *pcVar2;
  int iVar3;
  char *pcVar4;
  size_t sVar5;
  undefined4 uVar6;
  
  if ((param_6 == 0) || (param_7 != 0)) {
    iVar1 = FUN_00029840(param_1,param_2,param_3,param_4,param_5);
    if (iVar1 == 0) {
      return 0;
    }
    if (param_6 != 0) {
      if (param_7 == 0) {
        sVar5 = strlen((char *)0x0);
        pcVar4 = (char *)xmalloc(sVar5 + 3);
        uVar6 = 0;
        pcVar2 = "~%%%s";
      }
      else {
        if (*(int *)(*(int *)(param_1 + 0x38) + 8) < 1) {
                    /* WARNING: Subroutine does not return */
          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,
                        "stab_start_class_type");
        }
        pcVar4 = (char *)xmalloc(0x14);
        uVar6 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 8);
        pcVar2 = "~%%%ld";
      }
      sprintf(pcVar4,pcVar2,uVar6);
      *(char **)(*(int *)(param_1 + 0x38) + 0x20) = pcVar4;
    }
  }
  else {
    iVar1 = *(int *)(*(int *)(param_1 + 0x38) + 0x10);
    pcVar2 = (char *)FUN_00028700();
    iVar3 = FUN_00029840(param_1,param_2,param_3,param_4,param_5);
    if (iVar3 == 0) {
      return 0;
    }
    sVar5 = strlen(pcVar2);
    pcVar4 = (char *)xmalloc(sVar5 + 3);
    sprintf(pcVar4,"~%%%s",pcVar2);
    free(pcVar2);
    iVar3 = *(int *)(param_1 + 0x38);
    *(char **)(iVar3 + 0x20) = pcVar4;
    if (iVar1 != 0) {
      *(undefined4 *)(iVar3 + 0x10) = 1;
      return 1;
    }
  }
  return 1;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000165d0
ADD EBX,0x15677
SUB ESP,0x1c
MOV EDI,dword ptr [ESP + 0x44]
MOV ESI,dword ptr [ESP + 0x30]
TEST EDI,EDI
JZ 0x000299a6
MOV ECX,dword ptr [ESP + 0x48]
TEST ECX,ECX
JZ 0x000299e0
SUB ESP,0xc
PUSH dword ptr [ESP + 0x4c]
PUSH dword ptr [ESP + 0x4c]
PUSH dword ptr [ESP + 0x4c]
PUSH dword ptr [ESP + 0x4c]
PUSH ESI
CALL 0x00029840
ADD ESP,0x20
TEST EAX,EAX
JZ 0x00029a10
TEST EDI,EDI
JNZ 0x00029a20
ADD ESP,0x1c
MOV EAX,0x1
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESI + 0x38]
MOV EBP,dword ptr [EAX + 0x10]
LEA EAX,[ESI + 0x38]
CALL 0x00028700
SUB ESP,0xc
PUSH dword ptr [ESP + 0x4c]
MOV EDI,EAX
PUSH dword ptr [ESP + 0x4c]
PUSH dword ptr [ESP + 0x4c]
PUSH dword ptr [ESP + 0x4c]
PUSH ESI
CALL 0x00029840
ADD ESP,0x20
TEST EAX,EAX
JNZ 0x00029a70
ADD ESP,0x1c
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDX,dword ptr [ESP + 0x48]
TEST EDX,EDX
JZ 0x00029aeb
MOV EAX,dword ptr [ESI + 0x38]
MOV EAX,dword ptr [EAX + 0x8]
TEST EAX,EAX
JLE 0x00029acc
SUB ESP,0xc
PUSH 0x14
CALL 0x000132e0
ADD ESP,0xc
MOV EDI,EAX
MOV EAX,dword ptr [ESI + 0x38]
PUSH dword ptr [EAX + 0x8]
LEA EAX,[EBX + 0xffff4edc]
PUSH EAX
PUSH EDI
CALL 0x000137a0
MOV EAX,dword ptr [ESI + 0x38]
ADD ESP,0x10
MOV dword ptr [EAX + 0x20],EDI
JMP 0x000299ca
SUB ESP,0xc
PUSH EDI
CALL 0x000134e0
ADD EAX,0x3
MOV dword ptr [ESP],EAX
CALL 0x000132e0
ADD ESP,0xc
MOV EDX,EAX
LEA EAX,[EBX + 0xffff4ee3]
PUSH EDI
PUSH EAX
PUSH EDX
MOV dword ptr [ESP + 0x1c],EDX
CALL 0x000137a0
MOV dword ptr [ESP],EDI
CALL 0x00013948
MOV EDX,dword ptr [ESP + 0x1c]
MOV EAX,dword ptr [ESI + 0x38]
ADD ESP,0x10
MOV dword ptr [EAX + 0x20],EDX
TEST EBP,EBP
JZ 0x000299ca
MOV dword ptr [EAX + 0x10],0x1
ADD ESP,0x1c
MOV EAX,0x1
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[EBX + 0xffff51a8]
PUSH EAX
LEA EAX,[EBX + 0xffff4da8]
PUSH 0x5bd
PUSH EAX
LEA EAX,[EBX + 0xffff4ec0]
PUSH EAX
CALL 0x00013920
SUB ESP,0xc
PUSH 0x0
CALL 0x000134e0
ADD EAX,0x3
MOV dword ptr [ESP],EAX
CALL 0x000132e0
ADD ESP,0xc
MOV EDI,EAX
PUSH 0x0
LEA EAX,[EBX + 0xffff4ee3]
JMP 0x00029a55
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4\nFUN_00029980(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n            ,int param_6,int param_7)\n\n{\n  int iVar1;\n  char *pcVar2;\n  int iVar3;\n  char *pcVar4;\n  size_t sVar5;\n  undefined4 uVar6;\n  \n  if ((param_6 == 0) || (param_7 != 0)) {\n    iVar1 = FUN_00029840(param_1,param_2,param_3,param_4,param_5);\n    if (iVar1 == 0) {\n      return 0;\n    }\n    if (param_6 != 0) {\n      if (param_7 == 0) {\n        sVar5 = strlen((char *)0x0);\n        pcVar4 = (char *)xmalloc(sVar5 + 3);\n        uVar6 = 0;\n        pcVar2 = "~%%%s";\n      }\n      else {\n        if (*(int *)(*(int *)(param_1 + 0x38) + 8) < 1) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }\n        pcVar4 = (char *)xmalloc(0x14);\n        uVar6 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 8);\n        pcVar2 = "~%%%ld";\n      }\n      sprintf(pcVar4,pcVar2,uVar6);\n      *(char **)(*(int *)(param_1 + 0x38) + 0x20) = pcVar4;\n    }\n  }\n  else {\n    iVar1 = *(int *)(*(int *)(param_1 + 0x38) + 0x10);\n    pcVar2 = (char *)FUN_00028700();\n    iVar3 = FUN_00029840(param_1,param_2,param_3,param_4,param_5);\n    if (iVar3 == 0) {\n      return 0;\n    }\n    sVar5 = strlen(pcVar2);\n    pcVar4 = (char *)xmalloc(sVar5 + 3);\n    sprintf(pcVar4,"~%%%s",pcVar2);\n    free(pcVar2);\n    iVar3 = *(int *)(param_1 + 0x38);\n    *(char **)(iVar3 + 0x20) = pcVar4;\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar3 + 0x10) = 1;\n      return 1;\n    }\n  }\n  return 1;\n}\n\n" comment (function_definition "undefined4\nFUN_00029980(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n            ,int param_6,int param_7)\n\n{\n  int iVar1;\n  char *pcVar2;\n  int iVar3;\n  char *pcVar4;\n  size_t sVar5;\n  undefined4 uVar6;\n  \n  if ((param_6 == 0) || (param_7 != 0)) {\n    iVar1 = FUN_00029840(param_1,param_2,param_3,param_4,param_5);\n    if (iVar1 == 0) {\n      return 0;\n    }\n    if (param_6 != 0) {\n      if (param_7 == 0) {\n        sVar5 = strlen((char *)0x0);\n        pcVar4 = (char *)xmalloc(sVar5 + 3);\n        uVar6 = 0;\n        pcVar2 = "~%%%s";\n      }\n      else {\n        if (*(int *)(*(int *)(param_1 + 0x38) + 8) < 1) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }\n        pcVar4 = (char *)xmalloc(0x14);\n        uVar6 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 8);\n        pcVar2 = "~%%%ld";\n      }\n      sprintf(pcVar4,pcVar2,uVar6);\n      *(char **)(*(int *)(param_1 + 0x38) + 0x20) = pcVar4;\n    }\n  }\n  else {\n    iVar1 = *(int *)(*(int *)(param_1 + 0x38) + 0x10);\n    pcVar2 = (char *)FUN_00028700();\n    iVar3 = FUN_00029840(param_1,param_2,param_3,param_4,param_5);\n    if (iVar3 == 0) {\n      return 0;\n    }\n    sVar5 = strlen(pcVar2);\n    pcVar4 = (char *)xmalloc(sVar5 + 3);\n    sprintf(pcVar4,"~%%%s",pcVar2);\n    free(pcVar2);\n    iVar3 = *(int *)(param_1 + 0x38);\n    *(char **)(iVar3 + 0x20) = pcVar4;\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar3 + 0x10) = 1;\n      return 1;\n    }\n  }\n  return 1;\n}" type_identifier (function_declarator "FUN_00029980(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n            ,int param_6,int param_7)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n            ,int param_6,int param_7)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "int param_6" primitive_type identifier) , (parameter_declaration "int param_7" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  int iVar3;\n  char *pcVar4;\n  size_t sVar5;\n  undefined4 uVar6;\n  \n  if ((param_6 == 0) || (param_7 != 0)) {\n    iVar1 = FUN_00029840(param_1,param_2,param_3,param_4,param_5);\n    if (iVar1 == 0) {\n      return 0;\n    }\n    if (param_6 != 0) {\n      if (param_7 == 0) {\n        sVar5 = strlen((char *)0x0);\n        pcVar4 = (char *)xmalloc(sVar5 + 3);\n        uVar6 = 0;\n        pcVar2 = "~%%%s";\n      }\n      else {\n        if (*(int *)(*(int *)(param_1 + 0x38) + 8) < 1) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }\n        pcVar4 = (char *)xmalloc(0x14);\n        uVar6 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 8);\n        pcVar2 = "~%%%ld";\n      }\n      sprintf(pcVar4,pcVar2,uVar6);\n      *(char **)(*(int *)(param_1 + 0x38) + 0x20) = pcVar4;\n    }\n  }\n  else {\n    iVar1 = *(int *)(*(int *)(param_1 + 0x38) + 0x10);\n    pcVar2 = (char *)FUN_00028700();\n    iVar3 = FUN_00029840(param_1,param_2,param_3,param_4,param_5);\n    if (iVar3 == 0) {\n      return 0;\n    }\n    sVar5 = strlen(pcVar2);\n    pcVar4 = (char *)xmalloc(sVar5 + 3);\n    sprintf(pcVar4,"~%%%s",pcVar2);\n    free(pcVar2);\n    iVar3 = *(int *)(param_1 + 0x38);\n    *(char **)(iVar3 + 0x20) = pcVar4;\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar3 + 0x10) = 1;\n      return 1;\n    }\n  }\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (if_statement "if ((param_6 == 0) || (param_7 != 0)) {\n    iVar1 = FUN_00029840(param_1,param_2,param_3,param_4,param_5);\n    if (iVar1 == 0) {\n      return 0;\n    }\n    if (param_6 != 0) {\n      if (param_7 == 0) {\n        sVar5 = strlen((char *)0x0);\n        pcVar4 = (char *)xmalloc(sVar5 + 3);\n        uVar6 = 0;\n        pcVar2 = "~%%%s";\n      }\n      else {\n        if (*(int *)(*(int *)(param_1 + 0x38) + 8) < 1) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }\n        pcVar4 = (char *)xmalloc(0x14);\n        uVar6 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 8);\n        pcVar2 = "~%%%ld";\n      }\n      sprintf(pcVar4,pcVar2,uVar6);\n      *(char **)(*(int *)(param_1 + 0x38) + 0x20) = pcVar4;\n    }\n  }\n  else {\n    iVar1 = *(int *)(*(int *)(param_1 + 0x38) + 0x10);\n    pcVar2 = (char *)FUN_00028700();\n    iVar3 = FUN_00029840(param_1,param_2,param_3,param_4,param_5);\n    if (iVar3 == 0) {\n      return 0;\n    }\n    sVar5 = strlen(pcVar2);\n    pcVar4 = (char *)xmalloc(sVar5 + 3);\n    sprintf(pcVar4,"~%%%s",pcVar2);\n    free(pcVar2);\n    iVar3 = *(int *)(param_1 + 0x38);\n    *(char **)(iVar3 + 0x20) = pcVar4;\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar3 + 0x10) = 1;\n      return 1;\n    }\n  }" if (parenthesized_expression "((param_6 == 0) || (param_7 != 0))" ( (binary_expression "(param_6 == 0) || (param_7 != 0)" (parenthesized_expression "(param_6 == 0)" ( (binary_expression "param_6 == 0" identifier == number_literal) )) || (parenthesized_expression "(param_7 != 0)" ( (binary_expression "param_7 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    iVar1 = FUN_00029840(param_1,param_2,param_3,param_4,param_5);\n    if (iVar1 == 0) {\n      return 0;\n    }\n    if (param_6 != 0) {\n      if (param_7 == 0) {\n        sVar5 = strlen((char *)0x0);\n        pcVar4 = (char *)xmalloc(sVar5 + 3);\n        uVar6 = 0;\n        pcVar2 = "~%%%s";\n      }\n      else {\n        if (*(int *)(*(int *)(param_1 + 0x38) + 8) < 1) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }\n        pcVar4 = (char *)xmalloc(0x14);\n        uVar6 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 8);\n        pcVar2 = "~%%%ld";\n      }\n      sprintf(pcVar4,pcVar2,uVar6);\n      *(char **)(*(int *)(param_1 + 0x38) + 0x20) = pcVar4;\n    }\n  }" { (expression_statement "iVar1 = FUN_00029840(param_1,param_2,param_3,param_4,param_5);" (assignment_expression "iVar1 = FUN_00029840(param_1,param_2,param_3,param_4,param_5)" identifier = (call_expression "FUN_00029840(param_1,param_2,param_3,param_4,param_5)" identifier (argument_list "(param_1,param_2,param_3,param_4,param_5)" ( identifier , identifier , identifier , identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_6 != 0) {\n      if (param_7 == 0) {\n        sVar5 = strlen((char *)0x0);\n        pcVar4 = (char *)xmalloc(sVar5 + 3);\n        uVar6 = 0;\n        pcVar2 = "~%%%s";\n      }\n      else {\n        if (*(int *)(*(int *)(param_1 + 0x38) + 8) < 1) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }\n        pcVar4 = (char *)xmalloc(0x14);\n        uVar6 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 8);\n        pcVar2 = "~%%%ld";\n      }\n      sprintf(pcVar4,pcVar2,uVar6);\n      *(char **)(*(int *)(param_1 + 0x38) + 0x20) = pcVar4;\n    }" if (parenthesized_expression "(param_6 != 0)" ( (binary_expression "param_6 != 0" identifier != number_literal) )) (compound_statement "{\n      if (param_7 == 0) {\n        sVar5 = strlen((char *)0x0);\n        pcVar4 = (char *)xmalloc(sVar5 + 3);\n        uVar6 = 0;\n        pcVar2 = "~%%%s";\n      }\n      else {\n        if (*(int *)(*(int *)(param_1 + 0x38) + 8) < 1) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }\n        pcVar4 = (char *)xmalloc(0x14);\n        uVar6 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 8);\n        pcVar2 = "~%%%ld";\n      }\n      sprintf(pcVar4,pcVar2,uVar6);\n      *(char **)(*(int *)(param_1 + 0x38) + 0x20) = pcVar4;\n    }" { (if_statement "if (param_7 == 0) {\n        sVar5 = strlen((char *)0x0);\n        pcVar4 = (char *)xmalloc(sVar5 + 3);\n        uVar6 = 0;\n        pcVar2 = "~%%%s";\n      }\n      else {\n        if (*(int *)(*(int *)(param_1 + 0x38) + 8) < 1) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }\n        pcVar4 = (char *)xmalloc(0x14);\n        uVar6 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 8);\n        pcVar2 = "~%%%ld";\n      }" if (parenthesized_expression "(param_7 == 0)" ( (binary_expression "param_7 == 0" identifier == number_literal) )) (compound_statement "{\n        sVar5 = strlen((char *)0x0);\n        pcVar4 = (char *)xmalloc(sVar5 + 3);\n        uVar6 = 0;\n        pcVar2 = "~%%%s";\n      }" { (expression_statement "sVar5 = strlen((char *)0x0);" (assignment_expression "sVar5 = strlen((char *)0x0)" identifier = (call_expression "strlen((char *)0x0)" identifier (argument_list "((char *)0x0)" ( (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (expression_statement "pcVar4 = (char *)xmalloc(sVar5 + 3);" (assignment_expression "pcVar4 = (char *)xmalloc(sVar5 + 3)" identifier = (cast_expression "(char *)xmalloc(sVar5 + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar5 + 3)" identifier (argument_list "(sVar5 + 3)" ( (binary_expression "sVar5 + 3" identifier + number_literal) ))))) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (expression_statement "pcVar2 = "~%%%s";" (assignment_expression "pcVar2 = "~%%%s"" identifier = (string_literal ""~%%%s"" " string_content ")) ;) }) (else_clause "else {\n        if (*(int *)(*(int *)(param_1 + 0x38) + 8) < 1) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }\n        pcVar4 = (char *)xmalloc(0x14);\n        uVar6 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 8);\n        pcVar2 = "~%%%ld";\n      }" else (compound_statement "{\n        if (*(int *)(*(int *)(param_1 + 0x38) + 8) < 1) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }\n        pcVar4 = (char *)xmalloc(0x14);\n        uVar6 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 8);\n        pcVar2 = "~%%%ld";\n      }" { (if_statement "if (*(int *)(*(int *)(param_1 + 0x38) + 8) < 1) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }" if (parenthesized_expression "(*(int *)(*(int *)(param_1 + 0x38) + 8) < 1)" ( (binary_expression "*(int *)(*(int *)(param_1 + 0x38) + 8) < 1" (pointer_expression "*(int *)(*(int *)(param_1 + 0x38) + 8)" * (cast_expression "(int *)(*(int *)(param_1 + 0x38) + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x38) + 8)" ( (binary_expression "*(int *)(param_1 + 0x38) + 8" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) + number_literal) )))) < number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }" { comment (expression_statement "__assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");" (call_expression "__assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type")" identifier (argument_list "("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type")" ( (string_literal ""info->type_stack->index > 0"" " string_content ") , (string_literal ""../../binutils/wrstabs.c"" " string_content ") , number_literal , (string_literal ""stab_start_class_type"" " string_content ") ))) ;) })) (expression_statement "pcVar4 = (char *)xmalloc(0x14);" (assignment_expression "pcVar4 = (char *)xmalloc(0x14)" identifier = (cast_expression "(char *)xmalloc(0x14)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x14)" identifier (argument_list "(0x14)" ( number_literal ))))) ;) (expression_statement "uVar6 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 8);" (assignment_expression "uVar6 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 8)" identifier = (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x38) + 8)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x38) + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x38) + 8)" ( (binary_expression "*(int *)(param_1 + 0x38) + 8" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "pcVar2 = "~%%%ld";" (assignment_expression "pcVar2 = "~%%%ld"" identifier = (string_literal ""~%%%ld"" " string_content ")) ;) }))) (expression_statement "sprintf(pcVar4,pcVar2,uVar6);" (call_expression "sprintf(pcVar4,pcVar2,uVar6)" identifier (argument_list "(pcVar4,pcVar2,uVar6)" ( identifier , identifier , identifier ))) ;) (expression_statement "*(char **)(*(int *)(param_1 + 0x38) + 0x20) = pcVar4;" (assignment_expression "*(char **)(*(int *)(param_1 + 0x38) + 0x20) = pcVar4" (pointer_expression "*(char **)(*(int *)(param_1 + 0x38) + 0x20)" * (cast_expression "(char **)(*(int *)(param_1 + 0x38) + 0x20)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0x38) + 0x20)" ( (binary_expression "*(int *)(param_1 + 0x38) + 0x20" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) + number_literal) )))) = identifier) ;) })) }) (else_clause "else {\n    iVar1 = *(int *)(*(int *)(param_1 + 0x38) + 0x10);\n    pcVar2 = (char *)FUN_00028700();\n    iVar3 = FUN_00029840(param_1,param_2,param_3,param_4,param_5);\n    if (iVar3 == 0) {\n      return 0;\n    }\n    sVar5 = strlen(pcVar2);\n    pcVar4 = (char *)xmalloc(sVar5 + 3);\n    sprintf(pcVar4,"~%%%s",pcVar2);\n    free(pcVar2);\n    iVar3 = *(int *)(param_1 + 0x38);\n    *(char **)(iVar3 + 0x20) = pcVar4;\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar3 + 0x10) = 1;\n      return 1;\n    }\n  }" else (compound_statement "{\n    iVar1 = *(int *)(*(int *)(param_1 + 0x38) + 0x10);\n    pcVar2 = (char *)FUN_00028700();\n    iVar3 = FUN_00029840(param_1,param_2,param_3,param_4,param_5);\n    if (iVar3 == 0) {\n      return 0;\n    }\n    sVar5 = strlen(pcVar2);\n    pcVar4 = (char *)xmalloc(sVar5 + 3);\n    sprintf(pcVar4,"~%%%s",pcVar2);\n    free(pcVar2);\n    iVar3 = *(int *)(param_1 + 0x38);\n    *(char **)(iVar3 + 0x20) = pcVar4;\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar3 + 0x10) = 1;\n      return 1;\n    }\n  }" { (expression_statement "iVar1 = *(int *)(*(int *)(param_1 + 0x38) + 0x10);" (assignment_expression "iVar1 = *(int *)(*(int *)(param_1 + 0x38) + 0x10)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0x38) + 0x10)" * (cast_expression "(int *)(*(int *)(param_1 + 0x38) + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x38) + 0x10)" ( (binary_expression "*(int *)(param_1 + 0x38) + 0x10" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "pcVar2 = (char *)FUN_00028700();" (assignment_expression "pcVar2 = (char *)FUN_00028700()" identifier = (cast_expression "(char *)FUN_00028700()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00028700()" identifier (argument_list "()" ( ))))) ;) (expression_statement "iVar3 = FUN_00029840(param_1,param_2,param_3,param_4,param_5);" (assignment_expression "iVar3 = FUN_00029840(param_1,param_2,param_3,param_4,param_5)" identifier = (call_expression "FUN_00029840(param_1,param_2,param_3,param_4,param_5)" identifier (argument_list "(param_1,param_2,param_3,param_4,param_5)" ( identifier , identifier , identifier , identifier , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "sVar5 = strlen(pcVar2);" (assignment_expression "sVar5 = strlen(pcVar2)" identifier = (call_expression "strlen(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier )))) ;) (expression_statement "pcVar4 = (char *)xmalloc(sVar5 + 3);" (assignment_expression "pcVar4 = (char *)xmalloc(sVar5 + 3)" identifier = (cast_expression "(char *)xmalloc(sVar5 + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar5 + 3)" identifier (argument_list "(sVar5 + 3)" ( (binary_expression "sVar5 + 3" identifier + number_literal) ))))) ;) (expression_statement "sprintf(pcVar4,"~%%%s",pcVar2);" (call_expression "sprintf(pcVar4,"~%%%s",pcVar2)" identifier (argument_list "(pcVar4,"~%%%s",pcVar2)" ( identifier , (string_literal ""~%%%s"" " string_content ") , identifier ))) ;) (expression_statement "free(pcVar2);" (call_expression "free(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier ))) ;) (expression_statement "iVar3 = *(int *)(param_1 + 0x38);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x38)" identifier = (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) ))))) ;) (expression_statement "*(char **)(iVar3 + 0x20) = pcVar4;" (assignment_expression "*(char **)(iVar3 + 0x20) = pcVar4" (pointer_expression "*(char **)(iVar3 + 0x20)" * (cast_expression "(char **)(iVar3 + 0x20)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0x20)" ( (binary_expression "iVar3 + 0x20" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar1 != 0) {\n      *(undefined4 *)(iVar3 + 0x10) = 1;\n      return 1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      *(undefined4 *)(iVar3 + 0x10) = 1;\n      return 1;\n    }" { (expression_statement "*(undefined4 *)(iVar3 + 0x10) = 1;" (assignment_expression "*(undefined4 *)(iVar3 + 0x10) = 1" (pointer_expression "*(undefined4 *)(iVar3 + 0x10)" * (cast_expression "(undefined4 *)(iVar3 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) }))) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbfd_boolean\nstab_start_class_type\n          (void *p,char *tag,uint id,bfd_boolean structp,uint size,bfd_boolean vptr,\n          bfd_boolean ownvptr)\n\n{\n  int iVar1;\n  int iVar2;\n  bfd_boolean bVar3;\n  char *pcVar4;\n  char *pcVar5;\n  size_t sVar6;\n  undefined4 uVar7;\n  \n  if ((vptr == 0) || (ownvptr != 0)) {\n    bVar3 = stab_start_struct_type(p,tag,id,structp,size);\n    if (bVar3 == 0) {\n      return 0;\n    }\n    if (vptr != 0) {\n      if (ownvptr == 0) {\n        sVar6 = strlen((char *)0x0);\n        pcVar5 = (char *)xmalloc(sVar6 + 3);\n        uVar7 = 0;\n        pcVar4 = "~%%%s";\n      }\n      else {\n        if (*(int *)(*(int *)((int)p + 0x38) + 8) < 1) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }\n        pcVar5 = (char *)xmalloc(0x14);\n        uVar7 = *(undefined4 *)(*(int *)((int)p + 0x38) + 8);\n        pcVar4 = "~%%%ld";\n      }\n      sprintf(pcVar5,pcVar4,uVar7);\n      *(char **)(*(int *)((int)p + 0x38) + 0x20) = pcVar5;\n    }\n  }\n  else {\n    iVar1 = *(int *)(*(int *)((int)p + 0x38) + 0x10);\n    pcVar4 = stab_pop_type((stab_write_handle *)((int)p + 0x38));\n    bVar3 = stab_start_struct_type(p,tag,id,structp,size);\n    if (bVar3 == 0) {\n      return 0;\n    }\n    sVar6 = strlen(pcVar4);\n    pcVar5 = (char *)xmalloc(sVar6 + 3);\n    sprintf(pcVar5,"~%%%s",pcVar4);\n    free(pcVar4);\n    iVar2 = *(int *)((int)p + 0x38);\n    *(char **)(iVar2 + 0x20) = pcVar5;\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar2 + 0x10) = 1;\n      return 1;\n    }\n  }\n  return 1;\n}\n\n" comment (function_definition "bfd_boolean\nstab_start_class_type\n          (void *p,char *tag,uint id,bfd_boolean structp,uint size,bfd_boolean vptr,\n          bfd_boolean ownvptr)\n\n{\n  int iVar1;\n  int iVar2;\n  bfd_boolean bVar3;\n  char *pcVar4;\n  char *pcVar5;\n  size_t sVar6;\n  undefined4 uVar7;\n  \n  if ((vptr == 0) || (ownvptr != 0)) {\n    bVar3 = stab_start_struct_type(p,tag,id,structp,size);\n    if (bVar3 == 0) {\n      return 0;\n    }\n    if (vptr != 0) {\n      if (ownvptr == 0) {\n        sVar6 = strlen((char *)0x0);\n        pcVar5 = (char *)xmalloc(sVar6 + 3);\n        uVar7 = 0;\n        pcVar4 = "~%%%s";\n      }\n      else {\n        if (*(int *)(*(int *)((int)p + 0x38) + 8) < 1) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }\n        pcVar5 = (char *)xmalloc(0x14);\n        uVar7 = *(undefined4 *)(*(int *)((int)p + 0x38) + 8);\n        pcVar4 = "~%%%ld";\n      }\n      sprintf(pcVar5,pcVar4,uVar7);\n      *(char **)(*(int *)((int)p + 0x38) + 0x20) = pcVar5;\n    }\n  }\n  else {\n    iVar1 = *(int *)(*(int *)((int)p + 0x38) + 0x10);\n    pcVar4 = stab_pop_type((stab_write_handle *)((int)p + 0x38));\n    bVar3 = stab_start_struct_type(p,tag,id,structp,size);\n    if (bVar3 == 0) {\n      return 0;\n    }\n    sVar6 = strlen(pcVar4);\n    pcVar5 = (char *)xmalloc(sVar6 + 3);\n    sprintf(pcVar5,"~%%%s",pcVar4);\n    free(pcVar4);\n    iVar2 = *(int *)((int)p + 0x38);\n    *(char **)(iVar2 + 0x20) = pcVar5;\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar2 + 0x10) = 1;\n      return 1;\n    }\n  }\n  return 1;\n}" type_identifier (function_declarator "stab_start_class_type\n          (void *p,char *tag,uint id,bfd_boolean structp,uint size,bfd_boolean vptr,\n          bfd_boolean ownvptr)" identifier (parameter_list "(void *p,char *tag,uint id,bfd_boolean structp,uint size,bfd_boolean vptr,\n          bfd_boolean ownvptr)" ( (parameter_declaration "void *p" primitive_type (pointer_declarator "*p" * identifier)) , (parameter_declaration "char *tag" primitive_type (pointer_declarator "*tag" * identifier)) , (parameter_declaration "uint id" type_identifier identifier) , (parameter_declaration "bfd_boolean structp" type_identifier identifier) , (parameter_declaration "uint size" type_identifier identifier) , (parameter_declaration "bfd_boolean vptr" type_identifier identifier) , (parameter_declaration "bfd_boolean ownvptr" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  bfd_boolean bVar3;\n  char *pcVar4;\n  char *pcVar5;\n  size_t sVar6;\n  undefined4 uVar7;\n  \n  if ((vptr == 0) || (ownvptr != 0)) {\n    bVar3 = stab_start_struct_type(p,tag,id,structp,size);\n    if (bVar3 == 0) {\n      return 0;\n    }\n    if (vptr != 0) {\n      if (ownvptr == 0) {\n        sVar6 = strlen((char *)0x0);\n        pcVar5 = (char *)xmalloc(sVar6 + 3);\n        uVar7 = 0;\n        pcVar4 = "~%%%s";\n      }\n      else {\n        if (*(int *)(*(int *)((int)p + 0x38) + 8) < 1) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }\n        pcVar5 = (char *)xmalloc(0x14);\n        uVar7 = *(undefined4 *)(*(int *)((int)p + 0x38) + 8);\n        pcVar4 = "~%%%ld";\n      }\n      sprintf(pcVar5,pcVar4,uVar7);\n      *(char **)(*(int *)((int)p + 0x38) + 0x20) = pcVar5;\n    }\n  }\n  else {\n    iVar1 = *(int *)(*(int *)((int)p + 0x38) + 0x10);\n    pcVar4 = stab_pop_type((stab_write_handle *)((int)p + 0x38));\n    bVar3 = stab_start_struct_type(p,tag,id,structp,size);\n    if (bVar3 == 0) {\n      return 0;\n    }\n    sVar6 = strlen(pcVar4);\n    pcVar5 = (char *)xmalloc(sVar6 + 3);\n    sprintf(pcVar5,"~%%%s",pcVar4);\n    free(pcVar4);\n    iVar2 = *(int *)((int)p + 0x38);\n    *(char **)(iVar2 + 0x20) = pcVar5;\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar2 + 0x10) = 1;\n      return 1;\n    }\n  }\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "bfd_boolean bVar3;" type_identifier identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (if_statement "if ((vptr == 0) || (ownvptr != 0)) {\n    bVar3 = stab_start_struct_type(p,tag,id,structp,size);\n    if (bVar3 == 0) {\n      return 0;\n    }\n    if (vptr != 0) {\n      if (ownvptr == 0) {\n        sVar6 = strlen((char *)0x0);\n        pcVar5 = (char *)xmalloc(sVar6 + 3);\n        uVar7 = 0;\n        pcVar4 = "~%%%s";\n      }\n      else {\n        if (*(int *)(*(int *)((int)p + 0x38) + 8) < 1) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }\n        pcVar5 = (char *)xmalloc(0x14);\n        uVar7 = *(undefined4 *)(*(int *)((int)p + 0x38) + 8);\n        pcVar4 = "~%%%ld";\n      }\n      sprintf(pcVar5,pcVar4,uVar7);\n      *(char **)(*(int *)((int)p + 0x38) + 0x20) = pcVar5;\n    }\n  }\n  else {\n    iVar1 = *(int *)(*(int *)((int)p + 0x38) + 0x10);\n    pcVar4 = stab_pop_type((stab_write_handle *)((int)p + 0x38));\n    bVar3 = stab_start_struct_type(p,tag,id,structp,size);\n    if (bVar3 == 0) {\n      return 0;\n    }\n    sVar6 = strlen(pcVar4);\n    pcVar5 = (char *)xmalloc(sVar6 + 3);\n    sprintf(pcVar5,"~%%%s",pcVar4);\n    free(pcVar4);\n    iVar2 = *(int *)((int)p + 0x38);\n    *(char **)(iVar2 + 0x20) = pcVar5;\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar2 + 0x10) = 1;\n      return 1;\n    }\n  }" if (parenthesized_expression "((vptr == 0) || (ownvptr != 0))" ( (binary_expression "(vptr == 0) || (ownvptr != 0)" (parenthesized_expression "(vptr == 0)" ( (binary_expression "vptr == 0" identifier == number_literal) )) || (parenthesized_expression "(ownvptr != 0)" ( (binary_expression "ownvptr != 0" identifier != number_literal) ))) )) (compound_statement "{\n    bVar3 = stab_start_struct_type(p,tag,id,structp,size);\n    if (bVar3 == 0) {\n      return 0;\n    }\n    if (vptr != 0) {\n      if (ownvptr == 0) {\n        sVar6 = strlen((char *)0x0);\n        pcVar5 = (char *)xmalloc(sVar6 + 3);\n        uVar7 = 0;\n        pcVar4 = "~%%%s";\n      }\n      else {\n        if (*(int *)(*(int *)((int)p + 0x38) + 8) < 1) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }\n        pcVar5 = (char *)xmalloc(0x14);\n        uVar7 = *(undefined4 *)(*(int *)((int)p + 0x38) + 8);\n        pcVar4 = "~%%%ld";\n      }\n      sprintf(pcVar5,pcVar4,uVar7);\n      *(char **)(*(int *)((int)p + 0x38) + 0x20) = pcVar5;\n    }\n  }" { (expression_statement "bVar3 = stab_start_struct_type(p,tag,id,structp,size);" (assignment_expression "bVar3 = stab_start_struct_type(p,tag,id,structp,size)" identifier = (call_expression "stab_start_struct_type(p,tag,id,structp,size)" identifier (argument_list "(p,tag,id,structp,size)" ( identifier , identifier , identifier , identifier , identifier )))) ;) (if_statement "if (bVar3 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(bVar3 == 0)" ( (binary_expression "bVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (vptr != 0) {\n      if (ownvptr == 0) {\n        sVar6 = strlen((char *)0x0);\n        pcVar5 = (char *)xmalloc(sVar6 + 3);\n        uVar7 = 0;\n        pcVar4 = "~%%%s";\n      }\n      else {\n        if (*(int *)(*(int *)((int)p + 0x38) + 8) < 1) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }\n        pcVar5 = (char *)xmalloc(0x14);\n        uVar7 = *(undefined4 *)(*(int *)((int)p + 0x38) + 8);\n        pcVar4 = "~%%%ld";\n      }\n      sprintf(pcVar5,pcVar4,uVar7);\n      *(char **)(*(int *)((int)p + 0x38) + 0x20) = pcVar5;\n    }" if (parenthesized_expression "(vptr != 0)" ( (binary_expression "vptr != 0" identifier != number_literal) )) (compound_statement "{\n      if (ownvptr == 0) {\n        sVar6 = strlen((char *)0x0);\n        pcVar5 = (char *)xmalloc(sVar6 + 3);\n        uVar7 = 0;\n        pcVar4 = "~%%%s";\n      }\n      else {\n        if (*(int *)(*(int *)((int)p + 0x38) + 8) < 1) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }\n        pcVar5 = (char *)xmalloc(0x14);\n        uVar7 = *(undefined4 *)(*(int *)((int)p + 0x38) + 8);\n        pcVar4 = "~%%%ld";\n      }\n      sprintf(pcVar5,pcVar4,uVar7);\n      *(char **)(*(int *)((int)p + 0x38) + 0x20) = pcVar5;\n    }" { (if_statement "if (ownvptr == 0) {\n        sVar6 = strlen((char *)0x0);\n        pcVar5 = (char *)xmalloc(sVar6 + 3);\n        uVar7 = 0;\n        pcVar4 = "~%%%s";\n      }\n      else {\n        if (*(int *)(*(int *)((int)p + 0x38) + 8) < 1) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }\n        pcVar5 = (char *)xmalloc(0x14);\n        uVar7 = *(undefined4 *)(*(int *)((int)p + 0x38) + 8);\n        pcVar4 = "~%%%ld";\n      }" if (parenthesized_expression "(ownvptr == 0)" ( (binary_expression "ownvptr == 0" identifier == number_literal) )) (compound_statement "{\n        sVar6 = strlen((char *)0x0);\n        pcVar5 = (char *)xmalloc(sVar6 + 3);\n        uVar7 = 0;\n        pcVar4 = "~%%%s";\n      }" { (expression_statement "sVar6 = strlen((char *)0x0);" (assignment_expression "sVar6 = strlen((char *)0x0)" identifier = (call_expression "strlen((char *)0x0)" identifier (argument_list "((char *)0x0)" ( (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (expression_statement "pcVar5 = (char *)xmalloc(sVar6 + 3);" (assignment_expression "pcVar5 = (char *)xmalloc(sVar6 + 3)" identifier = (cast_expression "(char *)xmalloc(sVar6 + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar6 + 3)" identifier (argument_list "(sVar6 + 3)" ( (binary_expression "sVar6 + 3" identifier + number_literal) ))))) ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "pcVar4 = "~%%%s";" (assignment_expression "pcVar4 = "~%%%s"" identifier = (string_literal ""~%%%s"" " string_content ")) ;) }) (else_clause "else {\n        if (*(int *)(*(int *)((int)p + 0x38) + 8) < 1) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }\n        pcVar5 = (char *)xmalloc(0x14);\n        uVar7 = *(undefined4 *)(*(int *)((int)p + 0x38) + 8);\n        pcVar4 = "~%%%ld";\n      }" else (compound_statement "{\n        if (*(int *)(*(int *)((int)p + 0x38) + 8) < 1) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }\n        pcVar5 = (char *)xmalloc(0x14);\n        uVar7 = *(undefined4 *)(*(int *)((int)p + 0x38) + 8);\n        pcVar4 = "~%%%ld";\n      }" { (if_statement "if (*(int *)(*(int *)((int)p + 0x38) + 8) < 1) {\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }" if (parenthesized_expression "(*(int *)(*(int *)((int)p + 0x38) + 8) < 1)" ( (binary_expression "*(int *)(*(int *)((int)p + 0x38) + 8) < 1" (pointer_expression "*(int *)(*(int *)((int)p + 0x38) + 8)" * (cast_expression "(int *)(*(int *)((int)p + 0x38) + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)((int)p + 0x38) + 8)" ( (binary_expression "*(int *)((int)p + 0x38) + 8" (pointer_expression "*(int *)((int)p + 0x38)" * (cast_expression "(int *)((int)p + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 0x38)" ( (binary_expression "(int)p + 0x38" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + number_literal) )))) < number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }" { comment (expression_statement "__assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");" (call_expression "__assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type")" identifier (argument_list "("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type")" ( (string_literal ""info->type_stack->index > 0"" " string_content ") , (string_literal ""../../binutils/wrstabs.c"" " string_content ") , number_literal , (string_literal ""stab_start_class_type"" " string_content ") ))) ;) })) (expression_statement "pcVar5 = (char *)xmalloc(0x14);" (assignment_expression "pcVar5 = (char *)xmalloc(0x14)" identifier = (cast_expression "(char *)xmalloc(0x14)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x14)" identifier (argument_list "(0x14)" ( number_literal ))))) ;) (expression_statement "uVar7 = *(undefined4 *)(*(int *)((int)p + 0x38) + 8);" (assignment_expression "uVar7 = *(undefined4 *)(*(int *)((int)p + 0x38) + 8)" identifier = (pointer_expression "*(undefined4 *)(*(int *)((int)p + 0x38) + 8)" * (cast_expression "(undefined4 *)(*(int *)((int)p + 0x38) + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)((int)p + 0x38) + 8)" ( (binary_expression "*(int *)((int)p + 0x38) + 8" (pointer_expression "*(int *)((int)p + 0x38)" * (cast_expression "(int *)((int)p + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 0x38)" ( (binary_expression "(int)p + 0x38" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + number_literal) ))))) ;) (expression_statement "pcVar4 = "~%%%ld";" (assignment_expression "pcVar4 = "~%%%ld"" identifier = (string_literal ""~%%%ld"" " string_content ")) ;) }))) (expression_statement "sprintf(pcVar5,pcVar4,uVar7);" (call_expression "sprintf(pcVar5,pcVar4,uVar7)" identifier (argument_list "(pcVar5,pcVar4,uVar7)" ( identifier , identifier , identifier ))) ;) (expression_statement "*(char **)(*(int *)((int)p + 0x38) + 0x20) = pcVar5;" (assignment_expression "*(char **)(*(int *)((int)p + 0x38) + 0x20) = pcVar5" (pointer_expression "*(char **)(*(int *)((int)p + 0x38) + 0x20)" * (cast_expression "(char **)(*(int *)((int)p + 0x38) + 0x20)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)((int)p + 0x38) + 0x20)" ( (binary_expression "*(int *)((int)p + 0x38) + 0x20" (pointer_expression "*(int *)((int)p + 0x38)" * (cast_expression "(int *)((int)p + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 0x38)" ( (binary_expression "(int)p + 0x38" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + number_literal) )))) = identifier) ;) })) }) (else_clause "else {\n    iVar1 = *(int *)(*(int *)((int)p + 0x38) + 0x10);\n    pcVar4 = stab_pop_type((stab_write_handle *)((int)p + 0x38));\n    bVar3 = stab_start_struct_type(p,tag,id,structp,size);\n    if (bVar3 == 0) {\n      return 0;\n    }\n    sVar6 = strlen(pcVar4);\n    pcVar5 = (char *)xmalloc(sVar6 + 3);\n    sprintf(pcVar5,"~%%%s",pcVar4);\n    free(pcVar4);\n    iVar2 = *(int *)((int)p + 0x38);\n    *(char **)(iVar2 + 0x20) = pcVar5;\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar2 + 0x10) = 1;\n      return 1;\n    }\n  }" else (compound_statement "{\n    iVar1 = *(int *)(*(int *)((int)p + 0x38) + 0x10);\n    pcVar4 = stab_pop_type((stab_write_handle *)((int)p + 0x38));\n    bVar3 = stab_start_struct_type(p,tag,id,structp,size);\n    if (bVar3 == 0) {\n      return 0;\n    }\n    sVar6 = strlen(pcVar4);\n    pcVar5 = (char *)xmalloc(sVar6 + 3);\n    sprintf(pcVar5,"~%%%s",pcVar4);\n    free(pcVar4);\n    iVar2 = *(int *)((int)p + 0x38);\n    *(char **)(iVar2 + 0x20) = pcVar5;\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar2 + 0x10) = 1;\n      return 1;\n    }\n  }" { (expression_statement "iVar1 = *(int *)(*(int *)((int)p + 0x38) + 0x10);" (assignment_expression "iVar1 = *(int *)(*(int *)((int)p + 0x38) + 0x10)" identifier = (pointer_expression "*(int *)(*(int *)((int)p + 0x38) + 0x10)" * (cast_expression "(int *)(*(int *)((int)p + 0x38) + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)((int)p + 0x38) + 0x10)" ( (binary_expression "*(int *)((int)p + 0x38) + 0x10" (pointer_expression "*(int *)((int)p + 0x38)" * (cast_expression "(int *)((int)p + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 0x38)" ( (binary_expression "(int)p + 0x38" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) + number_literal) ))))) ;) (expression_statement "pcVar4 = stab_pop_type((stab_write_handle *)((int)p + 0x38));" (assignment_expression "pcVar4 = stab_pop_type((stab_write_handle *)((int)p + 0x38))" identifier = (call_expression "stab_pop_type((stab_write_handle *)((int)p + 0x38))" identifier (argument_list "((stab_write_handle *)((int)p + 0x38))" ( (cast_expression "(stab_write_handle *)((int)p + 0x38)" ( (type_descriptor "stab_write_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 0x38)" ( (binary_expression "(int)p + 0x38" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))) )))) ;) (expression_statement "bVar3 = stab_start_struct_type(p,tag,id,structp,size);" (assignment_expression "bVar3 = stab_start_struct_type(p,tag,id,structp,size)" identifier = (call_expression "stab_start_struct_type(p,tag,id,structp,size)" identifier (argument_list "(p,tag,id,structp,size)" ( identifier , identifier , identifier , identifier , identifier )))) ;) (if_statement "if (bVar3 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(bVar3 == 0)" ( (binary_expression "bVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "sVar6 = strlen(pcVar4);" (assignment_expression "sVar6 = strlen(pcVar4)" identifier = (call_expression "strlen(pcVar4)" identifier (argument_list "(pcVar4)" ( identifier )))) ;) (expression_statement "pcVar5 = (char *)xmalloc(sVar6 + 3);" (assignment_expression "pcVar5 = (char *)xmalloc(sVar6 + 3)" identifier = (cast_expression "(char *)xmalloc(sVar6 + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar6 + 3)" identifier (argument_list "(sVar6 + 3)" ( (binary_expression "sVar6 + 3" identifier + number_literal) ))))) ;) (expression_statement "sprintf(pcVar5,"~%%%s",pcVar4);" (call_expression "sprintf(pcVar5,"~%%%s",pcVar4)" identifier (argument_list "(pcVar5,"~%%%s",pcVar4)" ( identifier , (string_literal ""~%%%s"" " string_content ") , identifier ))) ;) (expression_statement "free(pcVar4);" (call_expression "free(pcVar4)" identifier (argument_list "(pcVar4)" ( identifier ))) ;) (expression_statement "iVar2 = *(int *)((int)p + 0x38);" (assignment_expression "iVar2 = *(int *)((int)p + 0x38)" identifier = (pointer_expression "*(int *)((int)p + 0x38)" * (cast_expression "(int *)((int)p + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)p + 0x38)" ( (binary_expression "(int)p + 0x38" (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (expression_statement "*(char **)(iVar2 + 0x20) = pcVar5;" (assignment_expression "*(char **)(iVar2 + 0x20) = pcVar5" (pointer_expression "*(char **)(iVar2 + 0x20)" * (cast_expression "(char **)(iVar2 + 0x20)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x20)" ( (binary_expression "iVar2 + 0x20" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar1 != 0) {\n      *(undefined4 *)(iVar2 + 0x10) = 1;\n      return 1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      *(undefined4 *)(iVar2 + 0x10) = 1;\n      return 1;\n    }" { (expression_statement "*(undefined4 *)(iVar2 + 0x10) = 1;" (assignment_expression "*(undefined4 *)(iVar2 + 0x10) = 1" (pointer_expression "*(undefined4 *)(iVar2 + 0x10)" * (cast_expression "(undefined4 *)(iVar2 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) }))) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4\nFUN_00029980(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n            ,int param_6,int param_7)\n\n{\n  int iVar1;\n  char *pcVar2;\n  int iVar3;\n  char *pcVar4;\n  size_t sVar5;\n  undefined4 uVar6;\n  \n  if ((param_6 == 0) || (param_7 != 0)) {\n    iVar1 = FUN_00029840(param_1,param_2,param_3,param_4,param_5);\n    if (iVar1 == 0) {\n      return 0;\n    }\n    if (param_6 != 0) {\n      if (param_7 == 0) {\n        sVar5 = strlen((char *)0x0);\n        pcVar4 = (char *)xmalloc(sVar5 + 3);\n        uVar6 = 0;\n        pcVar2 = "~%%%s";\n      }\n      else {\n        if (*(int *)(*(int *)(param_1 + 0x38) + 8) < 1) {\n                    \n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }\n        pcVar4 = (char *)xmalloc(0x14);\n        uVar6 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 8);\n        pcVar2 = "~%%%ld";\n      }\n      sprintf(pcVar4,pcVar2,uVar6);\n      *(char **)(*(int *)(param_1 + 0x38) + 0x20) = pcVar4;\n    }\n  }\n  else {\n    iVar1 = *(int *)(*(int *)(param_1 + 0x38) + 0x10);\n    pcVar2 = (char *)FUN_00028700();\n    iVar3 = FUN_00029840(param_1,param_2,param_3,param_4,param_5);\n    if (iVar3 == 0) {\n      return 0;\n    }\n    sVar5 = strlen(pcVar2);\n    pcVar4 = (char *)xmalloc(sVar5 + 3);\n    sprintf(pcVar4,"~%%%s",pcVar2);\n    free(pcVar2);\n    iVar3 = *(int *)(param_1 + 0x38);\n    *(char **)(iVar3 + 0x20) = pcVar4;\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar3 + 0x10) = 1;\n      return 1;\n    }\n  }\n  return 1;\n}\n\n" (function_definition "undefined4\nFUN_00029980(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n            ,int param_6,int param_7)\n\n{\n  int iVar1;\n  char *pcVar2;\n  int iVar3;\n  char *pcVar4;\n  size_t sVar5;\n  undefined4 uVar6;\n  \n  if ((param_6 == 0) || (param_7 != 0)) {\n    iVar1 = FUN_00029840(param_1,param_2,param_3,param_4,param_5);\n    if (iVar1 == 0) {\n      return 0;\n    }\n    if (param_6 != 0) {\n      if (param_7 == 0) {\n        sVar5 = strlen((char *)0x0);\n        pcVar4 = (char *)xmalloc(sVar5 + 3);\n        uVar6 = 0;\n        pcVar2 = "~%%%s";\n      }\n      else {\n        if (*(int *)(*(int *)(param_1 + 0x38) + 8) < 1) {\n                    \n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }\n        pcVar4 = (char *)xmalloc(0x14);\n        uVar6 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 8);\n        pcVar2 = "~%%%ld";\n      }\n      sprintf(pcVar4,pcVar2,uVar6);\n      *(char **)(*(int *)(param_1 + 0x38) + 0x20) = pcVar4;\n    }\n  }\n  else {\n    iVar1 = *(int *)(*(int *)(param_1 + 0x38) + 0x10);\n    pcVar2 = (char *)FUN_00028700();\n    iVar3 = FUN_00029840(param_1,param_2,param_3,param_4,param_5);\n    if (iVar3 == 0) {\n      return 0;\n    }\n    sVar5 = strlen(pcVar2);\n    pcVar4 = (char *)xmalloc(sVar5 + 3);\n    sprintf(pcVar4,"~%%%s",pcVar2);\n    free(pcVar2);\n    iVar3 = *(int *)(param_1 + 0x38);\n    *(char **)(iVar3 + 0x20) = pcVar4;\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar3 + 0x10) = 1;\n      return 1;\n    }\n  }\n  return 1;\n}" type_identifier (function_declarator "FUN_00029980(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n            ,int param_6,int param_7)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n            ,int param_6,int param_7)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "int param_6" primitive_type identifier) , (parameter_declaration "int param_7" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  int iVar3;\n  char *pcVar4;\n  size_t sVar5;\n  undefined4 uVar6;\n  \n  if ((param_6 == 0) || (param_7 != 0)) {\n    iVar1 = FUN_00029840(param_1,param_2,param_3,param_4,param_5);\n    if (iVar1 == 0) {\n      return 0;\n    }\n    if (param_6 != 0) {\n      if (param_7 == 0) {\n        sVar5 = strlen((char *)0x0);\n        pcVar4 = (char *)xmalloc(sVar5 + 3);\n        uVar6 = 0;\n        pcVar2 = "~%%%s";\n      }\n      else {\n        if (*(int *)(*(int *)(param_1 + 0x38) + 8) < 1) {\n                    \n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }\n        pcVar4 = (char *)xmalloc(0x14);\n        uVar6 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 8);\n        pcVar2 = "~%%%ld";\n      }\n      sprintf(pcVar4,pcVar2,uVar6);\n      *(char **)(*(int *)(param_1 + 0x38) + 0x20) = pcVar4;\n    }\n  }\n  else {\n    iVar1 = *(int *)(*(int *)(param_1 + 0x38) + 0x10);\n    pcVar2 = (char *)FUN_00028700();\n    iVar3 = FUN_00029840(param_1,param_2,param_3,param_4,param_5);\n    if (iVar3 == 0) {\n      return 0;\n    }\n    sVar5 = strlen(pcVar2);\n    pcVar4 = (char *)xmalloc(sVar5 + 3);\n    sprintf(pcVar4,"~%%%s",pcVar2);\n    free(pcVar2);\n    iVar3 = *(int *)(param_1 + 0x38);\n    *(char **)(iVar3 + 0x20) = pcVar4;\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar3 + 0x10) = 1;\n      return 1;\n    }\n  }\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "undefined4 uVar6;" type_identifier identifier ;) (if_statement "if ((param_6 == 0) || (param_7 != 0)) {\n    iVar1 = FUN_00029840(param_1,param_2,param_3,param_4,param_5);\n    if (iVar1 == 0) {\n      return 0;\n    }\n    if (param_6 != 0) {\n      if (param_7 == 0) {\n        sVar5 = strlen((char *)0x0);\n        pcVar4 = (char *)xmalloc(sVar5 + 3);\n        uVar6 = 0;\n        pcVar2 = "~%%%s";\n      }\n      else {\n        if (*(int *)(*(int *)(param_1 + 0x38) + 8) < 1) {\n                    \n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }\n        pcVar4 = (char *)xmalloc(0x14);\n        uVar6 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 8);\n        pcVar2 = "~%%%ld";\n      }\n      sprintf(pcVar4,pcVar2,uVar6);\n      *(char **)(*(int *)(param_1 + 0x38) + 0x20) = pcVar4;\n    }\n  }\n  else {\n    iVar1 = *(int *)(*(int *)(param_1 + 0x38) + 0x10);\n    pcVar2 = (char *)FUN_00028700();\n    iVar3 = FUN_00029840(param_1,param_2,param_3,param_4,param_5);\n    if (iVar3 == 0) {\n      return 0;\n    }\n    sVar5 = strlen(pcVar2);\n    pcVar4 = (char *)xmalloc(sVar5 + 3);\n    sprintf(pcVar4,"~%%%s",pcVar2);\n    free(pcVar2);\n    iVar3 = *(int *)(param_1 + 0x38);\n    *(char **)(iVar3 + 0x20) = pcVar4;\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar3 + 0x10) = 1;\n      return 1;\n    }\n  }" if (parenthesized_expression "((param_6 == 0) || (param_7 != 0))" ( (binary_expression "(param_6 == 0) || (param_7 != 0)" (parenthesized_expression "(param_6 == 0)" ( (binary_expression "param_6 == 0" identifier == number_literal) )) || (parenthesized_expression "(param_7 != 0)" ( (binary_expression "param_7 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    iVar1 = FUN_00029840(param_1,param_2,param_3,param_4,param_5);\n    if (iVar1 == 0) {\n      return 0;\n    }\n    if (param_6 != 0) {\n      if (param_7 == 0) {\n        sVar5 = strlen((char *)0x0);\n        pcVar4 = (char *)xmalloc(sVar5 + 3);\n        uVar6 = 0;\n        pcVar2 = "~%%%s";\n      }\n      else {\n        if (*(int *)(*(int *)(param_1 + 0x38) + 8) < 1) {\n                    \n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }\n        pcVar4 = (char *)xmalloc(0x14);\n        uVar6 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 8);\n        pcVar2 = "~%%%ld";\n      }\n      sprintf(pcVar4,pcVar2,uVar6);\n      *(char **)(*(int *)(param_1 + 0x38) + 0x20) = pcVar4;\n    }\n  }" { (expression_statement "iVar1 = FUN_00029840(param_1,param_2,param_3,param_4,param_5);" (assignment_expression "iVar1 = FUN_00029840(param_1,param_2,param_3,param_4,param_5)" identifier = (call_expression "FUN_00029840(param_1,param_2,param_3,param_4,param_5)" identifier (argument_list "(param_1,param_2,param_3,param_4,param_5)" ( identifier , identifier , identifier , identifier , identifier )))) ;) (if_statement "if (iVar1 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (if_statement "if (param_6 != 0) {\n      if (param_7 == 0) {\n        sVar5 = strlen((char *)0x0);\n        pcVar4 = (char *)xmalloc(sVar5 + 3);\n        uVar6 = 0;\n        pcVar2 = "~%%%s";\n      }\n      else {\n        if (*(int *)(*(int *)(param_1 + 0x38) + 8) < 1) {\n                    \n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }\n        pcVar4 = (char *)xmalloc(0x14);\n        uVar6 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 8);\n        pcVar2 = "~%%%ld";\n      }\n      sprintf(pcVar4,pcVar2,uVar6);\n      *(char **)(*(int *)(param_1 + 0x38) + 0x20) = pcVar4;\n    }" if (parenthesized_expression "(param_6 != 0)" ( (binary_expression "param_6 != 0" identifier != number_literal) )) (compound_statement "{\n      if (param_7 == 0) {\n        sVar5 = strlen((char *)0x0);\n        pcVar4 = (char *)xmalloc(sVar5 + 3);\n        uVar6 = 0;\n        pcVar2 = "~%%%s";\n      }\n      else {\n        if (*(int *)(*(int *)(param_1 + 0x38) + 8) < 1) {\n                    \n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }\n        pcVar4 = (char *)xmalloc(0x14);\n        uVar6 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 8);\n        pcVar2 = "~%%%ld";\n      }\n      sprintf(pcVar4,pcVar2,uVar6);\n      *(char **)(*(int *)(param_1 + 0x38) + 0x20) = pcVar4;\n    }" { (if_statement "if (param_7 == 0) {\n        sVar5 = strlen((char *)0x0);\n        pcVar4 = (char *)xmalloc(sVar5 + 3);\n        uVar6 = 0;\n        pcVar2 = "~%%%s";\n      }\n      else {\n        if (*(int *)(*(int *)(param_1 + 0x38) + 8) < 1) {\n                    \n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }\n        pcVar4 = (char *)xmalloc(0x14);\n        uVar6 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 8);\n        pcVar2 = "~%%%ld";\n      }" if (parenthesized_expression "(param_7 == 0)" ( (binary_expression "param_7 == 0" identifier == number_literal) )) (compound_statement "{\n        sVar5 = strlen((char *)0x0);\n        pcVar4 = (char *)xmalloc(sVar5 + 3);\n        uVar6 = 0;\n        pcVar2 = "~%%%s";\n      }" { (expression_statement "sVar5 = strlen((char *)0x0);" (assignment_expression "sVar5 = strlen((char *)0x0)" identifier = (call_expression "strlen((char *)0x0)" identifier (argument_list "((char *)0x0)" ( (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (expression_statement "pcVar4 = (char *)xmalloc(sVar5 + 3);" (assignment_expression "pcVar4 = (char *)xmalloc(sVar5 + 3)" identifier = (cast_expression "(char *)xmalloc(sVar5 + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar5 + 3)" identifier (argument_list "(sVar5 + 3)" ( (binary_expression "sVar5 + 3" identifier + number_literal) ))))) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (expression_statement "pcVar2 = "~%%%s";" (assignment_expression "pcVar2 = "~%%%s"" identifier = (string_literal ""~%%%s"" " string_content ")) ;) }) (else_clause "else {\n        if (*(int *)(*(int *)(param_1 + 0x38) + 8) < 1) {\n                    \n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }\n        pcVar4 = (char *)xmalloc(0x14);\n        uVar6 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 8);\n        pcVar2 = "~%%%ld";\n      }" else (compound_statement "{\n        if (*(int *)(*(int *)(param_1 + 0x38) + 8) < 1) {\n                    \n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }\n        pcVar4 = (char *)xmalloc(0x14);\n        uVar6 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 8);\n        pcVar2 = "~%%%ld";\n      }" { (if_statement "if (*(int *)(*(int *)(param_1 + 0x38) + 8) < 1) {\n                    \n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }" if (parenthesized_expression "(*(int *)(*(int *)(param_1 + 0x38) + 8) < 1)" ( (binary_expression "*(int *)(*(int *)(param_1 + 0x38) + 8) < 1" (pointer_expression "*(int *)(*(int *)(param_1 + 0x38) + 8)" * (cast_expression "(int *)(*(int *)(param_1 + 0x38) + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x38) + 8)" ( (binary_expression "*(int *)(param_1 + 0x38) + 8" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) + number_literal) )))) < number_literal) )) (compound_statement "{\n                    \n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }" { (expression_statement "__assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");" (call_expression "__assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type")" identifier (argument_list "("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type")" ( (string_literal ""info->type_stack->index > 0"" " string_content ") , (string_literal ""../../binutils/wrstabs.c"" " string_content ") , number_literal , (string_literal ""stab_start_class_type"" " string_content ") ))) ;) })) (expression_statement "pcVar4 = (char *)xmalloc(0x14);" (assignment_expression "pcVar4 = (char *)xmalloc(0x14)" identifier = (cast_expression "(char *)xmalloc(0x14)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(0x14)" identifier (argument_list "(0x14)" ( number_literal ))))) ;) (expression_statement "uVar6 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 8);" (assignment_expression "uVar6 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 8)" identifier = (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x38) + 8)" * (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x38) + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x38) + 8)" ( (binary_expression "*(int *)(param_1 + 0x38) + 8" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "pcVar2 = "~%%%ld";" (assignment_expression "pcVar2 = "~%%%ld"" identifier = (string_literal ""~%%%ld"" " string_content ")) ;) }))) (expression_statement "sprintf(pcVar4,pcVar2,uVar6);" (call_expression "sprintf(pcVar4,pcVar2,uVar6)" identifier (argument_list "(pcVar4,pcVar2,uVar6)" ( identifier , identifier , identifier ))) ;) (expression_statement "*(char **)(*(int *)(param_1 + 0x38) + 0x20) = pcVar4;" (assignment_expression "*(char **)(*(int *)(param_1 + 0x38) + 0x20) = pcVar4" (pointer_expression "*(char **)(*(int *)(param_1 + 0x38) + 0x20)" * (cast_expression "(char **)(*(int *)(param_1 + 0x38) + 0x20)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(param_1 + 0x38) + 0x20)" ( (binary_expression "*(int *)(param_1 + 0x38) + 0x20" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) + number_literal) )))) = identifier) ;) })) }) (else_clause "else {\n    iVar1 = *(int *)(*(int *)(param_1 + 0x38) + 0x10);\n    pcVar2 = (char *)FUN_00028700();\n    iVar3 = FUN_00029840(param_1,param_2,param_3,param_4,param_5);\n    if (iVar3 == 0) {\n      return 0;\n    }\n    sVar5 = strlen(pcVar2);\n    pcVar4 = (char *)xmalloc(sVar5 + 3);\n    sprintf(pcVar4,"~%%%s",pcVar2);\n    free(pcVar2);\n    iVar3 = *(int *)(param_1 + 0x38);\n    *(char **)(iVar3 + 0x20) = pcVar4;\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar3 + 0x10) = 1;\n      return 1;\n    }\n  }" else (compound_statement "{\n    iVar1 = *(int *)(*(int *)(param_1 + 0x38) + 0x10);\n    pcVar2 = (char *)FUN_00028700();\n    iVar3 = FUN_00029840(param_1,param_2,param_3,param_4,param_5);\n    if (iVar3 == 0) {\n      return 0;\n    }\n    sVar5 = strlen(pcVar2);\n    pcVar4 = (char *)xmalloc(sVar5 + 3);\n    sprintf(pcVar4,"~%%%s",pcVar2);\n    free(pcVar2);\n    iVar3 = *(int *)(param_1 + 0x38);\n    *(char **)(iVar3 + 0x20) = pcVar4;\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar3 + 0x10) = 1;\n      return 1;\n    }\n  }" { (expression_statement "iVar1 = *(int *)(*(int *)(param_1 + 0x38) + 0x10);" (assignment_expression "iVar1 = *(int *)(*(int *)(param_1 + 0x38) + 0x10)" identifier = (pointer_expression "*(int *)(*(int *)(param_1 + 0x38) + 0x10)" * (cast_expression "(int *)(*(int *)(param_1 + 0x38) + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_1 + 0x38) + 0x10)" ( (binary_expression "*(int *)(param_1 + 0x38) + 0x10" (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) )))) + number_literal) ))))) ;) (expression_statement "pcVar2 = (char *)FUN_00028700();" (assignment_expression "pcVar2 = (char *)FUN_00028700()" identifier = (cast_expression "(char *)FUN_00028700()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00028700()" identifier (argument_list "()" ( ))))) ;) (expression_statement "iVar3 = FUN_00029840(param_1,param_2,param_3,param_4,param_5);" (assignment_expression "iVar3 = FUN_00029840(param_1,param_2,param_3,param_4,param_5)" identifier = (call_expression "FUN_00029840(param_1,param_2,param_3,param_4,param_5)" identifier (argument_list "(param_1,param_2,param_3,param_4,param_5)" ( identifier , identifier , identifier , identifier , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n      return 0;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      return 0;\n    }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "sVar5 = strlen(pcVar2);" (assignment_expression "sVar5 = strlen(pcVar2)" identifier = (call_expression "strlen(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier )))) ;) (expression_statement "pcVar4 = (char *)xmalloc(sVar5 + 3);" (assignment_expression "pcVar4 = (char *)xmalloc(sVar5 + 3)" identifier = (cast_expression "(char *)xmalloc(sVar5 + 3)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar5 + 3)" identifier (argument_list "(sVar5 + 3)" ( (binary_expression "sVar5 + 3" identifier + number_literal) ))))) ;) (expression_statement "sprintf(pcVar4,"~%%%s",pcVar2);" (call_expression "sprintf(pcVar4,"~%%%s",pcVar2)" identifier (argument_list "(pcVar4,"~%%%s",pcVar2)" ( identifier , (string_literal ""~%%%s"" " string_content ") , identifier ))) ;) (expression_statement "free(pcVar2);" (call_expression "free(pcVar2)" identifier (argument_list "(pcVar2)" ( identifier ))) ;) (expression_statement "iVar3 = *(int *)(param_1 + 0x38);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x38)" identifier = (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) ))))) ;) (expression_statement "*(char **)(iVar3 + 0x20) = pcVar4;" (assignment_expression "*(char **)(iVar3 + 0x20) = pcVar4" (pointer_expression "*(char **)(iVar3 + 0x20)" * (cast_expression "(char **)(iVar3 + 0x20)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar3 + 0x20)" ( (binary_expression "iVar3 + 0x20" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar1 != 0) {\n      *(undefined4 *)(iVar3 + 0x10) = 1;\n      return 1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      *(undefined4 *)(iVar3 + 0x10) = 1;\n      return 1;\n    }" { (expression_statement "*(undefined4 *)(iVar3 + 0x10) = 1;" (assignment_expression "*(undefined4 *)(iVar3 + 0x10) = 1" (pointer_expression "*(undefined4 *)(iVar3 + 0x10)" * (cast_expression "(undefined4 *)(iVar3 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) )))) = number_literal) ;) (return_statement "return 1;" return number_literal ;) })) }))) (return_statement "return 1;" 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) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) < LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) = IDENT) ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , IDENT , IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (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 * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return LIT ;) })) }))) (return_statement return LIT ;) })))
(function_definition "undefined4\nFUN_00029980(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n            ,int param_6,int param_7)\n\n{\n  int iVar1;\n  char *pcVar2;\n  int iVar3;\n  char *pcVar4;\n  size_t sVar5;\n  undefined4 uVar6;\n  \n  if ((param_6 == 0) || (param_7 != 0)) {\n    iVar1 = FUN_00029840(param_1,param_2,param_3,param_4,param_5);\n    if (iVar1 == 0) {\n      return 0;\n    }\n    if (param_6 != 0) {\n      if (param_7 == 0) {\n        sVar5 = strlen((char *)0x0);\n        pcVar4 = (char *)xmalloc(sVar5 + 3);\n        uVar6 = 0;\n        pcVar2 = "~%%%s";\n      }\n      else {\n        if (*(int *)(*(int *)(param_1 + 0x38) + 8) < 1) {\n                    \n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }\n        pcVar4 = (char *)xmalloc(0x14);\n        uVar6 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 8);\n        pcVar2 = "~%%%ld";\n      }\n      sprintf(pcVar4,pcVar2,uVar6);\n      *(char **)(*(int *)(param_1 + 0x38) + 0x20) = pcVar4;\n    }\n  }\n  else {\n    iVar1 = *(int *)(*(int *)(param_1 + 0x38) + 0x10);\n    pcVar2 = (char *)FUN_00028700();\n    iVar3 = FUN_00029840(param_1,param_2,param_3,param_4,param_5);\n    if (iVar3 == 0) {\n      return 0;\n    }\n    sVar5 = strlen(pcVar2);\n    pcVar4 = (char *)xmalloc(sVar5 + 3);\n    sprintf(pcVar4,"~%%%s",pcVar2);\n    free(pcVar2);\n    iVar3 = *(int *)(param_1 + 0x38);\n    *(char **)(iVar3 + 0x20) = pcVar4;\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar3 + 0x10) = 1;\n      return 1;\n    }\n  }\n  return 1;\n}" (type_identifier "undefined4") (function_declarator "FUN_00029980(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n            ,int param_6,int param_7)" (identifier "FUN_00029980") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 param_4,undefined4 param_5\n            ,int param_6,int param_7)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) (, ",") (parameter_declaration "int param_6" (primitive_type "int") (identifier "param_6")) (, ",") (parameter_declaration "int param_7" (primitive_type "int") (identifier "param_7")) () ")"))) (compound_statement "{\n  int iVar1;\n  char *pcVar2;\n  int iVar3;\n  char *pcVar4;\n  size_t sVar5;\n  undefined4 uVar6;\n  \n  if ((param_6 == 0) || (param_7 != 0)) {\n    iVar1 = FUN_00029840(param_1,param_2,param_3,param_4,param_5);\n    if (iVar1 == 0) {\n      return 0;\n    }\n    if (param_6 != 0) {\n      if (param_7 == 0) {\n        sVar5 = strlen((char *)0x0);\n        pcVar4 = (char *)xmalloc(sVar5 + 3);\n        uVar6 = 0;\n        pcVar2 = "~%%%s";\n      }\n      else {\n        if (*(int *)(*(int *)(param_1 + 0x38) + 8) < 1) {\n                    \n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }\n        pcVar4 = (char *)xmalloc(0x14);\n        uVar6 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 8);\n        pcVar2 = "~%%%ld";\n      }\n      sprintf(pcVar4,pcVar2,uVar6);\n      *(char **)(*(int *)(param_1 + 0x38) + 0x20) = pcVar4;\n    }\n  }\n  else {\n    iVar1 = *(int *)(*(int *)(param_1 + 0x38) + 0x10);\n    pcVar2 = (char *)FUN_00028700();\n    iVar3 = FUN_00029840(param_1,param_2,param_3,param_4,param_5);\n    if (iVar3 == 0) {\n      return 0;\n    }\n    sVar5 = strlen(pcVar2);\n    pcVar4 = (char *)xmalloc(sVar5 + 3);\n    sprintf(pcVar4,"~%%%s",pcVar2);\n    free(pcVar2);\n    iVar3 = *(int *)(param_1 + 0x38);\n    *(char **)(iVar3 + 0x20) = pcVar4;\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar3 + 0x10) = 1;\n      return 1;\n    }\n  }\n  return 1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "char *pcVar2;" (primitive_type "char") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "size_t sVar5;" (primitive_type "size_t") (identifier "sVar5") (; ";")) (declaration "undefined4 uVar6;" (type_identifier "undefined4") (identifier "uVar6") (; ";")) (if_statement "if ((param_6 == 0) || (param_7 != 0)) {\n    iVar1 = FUN_00029840(param_1,param_2,param_3,param_4,param_5);\n    if (iVar1 == 0) {\n      return 0;\n    }\n    if (param_6 != 0) {\n      if (param_7 == 0) {\n        sVar5 = strlen((char *)0x0);\n        pcVar4 = (char *)xmalloc(sVar5 + 3);\n        uVar6 = 0;\n        pcVar2 = "~%%%s";\n      }\n      else {\n        if (*(int *)(*(int *)(param_1 + 0x38) + 8) < 1) {\n                    \n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }\n        pcVar4 = (char *)xmalloc(0x14);\n        uVar6 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 8);\n        pcVar2 = "~%%%ld";\n      }\n      sprintf(pcVar4,pcVar2,uVar6);\n      *(char **)(*(int *)(param_1 + 0x38) + 0x20) = pcVar4;\n    }\n  }\n  else {\n    iVar1 = *(int *)(*(int *)(param_1 + 0x38) + 0x10);\n    pcVar2 = (char *)FUN_00028700();\n    iVar3 = FUN_00029840(param_1,param_2,param_3,param_4,param_5);\n    if (iVar3 == 0) {\n      return 0;\n    }\n    sVar5 = strlen(pcVar2);\n    pcVar4 = (char *)xmalloc(sVar5 + 3);\n    sprintf(pcVar4,"~%%%s",pcVar2);\n    free(pcVar2);\n    iVar3 = *(int *)(param_1 + 0x38);\n    *(char **)(iVar3 + 0x20) = pcVar4;\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar3 + 0x10) = 1;\n      return 1;\n    }\n  }" (if "if") (parenthesized_expression "((param_6 == 0) || (param_7 != 0))" (( "(") (binary_expression "(param_6 == 0) || (param_7 != 0)" (parenthesized_expression "(param_6 == 0)" (( "(") (binary_expression "param_6 == 0" (identifier "param_6") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(param_7 != 0)" (( "(") (binary_expression "param_7 != 0" (identifier "param_7") (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    iVar1 = FUN_00029840(param_1,param_2,param_3,param_4,param_5);\n    if (iVar1 == 0) {\n      return 0;\n    }\n    if (param_6 != 0) {\n      if (param_7 == 0) {\n        sVar5 = strlen((char *)0x0);\n        pcVar4 = (char *)xmalloc(sVar5 + 3);\n        uVar6 = 0;\n        pcVar2 = "~%%%s";\n      }\n      else {\n        if (*(int *)(*(int *)(param_1 + 0x38) + 8) < 1) {\n                    \n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }\n        pcVar4 = (char *)xmalloc(0x14);\n        uVar6 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 8);\n        pcVar2 = "~%%%ld";\n      }\n      sprintf(pcVar4,pcVar2,uVar6);\n      *(char **)(*(int *)(param_1 + 0x38) + 0x20) = pcVar4;\n    }\n  }" ({ "{") (expression_statement "iVar1 = FUN_00029840(param_1,param_2,param_3,param_4,param_5);" (assignment_expression "iVar1 = FUN_00029840(param_1,param_2,param_3,param_4,param_5)" (identifier "iVar1") (= "=") (call_expression "FUN_00029840(param_1,param_2,param_3,param_4,param_5)" (identifier "FUN_00029840") (argument_list "(param_1,param_2,param_3,param_4,param_5)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (if_statement "if (param_6 != 0) {\n      if (param_7 == 0) {\n        sVar5 = strlen((char *)0x0);\n        pcVar4 = (char *)xmalloc(sVar5 + 3);\n        uVar6 = 0;\n        pcVar2 = "~%%%s";\n      }\n      else {\n        if (*(int *)(*(int *)(param_1 + 0x38) + 8) < 1) {\n                    \n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }\n        pcVar4 = (char *)xmalloc(0x14);\n        uVar6 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 8);\n        pcVar2 = "~%%%ld";\n      }\n      sprintf(pcVar4,pcVar2,uVar6);\n      *(char **)(*(int *)(param_1 + 0x38) + 0x20) = pcVar4;\n    }" (if "if") (parenthesized_expression "(param_6 != 0)" (( "(") (binary_expression "param_6 != 0" (identifier "param_6") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if (param_7 == 0) {\n        sVar5 = strlen((char *)0x0);\n        pcVar4 = (char *)xmalloc(sVar5 + 3);\n        uVar6 = 0;\n        pcVar2 = "~%%%s";\n      }\n      else {\n        if (*(int *)(*(int *)(param_1 + 0x38) + 8) < 1) {\n                    \n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }\n        pcVar4 = (char *)xmalloc(0x14);\n        uVar6 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 8);\n        pcVar2 = "~%%%ld";\n      }\n      sprintf(pcVar4,pcVar2,uVar6);\n      *(char **)(*(int *)(param_1 + 0x38) + 0x20) = pcVar4;\n    }" ({ "{") (if_statement "if (param_7 == 0) {\n        sVar5 = strlen((char *)0x0);\n        pcVar4 = (char *)xmalloc(sVar5 + 3);\n        uVar6 = 0;\n        pcVar2 = "~%%%s";\n      }\n      else {\n        if (*(int *)(*(int *)(param_1 + 0x38) + 8) < 1) {\n                    \n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }\n        pcVar4 = (char *)xmalloc(0x14);\n        uVar6 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 8);\n        pcVar2 = "~%%%ld";\n      }" (if "if") (parenthesized_expression "(param_7 == 0)" (( "(") (binary_expression "param_7 == 0" (identifier "param_7") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        sVar5 = strlen((char *)0x0);\n        pcVar4 = (char *)xmalloc(sVar5 + 3);\n        uVar6 = 0;\n        pcVar2 = "~%%%s";\n      }" ({ "{") (expression_statement "sVar5 = strlen((char *)0x0);" (assignment_expression "sVar5 = strlen((char *)0x0)" (identifier "sVar5") (= "=") (call_expression "strlen((char *)0x0)" (identifier "strlen") (argument_list "((char *)0x0)" (( "(") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) () ")")))) (; ";")) (expression_statement "pcVar4 = (char *)xmalloc(sVar5 + 3);" (assignment_expression "pcVar4 = (char *)xmalloc(sVar5 + 3)" (identifier "pcVar4") (= "=") (cast_expression "(char *)xmalloc(sVar5 + 3)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(sVar5 + 3)" (identifier "xmalloc") (argument_list "(sVar5 + 3)" (( "(") (binary_expression "sVar5 + 3" (identifier "sVar5") (+ "+") (number_literal "3")) () ")"))))) (; ";")) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" (identifier "uVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "pcVar2 = "~%%%s";" (assignment_expression "pcVar2 = "~%%%s"" (identifier "pcVar2") (= "=") (string_literal ""~%%%s"" (" """) (string_content "~%%%s") (" """))) (; ";")) (} "}")) (else_clause "else {\n        if (*(int *)(*(int *)(param_1 + 0x38) + 8) < 1) {\n                    \n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }\n        pcVar4 = (char *)xmalloc(0x14);\n        uVar6 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 8);\n        pcVar2 = "~%%%ld";\n      }" (else "else") (compound_statement "{\n        if (*(int *)(*(int *)(param_1 + 0x38) + 8) < 1) {\n                    \n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }\n        pcVar4 = (char *)xmalloc(0x14);\n        uVar6 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 8);\n        pcVar2 = "~%%%ld";\n      }" ({ "{") (if_statement "if (*(int *)(*(int *)(param_1 + 0x38) + 8) < 1) {\n                    \n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }" (if "if") (parenthesized_expression "(*(int *)(*(int *)(param_1 + 0x38) + 8) < 1)" (( "(") (binary_expression "*(int *)(*(int *)(param_1 + 0x38) + 8) < 1" (pointer_expression "*(int *)(*(int *)(param_1 + 0x38) + 8)" (* "*") (cast_expression "(int *)(*(int *)(param_1 + 0x38) + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x38) + 8)" (( "(") (binary_expression "*(int *)(param_1 + 0x38) + 8" (pointer_expression "*(int *)(param_1 + 0x38)" (* "*") (cast_expression "(int *)(param_1 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) (+ "+") (number_literal "8")) () ")")))) (< "<") (number_literal "1")) () ")")) (compound_statement "{\n                    \n          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");\n        }" ({ "{") (expression_statement "__assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type");" (call_expression "__assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type")" (identifier "__assert_fail") (argument_list "("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,\n                        "stab_start_class_type")" (( "(") (string_literal ""info->type_stack->index > 0"" (" """) (string_content "info->type_stack->index > 0") (" """)) (, ",") (string_literal ""../../binutils/wrstabs.c"" (" """) (string_content "../../binutils/wrstabs.c") (" """)) (, ",") (number_literal "0x5bd") (, ",") (string_literal ""stab_start_class_type"" (" """) (string_content "stab_start_class_type") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "pcVar4 = (char *)xmalloc(0x14);" (assignment_expression "pcVar4 = (char *)xmalloc(0x14)" (identifier "pcVar4") (= "=") (cast_expression "(char *)xmalloc(0x14)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(0x14)" (identifier "xmalloc") (argument_list "(0x14)" (( "(") (number_literal "0x14") () ")"))))) (; ";")) (expression_statement "uVar6 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 8);" (assignment_expression "uVar6 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 8)" (identifier "uVar6") (= "=") (pointer_expression "*(undefined4 *)(*(int *)(param_1 + 0x38) + 8)" (* "*") (cast_expression "(undefined4 *)(*(int *)(param_1 + 0x38) + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x38) + 8)" (( "(") (binary_expression "*(int *)(param_1 + 0x38) + 8" (pointer_expression "*(int *)(param_1 + 0x38)" (* "*") (cast_expression "(int *)(param_1 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) (+ "+") (number_literal "8")) () ")"))))) (; ";")) (expression_statement "pcVar2 = "~%%%ld";" (assignment_expression "pcVar2 = "~%%%ld"" (identifier "pcVar2") (= "=") (string_literal ""~%%%ld"" (" """) (string_content "~%%%ld") (" """))) (; ";")) (} "}")))) (expression_statement "sprintf(pcVar4,pcVar2,uVar6);" (call_expression "sprintf(pcVar4,pcVar2,uVar6)" (identifier "sprintf") (argument_list "(pcVar4,pcVar2,uVar6)" (( "(") (identifier "pcVar4") (, ",") (identifier "pcVar2") (, ",") (identifier "uVar6") () ")"))) (; ";")) (expression_statement "*(char **)(*(int *)(param_1 + 0x38) + 0x20) = pcVar4;" (assignment_expression "*(char **)(*(int *)(param_1 + 0x38) + 0x20) = pcVar4" (pointer_expression "*(char **)(*(int *)(param_1 + 0x38) + 0x20)" (* "*") (cast_expression "(char **)(*(int *)(param_1 + 0x38) + 0x20)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x38) + 0x20)" (( "(") (binary_expression "*(int *)(param_1 + 0x38) + 0x20" (pointer_expression "*(int *)(param_1 + 0x38)" (* "*") (cast_expression "(int *)(param_1 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "pcVar4")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    iVar1 = *(int *)(*(int *)(param_1 + 0x38) + 0x10);\n    pcVar2 = (char *)FUN_00028700();\n    iVar3 = FUN_00029840(param_1,param_2,param_3,param_4,param_5);\n    if (iVar3 == 0) {\n      return 0;\n    }\n    sVar5 = strlen(pcVar2);\n    pcVar4 = (char *)xmalloc(sVar5 + 3);\n    sprintf(pcVar4,"~%%%s",pcVar2);\n    free(pcVar2);\n    iVar3 = *(int *)(param_1 + 0x38);\n    *(char **)(iVar3 + 0x20) = pcVar4;\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar3 + 0x10) = 1;\n      return 1;\n    }\n  }" (else "else") (compound_statement "{\n    iVar1 = *(int *)(*(int *)(param_1 + 0x38) + 0x10);\n    pcVar2 = (char *)FUN_00028700();\n    iVar3 = FUN_00029840(param_1,param_2,param_3,param_4,param_5);\n    if (iVar3 == 0) {\n      return 0;\n    }\n    sVar5 = strlen(pcVar2);\n    pcVar4 = (char *)xmalloc(sVar5 + 3);\n    sprintf(pcVar4,"~%%%s",pcVar2);\n    free(pcVar2);\n    iVar3 = *(int *)(param_1 + 0x38);\n    *(char **)(iVar3 + 0x20) = pcVar4;\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar3 + 0x10) = 1;\n      return 1;\n    }\n  }" ({ "{") (expression_statement "iVar1 = *(int *)(*(int *)(param_1 + 0x38) + 0x10);" (assignment_expression "iVar1 = *(int *)(*(int *)(param_1 + 0x38) + 0x10)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(*(int *)(param_1 + 0x38) + 0x10)" (* "*") (cast_expression "(int *)(*(int *)(param_1 + 0x38) + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_1 + 0x38) + 0x10)" (( "(") (binary_expression "*(int *)(param_1 + 0x38) + 0x10" (pointer_expression "*(int *)(param_1 + 0x38)" (* "*") (cast_expression "(int *)(param_1 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")")))) (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "pcVar2 = (char *)FUN_00028700();" (assignment_expression "pcVar2 = (char *)FUN_00028700()" (identifier "pcVar2") (= "=") (cast_expression "(char *)FUN_00028700()" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00028700()" (identifier "FUN_00028700") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "iVar3 = FUN_00029840(param_1,param_2,param_3,param_4,param_5);" (assignment_expression "iVar3 = FUN_00029840(param_1,param_2,param_3,param_4,param_5)" (identifier "iVar3") (= "=") (call_expression "FUN_00029840(param_1,param_2,param_3,param_4,param_5)" (identifier "FUN_00029840") (argument_list "(param_1,param_2,param_3,param_4,param_5)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (identifier "param_4") (, ",") (identifier "param_5") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      return 0;\n    }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "sVar5 = strlen(pcVar2);" (assignment_expression "sVar5 = strlen(pcVar2)" (identifier "sVar5") (= "=") (call_expression "strlen(pcVar2)" (identifier "strlen") (argument_list "(pcVar2)" (( "(") (identifier "pcVar2") () ")")))) (; ";")) (expression_statement "pcVar4 = (char *)xmalloc(sVar5 + 3);" (assignment_expression "pcVar4 = (char *)xmalloc(sVar5 + 3)" (identifier "pcVar4") (= "=") (cast_expression "(char *)xmalloc(sVar5 + 3)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(sVar5 + 3)" (identifier "xmalloc") (argument_list "(sVar5 + 3)" (( "(") (binary_expression "sVar5 + 3" (identifier "sVar5") (+ "+") (number_literal "3")) () ")"))))) (; ";")) (expression_statement "sprintf(pcVar4,"~%%%s",pcVar2);" (call_expression "sprintf(pcVar4,"~%%%s",pcVar2)" (identifier "sprintf") (argument_list "(pcVar4,"~%%%s",pcVar2)" (( "(") (identifier "pcVar4") (, ",") (string_literal ""~%%%s"" (" """) (string_content "~%%%s") (" """)) (, ",") (identifier "pcVar2") () ")"))) (; ";")) (expression_statement "free(pcVar2);" (call_expression "free(pcVar2)" (identifier "free") (argument_list "(pcVar2)" (( "(") (identifier "pcVar2") () ")"))) (; ";")) (expression_statement "iVar3 = *(int *)(param_1 + 0x38);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x38)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_1 + 0x38)" (* "*") (cast_expression "(int *)(param_1 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")"))))) (; ";")) (expression_statement "*(char **)(iVar3 + 0x20) = pcVar4;" (assignment_expression "*(char **)(iVar3 + 0x20) = pcVar4" (pointer_expression "*(char **)(iVar3 + 0x20)" (* "*") (cast_expression "(char **)(iVar3 + 0x20)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar3 + 0x20)" (( "(") (binary_expression "iVar3 + 0x20" (identifier "iVar3") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (identifier "pcVar4")) (; ";")) (if_statement "if (iVar1 != 0) {\n      *(undefined4 *)(iVar3 + 0x10) = 1;\n      return 1;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      *(undefined4 *)(iVar3 + 0x10) = 1;\n      return 1;\n    }" ({ "{") (expression_statement "*(undefined4 *)(iVar3 + 0x10) = 1;" (assignment_expression "*(undefined4 *)(iVar3 + 0x10) = 1" (pointer_expression "*(undefined4 *)(iVar3 + 0x10)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x10)" (( "(") (binary_expression "iVar3 + 0x10" (identifier "iVar3") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "1")) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (} "}")))) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

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

type_1
function_1
          (void *p,char *tag,type_2 id,type_1 structp,type_2 size,type_1 var_1,
          type_1 var_2)

{
  int var_13;
  int var_12;
  type_1 var_4;
  char *pcVar4;
  char *pcVar5;
  size_t var_7;
  type_3 uVar7;
  
  if ((var_1 == 0) || (var_2 != 0)) {
    var_4 = var_3(p,tag,id,structp,size);
    if (var_4 == 0) {
      return 0;
    }
    if (var_1 != 0) {
      if (var_2 == 0) {
        var_7 = var_5((char *)0x0);
        pcVar5 = (char *)var_6(var_7 + 3);
        uVar7 = 0;
        pcVar4 = "~%%%s";
      }
      else {
        if (*(int *)(*(int *)((int)p + 0x38) + 8) < 1) {
                    /* WARNING: Subroutine does not return */
          var_8("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,
                        "stab_start_class_type");
        }
        pcVar5 = (char *)var_6(0x14);
        uVar7 = *(type_3 *)(*(int *)((int)p + 0x38) + 8);
        pcVar4 = "~%%%ld";
      }
      var_9(pcVar5,pcVar4,uVar7);
      *(char **)(*(int *)((int)p + 0x38) + 0x20) = pcVar5;
    }
  }
  else {
    var_13 = *(int *)(*(int *)((int)p + 0x38) + 0x10);
    pcVar4 = var_10((type_4 *)((int)p + 0x38));
    var_4 = var_3(p,tag,id,structp,size);
    if (var_4 == 0) {
      return 0;
    }
    var_7 = var_5(pcVar4);
    pcVar5 = (char *)var_6(var_7 + 3);
    var_9(pcVar5,"~%%%s",pcVar4);
    var_11(pcVar4);
    var_12 = *(int *)((int)p + 0x38);
    *(char **)(var_12 + 0x20) = pcVar5;
    if (var_13 != 0) {
      *(type_3 *)(var_12 + 0x10) = 1;
      return 1;
    }
  }
  return 1;
}


(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: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) 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 (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))))) (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 (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content))))) alternative: (else_clause (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: (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: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal) (string_literal (string_content))))))) (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: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (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))))))) (expression_statement (assignment_expression left: (identifier) right: (string_literal (string_content))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (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: (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: (identifier)))))) alternative: (else_clause (compound_statement (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: (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))))))) (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))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier) (identifier) (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (return_statement (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (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 (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (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: (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))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (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,undefined4 param_3,undefined4 param_4,undefined4 param_5
            ,int param_6,int param_7)

{
  int iVar1;
  char *pcVar2;
  int iVar3;
  char *pcVar4;
  size_t sVar5;
  undefined4 uVar6;
  
  if ((param_6 == 0) || (param_7 != 0)) {
    iVar1 = FUN_00029840(param_1,param_2,param_3,param_4,param_5);
    if (iVar1 == 0) {
      return 0;
    }
    if (param_6 != 0) {
      if (param_7 == 0) {
        sVar5 = strlen((char *)0x0);
        pcVar4 = (char *)xmalloc(sVar5 + 3);
        uVar6 = 0;
        pcVar2 = "~%%%s";
      }
      else {
        if (*(int *)(*(int *)(param_1 + 0x38) + 8) < 1) {
                    /* WARNING: Subroutine does not return */
          __assert_fail("info->type_stack->index > 0","../../binutils/wrstabs.c",0x5bd,
                        "stab_start_class_type");
        }
        pcVar4 = (char *)xmalloc(0x14);
        uVar6 = *(undefined4 *)(*(int *)(param_1 + 0x38) + 8);
        pcVar2 = "~%%%ld";
      }
      sprintf(pcVar4,pcVar2,uVar6);
      *(char **)(*(int *)(param_1 + 0x38) + 0x20) = pcVar4;
    }
  }
  else {
    iVar1 = *(int *)(*(int *)(param_1 + 0x38) + 0x10);
    pcVar2 = (char *)FUN_00028700();
    iVar3 = FUN_00029840(param_1,param_2,param_3,param_4,param_5);
    if (iVar3 == 0) {
      return 0;
    }
    sVar5 = strlen(pcVar2);
    pcVar4 = (char *)xmalloc(sVar5 + 3);
    sprintf(pcVar4,"~%%%s",pcVar2);
    free(pcVar2);
    iVar3 = *(int *)(param_1 + 0x38);
    *(char **)(iVar3 + 0x20) = pcVar4;
    if (iVar1 != 0) {
      *(undefined4 *)(iVar3 + 0x10) = 1;
      return 1;
    }
  }
  return 1;
}

