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

bfd_boolean
stab_class_baseclass(void *p,bfd_vma bitpos,bfd_boolean is_virtual,debug_visibility visibility)

{
  int iVar1;
  int *piVar2;
  char *__s;
  size_t sVar3;
  char *pcVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  
  iVar1 = *(int *)(*(int *)((int)p + 0x38) + 0x10);
  __s = stab_pop_type((stab_write_handle *)((int)p + 0x38));
  sVar3 = strlen(__s);
  pcVar4 = (char *)xmalloc(sVar3 + 0x19);
  *pcVar4 = (is_virtual != 0) + '0';
  if (visibility == DEBUG_VISIBILITY_PROTECTED) {
    pcVar4[1] = '1';
  }
  else if (visibility == DEBUG_VISIBILITY_PUBLIC) {
    pcVar4[1] = '2';
  }
  else {
    if (visibility != DEBUG_VISIBILITY_PRIVATE) {
                    /* WARNING: Subroutine does not return */
      abort();
    }
    pcVar4[1] = '0';
  }
  sprintf(pcVar4 + 2,"%ld,%s;",(undefined4)bitpos,__s);
  free(__s);
  iVar6 = *(int *)((int)p + 0x38);
  if ((iVar6 != 0) && (*(int *)(iVar6 + 0x14) != 0)) {
    piVar2 = *(int **)(iVar6 + 0x18);
    if ((piVar2 == (int *)0x0) || (*piVar2 == 0)) {
      iVar7 = 4;
      iVar8 = 0;
      iVar6 = 8;
    }
    else {
      iVar7 = 0;
      do {
        iVar6 = iVar7;
        iVar7 = iVar6 + 1;
        iVar8 = iVar7 * 4;
      } while (piVar2[iVar7] != 0);
      iVar6 = iVar6 * 4;
      iVar7 = iVar6 + 8;
      iVar6 = iVar6 + 0xc;
    }
    iVar5 = xrealloc(piVar2,iVar6);
    *(char **)(iVar5 + iVar8) = pcVar4;
    *(undefined4 *)(iVar5 + iVar7) = 0;
    iVar6 = *(int *)((int)p + 0x38);
    *(int *)(iVar6 + 0x18) = iVar5;
    if (iVar1 != 0) {
      *(undefined4 *)(iVar6 + 0x10) = 1;
    }
    return 1;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("info->type_stack != NULL && info->type_stack->fields != NULL",
                "../../binutils/wrstabs.c",0x632,"stab_class_baseclass");
}



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

undefined4 FUN_0002a050(int param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5)

{
  int iVar1;
  int *piVar2;
  char *__s;
  size_t sVar3;
  char *pcVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  
  iVar1 = *(int *)(*(int *)(param_1 + 0x38) + 0x10);
  __s = (char *)FUN_00029a00();
  sVar3 = strlen(__s);
  pcVar4 = (char *)xmalloc(sVar3 + 0x19);
  *pcVar4 = (param_4 != 0) + '0';
  if (param_5 == 1) {
    pcVar4[1] = '1';
  }
  else if (param_5 == 0) {
    pcVar4[1] = '2';
  }
  else {
    if (param_5 != 2) {
                    /* WARNING: Subroutine does not return */
      abort();
    }
    pcVar4[1] = '0';
  }
  sprintf(pcVar4 + 2,"%ld,%s;",param_2,__s);
  free(__s);
  iVar6 = *(int *)(param_1 + 0x38);
  if ((iVar6 != 0) && (*(int *)(iVar6 + 0x14) != 0)) {
    piVar2 = *(int **)(iVar6 + 0x18);
    if ((piVar2 == (int *)0x0) || (*piVar2 == 0)) {
      iVar7 = 4;
      iVar8 = 0;
      iVar6 = 8;
    }
    else {
      iVar7 = 0;
      do {
        iVar6 = iVar7;
        iVar7 = iVar6 + 1;
        iVar8 = iVar7 * 4;
      } while (piVar2[iVar7] != 0);
      iVar6 = iVar6 * 4;
      iVar7 = iVar6 + 8;
      iVar6 = iVar6 + 0xc;
    }
    iVar5 = xrealloc(piVar2,iVar6);
    *(char **)(iVar5 + iVar8) = pcVar4;
    *(undefined4 *)(iVar5 + iVar7) = 0;
    iVar6 = *(int *)(param_1 + 0x38);
    *(int *)(iVar6 + 0x18) = iVar5;
    if (iVar1 != 0) {
      *(undefined4 *)(iVar6 + 0x10) = 1;
    }
    return 1;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("info->type_stack != NULL && info->type_stack->fields != NULL",
                "../../binutils/wrstabs.c",0x632,"stab_class_baseclass");
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000166c0
ADD EBX,0x15fa7
SUB ESP,0x1c
MOV ESI,dword ptr [ESP + 0x30]
MOV ECX,dword ptr [ESP + 0x34]
MOV EAX,dword ptr [ESI + 0x38]
MOV dword ptr [ESP + 0xc],ECX
MOV EAX,dword ptr [EAX + 0x10]
MOV dword ptr [ESP + 0x8],EAX
LEA EAX,[ESI + 0x38]
CALL 0x00029a00
SUB ESP,0xc
PUSH EAX
MOV EBP,EAX
CALL 0x000134e0
ADD EAX,0x19
MOV dword ptr [ESP],EAX
CALL 0x000132e0
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0xc]
MOV EDI,EAX
MOV EAX,dword ptr [ESP + 0x3c]
TEST EAX,EAX
SETNZ AL
ADD EAX,0x30
CMP dword ptr [ESP + 0x40],0x1
MOV byte ptr [EDI],AL
JZ 0x0002a190
MOV EAX,dword ptr [ESP + 0x40]
TEST EAX,EAX
JNZ 0x0002a170
MOV byte ptr [EDI + 0x1],0x32
LEA EAX,[EBX + 0xffff4e76]
PUSH EBP
PUSH ECX
PUSH EAX
LEA EAX,[EDI + 0x2]
PUSH EAX
CALL 0x000137a0
MOV dword ptr [ESP],EBP
CALL 0x00013948
MOV EAX,dword ptr [ESI + 0x38]
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0002a199
MOV EDX,dword ptr [EAX + 0x14]
TEST EDX,EDX
JZ 0x0002a199
MOV ECX,dword ptr [EAX + 0x18]
TEST ECX,ECX
JZ 0x0002a180
MOV EAX,dword ptr [ECX]
TEST EAX,EAX
JZ 0x0002a180
XOR EDX,EDX
JMP 0x0002a112
MOV EDX,EAX
LEA EAX,[EDX + 0x1]
CMP dword ptr [ECX + EAX*0x4],0x0
LEA EBP,[EAX*0x4 + 0x0]
JNZ 0x0002a110
LEA EDX,[EDX*0x4 + 0x8]
LEA EAX,[EDX + 0x4]
MOV dword ptr [ESP + 0xc],EDX
SUB ESP,0x8
PUSH EAX
PUSH ECX
CALL 0x00013230
MOV EDX,dword ptr [ESP + 0x1c]
ADD ESP,0x10
MOV dword ptr [EAX + EBP*0x1],EDI
MOV dword ptr [EAX + EDX*0x1],0x0
MOV EDX,dword ptr [ESI + 0x38]
MOV dword ptr [EDX + 0x18],EAX
MOV EAX,dword ptr [ESP + 0x8]
TEST EAX,EAX
JZ 0x0002a160
MOV dword ptr [EDX + 0x10],0x1
ADD ESP,0x1c
MOV EAX,0x1
POP EBX
POP ESI
POP EDI
POP EBP
RET
CMP dword ptr [ESP + 0x40],0x2
JNZ 0x0002a1b8
MOV byte ptr [EDI + 0x1],0x30
JMP 0x0002a0c8
MOV EDX,0x4
XOR EBP,EBP
MOV EAX,0x8
JMP 0x0002a12c
MOV byte ptr [EDI + 0x1],0x31
JMP 0x0002a0c8
LEA EAX,[EBX + 0xffff51dc]
PUSH EAX
LEA EAX,[EBX + 0xffff4dac]
PUSH 0x632
PUSH EAX
LEA EAX,[EBX + 0xffff4fd0]
PUSH EAX
CALL 0x00013920
CALL 0x00013890
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 FUN_0002a050(int param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5)\n\n{\n  int iVar1;\n  int *piVar2;\n  char *__s;\n  size_t sVar3;\n  char *pcVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar1 = *(int *)(*(int *)(param_1 + 0x38) + 0x10);\n  __s = (char *)FUN_00029a00();\n  sVar3 = strlen(__s);\n  pcVar4 = (char *)xmalloc(sVar3 + 0x19);\n  *pcVar4 = (param_4 != 0) + '0';\n  if (param_5 == 1) {\n    pcVar4[1] = '1';\n  }\n  else if (param_5 == 0) {\n    pcVar4[1] = '2';\n  }\n  else {\n    if (param_5 != 2) {\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    pcVar4[1] = '0';\n  }\n  sprintf(pcVar4 + 2,"%ld,%s;",param_2,__s);\n  free(__s);\n  iVar6 = *(int *)(param_1 + 0x38);\n  if ((iVar6 != 0) && (*(int *)(iVar6 + 0x14) != 0)) {\n    piVar2 = *(int **)(iVar6 + 0x18);\n    if ((piVar2 == (int *)0x0) || (*piVar2 == 0)) {\n      iVar7 = 4;\n      iVar8 = 0;\n      iVar6 = 8;\n    }\n    else {\n      iVar7 = 0;\n      do {\n        iVar6 = iVar7;\n        iVar7 = iVar6 + 1;\n        iVar8 = iVar7 * 4;\n      } while (piVar2[iVar7] != 0);\n      iVar6 = iVar6 * 4;\n      iVar7 = iVar6 + 8;\n      iVar6 = iVar6 + 0xc;\n    }\n    iVar5 = xrealloc(piVar2,iVar6);\n    *(char **)(iVar5 + iVar8) = pcVar4;\n    *(undefined4 *)(iVar5 + iVar7) = 0;\n    iVar6 = *(int *)(param_1 + 0x38);\n    *(int *)(iVar6 + 0x18) = iVar5;\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar6 + 0x10) = 1;\n    }\n    return 1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("info->type_stack != NULL && info->type_stack->fields != NULL",\n                "../../binutils/wrstabs.c",0x632,"stab_class_baseclass");\n}\n\n" comment (function_definition "undefined4 FUN_0002a050(int param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5)\n\n{\n  int iVar1;\n  int *piVar2;\n  char *__s;\n  size_t sVar3;\n  char *pcVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar1 = *(int *)(*(int *)(param_1 + 0x38) + 0x10);\n  __s = (char *)FUN_00029a00();\n  sVar3 = strlen(__s);\n  pcVar4 = (char *)xmalloc(sVar3 + 0x19);\n  *pcVar4 = (param_4 != 0) + '0';\n  if (param_5 == 1) {\n    pcVar4[1] = '1';\n  }\n  else if (param_5 == 0) {\n    pcVar4[1] = '2';\n  }\n  else {\n    if (param_5 != 2) {\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    pcVar4[1] = '0';\n  }\n  sprintf(pcVar4 + 2,"%ld,%s;",param_2,__s);\n  free(__s);\n  iVar6 = *(int *)(param_1 + 0x38);\n  if ((iVar6 != 0) && (*(int *)(iVar6 + 0x14) != 0)) {\n    piVar2 = *(int **)(iVar6 + 0x18);\n    if ((piVar2 == (int *)0x0) || (*piVar2 == 0)) {\n      iVar7 = 4;\n      iVar8 = 0;\n      iVar6 = 8;\n    }\n    else {\n      iVar7 = 0;\n      do {\n        iVar6 = iVar7;\n        iVar7 = iVar6 + 1;\n        iVar8 = iVar7 * 4;\n      } while (piVar2[iVar7] != 0);\n      iVar6 = iVar6 * 4;\n      iVar7 = iVar6 + 8;\n      iVar6 = iVar6 + 0xc;\n    }\n    iVar5 = xrealloc(piVar2,iVar6);\n    *(char **)(iVar5 + iVar8) = pcVar4;\n    *(undefined4 *)(iVar5 + iVar7) = 0;\n    iVar6 = *(int *)(param_1 + 0x38);\n    *(int *)(iVar6 + 0x18) = iVar5;\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar6 + 0x10) = 1;\n    }\n    return 1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("info->type_stack != NULL && info->type_stack->fields != NULL",\n                "../../binutils/wrstabs.c",0x632,"stab_class_baseclass");\n}" type_identifier (function_declarator "FUN_0002a050(int param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5)" ( (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 "int param_4" primitive_type identifier) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  char *__s;\n  size_t sVar3;\n  char *pcVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar1 = *(int *)(*(int *)(param_1 + 0x38) + 0x10);\n  __s = (char *)FUN_00029a00();\n  sVar3 = strlen(__s);\n  pcVar4 = (char *)xmalloc(sVar3 + 0x19);\n  *pcVar4 = (param_4 != 0) + '0';\n  if (param_5 == 1) {\n    pcVar4[1] = '1';\n  }\n  else if (param_5 == 0) {\n    pcVar4[1] = '2';\n  }\n  else {\n    if (param_5 != 2) {\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    pcVar4[1] = '0';\n  }\n  sprintf(pcVar4 + 2,"%ld,%s;",param_2,__s);\n  free(__s);\n  iVar6 = *(int *)(param_1 + 0x38);\n  if ((iVar6 != 0) && (*(int *)(iVar6 + 0x14) != 0)) {\n    piVar2 = *(int **)(iVar6 + 0x18);\n    if ((piVar2 == (int *)0x0) || (*piVar2 == 0)) {\n      iVar7 = 4;\n      iVar8 = 0;\n      iVar6 = 8;\n    }\n    else {\n      iVar7 = 0;\n      do {\n        iVar6 = iVar7;\n        iVar7 = iVar6 + 1;\n        iVar8 = iVar7 * 4;\n      } while (piVar2[iVar7] != 0);\n      iVar6 = iVar6 * 4;\n      iVar7 = iVar6 + 8;\n      iVar6 = iVar6 + 0xc;\n    }\n    iVar5 = xrealloc(piVar2,iVar6);\n    *(char **)(iVar5 + iVar8) = pcVar4;\n    *(undefined4 *)(iVar5 + iVar7) = 0;\n    iVar6 = *(int *)(param_1 + 0x38);\n    *(int *)(iVar6 + 0x18) = iVar5;\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar6 + 0x10) = 1;\n    }\n    return 1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("info->type_stack != NULL && info->type_stack->fields != NULL",\n                "../../binutils/wrstabs.c",0x632,"stab_class_baseclass");\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (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 "__s = (char *)FUN_00029a00();" (assignment_expression "__s = (char *)FUN_00029a00()" identifier = (cast_expression "(char *)FUN_00029a00()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00029a00()" identifier (argument_list "()" ( ))))) ;) (expression_statement "sVar3 = strlen(__s);" (assignment_expression "sVar3 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "pcVar4 = (char *)xmalloc(sVar3 + 0x19);" (assignment_expression "pcVar4 = (char *)xmalloc(sVar3 + 0x19)" identifier = (cast_expression "(char *)xmalloc(sVar3 + 0x19)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar3 + 0x19)" identifier (argument_list "(sVar3 + 0x19)" ( (binary_expression "sVar3 + 0x19" identifier + number_literal) ))))) ;) (expression_statement "*pcVar4 = (param_4 != 0) + '0';" (assignment_expression "*pcVar4 = (param_4 != 0) + '0'" (pointer_expression "*pcVar4" * identifier) = (binary_expression "(param_4 != 0) + '0'" (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) + (char_literal "'0'" ' character '))) ;) (if_statement "if (param_5 == 1) {\n    pcVar4[1] = '1';\n  }\n  else if (param_5 == 0) {\n    pcVar4[1] = '2';\n  }\n  else {\n    if (param_5 != 2) {\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    pcVar4[1] = '0';\n  }" if (parenthesized_expression "(param_5 == 1)" ( (binary_expression "param_5 == 1" identifier == number_literal) )) (compound_statement "{\n    pcVar4[1] = '1';\n  }" { (expression_statement "pcVar4[1] = '1';" (assignment_expression "pcVar4[1] = '1'" (subscript_expression "pcVar4[1]" identifier [ number_literal ]) = (char_literal "'1'" ' character ')) ;) }) (else_clause "else if (param_5 == 0) {\n    pcVar4[1] = '2';\n  }\n  else {\n    if (param_5 != 2) {\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    pcVar4[1] = '0';\n  }" else (if_statement "if (param_5 == 0) {\n    pcVar4[1] = '2';\n  }\n  else {\n    if (param_5 != 2) {\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    pcVar4[1] = '0';\n  }" if (parenthesized_expression "(param_5 == 0)" ( (binary_expression "param_5 == 0" identifier == number_literal) )) (compound_statement "{\n    pcVar4[1] = '2';\n  }" { (expression_statement "pcVar4[1] = '2';" (assignment_expression "pcVar4[1] = '2'" (subscript_expression "pcVar4[1]" identifier [ number_literal ]) = (char_literal "'2'" ' character ')) ;) }) (else_clause "else {\n    if (param_5 != 2) {\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    pcVar4[1] = '0';\n  }" else (compound_statement "{\n    if (param_5 != 2) {\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    pcVar4[1] = '0';\n  }" { (if_statement "if (param_5 != 2) {\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }" if (parenthesized_expression "(param_5 != 2)" ( (binary_expression "param_5 != 2" identifier != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }" { comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "pcVar4[1] = '0';" (assignment_expression "pcVar4[1] = '0'" (subscript_expression "pcVar4[1]" identifier [ number_literal ]) = (char_literal "'0'" ' character ')) ;) }))))) (expression_statement "sprintf(pcVar4 + 2,"%ld,%s;",param_2,__s);" (call_expression "sprintf(pcVar4 + 2,"%ld,%s;",param_2,__s)" identifier (argument_list "(pcVar4 + 2,"%ld,%s;",param_2,__s)" ( (binary_expression "pcVar4 + 2" identifier + number_literal) , (string_literal ""%ld,%s;"" " string_content ") , identifier , identifier ))) ;) (expression_statement "free(__s);" (call_expression "free(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (expression_statement "iVar6 = *(int *)(param_1 + 0x38);" (assignment_expression "iVar6 = *(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) ))))) ;) (if_statement "if ((iVar6 != 0) && (*(int *)(iVar6 + 0x14) != 0)) {\n    piVar2 = *(int **)(iVar6 + 0x18);\n    if ((piVar2 == (int *)0x0) || (*piVar2 == 0)) {\n      iVar7 = 4;\n      iVar8 = 0;\n      iVar6 = 8;\n    }\n    else {\n      iVar7 = 0;\n      do {\n        iVar6 = iVar7;\n        iVar7 = iVar6 + 1;\n        iVar8 = iVar7 * 4;\n      } while (piVar2[iVar7] != 0);\n      iVar6 = iVar6 * 4;\n      iVar7 = iVar6 + 8;\n      iVar6 = iVar6 + 0xc;\n    }\n    iVar5 = xrealloc(piVar2,iVar6);\n    *(char **)(iVar5 + iVar8) = pcVar4;\n    *(undefined4 *)(iVar5 + iVar7) = 0;\n    iVar6 = *(int *)(param_1 + 0x38);\n    *(int *)(iVar6 + 0x18) = iVar5;\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar6 + 0x10) = 1;\n    }\n    return 1;\n  }" if (parenthesized_expression "((iVar6 != 0) && (*(int *)(iVar6 + 0x14) != 0))" ( (binary_expression "(iVar6 != 0) && (*(int *)(iVar6 + 0x14) != 0)" (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(int *)(iVar6 + 0x14) != 0)" ( (binary_expression "*(int *)(iVar6 + 0x14) != 0" (pointer_expression "*(int *)(iVar6 + 0x14)" * (cast_expression "(int *)(iVar6 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x14)" ( (binary_expression "iVar6 + 0x14" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    piVar2 = *(int **)(iVar6 + 0x18);\n    if ((piVar2 == (int *)0x0) || (*piVar2 == 0)) {\n      iVar7 = 4;\n      iVar8 = 0;\n      iVar6 = 8;\n    }\n    else {\n      iVar7 = 0;\n      do {\n        iVar6 = iVar7;\n        iVar7 = iVar6 + 1;\n        iVar8 = iVar7 * 4;\n      } while (piVar2[iVar7] != 0);\n      iVar6 = iVar6 * 4;\n      iVar7 = iVar6 + 8;\n      iVar6 = iVar6 + 0xc;\n    }\n    iVar5 = xrealloc(piVar2,iVar6);\n    *(char **)(iVar5 + iVar8) = pcVar4;\n    *(undefined4 *)(iVar5 + iVar7) = 0;\n    iVar6 = *(int *)(param_1 + 0x38);\n    *(int *)(iVar6 + 0x18) = iVar5;\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar6 + 0x10) = 1;\n    }\n    return 1;\n  }" { (expression_statement "piVar2 = *(int **)(iVar6 + 0x18);" (assignment_expression "piVar2 = *(int **)(iVar6 + 0x18)" identifier = (pointer_expression "*(int **)(iVar6 + 0x18)" * (cast_expression "(int **)(iVar6 + 0x18)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar6 + 0x18)" ( (binary_expression "iVar6 + 0x18" identifier + number_literal) ))))) ;) (if_statement "if ((piVar2 == (int *)0x0) || (*piVar2 == 0)) {\n      iVar7 = 4;\n      iVar8 = 0;\n      iVar6 = 8;\n    }\n    else {\n      iVar7 = 0;\n      do {\n        iVar6 = iVar7;\n        iVar7 = iVar6 + 1;\n        iVar8 = iVar7 * 4;\n      } while (piVar2[iVar7] != 0);\n      iVar6 = iVar6 * 4;\n      iVar7 = iVar6 + 8;\n      iVar6 = iVar6 + 0xc;\n    }" if (parenthesized_expression "((piVar2 == (int *)0x0) || (*piVar2 == 0))" ( (binary_expression "(piVar2 == (int *)0x0) || (*piVar2 == 0)" (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(*piVar2 == 0)" ( (binary_expression "*piVar2 == 0" (pointer_expression "*piVar2" * identifier) == number_literal) ))) )) (compound_statement "{\n      iVar7 = 4;\n      iVar8 = 0;\n      iVar6 = 8;\n    }" { (expression_statement "iVar7 = 4;" (assignment_expression "iVar7 = 4" identifier = number_literal) ;) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (expression_statement "iVar6 = 8;" (assignment_expression "iVar6 = 8" identifier = number_literal) ;) }) (else_clause "else {\n      iVar7 = 0;\n      do {\n        iVar6 = iVar7;\n        iVar7 = iVar6 + 1;\n        iVar8 = iVar7 * 4;\n      } while (piVar2[iVar7] != 0);\n      iVar6 = iVar6 * 4;\n      iVar7 = iVar6 + 8;\n      iVar6 = iVar6 + 0xc;\n    }" else (compound_statement "{\n      iVar7 = 0;\n      do {\n        iVar6 = iVar7;\n        iVar7 = iVar6 + 1;\n        iVar8 = iVar7 * 4;\n      } while (piVar2[iVar7] != 0);\n      iVar6 = iVar6 * 4;\n      iVar7 = iVar6 + 8;\n      iVar6 = iVar6 + 0xc;\n    }" { (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (do_statement "do {\n        iVar6 = iVar7;\n        iVar7 = iVar6 + 1;\n        iVar8 = iVar7 * 4;\n      } while (piVar2[iVar7] != 0);" do (compound_statement "{\n        iVar6 = iVar7;\n        iVar7 = iVar6 + 1;\n        iVar8 = iVar7 * 4;\n      }" { (expression_statement "iVar6 = iVar7;" (assignment_expression "iVar6 = iVar7" identifier = identifier) ;) (expression_statement "iVar7 = iVar6 + 1;" (assignment_expression "iVar7 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "iVar8 = iVar7 * 4;" (assignment_expression "iVar8 = iVar7 * 4" identifier = (binary_expression "iVar7 * 4" identifier * number_literal)) ;) }) while (parenthesized_expression "(piVar2[iVar7] != 0)" ( (binary_expression "piVar2[iVar7] != 0" (subscript_expression "piVar2[iVar7]" identifier [ identifier ]) != number_literal) )) ;) (expression_statement "iVar6 = iVar6 * 4;" (assignment_expression "iVar6 = iVar6 * 4" identifier = (binary_expression "iVar6 * 4" identifier * number_literal)) ;) (expression_statement "iVar7 = iVar6 + 8;" (assignment_expression "iVar7 = iVar6 + 8" identifier = (binary_expression "iVar6 + 8" identifier + number_literal)) ;) (expression_statement "iVar6 = iVar6 + 0xc;" (assignment_expression "iVar6 = iVar6 + 0xc" identifier = (binary_expression "iVar6 + 0xc" identifier + number_literal)) ;) }))) (expression_statement "iVar5 = xrealloc(piVar2,iVar6);" (assignment_expression "iVar5 = xrealloc(piVar2,iVar6)" identifier = (call_expression "xrealloc(piVar2,iVar6)" identifier (argument_list "(piVar2,iVar6)" ( identifier , identifier )))) ;) (expression_statement "*(char **)(iVar5 + iVar8) = pcVar4;" (assignment_expression "*(char **)(iVar5 + iVar8) = pcVar4" (pointer_expression "*(char **)(iVar5 + iVar8)" * (cast_expression "(char **)(iVar5 + iVar8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar5 + iVar8)" ( (binary_expression "iVar5 + iVar8" identifier + identifier) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar5 + iVar7) = 0;" (assignment_expression "*(undefined4 *)(iVar5 + iVar7) = 0" (pointer_expression "*(undefined4 *)(iVar5 + iVar7)" * (cast_expression "(undefined4 *)(iVar5 + iVar7)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + iVar7)" ( (binary_expression "iVar5 + iVar7" identifier + identifier) )))) = number_literal) ;) (expression_statement "iVar6 = *(int *)(param_1 + 0x38);" (assignment_expression "iVar6 = *(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 "*(int *)(iVar6 + 0x18) = iVar5;" (assignment_expression "*(int *)(iVar6 + 0x18) = iVar5" (pointer_expression "*(int *)(iVar6 + 0x18)" * (cast_expression "(int *)(iVar6 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x18)" ( (binary_expression "iVar6 + 0x18" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar1 != 0) {\n      *(undefined4 *)(iVar6 + 0x10) = 1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      *(undefined4 *)(iVar6 + 0x10) = 1;\n    }" { (expression_statement "*(undefined4 *)(iVar6 + 0x10) = 1;" (assignment_expression "*(undefined4 *)(iVar6 + 0x10) = 1" (pointer_expression "*(undefined4 *)(iVar6 + 0x10)" * (cast_expression "(undefined4 *)(iVar6 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x10)" ( (binary_expression "iVar6 + 0x10" identifier + number_literal) )))) = number_literal) ;) })) (return_statement "return 1;" return number_literal ;) })) comment (expression_statement "__assert_fail("info->type_stack != NULL && info->type_stack->fields != NULL",\n                "../../binutils/wrstabs.c",0x632,"stab_class_baseclass");" (call_expression "__assert_fail("info->type_stack != NULL && info->type_stack->fields != NULL",\n                "../../binutils/wrstabs.c",0x632,"stab_class_baseclass")" identifier (argument_list "("info->type_stack != NULL && info->type_stack->fields != NULL",\n                "../../binutils/wrstabs.c",0x632,"stab_class_baseclass")" ( (string_literal ""info->type_stack != NULL && info->type_stack->fields != NULL"" " string_content ") , (string_literal ""../../binutils/wrstabs.c"" " string_content ") , number_literal , (string_literal ""stab_class_baseclass"" " string_content ") ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nbfd_boolean\nstab_class_baseclass(void *p,bfd_vma bitpos,bfd_boolean is_virtual,debug_visibility visibility)\n\n{\n  int iVar1;\n  int *piVar2;\n  char *__s;\n  size_t sVar3;\n  char *pcVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar1 = *(int *)(*(int *)((int)p + 0x38) + 0x10);\n  __s = stab_pop_type((stab_write_handle *)((int)p + 0x38));\n  sVar3 = strlen(__s);\n  pcVar4 = (char *)xmalloc(sVar3 + 0x19);\n  *pcVar4 = (is_virtual != 0) + '0';\n  if (visibility == DEBUG_VISIBILITY_PROTECTED) {\n    pcVar4[1] = '1';\n  }\n  else if (visibility == DEBUG_VISIBILITY_PUBLIC) {\n    pcVar4[1] = '2';\n  }\n  else {\n    if (visibility != DEBUG_VISIBILITY_PRIVATE) {\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    pcVar4[1] = '0';\n  }\n  sprintf(pcVar4 + 2,"%ld,%s;",(undefined4)bitpos,__s);\n  free(__s);\n  iVar6 = *(int *)((int)p + 0x38);\n  if ((iVar6 != 0) && (*(int *)(iVar6 + 0x14) != 0)) {\n    piVar2 = *(int **)(iVar6 + 0x18);\n    if ((piVar2 == (int *)0x0) || (*piVar2 == 0)) {\n      iVar7 = 4;\n      iVar8 = 0;\n      iVar6 = 8;\n    }\n    else {\n      iVar7 = 0;\n      do {\n        iVar6 = iVar7;\n        iVar7 = iVar6 + 1;\n        iVar8 = iVar7 * 4;\n      } while (piVar2[iVar7] != 0);\n      iVar6 = iVar6 * 4;\n      iVar7 = iVar6 + 8;\n      iVar6 = iVar6 + 0xc;\n    }\n    iVar5 = xrealloc(piVar2,iVar6);\n    *(char **)(iVar5 + iVar8) = pcVar4;\n    *(undefined4 *)(iVar5 + iVar7) = 0;\n    iVar6 = *(int *)((int)p + 0x38);\n    *(int *)(iVar6 + 0x18) = iVar5;\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar6 + 0x10) = 1;\n    }\n    return 1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("info->type_stack != NULL && info->type_stack->fields != NULL",\n                "../../binutils/wrstabs.c",0x632,"stab_class_baseclass");\n}\n\n" comment comment (function_definition "bfd_boolean\nstab_class_baseclass(void *p,bfd_vma bitpos,bfd_boolean is_virtual,debug_visibility visibility)\n\n{\n  int iVar1;\n  int *piVar2;\n  char *__s;\n  size_t sVar3;\n  char *pcVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar1 = *(int *)(*(int *)((int)p + 0x38) + 0x10);\n  __s = stab_pop_type((stab_write_handle *)((int)p + 0x38));\n  sVar3 = strlen(__s);\n  pcVar4 = (char *)xmalloc(sVar3 + 0x19);\n  *pcVar4 = (is_virtual != 0) + '0';\n  if (visibility == DEBUG_VISIBILITY_PROTECTED) {\n    pcVar4[1] = '1';\n  }\n  else if (visibility == DEBUG_VISIBILITY_PUBLIC) {\n    pcVar4[1] = '2';\n  }\n  else {\n    if (visibility != DEBUG_VISIBILITY_PRIVATE) {\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    pcVar4[1] = '0';\n  }\n  sprintf(pcVar4 + 2,"%ld,%s;",(undefined4)bitpos,__s);\n  free(__s);\n  iVar6 = *(int *)((int)p + 0x38);\n  if ((iVar6 != 0) && (*(int *)(iVar6 + 0x14) != 0)) {\n    piVar2 = *(int **)(iVar6 + 0x18);\n    if ((piVar2 == (int *)0x0) || (*piVar2 == 0)) {\n      iVar7 = 4;\n      iVar8 = 0;\n      iVar6 = 8;\n    }\n    else {\n      iVar7 = 0;\n      do {\n        iVar6 = iVar7;\n        iVar7 = iVar6 + 1;\n        iVar8 = iVar7 * 4;\n      } while (piVar2[iVar7] != 0);\n      iVar6 = iVar6 * 4;\n      iVar7 = iVar6 + 8;\n      iVar6 = iVar6 + 0xc;\n    }\n    iVar5 = xrealloc(piVar2,iVar6);\n    *(char **)(iVar5 + iVar8) = pcVar4;\n    *(undefined4 *)(iVar5 + iVar7) = 0;\n    iVar6 = *(int *)((int)p + 0x38);\n    *(int *)(iVar6 + 0x18) = iVar5;\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar6 + 0x10) = 1;\n    }\n    return 1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("info->type_stack != NULL && info->type_stack->fields != NULL",\n                "../../binutils/wrstabs.c",0x632,"stab_class_baseclass");\n}" type_identifier (function_declarator "stab_class_baseclass(void *p,bfd_vma bitpos,bfd_boolean is_virtual,debug_visibility visibility)" identifier (parameter_list "(void *p,bfd_vma bitpos,bfd_boolean is_virtual,debug_visibility visibility)" ( (parameter_declaration "void *p" primitive_type (pointer_declarator "*p" * identifier)) , (parameter_declaration "bfd_vma bitpos" type_identifier identifier) , (parameter_declaration "bfd_boolean is_virtual" type_identifier identifier) , (parameter_declaration "debug_visibility visibility" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  char *__s;\n  size_t sVar3;\n  char *pcVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar1 = *(int *)(*(int *)((int)p + 0x38) + 0x10);\n  __s = stab_pop_type((stab_write_handle *)((int)p + 0x38));\n  sVar3 = strlen(__s);\n  pcVar4 = (char *)xmalloc(sVar3 + 0x19);\n  *pcVar4 = (is_virtual != 0) + '0';\n  if (visibility == DEBUG_VISIBILITY_PROTECTED) {\n    pcVar4[1] = '1';\n  }\n  else if (visibility == DEBUG_VISIBILITY_PUBLIC) {\n    pcVar4[1] = '2';\n  }\n  else {\n    if (visibility != DEBUG_VISIBILITY_PRIVATE) {\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    pcVar4[1] = '0';\n  }\n  sprintf(pcVar4 + 2,"%ld,%s;",(undefined4)bitpos,__s);\n  free(__s);\n  iVar6 = *(int *)((int)p + 0x38);\n  if ((iVar6 != 0) && (*(int *)(iVar6 + 0x14) != 0)) {\n    piVar2 = *(int **)(iVar6 + 0x18);\n    if ((piVar2 == (int *)0x0) || (*piVar2 == 0)) {\n      iVar7 = 4;\n      iVar8 = 0;\n      iVar6 = 8;\n    }\n    else {\n      iVar7 = 0;\n      do {\n        iVar6 = iVar7;\n        iVar7 = iVar6 + 1;\n        iVar8 = iVar7 * 4;\n      } while (piVar2[iVar7] != 0);\n      iVar6 = iVar6 * 4;\n      iVar7 = iVar6 + 8;\n      iVar6 = iVar6 + 0xc;\n    }\n    iVar5 = xrealloc(piVar2,iVar6);\n    *(char **)(iVar5 + iVar8) = pcVar4;\n    *(undefined4 *)(iVar5 + iVar7) = 0;\n    iVar6 = *(int *)((int)p + 0x38);\n    *(int *)(iVar6 + 0x18) = iVar5;\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar6 + 0x10) = 1;\n    }\n    return 1;\n  }\n                    /* WARNING: Subroutine does not return */\n  __assert_fail("info->type_stack != NULL && info->type_stack->fields != NULL",\n                "../../binutils/wrstabs.c",0x632,"stab_class_baseclass");\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (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 "__s = stab_pop_type((stab_write_handle *)((int)p + 0x38));" (assignment_expression "__s = 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 "sVar3 = strlen(__s);" (assignment_expression "sVar3 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "pcVar4 = (char *)xmalloc(sVar3 + 0x19);" (assignment_expression "pcVar4 = (char *)xmalloc(sVar3 + 0x19)" identifier = (cast_expression "(char *)xmalloc(sVar3 + 0x19)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar3 + 0x19)" identifier (argument_list "(sVar3 + 0x19)" ( (binary_expression "sVar3 + 0x19" identifier + number_literal) ))))) ;) (expression_statement "*pcVar4 = (is_virtual != 0) + '0';" (assignment_expression "*pcVar4 = (is_virtual != 0) + '0'" (pointer_expression "*pcVar4" * identifier) = (binary_expression "(is_virtual != 0) + '0'" (parenthesized_expression "(is_virtual != 0)" ( (binary_expression "is_virtual != 0" identifier != number_literal) )) + (char_literal "'0'" ' character '))) ;) (if_statement "if (visibility == DEBUG_VISIBILITY_PROTECTED) {\n    pcVar4[1] = '1';\n  }\n  else if (visibility == DEBUG_VISIBILITY_PUBLIC) {\n    pcVar4[1] = '2';\n  }\n  else {\n    if (visibility != DEBUG_VISIBILITY_PRIVATE) {\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    pcVar4[1] = '0';\n  }" if (parenthesized_expression "(visibility == DEBUG_VISIBILITY_PROTECTED)" ( (binary_expression "visibility == DEBUG_VISIBILITY_PROTECTED" identifier == identifier) )) (compound_statement "{\n    pcVar4[1] = '1';\n  }" { (expression_statement "pcVar4[1] = '1';" (assignment_expression "pcVar4[1] = '1'" (subscript_expression "pcVar4[1]" identifier [ number_literal ]) = (char_literal "'1'" ' character ')) ;) }) (else_clause "else if (visibility == DEBUG_VISIBILITY_PUBLIC) {\n    pcVar4[1] = '2';\n  }\n  else {\n    if (visibility != DEBUG_VISIBILITY_PRIVATE) {\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    pcVar4[1] = '0';\n  }" else (if_statement "if (visibility == DEBUG_VISIBILITY_PUBLIC) {\n    pcVar4[1] = '2';\n  }\n  else {\n    if (visibility != DEBUG_VISIBILITY_PRIVATE) {\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    pcVar4[1] = '0';\n  }" if (parenthesized_expression "(visibility == DEBUG_VISIBILITY_PUBLIC)" ( (binary_expression "visibility == DEBUG_VISIBILITY_PUBLIC" identifier == identifier) )) (compound_statement "{\n    pcVar4[1] = '2';\n  }" { (expression_statement "pcVar4[1] = '2';" (assignment_expression "pcVar4[1] = '2'" (subscript_expression "pcVar4[1]" identifier [ number_literal ]) = (char_literal "'2'" ' character ')) ;) }) (else_clause "else {\n    if (visibility != DEBUG_VISIBILITY_PRIVATE) {\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    pcVar4[1] = '0';\n  }" else (compound_statement "{\n    if (visibility != DEBUG_VISIBILITY_PRIVATE) {\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }\n    pcVar4[1] = '0';\n  }" { (if_statement "if (visibility != DEBUG_VISIBILITY_PRIVATE) {\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }" if (parenthesized_expression "(visibility != DEBUG_VISIBILITY_PRIVATE)" ( (binary_expression "visibility != DEBUG_VISIBILITY_PRIVATE" identifier != identifier) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      abort();\n    }" { comment (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "pcVar4[1] = '0';" (assignment_expression "pcVar4[1] = '0'" (subscript_expression "pcVar4[1]" identifier [ number_literal ]) = (char_literal "'0'" ' character ')) ;) }))))) (expression_statement "sprintf(pcVar4 + 2,"%ld,%s;",(undefined4)bitpos,__s);" (call_expression "sprintf(pcVar4 + 2,"%ld,%s;",(undefined4)bitpos,__s)" identifier (argument_list "(pcVar4 + 2,"%ld,%s;",(undefined4)bitpos,__s)" ( (binary_expression "pcVar4 + 2" identifier + number_literal) , (string_literal ""%ld,%s;"" " string_content ") , (cast_expression "(undefined4)bitpos" ( (type_descriptor "undefined4" type_identifier) ) identifier) , identifier ))) ;) (expression_statement "free(__s);" (call_expression "free(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (expression_statement "iVar6 = *(int *)((int)p + 0x38);" (assignment_expression "iVar6 = *(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) ))))) ;) (if_statement "if ((iVar6 != 0) && (*(int *)(iVar6 + 0x14) != 0)) {\n    piVar2 = *(int **)(iVar6 + 0x18);\n    if ((piVar2 == (int *)0x0) || (*piVar2 == 0)) {\n      iVar7 = 4;\n      iVar8 = 0;\n      iVar6 = 8;\n    }\n    else {\n      iVar7 = 0;\n      do {\n        iVar6 = iVar7;\n        iVar7 = iVar6 + 1;\n        iVar8 = iVar7 * 4;\n      } while (piVar2[iVar7] != 0);\n      iVar6 = iVar6 * 4;\n      iVar7 = iVar6 + 8;\n      iVar6 = iVar6 + 0xc;\n    }\n    iVar5 = xrealloc(piVar2,iVar6);\n    *(char **)(iVar5 + iVar8) = pcVar4;\n    *(undefined4 *)(iVar5 + iVar7) = 0;\n    iVar6 = *(int *)((int)p + 0x38);\n    *(int *)(iVar6 + 0x18) = iVar5;\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar6 + 0x10) = 1;\n    }\n    return 1;\n  }" if (parenthesized_expression "((iVar6 != 0) && (*(int *)(iVar6 + 0x14) != 0))" ( (binary_expression "(iVar6 != 0) && (*(int *)(iVar6 + 0x14) != 0)" (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(int *)(iVar6 + 0x14) != 0)" ( (binary_expression "*(int *)(iVar6 + 0x14) != 0" (pointer_expression "*(int *)(iVar6 + 0x14)" * (cast_expression "(int *)(iVar6 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x14)" ( (binary_expression "iVar6 + 0x14" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    piVar2 = *(int **)(iVar6 + 0x18);\n    if ((piVar2 == (int *)0x0) || (*piVar2 == 0)) {\n      iVar7 = 4;\n      iVar8 = 0;\n      iVar6 = 8;\n    }\n    else {\n      iVar7 = 0;\n      do {\n        iVar6 = iVar7;\n        iVar7 = iVar6 + 1;\n        iVar8 = iVar7 * 4;\n      } while (piVar2[iVar7] != 0);\n      iVar6 = iVar6 * 4;\n      iVar7 = iVar6 + 8;\n      iVar6 = iVar6 + 0xc;\n    }\n    iVar5 = xrealloc(piVar2,iVar6);\n    *(char **)(iVar5 + iVar8) = pcVar4;\n    *(undefined4 *)(iVar5 + iVar7) = 0;\n    iVar6 = *(int *)((int)p + 0x38);\n    *(int *)(iVar6 + 0x18) = iVar5;\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar6 + 0x10) = 1;\n    }\n    return 1;\n  }" { (expression_statement "piVar2 = *(int **)(iVar6 + 0x18);" (assignment_expression "piVar2 = *(int **)(iVar6 + 0x18)" identifier = (pointer_expression "*(int **)(iVar6 + 0x18)" * (cast_expression "(int **)(iVar6 + 0x18)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar6 + 0x18)" ( (binary_expression "iVar6 + 0x18" identifier + number_literal) ))))) ;) (if_statement "if ((piVar2 == (int *)0x0) || (*piVar2 == 0)) {\n      iVar7 = 4;\n      iVar8 = 0;\n      iVar6 = 8;\n    }\n    else {\n      iVar7 = 0;\n      do {\n        iVar6 = iVar7;\n        iVar7 = iVar6 + 1;\n        iVar8 = iVar7 * 4;\n      } while (piVar2[iVar7] != 0);\n      iVar6 = iVar6 * 4;\n      iVar7 = iVar6 + 8;\n      iVar6 = iVar6 + 0xc;\n    }" if (parenthesized_expression "((piVar2 == (int *)0x0) || (*piVar2 == 0))" ( (binary_expression "(piVar2 == (int *)0x0) || (*piVar2 == 0)" (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(*piVar2 == 0)" ( (binary_expression "*piVar2 == 0" (pointer_expression "*piVar2" * identifier) == number_literal) ))) )) (compound_statement "{\n      iVar7 = 4;\n      iVar8 = 0;\n      iVar6 = 8;\n    }" { (expression_statement "iVar7 = 4;" (assignment_expression "iVar7 = 4" identifier = number_literal) ;) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (expression_statement "iVar6 = 8;" (assignment_expression "iVar6 = 8" identifier = number_literal) ;) }) (else_clause "else {\n      iVar7 = 0;\n      do {\n        iVar6 = iVar7;\n        iVar7 = iVar6 + 1;\n        iVar8 = iVar7 * 4;\n      } while (piVar2[iVar7] != 0);\n      iVar6 = iVar6 * 4;\n      iVar7 = iVar6 + 8;\n      iVar6 = iVar6 + 0xc;\n    }" else (compound_statement "{\n      iVar7 = 0;\n      do {\n        iVar6 = iVar7;\n        iVar7 = iVar6 + 1;\n        iVar8 = iVar7 * 4;\n      } while (piVar2[iVar7] != 0);\n      iVar6 = iVar6 * 4;\n      iVar7 = iVar6 + 8;\n      iVar6 = iVar6 + 0xc;\n    }" { (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (do_statement "do {\n        iVar6 = iVar7;\n        iVar7 = iVar6 + 1;\n        iVar8 = iVar7 * 4;\n      } while (piVar2[iVar7] != 0);" do (compound_statement "{\n        iVar6 = iVar7;\n        iVar7 = iVar6 + 1;\n        iVar8 = iVar7 * 4;\n      }" { (expression_statement "iVar6 = iVar7;" (assignment_expression "iVar6 = iVar7" identifier = identifier) ;) (expression_statement "iVar7 = iVar6 + 1;" (assignment_expression "iVar7 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "iVar8 = iVar7 * 4;" (assignment_expression "iVar8 = iVar7 * 4" identifier = (binary_expression "iVar7 * 4" identifier * number_literal)) ;) }) while (parenthesized_expression "(piVar2[iVar7] != 0)" ( (binary_expression "piVar2[iVar7] != 0" (subscript_expression "piVar2[iVar7]" identifier [ identifier ]) != number_literal) )) ;) (expression_statement "iVar6 = iVar6 * 4;" (assignment_expression "iVar6 = iVar6 * 4" identifier = (binary_expression "iVar6 * 4" identifier * number_literal)) ;) (expression_statement "iVar7 = iVar6 + 8;" (assignment_expression "iVar7 = iVar6 + 8" identifier = (binary_expression "iVar6 + 8" identifier + number_literal)) ;) (expression_statement "iVar6 = iVar6 + 0xc;" (assignment_expression "iVar6 = iVar6 + 0xc" identifier = (binary_expression "iVar6 + 0xc" identifier + number_literal)) ;) }))) (expression_statement "iVar5 = xrealloc(piVar2,iVar6);" (assignment_expression "iVar5 = xrealloc(piVar2,iVar6)" identifier = (call_expression "xrealloc(piVar2,iVar6)" identifier (argument_list "(piVar2,iVar6)" ( identifier , identifier )))) ;) (expression_statement "*(char **)(iVar5 + iVar8) = pcVar4;" (assignment_expression "*(char **)(iVar5 + iVar8) = pcVar4" (pointer_expression "*(char **)(iVar5 + iVar8)" * (cast_expression "(char **)(iVar5 + iVar8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar5 + iVar8)" ( (binary_expression "iVar5 + iVar8" identifier + identifier) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar5 + iVar7) = 0;" (assignment_expression "*(undefined4 *)(iVar5 + iVar7) = 0" (pointer_expression "*(undefined4 *)(iVar5 + iVar7)" * (cast_expression "(undefined4 *)(iVar5 + iVar7)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + iVar7)" ( (binary_expression "iVar5 + iVar7" identifier + identifier) )))) = number_literal) ;) (expression_statement "iVar6 = *(int *)((int)p + 0x38);" (assignment_expression "iVar6 = *(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 "*(int *)(iVar6 + 0x18) = iVar5;" (assignment_expression "*(int *)(iVar6 + 0x18) = iVar5" (pointer_expression "*(int *)(iVar6 + 0x18)" * (cast_expression "(int *)(iVar6 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x18)" ( (binary_expression "iVar6 + 0x18" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar1 != 0) {\n      *(undefined4 *)(iVar6 + 0x10) = 1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      *(undefined4 *)(iVar6 + 0x10) = 1;\n    }" { (expression_statement "*(undefined4 *)(iVar6 + 0x10) = 1;" (assignment_expression "*(undefined4 *)(iVar6 + 0x10) = 1" (pointer_expression "*(undefined4 *)(iVar6 + 0x10)" * (cast_expression "(undefined4 *)(iVar6 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x10)" ( (binary_expression "iVar6 + 0x10" identifier + number_literal) )))) = number_literal) ;) })) (return_statement "return 1;" return number_literal ;) })) comment (expression_statement "__assert_fail("info->type_stack != NULL && info->type_stack->fields != NULL",\n                "../../binutils/wrstabs.c",0x632,"stab_class_baseclass");" (call_expression "__assert_fail("info->type_stack != NULL && info->type_stack->fields != NULL",\n                "../../binutils/wrstabs.c",0x632,"stab_class_baseclass")" identifier (argument_list "("info->type_stack != NULL && info->type_stack->fields != NULL",\n                "../../binutils/wrstabs.c",0x632,"stab_class_baseclass")" ( (string_literal ""info->type_stack != NULL && info->type_stack->fields != NULL"" " string_content ") , (string_literal ""../../binutils/wrstabs.c"" " string_content ") , number_literal , (string_literal ""stab_class_baseclass"" " string_content ") ))) ;) })))
(translation_unit "undefined4 FUN_0002a050(int param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5)\n\n{\n  int iVar1;\n  int *piVar2;\n  char *__s;\n  size_t sVar3;\n  char *pcVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar1 = *(int *)(*(int *)(param_1 + 0x38) + 0x10);\n  __s = (char *)FUN_00029a00();\n  sVar3 = strlen(__s);\n  pcVar4 = (char *)xmalloc(sVar3 + 0x19);\n  *pcVar4 = (param_4 != 0) + '0';\n  if (param_5 == 1) {\n    pcVar4[1] = '1';\n  }\n  else if (param_5 == 0) {\n    pcVar4[1] = '2';\n  }\n  else {\n    if (param_5 != 2) {\n                    \n      abort();\n    }\n    pcVar4[1] = '0';\n  }\n  sprintf(pcVar4 + 2,"%ld,%s;",param_2,__s);\n  free(__s);\n  iVar6 = *(int *)(param_1 + 0x38);\n  if ((iVar6 != 0) && (*(int *)(iVar6 + 0x14) != 0)) {\n    piVar2 = *(int **)(iVar6 + 0x18);\n    if ((piVar2 == (int *)0x0) || (*piVar2 == 0)) {\n      iVar7 = 4;\n      iVar8 = 0;\n      iVar6 = 8;\n    }\n    else {\n      iVar7 = 0;\n      do {\n        iVar6 = iVar7;\n        iVar7 = iVar6 + 1;\n        iVar8 = iVar7 * 4;\n      } while (piVar2[iVar7] != 0);\n      iVar6 = iVar6 * 4;\n      iVar7 = iVar6 + 8;\n      iVar6 = iVar6 + 0xc;\n    }\n    iVar5 = xrealloc(piVar2,iVar6);\n    *(char **)(iVar5 + iVar8) = pcVar4;\n    *(undefined4 *)(iVar5 + iVar7) = 0;\n    iVar6 = *(int *)(param_1 + 0x38);\n    *(int *)(iVar6 + 0x18) = iVar5;\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar6 + 0x10) = 1;\n    }\n    return 1;\n  }\n                    \n  __assert_fail("info->type_stack != NULL && info->type_stack->fields != NULL",\n                "../../binutils/wrstabs.c",0x632,"stab_class_baseclass");\n}\n\n" (function_definition "undefined4 FUN_0002a050(int param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5)\n\n{\n  int iVar1;\n  int *piVar2;\n  char *__s;\n  size_t sVar3;\n  char *pcVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar1 = *(int *)(*(int *)(param_1 + 0x38) + 0x10);\n  __s = (char *)FUN_00029a00();\n  sVar3 = strlen(__s);\n  pcVar4 = (char *)xmalloc(sVar3 + 0x19);\n  *pcVar4 = (param_4 != 0) + '0';\n  if (param_5 == 1) {\n    pcVar4[1] = '1';\n  }\n  else if (param_5 == 0) {\n    pcVar4[1] = '2';\n  }\n  else {\n    if (param_5 != 2) {\n                    \n      abort();\n    }\n    pcVar4[1] = '0';\n  }\n  sprintf(pcVar4 + 2,"%ld,%s;",param_2,__s);\n  free(__s);\n  iVar6 = *(int *)(param_1 + 0x38);\n  if ((iVar6 != 0) && (*(int *)(iVar6 + 0x14) != 0)) {\n    piVar2 = *(int **)(iVar6 + 0x18);\n    if ((piVar2 == (int *)0x0) || (*piVar2 == 0)) {\n      iVar7 = 4;\n      iVar8 = 0;\n      iVar6 = 8;\n    }\n    else {\n      iVar7 = 0;\n      do {\n        iVar6 = iVar7;\n        iVar7 = iVar6 + 1;\n        iVar8 = iVar7 * 4;\n      } while (piVar2[iVar7] != 0);\n      iVar6 = iVar6 * 4;\n      iVar7 = iVar6 + 8;\n      iVar6 = iVar6 + 0xc;\n    }\n    iVar5 = xrealloc(piVar2,iVar6);\n    *(char **)(iVar5 + iVar8) = pcVar4;\n    *(undefined4 *)(iVar5 + iVar7) = 0;\n    iVar6 = *(int *)(param_1 + 0x38);\n    *(int *)(iVar6 + 0x18) = iVar5;\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar6 + 0x10) = 1;\n    }\n    return 1;\n  }\n                    \n  __assert_fail("info->type_stack != NULL && info->type_stack->fields != NULL",\n                "../../binutils/wrstabs.c",0x632,"stab_class_baseclass");\n}" type_identifier (function_declarator "FUN_0002a050(int param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5)" ( (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 "int param_4" primitive_type identifier) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  char *__s;\n  size_t sVar3;\n  char *pcVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar1 = *(int *)(*(int *)(param_1 + 0x38) + 0x10);\n  __s = (char *)FUN_00029a00();\n  sVar3 = strlen(__s);\n  pcVar4 = (char *)xmalloc(sVar3 + 0x19);\n  *pcVar4 = (param_4 != 0) + '0';\n  if (param_5 == 1) {\n    pcVar4[1] = '1';\n  }\n  else if (param_5 == 0) {\n    pcVar4[1] = '2';\n  }\n  else {\n    if (param_5 != 2) {\n                    \n      abort();\n    }\n    pcVar4[1] = '0';\n  }\n  sprintf(pcVar4 + 2,"%ld,%s;",param_2,__s);\n  free(__s);\n  iVar6 = *(int *)(param_1 + 0x38);\n  if ((iVar6 != 0) && (*(int *)(iVar6 + 0x14) != 0)) {\n    piVar2 = *(int **)(iVar6 + 0x18);\n    if ((piVar2 == (int *)0x0) || (*piVar2 == 0)) {\n      iVar7 = 4;\n      iVar8 = 0;\n      iVar6 = 8;\n    }\n    else {\n      iVar7 = 0;\n      do {\n        iVar6 = iVar7;\n        iVar7 = iVar6 + 1;\n        iVar8 = iVar7 * 4;\n      } while (piVar2[iVar7] != 0);\n      iVar6 = iVar6 * 4;\n      iVar7 = iVar6 + 8;\n      iVar6 = iVar6 + 0xc;\n    }\n    iVar5 = xrealloc(piVar2,iVar6);\n    *(char **)(iVar5 + iVar8) = pcVar4;\n    *(undefined4 *)(iVar5 + iVar7) = 0;\n    iVar6 = *(int *)(param_1 + 0x38);\n    *(int *)(iVar6 + 0x18) = iVar5;\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar6 + 0x10) = 1;\n    }\n    return 1;\n  }\n                    \n  __assert_fail("info->type_stack != NULL && info->type_stack->fields != NULL",\n                "../../binutils/wrstabs.c",0x632,"stab_class_baseclass");\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (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 "__s = (char *)FUN_00029a00();" (assignment_expression "__s = (char *)FUN_00029a00()" identifier = (cast_expression "(char *)FUN_00029a00()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00029a00()" identifier (argument_list "()" ( ))))) ;) (expression_statement "sVar3 = strlen(__s);" (assignment_expression "sVar3 = strlen(__s)" identifier = (call_expression "strlen(__s)" identifier (argument_list "(__s)" ( identifier )))) ;) (expression_statement "pcVar4 = (char *)xmalloc(sVar3 + 0x19);" (assignment_expression "pcVar4 = (char *)xmalloc(sVar3 + 0x19)" identifier = (cast_expression "(char *)xmalloc(sVar3 + 0x19)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar3 + 0x19)" identifier (argument_list "(sVar3 + 0x19)" ( (binary_expression "sVar3 + 0x19" identifier + number_literal) ))))) ;) (expression_statement "*pcVar4 = (param_4 != 0) + '0';" (assignment_expression "*pcVar4 = (param_4 != 0) + '0'" (pointer_expression "*pcVar4" * identifier) = (binary_expression "(param_4 != 0) + '0'" (parenthesized_expression "(param_4 != 0)" ( (binary_expression "param_4 != 0" identifier != number_literal) )) + (char_literal "'0'" ' character '))) ;) (if_statement "if (param_5 == 1) {\n    pcVar4[1] = '1';\n  }\n  else if (param_5 == 0) {\n    pcVar4[1] = '2';\n  }\n  else {\n    if (param_5 != 2) {\n                    \n      abort();\n    }\n    pcVar4[1] = '0';\n  }" if (parenthesized_expression "(param_5 == 1)" ( (binary_expression "param_5 == 1" identifier == number_literal) )) (compound_statement "{\n    pcVar4[1] = '1';\n  }" { (expression_statement "pcVar4[1] = '1';" (assignment_expression "pcVar4[1] = '1'" (subscript_expression "pcVar4[1]" identifier [ number_literal ]) = (char_literal "'1'" ' character ')) ;) }) (else_clause "else if (param_5 == 0) {\n    pcVar4[1] = '2';\n  }\n  else {\n    if (param_5 != 2) {\n                    \n      abort();\n    }\n    pcVar4[1] = '0';\n  }" else (if_statement "if (param_5 == 0) {\n    pcVar4[1] = '2';\n  }\n  else {\n    if (param_5 != 2) {\n                    \n      abort();\n    }\n    pcVar4[1] = '0';\n  }" if (parenthesized_expression "(param_5 == 0)" ( (binary_expression "param_5 == 0" identifier == number_literal) )) (compound_statement "{\n    pcVar4[1] = '2';\n  }" { (expression_statement "pcVar4[1] = '2';" (assignment_expression "pcVar4[1] = '2'" (subscript_expression "pcVar4[1]" identifier [ number_literal ]) = (char_literal "'2'" ' character ')) ;) }) (else_clause "else {\n    if (param_5 != 2) {\n                    \n      abort();\n    }\n    pcVar4[1] = '0';\n  }" else (compound_statement "{\n    if (param_5 != 2) {\n                    \n      abort();\n    }\n    pcVar4[1] = '0';\n  }" { (if_statement "if (param_5 != 2) {\n                    \n      abort();\n    }" if (parenthesized_expression "(param_5 != 2)" ( (binary_expression "param_5 != 2" identifier != number_literal) )) (compound_statement "{\n                    \n      abort();\n    }" { (expression_statement "abort();" (call_expression "abort()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "pcVar4[1] = '0';" (assignment_expression "pcVar4[1] = '0'" (subscript_expression "pcVar4[1]" identifier [ number_literal ]) = (char_literal "'0'" ' character ')) ;) }))))) (expression_statement "sprintf(pcVar4 + 2,"%ld,%s;",param_2,__s);" (call_expression "sprintf(pcVar4 + 2,"%ld,%s;",param_2,__s)" identifier (argument_list "(pcVar4 + 2,"%ld,%s;",param_2,__s)" ( (binary_expression "pcVar4 + 2" identifier + number_literal) , (string_literal ""%ld,%s;"" " string_content ") , identifier , identifier ))) ;) (expression_statement "free(__s);" (call_expression "free(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (expression_statement "iVar6 = *(int *)(param_1 + 0x38);" (assignment_expression "iVar6 = *(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) ))))) ;) (if_statement "if ((iVar6 != 0) && (*(int *)(iVar6 + 0x14) != 0)) {\n    piVar2 = *(int **)(iVar6 + 0x18);\n    if ((piVar2 == (int *)0x0) || (*piVar2 == 0)) {\n      iVar7 = 4;\n      iVar8 = 0;\n      iVar6 = 8;\n    }\n    else {\n      iVar7 = 0;\n      do {\n        iVar6 = iVar7;\n        iVar7 = iVar6 + 1;\n        iVar8 = iVar7 * 4;\n      } while (piVar2[iVar7] != 0);\n      iVar6 = iVar6 * 4;\n      iVar7 = iVar6 + 8;\n      iVar6 = iVar6 + 0xc;\n    }\n    iVar5 = xrealloc(piVar2,iVar6);\n    *(char **)(iVar5 + iVar8) = pcVar4;\n    *(undefined4 *)(iVar5 + iVar7) = 0;\n    iVar6 = *(int *)(param_1 + 0x38);\n    *(int *)(iVar6 + 0x18) = iVar5;\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar6 + 0x10) = 1;\n    }\n    return 1;\n  }" if (parenthesized_expression "((iVar6 != 0) && (*(int *)(iVar6 + 0x14) != 0))" ( (binary_expression "(iVar6 != 0) && (*(int *)(iVar6 + 0x14) != 0)" (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(int *)(iVar6 + 0x14) != 0)" ( (binary_expression "*(int *)(iVar6 + 0x14) != 0" (pointer_expression "*(int *)(iVar6 + 0x14)" * (cast_expression "(int *)(iVar6 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x14)" ( (binary_expression "iVar6 + 0x14" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    piVar2 = *(int **)(iVar6 + 0x18);\n    if ((piVar2 == (int *)0x0) || (*piVar2 == 0)) {\n      iVar7 = 4;\n      iVar8 = 0;\n      iVar6 = 8;\n    }\n    else {\n      iVar7 = 0;\n      do {\n        iVar6 = iVar7;\n        iVar7 = iVar6 + 1;\n        iVar8 = iVar7 * 4;\n      } while (piVar2[iVar7] != 0);\n      iVar6 = iVar6 * 4;\n      iVar7 = iVar6 + 8;\n      iVar6 = iVar6 + 0xc;\n    }\n    iVar5 = xrealloc(piVar2,iVar6);\n    *(char **)(iVar5 + iVar8) = pcVar4;\n    *(undefined4 *)(iVar5 + iVar7) = 0;\n    iVar6 = *(int *)(param_1 + 0x38);\n    *(int *)(iVar6 + 0x18) = iVar5;\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar6 + 0x10) = 1;\n    }\n    return 1;\n  }" { (expression_statement "piVar2 = *(int **)(iVar6 + 0x18);" (assignment_expression "piVar2 = *(int **)(iVar6 + 0x18)" identifier = (pointer_expression "*(int **)(iVar6 + 0x18)" * (cast_expression "(int **)(iVar6 + 0x18)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar6 + 0x18)" ( (binary_expression "iVar6 + 0x18" identifier + number_literal) ))))) ;) (if_statement "if ((piVar2 == (int *)0x0) || (*piVar2 == 0)) {\n      iVar7 = 4;\n      iVar8 = 0;\n      iVar6 = 8;\n    }\n    else {\n      iVar7 = 0;\n      do {\n        iVar6 = iVar7;\n        iVar7 = iVar6 + 1;\n        iVar8 = iVar7 * 4;\n      } while (piVar2[iVar7] != 0);\n      iVar6 = iVar6 * 4;\n      iVar7 = iVar6 + 8;\n      iVar6 = iVar6 + 0xc;\n    }" if (parenthesized_expression "((piVar2 == (int *)0x0) || (*piVar2 == 0))" ( (binary_expression "(piVar2 == (int *)0x0) || (*piVar2 == 0)" (parenthesized_expression "(piVar2 == (int *)0x0)" ( (binary_expression "piVar2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(*piVar2 == 0)" ( (binary_expression "*piVar2 == 0" (pointer_expression "*piVar2" * identifier) == number_literal) ))) )) (compound_statement "{\n      iVar7 = 4;\n      iVar8 = 0;\n      iVar6 = 8;\n    }" { (expression_statement "iVar7 = 4;" (assignment_expression "iVar7 = 4" identifier = number_literal) ;) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (expression_statement "iVar6 = 8;" (assignment_expression "iVar6 = 8" identifier = number_literal) ;) }) (else_clause "else {\n      iVar7 = 0;\n      do {\n        iVar6 = iVar7;\n        iVar7 = iVar6 + 1;\n        iVar8 = iVar7 * 4;\n      } while (piVar2[iVar7] != 0);\n      iVar6 = iVar6 * 4;\n      iVar7 = iVar6 + 8;\n      iVar6 = iVar6 + 0xc;\n    }" else (compound_statement "{\n      iVar7 = 0;\n      do {\n        iVar6 = iVar7;\n        iVar7 = iVar6 + 1;\n        iVar8 = iVar7 * 4;\n      } while (piVar2[iVar7] != 0);\n      iVar6 = iVar6 * 4;\n      iVar7 = iVar6 + 8;\n      iVar6 = iVar6 + 0xc;\n    }" { (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (do_statement "do {\n        iVar6 = iVar7;\n        iVar7 = iVar6 + 1;\n        iVar8 = iVar7 * 4;\n      } while (piVar2[iVar7] != 0);" do (compound_statement "{\n        iVar6 = iVar7;\n        iVar7 = iVar6 + 1;\n        iVar8 = iVar7 * 4;\n      }" { (expression_statement "iVar6 = iVar7;" (assignment_expression "iVar6 = iVar7" identifier = identifier) ;) (expression_statement "iVar7 = iVar6 + 1;" (assignment_expression "iVar7 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "iVar8 = iVar7 * 4;" (assignment_expression "iVar8 = iVar7 * 4" identifier = (binary_expression "iVar7 * 4" identifier * number_literal)) ;) }) while (parenthesized_expression "(piVar2[iVar7] != 0)" ( (binary_expression "piVar2[iVar7] != 0" (subscript_expression "piVar2[iVar7]" identifier [ identifier ]) != number_literal) )) ;) (expression_statement "iVar6 = iVar6 * 4;" (assignment_expression "iVar6 = iVar6 * 4" identifier = (binary_expression "iVar6 * 4" identifier * number_literal)) ;) (expression_statement "iVar7 = iVar6 + 8;" (assignment_expression "iVar7 = iVar6 + 8" identifier = (binary_expression "iVar6 + 8" identifier + number_literal)) ;) (expression_statement "iVar6 = iVar6 + 0xc;" (assignment_expression "iVar6 = iVar6 + 0xc" identifier = (binary_expression "iVar6 + 0xc" identifier + number_literal)) ;) }))) (expression_statement "iVar5 = xrealloc(piVar2,iVar6);" (assignment_expression "iVar5 = xrealloc(piVar2,iVar6)" identifier = (call_expression "xrealloc(piVar2,iVar6)" identifier (argument_list "(piVar2,iVar6)" ( identifier , identifier )))) ;) (expression_statement "*(char **)(iVar5 + iVar8) = pcVar4;" (assignment_expression "*(char **)(iVar5 + iVar8) = pcVar4" (pointer_expression "*(char **)(iVar5 + iVar8)" * (cast_expression "(char **)(iVar5 + iVar8)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar5 + iVar8)" ( (binary_expression "iVar5 + iVar8" identifier + identifier) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar5 + iVar7) = 0;" (assignment_expression "*(undefined4 *)(iVar5 + iVar7) = 0" (pointer_expression "*(undefined4 *)(iVar5 + iVar7)" * (cast_expression "(undefined4 *)(iVar5 + iVar7)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + iVar7)" ( (binary_expression "iVar5 + iVar7" identifier + identifier) )))) = number_literal) ;) (expression_statement "iVar6 = *(int *)(param_1 + 0x38);" (assignment_expression "iVar6 = *(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 "*(int *)(iVar6 + 0x18) = iVar5;" (assignment_expression "*(int *)(iVar6 + 0x18) = iVar5" (pointer_expression "*(int *)(iVar6 + 0x18)" * (cast_expression "(int *)(iVar6 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x18)" ( (binary_expression "iVar6 + 0x18" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar1 != 0) {\n      *(undefined4 *)(iVar6 + 0x10) = 1;\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      *(undefined4 *)(iVar6 + 0x10) = 1;\n    }" { (expression_statement "*(undefined4 *)(iVar6 + 0x10) = 1;" (assignment_expression "*(undefined4 *)(iVar6 + 0x10) = 1" (pointer_expression "*(undefined4 *)(iVar6 + 0x10)" * (cast_expression "(undefined4 *)(iVar6 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar6 + 0x10)" ( (binary_expression "iVar6 + 0x10" identifier + number_literal) )))) = number_literal) ;) })) (return_statement "return 1;" return number_literal ;) })) (expression_statement "__assert_fail("info->type_stack != NULL && info->type_stack->fields != NULL",\n                "../../binutils/wrstabs.c",0x632,"stab_class_baseclass");" (call_expression "__assert_fail("info->type_stack != NULL && info->type_stack->fields != NULL",\n                "../../binutils/wrstabs.c",0x632,"stab_class_baseclass")" identifier (argument_list "("info->type_stack != NULL && info->type_stack->fields != NULL",\n                "../../binutils/wrstabs.c",0x632,"stab_class_baseclass")" ( (string_literal ""info->type_stack != NULL && info->type_stack->fields != NULL"" " string_content ") , (string_literal ""../../binutils/wrstabs.c"" " string_content ") , number_literal , (string_literal ""stab_class_baseclass"" " string_content ") ))) ;) })))
(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) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (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 )))) ;) (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 (pointer_expression * IDENT) = (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) + (char_literal ' character '))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' character ')) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' character ')) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (char_literal ' character ')) ;) }))))) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , (string_literal " string_content ") , IDENT , 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) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) || (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) }) while (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ IDENT ]) != LIT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (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 ;) })) (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })))
(function_definition "undefined4 FUN_0002a050(int param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5)\n\n{\n  int iVar1;\n  int *piVar2;\n  char *__s;\n  size_t sVar3;\n  char *pcVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar1 = *(int *)(*(int *)(param_1 + 0x38) + 0x10);\n  __s = (char *)FUN_00029a00();\n  sVar3 = strlen(__s);\n  pcVar4 = (char *)xmalloc(sVar3 + 0x19);\n  *pcVar4 = (param_4 != 0) + '0';\n  if (param_5 == 1) {\n    pcVar4[1] = '1';\n  }\n  else if (param_5 == 0) {\n    pcVar4[1] = '2';\n  }\n  else {\n    if (param_5 != 2) {\n                    \n      abort();\n    }\n    pcVar4[1] = '0';\n  }\n  sprintf(pcVar4 + 2,"%ld,%s;",param_2,__s);\n  free(__s);\n  iVar6 = *(int *)(param_1 + 0x38);\n  if ((iVar6 != 0) && (*(int *)(iVar6 + 0x14) != 0)) {\n    piVar2 = *(int **)(iVar6 + 0x18);\n    if ((piVar2 == (int *)0x0) || (*piVar2 == 0)) {\n      iVar7 = 4;\n      iVar8 = 0;\n      iVar6 = 8;\n    }\n    else {\n      iVar7 = 0;\n      do {\n        iVar6 = iVar7;\n        iVar7 = iVar6 + 1;\n        iVar8 = iVar7 * 4;\n      } while (piVar2[iVar7] != 0);\n      iVar6 = iVar6 * 4;\n      iVar7 = iVar6 + 8;\n      iVar6 = iVar6 + 0xc;\n    }\n    iVar5 = xrealloc(piVar2,iVar6);\n    *(char **)(iVar5 + iVar8) = pcVar4;\n    *(undefined4 *)(iVar5 + iVar7) = 0;\n    iVar6 = *(int *)(param_1 + 0x38);\n    *(int *)(iVar6 + 0x18) = iVar5;\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar6 + 0x10) = 1;\n    }\n    return 1;\n  }\n                    \n  __assert_fail("info->type_stack != NULL && info->type_stack->fields != NULL",\n                "../../binutils/wrstabs.c",0x632,"stab_class_baseclass");\n}" (type_identifier "undefined4") (function_declarator "FUN_0002a050(int param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5)" (identifier "FUN_0002a050") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,int param_4,int param_5)" (( "(") (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 "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) () ")"))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  char *__s;\n  size_t sVar3;\n  char *pcVar4;\n  int iVar5;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  \n  iVar1 = *(int *)(*(int *)(param_1 + 0x38) + 0x10);\n  __s = (char *)FUN_00029a00();\n  sVar3 = strlen(__s);\n  pcVar4 = (char *)xmalloc(sVar3 + 0x19);\n  *pcVar4 = (param_4 != 0) + '0';\n  if (param_5 == 1) {\n    pcVar4[1] = '1';\n  }\n  else if (param_5 == 0) {\n    pcVar4[1] = '2';\n  }\n  else {\n    if (param_5 != 2) {\n                    \n      abort();\n    }\n    pcVar4[1] = '0';\n  }\n  sprintf(pcVar4 + 2,"%ld,%s;",param_2,__s);\n  free(__s);\n  iVar6 = *(int *)(param_1 + 0x38);\n  if ((iVar6 != 0) && (*(int *)(iVar6 + 0x14) != 0)) {\n    piVar2 = *(int **)(iVar6 + 0x18);\n    if ((piVar2 == (int *)0x0) || (*piVar2 == 0)) {\n      iVar7 = 4;\n      iVar8 = 0;\n      iVar6 = 8;\n    }\n    else {\n      iVar7 = 0;\n      do {\n        iVar6 = iVar7;\n        iVar7 = iVar6 + 1;\n        iVar8 = iVar7 * 4;\n      } while (piVar2[iVar7] != 0);\n      iVar6 = iVar6 * 4;\n      iVar7 = iVar6 + 8;\n      iVar6 = iVar6 + 0xc;\n    }\n    iVar5 = xrealloc(piVar2,iVar6);\n    *(char **)(iVar5 + iVar8) = pcVar4;\n    *(undefined4 *)(iVar5 + iVar7) = 0;\n    iVar6 = *(int *)(param_1 + 0x38);\n    *(int *)(iVar6 + 0x18) = iVar5;\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar6 + 0x10) = 1;\n    }\n    return 1;\n  }\n                    \n  __assert_fail("info->type_stack != NULL && info->type_stack->fields != NULL",\n                "../../binutils/wrstabs.c",0x632,"stab_class_baseclass");\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "char *__s;" (primitive_type "char") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "size_t sVar3;" (primitive_type "size_t") (identifier "sVar3") (; ";")) (declaration "char *pcVar4;" (primitive_type "char") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (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 "__s = (char *)FUN_00029a00();" (assignment_expression "__s = (char *)FUN_00029a00()" (identifier "__s") (= "=") (cast_expression "(char *)FUN_00029a00()" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00029a00()" (identifier "FUN_00029a00") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "sVar3 = strlen(__s);" (assignment_expression "sVar3 = strlen(__s)" (identifier "sVar3") (= "=") (call_expression "strlen(__s)" (identifier "strlen") (argument_list "(__s)" (( "(") (identifier "__s") () ")")))) (; ";")) (expression_statement "pcVar4 = (char *)xmalloc(sVar3 + 0x19);" (assignment_expression "pcVar4 = (char *)xmalloc(sVar3 + 0x19)" (identifier "pcVar4") (= "=") (cast_expression "(char *)xmalloc(sVar3 + 0x19)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(sVar3 + 0x19)" (identifier "xmalloc") (argument_list "(sVar3 + 0x19)" (( "(") (binary_expression "sVar3 + 0x19" (identifier "sVar3") (+ "+") (number_literal "0x19")) () ")"))))) (; ";")) (expression_statement "*pcVar4 = (param_4 != 0) + '0';" (assignment_expression "*pcVar4 = (param_4 != 0) + '0'" (pointer_expression "*pcVar4" (* "*") (identifier "pcVar4")) (= "=") (binary_expression "(param_4 != 0) + '0'" (parenthesized_expression "(param_4 != 0)" (( "(") (binary_expression "param_4 != 0" (identifier "param_4") (!= "!=") (number_literal "0")) () ")")) (+ "+") (char_literal "'0'" (' "'") (character "0") (' "'")))) (; ";")) (if_statement "if (param_5 == 1) {\n    pcVar4[1] = '1';\n  }\n  else if (param_5 == 0) {\n    pcVar4[1] = '2';\n  }\n  else {\n    if (param_5 != 2) {\n                    \n      abort();\n    }\n    pcVar4[1] = '0';\n  }" (if "if") (parenthesized_expression "(param_5 == 1)" (( "(") (binary_expression "param_5 == 1" (identifier "param_5") (== "==") (number_literal "1")) () ")")) (compound_statement "{\n    pcVar4[1] = '1';\n  }" ({ "{") (expression_statement "pcVar4[1] = '1';" (assignment_expression "pcVar4[1] = '1'" (subscript_expression "pcVar4[1]" (identifier "pcVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (char_literal "'1'" (' "'") (character "1") (' "'"))) (; ";")) (} "}")) (else_clause "else if (param_5 == 0) {\n    pcVar4[1] = '2';\n  }\n  else {\n    if (param_5 != 2) {\n                    \n      abort();\n    }\n    pcVar4[1] = '0';\n  }" (else "else") (if_statement "if (param_5 == 0) {\n    pcVar4[1] = '2';\n  }\n  else {\n    if (param_5 != 2) {\n                    \n      abort();\n    }\n    pcVar4[1] = '0';\n  }" (if "if") (parenthesized_expression "(param_5 == 0)" (( "(") (binary_expression "param_5 == 0" (identifier "param_5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    pcVar4[1] = '2';\n  }" ({ "{") (expression_statement "pcVar4[1] = '2';" (assignment_expression "pcVar4[1] = '2'" (subscript_expression "pcVar4[1]" (identifier "pcVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (char_literal "'2'" (' "'") (character "2") (' "'"))) (; ";")) (} "}")) (else_clause "else {\n    if (param_5 != 2) {\n                    \n      abort();\n    }\n    pcVar4[1] = '0';\n  }" (else "else") (compound_statement "{\n    if (param_5 != 2) {\n                    \n      abort();\n    }\n    pcVar4[1] = '0';\n  }" ({ "{") (if_statement "if (param_5 != 2) {\n                    \n      abort();\n    }" (if "if") (parenthesized_expression "(param_5 != 2)" (( "(") (binary_expression "param_5 != 2" (identifier "param_5") (!= "!=") (number_literal "2")) () ")")) (compound_statement "{\n                    \n      abort();\n    }" ({ "{") (expression_statement "abort();" (call_expression "abort()" (identifier "abort") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "pcVar4[1] = '0';" (assignment_expression "pcVar4[1] = '0'" (subscript_expression "pcVar4[1]" (identifier "pcVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (char_literal "'0'" (' "'") (character "0") (' "'"))) (; ";")) (} "}")))))) (expression_statement "sprintf(pcVar4 + 2,"%ld,%s;",param_2,__s);" (call_expression "sprintf(pcVar4 + 2,"%ld,%s;",param_2,__s)" (identifier "sprintf") (argument_list "(pcVar4 + 2,"%ld,%s;",param_2,__s)" (( "(") (binary_expression "pcVar4 + 2" (identifier "pcVar4") (+ "+") (number_literal "2")) (, ",") (string_literal ""%ld,%s;"" (" """) (string_content "%ld,%s;") (" """)) (, ",") (identifier "param_2") (, ",") (identifier "__s") () ")"))) (; ";")) (expression_statement "free(__s);" (call_expression "free(__s)" (identifier "free") (argument_list "(__s)" (( "(") (identifier "__s") () ")"))) (; ";")) (expression_statement "iVar6 = *(int *)(param_1 + 0x38);" (assignment_expression "iVar6 = *(int *)(param_1 + 0x38)" (identifier "iVar6") (= "=") (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")) () ")"))))) (; ";")) (if_statement "if ((iVar6 != 0) && (*(int *)(iVar6 + 0x14) != 0)) {\n    piVar2 = *(int **)(iVar6 + 0x18);\n    if ((piVar2 == (int *)0x0) || (*piVar2 == 0)) {\n      iVar7 = 4;\n      iVar8 = 0;\n      iVar6 = 8;\n    }\n    else {\n      iVar7 = 0;\n      do {\n        iVar6 = iVar7;\n        iVar7 = iVar6 + 1;\n        iVar8 = iVar7 * 4;\n      } while (piVar2[iVar7] != 0);\n      iVar6 = iVar6 * 4;\n      iVar7 = iVar6 + 8;\n      iVar6 = iVar6 + 0xc;\n    }\n    iVar5 = xrealloc(piVar2,iVar6);\n    *(char **)(iVar5 + iVar8) = pcVar4;\n    *(undefined4 *)(iVar5 + iVar7) = 0;\n    iVar6 = *(int *)(param_1 + 0x38);\n    *(int *)(iVar6 + 0x18) = iVar5;\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar6 + 0x10) = 1;\n    }\n    return 1;\n  }" (if "if") (parenthesized_expression "((iVar6 != 0) && (*(int *)(iVar6 + 0x14) != 0))" (( "(") (binary_expression "(iVar6 != 0) && (*(int *)(iVar6 + 0x14) != 0)" (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(iVar6 + 0x14) != 0)" (( "(") (binary_expression "*(int *)(iVar6 + 0x14) != 0" (pointer_expression "*(int *)(iVar6 + 0x14)" (* "*") (cast_expression "(int *)(iVar6 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x14)" (( "(") (binary_expression "iVar6 + 0x14" (identifier "iVar6") (+ "+") (number_literal "0x14")) () ")")))) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    piVar2 = *(int **)(iVar6 + 0x18);\n    if ((piVar2 == (int *)0x0) || (*piVar2 == 0)) {\n      iVar7 = 4;\n      iVar8 = 0;\n      iVar6 = 8;\n    }\n    else {\n      iVar7 = 0;\n      do {\n        iVar6 = iVar7;\n        iVar7 = iVar6 + 1;\n        iVar8 = iVar7 * 4;\n      } while (piVar2[iVar7] != 0);\n      iVar6 = iVar6 * 4;\n      iVar7 = iVar6 + 8;\n      iVar6 = iVar6 + 0xc;\n    }\n    iVar5 = xrealloc(piVar2,iVar6);\n    *(char **)(iVar5 + iVar8) = pcVar4;\n    *(undefined4 *)(iVar5 + iVar7) = 0;\n    iVar6 = *(int *)(param_1 + 0x38);\n    *(int *)(iVar6 + 0x18) = iVar5;\n    if (iVar1 != 0) {\n      *(undefined4 *)(iVar6 + 0x10) = 1;\n    }\n    return 1;\n  }" ({ "{") (expression_statement "piVar2 = *(int **)(iVar6 + 0x18);" (assignment_expression "piVar2 = *(int **)(iVar6 + 0x18)" (identifier "piVar2") (= "=") (pointer_expression "*(int **)(iVar6 + 0x18)" (* "*") (cast_expression "(int **)(iVar6 + 0x18)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar6 + 0x18)" (( "(") (binary_expression "iVar6 + 0x18" (identifier "iVar6") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (if_statement "if ((piVar2 == (int *)0x0) || (*piVar2 == 0)) {\n      iVar7 = 4;\n      iVar8 = 0;\n      iVar6 = 8;\n    }\n    else {\n      iVar7 = 0;\n      do {\n        iVar6 = iVar7;\n        iVar7 = iVar6 + 1;\n        iVar8 = iVar7 * 4;\n      } while (piVar2[iVar7] != 0);\n      iVar6 = iVar6 * 4;\n      iVar7 = iVar6 + 8;\n      iVar6 = iVar6 + 0xc;\n    }" (if "if") (parenthesized_expression "((piVar2 == (int *)0x0) || (*piVar2 == 0))" (( "(") (binary_expression "(piVar2 == (int *)0x0) || (*piVar2 == 0)" (parenthesized_expression "(piVar2 == (int *)0x0)" (( "(") (binary_expression "piVar2 == (int *)0x0" (identifier "piVar2") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (|| "||") (parenthesized_expression "(*piVar2 == 0)" (( "(") (binary_expression "*piVar2 == 0" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      iVar7 = 4;\n      iVar8 = 0;\n      iVar6 = 8;\n    }" ({ "{") (expression_statement "iVar7 = 4;" (assignment_expression "iVar7 = 4" (identifier "iVar7") (= "=") (number_literal "4")) (; ";")) (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" (identifier "iVar8") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar6 = 8;" (assignment_expression "iVar6 = 8" (identifier "iVar6") (= "=") (number_literal "8")) (; ";")) (} "}")) (else_clause "else {\n      iVar7 = 0;\n      do {\n        iVar6 = iVar7;\n        iVar7 = iVar6 + 1;\n        iVar8 = iVar7 * 4;\n      } while (piVar2[iVar7] != 0);\n      iVar6 = iVar6 * 4;\n      iVar7 = iVar6 + 8;\n      iVar6 = iVar6 + 0xc;\n    }" (else "else") (compound_statement "{\n      iVar7 = 0;\n      do {\n        iVar6 = iVar7;\n        iVar7 = iVar6 + 1;\n        iVar8 = iVar7 * 4;\n      } while (piVar2[iVar7] != 0);\n      iVar6 = iVar6 * 4;\n      iVar7 = iVar6 + 8;\n      iVar6 = iVar6 + 0xc;\n    }" ({ "{") (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n        iVar6 = iVar7;\n        iVar7 = iVar6 + 1;\n        iVar8 = iVar7 * 4;\n      } while (piVar2[iVar7] != 0);" (do "do") (compound_statement "{\n        iVar6 = iVar7;\n        iVar7 = iVar6 + 1;\n        iVar8 = iVar7 * 4;\n      }" ({ "{") (expression_statement "iVar6 = iVar7;" (assignment_expression "iVar6 = iVar7" (identifier "iVar6") (= "=") (identifier "iVar7")) (; ";")) (expression_statement "iVar7 = iVar6 + 1;" (assignment_expression "iVar7 = iVar6 + 1" (identifier "iVar7") (= "=") (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar8 = iVar7 * 4;" (assignment_expression "iVar8 = iVar7 * 4" (identifier "iVar8") (= "=") (binary_expression "iVar7 * 4" (identifier "iVar7") (* "*") (number_literal "4"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar2[iVar7] != 0)" (( "(") (binary_expression "piVar2[iVar7] != 0" (subscript_expression "piVar2[iVar7]" (identifier "piVar2") ([ "[") (identifier "iVar7") (] "]")) (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "iVar6 = iVar6 * 4;" (assignment_expression "iVar6 = iVar6 * 4" (identifier "iVar6") (= "=") (binary_expression "iVar6 * 4" (identifier "iVar6") (* "*") (number_literal "4"))) (; ";")) (expression_statement "iVar7 = iVar6 + 8;" (assignment_expression "iVar7 = iVar6 + 8" (identifier "iVar7") (= "=") (binary_expression "iVar6 + 8" (identifier "iVar6") (+ "+") (number_literal "8"))) (; ";")) (expression_statement "iVar6 = iVar6 + 0xc;" (assignment_expression "iVar6 = iVar6 + 0xc" (identifier "iVar6") (= "=") (binary_expression "iVar6 + 0xc" (identifier "iVar6") (+ "+") (number_literal "0xc"))) (; ";")) (} "}")))) (expression_statement "iVar5 = xrealloc(piVar2,iVar6);" (assignment_expression "iVar5 = xrealloc(piVar2,iVar6)" (identifier "iVar5") (= "=") (call_expression "xrealloc(piVar2,iVar6)" (identifier "xrealloc") (argument_list "(piVar2,iVar6)" (( "(") (identifier "piVar2") (, ",") (identifier "iVar6") () ")")))) (; ";")) (expression_statement "*(char **)(iVar5 + iVar8) = pcVar4;" (assignment_expression "*(char **)(iVar5 + iVar8) = pcVar4" (pointer_expression "*(char **)(iVar5 + iVar8)" (* "*") (cast_expression "(char **)(iVar5 + iVar8)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar5 + iVar8)" (( "(") (binary_expression "iVar5 + iVar8" (identifier "iVar5") (+ "+") (identifier "iVar8")) () ")")))) (= "=") (identifier "pcVar4")) (; ";")) (expression_statement "*(undefined4 *)(iVar5 + iVar7) = 0;" (assignment_expression "*(undefined4 *)(iVar5 + iVar7) = 0" (pointer_expression "*(undefined4 *)(iVar5 + iVar7)" (* "*") (cast_expression "(undefined4 *)(iVar5 + iVar7)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + iVar7)" (( "(") (binary_expression "iVar5 + iVar7" (identifier "iVar5") (+ "+") (identifier "iVar7")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar6 = *(int *)(param_1 + 0x38);" (assignment_expression "iVar6 = *(int *)(param_1 + 0x38)" (identifier "iVar6") (= "=") (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 "*(int *)(iVar6 + 0x18) = iVar5;" (assignment_expression "*(int *)(iVar6 + 0x18) = iVar5" (pointer_expression "*(int *)(iVar6 + 0x18)" (* "*") (cast_expression "(int *)(iVar6 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x18)" (( "(") (binary_expression "iVar6 + 0x18" (identifier "iVar6") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (identifier "iVar5")) (; ";")) (if_statement "if (iVar1 != 0) {\n      *(undefined4 *)(iVar6 + 0x10) = 1;\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      *(undefined4 *)(iVar6 + 0x10) = 1;\n    }" ({ "{") (expression_statement "*(undefined4 *)(iVar6 + 0x10) = 1;" (assignment_expression "*(undefined4 *)(iVar6 + 0x10) = 1" (pointer_expression "*(undefined4 *)(iVar6 + 0x10)" (* "*") (cast_expression "(undefined4 *)(iVar6 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar6 + 0x10)" (( "(") (binary_expression "iVar6 + 0x10" (identifier "iVar6") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (number_literal "1")) (; ";")) (} "}"))) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}"))) (expression_statement "__assert_fail("info->type_stack != NULL && info->type_stack->fields != NULL",\n                "../../binutils/wrstabs.c",0x632,"stab_class_baseclass");" (call_expression "__assert_fail("info->type_stack != NULL && info->type_stack->fields != NULL",\n                "../../binutils/wrstabs.c",0x632,"stab_class_baseclass")" (identifier "__assert_fail") (argument_list "("info->type_stack != NULL && info->type_stack->fields != NULL",\n                "../../binutils/wrstabs.c",0x632,"stab_class_baseclass")" (( "(") (string_literal ""info->type_stack != NULL && info->type_stack->fields != NULL"" (" """) (string_content "info->type_stack != NULL && info->type_stack->fields != NULL") (" """)) (, ",") (string_literal ""../../binutils/wrstabs.c"" (" """) (string_content "../../binutils/wrstabs.c") (" """)) (, ",") (number_literal "0x632") (, ",") (string_literal ""stab_class_baseclass"" (" """) (string_content "stab_class_baseclass") (" """)) () ")"))) (; ";")) (} "}")))

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

type_1
function_1(void *p,type_2 bitpos,type_1 var_5,type_3 var_6)

{
  int var_20;
  int *var_15;
  char *__s;
  size_t var_4;
  char *var_12;
  int var_18;
  int var_14;
  int var_16;
  int var_19;
  
  var_20 = *(int *)(*(int *)((int)p + 0x38) + 0x10);
  __s = var_1((type_4 *)((int)p + 0x38));
  var_4 = var_2(__s);
  var_12 = (char *)var_3(var_4 + 0x19);
  *var_12 = (var_5 != 0) + '0';
  if (var_6 == var_7) {
    var_12[1] = '1';
  }
  else if (var_6 == var_8) {
    var_12[1] = '2';
  }
  else {
    if (var_6 != var_9) {
                    /* WARNING: Subroutine does not return */
      var_10();
    }
    var_12[1] = '0';
  }
  var_11(var_12 + 2,"%ld,%s;",(type_5)bitpos,__s);
  var_13(__s);
  var_14 = *(int *)((int)p + 0x38);
  if ((var_14 != 0) && (*(int *)(var_14 + 0x14) != 0)) {
    var_15 = *(int **)(var_14 + 0x18);
    if ((var_15 == (int *)0x0) || (*var_15 == 0)) {
      var_16 = 4;
      var_19 = 0;
      var_14 = 8;
    }
    else {
      var_16 = 0;
      do {
        var_14 = var_16;
        var_16 = var_14 + 1;
        var_19 = var_16 * 4;
      } while (var_15[var_16] != 0);
      var_14 = var_14 * 4;
      var_16 = var_14 + 8;
      var_14 = var_14 + 0xc;
    }
    var_18 = var_17(var_15,var_14);
    *(char **)(var_18 + var_19) = var_12;
    *(type_5 *)(var_18 + var_16) = 0;
    var_14 = *(int *)((int)p + 0x38);
    *(int *)(var_14 + 0x18) = var_18;
    if (var_20 != 0) {
      *(type_5 *)(var_14 + 0x10) = 1;
    }
    return 1;
  }
                    /* WARNING: Subroutine does not return */
  var_21("info->type_stack != NULL && info->type_stack->fields != NULL",
                "../../binutils/wrstabs.c",0x632,"stab_class_baseclass");
}


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

/* 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,int param_4,int param_5)

{
  int iVar1;
  int *piVar2;
  char *__s;
  size_t sVar3;
  char *pcVar4;
  int iVar5;
  int iVar6;
  int iVar7;
  int iVar8;
  
  iVar1 = *(int *)(*(int *)(param_1 + 0x38) + 0x10);
  __s = (char *)FUN_00029a00();
  sVar3 = strlen(__s);
  pcVar4 = (char *)xmalloc(sVar3 + 0x19);
  *pcVar4 = (param_4 != 0) + '0';
  if (param_5 == 1) {
    pcVar4[1] = '1';
  }
  else if (param_5 == 0) {
    pcVar4[1] = '2';
  }
  else {
    if (param_5 != 2) {
                    /* WARNING: Subroutine does not return */
      abort();
    }
    pcVar4[1] = '0';
  }
  sprintf(pcVar4 + 2,"%ld,%s;",param_2,__s);
  free(__s);
  iVar6 = *(int *)(param_1 + 0x38);
  if ((iVar6 != 0) && (*(int *)(iVar6 + 0x14) != 0)) {
    piVar2 = *(int **)(iVar6 + 0x18);
    if ((piVar2 == (int *)0x0) || (*piVar2 == 0)) {
      iVar7 = 4;
      iVar8 = 0;
      iVar6 = 8;
    }
    else {
      iVar7 = 0;
      do {
        iVar6 = iVar7;
        iVar7 = iVar6 + 1;
        iVar8 = iVar7 * 4;
      } while (piVar2[iVar7] != 0);
      iVar6 = iVar6 * 4;
      iVar7 = iVar6 + 8;
      iVar6 = iVar6 + 0xc;
    }
    iVar5 = xrealloc(piVar2,iVar6);
    *(char **)(iVar5 + iVar8) = pcVar4;
    *(undefined4 *)(iVar5 + iVar7) = 0;
    iVar6 = *(int *)(param_1 + 0x38);
    *(int *)(iVar6 + 0x18) = iVar5;
    if (iVar1 != 0) {
      *(undefined4 *)(iVar6 + 0x10) = 1;
    }
    return 1;
  }
                    /* WARNING: Subroutine does not return */
  __assert_fail("info->type_stack != NULL && info->type_stack->fields != NULL",
                "../../binutils/wrstabs.c",0x632,"stab_class_baseclass");
}

