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

bfd_boolean __regparm3
stab_modify_type(stab_write_handle *info,int mod,uint size,long **cache,size_t *cache_alloc)

{
  stab_type_stack **info_00;
  stab_type_stack *psVar1;
  uint uVar2;
  size_t sVar3;
  int iVar4;
  uint uVar5;
  long *plVar6;
  char *pcVar7;
  size_t sVar8;
  char *pcVar9;
  bfd_boolean bVar10;
  uint uVar11;
  
  psVar1 = info->type_stack;
  if (psVar1 == (stab_type_stack *)0x0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("info->type_stack != NULL","../../binutils/wrstabs.c",0x355,"stab_modify_type");
  }
  uVar2 = psVar1->index;
  info_00 = &info->type_stack;
  if (((int)uVar2 < 1) || (cache == (long **)0x0)) {
    bVar10 = psVar1->definition;
    pcVar7 = stab_pop_type((stab_write_handle *)info_00);
    sVar8 = strlen(pcVar7);
    pcVar9 = (char *)xmalloc(sVar8 + 2);
    sprintf(pcVar9,"%c%s",mod,pcVar7);
    free(pcVar7);
    bVar10 = stab_push_string((stab_write_handle *)info_00,pcVar9,0,bVar10,size);
    if (bVar10 != 0) {
      free(pcVar9);
      return 1;
    }
  }
  else {
    uVar11 = *cache_alloc;
    if (uVar11 <= uVar2) {
      if ((uVar11 == 0) && (uVar11 = 10, uVar2 < 10)) {
        iVar4 = 0x28;
        uVar11 = 10;
      }
      else {
        do {
          uVar5 = uVar11;
          uVar11 = uVar5 * 2;
        } while (uVar11 <= uVar2);
        iVar4 = uVar5 << 3;
      }
      plVar6 = (long *)xrealloc(*cache,iVar4);
      sVar3 = *cache_alloc;
      *cache = plVar6;
      memset(plVar6 + sVar3,0,(uVar11 - sVar3) * 4);
      *cache_alloc = uVar11;
    }
    iVar4 = (*cache)[uVar2];
    if ((iVar4 != 0) && (info->type_stack->definition == 0)) {
      pcVar7 = stab_pop_type((stab_write_handle *)info_00);
      free(pcVar7);
      bVar10 = stab_push_defined_type(info,iVar4,size);
      return (uint)(bVar10 != 0);
    }
    iVar4 = info->type_index;
    info->type_index = iVar4 + 1;
    pcVar7 = stab_pop_type((stab_write_handle *)info_00);
    sVar8 = strlen(pcVar7);
    pcVar9 = (char *)xmalloc(sVar8 + 0x14);
    sprintf(pcVar9,"%ld=%c%s",iVar4,mod,pcVar7);
    free(pcVar7);
    (*cache)[uVar2] = iVar4;
    bVar10 = stab_push_string((stab_write_handle *)info_00,pcVar9,iVar4,1,size);
    if (bVar10 != 0) {
      free(pcVar9);
      return 1;
    }
  }
  return 0;
}



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

bool __regparm3
FUN_00029b20(int param_1,undefined4 param_2,undefined4 param_3,int *param_4,uint *param_5)

{
  uint uVar1;
  undefined4 uVar2;
  int iVar3;
  uint uVar4;
  char *pcVar5;
  size_t sVar6;
  char *pcVar7;
  void *__ptr;
  uint uVar8;
  
  iVar3 = *(int *)(param_1 + 0x38);
  if (iVar3 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("info->type_stack != NULL","../../binutils/wrstabs.c",0x355,"stab_modify_type");
  }
  uVar1 = *(uint *)(iVar3 + 8);
  if (((int)uVar1 < 1) || (param_4 == (int *)0x0)) {
    uVar2 = *(undefined4 *)(iVar3 + 0x10);
    pcVar5 = (char *)FUN_00028700();
    sVar6 = strlen(pcVar5);
    pcVar7 = (char *)xmalloc(sVar6 + 2);
    sprintf(pcVar7,"%c%s",param_2,pcVar5);
    free(pcVar5);
    iVar3 = FUN_00029600(uVar2,param_3);
    if (iVar3 != 0) {
      free(pcVar7);
      return true;
    }
  }
  else {
    uVar8 = *param_5;
    if (uVar8 <= uVar1) {
      if ((uVar8 == 0) && (uVar8 = 10, uVar1 < 10)) {
        iVar3 = 0x28;
        uVar8 = 10;
      }
      else {
        do {
          uVar4 = uVar8;
          uVar8 = uVar4 * 2;
        } while (uVar8 <= uVar1);
        iVar3 = uVar4 << 3;
      }
      iVar3 = xrealloc(*param_4,iVar3);
      uVar4 = *param_5;
      *param_4 = iVar3;
      memset((void *)(iVar3 + uVar4 * 4),0,(uVar8 - uVar4) * 4);
      *param_5 = uVar8;
    }
    if ((*(int *)(*param_4 + uVar1 * 4) != 0) && (*(int *)(*(int *)(param_1 + 0x38) + 0x10) == 0)) {
      __ptr = (void *)FUN_00028700();
      free(__ptr);
      iVar3 = FUN_00029680();
      return iVar3 != 0;
    }
    iVar3 = *(int *)(param_1 + 0x3c);
    *(int *)(param_1 + 0x3c) = iVar3 + 1;
    pcVar5 = (char *)FUN_00028700();
    sVar6 = strlen(pcVar5);
    pcVar7 = (char *)xmalloc(sVar6 + 0x14);
    sprintf(pcVar7,"%ld=%c%s",iVar3,param_2,pcVar5);
    free(pcVar5);
    *(int *)(*param_4 + uVar1 * 4) = iVar3;
    iVar3 = FUN_00029600(1,param_3);
    if (iVar3 != 0) {
      free(pcVar7);
      return true;
    }
  }
  return false;
}


PUSH EBP
MOV EBP,EAX
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x000165d0
ADD EBX,0x154d5
SUB ESP,0x1c
MOV EAX,dword ptr [EAX + 0x38]
MOV dword ptr [ESP + 0xc],EDX
MOV dword ptr [ESP + 0x8],ECX
TEST EAX,EAX
JZ 0x00029d42
MOV EDI,dword ptr [EAX + 0x8]
LEA ECX,[EBP + 0x38]
MOV dword ptr [ESP + 0x4],ECX
TEST EDI,EDI
JLE 0x00029c90
MOV EDX,dword ptr [ESP + 0x30]
TEST EDX,EDX
JZ 0x00029c90
MOV EAX,dword ptr [ESP + 0x34]
MOV EAX,dword ptr [EAX]
CMP EAX,EDI
JA 0x00029bd6
TEST EAX,EAX
JNZ 0x00029b92
MOV EAX,0xa
CMP EDI,0x9
JA 0x00029b92
MOV EAX,0x28
MOV ESI,0xa
JMP 0x00029b9c
MOV EAX,ESI
LEA ESI,[EAX + EAX*0x1]
CMP EDI,ESI
JNC 0x00029b90
SHL EAX,0x3
SUB ESP,0x8
PUSH EAX
MOV EAX,dword ptr [ESP + 0x3c]
PUSH dword ptr [EAX]
CALL 0x00013230
MOV ECX,dword ptr [ESP + 0x44]
MOV EDX,dword ptr [ESP + 0x40]
ADD ESP,0xc
MOV ECX,dword ptr [ECX]
MOV dword ptr [EDX],EAX
MOV EDX,ESI
SUB EDX,ECX
LEA EAX,[EAX + ECX*0x4]
SHL EDX,0x2
PUSH EDX
PUSH 0x0
PUSH EAX
CALL 0x000135d0
MOV EAX,dword ptr [ESP + 0x44]
ADD ESP,0x10
MOV dword ptr [EAX],ESI
MOV EAX,dword ptr [ESP + 0x30]
MOV EAX,dword ptr [EAX]
MOV ESI,dword ptr [EAX + EDI*0x4]
TEST ESI,ESI
JZ 0x00029bf1
MOV EAX,dword ptr [EBP + 0x38]
MOV ECX,dword ptr [EAX + 0x10]
TEST ECX,ECX
JZ 0x00029d10
MOV ESI,dword ptr [EBP + 0x3c]
LEA EAX,[ESI + 0x1]
MOV dword ptr [EBP + 0x3c],EAX
MOV EAX,dword ptr [ESP + 0x4]
CALL 0x00028700
SUB ESP,0xc
PUSH EAX
MOV EBP,EAX
CALL 0x000134e0
ADD EAX,0x14
MOV dword ptr [ESP],EAX
CALL 0x000132e0
MOV dword ptr [ESP],EBP
MOV EDX,EAX
LEA EAX,[EBX + 0xffff4f02]
PUSH dword ptr [ESP + 0x1c]
PUSH ESI
PUSH EAX
MOV dword ptr [ESP + 0x28],EDX
PUSH EDX
CALL 0x000137a0
ADD ESP,0x14
PUSH EBP
CALL 0x00013948
MOV ECX,dword ptr [ESP + 0x40]
MOV EAX,dword ptr [ECX]
MOV ECX,ESI
MOV dword ptr [EAX + EDI*0x4],ESI
POP EAX
POP EDX
PUSH dword ptr [ESP + 0x10]
PUSH 0x1
MOV EDI,dword ptr [ESP + 0x1c]
MOV EAX,dword ptr [ESP + 0x14]
MOV EDX,EDI
CALL 0x00029600
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x00029c70
ADD ESP,0x1c
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB ESP,0xc
PUSH EDI
CALL 0x00013948
ADD ESP,0x10
MOV EAX,0x1
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EBP,dword ptr [EAX + 0x10]
MOV EAX,dword ptr [ESP + 0x4]
CALL 0x00028700
SUB ESP,0xc
PUSH EAX
MOV EDI,EAX
CALL 0x000134e0
ADD EAX,0x2
MOV dword ptr [ESP],EAX
CALL 0x000132e0
PUSH EDI
MOV ESI,EAX
LEA EAX,[EBX + 0xffff4e4d]
PUSH dword ptr [ESP + 0x20]
PUSH EAX
PUSH ESI
CALL 0x000137a0
ADD ESP,0x14
PUSH EDI
CALL 0x00013948
POP EDI
POP EAX
PUSH dword ptr [ESP + 0x10]
PUSH EBP
XOR ECX,ECX
MOV EDX,ESI
MOV EAX,dword ptr [ESP + 0x14]
CALL 0x00029600
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00029c66
SUB ESP,0xc
PUSH ESI
CALL 0x00013948
ADD ESP,0x10
MOV EAX,0x1
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0x4]
CALL 0x00028700
SUB ESP,0xc
PUSH EAX
CALL 0x00013948
MOV ECX,dword ptr [ESP + 0x18]
MOV EDX,ESI
MOV EAX,EBP
CALL 0x00029680
ADD ESP,0x10
TEST EAX,EAX
SETNZ AL
ADD ESP,0x1c
POP EBX
MOVZX EAX,AL
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[EBX + 0xffff5168]
PUSH EAX
LEA EAX,[EBX + 0xffff4da8]
PUSH 0x355
PUSH EAX
LEA EAX,[EBX + 0xffff4ee9]
PUSH EAX
CALL 0x00013920
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbool __regparm3\nFUN_00029b20(int param_1,undefined4 param_2,undefined4 param_3,int *param_4,uint *param_5)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  uint uVar4;\n  char *pcVar5;\n  size_t sVar6;\n  char *pcVar7;\n  void *__ptr;\n  uint uVar8;\n  \n  iVar3 = *(int *)(param_1 + 0x38);\n  if (iVar3 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("info->type_stack != NULL","../../binutils/wrstabs.c",0x355,"stab_modify_type");\n  }\n  uVar1 = *(uint *)(iVar3 + 8);\n  if (((int)uVar1 < 1) || (param_4 == (int *)0x0)) {\n    uVar2 = *(undefined4 *)(iVar3 + 0x10);\n    pcVar5 = (char *)FUN_00028700();\n    sVar6 = strlen(pcVar5);\n    pcVar7 = (char *)xmalloc(sVar6 + 2);\n    sprintf(pcVar7,"%c%s",param_2,pcVar5);\n    free(pcVar5);\n    iVar3 = FUN_00029600(uVar2,param_3);\n    if (iVar3 != 0) {\n      free(pcVar7);\n      return true;\n    }\n  }\n  else {\n    uVar8 = *param_5;\n    if (uVar8 <= uVar1) {\n      if ((uVar8 == 0) && (uVar8 = 10, uVar1 < 10)) {\n        iVar3 = 0x28;\n        uVar8 = 10;\n      }\n      else {\n        do {\n          uVar4 = uVar8;\n          uVar8 = uVar4 * 2;\n        } while (uVar8 <= uVar1);\n        iVar3 = uVar4 << 3;\n      }\n      iVar3 = xrealloc(*param_4,iVar3);\n      uVar4 = *param_5;\n      *param_4 = iVar3;\n      memset((void *)(iVar3 + uVar4 * 4),0,(uVar8 - uVar4) * 4);\n      *param_5 = uVar8;\n    }\n    if ((*(int *)(*param_4 + uVar1 * 4) != 0) && (*(int *)(*(int *)(param_1 + 0x38) + 0x10) == 0)) {\n      __ptr = (void *)FUN_00028700();\n      free(__ptr);\n      iVar3 = FUN_00029680();\n      return iVar3 != 0;\n    }\n    iVar3 = *(int *)(param_1 + 0x3c);\n    *(int *)(param_1 + 0x3c) = iVar3 + 1;\n    pcVar5 = (char *)FUN_00028700();\n    sVar6 = strlen(pcVar5);\n    pcVar7 = (char *)xmalloc(sVar6 + 0x14);\n    sprintf(pcVar7,"%ld=%c%s",iVar3,param_2,pcVar5);\n    free(pcVar5);\n    *(int *)(*param_4 + uVar1 * 4) = iVar3;\n    iVar3 = FUN_00029600(1,param_3);\n    if (iVar3 != 0) {\n      free(pcVar7);\n      return true;\n    }\n  }\n  return false;\n}\n\n" comment (function_definition "bool __regparm3\nFUN_00029b20(int param_1,undefined4 param_2,undefined4 param_3,int *param_4,uint *param_5)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  uint uVar4;\n  char *pcVar5;\n  size_t sVar6;\n  char *pcVar7;\n  void *__ptr;\n  uint uVar8;\n  \n  iVar3 = *(int *)(param_1 + 0x38);\n  if (iVar3 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("info->type_stack != NULL","../../binutils/wrstabs.c",0x355,"stab_modify_type");\n  }\n  uVar1 = *(uint *)(iVar3 + 8);\n  if (((int)uVar1 < 1) || (param_4 == (int *)0x0)) {\n    uVar2 = *(undefined4 *)(iVar3 + 0x10);\n    pcVar5 = (char *)FUN_00028700();\n    sVar6 = strlen(pcVar5);\n    pcVar7 = (char *)xmalloc(sVar6 + 2);\n    sprintf(pcVar7,"%c%s",param_2,pcVar5);\n    free(pcVar5);\n    iVar3 = FUN_00029600(uVar2,param_3);\n    if (iVar3 != 0) {\n      free(pcVar7);\n      return true;\n    }\n  }\n  else {\n    uVar8 = *param_5;\n    if (uVar8 <= uVar1) {\n      if ((uVar8 == 0) && (uVar8 = 10, uVar1 < 10)) {\n        iVar3 = 0x28;\n        uVar8 = 10;\n      }\n      else {\n        do {\n          uVar4 = uVar8;\n          uVar8 = uVar4 * 2;\n        } while (uVar8 <= uVar1);\n        iVar3 = uVar4 << 3;\n      }\n      iVar3 = xrealloc(*param_4,iVar3);\n      uVar4 = *param_5;\n      *param_4 = iVar3;\n      memset((void *)(iVar3 + uVar4 * 4),0,(uVar8 - uVar4) * 4);\n      *param_5 = uVar8;\n    }\n    if ((*(int *)(*param_4 + uVar1 * 4) != 0) && (*(int *)(*(int *)(param_1 + 0x38) + 0x10) == 0)) {\n      __ptr = (void *)FUN_00028700();\n      free(__ptr);\n      iVar3 = FUN_00029680();\n      return iVar3 != 0;\n    }\n    iVar3 = *(int *)(param_1 + 0x3c);\n    *(int *)(param_1 + 0x3c) = iVar3 + 1;\n    pcVar5 = (char *)FUN_00028700();\n    sVar6 = strlen(pcVar5);\n    pcVar7 = (char *)xmalloc(sVar6 + 0x14);\n    sprintf(pcVar7,"%ld=%c%s",iVar3,param_2,pcVar5);\n    free(pcVar5);\n    *(int *)(*param_4 + uVar1 * 4) = iVar3;\n    iVar3 = FUN_00029600(1,param_3);\n    if (iVar3 != 0) {\n      free(pcVar7);\n      return true;\n    }\n  }\n  return false;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00029b20(int param_1,undefined4 param_2,undefined4 param_3,int *param_4,uint *param_5)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,int *param_4,uint *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 (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "uint *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  uint uVar4;\n  char *pcVar5;\n  size_t sVar6;\n  char *pcVar7;\n  void *__ptr;\n  uint uVar8;\n  \n  iVar3 = *(int *)(param_1 + 0x38);\n  if (iVar3 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("info->type_stack != NULL","../../binutils/wrstabs.c",0x355,"stab_modify_type");\n  }\n  uVar1 = *(uint *)(iVar3 + 8);\n  if (((int)uVar1 < 1) || (param_4 == (int *)0x0)) {\n    uVar2 = *(undefined4 *)(iVar3 + 0x10);\n    pcVar5 = (char *)FUN_00028700();\n    sVar6 = strlen(pcVar5);\n    pcVar7 = (char *)xmalloc(sVar6 + 2);\n    sprintf(pcVar7,"%c%s",param_2,pcVar5);\n    free(pcVar5);\n    iVar3 = FUN_00029600(uVar2,param_3);\n    if (iVar3 != 0) {\n      free(pcVar7);\n      return true;\n    }\n  }\n  else {\n    uVar8 = *param_5;\n    if (uVar8 <= uVar1) {\n      if ((uVar8 == 0) && (uVar8 = 10, uVar1 < 10)) {\n        iVar3 = 0x28;\n        uVar8 = 10;\n      }\n      else {\n        do {\n          uVar4 = uVar8;\n          uVar8 = uVar4 * 2;\n        } while (uVar8 <= uVar1);\n        iVar3 = uVar4 << 3;\n      }\n      iVar3 = xrealloc(*param_4,iVar3);\n      uVar4 = *param_5;\n      *param_4 = iVar3;\n      memset((void *)(iVar3 + uVar4 * 4),0,(uVar8 - uVar4) * 4);\n      *param_5 = uVar8;\n    }\n    if ((*(int *)(*param_4 + uVar1 * 4) != 0) && (*(int *)(*(int *)(param_1 + 0x38) + 0x10) == 0)) {\n      __ptr = (void *)FUN_00028700();\n      free(__ptr);\n      iVar3 = FUN_00029680();\n      return iVar3 != 0;\n    }\n    iVar3 = *(int *)(param_1 + 0x3c);\n    *(int *)(param_1 + 0x3c) = iVar3 + 1;\n    pcVar5 = (char *)FUN_00028700();\n    sVar6 = strlen(pcVar5);\n    pcVar7 = (char *)xmalloc(sVar6 + 0x14);\n    sprintf(pcVar7,"%ld=%c%s",iVar3,param_2,pcVar5);\n    free(pcVar5);\n    *(int *)(*param_4 + uVar1 * 4) = iVar3;\n    iVar3 = FUN_00029600(1,param_3);\n    if (iVar3 != 0) {\n      free(pcVar7);\n      return true;\n    }\n  }\n  return false;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "uint uVar8;" type_identifier identifier ;) (expression_statement "iVar3 = *(int *)(param_1 + 0x38);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x38)" identifier = (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) ))))) ;) (if_statement "if (iVar3 == 0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("info->type_stack != NULL","../../binutils/wrstabs.c",0x355,"stab_modify_type");\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("info->type_stack != NULL","../../binutils/wrstabs.c",0x355,"stab_modify_type");\n  }" { comment (expression_statement "__assert_fail("info->type_stack != NULL","../../binutils/wrstabs.c",0x355,"stab_modify_type");" (call_expression "__assert_fail("info->type_stack != NULL","../../binutils/wrstabs.c",0x355,"stab_modify_type")" identifier (argument_list "("info->type_stack != NULL","../../binutils/wrstabs.c",0x355,"stab_modify_type")" ( (string_literal ""info->type_stack != NULL"" " string_content ") , (string_literal ""../../binutils/wrstabs.c"" " string_content ") , number_literal , (string_literal ""stab_modify_type"" " string_content ") ))) ;) })) (expression_statement "uVar1 = *(uint *)(iVar3 + 8);" (assignment_expression "uVar1 = *(uint *)(iVar3 + 8)" identifier = (pointer_expression "*(uint *)(iVar3 + 8)" * (cast_expression "(uint *)(iVar3 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) ))))) ;) (if_statement "if (((int)uVar1 < 1) || (param_4 == (int *)0x0)) {\n    uVar2 = *(undefined4 *)(iVar3 + 0x10);\n    pcVar5 = (char *)FUN_00028700();\n    sVar6 = strlen(pcVar5);\n    pcVar7 = (char *)xmalloc(sVar6 + 2);\n    sprintf(pcVar7,"%c%s",param_2,pcVar5);\n    free(pcVar5);\n    iVar3 = FUN_00029600(uVar2,param_3);\n    if (iVar3 != 0) {\n      free(pcVar7);\n      return true;\n    }\n  }\n  else {\n    uVar8 = *param_5;\n    if (uVar8 <= uVar1) {\n      if ((uVar8 == 0) && (uVar8 = 10, uVar1 < 10)) {\n        iVar3 = 0x28;\n        uVar8 = 10;\n      }\n      else {\n        do {\n          uVar4 = uVar8;\n          uVar8 = uVar4 * 2;\n        } while (uVar8 <= uVar1);\n        iVar3 = uVar4 << 3;\n      }\n      iVar3 = xrealloc(*param_4,iVar3);\n      uVar4 = *param_5;\n      *param_4 = iVar3;\n      memset((void *)(iVar3 + uVar4 * 4),0,(uVar8 - uVar4) * 4);\n      *param_5 = uVar8;\n    }\n    if ((*(int *)(*param_4 + uVar1 * 4) != 0) && (*(int *)(*(int *)(param_1 + 0x38) + 0x10) == 0)) {\n      __ptr = (void *)FUN_00028700();\n      free(__ptr);\n      iVar3 = FUN_00029680();\n      return iVar3 != 0;\n    }\n    iVar3 = *(int *)(param_1 + 0x3c);\n    *(int *)(param_1 + 0x3c) = iVar3 + 1;\n    pcVar5 = (char *)FUN_00028700();\n    sVar6 = strlen(pcVar5);\n    pcVar7 = (char *)xmalloc(sVar6 + 0x14);\n    sprintf(pcVar7,"%ld=%c%s",iVar3,param_2,pcVar5);\n    free(pcVar5);\n    *(int *)(*param_4 + uVar1 * 4) = iVar3;\n    iVar3 = FUN_00029600(1,param_3);\n    if (iVar3 != 0) {\n      free(pcVar7);\n      return true;\n    }\n  }" if (parenthesized_expression "(((int)uVar1 < 1) || (param_4 == (int *)0x0))" ( (binary_expression "((int)uVar1 < 1) || (param_4 == (int *)0x0)" (parenthesized_expression "((int)uVar1 < 1)" ( (binary_expression "(int)uVar1 < 1" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) || (parenthesized_expression "(param_4 == (int *)0x0)" ( (binary_expression "param_4 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    uVar2 = *(undefined4 *)(iVar3 + 0x10);\n    pcVar5 = (char *)FUN_00028700();\n    sVar6 = strlen(pcVar5);\n    pcVar7 = (char *)xmalloc(sVar6 + 2);\n    sprintf(pcVar7,"%c%s",param_2,pcVar5);\n    free(pcVar5);\n    iVar3 = FUN_00029600(uVar2,param_3);\n    if (iVar3 != 0) {\n      free(pcVar7);\n      return true;\n    }\n  }" { (expression_statement "uVar2 = *(undefined4 *)(iVar3 + 0x10);" (assignment_expression "uVar2 = *(undefined4 *)(iVar3 + 0x10)" identifier = (pointer_expression "*(undefined4 *)(iVar3 + 0x10)" * (cast_expression "(undefined4 *)(iVar3 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "pcVar5 = (char *)FUN_00028700();" (assignment_expression "pcVar5 = (char *)FUN_00028700()" identifier = (cast_expression "(char *)FUN_00028700()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00028700()" identifier (argument_list "()" ( ))))) ;) (expression_statement "sVar6 = strlen(pcVar5);" (assignment_expression "sVar6 = strlen(pcVar5)" identifier = (call_expression "strlen(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier )))) ;) (expression_statement "pcVar7 = (char *)xmalloc(sVar6 + 2);" (assignment_expression "pcVar7 = (char *)xmalloc(sVar6 + 2)" identifier = (cast_expression "(char *)xmalloc(sVar6 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar6 + 2)" identifier (argument_list "(sVar6 + 2)" ( (binary_expression "sVar6 + 2" identifier + number_literal) ))))) ;) (expression_statement "sprintf(pcVar7,"%c%s",param_2,pcVar5);" (call_expression "sprintf(pcVar7,"%c%s",param_2,pcVar5)" identifier (argument_list "(pcVar7,"%c%s",param_2,pcVar5)" ( identifier , (string_literal ""%c%s"" " string_content ") , identifier , identifier ))) ;) (expression_statement "free(pcVar5);" (call_expression "free(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier ))) ;) (expression_statement "iVar3 = FUN_00029600(uVar2,param_3);" (assignment_expression "iVar3 = FUN_00029600(uVar2,param_3)" identifier = (call_expression "FUN_00029600(uVar2,param_3)" identifier (argument_list "(uVar2,param_3)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 != 0) {\n      free(pcVar7);\n      return true;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      free(pcVar7);\n      return true;\n    }" { (expression_statement "free(pcVar7);" (call_expression "free(pcVar7)" identifier (argument_list "(pcVar7)" ( identifier ))) ;) (return_statement "return true;" return true ;) })) }) (else_clause "else {\n    uVar8 = *param_5;\n    if (uVar8 <= uVar1) {\n      if ((uVar8 == 0) && (uVar8 = 10, uVar1 < 10)) {\n        iVar3 = 0x28;\n        uVar8 = 10;\n      }\n      else {\n        do {\n          uVar4 = uVar8;\n          uVar8 = uVar4 * 2;\n        } while (uVar8 <= uVar1);\n        iVar3 = uVar4 << 3;\n      }\n      iVar3 = xrealloc(*param_4,iVar3);\n      uVar4 = *param_5;\n      *param_4 = iVar3;\n      memset((void *)(iVar3 + uVar4 * 4),0,(uVar8 - uVar4) * 4);\n      *param_5 = uVar8;\n    }\n    if ((*(int *)(*param_4 + uVar1 * 4) != 0) && (*(int *)(*(int *)(param_1 + 0x38) + 0x10) == 0)) {\n      __ptr = (void *)FUN_00028700();\n      free(__ptr);\n      iVar3 = FUN_00029680();\n      return iVar3 != 0;\n    }\n    iVar3 = *(int *)(param_1 + 0x3c);\n    *(int *)(param_1 + 0x3c) = iVar3 + 1;\n    pcVar5 = (char *)FUN_00028700();\n    sVar6 = strlen(pcVar5);\n    pcVar7 = (char *)xmalloc(sVar6 + 0x14);\n    sprintf(pcVar7,"%ld=%c%s",iVar3,param_2,pcVar5);\n    free(pcVar5);\n    *(int *)(*param_4 + uVar1 * 4) = iVar3;\n    iVar3 = FUN_00029600(1,param_3);\n    if (iVar3 != 0) {\n      free(pcVar7);\n      return true;\n    }\n  }" else (compound_statement "{\n    uVar8 = *param_5;\n    if (uVar8 <= uVar1) {\n      if ((uVar8 == 0) && (uVar8 = 10, uVar1 < 10)) {\n        iVar3 = 0x28;\n        uVar8 = 10;\n      }\n      else {\n        do {\n          uVar4 = uVar8;\n          uVar8 = uVar4 * 2;\n        } while (uVar8 <= uVar1);\n        iVar3 = uVar4 << 3;\n      }\n      iVar3 = xrealloc(*param_4,iVar3);\n      uVar4 = *param_5;\n      *param_4 = iVar3;\n      memset((void *)(iVar3 + uVar4 * 4),0,(uVar8 - uVar4) * 4);\n      *param_5 = uVar8;\n    }\n    if ((*(int *)(*param_4 + uVar1 * 4) != 0) && (*(int *)(*(int *)(param_1 + 0x38) + 0x10) == 0)) {\n      __ptr = (void *)FUN_00028700();\n      free(__ptr);\n      iVar3 = FUN_00029680();\n      return iVar3 != 0;\n    }\n    iVar3 = *(int *)(param_1 + 0x3c);\n    *(int *)(param_1 + 0x3c) = iVar3 + 1;\n    pcVar5 = (char *)FUN_00028700();\n    sVar6 = strlen(pcVar5);\n    pcVar7 = (char *)xmalloc(sVar6 + 0x14);\n    sprintf(pcVar7,"%ld=%c%s",iVar3,param_2,pcVar5);\n    free(pcVar5);\n    *(int *)(*param_4 + uVar1 * 4) = iVar3;\n    iVar3 = FUN_00029600(1,param_3);\n    if (iVar3 != 0) {\n      free(pcVar7);\n      return true;\n    }\n  }" { (expression_statement "uVar8 = *param_5;" (assignment_expression "uVar8 = *param_5" identifier = (pointer_expression "*param_5" * identifier)) ;) (if_statement "if (uVar8 <= uVar1) {\n      if ((uVar8 == 0) && (uVar8 = 10, uVar1 < 10)) {\n        iVar3 = 0x28;\n        uVar8 = 10;\n      }\n      else {\n        do {\n          uVar4 = uVar8;\n          uVar8 = uVar4 * 2;\n        } while (uVar8 <= uVar1);\n        iVar3 = uVar4 << 3;\n      }\n      iVar3 = xrealloc(*param_4,iVar3);\n      uVar4 = *param_5;\n      *param_4 = iVar3;\n      memset((void *)(iVar3 + uVar4 * 4),0,(uVar8 - uVar4) * 4);\n      *param_5 = uVar8;\n    }" if (parenthesized_expression "(uVar8 <= uVar1)" ( (binary_expression "uVar8 <= uVar1" identifier <= identifier) )) (compound_statement "{\n      if ((uVar8 == 0) && (uVar8 = 10, uVar1 < 10)) {\n        iVar3 = 0x28;\n        uVar8 = 10;\n      }\n      else {\n        do {\n          uVar4 = uVar8;\n          uVar8 = uVar4 * 2;\n        } while (uVar8 <= uVar1);\n        iVar3 = uVar4 << 3;\n      }\n      iVar3 = xrealloc(*param_4,iVar3);\n      uVar4 = *param_5;\n      *param_4 = iVar3;\n      memset((void *)(iVar3 + uVar4 * 4),0,(uVar8 - uVar4) * 4);\n      *param_5 = uVar8;\n    }" { (if_statement "if ((uVar8 == 0) && (uVar8 = 10, uVar1 < 10)) {\n        iVar3 = 0x28;\n        uVar8 = 10;\n      }\n      else {\n        do {\n          uVar4 = uVar8;\n          uVar8 = uVar4 * 2;\n        } while (uVar8 <= uVar1);\n        iVar3 = uVar4 << 3;\n      }" if (parenthesized_expression "((uVar8 == 0) && (uVar8 = 10, uVar1 < 10))" ( (binary_expression "(uVar8 == 0) && (uVar8 = 10, uVar1 < 10)" (parenthesized_expression "(uVar8 == 0)" ( (binary_expression "uVar8 == 0" identifier == number_literal) )) && (parenthesized_expression "(uVar8 = 10, uVar1 < 10)" ( (comma_expression "uVar8 = 10, uVar1 < 10" (assignment_expression "uVar8 = 10" identifier = number_literal) , (binary_expression "uVar1 < 10" identifier < number_literal)) ))) )) (compound_statement "{\n        iVar3 = 0x28;\n        uVar8 = 10;\n      }" { (expression_statement "iVar3 = 0x28;" (assignment_expression "iVar3 = 0x28" identifier = number_literal) ;) (expression_statement "uVar8 = 10;" (assignment_expression "uVar8 = 10" identifier = number_literal) ;) }) (else_clause "else {\n        do {\n          uVar4 = uVar8;\n          uVar8 = uVar4 * 2;\n        } while (uVar8 <= uVar1);\n        iVar3 = uVar4 << 3;\n      }" else (compound_statement "{\n        do {\n          uVar4 = uVar8;\n          uVar8 = uVar4 * 2;\n        } while (uVar8 <= uVar1);\n        iVar3 = uVar4 << 3;\n      }" { (do_statement "do {\n          uVar4 = uVar8;\n          uVar8 = uVar4 * 2;\n        } while (uVar8 <= uVar1);" do (compound_statement "{\n          uVar4 = uVar8;\n          uVar8 = uVar4 * 2;\n        }" { (expression_statement "uVar4 = uVar8;" (assignment_expression "uVar4 = uVar8" identifier = identifier) ;) (expression_statement "uVar8 = uVar4 * 2;" (assignment_expression "uVar8 = uVar4 * 2" identifier = (binary_expression "uVar4 * 2" identifier * number_literal)) ;) }) while (parenthesized_expression "(uVar8 <= uVar1)" ( (binary_expression "uVar8 <= uVar1" identifier <= identifier) )) ;) (expression_statement "iVar3 = uVar4 << 3;" (assignment_expression "iVar3 = uVar4 << 3" identifier = (binary_expression "uVar4 << 3" identifier << number_literal)) ;) }))) (expression_statement "iVar3 = xrealloc(*param_4,iVar3);" (assignment_expression "iVar3 = xrealloc(*param_4,iVar3)" identifier = (call_expression "xrealloc(*param_4,iVar3)" identifier (argument_list "(*param_4,iVar3)" ( (pointer_expression "*param_4" * identifier) , identifier )))) ;) (expression_statement "uVar4 = *param_5;" (assignment_expression "uVar4 = *param_5" identifier = (pointer_expression "*param_5" * identifier)) ;) (expression_statement "*param_4 = iVar3;" (assignment_expression "*param_4 = iVar3" (pointer_expression "*param_4" * identifier) = identifier) ;) (expression_statement "memset((void *)(iVar3 + uVar4 * 4),0,(uVar8 - uVar4) * 4);" (call_expression "memset((void *)(iVar3 + uVar4 * 4),0,(uVar8 - uVar4) * 4)" identifier (argument_list "((void *)(iVar3 + uVar4 * 4),0,(uVar8 - uVar4) * 4)" ( (cast_expression "(void *)(iVar3 + uVar4 * 4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + uVar4 * 4)" ( (binary_expression "iVar3 + uVar4 * 4" identifier + (binary_expression "uVar4 * 4" identifier * number_literal)) ))) , number_literal , (binary_expression "(uVar8 - uVar4) * 4" (parenthesized_expression "(uVar8 - uVar4)" ( (binary_expression "uVar8 - uVar4" identifier - identifier) )) * number_literal) ))) ;) (expression_statement "*param_5 = uVar8;" (assignment_expression "*param_5 = uVar8" (pointer_expression "*param_5" * identifier) = identifier) ;) })) (if_statement "if ((*(int *)(*param_4 + uVar1 * 4) != 0) && (*(int *)(*(int *)(param_1 + 0x38) + 0x10) == 0)) {\n      __ptr = (void *)FUN_00028700();\n      free(__ptr);\n      iVar3 = FUN_00029680();\n      return iVar3 != 0;\n    }" if (parenthesized_expression "((*(int *)(*param_4 + uVar1 * 4) != 0) && (*(int *)(*(int *)(param_1 + 0x38) + 0x10) == 0))" ( (binary_expression "(*(int *)(*param_4 + uVar1 * 4) != 0) && (*(int *)(*(int *)(param_1 + 0x38) + 0x10) == 0)" (parenthesized_expression "(*(int *)(*param_4 + uVar1 * 4) != 0)" ( (binary_expression "*(int *)(*param_4 + uVar1 * 4) != 0" (pointer_expression "*(int *)(*param_4 + uVar1 * 4)" * (cast_expression "(int *)(*param_4 + uVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_4 + uVar1 * 4)" ( (binary_expression "*param_4 + uVar1 * 4" (pointer_expression "*param_4" * identifier) + (binary_expression "uVar1 * 4" identifier * number_literal)) )))) != number_literal) )) && (parenthesized_expression "(*(int *)(*(int *)(param_1 + 0x38) + 0x10) == 0)" ( (binary_expression "*(int *)(*(int *)(param_1 + 0x38) + 0x10) == 0" (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) )))) == number_literal) ))) )) (compound_statement "{\n      __ptr = (void *)FUN_00028700();\n      free(__ptr);\n      iVar3 = FUN_00029680();\n      return iVar3 != 0;\n    }" { (expression_statement "__ptr = (void *)FUN_00028700();" (assignment_expression "__ptr = (void *)FUN_00028700()" identifier = (cast_expression "(void *)FUN_00028700()" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00028700()" identifier (argument_list "()" ( ))))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "iVar3 = FUN_00029680();" (assignment_expression "iVar3 = FUN_00029680()" identifier = (call_expression "FUN_00029680()" identifier (argument_list "()" ( )))) ;) (return_statement "return iVar3 != 0;" return (binary_expression "iVar3 != 0" identifier != number_literal) ;) })) (expression_statement "iVar3 = *(int *)(param_1 + 0x3c);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x3c)" identifier = (pointer_expression "*(int *)(param_1 + 0x3c)" * (cast_expression "(int *)(param_1 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 0x3c) = iVar3 + 1;" (assignment_expression "*(int *)(param_1 + 0x3c) = iVar3 + 1" (pointer_expression "*(int *)(param_1 + 0x3c)" * (cast_expression "(int *)(param_1 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))) = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (expression_statement "pcVar5 = (char *)FUN_00028700();" (assignment_expression "pcVar5 = (char *)FUN_00028700()" identifier = (cast_expression "(char *)FUN_00028700()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00028700()" identifier (argument_list "()" ( ))))) ;) (expression_statement "sVar6 = strlen(pcVar5);" (assignment_expression "sVar6 = strlen(pcVar5)" identifier = (call_expression "strlen(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier )))) ;) (expression_statement "pcVar7 = (char *)xmalloc(sVar6 + 0x14);" (assignment_expression "pcVar7 = (char *)xmalloc(sVar6 + 0x14)" identifier = (cast_expression "(char *)xmalloc(sVar6 + 0x14)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar6 + 0x14)" identifier (argument_list "(sVar6 + 0x14)" ( (binary_expression "sVar6 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "sprintf(pcVar7,"%ld=%c%s",iVar3,param_2,pcVar5);" (call_expression "sprintf(pcVar7,"%ld=%c%s",iVar3,param_2,pcVar5)" identifier (argument_list "(pcVar7,"%ld=%c%s",iVar3,param_2,pcVar5)" ( identifier , (string_literal ""%ld=%c%s"" " string_content ") , identifier , identifier , identifier ))) ;) (expression_statement "free(pcVar5);" (call_expression "free(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier ))) ;) (expression_statement "*(int *)(*param_4 + uVar1 * 4) = iVar3;" (assignment_expression "*(int *)(*param_4 + uVar1 * 4) = iVar3" (pointer_expression "*(int *)(*param_4 + uVar1 * 4)" * (cast_expression "(int *)(*param_4 + uVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_4 + uVar1 * 4)" ( (binary_expression "*param_4 + uVar1 * 4" (pointer_expression "*param_4" * identifier) + (binary_expression "uVar1 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "iVar3 = FUN_00029600(1,param_3);" (assignment_expression "iVar3 = FUN_00029600(1,param_3)" identifier = (call_expression "FUN_00029600(1,param_3)" identifier (argument_list "(1,param_3)" ( number_literal , identifier )))) ;) (if_statement "if (iVar3 != 0) {\n      free(pcVar7);\n      return true;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      free(pcVar7);\n      return true;\n    }" { (expression_statement "free(pcVar7);" (call_expression "free(pcVar7)" identifier (argument_list "(pcVar7)" ( identifier ))) ;) (return_statement "return true;" return true ;) })) }))) (return_statement "return false;" return false ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbfd_boolean __regparm3\nstab_modify_type(stab_write_handle *info,int mod,uint size,long **cache,size_t *cache_alloc)\n\n{\n  stab_type_stack **info_00;\n  stab_type_stack *psVar1;\n  uint uVar2;\n  size_t sVar3;\n  int iVar4;\n  uint uVar5;\n  long *plVar6;\n  char *pcVar7;\n  size_t sVar8;\n  char *pcVar9;\n  bfd_boolean bVar10;\n  uint uVar11;\n  \n  psVar1 = info->type_stack;\n  if (psVar1 == (stab_type_stack *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("info->type_stack != NULL","../../binutils/wrstabs.c",0x355,"stab_modify_type");\n  }\n  uVar2 = psVar1->index;\n  info_00 = &info->type_stack;\n  if (((int)uVar2 < 1) || (cache == (long **)0x0)) {\n    bVar10 = psVar1->definition;\n    pcVar7 = stab_pop_type((stab_write_handle *)info_00);\n    sVar8 = strlen(pcVar7);\n    pcVar9 = (char *)xmalloc(sVar8 + 2);\n    sprintf(pcVar9,"%c%s",mod,pcVar7);\n    free(pcVar7);\n    bVar10 = stab_push_string((stab_write_handle *)info_00,pcVar9,0,bVar10,size);\n    if (bVar10 != 0) {\n      free(pcVar9);\n      return 1;\n    }\n  }\n  else {\n    uVar11 = *cache_alloc;\n    if (uVar11 <= uVar2) {\n      if ((uVar11 == 0) && (uVar11 = 10, uVar2 < 10)) {\n        iVar4 = 0x28;\n        uVar11 = 10;\n      }\n      else {\n        do {\n          uVar5 = uVar11;\n          uVar11 = uVar5 * 2;\n        } while (uVar11 <= uVar2);\n        iVar4 = uVar5 << 3;\n      }\n      plVar6 = (long *)xrealloc(*cache,iVar4);\n      sVar3 = *cache_alloc;\n      *cache = plVar6;\n      memset(plVar6 + sVar3,0,(uVar11 - sVar3) * 4);\n      *cache_alloc = uVar11;\n    }\n    iVar4 = (*cache)[uVar2];\n    if ((iVar4 != 0) && (info->type_stack->definition == 0)) {\n      pcVar7 = stab_pop_type((stab_write_handle *)info_00);\n      free(pcVar7);\n      bVar10 = stab_push_defined_type(info,iVar4,size);\n      return (uint)(bVar10 != 0);\n    }\n    iVar4 = info->type_index;\n    info->type_index = iVar4 + 1;\n    pcVar7 = stab_pop_type((stab_write_handle *)info_00);\n    sVar8 = strlen(pcVar7);\n    pcVar9 = (char *)xmalloc(sVar8 + 0x14);\n    sprintf(pcVar9,"%ld=%c%s",iVar4,mod,pcVar7);\n    free(pcVar7);\n    (*cache)[uVar2] = iVar4;\n    bVar10 = stab_push_string((stab_write_handle *)info_00,pcVar9,iVar4,1,size);\n    if (bVar10 != 0) {\n      free(pcVar9);\n      return 1;\n    }\n  }\n  return 0;\n}\n\n" comment (function_definition "bfd_boolean __regparm3\nstab_modify_type(stab_write_handle *info,int mod,uint size,long **cache,size_t *cache_alloc)\n\n{\n  stab_type_stack **info_00;\n  stab_type_stack *psVar1;\n  uint uVar2;\n  size_t sVar3;\n  int iVar4;\n  uint uVar5;\n  long *plVar6;\n  char *pcVar7;\n  size_t sVar8;\n  char *pcVar9;\n  bfd_boolean bVar10;\n  uint uVar11;\n  \n  psVar1 = info->type_stack;\n  if (psVar1 == (stab_type_stack *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("info->type_stack != NULL","../../binutils/wrstabs.c",0x355,"stab_modify_type");\n  }\n  uVar2 = psVar1->index;\n  info_00 = &info->type_stack;\n  if (((int)uVar2 < 1) || (cache == (long **)0x0)) {\n    bVar10 = psVar1->definition;\n    pcVar7 = stab_pop_type((stab_write_handle *)info_00);\n    sVar8 = strlen(pcVar7);\n    pcVar9 = (char *)xmalloc(sVar8 + 2);\n    sprintf(pcVar9,"%c%s",mod,pcVar7);\n    free(pcVar7);\n    bVar10 = stab_push_string((stab_write_handle *)info_00,pcVar9,0,bVar10,size);\n    if (bVar10 != 0) {\n      free(pcVar9);\n      return 1;\n    }\n  }\n  else {\n    uVar11 = *cache_alloc;\n    if (uVar11 <= uVar2) {\n      if ((uVar11 == 0) && (uVar11 = 10, uVar2 < 10)) {\n        iVar4 = 0x28;\n        uVar11 = 10;\n      }\n      else {\n        do {\n          uVar5 = uVar11;\n          uVar11 = uVar5 * 2;\n        } while (uVar11 <= uVar2);\n        iVar4 = uVar5 << 3;\n      }\n      plVar6 = (long *)xrealloc(*cache,iVar4);\n      sVar3 = *cache_alloc;\n      *cache = plVar6;\n      memset(plVar6 + sVar3,0,(uVar11 - sVar3) * 4);\n      *cache_alloc = uVar11;\n    }\n    iVar4 = (*cache)[uVar2];\n    if ((iVar4 != 0) && (info->type_stack->definition == 0)) {\n      pcVar7 = stab_pop_type((stab_write_handle *)info_00);\n      free(pcVar7);\n      bVar10 = stab_push_defined_type(info,iVar4,size);\n      return (uint)(bVar10 != 0);\n    }\n    iVar4 = info->type_index;\n    info->type_index = iVar4 + 1;\n    pcVar7 = stab_pop_type((stab_write_handle *)info_00);\n    sVar8 = strlen(pcVar7);\n    pcVar9 = (char *)xmalloc(sVar8 + 0x14);\n    sprintf(pcVar9,"%ld=%c%s",iVar4,mod,pcVar7);\n    free(pcVar7);\n    (*cache)[uVar2] = iVar4;\n    bVar10 = stab_push_string((stab_write_handle *)info_00,pcVar9,iVar4,1,size);\n    if (bVar10 != 0) {\n      free(pcVar9);\n      return 1;\n    }\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "stab_modify_type(stab_write_handle *info,int mod,uint size,long **cache,size_t *cache_alloc)" identifier (parameter_list "(stab_write_handle *info,int mod,uint size,long **cache,size_t *cache_alloc)" ( (parameter_declaration "stab_write_handle *info" type_identifier (pointer_declarator "*info" * identifier)) , (parameter_declaration "int mod" primitive_type identifier) , (parameter_declaration "uint size" type_identifier identifier) , (parameter_declaration "long **cache" (sized_type_specifier "long" long) (pointer_declarator "**cache" * (pointer_declarator "*cache" * identifier))) , (parameter_declaration "size_t *cache_alloc" primitive_type (pointer_declarator "*cache_alloc" * identifier)) ))) (compound_statement "{\n  stab_type_stack **info_00;\n  stab_type_stack *psVar1;\n  uint uVar2;\n  size_t sVar3;\n  int iVar4;\n  uint uVar5;\n  long *plVar6;\n  char *pcVar7;\n  size_t sVar8;\n  char *pcVar9;\n  bfd_boolean bVar10;\n  uint uVar11;\n  \n  psVar1 = info->type_stack;\n  if (psVar1 == (stab_type_stack *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("info->type_stack != NULL","../../binutils/wrstabs.c",0x355,"stab_modify_type");\n  }\n  uVar2 = psVar1->index;\n  info_00 = &info->type_stack;\n  if (((int)uVar2 < 1) || (cache == (long **)0x0)) {\n    bVar10 = psVar1->definition;\n    pcVar7 = stab_pop_type((stab_write_handle *)info_00);\n    sVar8 = strlen(pcVar7);\n    pcVar9 = (char *)xmalloc(sVar8 + 2);\n    sprintf(pcVar9,"%c%s",mod,pcVar7);\n    free(pcVar7);\n    bVar10 = stab_push_string((stab_write_handle *)info_00,pcVar9,0,bVar10,size);\n    if (bVar10 != 0) {\n      free(pcVar9);\n      return 1;\n    }\n  }\n  else {\n    uVar11 = *cache_alloc;\n    if (uVar11 <= uVar2) {\n      if ((uVar11 == 0) && (uVar11 = 10, uVar2 < 10)) {\n        iVar4 = 0x28;\n        uVar11 = 10;\n      }\n      else {\n        do {\n          uVar5 = uVar11;\n          uVar11 = uVar5 * 2;\n        } while (uVar11 <= uVar2);\n        iVar4 = uVar5 << 3;\n      }\n      plVar6 = (long *)xrealloc(*cache,iVar4);\n      sVar3 = *cache_alloc;\n      *cache = plVar6;\n      memset(plVar6 + sVar3,0,(uVar11 - sVar3) * 4);\n      *cache_alloc = uVar11;\n    }\n    iVar4 = (*cache)[uVar2];\n    if ((iVar4 != 0) && (info->type_stack->definition == 0)) {\n      pcVar7 = stab_pop_type((stab_write_handle *)info_00);\n      free(pcVar7);\n      bVar10 = stab_push_defined_type(info,iVar4,size);\n      return (uint)(bVar10 != 0);\n    }\n    iVar4 = info->type_index;\n    info->type_index = iVar4 + 1;\n    pcVar7 = stab_pop_type((stab_write_handle *)info_00);\n    sVar8 = strlen(pcVar7);\n    pcVar9 = (char *)xmalloc(sVar8 + 0x14);\n    sprintf(pcVar9,"%ld=%c%s",iVar4,mod,pcVar7);\n    free(pcVar7);\n    (*cache)[uVar2] = iVar4;\n    bVar10 = stab_push_string((stab_write_handle *)info_00,pcVar9,iVar4,1,size);\n    if (bVar10 != 0) {\n      free(pcVar9);\n      return 1;\n    }\n  }\n  return 0;\n}" { (declaration "stab_type_stack **info_00;" type_identifier (pointer_declarator "**info_00" * (pointer_declarator "*info_00" * identifier)) ;) (declaration "stab_type_stack *psVar1;" type_identifier (pointer_declarator "*psVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "size_t sVar3;" primitive_type identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "long *plVar6;" (sized_type_specifier "long" long) (pointer_declarator "*plVar6" * identifier) ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "size_t sVar8;" primitive_type identifier ;) (declaration "char *pcVar9;" primitive_type (pointer_declarator "*pcVar9" * identifier) ;) (declaration "bfd_boolean bVar10;" type_identifier identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (expression_statement "psVar1 = info->type_stack;" (assignment_expression "psVar1 = info->type_stack" identifier = (field_expression "info->type_stack" identifier -> field_identifier)) ;) (if_statement "if (psVar1 == (stab_type_stack *)0x0) {\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("info->type_stack != NULL","../../binutils/wrstabs.c",0x355,"stab_modify_type");\n  }" if (parenthesized_expression "(psVar1 == (stab_type_stack *)0x0)" ( (binary_expression "psVar1 == (stab_type_stack *)0x0" identifier == (cast_expression "(stab_type_stack *)0x0" ( (type_descriptor "stab_type_stack *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __assert_fail("info->type_stack != NULL","../../binutils/wrstabs.c",0x355,"stab_modify_type");\n  }" { comment (expression_statement "__assert_fail("info->type_stack != NULL","../../binutils/wrstabs.c",0x355,"stab_modify_type");" (call_expression "__assert_fail("info->type_stack != NULL","../../binutils/wrstabs.c",0x355,"stab_modify_type")" identifier (argument_list "("info->type_stack != NULL","../../binutils/wrstabs.c",0x355,"stab_modify_type")" ( (string_literal ""info->type_stack != NULL"" " string_content ") , (string_literal ""../../binutils/wrstabs.c"" " string_content ") , number_literal , (string_literal ""stab_modify_type"" " string_content ") ))) ;) })) (expression_statement "uVar2 = psVar1->index;" (assignment_expression "uVar2 = psVar1->index" identifier = (field_expression "psVar1->index" identifier -> field_identifier)) ;) (expression_statement "info_00 = &info->type_stack;" (assignment_expression "info_00 = &info->type_stack" identifier = (pointer_expression "&info->type_stack" & (field_expression "info->type_stack" identifier -> field_identifier))) ;) (if_statement "if (((int)uVar2 < 1) || (cache == (long **)0x0)) {\n    bVar10 = psVar1->definition;\n    pcVar7 = stab_pop_type((stab_write_handle *)info_00);\n    sVar8 = strlen(pcVar7);\n    pcVar9 = (char *)xmalloc(sVar8 + 2);\n    sprintf(pcVar9,"%c%s",mod,pcVar7);\n    free(pcVar7);\n    bVar10 = stab_push_string((stab_write_handle *)info_00,pcVar9,0,bVar10,size);\n    if (bVar10 != 0) {\n      free(pcVar9);\n      return 1;\n    }\n  }\n  else {\n    uVar11 = *cache_alloc;\n    if (uVar11 <= uVar2) {\n      if ((uVar11 == 0) && (uVar11 = 10, uVar2 < 10)) {\n        iVar4 = 0x28;\n        uVar11 = 10;\n      }\n      else {\n        do {\n          uVar5 = uVar11;\n          uVar11 = uVar5 * 2;\n        } while (uVar11 <= uVar2);\n        iVar4 = uVar5 << 3;\n      }\n      plVar6 = (long *)xrealloc(*cache,iVar4);\n      sVar3 = *cache_alloc;\n      *cache = plVar6;\n      memset(plVar6 + sVar3,0,(uVar11 - sVar3) * 4);\n      *cache_alloc = uVar11;\n    }\n    iVar4 = (*cache)[uVar2];\n    if ((iVar4 != 0) && (info->type_stack->definition == 0)) {\n      pcVar7 = stab_pop_type((stab_write_handle *)info_00);\n      free(pcVar7);\n      bVar10 = stab_push_defined_type(info,iVar4,size);\n      return (uint)(bVar10 != 0);\n    }\n    iVar4 = info->type_index;\n    info->type_index = iVar4 + 1;\n    pcVar7 = stab_pop_type((stab_write_handle *)info_00);\n    sVar8 = strlen(pcVar7);\n    pcVar9 = (char *)xmalloc(sVar8 + 0x14);\n    sprintf(pcVar9,"%ld=%c%s",iVar4,mod,pcVar7);\n    free(pcVar7);\n    (*cache)[uVar2] = iVar4;\n    bVar10 = stab_push_string((stab_write_handle *)info_00,pcVar9,iVar4,1,size);\n    if (bVar10 != 0) {\n      free(pcVar9);\n      return 1;\n    }\n  }" if (parenthesized_expression "(((int)uVar2 < 1) || (cache == (long **)0x0))" ( (binary_expression "((int)uVar2 < 1) || (cache == (long **)0x0)" (parenthesized_expression "((int)uVar2 < 1)" ( (binary_expression "(int)uVar2 < 1" (cast_expression "(int)uVar2" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) || (parenthesized_expression "(cache == (long **)0x0)" ( (binary_expression "cache == (long **)0x0" identifier == (cast_expression "(long **)0x0" ( (type_descriptor "long **" (sized_type_specifier "long" long) (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) ))) )) (compound_statement "{\n    bVar10 = psVar1->definition;\n    pcVar7 = stab_pop_type((stab_write_handle *)info_00);\n    sVar8 = strlen(pcVar7);\n    pcVar9 = (char *)xmalloc(sVar8 + 2);\n    sprintf(pcVar9,"%c%s",mod,pcVar7);\n    free(pcVar7);\n    bVar10 = stab_push_string((stab_write_handle *)info_00,pcVar9,0,bVar10,size);\n    if (bVar10 != 0) {\n      free(pcVar9);\n      return 1;\n    }\n  }" { (expression_statement "bVar10 = psVar1->definition;" (assignment_expression "bVar10 = psVar1->definition" identifier = (field_expression "psVar1->definition" identifier -> field_identifier)) ;) (expression_statement "pcVar7 = stab_pop_type((stab_write_handle *)info_00);" (assignment_expression "pcVar7 = stab_pop_type((stab_write_handle *)info_00)" identifier = (call_expression "stab_pop_type((stab_write_handle *)info_00)" identifier (argument_list "((stab_write_handle *)info_00)" ( (cast_expression "(stab_write_handle *)info_00" ( (type_descriptor "stab_write_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "sVar8 = strlen(pcVar7);" (assignment_expression "sVar8 = strlen(pcVar7)" identifier = (call_expression "strlen(pcVar7)" identifier (argument_list "(pcVar7)" ( identifier )))) ;) (expression_statement "pcVar9 = (char *)xmalloc(sVar8 + 2);" (assignment_expression "pcVar9 = (char *)xmalloc(sVar8 + 2)" identifier = (cast_expression "(char *)xmalloc(sVar8 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar8 + 2)" identifier (argument_list "(sVar8 + 2)" ( (binary_expression "sVar8 + 2" identifier + number_literal) ))))) ;) (expression_statement "sprintf(pcVar9,"%c%s",mod,pcVar7);" (call_expression "sprintf(pcVar9,"%c%s",mod,pcVar7)" identifier (argument_list "(pcVar9,"%c%s",mod,pcVar7)" ( identifier , (string_literal ""%c%s"" " string_content ") , identifier , identifier ))) ;) (expression_statement "free(pcVar7);" (call_expression "free(pcVar7)" identifier (argument_list "(pcVar7)" ( identifier ))) ;) (expression_statement "bVar10 = stab_push_string((stab_write_handle *)info_00,pcVar9,0,bVar10,size);" (assignment_expression "bVar10 = stab_push_string((stab_write_handle *)info_00,pcVar9,0,bVar10,size)" identifier = (call_expression "stab_push_string((stab_write_handle *)info_00,pcVar9,0,bVar10,size)" identifier (argument_list "((stab_write_handle *)info_00,pcVar9,0,bVar10,size)" ( (cast_expression "(stab_write_handle *)info_00" ( (type_descriptor "stab_write_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , number_literal , identifier , identifier )))) ;) (if_statement "if (bVar10 != 0) {\n      free(pcVar9);\n      return 1;\n    }" if (parenthesized_expression "(bVar10 != 0)" ( (binary_expression "bVar10 != 0" identifier != number_literal) )) (compound_statement "{\n      free(pcVar9);\n      return 1;\n    }" { (expression_statement "free(pcVar9);" (call_expression "free(pcVar9)" identifier (argument_list "(pcVar9)" ( identifier ))) ;) (return_statement "return 1;" return number_literal ;) })) }) (else_clause "else {\n    uVar11 = *cache_alloc;\n    if (uVar11 <= uVar2) {\n      if ((uVar11 == 0) && (uVar11 = 10, uVar2 < 10)) {\n        iVar4 = 0x28;\n        uVar11 = 10;\n      }\n      else {\n        do {\n          uVar5 = uVar11;\n          uVar11 = uVar5 * 2;\n        } while (uVar11 <= uVar2);\n        iVar4 = uVar5 << 3;\n      }\n      plVar6 = (long *)xrealloc(*cache,iVar4);\n      sVar3 = *cache_alloc;\n      *cache = plVar6;\n      memset(plVar6 + sVar3,0,(uVar11 - sVar3) * 4);\n      *cache_alloc = uVar11;\n    }\n    iVar4 = (*cache)[uVar2];\n    if ((iVar4 != 0) && (info->type_stack->definition == 0)) {\n      pcVar7 = stab_pop_type((stab_write_handle *)info_00);\n      free(pcVar7);\n      bVar10 = stab_push_defined_type(info,iVar4,size);\n      return (uint)(bVar10 != 0);\n    }\n    iVar4 = info->type_index;\n    info->type_index = iVar4 + 1;\n    pcVar7 = stab_pop_type((stab_write_handle *)info_00);\n    sVar8 = strlen(pcVar7);\n    pcVar9 = (char *)xmalloc(sVar8 + 0x14);\n    sprintf(pcVar9,"%ld=%c%s",iVar4,mod,pcVar7);\n    free(pcVar7);\n    (*cache)[uVar2] = iVar4;\n    bVar10 = stab_push_string((stab_write_handle *)info_00,pcVar9,iVar4,1,size);\n    if (bVar10 != 0) {\n      free(pcVar9);\n      return 1;\n    }\n  }" else (compound_statement "{\n    uVar11 = *cache_alloc;\n    if (uVar11 <= uVar2) {\n      if ((uVar11 == 0) && (uVar11 = 10, uVar2 < 10)) {\n        iVar4 = 0x28;\n        uVar11 = 10;\n      }\n      else {\n        do {\n          uVar5 = uVar11;\n          uVar11 = uVar5 * 2;\n        } while (uVar11 <= uVar2);\n        iVar4 = uVar5 << 3;\n      }\n      plVar6 = (long *)xrealloc(*cache,iVar4);\n      sVar3 = *cache_alloc;\n      *cache = plVar6;\n      memset(plVar6 + sVar3,0,(uVar11 - sVar3) * 4);\n      *cache_alloc = uVar11;\n    }\n    iVar4 = (*cache)[uVar2];\n    if ((iVar4 != 0) && (info->type_stack->definition == 0)) {\n      pcVar7 = stab_pop_type((stab_write_handle *)info_00);\n      free(pcVar7);\n      bVar10 = stab_push_defined_type(info,iVar4,size);\n      return (uint)(bVar10 != 0);\n    }\n    iVar4 = info->type_index;\n    info->type_index = iVar4 + 1;\n    pcVar7 = stab_pop_type((stab_write_handle *)info_00);\n    sVar8 = strlen(pcVar7);\n    pcVar9 = (char *)xmalloc(sVar8 + 0x14);\n    sprintf(pcVar9,"%ld=%c%s",iVar4,mod,pcVar7);\n    free(pcVar7);\n    (*cache)[uVar2] = iVar4;\n    bVar10 = stab_push_string((stab_write_handle *)info_00,pcVar9,iVar4,1,size);\n    if (bVar10 != 0) {\n      free(pcVar9);\n      return 1;\n    }\n  }" { (expression_statement "uVar11 = *cache_alloc;" (assignment_expression "uVar11 = *cache_alloc" identifier = (pointer_expression "*cache_alloc" * identifier)) ;) (if_statement "if (uVar11 <= uVar2) {\n      if ((uVar11 == 0) && (uVar11 = 10, uVar2 < 10)) {\n        iVar4 = 0x28;\n        uVar11 = 10;\n      }\n      else {\n        do {\n          uVar5 = uVar11;\n          uVar11 = uVar5 * 2;\n        } while (uVar11 <= uVar2);\n        iVar4 = uVar5 << 3;\n      }\n      plVar6 = (long *)xrealloc(*cache,iVar4);\n      sVar3 = *cache_alloc;\n      *cache = plVar6;\n      memset(plVar6 + sVar3,0,(uVar11 - sVar3) * 4);\n      *cache_alloc = uVar11;\n    }" if (parenthesized_expression "(uVar11 <= uVar2)" ( (binary_expression "uVar11 <= uVar2" identifier <= identifier) )) (compound_statement "{\n      if ((uVar11 == 0) && (uVar11 = 10, uVar2 < 10)) {\n        iVar4 = 0x28;\n        uVar11 = 10;\n      }\n      else {\n        do {\n          uVar5 = uVar11;\n          uVar11 = uVar5 * 2;\n        } while (uVar11 <= uVar2);\n        iVar4 = uVar5 << 3;\n      }\n      plVar6 = (long *)xrealloc(*cache,iVar4);\n      sVar3 = *cache_alloc;\n      *cache = plVar6;\n      memset(plVar6 + sVar3,0,(uVar11 - sVar3) * 4);\n      *cache_alloc = uVar11;\n    }" { (if_statement "if ((uVar11 == 0) && (uVar11 = 10, uVar2 < 10)) {\n        iVar4 = 0x28;\n        uVar11 = 10;\n      }\n      else {\n        do {\n          uVar5 = uVar11;\n          uVar11 = uVar5 * 2;\n        } while (uVar11 <= uVar2);\n        iVar4 = uVar5 << 3;\n      }" if (parenthesized_expression "((uVar11 == 0) && (uVar11 = 10, uVar2 < 10))" ( (binary_expression "(uVar11 == 0) && (uVar11 = 10, uVar2 < 10)" (parenthesized_expression "(uVar11 == 0)" ( (binary_expression "uVar11 == 0" identifier == number_literal) )) && (parenthesized_expression "(uVar11 = 10, uVar2 < 10)" ( (comma_expression "uVar11 = 10, uVar2 < 10" (assignment_expression "uVar11 = 10" identifier = number_literal) , (binary_expression "uVar2 < 10" identifier < number_literal)) ))) )) (compound_statement "{\n        iVar4 = 0x28;\n        uVar11 = 10;\n      }" { (expression_statement "iVar4 = 0x28;" (assignment_expression "iVar4 = 0x28" identifier = number_literal) ;) (expression_statement "uVar11 = 10;" (assignment_expression "uVar11 = 10" identifier = number_literal) ;) }) (else_clause "else {\n        do {\n          uVar5 = uVar11;\n          uVar11 = uVar5 * 2;\n        } while (uVar11 <= uVar2);\n        iVar4 = uVar5 << 3;\n      }" else (compound_statement "{\n        do {\n          uVar5 = uVar11;\n          uVar11 = uVar5 * 2;\n        } while (uVar11 <= uVar2);\n        iVar4 = uVar5 << 3;\n      }" { (do_statement "do {\n          uVar5 = uVar11;\n          uVar11 = uVar5 * 2;\n        } while (uVar11 <= uVar2);" do (compound_statement "{\n          uVar5 = uVar11;\n          uVar11 = uVar5 * 2;\n        }" { (expression_statement "uVar5 = uVar11;" (assignment_expression "uVar5 = uVar11" identifier = identifier) ;) (expression_statement "uVar11 = uVar5 * 2;" (assignment_expression "uVar11 = uVar5 * 2" identifier = (binary_expression "uVar5 * 2" identifier * number_literal)) ;) }) while (parenthesized_expression "(uVar11 <= uVar2)" ( (binary_expression "uVar11 <= uVar2" identifier <= identifier) )) ;) (expression_statement "iVar4 = uVar5 << 3;" (assignment_expression "iVar4 = uVar5 << 3" identifier = (binary_expression "uVar5 << 3" identifier << number_literal)) ;) }))) (expression_statement "plVar6 = (long *)xrealloc(*cache,iVar4);" (assignment_expression "plVar6 = (long *)xrealloc(*cache,iVar4)" identifier = (cast_expression "(long *)xrealloc(*cache,iVar4)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(*cache,iVar4)" identifier (argument_list "(*cache,iVar4)" ( (pointer_expression "*cache" * identifier) , identifier ))))) ;) (expression_statement "sVar3 = *cache_alloc;" (assignment_expression "sVar3 = *cache_alloc" identifier = (pointer_expression "*cache_alloc" * identifier)) ;) (expression_statement "*cache = plVar6;" (assignment_expression "*cache = plVar6" (pointer_expression "*cache" * identifier) = identifier) ;) (expression_statement "memset(plVar6 + sVar3,0,(uVar11 - sVar3) * 4);" (call_expression "memset(plVar6 + sVar3,0,(uVar11 - sVar3) * 4)" identifier (argument_list "(plVar6 + sVar3,0,(uVar11 - sVar3) * 4)" ( (binary_expression "plVar6 + sVar3" identifier + identifier) , number_literal , (binary_expression "(uVar11 - sVar3) * 4" (parenthesized_expression "(uVar11 - sVar3)" ( (binary_expression "uVar11 - sVar3" identifier - identifier) )) * number_literal) ))) ;) (expression_statement "*cache_alloc = uVar11;" (assignment_expression "*cache_alloc = uVar11" (pointer_expression "*cache_alloc" * identifier) = identifier) ;) })) (expression_statement "iVar4 = (*cache)[uVar2];" (assignment_expression "iVar4 = (*cache)[uVar2]" identifier = (subscript_expression "(*cache)[uVar2]" (parenthesized_expression "(*cache)" ( (pointer_expression "*cache" * identifier) )) [ identifier ])) ;) (if_statement "if ((iVar4 != 0) && (info->type_stack->definition == 0)) {\n      pcVar7 = stab_pop_type((stab_write_handle *)info_00);\n      free(pcVar7);\n      bVar10 = stab_push_defined_type(info,iVar4,size);\n      return (uint)(bVar10 != 0);\n    }" if (parenthesized_expression "((iVar4 != 0) && (info->type_stack->definition == 0))" ( (binary_expression "(iVar4 != 0) && (info->type_stack->definition == 0)" (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) && (parenthesized_expression "(info->type_stack->definition == 0)" ( (binary_expression "info->type_stack->definition == 0" (field_expression "info->type_stack->definition" (field_expression "info->type_stack" identifier -> field_identifier) -> field_identifier) == number_literal) ))) )) (compound_statement "{\n      pcVar7 = stab_pop_type((stab_write_handle *)info_00);\n      free(pcVar7);\n      bVar10 = stab_push_defined_type(info,iVar4,size);\n      return (uint)(bVar10 != 0);\n    }" { (expression_statement "pcVar7 = stab_pop_type((stab_write_handle *)info_00);" (assignment_expression "pcVar7 = stab_pop_type((stab_write_handle *)info_00)" identifier = (call_expression "stab_pop_type((stab_write_handle *)info_00)" identifier (argument_list "((stab_write_handle *)info_00)" ( (cast_expression "(stab_write_handle *)info_00" ( (type_descriptor "stab_write_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "free(pcVar7);" (call_expression "free(pcVar7)" identifier (argument_list "(pcVar7)" ( identifier ))) ;) (expression_statement "bVar10 = stab_push_defined_type(info,iVar4,size);" (assignment_expression "bVar10 = stab_push_defined_type(info,iVar4,size)" identifier = (call_expression "stab_push_defined_type(info,iVar4,size)" identifier (argument_list "(info,iVar4,size)" ( identifier , identifier , identifier )))) ;) (return_statement "return (uint)(bVar10 != 0);" return (call_expression "(uint)(bVar10 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(bVar10 != 0)" ( (binary_expression "bVar10 != 0" identifier != number_literal) ))) ;) })) (expression_statement "iVar4 = info->type_index;" (assignment_expression "iVar4 = info->type_index" identifier = (field_expression "info->type_index" identifier -> field_identifier)) ;) (expression_statement "info->type_index = iVar4 + 1;" (assignment_expression "info->type_index = iVar4 + 1" (field_expression "info->type_index" identifier -> field_identifier) = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "pcVar7 = stab_pop_type((stab_write_handle *)info_00);" (assignment_expression "pcVar7 = stab_pop_type((stab_write_handle *)info_00)" identifier = (call_expression "stab_pop_type((stab_write_handle *)info_00)" identifier (argument_list "((stab_write_handle *)info_00)" ( (cast_expression "(stab_write_handle *)info_00" ( (type_descriptor "stab_write_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "sVar8 = strlen(pcVar7);" (assignment_expression "sVar8 = strlen(pcVar7)" identifier = (call_expression "strlen(pcVar7)" identifier (argument_list "(pcVar7)" ( identifier )))) ;) (expression_statement "pcVar9 = (char *)xmalloc(sVar8 + 0x14);" (assignment_expression "pcVar9 = (char *)xmalloc(sVar8 + 0x14)" identifier = (cast_expression "(char *)xmalloc(sVar8 + 0x14)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar8 + 0x14)" identifier (argument_list "(sVar8 + 0x14)" ( (binary_expression "sVar8 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "sprintf(pcVar9,"%ld=%c%s",iVar4,mod,pcVar7);" (call_expression "sprintf(pcVar9,"%ld=%c%s",iVar4,mod,pcVar7)" identifier (argument_list "(pcVar9,"%ld=%c%s",iVar4,mod,pcVar7)" ( identifier , (string_literal ""%ld=%c%s"" " string_content ") , identifier , identifier , identifier ))) ;) (expression_statement "free(pcVar7);" (call_expression "free(pcVar7)" identifier (argument_list "(pcVar7)" ( identifier ))) ;) (expression_statement "(*cache)[uVar2] = iVar4;" (assignment_expression "(*cache)[uVar2] = iVar4" (subscript_expression "(*cache)[uVar2]" (parenthesized_expression "(*cache)" ( (pointer_expression "*cache" * identifier) )) [ identifier ]) = identifier) ;) (expression_statement "bVar10 = stab_push_string((stab_write_handle *)info_00,pcVar9,iVar4,1,size);" (assignment_expression "bVar10 = stab_push_string((stab_write_handle *)info_00,pcVar9,iVar4,1,size)" identifier = (call_expression "stab_push_string((stab_write_handle *)info_00,pcVar9,iVar4,1,size)" identifier (argument_list "((stab_write_handle *)info_00,pcVar9,iVar4,1,size)" ( (cast_expression "(stab_write_handle *)info_00" ( (type_descriptor "stab_write_handle *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , identifier , identifier , number_literal , identifier )))) ;) (if_statement "if (bVar10 != 0) {\n      free(pcVar9);\n      return 1;\n    }" if (parenthesized_expression "(bVar10 != 0)" ( (binary_expression "bVar10 != 0" identifier != number_literal) )) (compound_statement "{\n      free(pcVar9);\n      return 1;\n    }" { (expression_statement "free(pcVar9);" (call_expression "free(pcVar9)" identifier (argument_list "(pcVar9)" ( identifier ))) ;) (return_statement "return 1;" return number_literal ;) })) }))) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "bool __regparm3\nFUN_00029b20(int param_1,undefined4 param_2,undefined4 param_3,int *param_4,uint *param_5)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  uint uVar4;\n  char *pcVar5;\n  size_t sVar6;\n  char *pcVar7;\n  void *__ptr;\n  uint uVar8;\n  \n  iVar3 = *(int *)(param_1 + 0x38);\n  if (iVar3 == 0) {\n                    \n    __assert_fail("info->type_stack != NULL","../../binutils/wrstabs.c",0x355,"stab_modify_type");\n  }\n  uVar1 = *(uint *)(iVar3 + 8);\n  if (((int)uVar1 < 1) || (param_4 == (int *)0x0)) {\n    uVar2 = *(undefined4 *)(iVar3 + 0x10);\n    pcVar5 = (char *)FUN_00028700();\n    sVar6 = strlen(pcVar5);\n    pcVar7 = (char *)xmalloc(sVar6 + 2);\n    sprintf(pcVar7,"%c%s",param_2,pcVar5);\n    free(pcVar5);\n    iVar3 = FUN_00029600(uVar2,param_3);\n    if (iVar3 != 0) {\n      free(pcVar7);\n      return true;\n    }\n  }\n  else {\n    uVar8 = *param_5;\n    if (uVar8 <= uVar1) {\n      if ((uVar8 == 0) && (uVar8 = 10, uVar1 < 10)) {\n        iVar3 = 0x28;\n        uVar8 = 10;\n      }\n      else {\n        do {\n          uVar4 = uVar8;\n          uVar8 = uVar4 * 2;\n        } while (uVar8 <= uVar1);\n        iVar3 = uVar4 << 3;\n      }\n      iVar3 = xrealloc(*param_4,iVar3);\n      uVar4 = *param_5;\n      *param_4 = iVar3;\n      memset((void *)(iVar3 + uVar4 * 4),0,(uVar8 - uVar4) * 4);\n      *param_5 = uVar8;\n    }\n    if ((*(int *)(*param_4 + uVar1 * 4) != 0) && (*(int *)(*(int *)(param_1 + 0x38) + 0x10) == 0)) {\n      __ptr = (void *)FUN_00028700();\n      free(__ptr);\n      iVar3 = FUN_00029680();\n      return iVar3 != 0;\n    }\n    iVar3 = *(int *)(param_1 + 0x3c);\n    *(int *)(param_1 + 0x3c) = iVar3 + 1;\n    pcVar5 = (char *)FUN_00028700();\n    sVar6 = strlen(pcVar5);\n    pcVar7 = (char *)xmalloc(sVar6 + 0x14);\n    sprintf(pcVar7,"%ld=%c%s",iVar3,param_2,pcVar5);\n    free(pcVar5);\n    *(int *)(*param_4 + uVar1 * 4) = iVar3;\n    iVar3 = FUN_00029600(1,param_3);\n    if (iVar3 != 0) {\n      free(pcVar7);\n      return true;\n    }\n  }\n  return false;\n}\n\n" (function_definition "bool __regparm3\nFUN_00029b20(int param_1,undefined4 param_2,undefined4 param_3,int *param_4,uint *param_5)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  uint uVar4;\n  char *pcVar5;\n  size_t sVar6;\n  char *pcVar7;\n  void *__ptr;\n  uint uVar8;\n  \n  iVar3 = *(int *)(param_1 + 0x38);\n  if (iVar3 == 0) {\n                    \n    __assert_fail("info->type_stack != NULL","../../binutils/wrstabs.c",0x355,"stab_modify_type");\n  }\n  uVar1 = *(uint *)(iVar3 + 8);\n  if (((int)uVar1 < 1) || (param_4 == (int *)0x0)) {\n    uVar2 = *(undefined4 *)(iVar3 + 0x10);\n    pcVar5 = (char *)FUN_00028700();\n    sVar6 = strlen(pcVar5);\n    pcVar7 = (char *)xmalloc(sVar6 + 2);\n    sprintf(pcVar7,"%c%s",param_2,pcVar5);\n    free(pcVar5);\n    iVar3 = FUN_00029600(uVar2,param_3);\n    if (iVar3 != 0) {\n      free(pcVar7);\n      return true;\n    }\n  }\n  else {\n    uVar8 = *param_5;\n    if (uVar8 <= uVar1) {\n      if ((uVar8 == 0) && (uVar8 = 10, uVar1 < 10)) {\n        iVar3 = 0x28;\n        uVar8 = 10;\n      }\n      else {\n        do {\n          uVar4 = uVar8;\n          uVar8 = uVar4 * 2;\n        } while (uVar8 <= uVar1);\n        iVar3 = uVar4 << 3;\n      }\n      iVar3 = xrealloc(*param_4,iVar3);\n      uVar4 = *param_5;\n      *param_4 = iVar3;\n      memset((void *)(iVar3 + uVar4 * 4),0,(uVar8 - uVar4) * 4);\n      *param_5 = uVar8;\n    }\n    if ((*(int *)(*param_4 + uVar1 * 4) != 0) && (*(int *)(*(int *)(param_1 + 0x38) + 0x10) == 0)) {\n      __ptr = (void *)FUN_00028700();\n      free(__ptr);\n      iVar3 = FUN_00029680();\n      return iVar3 != 0;\n    }\n    iVar3 = *(int *)(param_1 + 0x3c);\n    *(int *)(param_1 + 0x3c) = iVar3 + 1;\n    pcVar5 = (char *)FUN_00028700();\n    sVar6 = strlen(pcVar5);\n    pcVar7 = (char *)xmalloc(sVar6 + 0x14);\n    sprintf(pcVar7,"%ld=%c%s",iVar3,param_2,pcVar5);\n    free(pcVar5);\n    *(int *)(*param_4 + uVar1 * 4) = iVar3;\n    iVar3 = FUN_00029600(1,param_3);\n    if (iVar3 != 0) {\n      free(pcVar7);\n      return true;\n    }\n  }\n  return false;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00029b20(int param_1,undefined4 param_2,undefined4 param_3,int *param_4,uint *param_5)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,int *param_4,uint *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 (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "uint *param_5" type_identifier (pointer_declarator "*param_5" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  uint uVar4;\n  char *pcVar5;\n  size_t sVar6;\n  char *pcVar7;\n  void *__ptr;\n  uint uVar8;\n  \n  iVar3 = *(int *)(param_1 + 0x38);\n  if (iVar3 == 0) {\n                    \n    __assert_fail("info->type_stack != NULL","../../binutils/wrstabs.c",0x355,"stab_modify_type");\n  }\n  uVar1 = *(uint *)(iVar3 + 8);\n  if (((int)uVar1 < 1) || (param_4 == (int *)0x0)) {\n    uVar2 = *(undefined4 *)(iVar3 + 0x10);\n    pcVar5 = (char *)FUN_00028700();\n    sVar6 = strlen(pcVar5);\n    pcVar7 = (char *)xmalloc(sVar6 + 2);\n    sprintf(pcVar7,"%c%s",param_2,pcVar5);\n    free(pcVar5);\n    iVar3 = FUN_00029600(uVar2,param_3);\n    if (iVar3 != 0) {\n      free(pcVar7);\n      return true;\n    }\n  }\n  else {\n    uVar8 = *param_5;\n    if (uVar8 <= uVar1) {\n      if ((uVar8 == 0) && (uVar8 = 10, uVar1 < 10)) {\n        iVar3 = 0x28;\n        uVar8 = 10;\n      }\n      else {\n        do {\n          uVar4 = uVar8;\n          uVar8 = uVar4 * 2;\n        } while (uVar8 <= uVar1);\n        iVar3 = uVar4 << 3;\n      }\n      iVar3 = xrealloc(*param_4,iVar3);\n      uVar4 = *param_5;\n      *param_4 = iVar3;\n      memset((void *)(iVar3 + uVar4 * 4),0,(uVar8 - uVar4) * 4);\n      *param_5 = uVar8;\n    }\n    if ((*(int *)(*param_4 + uVar1 * 4) != 0) && (*(int *)(*(int *)(param_1 + 0x38) + 0x10) == 0)) {\n      __ptr = (void *)FUN_00028700();\n      free(__ptr);\n      iVar3 = FUN_00029680();\n      return iVar3 != 0;\n    }\n    iVar3 = *(int *)(param_1 + 0x3c);\n    *(int *)(param_1 + 0x3c) = iVar3 + 1;\n    pcVar5 = (char *)FUN_00028700();\n    sVar6 = strlen(pcVar5);\n    pcVar7 = (char *)xmalloc(sVar6 + 0x14);\n    sprintf(pcVar7,"%ld=%c%s",iVar3,param_2,pcVar5);\n    free(pcVar5);\n    *(int *)(*param_4 + uVar1 * 4) = iVar3;\n    iVar3 = FUN_00029600(1,param_3);\n    if (iVar3 != 0) {\n      free(pcVar7);\n      return true;\n    }\n  }\n  return false;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "char *pcVar5;" primitive_type (pointer_declarator "*pcVar5" * identifier) ;) (declaration "size_t sVar6;" primitive_type identifier ;) (declaration "char *pcVar7;" primitive_type (pointer_declarator "*pcVar7" * identifier) ;) (declaration "void *__ptr;" primitive_type (pointer_declarator "*__ptr" * identifier) ;) (declaration "uint uVar8;" type_identifier identifier ;) (expression_statement "iVar3 = *(int *)(param_1 + 0x38);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x38)" identifier = (pointer_expression "*(int *)(param_1 + 0x38)" * (cast_expression "(int *)(param_1 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x38)" ( (binary_expression "param_1 + 0x38" identifier + number_literal) ))))) ;) (if_statement "if (iVar3 == 0) {\n                    \n    __assert_fail("info->type_stack != NULL","../../binutils/wrstabs.c",0x355,"stab_modify_type");\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n    __assert_fail("info->type_stack != NULL","../../binutils/wrstabs.c",0x355,"stab_modify_type");\n  }" { (expression_statement "__assert_fail("info->type_stack != NULL","../../binutils/wrstabs.c",0x355,"stab_modify_type");" (call_expression "__assert_fail("info->type_stack != NULL","../../binutils/wrstabs.c",0x355,"stab_modify_type")" identifier (argument_list "("info->type_stack != NULL","../../binutils/wrstabs.c",0x355,"stab_modify_type")" ( (string_literal ""info->type_stack != NULL"" " string_content ") , (string_literal ""../../binutils/wrstabs.c"" " string_content ") , number_literal , (string_literal ""stab_modify_type"" " string_content ") ))) ;) })) (expression_statement "uVar1 = *(uint *)(iVar3 + 8);" (assignment_expression "uVar1 = *(uint *)(iVar3 + 8)" identifier = (pointer_expression "*(uint *)(iVar3 + 8)" * (cast_expression "(uint *)(iVar3 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 8)" ( (binary_expression "iVar3 + 8" identifier + number_literal) ))))) ;) (if_statement "if (((int)uVar1 < 1) || (param_4 == (int *)0x0)) {\n    uVar2 = *(undefined4 *)(iVar3 + 0x10);\n    pcVar5 = (char *)FUN_00028700();\n    sVar6 = strlen(pcVar5);\n    pcVar7 = (char *)xmalloc(sVar6 + 2);\n    sprintf(pcVar7,"%c%s",param_2,pcVar5);\n    free(pcVar5);\n    iVar3 = FUN_00029600(uVar2,param_3);\n    if (iVar3 != 0) {\n      free(pcVar7);\n      return true;\n    }\n  }\n  else {\n    uVar8 = *param_5;\n    if (uVar8 <= uVar1) {\n      if ((uVar8 == 0) && (uVar8 = 10, uVar1 < 10)) {\n        iVar3 = 0x28;\n        uVar8 = 10;\n      }\n      else {\n        do {\n          uVar4 = uVar8;\n          uVar8 = uVar4 * 2;\n        } while (uVar8 <= uVar1);\n        iVar3 = uVar4 << 3;\n      }\n      iVar3 = xrealloc(*param_4,iVar3);\n      uVar4 = *param_5;\n      *param_4 = iVar3;\n      memset((void *)(iVar3 + uVar4 * 4),0,(uVar8 - uVar4) * 4);\n      *param_5 = uVar8;\n    }\n    if ((*(int *)(*param_4 + uVar1 * 4) != 0) && (*(int *)(*(int *)(param_1 + 0x38) + 0x10) == 0)) {\n      __ptr = (void *)FUN_00028700();\n      free(__ptr);\n      iVar3 = FUN_00029680();\n      return iVar3 != 0;\n    }\n    iVar3 = *(int *)(param_1 + 0x3c);\n    *(int *)(param_1 + 0x3c) = iVar3 + 1;\n    pcVar5 = (char *)FUN_00028700();\n    sVar6 = strlen(pcVar5);\n    pcVar7 = (char *)xmalloc(sVar6 + 0x14);\n    sprintf(pcVar7,"%ld=%c%s",iVar3,param_2,pcVar5);\n    free(pcVar5);\n    *(int *)(*param_4 + uVar1 * 4) = iVar3;\n    iVar3 = FUN_00029600(1,param_3);\n    if (iVar3 != 0) {\n      free(pcVar7);\n      return true;\n    }\n  }" if (parenthesized_expression "(((int)uVar1 < 1) || (param_4 == (int *)0x0))" ( (binary_expression "((int)uVar1 < 1) || (param_4 == (int *)0x0)" (parenthesized_expression "((int)uVar1 < 1)" ( (binary_expression "(int)uVar1 < 1" (cast_expression "(int)uVar1" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) || (parenthesized_expression "(param_4 == (int *)0x0)" ( (binary_expression "param_4 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    uVar2 = *(undefined4 *)(iVar3 + 0x10);\n    pcVar5 = (char *)FUN_00028700();\n    sVar6 = strlen(pcVar5);\n    pcVar7 = (char *)xmalloc(sVar6 + 2);\n    sprintf(pcVar7,"%c%s",param_2,pcVar5);\n    free(pcVar5);\n    iVar3 = FUN_00029600(uVar2,param_3);\n    if (iVar3 != 0) {\n      free(pcVar7);\n      return true;\n    }\n  }" { (expression_statement "uVar2 = *(undefined4 *)(iVar3 + 0x10);" (assignment_expression "uVar2 = *(undefined4 *)(iVar3 + 0x10)" identifier = (pointer_expression "*(undefined4 *)(iVar3 + 0x10)" * (cast_expression "(undefined4 *)(iVar3 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + 0x10)" ( (binary_expression "iVar3 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "pcVar5 = (char *)FUN_00028700();" (assignment_expression "pcVar5 = (char *)FUN_00028700()" identifier = (cast_expression "(char *)FUN_00028700()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00028700()" identifier (argument_list "()" ( ))))) ;) (expression_statement "sVar6 = strlen(pcVar5);" (assignment_expression "sVar6 = strlen(pcVar5)" identifier = (call_expression "strlen(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier )))) ;) (expression_statement "pcVar7 = (char *)xmalloc(sVar6 + 2);" (assignment_expression "pcVar7 = (char *)xmalloc(sVar6 + 2)" identifier = (cast_expression "(char *)xmalloc(sVar6 + 2)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar6 + 2)" identifier (argument_list "(sVar6 + 2)" ( (binary_expression "sVar6 + 2" identifier + number_literal) ))))) ;) (expression_statement "sprintf(pcVar7,"%c%s",param_2,pcVar5);" (call_expression "sprintf(pcVar7,"%c%s",param_2,pcVar5)" identifier (argument_list "(pcVar7,"%c%s",param_2,pcVar5)" ( identifier , (string_literal ""%c%s"" " string_content ") , identifier , identifier ))) ;) (expression_statement "free(pcVar5);" (call_expression "free(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier ))) ;) (expression_statement "iVar3 = FUN_00029600(uVar2,param_3);" (assignment_expression "iVar3 = FUN_00029600(uVar2,param_3)" identifier = (call_expression "FUN_00029600(uVar2,param_3)" identifier (argument_list "(uVar2,param_3)" ( identifier , identifier )))) ;) (if_statement "if (iVar3 != 0) {\n      free(pcVar7);\n      return true;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      free(pcVar7);\n      return true;\n    }" { (expression_statement "free(pcVar7);" (call_expression "free(pcVar7)" identifier (argument_list "(pcVar7)" ( identifier ))) ;) (return_statement "return true;" return true ;) })) }) (else_clause "else {\n    uVar8 = *param_5;\n    if (uVar8 <= uVar1) {\n      if ((uVar8 == 0) && (uVar8 = 10, uVar1 < 10)) {\n        iVar3 = 0x28;\n        uVar8 = 10;\n      }\n      else {\n        do {\n          uVar4 = uVar8;\n          uVar8 = uVar4 * 2;\n        } while (uVar8 <= uVar1);\n        iVar3 = uVar4 << 3;\n      }\n      iVar3 = xrealloc(*param_4,iVar3);\n      uVar4 = *param_5;\n      *param_4 = iVar3;\n      memset((void *)(iVar3 + uVar4 * 4),0,(uVar8 - uVar4) * 4);\n      *param_5 = uVar8;\n    }\n    if ((*(int *)(*param_4 + uVar1 * 4) != 0) && (*(int *)(*(int *)(param_1 + 0x38) + 0x10) == 0)) {\n      __ptr = (void *)FUN_00028700();\n      free(__ptr);\n      iVar3 = FUN_00029680();\n      return iVar3 != 0;\n    }\n    iVar3 = *(int *)(param_1 + 0x3c);\n    *(int *)(param_1 + 0x3c) = iVar3 + 1;\n    pcVar5 = (char *)FUN_00028700();\n    sVar6 = strlen(pcVar5);\n    pcVar7 = (char *)xmalloc(sVar6 + 0x14);\n    sprintf(pcVar7,"%ld=%c%s",iVar3,param_2,pcVar5);\n    free(pcVar5);\n    *(int *)(*param_4 + uVar1 * 4) = iVar3;\n    iVar3 = FUN_00029600(1,param_3);\n    if (iVar3 != 0) {\n      free(pcVar7);\n      return true;\n    }\n  }" else (compound_statement "{\n    uVar8 = *param_5;\n    if (uVar8 <= uVar1) {\n      if ((uVar8 == 0) && (uVar8 = 10, uVar1 < 10)) {\n        iVar3 = 0x28;\n        uVar8 = 10;\n      }\n      else {\n        do {\n          uVar4 = uVar8;\n          uVar8 = uVar4 * 2;\n        } while (uVar8 <= uVar1);\n        iVar3 = uVar4 << 3;\n      }\n      iVar3 = xrealloc(*param_4,iVar3);\n      uVar4 = *param_5;\n      *param_4 = iVar3;\n      memset((void *)(iVar3 + uVar4 * 4),0,(uVar8 - uVar4) * 4);\n      *param_5 = uVar8;\n    }\n    if ((*(int *)(*param_4 + uVar1 * 4) != 0) && (*(int *)(*(int *)(param_1 + 0x38) + 0x10) == 0)) {\n      __ptr = (void *)FUN_00028700();\n      free(__ptr);\n      iVar3 = FUN_00029680();\n      return iVar3 != 0;\n    }\n    iVar3 = *(int *)(param_1 + 0x3c);\n    *(int *)(param_1 + 0x3c) = iVar3 + 1;\n    pcVar5 = (char *)FUN_00028700();\n    sVar6 = strlen(pcVar5);\n    pcVar7 = (char *)xmalloc(sVar6 + 0x14);\n    sprintf(pcVar7,"%ld=%c%s",iVar3,param_2,pcVar5);\n    free(pcVar5);\n    *(int *)(*param_4 + uVar1 * 4) = iVar3;\n    iVar3 = FUN_00029600(1,param_3);\n    if (iVar3 != 0) {\n      free(pcVar7);\n      return true;\n    }\n  }" { (expression_statement "uVar8 = *param_5;" (assignment_expression "uVar8 = *param_5" identifier = (pointer_expression "*param_5" * identifier)) ;) (if_statement "if (uVar8 <= uVar1) {\n      if ((uVar8 == 0) && (uVar8 = 10, uVar1 < 10)) {\n        iVar3 = 0x28;\n        uVar8 = 10;\n      }\n      else {\n        do {\n          uVar4 = uVar8;\n          uVar8 = uVar4 * 2;\n        } while (uVar8 <= uVar1);\n        iVar3 = uVar4 << 3;\n      }\n      iVar3 = xrealloc(*param_4,iVar3);\n      uVar4 = *param_5;\n      *param_4 = iVar3;\n      memset((void *)(iVar3 + uVar4 * 4),0,(uVar8 - uVar4) * 4);\n      *param_5 = uVar8;\n    }" if (parenthesized_expression "(uVar8 <= uVar1)" ( (binary_expression "uVar8 <= uVar1" identifier <= identifier) )) (compound_statement "{\n      if ((uVar8 == 0) && (uVar8 = 10, uVar1 < 10)) {\n        iVar3 = 0x28;\n        uVar8 = 10;\n      }\n      else {\n        do {\n          uVar4 = uVar8;\n          uVar8 = uVar4 * 2;\n        } while (uVar8 <= uVar1);\n        iVar3 = uVar4 << 3;\n      }\n      iVar3 = xrealloc(*param_4,iVar3);\n      uVar4 = *param_5;\n      *param_4 = iVar3;\n      memset((void *)(iVar3 + uVar4 * 4),0,(uVar8 - uVar4) * 4);\n      *param_5 = uVar8;\n    }" { (if_statement "if ((uVar8 == 0) && (uVar8 = 10, uVar1 < 10)) {\n        iVar3 = 0x28;\n        uVar8 = 10;\n      }\n      else {\n        do {\n          uVar4 = uVar8;\n          uVar8 = uVar4 * 2;\n        } while (uVar8 <= uVar1);\n        iVar3 = uVar4 << 3;\n      }" if (parenthesized_expression "((uVar8 == 0) && (uVar8 = 10, uVar1 < 10))" ( (binary_expression "(uVar8 == 0) && (uVar8 = 10, uVar1 < 10)" (parenthesized_expression "(uVar8 == 0)" ( (binary_expression "uVar8 == 0" identifier == number_literal) )) && (parenthesized_expression "(uVar8 = 10, uVar1 < 10)" ( (comma_expression "uVar8 = 10, uVar1 < 10" (assignment_expression "uVar8 = 10" identifier = number_literal) , (binary_expression "uVar1 < 10" identifier < number_literal)) ))) )) (compound_statement "{\n        iVar3 = 0x28;\n        uVar8 = 10;\n      }" { (expression_statement "iVar3 = 0x28;" (assignment_expression "iVar3 = 0x28" identifier = number_literal) ;) (expression_statement "uVar8 = 10;" (assignment_expression "uVar8 = 10" identifier = number_literal) ;) }) (else_clause "else {\n        do {\n          uVar4 = uVar8;\n          uVar8 = uVar4 * 2;\n        } while (uVar8 <= uVar1);\n        iVar3 = uVar4 << 3;\n      }" else (compound_statement "{\n        do {\n          uVar4 = uVar8;\n          uVar8 = uVar4 * 2;\n        } while (uVar8 <= uVar1);\n        iVar3 = uVar4 << 3;\n      }" { (do_statement "do {\n          uVar4 = uVar8;\n          uVar8 = uVar4 * 2;\n        } while (uVar8 <= uVar1);" do (compound_statement "{\n          uVar4 = uVar8;\n          uVar8 = uVar4 * 2;\n        }" { (expression_statement "uVar4 = uVar8;" (assignment_expression "uVar4 = uVar8" identifier = identifier) ;) (expression_statement "uVar8 = uVar4 * 2;" (assignment_expression "uVar8 = uVar4 * 2" identifier = (binary_expression "uVar4 * 2" identifier * number_literal)) ;) }) while (parenthesized_expression "(uVar8 <= uVar1)" ( (binary_expression "uVar8 <= uVar1" identifier <= identifier) )) ;) (expression_statement "iVar3 = uVar4 << 3;" (assignment_expression "iVar3 = uVar4 << 3" identifier = (binary_expression "uVar4 << 3" identifier << number_literal)) ;) }))) (expression_statement "iVar3 = xrealloc(*param_4,iVar3);" (assignment_expression "iVar3 = xrealloc(*param_4,iVar3)" identifier = (call_expression "xrealloc(*param_4,iVar3)" identifier (argument_list "(*param_4,iVar3)" ( (pointer_expression "*param_4" * identifier) , identifier )))) ;) (expression_statement "uVar4 = *param_5;" (assignment_expression "uVar4 = *param_5" identifier = (pointer_expression "*param_5" * identifier)) ;) (expression_statement "*param_4 = iVar3;" (assignment_expression "*param_4 = iVar3" (pointer_expression "*param_4" * identifier) = identifier) ;) (expression_statement "memset((void *)(iVar3 + uVar4 * 4),0,(uVar8 - uVar4) * 4);" (call_expression "memset((void *)(iVar3 + uVar4 * 4),0,(uVar8 - uVar4) * 4)" identifier (argument_list "((void *)(iVar3 + uVar4 * 4),0,(uVar8 - uVar4) * 4)" ( (cast_expression "(void *)(iVar3 + uVar4 * 4)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar3 + uVar4 * 4)" ( (binary_expression "iVar3 + uVar4 * 4" identifier + (binary_expression "uVar4 * 4" identifier * number_literal)) ))) , number_literal , (binary_expression "(uVar8 - uVar4) * 4" (parenthesized_expression "(uVar8 - uVar4)" ( (binary_expression "uVar8 - uVar4" identifier - identifier) )) * number_literal) ))) ;) (expression_statement "*param_5 = uVar8;" (assignment_expression "*param_5 = uVar8" (pointer_expression "*param_5" * identifier) = identifier) ;) })) (if_statement "if ((*(int *)(*param_4 + uVar1 * 4) != 0) && (*(int *)(*(int *)(param_1 + 0x38) + 0x10) == 0)) {\n      __ptr = (void *)FUN_00028700();\n      free(__ptr);\n      iVar3 = FUN_00029680();\n      return iVar3 != 0;\n    }" if (parenthesized_expression "((*(int *)(*param_4 + uVar1 * 4) != 0) && (*(int *)(*(int *)(param_1 + 0x38) + 0x10) == 0))" ( (binary_expression "(*(int *)(*param_4 + uVar1 * 4) != 0) && (*(int *)(*(int *)(param_1 + 0x38) + 0x10) == 0)" (parenthesized_expression "(*(int *)(*param_4 + uVar1 * 4) != 0)" ( (binary_expression "*(int *)(*param_4 + uVar1 * 4) != 0" (pointer_expression "*(int *)(*param_4 + uVar1 * 4)" * (cast_expression "(int *)(*param_4 + uVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_4 + uVar1 * 4)" ( (binary_expression "*param_4 + uVar1 * 4" (pointer_expression "*param_4" * identifier) + (binary_expression "uVar1 * 4" identifier * number_literal)) )))) != number_literal) )) && (parenthesized_expression "(*(int *)(*(int *)(param_1 + 0x38) + 0x10) == 0)" ( (binary_expression "*(int *)(*(int *)(param_1 + 0x38) + 0x10) == 0" (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) )))) == number_literal) ))) )) (compound_statement "{\n      __ptr = (void *)FUN_00028700();\n      free(__ptr);\n      iVar3 = FUN_00029680();\n      return iVar3 != 0;\n    }" { (expression_statement "__ptr = (void *)FUN_00028700();" (assignment_expression "__ptr = (void *)FUN_00028700()" identifier = (cast_expression "(void *)FUN_00028700()" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00028700()" identifier (argument_list "()" ( ))))) ;) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" identifier (argument_list "(__ptr)" ( identifier ))) ;) (expression_statement "iVar3 = FUN_00029680();" (assignment_expression "iVar3 = FUN_00029680()" identifier = (call_expression "FUN_00029680()" identifier (argument_list "()" ( )))) ;) (return_statement "return iVar3 != 0;" return (binary_expression "iVar3 != 0" identifier != number_literal) ;) })) (expression_statement "iVar3 = *(int *)(param_1 + 0x3c);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x3c)" identifier = (pointer_expression "*(int *)(param_1 + 0x3c)" * (cast_expression "(int *)(param_1 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_1 + 0x3c) = iVar3 + 1;" (assignment_expression "*(int *)(param_1 + 0x3c) = iVar3 + 1" (pointer_expression "*(int *)(param_1 + 0x3c)" * (cast_expression "(int *)(param_1 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))) = (binary_expression "iVar3 + 1" identifier + number_literal)) ;) (expression_statement "pcVar5 = (char *)FUN_00028700();" (assignment_expression "pcVar5 = (char *)FUN_00028700()" identifier = (cast_expression "(char *)FUN_00028700()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00028700()" identifier (argument_list "()" ( ))))) ;) (expression_statement "sVar6 = strlen(pcVar5);" (assignment_expression "sVar6 = strlen(pcVar5)" identifier = (call_expression "strlen(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier )))) ;) (expression_statement "pcVar7 = (char *)xmalloc(sVar6 + 0x14);" (assignment_expression "pcVar7 = (char *)xmalloc(sVar6 + 0x14)" identifier = (cast_expression "(char *)xmalloc(sVar6 + 0x14)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "xmalloc(sVar6 + 0x14)" identifier (argument_list "(sVar6 + 0x14)" ( (binary_expression "sVar6 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "sprintf(pcVar7,"%ld=%c%s",iVar3,param_2,pcVar5);" (call_expression "sprintf(pcVar7,"%ld=%c%s",iVar3,param_2,pcVar5)" identifier (argument_list "(pcVar7,"%ld=%c%s",iVar3,param_2,pcVar5)" ( identifier , (string_literal ""%ld=%c%s"" " string_content ") , identifier , identifier , identifier ))) ;) (expression_statement "free(pcVar5);" (call_expression "free(pcVar5)" identifier (argument_list "(pcVar5)" ( identifier ))) ;) (expression_statement "*(int *)(*param_4 + uVar1 * 4) = iVar3;" (assignment_expression "*(int *)(*param_4 + uVar1 * 4) = iVar3" (pointer_expression "*(int *)(*param_4 + uVar1 * 4)" * (cast_expression "(int *)(*param_4 + uVar1 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_4 + uVar1 * 4)" ( (binary_expression "*param_4 + uVar1 * 4" (pointer_expression "*param_4" * identifier) + (binary_expression "uVar1 * 4" identifier * number_literal)) )))) = identifier) ;) (expression_statement "iVar3 = FUN_00029600(1,param_3);" (assignment_expression "iVar3 = FUN_00029600(1,param_3)" identifier = (call_expression "FUN_00029600(1,param_3)" identifier (argument_list "(1,param_3)" ( number_literal , identifier )))) ;) (if_statement "if (iVar3 != 0) {\n      free(pcVar7);\n      return true;\n    }" if (parenthesized_expression "(iVar3 != 0)" ( (binary_expression "iVar3 != 0" identifier != number_literal) )) (compound_statement "{\n      free(pcVar7);\n      return true;\n    }" { (expression_statement "free(pcVar7);" (call_expression "free(pcVar7)" identifier (argument_list "(pcVar7)" ( identifier ))) ;) (return_statement "return true;" return true ;) })) }))) (return_statement "return false;" return false ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE 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 IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , (string_literal " string_content ") , LIT , (string_literal " string_content ") ))) ;) })) (expression_statement (assignment_expression IDENT = (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 (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) || (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ))) )) (compound_statement { (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 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 (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return BOOL ;) })) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = LIT) , (binary_expression IDENT < LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT << LIT)) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))) , LIT , (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) * LIT) ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + (binary_expression IDENT * LIT)) )))) != LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (return_statement return (binary_expression 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) )))) = (binary_expression IDENT + 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 (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT , IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + (binary_expression IDENT * LIT)) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (return_statement return BOOL ;) })) }))) (return_statement return BOOL ;) })))
(function_definition "bool __regparm3\nFUN_00029b20(int param_1,undefined4 param_2,undefined4 param_3,int *param_4,uint *param_5)\n\n{\n  uint uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  uint uVar4;\n  char *pcVar5;\n  size_t sVar6;\n  char *pcVar7;\n  void *__ptr;\n  uint uVar8;\n  \n  iVar3 = *(int *)(param_1 + 0x38);\n  if (iVar3 == 0) {\n                    \n    __assert_fail("info->type_stack != NULL","../../binutils/wrstabs.c",0x355,"stab_modify_type");\n  }\n  uVar1 = *(uint *)(iVar3 + 8);\n  if (((int)uVar1 < 1) || (param_4 == (int *)0x0)) {\n    uVar2 = *(undefined4 *)(iVar3 + 0x10);\n    pcVar5 = (char *)FUN_00028700();\n    sVar6 = strlen(pcVar5);\n    pcVar7 = (char *)xmalloc(sVar6 + 2);\n    sprintf(pcVar7,"%c%s",param_2,pcVar5);\n    free(pcVar5);\n    iVar3 = FUN_00029600(uVar2,param_3);\n    if (iVar3 != 0) {\n      free(pcVar7);\n      return true;\n    }\n  }\n  else {\n    uVar8 = *param_5;\n    if (uVar8 <= uVar1) {\n      if ((uVar8 == 0) && (uVar8 = 10, uVar1 < 10)) {\n        iVar3 = 0x28;\n        uVar8 = 10;\n      }\n      else {\n        do {\n          uVar4 = uVar8;\n          uVar8 = uVar4 * 2;\n        } while (uVar8 <= uVar1);\n        iVar3 = uVar4 << 3;\n      }\n      iVar3 = xrealloc(*param_4,iVar3);\n      uVar4 = *param_5;\n      *param_4 = iVar3;\n      memset((void *)(iVar3 + uVar4 * 4),0,(uVar8 - uVar4) * 4);\n      *param_5 = uVar8;\n    }\n    if ((*(int *)(*param_4 + uVar1 * 4) != 0) && (*(int *)(*(int *)(param_1 + 0x38) + 0x10) == 0)) {\n      __ptr = (void *)FUN_00028700();\n      free(__ptr);\n      iVar3 = FUN_00029680();\n      return iVar3 != 0;\n    }\n    iVar3 = *(int *)(param_1 + 0x3c);\n    *(int *)(param_1 + 0x3c) = iVar3 + 1;\n    pcVar5 = (char *)FUN_00028700();\n    sVar6 = strlen(pcVar5);\n    pcVar7 = (char *)xmalloc(sVar6 + 0x14);\n    sprintf(pcVar7,"%ld=%c%s",iVar3,param_2,pcVar5);\n    free(pcVar5);\n    *(int *)(*param_4 + uVar1 * 4) = iVar3;\n    iVar3 = FUN_00029600(1,param_3);\n    if (iVar3 != 0) {\n      free(pcVar7);\n      return true;\n    }\n  }\n  return false;\n}" (primitive_type "bool") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00029b20(int param_1,undefined4 param_2,undefined4 param_3,int *param_4,uint *param_5)" (identifier "FUN_00029b20") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,int *param_4,uint *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") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "uint *param_5" (type_identifier "uint") (pointer_declarator "*param_5" (* "*") (identifier "param_5"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  undefined4 uVar2;\n  int iVar3;\n  uint uVar4;\n  char *pcVar5;\n  size_t sVar6;\n  char *pcVar7;\n  void *__ptr;\n  uint uVar8;\n  \n  iVar3 = *(int *)(param_1 + 0x38);\n  if (iVar3 == 0) {\n                    \n    __assert_fail("info->type_stack != NULL","../../binutils/wrstabs.c",0x355,"stab_modify_type");\n  }\n  uVar1 = *(uint *)(iVar3 + 8);\n  if (((int)uVar1 < 1) || (param_4 == (int *)0x0)) {\n    uVar2 = *(undefined4 *)(iVar3 + 0x10);\n    pcVar5 = (char *)FUN_00028700();\n    sVar6 = strlen(pcVar5);\n    pcVar7 = (char *)xmalloc(sVar6 + 2);\n    sprintf(pcVar7,"%c%s",param_2,pcVar5);\n    free(pcVar5);\n    iVar3 = FUN_00029600(uVar2,param_3);\n    if (iVar3 != 0) {\n      free(pcVar7);\n      return true;\n    }\n  }\n  else {\n    uVar8 = *param_5;\n    if (uVar8 <= uVar1) {\n      if ((uVar8 == 0) && (uVar8 = 10, uVar1 < 10)) {\n        iVar3 = 0x28;\n        uVar8 = 10;\n      }\n      else {\n        do {\n          uVar4 = uVar8;\n          uVar8 = uVar4 * 2;\n        } while (uVar8 <= uVar1);\n        iVar3 = uVar4 << 3;\n      }\n      iVar3 = xrealloc(*param_4,iVar3);\n      uVar4 = *param_5;\n      *param_4 = iVar3;\n      memset((void *)(iVar3 + uVar4 * 4),0,(uVar8 - uVar4) * 4);\n      *param_5 = uVar8;\n    }\n    if ((*(int *)(*param_4 + uVar1 * 4) != 0) && (*(int *)(*(int *)(param_1 + 0x38) + 0x10) == 0)) {\n      __ptr = (void *)FUN_00028700();\n      free(__ptr);\n      iVar3 = FUN_00029680();\n      return iVar3 != 0;\n    }\n    iVar3 = *(int *)(param_1 + 0x3c);\n    *(int *)(param_1 + 0x3c) = iVar3 + 1;\n    pcVar5 = (char *)FUN_00028700();\n    sVar6 = strlen(pcVar5);\n    pcVar7 = (char *)xmalloc(sVar6 + 0x14);\n    sprintf(pcVar7,"%ld=%c%s",iVar3,param_2,pcVar5);\n    free(pcVar5);\n    *(int *)(*param_4 + uVar1 * 4) = iVar3;\n    iVar3 = FUN_00029600(1,param_3);\n    if (iVar3 != 0) {\n      free(pcVar7);\n      return true;\n    }\n  }\n  return false;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "char *pcVar5;" (primitive_type "char") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "size_t sVar6;" (primitive_type "size_t") (identifier "sVar6") (; ";")) (declaration "char *pcVar7;" (primitive_type "char") (pointer_declarator "*pcVar7" (* "*") (identifier "pcVar7")) (; ";")) (declaration "void *__ptr;" (primitive_type "void") (pointer_declarator "*__ptr" (* "*") (identifier "__ptr")) (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (expression_statement "iVar3 = *(int *)(param_1 + 0x38);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x38)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_1 + 0x38)" (* "*") (cast_expression "(int *)(param_1 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x38)" (( "(") (binary_expression "param_1 + 0x38" (identifier "param_1") (+ "+") (number_literal "0x38")) () ")"))))) (; ";")) (if_statement "if (iVar3 == 0) {\n                    \n    __assert_fail("info->type_stack != NULL","../../binutils/wrstabs.c",0x355,"stab_modify_type");\n  }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n    __assert_fail("info->type_stack != NULL","../../binutils/wrstabs.c",0x355,"stab_modify_type");\n  }" ({ "{") (expression_statement "__assert_fail("info->type_stack != NULL","../../binutils/wrstabs.c",0x355,"stab_modify_type");" (call_expression "__assert_fail("info->type_stack != NULL","../../binutils/wrstabs.c",0x355,"stab_modify_type")" (identifier "__assert_fail") (argument_list "("info->type_stack != NULL","../../binutils/wrstabs.c",0x355,"stab_modify_type")" (( "(") (string_literal ""info->type_stack != NULL"" (" """) (string_content "info->type_stack != NULL") (" """)) (, ",") (string_literal ""../../binutils/wrstabs.c"" (" """) (string_content "../../binutils/wrstabs.c") (" """)) (, ",") (number_literal "0x355") (, ",") (string_literal ""stab_modify_type"" (" """) (string_content "stab_modify_type") (" """)) () ")"))) (; ";")) (} "}"))) (expression_statement "uVar1 = *(uint *)(iVar3 + 8);" (assignment_expression "uVar1 = *(uint *)(iVar3 + 8)" (identifier "uVar1") (= "=") (pointer_expression "*(uint *)(iVar3 + 8)" (* "*") (cast_expression "(uint *)(iVar3 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 8)" (( "(") (binary_expression "iVar3 + 8" (identifier "iVar3") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if (((int)uVar1 < 1) || (param_4 == (int *)0x0)) {\n    uVar2 = *(undefined4 *)(iVar3 + 0x10);\n    pcVar5 = (char *)FUN_00028700();\n    sVar6 = strlen(pcVar5);\n    pcVar7 = (char *)xmalloc(sVar6 + 2);\n    sprintf(pcVar7,"%c%s",param_2,pcVar5);\n    free(pcVar5);\n    iVar3 = FUN_00029600(uVar2,param_3);\n    if (iVar3 != 0) {\n      free(pcVar7);\n      return true;\n    }\n  }\n  else {\n    uVar8 = *param_5;\n    if (uVar8 <= uVar1) {\n      if ((uVar8 == 0) && (uVar8 = 10, uVar1 < 10)) {\n        iVar3 = 0x28;\n        uVar8 = 10;\n      }\n      else {\n        do {\n          uVar4 = uVar8;\n          uVar8 = uVar4 * 2;\n        } while (uVar8 <= uVar1);\n        iVar3 = uVar4 << 3;\n      }\n      iVar3 = xrealloc(*param_4,iVar3);\n      uVar4 = *param_5;\n      *param_4 = iVar3;\n      memset((void *)(iVar3 + uVar4 * 4),0,(uVar8 - uVar4) * 4);\n      *param_5 = uVar8;\n    }\n    if ((*(int *)(*param_4 + uVar1 * 4) != 0) && (*(int *)(*(int *)(param_1 + 0x38) + 0x10) == 0)) {\n      __ptr = (void *)FUN_00028700();\n      free(__ptr);\n      iVar3 = FUN_00029680();\n      return iVar3 != 0;\n    }\n    iVar3 = *(int *)(param_1 + 0x3c);\n    *(int *)(param_1 + 0x3c) = iVar3 + 1;\n    pcVar5 = (char *)FUN_00028700();\n    sVar6 = strlen(pcVar5);\n    pcVar7 = (char *)xmalloc(sVar6 + 0x14);\n    sprintf(pcVar7,"%ld=%c%s",iVar3,param_2,pcVar5);\n    free(pcVar5);\n    *(int *)(*param_4 + uVar1 * 4) = iVar3;\n    iVar3 = FUN_00029600(1,param_3);\n    if (iVar3 != 0) {\n      free(pcVar7);\n      return true;\n    }\n  }" (if "if") (parenthesized_expression "(((int)uVar1 < 1) || (param_4 == (int *)0x0))" (( "(") (binary_expression "((int)uVar1 < 1) || (param_4 == (int *)0x0)" (parenthesized_expression "((int)uVar1 < 1)" (( "(") (binary_expression "(int)uVar1 < 1" (cast_expression "(int)uVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar1")) (< "<") (number_literal "1")) () ")")) (|| "||") (parenthesized_expression "(param_4 == (int *)0x0)" (( "(") (binary_expression "param_4 == (int *)0x0" (identifier "param_4") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")"))) () ")")) (compound_statement "{\n    uVar2 = *(undefined4 *)(iVar3 + 0x10);\n    pcVar5 = (char *)FUN_00028700();\n    sVar6 = strlen(pcVar5);\n    pcVar7 = (char *)xmalloc(sVar6 + 2);\n    sprintf(pcVar7,"%c%s",param_2,pcVar5);\n    free(pcVar5);\n    iVar3 = FUN_00029600(uVar2,param_3);\n    if (iVar3 != 0) {\n      free(pcVar7);\n      return true;\n    }\n  }" ({ "{") (expression_statement "uVar2 = *(undefined4 *)(iVar3 + 0x10);" (assignment_expression "uVar2 = *(undefined4 *)(iVar3 + 0x10)" (identifier "uVar2") (= "=") (pointer_expression "*(undefined4 *)(iVar3 + 0x10)" (* "*") (cast_expression "(undefined4 *)(iVar3 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + 0x10)" (( "(") (binary_expression "iVar3 + 0x10" (identifier "iVar3") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "pcVar5 = (char *)FUN_00028700();" (assignment_expression "pcVar5 = (char *)FUN_00028700()" (identifier "pcVar5") (= "=") (cast_expression "(char *)FUN_00028700()" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00028700()" (identifier "FUN_00028700") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "sVar6 = strlen(pcVar5);" (assignment_expression "sVar6 = strlen(pcVar5)" (identifier "sVar6") (= "=") (call_expression "strlen(pcVar5)" (identifier "strlen") (argument_list "(pcVar5)" (( "(") (identifier "pcVar5") () ")")))) (; ";")) (expression_statement "pcVar7 = (char *)xmalloc(sVar6 + 2);" (assignment_expression "pcVar7 = (char *)xmalloc(sVar6 + 2)" (identifier "pcVar7") (= "=") (cast_expression "(char *)xmalloc(sVar6 + 2)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(sVar6 + 2)" (identifier "xmalloc") (argument_list "(sVar6 + 2)" (( "(") (binary_expression "sVar6 + 2" (identifier "sVar6") (+ "+") (number_literal "2")) () ")"))))) (; ";")) (expression_statement "sprintf(pcVar7,"%c%s",param_2,pcVar5);" (call_expression "sprintf(pcVar7,"%c%s",param_2,pcVar5)" (identifier "sprintf") (argument_list "(pcVar7,"%c%s",param_2,pcVar5)" (( "(") (identifier "pcVar7") (, ",") (string_literal ""%c%s"" (" """) (string_content "%c%s") (" """)) (, ",") (identifier "param_2") (, ",") (identifier "pcVar5") () ")"))) (; ";")) (expression_statement "free(pcVar5);" (call_expression "free(pcVar5)" (identifier "free") (argument_list "(pcVar5)" (( "(") (identifier "pcVar5") () ")"))) (; ";")) (expression_statement "iVar3 = FUN_00029600(uVar2,param_3);" (assignment_expression "iVar3 = FUN_00029600(uVar2,param_3)" (identifier "iVar3") (= "=") (call_expression "FUN_00029600(uVar2,param_3)" (identifier "FUN_00029600") (argument_list "(uVar2,param_3)" (( "(") (identifier "uVar2") (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\n      free(pcVar7);\n      return true;\n    }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      free(pcVar7);\n      return true;\n    }" ({ "{") (expression_statement "free(pcVar7);" (call_expression "free(pcVar7)" (identifier "free") (argument_list "(pcVar7)" (( "(") (identifier "pcVar7") () ")"))) (; ";")) (return_statement "return true;" (return "return") (true "true") (; ";")) (} "}"))) (} "}")) (else_clause "else {\n    uVar8 = *param_5;\n    if (uVar8 <= uVar1) {\n      if ((uVar8 == 0) && (uVar8 = 10, uVar1 < 10)) {\n        iVar3 = 0x28;\n        uVar8 = 10;\n      }\n      else {\n        do {\n          uVar4 = uVar8;\n          uVar8 = uVar4 * 2;\n        } while (uVar8 <= uVar1);\n        iVar3 = uVar4 << 3;\n      }\n      iVar3 = xrealloc(*param_4,iVar3);\n      uVar4 = *param_5;\n      *param_4 = iVar3;\n      memset((void *)(iVar3 + uVar4 * 4),0,(uVar8 - uVar4) * 4);\n      *param_5 = uVar8;\n    }\n    if ((*(int *)(*param_4 + uVar1 * 4) != 0) && (*(int *)(*(int *)(param_1 + 0x38) + 0x10) == 0)) {\n      __ptr = (void *)FUN_00028700();\n      free(__ptr);\n      iVar3 = FUN_00029680();\n      return iVar3 != 0;\n    }\n    iVar3 = *(int *)(param_1 + 0x3c);\n    *(int *)(param_1 + 0x3c) = iVar3 + 1;\n    pcVar5 = (char *)FUN_00028700();\n    sVar6 = strlen(pcVar5);\n    pcVar7 = (char *)xmalloc(sVar6 + 0x14);\n    sprintf(pcVar7,"%ld=%c%s",iVar3,param_2,pcVar5);\n    free(pcVar5);\n    *(int *)(*param_4 + uVar1 * 4) = iVar3;\n    iVar3 = FUN_00029600(1,param_3);\n    if (iVar3 != 0) {\n      free(pcVar7);\n      return true;\n    }\n  }" (else "else") (compound_statement "{\n    uVar8 = *param_5;\n    if (uVar8 <= uVar1) {\n      if ((uVar8 == 0) && (uVar8 = 10, uVar1 < 10)) {\n        iVar3 = 0x28;\n        uVar8 = 10;\n      }\n      else {\n        do {\n          uVar4 = uVar8;\n          uVar8 = uVar4 * 2;\n        } while (uVar8 <= uVar1);\n        iVar3 = uVar4 << 3;\n      }\n      iVar3 = xrealloc(*param_4,iVar3);\n      uVar4 = *param_5;\n      *param_4 = iVar3;\n      memset((void *)(iVar3 + uVar4 * 4),0,(uVar8 - uVar4) * 4);\n      *param_5 = uVar8;\n    }\n    if ((*(int *)(*param_4 + uVar1 * 4) != 0) && (*(int *)(*(int *)(param_1 + 0x38) + 0x10) == 0)) {\n      __ptr = (void *)FUN_00028700();\n      free(__ptr);\n      iVar3 = FUN_00029680();\n      return iVar3 != 0;\n    }\n    iVar3 = *(int *)(param_1 + 0x3c);\n    *(int *)(param_1 + 0x3c) = iVar3 + 1;\n    pcVar5 = (char *)FUN_00028700();\n    sVar6 = strlen(pcVar5);\n    pcVar7 = (char *)xmalloc(sVar6 + 0x14);\n    sprintf(pcVar7,"%ld=%c%s",iVar3,param_2,pcVar5);\n    free(pcVar5);\n    *(int *)(*param_4 + uVar1 * 4) = iVar3;\n    iVar3 = FUN_00029600(1,param_3);\n    if (iVar3 != 0) {\n      free(pcVar7);\n      return true;\n    }\n  }" ({ "{") (expression_statement "uVar8 = *param_5;" (assignment_expression "uVar8 = *param_5" (identifier "uVar8") (= "=") (pointer_expression "*param_5" (* "*") (identifier "param_5"))) (; ";")) (if_statement "if (uVar8 <= uVar1) {\n      if ((uVar8 == 0) && (uVar8 = 10, uVar1 < 10)) {\n        iVar3 = 0x28;\n        uVar8 = 10;\n      }\n      else {\n        do {\n          uVar4 = uVar8;\n          uVar8 = uVar4 * 2;\n        } while (uVar8 <= uVar1);\n        iVar3 = uVar4 << 3;\n      }\n      iVar3 = xrealloc(*param_4,iVar3);\n      uVar4 = *param_5;\n      *param_4 = iVar3;\n      memset((void *)(iVar3 + uVar4 * 4),0,(uVar8 - uVar4) * 4);\n      *param_5 = uVar8;\n    }" (if "if") (parenthesized_expression "(uVar8 <= uVar1)" (( "(") (binary_expression "uVar8 <= uVar1" (identifier "uVar8") (<= "<=") (identifier "uVar1")) () ")")) (compound_statement "{\n      if ((uVar8 == 0) && (uVar8 = 10, uVar1 < 10)) {\n        iVar3 = 0x28;\n        uVar8 = 10;\n      }\n      else {\n        do {\n          uVar4 = uVar8;\n          uVar8 = uVar4 * 2;\n        } while (uVar8 <= uVar1);\n        iVar3 = uVar4 << 3;\n      }\n      iVar3 = xrealloc(*param_4,iVar3);\n      uVar4 = *param_5;\n      *param_4 = iVar3;\n      memset((void *)(iVar3 + uVar4 * 4),0,(uVar8 - uVar4) * 4);\n      *param_5 = uVar8;\n    }" ({ "{") (if_statement "if ((uVar8 == 0) && (uVar8 = 10, uVar1 < 10)) {\n        iVar3 = 0x28;\n        uVar8 = 10;\n      }\n      else {\n        do {\n          uVar4 = uVar8;\n          uVar8 = uVar4 * 2;\n        } while (uVar8 <= uVar1);\n        iVar3 = uVar4 << 3;\n      }" (if "if") (parenthesized_expression "((uVar8 == 0) && (uVar8 = 10, uVar1 < 10))" (( "(") (binary_expression "(uVar8 == 0) && (uVar8 = 10, uVar1 < 10)" (parenthesized_expression "(uVar8 == 0)" (( "(") (binary_expression "uVar8 == 0" (identifier "uVar8") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(uVar8 = 10, uVar1 < 10)" (( "(") (comma_expression "uVar8 = 10, uVar1 < 10" (assignment_expression "uVar8 = 10" (identifier "uVar8") (= "=") (number_literal "10")) (, ",") (binary_expression "uVar1 < 10" (identifier "uVar1") (< "<") (number_literal "10"))) () ")"))) () ")")) (compound_statement "{\n        iVar3 = 0x28;\n        uVar8 = 10;\n      }" ({ "{") (expression_statement "iVar3 = 0x28;" (assignment_expression "iVar3 = 0x28" (identifier "iVar3") (= "=") (number_literal "0x28")) (; ";")) (expression_statement "uVar8 = 10;" (assignment_expression "uVar8 = 10" (identifier "uVar8") (= "=") (number_literal "10")) (; ";")) (} "}")) (else_clause "else {\n        do {\n          uVar4 = uVar8;\n          uVar8 = uVar4 * 2;\n        } while (uVar8 <= uVar1);\n        iVar3 = uVar4 << 3;\n      }" (else "else") (compound_statement "{\n        do {\n          uVar4 = uVar8;\n          uVar8 = uVar4 * 2;\n        } while (uVar8 <= uVar1);\n        iVar3 = uVar4 << 3;\n      }" ({ "{") (do_statement "do {\n          uVar4 = uVar8;\n          uVar8 = uVar4 * 2;\n        } while (uVar8 <= uVar1);" (do "do") (compound_statement "{\n          uVar4 = uVar8;\n          uVar8 = uVar4 * 2;\n        }" ({ "{") (expression_statement "uVar4 = uVar8;" (assignment_expression "uVar4 = uVar8" (identifier "uVar4") (= "=") (identifier "uVar8")) (; ";")) (expression_statement "uVar8 = uVar4 * 2;" (assignment_expression "uVar8 = uVar4 * 2" (identifier "uVar8") (= "=") (binary_expression "uVar4 * 2" (identifier "uVar4") (* "*") (number_literal "2"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar8 <= uVar1)" (( "(") (binary_expression "uVar8 <= uVar1" (identifier "uVar8") (<= "<=") (identifier "uVar1")) () ")")) (; ";")) (expression_statement "iVar3 = uVar4 << 3;" (assignment_expression "iVar3 = uVar4 << 3" (identifier "iVar3") (= "=") (binary_expression "uVar4 << 3" (identifier "uVar4") (<< "<<") (number_literal "3"))) (; ";")) (} "}")))) (expression_statement "iVar3 = xrealloc(*param_4,iVar3);" (assignment_expression "iVar3 = xrealloc(*param_4,iVar3)" (identifier "iVar3") (= "=") (call_expression "xrealloc(*param_4,iVar3)" (identifier "xrealloc") (argument_list "(*param_4,iVar3)" (( "(") (pointer_expression "*param_4" (* "*") (identifier "param_4")) (, ",") (identifier "iVar3") () ")")))) (; ";")) (expression_statement "uVar4 = *param_5;" (assignment_expression "uVar4 = *param_5" (identifier "uVar4") (= "=") (pointer_expression "*param_5" (* "*") (identifier "param_5"))) (; ";")) (expression_statement "*param_4 = iVar3;" (assignment_expression "*param_4 = iVar3" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "memset((void *)(iVar3 + uVar4 * 4),0,(uVar8 - uVar4) * 4);" (call_expression "memset((void *)(iVar3 + uVar4 * 4),0,(uVar8 - uVar4) * 4)" (identifier "memset") (argument_list "((void *)(iVar3 + uVar4 * 4),0,(uVar8 - uVar4) * 4)" (( "(") (cast_expression "(void *)(iVar3 + uVar4 * 4)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar3 + uVar4 * 4)" (( "(") (binary_expression "iVar3 + uVar4 * 4" (identifier "iVar3") (+ "+") (binary_expression "uVar4 * 4" (identifier "uVar4") (* "*") (number_literal "4"))) () ")"))) (, ",") (number_literal "0") (, ",") (binary_expression "(uVar8 - uVar4) * 4" (parenthesized_expression "(uVar8 - uVar4)" (( "(") (binary_expression "uVar8 - uVar4" (identifier "uVar8") (- "-") (identifier "uVar4")) () ")")) (* "*") (number_literal "4")) () ")"))) (; ";")) (expression_statement "*param_5 = uVar8;" (assignment_expression "*param_5 = uVar8" (pointer_expression "*param_5" (* "*") (identifier "param_5")) (= "=") (identifier "uVar8")) (; ";")) (} "}"))) (if_statement "if ((*(int *)(*param_4 + uVar1 * 4) != 0) && (*(int *)(*(int *)(param_1 + 0x38) + 0x10) == 0)) {\n      __ptr = (void *)FUN_00028700();\n      free(__ptr);\n      iVar3 = FUN_00029680();\n      return iVar3 != 0;\n    }" (if "if") (parenthesized_expression "((*(int *)(*param_4 + uVar1 * 4) != 0) && (*(int *)(*(int *)(param_1 + 0x38) + 0x10) == 0))" (( "(") (binary_expression "(*(int *)(*param_4 + uVar1 * 4) != 0) && (*(int *)(*(int *)(param_1 + 0x38) + 0x10) == 0)" (parenthesized_expression "(*(int *)(*param_4 + uVar1 * 4) != 0)" (( "(") (binary_expression "*(int *)(*param_4 + uVar1 * 4) != 0" (pointer_expression "*(int *)(*param_4 + uVar1 * 4)" (* "*") (cast_expression "(int *)(*param_4 + uVar1 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_4 + uVar1 * 4)" (( "(") (binary_expression "*param_4 + uVar1 * 4" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (+ "+") (binary_expression "uVar1 * 4" (identifier "uVar1") (* "*") (number_literal "4"))) () ")")))) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(*(int *)(param_1 + 0x38) + 0x10) == 0)" (( "(") (binary_expression "*(int *)(*(int *)(param_1 + 0x38) + 0x10) == 0" (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")) () ")")))) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      __ptr = (void *)FUN_00028700();\n      free(__ptr);\n      iVar3 = FUN_00029680();\n      return iVar3 != 0;\n    }" ({ "{") (expression_statement "__ptr = (void *)FUN_00028700();" (assignment_expression "__ptr = (void *)FUN_00028700()" (identifier "__ptr") (= "=") (cast_expression "(void *)FUN_00028700()" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00028700()" (identifier "FUN_00028700") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "free(__ptr);" (call_expression "free(__ptr)" (identifier "free") (argument_list "(__ptr)" (( "(") (identifier "__ptr") () ")"))) (; ";")) (expression_statement "iVar3 = FUN_00029680();" (assignment_expression "iVar3 = FUN_00029680()" (identifier "iVar3") (= "=") (call_expression "FUN_00029680()" (identifier "FUN_00029680") (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return iVar3 != 0;" (return "return") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "iVar3 = *(int *)(param_1 + 0x3c);" (assignment_expression "iVar3 = *(int *)(param_1 + 0x3c)" (identifier "iVar3") (= "=") (pointer_expression "*(int *)(param_1 + 0x3c)" (* "*") (cast_expression "(int *)(param_1 + 0x3c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3c)" (( "(") (binary_expression "param_1 + 0x3c" (identifier "param_1") (+ "+") (number_literal "0x3c")) () ")"))))) (; ";")) (expression_statement "*(int *)(param_1 + 0x3c) = iVar3 + 1;" (assignment_expression "*(int *)(param_1 + 0x3c) = iVar3 + 1" (pointer_expression "*(int *)(param_1 + 0x3c)" (* "*") (cast_expression "(int *)(param_1 + 0x3c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x3c)" (( "(") (binary_expression "param_1 + 0x3c" (identifier "param_1") (+ "+") (number_literal "0x3c")) () ")")))) (= "=") (binary_expression "iVar3 + 1" (identifier "iVar3") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "pcVar5 = (char *)FUN_00028700();" (assignment_expression "pcVar5 = (char *)FUN_00028700()" (identifier "pcVar5") (= "=") (cast_expression "(char *)FUN_00028700()" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00028700()" (identifier "FUN_00028700") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "sVar6 = strlen(pcVar5);" (assignment_expression "sVar6 = strlen(pcVar5)" (identifier "sVar6") (= "=") (call_expression "strlen(pcVar5)" (identifier "strlen") (argument_list "(pcVar5)" (( "(") (identifier "pcVar5") () ")")))) (; ";")) (expression_statement "pcVar7 = (char *)xmalloc(sVar6 + 0x14);" (assignment_expression "pcVar7 = (char *)xmalloc(sVar6 + 0x14)" (identifier "pcVar7") (= "=") (cast_expression "(char *)xmalloc(sVar6 + 0x14)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "xmalloc(sVar6 + 0x14)" (identifier "xmalloc") (argument_list "(sVar6 + 0x14)" (( "(") (binary_expression "sVar6 + 0x14" (identifier "sVar6") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "sprintf(pcVar7,"%ld=%c%s",iVar3,param_2,pcVar5);" (call_expression "sprintf(pcVar7,"%ld=%c%s",iVar3,param_2,pcVar5)" (identifier "sprintf") (argument_list "(pcVar7,"%ld=%c%s",iVar3,param_2,pcVar5)" (( "(") (identifier "pcVar7") (, ",") (string_literal ""%ld=%c%s"" (" """) (string_content "%ld=%c%s") (" """)) (, ",") (identifier "iVar3") (, ",") (identifier "param_2") (, ",") (identifier "pcVar5") () ")"))) (; ";")) (expression_statement "free(pcVar5);" (call_expression "free(pcVar5)" (identifier "free") (argument_list "(pcVar5)" (( "(") (identifier "pcVar5") () ")"))) (; ";")) (expression_statement "*(int *)(*param_4 + uVar1 * 4) = iVar3;" (assignment_expression "*(int *)(*param_4 + uVar1 * 4) = iVar3" (pointer_expression "*(int *)(*param_4 + uVar1 * 4)" (* "*") (cast_expression "(int *)(*param_4 + uVar1 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_4 + uVar1 * 4)" (( "(") (binary_expression "*param_4 + uVar1 * 4" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (+ "+") (binary_expression "uVar1 * 4" (identifier "uVar1") (* "*") (number_literal "4"))) () ")")))) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "iVar3 = FUN_00029600(1,param_3);" (assignment_expression "iVar3 = FUN_00029600(1,param_3)" (identifier "iVar3") (= "=") (call_expression "FUN_00029600(1,param_3)" (identifier "FUN_00029600") (argument_list "(1,param_3)" (( "(") (number_literal "1") (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if (iVar3 != 0) {\n      free(pcVar7);\n      return true;\n    }" (if "if") (parenthesized_expression "(iVar3 != 0)" (( "(") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      free(pcVar7);\n      return true;\n    }" ({ "{") (expression_statement "free(pcVar7);" (call_expression "free(pcVar7)" (identifier "free") (argument_list "(pcVar7)" (( "(") (identifier "pcVar7") () ")"))) (; ";")) (return_statement "return true;" (return "return") (true "true") (; ";")) (} "}"))) (} "}")))) (return_statement "return false;" (return "return") (false "false") (; ";")) (} "}")))

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

type_1 __regparm3
function_1(type_2 *info,int mod,type_3 size,long **var_3,size_t *cache_alloc)

{
  type_4 **info_00;
  type_4 *var_1;
  type_3 var_13;
  size_t var_18;
  int var_19;
  type_3 var_14;
  long *var_17;
  char *pcVar7;
  size_t var_7;
  char *pcVar9;
  type_1 var_11;
  type_3 var_12;
  
  var_1 = info->type_stack;
  if (var_1 == (type_4 *)0x0) {
                    /* WARNING: Subroutine does not return */
    var_2("info->type_stack != NULL","../../binutils/wrstabs.c",0x355,"stab_modify_type");
  }
  var_13 = var_1->index;
  info_00 = &info->type_stack;
  if (((int)var_13 < 1) || (var_3 == (long **)0x0)) {
    var_11 = var_1->definition;
    pcVar7 = var_4((type_2 *)info_00);
    var_7 = var_5(pcVar7);
    pcVar9 = (char *)var_6(var_7 + 2);
    var_8(pcVar9,"%c%s",mod,pcVar7);
    var_9(pcVar7);
    var_11 = var_10((type_2 *)info_00,pcVar9,0,var_11,size);
    if (var_11 != 0) {
      var_9(pcVar9);
      return 1;
    }
  }
  else {
    var_12 = *cache_alloc;
    if (var_12 <= var_13) {
      if ((var_12 == 0) && (var_12 = 10, var_13 < 10)) {
        var_19 = 0x28;
        var_12 = 10;
      }
      else {
        do {
          var_14 = var_12;
          var_12 = var_14 * 2;
        } while (var_12 <= var_13);
        var_19 = var_14 << 3;
      }
      var_17 = (long *)var_15(*var_3,var_19);
      var_18 = *cache_alloc;
      *var_3 = var_17;
      var_16(var_17 + var_18,0,(var_12 - var_18) * 4);
      *cache_alloc = var_12;
    }
    var_19 = (*var_3)[var_13];
    if ((var_19 != 0) && (info->type_stack->definition == 0)) {
      pcVar7 = var_4((type_2 *)info_00);
      var_9(pcVar7);
      var_11 = var_20(info,var_19,size);
      return (type_3)(var_11 != 0);
    }
    var_19 = info->type_index;
    info->type_index = var_19 + 1;
    pcVar7 = var_4((type_2 *)info_00);
    var_7 = var_5(pcVar7);
    pcVar9 = (char *)var_6(var_7 + 0x14);
    var_8(pcVar9,"%ld=%c%s",var_19,mod,pcVar7);
    var_9(pcVar7);
    (*var_3)[var_13] = var_19;
    var_11 = var_10((type_2 *)info_00,pcVar9,var_19,1,size);
    if (var_11 != 0) {
      var_9(pcVar9);
      return 1;
    }
  }
  return 0;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (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: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) 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: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) 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: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (string_literal (string_content)) (string_literal (string_content)) (number_literal) (string_literal (string_content))))))) (expression_statement (assignment_expression left: (identifier) right: (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (number_literal)))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) 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 (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement (true))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (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)))) alternative: (else_clause (compound_statement (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_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: (call_expression function: (identifier) arguments: (argument_list (pointer_expression argument: (identifier)) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) (number_literal) (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (number_literal))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) right: (number_literal))))) consequence: (compound_statement (expression_statement (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 (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (return_statement (binary_expression left: (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: (binary_expression left: (identifier) 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 (call_expression function: (identifier) arguments: (argument_list (identifier) (string_literal (string_content)) (identifier) (identifier) (identifier)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (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: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (return_statement (true))))))) (return_statement (false)))))

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

bool __regparm3
MASKED(int param_1,undefined4 param_2,undefined4 param_3,int *param_4,uint *param_5)

{
  uint uVar1;
  undefined4 uVar2;
  int iVar3;
  uint uVar4;
  char *pcVar5;
  size_t sVar6;
  char *pcVar7;
  void *__ptr;
  uint uVar8;
  
  iVar3 = *(int *)(param_1 + 0x38);
  if (iVar3 == 0) {
                    /* WARNING: Subroutine does not return */
    __assert_fail("info->type_stack != NULL","../../binutils/wrstabs.c",0x355,"stab_modify_type");
  }
  uVar1 = *(uint *)(iVar3 + 8);
  if (((int)uVar1 < 1) || (param_4 == (int *)0x0)) {
    uVar2 = *(undefined4 *)(iVar3 + 0x10);
    pcVar5 = (char *)FUN_00028700();
    sVar6 = strlen(pcVar5);
    pcVar7 = (char *)xmalloc(sVar6 + 2);
    sprintf(pcVar7,"%c%s",param_2,pcVar5);
    free(pcVar5);
    iVar3 = FUN_00029600(uVar2,param_3);
    if (iVar3 != 0) {
      free(pcVar7);
      return true;
    }
  }
  else {
    uVar8 = *param_5;
    if (uVar8 <= uVar1) {
      if ((uVar8 == 0) && (uVar8 = 10, uVar1 < 10)) {
        iVar3 = 0x28;
        uVar8 = 10;
      }
      else {
        do {
          uVar4 = uVar8;
          uVar8 = uVar4 * 2;
        } while (uVar8 <= uVar1);
        iVar3 = uVar4 << 3;
      }
      iVar3 = xrealloc(*param_4,iVar3);
      uVar4 = *param_5;
      *param_4 = iVar3;
      memset((void *)(iVar3 + uVar4 * 4),0,(uVar8 - uVar4) * 4);
      *param_5 = uVar8;
    }
    if ((*(int *)(*param_4 + uVar1 * 4) != 0) && (*(int *)(*(int *)(param_1 + 0x38) + 0x10) == 0)) {
      __ptr = (void *)FUN_00028700();
      free(__ptr);
      iVar3 = FUN_00029680();
      return iVar3 != 0;
    }
    iVar3 = *(int *)(param_1 + 0x3c);
    *(int *)(param_1 + 0x3c) = iVar3 + 1;
    pcVar5 = (char *)FUN_00028700();
    sVar6 = strlen(pcVar5);
    pcVar7 = (char *)xmalloc(sVar6 + 0x14);
    sprintf(pcVar7,"%ld=%c%s",iVar3,param_2,pcVar5);
    free(pcVar5);
    *(int *)(*param_4 + uVar1 * 4) = iVar3;
    iVar3 = FUN_00029600(1,param_3);
    if (iVar3 != 0) {
      free(pcVar7);
      return true;
    }
  }
  return false;
}

