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

bfd_boolean __regparm3
stab_write_symbol(stab_write_handle *info,int type,int desc,bfd_vma value,char *string)

{
  string_hash_entry *psVar1;
  bfd_byte *pbVar2;
  undefined4 uVar3;
  char *format;
  size_t sVar4;
  size_t sVar5;
  byte local_48;
  int local_30;
  bfd_byte sym [12];
  
  if (string == (char *)0x0) {
    sVar5 = 0;
    local_30 = 0;
  }
  else {
    psVar1 = (string_hash_entry *)bfd_hash_lookup(&info->strhash,string,1,1);
    if (psVar1 == (string_hash_entry *)0x0) {
      uVar3 = bfd_get_error();
      uVar3 = bfd_errmsg(uVar3);
      format = (char *)dcgettext(0,"string_hash_lookup failed: %s",5);
      non_fatal(format,uVar3);
      return 0;
    }
    sVar5 = psVar1->index;
    if (sVar5 == 0xffffffff) {
      sVar5 = info->strings_size;
      psVar1->index = sVar5;
      if (info->last_string == (string_hash_entry *)0x0) {
        info->strings = psVar1;
      }
      else {
        info->last_string->next = psVar1;
      }
      local_30 = 0;
      info->last_string = psVar1;
      sVar4 = strlen(string);
      info->strings_size = sVar5 + 1 + sVar4;
    }
    else {
      local_30 = (int)sVar5 >> 0x1f;
    }
  }
  (*info->abfd->xvec->bfd_putx32)(CONCAT44(local_30,sVar5),sym);
  local_48 = (byte)type;
  sym[5] = '\0';
  sym[4] = local_48;
  (*info->abfd->xvec->bfd_putx16)((longlong)desc,sym + 6);
  (*info->abfd->xvec->bfd_putx32)(value,sym + 8);
  sVar5 = info->symbols_size;
  if (info->symbols_alloc < sVar5 + 0xc) {
    sVar5 = info->symbols_alloc * 2;
    info->symbols_alloc = sVar5;
    pbVar2 = (bfd_byte *)xrealloc(info->symbols,sVar5);
    sVar5 = info->symbols_size;
    info->symbols = pbVar2;
  }
  else {
    pbVar2 = info->symbols;
  }
  *(undefined4 *)(pbVar2 + sVar5) = sym._0_4_;
  *(undefined4 *)(pbVar2 + sVar5 + 4) = sym._4_4_;
  *(undefined4 *)(pbVar2 + sVar5 + 8) = sym._8_4_;
  info->symbols_size = info->symbols_size + 0xc;
  return 1;
}



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

undefined4 __regparm3
FUN_00029160(int *param_1,byte param_2,int param_3,undefined4 param_4,undefined4 param_5,
            char *param_6)

{
  int iVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  size_t sVar4;
  int iVar5;
  int local_30;
  undefined4 local_28;
  undefined4 local_24;
  undefined4 local_20 [3];
  undefined4 uStack_14;
  
  uStack_14 = 0x2916d;
  if (param_6 == (char *)0x0) {
    iVar5 = 0;
    local_30 = 0;
  }
  else {
    iVar1 = bfd_hash_lookup(param_1 + 7,param_6,1,1);
    if (iVar1 == 0) {
      uVar2 = bfd_get_error();
      uVar2 = bfd_errmsg(uVar2);
      uVar3 = dcgettext(0,"string_hash_lookup failed: %s",5);
      FUN_0002c910(uVar3,uVar2);
      return 0;
    }
    iVar5 = *(int *)(iVar1 + 0x10);
    if (iVar5 == -1) {
      iVar5 = param_1[6];
      *(int *)(iVar1 + 0x10) = iVar5;
      if (param_1[5] == 0) {
        param_1[4] = iVar1;
      }
      else {
        *(int *)(param_1[5] + 0xc) = iVar1;
      }
      local_30 = 0;
      param_1[5] = iVar1;
      sVar4 = strlen(param_6);
      param_1[6] = iVar5 + 1 + sVar4;
    }
    else {
      local_30 = iVar5 >> 0x1f;
    }
  }
  (**(code **)(*(int *)(*param_1 + 4) + 0x30))(iVar5,local_30,&local_28);
  local_24._0_2_ = (ushort)param_2;
  (**(code **)(*(int *)(*param_1 + 4) + 0x3c))(param_3,param_3 >> 0x1f,(int)&local_24 + 2);
  (**(code **)(*(int *)(*param_1 + 4) + 0x30))(param_4,param_5,local_20);
  iVar5 = param_1[2];
  if ((uint)param_1[3] < iVar5 + 0xcU) {
    iVar5 = param_1[3] * 2;
    param_1[3] = iVar5;
    iVar1 = xrealloc(param_1[1],iVar5);
    iVar5 = param_1[2];
    param_1[1] = iVar1;
  }
  else {
    iVar1 = param_1[1];
  }
  *(undefined4 *)(iVar1 + iVar5) = local_28;
  *(undefined4 *)(iVar1 + 4 + iVar5) = local_24;
  *(undefined4 *)(iVar1 + 8 + iVar5) = local_20[0];
  param_1[2] = param_1[2] + 0xc;
  return 1;
}


PUSH EBP
PUSH EDI
MOV EDI,ECX
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x000166c0
ADD EBX,0x16e93
SUB ESP,0x3c
MOV EAX,dword ptr [ESP + 0x50]
MOV dword ptr [ESP + 0x4],EDX
MOV EDX,dword ptr [ESP + 0x54]
MOV dword ptr [ESP + 0x8],EAX
MOV EAX,dword ptr [ESP + 0x58]
MOV dword ptr [ESP + 0xc],EDX
MOV dword ptr [ESP + 0x10],EAX
TEST EAX,EAX
JZ 0x00029250
PUSH 0x1
PUSH 0x1
PUSH EAX
LEA EAX,[ESI + 0x1c]
PUSH EAX
CALL 0x00013470
ADD ESP,0x10
TEST EAX,EAX
JZ 0x00029280
MOV EDX,dword ptr [EAX + 0x10]
CMP EDX,-0x1
JZ 0x000292b8
MOV ECX,EDX
SAR ECX,0x1f
MOV EAX,dword ptr [ESI]
SUB ESP,0x4
LEA EBP,[ESP + 0x28]
MOV EAX,dword ptr [EAX + 0x4]
PUSH EBP
PUSH ECX
PUSH EDX
CALL dword ptr [EAX + 0x30]
MOVZX EAX,byte ptr [ESP + 0x14]
MOV byte ptr [ESP + 0x38],AL
MOV EAX,dword ptr [ESI]
MOV byte ptr [ESP + 0x39],0x0
ADD ESP,0xc
MOV ECX,dword ptr [EAX + 0x4]
LEA EAX,[ESP + 0x2e]
PUSH EAX
MOV EAX,EDI
CDQ
PUSH EDX
PUSH EDI
CALL dword ptr [ECX + 0x3c]
MOV EAX,dword ptr [ESI]
ADD ESP,0xc
MOV EAX,dword ptr [EAX + 0x4]
LEA EDX,[ESP + 0x30]
PUSH EDX
PUSH dword ptr [ESP + 0x14]
PUSH dword ptr [ESP + 0x14]
CALL dword ptr [EAX + 0x30]
MOV EDX,dword ptr [ESI + 0x8]
MOV EAX,dword ptr [ESI + 0xc]
LEA ECX,[EDX + 0xc]
ADD ESP,0x10
CMP ECX,EAX
JA 0x00029260
MOV EAX,dword ptr [ESI + 0x4]
MOV ECX,dword ptr [ESP + 0x24]
MOV dword ptr [EAX + EDX*0x1],ECX
MOV ECX,dword ptr [ESP + 0x28]
MOV dword ptr [EAX + EDX*0x1 + 0x4],ECX
MOV ECX,dword ptr [ESP + 0x2c]
MOV dword ptr [EAX + EDX*0x1 + 0x8],ECX
MOV EAX,0x1
ADD dword ptr [ESI + 0x8],0xc
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
XOR EDX,EDX
XOR ECX,ECX
JMP 0x000291c4
SUB ESP,0x8
ADD EAX,EAX
MOV dword ptr [ESI + 0xc],EAX
PUSH EAX
PUSH dword ptr [ESI + 0x4]
CALL 0x00013230
MOV EDX,dword ptr [ESI + 0x8]
ADD ESP,0x10
MOV dword ptr [ESI + 0x4],EAX
JMP 0x00029224
CALL 0x000132b0
SUB ESP,0xc
PUSH EAX
CALL 0x000137b0
ADD ESP,0xc
MOV ESI,EAX
LEA EAX,[EBX + 0xffff4dca]
PUSH 0x5
PUSH EAX
PUSH 0x0
CALL 0x00013200
POP EDX
POP ECX
PUSH ESI
PUSH EAX
CALL 0x0002c910
ADD ESP,0x10
XOR EAX,EAX
JMP 0x00029244
MOV ECX,dword ptr [ESI + 0x18]
MOV EBP,ECX
MOV dword ptr [ESP + 0x14],ECX
MOV EDX,ECX
XOR ECX,ECX
MOV dword ptr [EAX + 0x10],EBP
MOV EBP,dword ptr [ESI + 0x14]
TEST EBP,EBP
JZ 0x00029308
MOV dword ptr [EBP + 0xc],EAX
MOV dword ptr [ESP + 0x18],EDX
SUB ESP,0xc
MOV dword ptr [ESP + 0x28],ECX
MOV dword ptr [ESI + 0x14],EAX
PUSH dword ptr [ESP + 0x1c]
CALL 0x000134e0
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x14]
MOV EDX,dword ptr [ESP + 0x18]
LEA EAX,[ECX + EAX*0x1 + 0x1]
MOV ECX,dword ptr [ESP + 0x1c]
MOV dword ptr [ESI + 0x18],EAX
JMP 0x000291c4
MOV dword ptr [ESI + 0x10],EAX
JMP 0x000292d2
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 __regparm3\nFUN_00029160(int *param_1,byte param_2,int param_3,undefined4 param_4,undefined4 param_5,\n            char *param_6)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  size_t sVar4;\n  int iVar5;\n  int local_30;\n  undefined4 local_28;\n  undefined4 local_24;\n  undefined4 local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2916d;\n  if (param_6 == (char *)0x0) {\n    iVar5 = 0;\n    local_30 = 0;\n  }\n  else {\n    iVar1 = bfd_hash_lookup(param_1 + 7,param_6,1,1);\n    if (iVar1 == 0) {\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      uVar3 = dcgettext(0,"string_hash_lookup failed: %s",5);\n      FUN_0002c910(uVar3,uVar2);\n      return 0;\n    }\n    iVar5 = *(int *)(iVar1 + 0x10);\n    if (iVar5 == -1) {\n      iVar5 = param_1[6];\n      *(int *)(iVar1 + 0x10) = iVar5;\n      if (param_1[5] == 0) {\n        param_1[4] = iVar1;\n      }\n      else {\n        *(int *)(param_1[5] + 0xc) = iVar1;\n      }\n      local_30 = 0;\n      param_1[5] = iVar1;\n      sVar4 = strlen(param_6);\n      param_1[6] = iVar5 + 1 + sVar4;\n    }\n    else {\n      local_30 = iVar5 >> 0x1f;\n    }\n  }\n  (**(code **)(*(int *)(*param_1 + 4) + 0x30))(iVar5,local_30,&local_28);\n  local_24._0_2_ = (ushort)param_2;\n  (**(code **)(*(int *)(*param_1 + 4) + 0x3c))(param_3,param_3 >> 0x1f,(int)&local_24 + 2);\n  (**(code **)(*(int *)(*param_1 + 4) + 0x30))(param_4,param_5,local_20);\n  iVar5 = param_1[2];\n  if ((uint)param_1[3] < iVar5 + 0xcU) {\n    iVar5 = param_1[3] * 2;\n    param_1[3] = iVar5;\n    iVar1 = xrealloc(param_1[1],iVar5);\n    iVar5 = param_1[2];\n    param_1[1] = iVar1;\n  }\n  else {\n    iVar1 = param_1[1];\n  }\n  *(undefined4 *)(iVar1 + iVar5) = local_28;\n  *(undefined4 *)(iVar1 + 4 + iVar5) = local_24;\n  *(undefined4 *)(iVar1 + 8 + iVar5) = local_20[0];\n  param_1[2] = param_1[2] + 0xc;\n  return 1;\n}\n\n" comment (function_definition "undefined4 __regparm3\nFUN_00029160(int *param_1,byte param_2,int param_3,undefined4 param_4,undefined4 param_5,\n            char *param_6)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  size_t sVar4;\n  int iVar5;\n  int local_30;\n  undefined4 local_28;\n  undefined4 local_24;\n  undefined4 local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2916d;\n  if (param_6 == (char *)0x0) {\n    iVar5 = 0;\n    local_30 = 0;\n  }\n  else {\n    iVar1 = bfd_hash_lookup(param_1 + 7,param_6,1,1);\n    if (iVar1 == 0) {\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      uVar3 = dcgettext(0,"string_hash_lookup failed: %s",5);\n      FUN_0002c910(uVar3,uVar2);\n      return 0;\n    }\n    iVar5 = *(int *)(iVar1 + 0x10);\n    if (iVar5 == -1) {\n      iVar5 = param_1[6];\n      *(int *)(iVar1 + 0x10) = iVar5;\n      if (param_1[5] == 0) {\n        param_1[4] = iVar1;\n      }\n      else {\n        *(int *)(param_1[5] + 0xc) = iVar1;\n      }\n      local_30 = 0;\n      param_1[5] = iVar1;\n      sVar4 = strlen(param_6);\n      param_1[6] = iVar5 + 1 + sVar4;\n    }\n    else {\n      local_30 = iVar5 >> 0x1f;\n    }\n  }\n  (**(code **)(*(int *)(*param_1 + 4) + 0x30))(iVar5,local_30,&local_28);\n  local_24._0_2_ = (ushort)param_2;\n  (**(code **)(*(int *)(*param_1 + 4) + 0x3c))(param_3,param_3 >> 0x1f,(int)&local_24 + 2);\n  (**(code **)(*(int *)(*param_1 + 4) + 0x30))(param_4,param_5,local_20);\n  iVar5 = param_1[2];\n  if ((uint)param_1[3] < iVar5 + 0xcU) {\n    iVar5 = param_1[3] * 2;\n    param_1[3] = iVar5;\n    iVar1 = xrealloc(param_1[1],iVar5);\n    iVar5 = param_1[2];\n    param_1[1] = iVar1;\n  }\n  else {\n    iVar1 = param_1[1];\n  }\n  *(undefined4 *)(iVar1 + iVar5) = local_28;\n  *(undefined4 *)(iVar1 + 4 + iVar5) = local_24;\n  *(undefined4 *)(iVar1 + 8 + iVar5) = local_20[0];\n  param_1[2] = param_1[2] + 0xc;\n  return 1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00029160(int *param_1,byte param_2,int param_3,undefined4 param_4,undefined4 param_5,\n            char *param_6)" identifier (parameter_list "(int *param_1,byte param_2,int param_3,undefined4 param_4,undefined4 param_5,\n            char *param_6)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "byte param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "char *param_6" primitive_type (pointer_declarator "*param_6" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  size_t sVar4;\n  int iVar5;\n  int local_30;\n  undefined4 local_28;\n  undefined4 local_24;\n  undefined4 local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2916d;\n  if (param_6 == (char *)0x0) {\n    iVar5 = 0;\n    local_30 = 0;\n  }\n  else {\n    iVar1 = bfd_hash_lookup(param_1 + 7,param_6,1,1);\n    if (iVar1 == 0) {\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      uVar3 = dcgettext(0,"string_hash_lookup failed: %s",5);\n      FUN_0002c910(uVar3,uVar2);\n      return 0;\n    }\n    iVar5 = *(int *)(iVar1 + 0x10);\n    if (iVar5 == -1) {\n      iVar5 = param_1[6];\n      *(int *)(iVar1 + 0x10) = iVar5;\n      if (param_1[5] == 0) {\n        param_1[4] = iVar1;\n      }\n      else {\n        *(int *)(param_1[5] + 0xc) = iVar1;\n      }\n      local_30 = 0;\n      param_1[5] = iVar1;\n      sVar4 = strlen(param_6);\n      param_1[6] = iVar5 + 1 + sVar4;\n    }\n    else {\n      local_30 = iVar5 >> 0x1f;\n    }\n  }\n  (**(code **)(*(int *)(*param_1 + 4) + 0x30))(iVar5,local_30,&local_28);\n  local_24._0_2_ = (ushort)param_2;\n  (**(code **)(*(int *)(*param_1 + 4) + 0x3c))(param_3,param_3 >> 0x1f,(int)&local_24 + 2);\n  (**(code **)(*(int *)(*param_1 + 4) + 0x30))(param_4,param_5,local_20);\n  iVar5 = param_1[2];\n  if ((uint)param_1[3] < iVar5 + 0xcU) {\n    iVar5 = param_1[3] * 2;\n    param_1[3] = iVar5;\n    iVar1 = xrealloc(param_1[1],iVar5);\n    iVar5 = param_1[2];\n    param_1[1] = iVar1;\n  }\n  else {\n    iVar1 = param_1[1];\n  }\n  *(undefined4 *)(iVar1 + iVar5) = local_28;\n  *(undefined4 *)(iVar1 + 4 + iVar5) = local_24;\n  *(undefined4 *)(iVar1 + 8 + iVar5) = local_20[0];\n  param_1[2] = param_1[2] + 0xc;\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "undefined4 local_28;" type_identifier identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "undefined4 local_20 [3];" type_identifier (array_declarator "local_20 [3]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x2916d;" (assignment_expression "uStack_14 = 0x2916d" identifier = number_literal) ;) (if_statement "if (param_6 == (char *)0x0) {\n    iVar5 = 0;\n    local_30 = 0;\n  }\n  else {\n    iVar1 = bfd_hash_lookup(param_1 + 7,param_6,1,1);\n    if (iVar1 == 0) {\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      uVar3 = dcgettext(0,"string_hash_lookup failed: %s",5);\n      FUN_0002c910(uVar3,uVar2);\n      return 0;\n    }\n    iVar5 = *(int *)(iVar1 + 0x10);\n    if (iVar5 == -1) {\n      iVar5 = param_1[6];\n      *(int *)(iVar1 + 0x10) = iVar5;\n      if (param_1[5] == 0) {\n        param_1[4] = iVar1;\n      }\n      else {\n        *(int *)(param_1[5] + 0xc) = iVar1;\n      }\n      local_30 = 0;\n      param_1[5] = iVar1;\n      sVar4 = strlen(param_6);\n      param_1[6] = iVar5 + 1 + sVar4;\n    }\n    else {\n      local_30 = iVar5 >> 0x1f;\n    }\n  }" if (parenthesized_expression "(param_6 == (char *)0x0)" ( (binary_expression "param_6 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar5 = 0;\n    local_30 = 0;\n  }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar1 = bfd_hash_lookup(param_1 + 7,param_6,1,1);\n    if (iVar1 == 0) {\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      uVar3 = dcgettext(0,"string_hash_lookup failed: %s",5);\n      FUN_0002c910(uVar3,uVar2);\n      return 0;\n    }\n    iVar5 = *(int *)(iVar1 + 0x10);\n    if (iVar5 == -1) {\n      iVar5 = param_1[6];\n      *(int *)(iVar1 + 0x10) = iVar5;\n      if (param_1[5] == 0) {\n        param_1[4] = iVar1;\n      }\n      else {\n        *(int *)(param_1[5] + 0xc) = iVar1;\n      }\n      local_30 = 0;\n      param_1[5] = iVar1;\n      sVar4 = strlen(param_6);\n      param_1[6] = iVar5 + 1 + sVar4;\n    }\n    else {\n      local_30 = iVar5 >> 0x1f;\n    }\n  }" else (compound_statement "{\n    iVar1 = bfd_hash_lookup(param_1 + 7,param_6,1,1);\n    if (iVar1 == 0) {\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      uVar3 = dcgettext(0,"string_hash_lookup failed: %s",5);\n      FUN_0002c910(uVar3,uVar2);\n      return 0;\n    }\n    iVar5 = *(int *)(iVar1 + 0x10);\n    if (iVar5 == -1) {\n      iVar5 = param_1[6];\n      *(int *)(iVar1 + 0x10) = iVar5;\n      if (param_1[5] == 0) {\n        param_1[4] = iVar1;\n      }\n      else {\n        *(int *)(param_1[5] + 0xc) = iVar1;\n      }\n      local_30 = 0;\n      param_1[5] = iVar1;\n      sVar4 = strlen(param_6);\n      param_1[6] = iVar5 + 1 + sVar4;\n    }\n    else {\n      local_30 = iVar5 >> 0x1f;\n    }\n  }" { (expression_statement "iVar1 = bfd_hash_lookup(param_1 + 7,param_6,1,1);" (assignment_expression "iVar1 = bfd_hash_lookup(param_1 + 7,param_6,1,1)" identifier = (call_expression "bfd_hash_lookup(param_1 + 7,param_6,1,1)" identifier (argument_list "(param_1 + 7,param_6,1,1)" ( (binary_expression "param_1 + 7" identifier + number_literal) , identifier , number_literal , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      uVar3 = dcgettext(0,"string_hash_lookup failed: %s",5);\n      FUN_0002c910(uVar3,uVar2);\n      return 0;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      uVar3 = dcgettext(0,"string_hash_lookup failed: %s",5);\n      FUN_0002c910(uVar3,uVar2);\n      return 0;\n    }" { (expression_statement "uVar2 = bfd_get_error();" (assignment_expression "uVar2 = bfd_get_error()" identifier = (call_expression "bfd_get_error()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar2 = bfd_errmsg(uVar2);" (assignment_expression "uVar2 = bfd_errmsg(uVar2)" identifier = (call_expression "bfd_errmsg(uVar2)" identifier (argument_list "(uVar2)" ( identifier )))) ;) (expression_statement "uVar3 = dcgettext(0,"string_hash_lookup failed: %s",5);" (assignment_expression "uVar3 = dcgettext(0,"string_hash_lookup failed: %s",5)" identifier = (call_expression "dcgettext(0,"string_hash_lookup failed: %s",5)" identifier (argument_list "(0,"string_hash_lookup failed: %s",5)" ( number_literal , (string_literal ""string_hash_lookup failed: %s"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_0002c910(uVar3,uVar2);" (call_expression "FUN_0002c910(uVar3,uVar2)" identifier (argument_list "(uVar3,uVar2)" ( identifier , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar5 = *(int *)(iVar1 + 0x10);" (assignment_expression "iVar5 = *(int *)(iVar1 + 0x10)" identifier = (pointer_expression "*(int *)(iVar1 + 0x10)" * (cast_expression "(int *)(iVar1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) ))))) ;) (if_statement "if (iVar5 == -1) {\n      iVar5 = param_1[6];\n      *(int *)(iVar1 + 0x10) = iVar5;\n      if (param_1[5] == 0) {\n        param_1[4] = iVar1;\n      }\n      else {\n        *(int *)(param_1[5] + 0xc) = iVar1;\n      }\n      local_30 = 0;\n      param_1[5] = iVar1;\n      sVar4 = strlen(param_6);\n      param_1[6] = iVar5 + 1 + sVar4;\n    }\n    else {\n      local_30 = iVar5 >> 0x1f;\n    }" if (parenthesized_expression "(iVar5 == -1)" ( (binary_expression "iVar5 == -1" identifier == number_literal) )) (compound_statement "{\n      iVar5 = param_1[6];\n      *(int *)(iVar1 + 0x10) = iVar5;\n      if (param_1[5] == 0) {\n        param_1[4] = iVar1;\n      }\n      else {\n        *(int *)(param_1[5] + 0xc) = iVar1;\n      }\n      local_30 = 0;\n      param_1[5] = iVar1;\n      sVar4 = strlen(param_6);\n      param_1[6] = iVar5 + 1 + sVar4;\n    }" { (expression_statement "iVar5 = param_1[6];" (assignment_expression "iVar5 = param_1[6]" identifier = (subscript_expression "param_1[6]" identifier [ number_literal ])) ;) (expression_statement "*(int *)(iVar1 + 0x10) = iVar5;" (assignment_expression "*(int *)(iVar1 + 0x10) = iVar5" (pointer_expression "*(int *)(iVar1 + 0x10)" * (cast_expression "(int *)(iVar1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) = identifier) ;) (if_statement "if (param_1[5] == 0) {\n        param_1[4] = iVar1;\n      }\n      else {\n        *(int *)(param_1[5] + 0xc) = iVar1;\n      }" if (parenthesized_expression "(param_1[5] == 0)" ( (binary_expression "param_1[5] == 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n        param_1[4] = iVar1;\n      }" { (expression_statement "param_1[4] = iVar1;" (assignment_expression "param_1[4] = iVar1" (subscript_expression "param_1[4]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n        *(int *)(param_1[5] + 0xc) = iVar1;\n      }" else (compound_statement "{\n        *(int *)(param_1[5] + 0xc) = iVar1;\n      }" { (expression_statement "*(int *)(param_1[5] + 0xc) = iVar1;" (assignment_expression "*(int *)(param_1[5] + 0xc) = iVar1" (pointer_expression "*(int *)(param_1[5] + 0xc)" * (cast_expression "(int *)(param_1[5] + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[5] + 0xc)" ( (binary_expression "param_1[5] + 0xc" (subscript_expression "param_1[5]" identifier [ number_literal ]) + number_literal) )))) = identifier) ;) }))) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "param_1[5] = iVar1;" (assignment_expression "param_1[5] = iVar1" (subscript_expression "param_1[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "sVar4 = strlen(param_6);" (assignment_expression "sVar4 = strlen(param_6)" identifier = (call_expression "strlen(param_6)" identifier (argument_list "(param_6)" ( identifier )))) ;) (expression_statement "param_1[6] = iVar5 + 1 + sVar4;" (assignment_expression "param_1[6] = iVar5 + 1 + sVar4" (subscript_expression "param_1[6]" identifier [ number_literal ]) = (binary_expression "iVar5 + 1 + sVar4" (binary_expression "iVar5 + 1" identifier + number_literal) + identifier)) ;) }) (else_clause "else {\n      local_30 = iVar5 >> 0x1f;\n    }" else (compound_statement "{\n      local_30 = iVar5 >> 0x1f;\n    }" { (expression_statement "local_30 = iVar5 >> 0x1f;" (assignment_expression "local_30 = iVar5 >> 0x1f" identifier = (binary_expression "iVar5 >> 0x1f" identifier >> number_literal)) ;) }))) }))) (expression_statement "(**(code **)(*(int *)(*param_1 + 4) + 0x30))(iVar5,local_30,&local_28);" (call_expression "(**(code **)(*(int *)(*param_1 + 4) + 0x30))(iVar5,local_30,&local_28)" (parenthesized_expression "(**(code **)(*(int *)(*param_1 + 4) + 0x30))" ( (pointer_expression "**(code **)(*(int *)(*param_1 + 4) + 0x30)" * (pointer_expression "*(code **)(*(int *)(*param_1 + 4) + 0x30)" * (cast_expression "(code **)(*(int *)(*param_1 + 4) + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(*param_1 + 4) + 0x30)" ( (binary_expression "*(int *)(*param_1 + 4) + 0x30" (pointer_expression "*(int *)(*param_1 + 4)" * (cast_expression "(int *)(*param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 4)" ( (binary_expression "*param_1 + 4" (pointer_expression "*param_1" * identifier) + number_literal) )))) + number_literal) ))))) )) (argument_list "(iVar5,local_30,&local_28)" ( identifier , identifier , (pointer_expression "&local_28" & identifier) ))) ;) (expression_statement "local_24._0_2_ = (ushort)param_2;" (assignment_expression "local_24._0_2_ = (ushort)param_2" (field_expression "local_24._0_2_" identifier . field_identifier) = (cast_expression "(ushort)param_2" ( (type_descriptor "ushort" type_identifier) ) identifier)) ;) (expression_statement "(**(code **)(*(int *)(*param_1 + 4) + 0x3c))(param_3,param_3 >> 0x1f,(int)&local_24 + 2);" (call_expression "(**(code **)(*(int *)(*param_1 + 4) + 0x3c))(param_3,param_3 >> 0x1f,(int)&local_24 + 2)" (parenthesized_expression "(**(code **)(*(int *)(*param_1 + 4) + 0x3c))" ( (pointer_expression "**(code **)(*(int *)(*param_1 + 4) + 0x3c)" * (pointer_expression "*(code **)(*(int *)(*param_1 + 4) + 0x3c)" * (cast_expression "(code **)(*(int *)(*param_1 + 4) + 0x3c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(*param_1 + 4) + 0x3c)" ( (binary_expression "*(int *)(*param_1 + 4) + 0x3c" (pointer_expression "*(int *)(*param_1 + 4)" * (cast_expression "(int *)(*param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 4)" ( (binary_expression "*param_1 + 4" (pointer_expression "*param_1" * identifier) + number_literal) )))) + number_literal) ))))) )) (argument_list "(param_3,param_3 >> 0x1f,(int)&local_24 + 2)" ( identifier , (binary_expression "param_3 >> 0x1f" identifier >> number_literal) , (binary_expression "(int)&local_24 + 2" (cast_expression "(int)&local_24" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&local_24" & identifier)) + number_literal) ))) ;) (expression_statement "(**(code **)(*(int *)(*param_1 + 4) + 0x30))(param_4,param_5,local_20);" (call_expression "(**(code **)(*(int *)(*param_1 + 4) + 0x30))(param_4,param_5,local_20)" (parenthesized_expression "(**(code **)(*(int *)(*param_1 + 4) + 0x30))" ( (pointer_expression "**(code **)(*(int *)(*param_1 + 4) + 0x30)" * (pointer_expression "*(code **)(*(int *)(*param_1 + 4) + 0x30)" * (cast_expression "(code **)(*(int *)(*param_1 + 4) + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(*param_1 + 4) + 0x30)" ( (binary_expression "*(int *)(*param_1 + 4) + 0x30" (pointer_expression "*(int *)(*param_1 + 4)" * (cast_expression "(int *)(*param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 4)" ( (binary_expression "*param_1 + 4" (pointer_expression "*param_1" * identifier) + number_literal) )))) + number_literal) ))))) )) (argument_list "(param_4,param_5,local_20)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar5 = param_1[2];" (assignment_expression "iVar5 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (if_statement "if ((uint)param_1[3] < iVar5 + 0xcU) {\n    iVar5 = param_1[3] * 2;\n    param_1[3] = iVar5;\n    iVar1 = xrealloc(param_1[1],iVar5);\n    iVar5 = param_1[2];\n    param_1[1] = iVar1;\n  }\n  else {\n    iVar1 = param_1[1];\n  }" if (parenthesized_expression "((uint)param_1[3] < iVar5 + 0xcU)" ( (binary_expression "(uint)param_1[3] < iVar5 + 0xcU" (cast_expression "(uint)param_1[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[3]" identifier [ number_literal ])) < (binary_expression "iVar5 + 0xcU" identifier + number_literal)) )) (compound_statement "{\n    iVar5 = param_1[3] * 2;\n    param_1[3] = iVar5;\n    iVar1 = xrealloc(param_1[1],iVar5);\n    iVar5 = param_1[2];\n    param_1[1] = iVar1;\n  }" { (expression_statement "iVar5 = param_1[3] * 2;" (assignment_expression "iVar5 = param_1[3] * 2" identifier = (binary_expression "param_1[3] * 2" (subscript_expression "param_1[3]" identifier [ number_literal ]) * number_literal)) ;) (expression_statement "param_1[3] = iVar5;" (assignment_expression "param_1[3] = iVar5" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar1 = xrealloc(param_1[1],iVar5);" (assignment_expression "iVar1 = xrealloc(param_1[1],iVar5)" identifier = (call_expression "xrealloc(param_1[1],iVar5)" identifier (argument_list "(param_1[1],iVar5)" ( (subscript_expression "param_1[1]" identifier [ number_literal ]) , identifier )))) ;) (expression_statement "iVar5 = param_1[2];" (assignment_expression "iVar5 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "param_1[1] = iVar1;" (assignment_expression "param_1[1] = iVar1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n    iVar1 = param_1[1];\n  }" else (compound_statement "{\n    iVar1 = param_1[1];\n  }" { (expression_statement "iVar1 = param_1[1];" (assignment_expression "iVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) }))) (expression_statement "*(undefined4 *)(iVar1 + iVar5) = local_28;" (assignment_expression "*(undefined4 *)(iVar1 + iVar5) = local_28" (pointer_expression "*(undefined4 *)(iVar1 + iVar5)" * (cast_expression "(undefined4 *)(iVar1 + iVar5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + iVar5)" ( (binary_expression "iVar1 + iVar5" identifier + identifier) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar1 + 4 + iVar5) = local_24;" (assignment_expression "*(undefined4 *)(iVar1 + 4 + iVar5) = local_24" (pointer_expression "*(undefined4 *)(iVar1 + 4 + iVar5)" * (cast_expression "(undefined4 *)(iVar1 + 4 + iVar5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4 + iVar5)" ( (binary_expression "iVar1 + 4 + iVar5" (binary_expression "iVar1 + 4" identifier + number_literal) + identifier) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar1 + 8 + iVar5) = local_20[0];" (assignment_expression "*(undefined4 *)(iVar1 + 8 + iVar5) = local_20[0]" (pointer_expression "*(undefined4 *)(iVar1 + 8 + iVar5)" * (cast_expression "(undefined4 *)(iVar1 + 8 + iVar5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8 + iVar5)" ( (binary_expression "iVar1 + 8 + iVar5" (binary_expression "iVar1 + 8" identifier + number_literal) + identifier) )))) = (subscript_expression "local_20[0]" identifier [ number_literal ])) ;) (expression_statement "param_1[2] = param_1[2] + 0xc;" (assignment_expression "param_1[2] = param_1[2] + 0xc" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "param_1[2] + 0xc" (subscript_expression "param_1[2]" identifier [ number_literal ]) + number_literal)) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nbfd_boolean __regparm3\nstab_write_symbol(stab_write_handle *info,int type,int desc,bfd_vma value,char *string)\n\n{\n  string_hash_entry *psVar1;\n  bfd_byte *pbVar2;\n  undefined4 uVar3;\n  char *format;\n  size_t sVar4;\n  size_t sVar5;\n  byte local_48;\n  int local_30;\n  bfd_byte sym [12];\n  \n  if (string == (char *)0x0) {\n    sVar5 = 0;\n    local_30 = 0;\n  }\n  else {\n    psVar1 = (string_hash_entry *)bfd_hash_lookup(&info->strhash,string,1,1);\n    if (psVar1 == (string_hash_entry *)0x0) {\n      uVar3 = bfd_get_error();\n      uVar3 = bfd_errmsg(uVar3);\n      format = (char *)dcgettext(0,"string_hash_lookup failed: %s",5);\n      non_fatal(format,uVar3);\n      return 0;\n    }\n    sVar5 = psVar1->index;\n    if (sVar5 == 0xffffffff) {\n      sVar5 = info->strings_size;\n      psVar1->index = sVar5;\n      if (info->last_string == (string_hash_entry *)0x0) {\n        info->strings = psVar1;\n      }\n      else {\n        info->last_string->next = psVar1;\n      }\n      local_30 = 0;\n      info->last_string = psVar1;\n      sVar4 = strlen(string);\n      info->strings_size = sVar5 + 1 + sVar4;\n    }\n    else {\n      local_30 = (int)sVar5 >> 0x1f;\n    }\n  }\n  (*info->abfd->xvec->bfd_putx32)(CONCAT44(local_30,sVar5),sym);\n  local_48 = (byte)type;\n  sym[5] = '\0';\n  sym[4] = local_48;\n  (*info->abfd->xvec->bfd_putx16)((longlong)desc,sym + 6);\n  (*info->abfd->xvec->bfd_putx32)(value,sym + 8);\n  sVar5 = info->symbols_size;\n  if (info->symbols_alloc < sVar5 + 0xc) {\n    sVar5 = info->symbols_alloc * 2;\n    info->symbols_alloc = sVar5;\n    pbVar2 = (bfd_byte *)xrealloc(info->symbols,sVar5);\n    sVar5 = info->symbols_size;\n    info->symbols = pbVar2;\n  }\n  else {\n    pbVar2 = info->symbols;\n  }\n  *(undefined4 *)(pbVar2 + sVar5) = sym._0_4_;\n  *(undefined4 *)(pbVar2 + sVar5 + 4) = sym._4_4_;\n  *(undefined4 *)(pbVar2 + sVar5 + 8) = sym._8_4_;\n  info->symbols_size = info->symbols_size + 0xc;\n  return 1;\n}\n\n" comment (function_definition "bfd_boolean __regparm3\nstab_write_symbol(stab_write_handle *info,int type,int desc,bfd_vma value,char *string)\n\n{\n  string_hash_entry *psVar1;\n  bfd_byte *pbVar2;\n  undefined4 uVar3;\n  char *format;\n  size_t sVar4;\n  size_t sVar5;\n  byte local_48;\n  int local_30;\n  bfd_byte sym [12];\n  \n  if (string == (char *)0x0) {\n    sVar5 = 0;\n    local_30 = 0;\n  }\n  else {\n    psVar1 = (string_hash_entry *)bfd_hash_lookup(&info->strhash,string,1,1);\n    if (psVar1 == (string_hash_entry *)0x0) {\n      uVar3 = bfd_get_error();\n      uVar3 = bfd_errmsg(uVar3);\n      format = (char *)dcgettext(0,"string_hash_lookup failed: %s",5);\n      non_fatal(format,uVar3);\n      return 0;\n    }\n    sVar5 = psVar1->index;\n    if (sVar5 == 0xffffffff) {\n      sVar5 = info->strings_size;\n      psVar1->index = sVar5;\n      if (info->last_string == (string_hash_entry *)0x0) {\n        info->strings = psVar1;\n      }\n      else {\n        info->last_string->next = psVar1;\n      }\n      local_30 = 0;\n      info->last_string = psVar1;\n      sVar4 = strlen(string);\n      info->strings_size = sVar5 + 1 + sVar4;\n    }\n    else {\n      local_30 = (int)sVar5 >> 0x1f;\n    }\n  }\n  (*info->abfd->xvec->bfd_putx32)(CONCAT44(local_30,sVar5),sym);\n  local_48 = (byte)type;\n  sym[5] = '\0';\n  sym[4] = local_48;\n  (*info->abfd->xvec->bfd_putx16)((longlong)desc,sym + 6);\n  (*info->abfd->xvec->bfd_putx32)(value,sym + 8);\n  sVar5 = info->symbols_size;\n  if (info->symbols_alloc < sVar5 + 0xc) {\n    sVar5 = info->symbols_alloc * 2;\n    info->symbols_alloc = sVar5;\n    pbVar2 = (bfd_byte *)xrealloc(info->symbols,sVar5);\n    sVar5 = info->symbols_size;\n    info->symbols = pbVar2;\n  }\n  else {\n    pbVar2 = info->symbols;\n  }\n  *(undefined4 *)(pbVar2 + sVar5) = sym._0_4_;\n  *(undefined4 *)(pbVar2 + sVar5 + 4) = sym._4_4_;\n  *(undefined4 *)(pbVar2 + sVar5 + 8) = sym._8_4_;\n  info->symbols_size = info->symbols_size + 0xc;\n  return 1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "stab_write_symbol(stab_write_handle *info,int type,int desc,bfd_vma value,char *string)" identifier (parameter_list "(stab_write_handle *info,int type,int desc,bfd_vma value,char *string)" ( (parameter_declaration "stab_write_handle *info" type_identifier (pointer_declarator "*info" * identifier)) , (parameter_declaration "int type" primitive_type identifier) , (parameter_declaration "int desc" primitive_type identifier) , (parameter_declaration "bfd_vma value" type_identifier identifier) , (parameter_declaration "char *string" primitive_type (pointer_declarator "*string" * identifier)) ))) (compound_statement "{\n  string_hash_entry *psVar1;\n  bfd_byte *pbVar2;\n  undefined4 uVar3;\n  char *format;\n  size_t sVar4;\n  size_t sVar5;\n  byte local_48;\n  int local_30;\n  bfd_byte sym [12];\n  \n  if (string == (char *)0x0) {\n    sVar5 = 0;\n    local_30 = 0;\n  }\n  else {\n    psVar1 = (string_hash_entry *)bfd_hash_lookup(&info->strhash,string,1,1);\n    if (psVar1 == (string_hash_entry *)0x0) {\n      uVar3 = bfd_get_error();\n      uVar3 = bfd_errmsg(uVar3);\n      format = (char *)dcgettext(0,"string_hash_lookup failed: %s",5);\n      non_fatal(format,uVar3);\n      return 0;\n    }\n    sVar5 = psVar1->index;\n    if (sVar5 == 0xffffffff) {\n      sVar5 = info->strings_size;\n      psVar1->index = sVar5;\n      if (info->last_string == (string_hash_entry *)0x0) {\n        info->strings = psVar1;\n      }\n      else {\n        info->last_string->next = psVar1;\n      }\n      local_30 = 0;\n      info->last_string = psVar1;\n      sVar4 = strlen(string);\n      info->strings_size = sVar5 + 1 + sVar4;\n    }\n    else {\n      local_30 = (int)sVar5 >> 0x1f;\n    }\n  }\n  (*info->abfd->xvec->bfd_putx32)(CONCAT44(local_30,sVar5),sym);\n  local_48 = (byte)type;\n  sym[5] = '\0';\n  sym[4] = local_48;\n  (*info->abfd->xvec->bfd_putx16)((longlong)desc,sym + 6);\n  (*info->abfd->xvec->bfd_putx32)(value,sym + 8);\n  sVar5 = info->symbols_size;\n  if (info->symbols_alloc < sVar5 + 0xc) {\n    sVar5 = info->symbols_alloc * 2;\n    info->symbols_alloc = sVar5;\n    pbVar2 = (bfd_byte *)xrealloc(info->symbols,sVar5);\n    sVar5 = info->symbols_size;\n    info->symbols = pbVar2;\n  }\n  else {\n    pbVar2 = info->symbols;\n  }\n  *(undefined4 *)(pbVar2 + sVar5) = sym._0_4_;\n  *(undefined4 *)(pbVar2 + sVar5 + 4) = sym._4_4_;\n  *(undefined4 *)(pbVar2 + sVar5 + 8) = sym._8_4_;\n  info->symbols_size = info->symbols_size + 0xc;\n  return 1;\n}" { (declaration "string_hash_entry *psVar1;" type_identifier (pointer_declarator "*psVar1" * identifier) ;) (declaration "bfd_byte *pbVar2;" type_identifier (pointer_declarator "*pbVar2" * identifier) ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "char *format;" primitive_type (pointer_declarator "*format" * identifier) ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "size_t sVar5;" primitive_type identifier ;) (declaration "byte local_48;" type_identifier identifier ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "bfd_byte sym [12];" type_identifier (array_declarator "sym [12]" identifier [ number_literal ]) ;) (if_statement "if (string == (char *)0x0) {\n    sVar5 = 0;\n    local_30 = 0;\n  }\n  else {\n    psVar1 = (string_hash_entry *)bfd_hash_lookup(&info->strhash,string,1,1);\n    if (psVar1 == (string_hash_entry *)0x0) {\n      uVar3 = bfd_get_error();\n      uVar3 = bfd_errmsg(uVar3);\n      format = (char *)dcgettext(0,"string_hash_lookup failed: %s",5);\n      non_fatal(format,uVar3);\n      return 0;\n    }\n    sVar5 = psVar1->index;\n    if (sVar5 == 0xffffffff) {\n      sVar5 = info->strings_size;\n      psVar1->index = sVar5;\n      if (info->last_string == (string_hash_entry *)0x0) {\n        info->strings = psVar1;\n      }\n      else {\n        info->last_string->next = psVar1;\n      }\n      local_30 = 0;\n      info->last_string = psVar1;\n      sVar4 = strlen(string);\n      info->strings_size = sVar5 + 1 + sVar4;\n    }\n    else {\n      local_30 = (int)sVar5 >> 0x1f;\n    }\n  }" if (parenthesized_expression "(string == (char *)0x0)" ( (binary_expression "string == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    sVar5 = 0;\n    local_30 = 0;\n  }" { (expression_statement "sVar5 = 0;" (assignment_expression "sVar5 = 0" identifier = number_literal) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    psVar1 = (string_hash_entry *)bfd_hash_lookup(&info->strhash,string,1,1);\n    if (psVar1 == (string_hash_entry *)0x0) {\n      uVar3 = bfd_get_error();\n      uVar3 = bfd_errmsg(uVar3);\n      format = (char *)dcgettext(0,"string_hash_lookup failed: %s",5);\n      non_fatal(format,uVar3);\n      return 0;\n    }\n    sVar5 = psVar1->index;\n    if (sVar5 == 0xffffffff) {\n      sVar5 = info->strings_size;\n      psVar1->index = sVar5;\n      if (info->last_string == (string_hash_entry *)0x0) {\n        info->strings = psVar1;\n      }\n      else {\n        info->last_string->next = psVar1;\n      }\n      local_30 = 0;\n      info->last_string = psVar1;\n      sVar4 = strlen(string);\n      info->strings_size = sVar5 + 1 + sVar4;\n    }\n    else {\n      local_30 = (int)sVar5 >> 0x1f;\n    }\n  }" else (compound_statement "{\n    psVar1 = (string_hash_entry *)bfd_hash_lookup(&info->strhash,string,1,1);\n    if (psVar1 == (string_hash_entry *)0x0) {\n      uVar3 = bfd_get_error();\n      uVar3 = bfd_errmsg(uVar3);\n      format = (char *)dcgettext(0,"string_hash_lookup failed: %s",5);\n      non_fatal(format,uVar3);\n      return 0;\n    }\n    sVar5 = psVar1->index;\n    if (sVar5 == 0xffffffff) {\n      sVar5 = info->strings_size;\n      psVar1->index = sVar5;\n      if (info->last_string == (string_hash_entry *)0x0) {\n        info->strings = psVar1;\n      }\n      else {\n        info->last_string->next = psVar1;\n      }\n      local_30 = 0;\n      info->last_string = psVar1;\n      sVar4 = strlen(string);\n      info->strings_size = sVar5 + 1 + sVar4;\n    }\n    else {\n      local_30 = (int)sVar5 >> 0x1f;\n    }\n  }" { (expression_statement "psVar1 = (string_hash_entry *)bfd_hash_lookup(&info->strhash,string,1,1);" (assignment_expression "psVar1 = (string_hash_entry *)bfd_hash_lookup(&info->strhash,string,1,1)" identifier = (cast_expression "(string_hash_entry *)bfd_hash_lookup(&info->strhash,string,1,1)" ( (type_descriptor "string_hash_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "bfd_hash_lookup(&info->strhash,string,1,1)" identifier (argument_list "(&info->strhash,string,1,1)" ( (pointer_expression "&info->strhash" & (field_expression "info->strhash" identifier -> field_identifier)) , identifier , number_literal , number_literal ))))) ;) (if_statement "if (psVar1 == (string_hash_entry *)0x0) {\n      uVar3 = bfd_get_error();\n      uVar3 = bfd_errmsg(uVar3);\n      format = (char *)dcgettext(0,"string_hash_lookup failed: %s",5);\n      non_fatal(format,uVar3);\n      return 0;\n    }" if (parenthesized_expression "(psVar1 == (string_hash_entry *)0x0)" ( (binary_expression "psVar1 == (string_hash_entry *)0x0" identifier == (cast_expression "(string_hash_entry *)0x0" ( (type_descriptor "string_hash_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar3 = bfd_get_error();\n      uVar3 = bfd_errmsg(uVar3);\n      format = (char *)dcgettext(0,"string_hash_lookup failed: %s",5);\n      non_fatal(format,uVar3);\n      return 0;\n    }" { (expression_statement "uVar3 = bfd_get_error();" (assignment_expression "uVar3 = bfd_get_error()" identifier = (call_expression "bfd_get_error()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar3 = bfd_errmsg(uVar3);" (assignment_expression "uVar3 = bfd_errmsg(uVar3)" identifier = (call_expression "bfd_errmsg(uVar3)" identifier (argument_list "(uVar3)" ( identifier )))) ;) (expression_statement "format = (char *)dcgettext(0,"string_hash_lookup failed: %s",5);" (assignment_expression "format = (char *)dcgettext(0,"string_hash_lookup failed: %s",5)" identifier = (cast_expression "(char *)dcgettext(0,"string_hash_lookup failed: %s",5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "dcgettext(0,"string_hash_lookup failed: %s",5)" identifier (argument_list "(0,"string_hash_lookup failed: %s",5)" ( number_literal , (string_literal ""string_hash_lookup failed: %s"" " string_content ") , number_literal ))))) ;) (expression_statement "non_fatal(format,uVar3);" (call_expression "non_fatal(format,uVar3)" identifier (argument_list "(format,uVar3)" ( identifier , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "sVar5 = psVar1->index;" (assignment_expression "sVar5 = psVar1->index" identifier = (field_expression "psVar1->index" identifier -> field_identifier)) ;) (if_statement "if (sVar5 == 0xffffffff) {\n      sVar5 = info->strings_size;\n      psVar1->index = sVar5;\n      if (info->last_string == (string_hash_entry *)0x0) {\n        info->strings = psVar1;\n      }\n      else {\n        info->last_string->next = psVar1;\n      }\n      local_30 = 0;\n      info->last_string = psVar1;\n      sVar4 = strlen(string);\n      info->strings_size = sVar5 + 1 + sVar4;\n    }\n    else {\n      local_30 = (int)sVar5 >> 0x1f;\n    }" if (parenthesized_expression "(sVar5 == 0xffffffff)" ( (binary_expression "sVar5 == 0xffffffff" identifier == number_literal) )) (compound_statement "{\n      sVar5 = info->strings_size;\n      psVar1->index = sVar5;\n      if (info->last_string == (string_hash_entry *)0x0) {\n        info->strings = psVar1;\n      }\n      else {\n        info->last_string->next = psVar1;\n      }\n      local_30 = 0;\n      info->last_string = psVar1;\n      sVar4 = strlen(string);\n      info->strings_size = sVar5 + 1 + sVar4;\n    }" { (expression_statement "sVar5 = info->strings_size;" (assignment_expression "sVar5 = info->strings_size" identifier = (field_expression "info->strings_size" identifier -> field_identifier)) ;) (expression_statement "psVar1->index = sVar5;" (assignment_expression "psVar1->index = sVar5" (field_expression "psVar1->index" identifier -> field_identifier) = identifier) ;) (if_statement "if (info->last_string == (string_hash_entry *)0x0) {\n        info->strings = psVar1;\n      }\n      else {\n        info->last_string->next = psVar1;\n      }" if (parenthesized_expression "(info->last_string == (string_hash_entry *)0x0)" ( (binary_expression "info->last_string == (string_hash_entry *)0x0" (field_expression "info->last_string" identifier -> field_identifier) == (cast_expression "(string_hash_entry *)0x0" ( (type_descriptor "string_hash_entry *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        info->strings = psVar1;\n      }" { (expression_statement "info->strings = psVar1;" (assignment_expression "info->strings = psVar1" (field_expression "info->strings" identifier -> field_identifier) = identifier) ;) }) (else_clause "else {\n        info->last_string->next = psVar1;\n      }" else (compound_statement "{\n        info->last_string->next = psVar1;\n      }" { (expression_statement "info->last_string->next = psVar1;" (assignment_expression "info->last_string->next = psVar1" (field_expression "info->last_string->next" (field_expression "info->last_string" identifier -> field_identifier) -> field_identifier) = identifier) ;) }))) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "info->last_string = psVar1;" (assignment_expression "info->last_string = psVar1" (field_expression "info->last_string" identifier -> field_identifier) = identifier) ;) (expression_statement "sVar4 = strlen(string);" (assignment_expression "sVar4 = strlen(string)" identifier = (call_expression "strlen(string)" identifier (argument_list "(string)" ( identifier )))) ;) (expression_statement "info->strings_size = sVar5 + 1 + sVar4;" (assignment_expression "info->strings_size = sVar5 + 1 + sVar4" (field_expression "info->strings_size" identifier -> field_identifier) = (binary_expression "sVar5 + 1 + sVar4" (binary_expression "sVar5 + 1" identifier + number_literal) + identifier)) ;) }) (else_clause "else {\n      local_30 = (int)sVar5 >> 0x1f;\n    }" else (compound_statement "{\n      local_30 = (int)sVar5 >> 0x1f;\n    }" { (expression_statement "local_30 = (int)sVar5 >> 0x1f;" (assignment_expression "local_30 = (int)sVar5 >> 0x1f" identifier = (binary_expression "(int)sVar5 >> 0x1f" (cast_expression "(int)sVar5" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) ;) }))) }))) (expression_statement "(*info->abfd->xvec->bfd_putx32)(CONCAT44(local_30,sVar5),sym);" (call_expression "(*info->abfd->xvec->bfd_putx32)(CONCAT44(local_30,sVar5),sym)" (parenthesized_expression "(*info->abfd->xvec->bfd_putx32)" ( (pointer_expression "*info->abfd->xvec->bfd_putx32" * (field_expression "info->abfd->xvec->bfd_putx32" (field_expression "info->abfd->xvec" (field_expression "info->abfd" identifier -> field_identifier) -> field_identifier) -> field_identifier)) )) (argument_list "(CONCAT44(local_30,sVar5),sym)" ( (call_expression "CONCAT44(local_30,sVar5)" identifier (argument_list "(local_30,sVar5)" ( identifier , identifier ))) , identifier ))) ;) (expression_statement "local_48 = (byte)type;" (assignment_expression "local_48 = (byte)type" identifier = (cast_expression "(byte)type" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (expression_statement "sym[5] = '\0';" (assignment_expression "sym[5] = '\0'" (subscript_expression "sym[5]" identifier [ number_literal ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "sym[4] = local_48;" (assignment_expression "sym[4] = local_48" (subscript_expression "sym[4]" identifier [ number_literal ]) = identifier) ;) (expression_statement "(*info->abfd->xvec->bfd_putx16)((longlong)desc,sym + 6);" (call_expression "(*info->abfd->xvec->bfd_putx16)((longlong)desc,sym + 6)" (parenthesized_expression "(*info->abfd->xvec->bfd_putx16)" ( (pointer_expression "*info->abfd->xvec->bfd_putx16" * (field_expression "info->abfd->xvec->bfd_putx16" (field_expression "info->abfd->xvec" (field_expression "info->abfd" identifier -> field_identifier) -> field_identifier) -> field_identifier)) )) (argument_list "((longlong)desc,sym + 6)" ( (cast_expression "(longlong)desc" ( (type_descriptor "longlong" type_identifier) ) identifier) , (binary_expression "sym + 6" identifier + number_literal) ))) ;) (expression_statement "(*info->abfd->xvec->bfd_putx32)(value,sym + 8);" (call_expression "(*info->abfd->xvec->bfd_putx32)(value,sym + 8)" (parenthesized_expression "(*info->abfd->xvec->bfd_putx32)" ( (pointer_expression "*info->abfd->xvec->bfd_putx32" * (field_expression "info->abfd->xvec->bfd_putx32" (field_expression "info->abfd->xvec" (field_expression "info->abfd" identifier -> field_identifier) -> field_identifier) -> field_identifier)) )) (argument_list "(value,sym + 8)" ( identifier , (binary_expression "sym + 8" identifier + number_literal) ))) ;) (expression_statement "sVar5 = info->symbols_size;" (assignment_expression "sVar5 = info->symbols_size" identifier = (field_expression "info->symbols_size" identifier -> field_identifier)) ;) (if_statement "if (info->symbols_alloc < sVar5 + 0xc) {\n    sVar5 = info->symbols_alloc * 2;\n    info->symbols_alloc = sVar5;\n    pbVar2 = (bfd_byte *)xrealloc(info->symbols,sVar5);\n    sVar5 = info->symbols_size;\n    info->symbols = pbVar2;\n  }\n  else {\n    pbVar2 = info->symbols;\n  }" if (parenthesized_expression "(info->symbols_alloc < sVar5 + 0xc)" ( (binary_expression "info->symbols_alloc < sVar5 + 0xc" (field_expression "info->symbols_alloc" identifier -> field_identifier) < (binary_expression "sVar5 + 0xc" identifier + number_literal)) )) (compound_statement "{\n    sVar5 = info->symbols_alloc * 2;\n    info->symbols_alloc = sVar5;\n    pbVar2 = (bfd_byte *)xrealloc(info->symbols,sVar5);\n    sVar5 = info->symbols_size;\n    info->symbols = pbVar2;\n  }" { (expression_statement "sVar5 = info->symbols_alloc * 2;" (assignment_expression "sVar5 = info->symbols_alloc * 2" identifier = (binary_expression "info->symbols_alloc * 2" (field_expression "info->symbols_alloc" identifier -> field_identifier) * number_literal)) ;) (expression_statement "info->symbols_alloc = sVar5;" (assignment_expression "info->symbols_alloc = sVar5" (field_expression "info->symbols_alloc" identifier -> field_identifier) = identifier) ;) (expression_statement "pbVar2 = (bfd_byte *)xrealloc(info->symbols,sVar5);" (assignment_expression "pbVar2 = (bfd_byte *)xrealloc(info->symbols,sVar5)" identifier = (cast_expression "(bfd_byte *)xrealloc(info->symbols,sVar5)" ( (type_descriptor "bfd_byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "xrealloc(info->symbols,sVar5)" identifier (argument_list "(info->symbols,sVar5)" ( (field_expression "info->symbols" identifier -> field_identifier) , identifier ))))) ;) (expression_statement "sVar5 = info->symbols_size;" (assignment_expression "sVar5 = info->symbols_size" identifier = (field_expression "info->symbols_size" identifier -> field_identifier)) ;) (expression_statement "info->symbols = pbVar2;" (assignment_expression "info->symbols = pbVar2" (field_expression "info->symbols" identifier -> field_identifier) = identifier) ;) }) (else_clause "else {\n    pbVar2 = info->symbols;\n  }" else (compound_statement "{\n    pbVar2 = info->symbols;\n  }" { (expression_statement "pbVar2 = info->symbols;" (assignment_expression "pbVar2 = info->symbols" identifier = (field_expression "info->symbols" identifier -> field_identifier)) ;) }))) (expression_statement "*(undefined4 *)(pbVar2 + sVar5) = sym._0_4_;" (assignment_expression "*(undefined4 *)(pbVar2 + sVar5) = sym._0_4_" (pointer_expression "*(undefined4 *)(pbVar2 + sVar5)" * (cast_expression "(undefined4 *)(pbVar2 + sVar5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + sVar5)" ( (binary_expression "pbVar2 + sVar5" identifier + identifier) )))) = (field_expression "sym._0_4_" identifier . field_identifier)) ;) (expression_statement "*(undefined4 *)(pbVar2 + sVar5 + 4) = sym._4_4_;" (assignment_expression "*(undefined4 *)(pbVar2 + sVar5 + 4) = sym._4_4_" (pointer_expression "*(undefined4 *)(pbVar2 + sVar5 + 4)" * (cast_expression "(undefined4 *)(pbVar2 + sVar5 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + sVar5 + 4)" ( (binary_expression "pbVar2 + sVar5 + 4" (binary_expression "pbVar2 + sVar5" identifier + identifier) + number_literal) )))) = (field_expression "sym._4_4_" identifier . field_identifier)) ;) (expression_statement "*(undefined4 *)(pbVar2 + sVar5 + 8) = sym._8_4_;" (assignment_expression "*(undefined4 *)(pbVar2 + sVar5 + 8) = sym._8_4_" (pointer_expression "*(undefined4 *)(pbVar2 + sVar5 + 8)" * (cast_expression "(undefined4 *)(pbVar2 + sVar5 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pbVar2 + sVar5 + 8)" ( (binary_expression "pbVar2 + sVar5 + 8" (binary_expression "pbVar2 + sVar5" identifier + identifier) + number_literal) )))) = (field_expression "sym._8_4_" identifier . field_identifier)) ;) (expression_statement "info->symbols_size = info->symbols_size + 0xc;" (assignment_expression "info->symbols_size = info->symbols_size + 0xc" (field_expression "info->symbols_size" identifier -> field_identifier) = (binary_expression "info->symbols_size + 0xc" (field_expression "info->symbols_size" identifier -> field_identifier) + number_literal)) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit "undefined4 __regparm3\nFUN_00029160(int *param_1,byte param_2,int param_3,undefined4 param_4,undefined4 param_5,\n            char *param_6)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  size_t sVar4;\n  int iVar5;\n  int local_30;\n  undefined4 local_28;\n  undefined4 local_24;\n  undefined4 local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2916d;\n  if (param_6 == (char *)0x0) {\n    iVar5 = 0;\n    local_30 = 0;\n  }\n  else {\n    iVar1 = bfd_hash_lookup(param_1 + 7,param_6,1,1);\n    if (iVar1 == 0) {\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      uVar3 = dcgettext(0,"string_hash_lookup failed: %s",5);\n      FUN_0002c910(uVar3,uVar2);\n      return 0;\n    }\n    iVar5 = *(int *)(iVar1 + 0x10);\n    if (iVar5 == -1) {\n      iVar5 = param_1[6];\n      *(int *)(iVar1 + 0x10) = iVar5;\n      if (param_1[5] == 0) {\n        param_1[4] = iVar1;\n      }\n      else {\n        *(int *)(param_1[5] + 0xc) = iVar1;\n      }\n      local_30 = 0;\n      param_1[5] = iVar1;\n      sVar4 = strlen(param_6);\n      param_1[6] = iVar5 + 1 + sVar4;\n    }\n    else {\n      local_30 = iVar5 >> 0x1f;\n    }\n  }\n  (**(code **)(*(int *)(*param_1 + 4) + 0x30))(iVar5,local_30,&local_28);\n  local_24._0_2_ = (ushort)param_2;\n  (**(code **)(*(int *)(*param_1 + 4) + 0x3c))(param_3,param_3 >> 0x1f,(int)&local_24 + 2);\n  (**(code **)(*(int *)(*param_1 + 4) + 0x30))(param_4,param_5,local_20);\n  iVar5 = param_1[2];\n  if ((uint)param_1[3] < iVar5 + 0xcU) {\n    iVar5 = param_1[3] * 2;\n    param_1[3] = iVar5;\n    iVar1 = xrealloc(param_1[1],iVar5);\n    iVar5 = param_1[2];\n    param_1[1] = iVar1;\n  }\n  else {\n    iVar1 = param_1[1];\n  }\n  *(undefined4 *)(iVar1 + iVar5) = local_28;\n  *(undefined4 *)(iVar1 + 4 + iVar5) = local_24;\n  *(undefined4 *)(iVar1 + 8 + iVar5) = local_20[0];\n  param_1[2] = param_1[2] + 0xc;\n  return 1;\n}\n\n" (function_definition "undefined4 __regparm3\nFUN_00029160(int *param_1,byte param_2,int param_3,undefined4 param_4,undefined4 param_5,\n            char *param_6)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  size_t sVar4;\n  int iVar5;\n  int local_30;\n  undefined4 local_28;\n  undefined4 local_24;\n  undefined4 local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2916d;\n  if (param_6 == (char *)0x0) {\n    iVar5 = 0;\n    local_30 = 0;\n  }\n  else {\n    iVar1 = bfd_hash_lookup(param_1 + 7,param_6,1,1);\n    if (iVar1 == 0) {\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      uVar3 = dcgettext(0,"string_hash_lookup failed: %s",5);\n      FUN_0002c910(uVar3,uVar2);\n      return 0;\n    }\n    iVar5 = *(int *)(iVar1 + 0x10);\n    if (iVar5 == -1) {\n      iVar5 = param_1[6];\n      *(int *)(iVar1 + 0x10) = iVar5;\n      if (param_1[5] == 0) {\n        param_1[4] = iVar1;\n      }\n      else {\n        *(int *)(param_1[5] + 0xc) = iVar1;\n      }\n      local_30 = 0;\n      param_1[5] = iVar1;\n      sVar4 = strlen(param_6);\n      param_1[6] = iVar5 + 1 + sVar4;\n    }\n    else {\n      local_30 = iVar5 >> 0x1f;\n    }\n  }\n  (**(code **)(*(int *)(*param_1 + 4) + 0x30))(iVar5,local_30,&local_28);\n  local_24._0_2_ = (ushort)param_2;\n  (**(code **)(*(int *)(*param_1 + 4) + 0x3c))(param_3,param_3 >> 0x1f,(int)&local_24 + 2);\n  (**(code **)(*(int *)(*param_1 + 4) + 0x30))(param_4,param_5,local_20);\n  iVar5 = param_1[2];\n  if ((uint)param_1[3] < iVar5 + 0xcU) {\n    iVar5 = param_1[3] * 2;\n    param_1[3] = iVar5;\n    iVar1 = xrealloc(param_1[1],iVar5);\n    iVar5 = param_1[2];\n    param_1[1] = iVar1;\n  }\n  else {\n    iVar1 = param_1[1];\n  }\n  *(undefined4 *)(iVar1 + iVar5) = local_28;\n  *(undefined4 *)(iVar1 + 4 + iVar5) = local_24;\n  *(undefined4 *)(iVar1 + 8 + iVar5) = local_20[0];\n  param_1[2] = param_1[2] + 0xc;\n  return 1;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_00029160(int *param_1,byte param_2,int param_3,undefined4 param_4,undefined4 param_5,\n            char *param_6)" identifier (parameter_list "(int *param_1,byte param_2,int param_3,undefined4 param_4,undefined4 param_5,\n            char *param_6)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "byte param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "undefined4 param_4" type_identifier identifier) , (parameter_declaration "undefined4 param_5" type_identifier identifier) , (parameter_declaration "char *param_6" primitive_type (pointer_declarator "*param_6" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  size_t sVar4;\n  int iVar5;\n  int local_30;\n  undefined4 local_28;\n  undefined4 local_24;\n  undefined4 local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2916d;\n  if (param_6 == (char *)0x0) {\n    iVar5 = 0;\n    local_30 = 0;\n  }\n  else {\n    iVar1 = bfd_hash_lookup(param_1 + 7,param_6,1,1);\n    if (iVar1 == 0) {\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      uVar3 = dcgettext(0,"string_hash_lookup failed: %s",5);\n      FUN_0002c910(uVar3,uVar2);\n      return 0;\n    }\n    iVar5 = *(int *)(iVar1 + 0x10);\n    if (iVar5 == -1) {\n      iVar5 = param_1[6];\n      *(int *)(iVar1 + 0x10) = iVar5;\n      if (param_1[5] == 0) {\n        param_1[4] = iVar1;\n      }\n      else {\n        *(int *)(param_1[5] + 0xc) = iVar1;\n      }\n      local_30 = 0;\n      param_1[5] = iVar1;\n      sVar4 = strlen(param_6);\n      param_1[6] = iVar5 + 1 + sVar4;\n    }\n    else {\n      local_30 = iVar5 >> 0x1f;\n    }\n  }\n  (**(code **)(*(int *)(*param_1 + 4) + 0x30))(iVar5,local_30,&local_28);\n  local_24._0_2_ = (ushort)param_2;\n  (**(code **)(*(int *)(*param_1 + 4) + 0x3c))(param_3,param_3 >> 0x1f,(int)&local_24 + 2);\n  (**(code **)(*(int *)(*param_1 + 4) + 0x30))(param_4,param_5,local_20);\n  iVar5 = param_1[2];\n  if ((uint)param_1[3] < iVar5 + 0xcU) {\n    iVar5 = param_1[3] * 2;\n    param_1[3] = iVar5;\n    iVar1 = xrealloc(param_1[1],iVar5);\n    iVar5 = param_1[2];\n    param_1[1] = iVar1;\n  }\n  else {\n    iVar1 = param_1[1];\n  }\n  *(undefined4 *)(iVar1 + iVar5) = local_28;\n  *(undefined4 *)(iVar1 + 4 + iVar5) = local_24;\n  *(undefined4 *)(iVar1 + 8 + iVar5) = local_20[0];\n  param_1[2] = param_1[2] + 0xc;\n  return 1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "size_t sVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "undefined4 local_28;" type_identifier identifier ;) (declaration "undefined4 local_24;" type_identifier identifier ;) (declaration "undefined4 local_20 [3];" type_identifier (array_declarator "local_20 [3]" identifier [ number_literal ]) ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x2916d;" (assignment_expression "uStack_14 = 0x2916d" identifier = number_literal) ;) (if_statement "if (param_6 == (char *)0x0) {\n    iVar5 = 0;\n    local_30 = 0;\n  }\n  else {\n    iVar1 = bfd_hash_lookup(param_1 + 7,param_6,1,1);\n    if (iVar1 == 0) {\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      uVar3 = dcgettext(0,"string_hash_lookup failed: %s",5);\n      FUN_0002c910(uVar3,uVar2);\n      return 0;\n    }\n    iVar5 = *(int *)(iVar1 + 0x10);\n    if (iVar5 == -1) {\n      iVar5 = param_1[6];\n      *(int *)(iVar1 + 0x10) = iVar5;\n      if (param_1[5] == 0) {\n        param_1[4] = iVar1;\n      }\n      else {\n        *(int *)(param_1[5] + 0xc) = iVar1;\n      }\n      local_30 = 0;\n      param_1[5] = iVar1;\n      sVar4 = strlen(param_6);\n      param_1[6] = iVar5 + 1 + sVar4;\n    }\n    else {\n      local_30 = iVar5 >> 0x1f;\n    }\n  }" if (parenthesized_expression "(param_6 == (char *)0x0)" ( (binary_expression "param_6 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar5 = 0;\n    local_30 = 0;\n  }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    iVar1 = bfd_hash_lookup(param_1 + 7,param_6,1,1);\n    if (iVar1 == 0) {\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      uVar3 = dcgettext(0,"string_hash_lookup failed: %s",5);\n      FUN_0002c910(uVar3,uVar2);\n      return 0;\n    }\n    iVar5 = *(int *)(iVar1 + 0x10);\n    if (iVar5 == -1) {\n      iVar5 = param_1[6];\n      *(int *)(iVar1 + 0x10) = iVar5;\n      if (param_1[5] == 0) {\n        param_1[4] = iVar1;\n      }\n      else {\n        *(int *)(param_1[5] + 0xc) = iVar1;\n      }\n      local_30 = 0;\n      param_1[5] = iVar1;\n      sVar4 = strlen(param_6);\n      param_1[6] = iVar5 + 1 + sVar4;\n    }\n    else {\n      local_30 = iVar5 >> 0x1f;\n    }\n  }" else (compound_statement "{\n    iVar1 = bfd_hash_lookup(param_1 + 7,param_6,1,1);\n    if (iVar1 == 0) {\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      uVar3 = dcgettext(0,"string_hash_lookup failed: %s",5);\n      FUN_0002c910(uVar3,uVar2);\n      return 0;\n    }\n    iVar5 = *(int *)(iVar1 + 0x10);\n    if (iVar5 == -1) {\n      iVar5 = param_1[6];\n      *(int *)(iVar1 + 0x10) = iVar5;\n      if (param_1[5] == 0) {\n        param_1[4] = iVar1;\n      }\n      else {\n        *(int *)(param_1[5] + 0xc) = iVar1;\n      }\n      local_30 = 0;\n      param_1[5] = iVar1;\n      sVar4 = strlen(param_6);\n      param_1[6] = iVar5 + 1 + sVar4;\n    }\n    else {\n      local_30 = iVar5 >> 0x1f;\n    }\n  }" { (expression_statement "iVar1 = bfd_hash_lookup(param_1 + 7,param_6,1,1);" (assignment_expression "iVar1 = bfd_hash_lookup(param_1 + 7,param_6,1,1)" identifier = (call_expression "bfd_hash_lookup(param_1 + 7,param_6,1,1)" identifier (argument_list "(param_1 + 7,param_6,1,1)" ( (binary_expression "param_1 + 7" identifier + number_literal) , identifier , number_literal , number_literal )))) ;) (if_statement "if (iVar1 == 0) {\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      uVar3 = dcgettext(0,"string_hash_lookup failed: %s",5);\n      FUN_0002c910(uVar3,uVar2);\n      return 0;\n    }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      uVar3 = dcgettext(0,"string_hash_lookup failed: %s",5);\n      FUN_0002c910(uVar3,uVar2);\n      return 0;\n    }" { (expression_statement "uVar2 = bfd_get_error();" (assignment_expression "uVar2 = bfd_get_error()" identifier = (call_expression "bfd_get_error()" identifier (argument_list "()" ( )))) ;) (expression_statement "uVar2 = bfd_errmsg(uVar2);" (assignment_expression "uVar2 = bfd_errmsg(uVar2)" identifier = (call_expression "bfd_errmsg(uVar2)" identifier (argument_list "(uVar2)" ( identifier )))) ;) (expression_statement "uVar3 = dcgettext(0,"string_hash_lookup failed: %s",5);" (assignment_expression "uVar3 = dcgettext(0,"string_hash_lookup failed: %s",5)" identifier = (call_expression "dcgettext(0,"string_hash_lookup failed: %s",5)" identifier (argument_list "(0,"string_hash_lookup failed: %s",5)" ( number_literal , (string_literal ""string_hash_lookup failed: %s"" " string_content ") , number_literal )))) ;) (expression_statement "FUN_0002c910(uVar3,uVar2);" (call_expression "FUN_0002c910(uVar3,uVar2)" identifier (argument_list "(uVar3,uVar2)" ( identifier , identifier ))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar5 = *(int *)(iVar1 + 0x10);" (assignment_expression "iVar5 = *(int *)(iVar1 + 0x10)" identifier = (pointer_expression "*(int *)(iVar1 + 0x10)" * (cast_expression "(int *)(iVar1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) ))))) ;) (if_statement "if (iVar5 == -1) {\n      iVar5 = param_1[6];\n      *(int *)(iVar1 + 0x10) = iVar5;\n      if (param_1[5] == 0) {\n        param_1[4] = iVar1;\n      }\n      else {\n        *(int *)(param_1[5] + 0xc) = iVar1;\n      }\n      local_30 = 0;\n      param_1[5] = iVar1;\n      sVar4 = strlen(param_6);\n      param_1[6] = iVar5 + 1 + sVar4;\n    }\n    else {\n      local_30 = iVar5 >> 0x1f;\n    }" if (parenthesized_expression "(iVar5 == -1)" ( (binary_expression "iVar5 == -1" identifier == number_literal) )) (compound_statement "{\n      iVar5 = param_1[6];\n      *(int *)(iVar1 + 0x10) = iVar5;\n      if (param_1[5] == 0) {\n        param_1[4] = iVar1;\n      }\n      else {\n        *(int *)(param_1[5] + 0xc) = iVar1;\n      }\n      local_30 = 0;\n      param_1[5] = iVar1;\n      sVar4 = strlen(param_6);\n      param_1[6] = iVar5 + 1 + sVar4;\n    }" { (expression_statement "iVar5 = param_1[6];" (assignment_expression "iVar5 = param_1[6]" identifier = (subscript_expression "param_1[6]" identifier [ number_literal ])) ;) (expression_statement "*(int *)(iVar1 + 0x10) = iVar5;" (assignment_expression "*(int *)(iVar1 + 0x10) = iVar5" (pointer_expression "*(int *)(iVar1 + 0x10)" * (cast_expression "(int *)(iVar1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x10)" ( (binary_expression "iVar1 + 0x10" identifier + number_literal) )))) = identifier) ;) (if_statement "if (param_1[5] == 0) {\n        param_1[4] = iVar1;\n      }\n      else {\n        *(int *)(param_1[5] + 0xc) = iVar1;\n      }" if (parenthesized_expression "(param_1[5] == 0)" ( (binary_expression "param_1[5] == 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) == number_literal) )) (compound_statement "{\n        param_1[4] = iVar1;\n      }" { (expression_statement "param_1[4] = iVar1;" (assignment_expression "param_1[4] = iVar1" (subscript_expression "param_1[4]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n        *(int *)(param_1[5] + 0xc) = iVar1;\n      }" else (compound_statement "{\n        *(int *)(param_1[5] + 0xc) = iVar1;\n      }" { (expression_statement "*(int *)(param_1[5] + 0xc) = iVar1;" (assignment_expression "*(int *)(param_1[5] + 0xc) = iVar1" (pointer_expression "*(int *)(param_1[5] + 0xc)" * (cast_expression "(int *)(param_1[5] + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1[5] + 0xc)" ( (binary_expression "param_1[5] + 0xc" (subscript_expression "param_1[5]" identifier [ number_literal ]) + number_literal) )))) = identifier) ;) }))) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "param_1[5] = iVar1;" (assignment_expression "param_1[5] = iVar1" (subscript_expression "param_1[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "sVar4 = strlen(param_6);" (assignment_expression "sVar4 = strlen(param_6)" identifier = (call_expression "strlen(param_6)" identifier (argument_list "(param_6)" ( identifier )))) ;) (expression_statement "param_1[6] = iVar5 + 1 + sVar4;" (assignment_expression "param_1[6] = iVar5 + 1 + sVar4" (subscript_expression "param_1[6]" identifier [ number_literal ]) = (binary_expression "iVar5 + 1 + sVar4" (binary_expression "iVar5 + 1" identifier + number_literal) + identifier)) ;) }) (else_clause "else {\n      local_30 = iVar5 >> 0x1f;\n    }" else (compound_statement "{\n      local_30 = iVar5 >> 0x1f;\n    }" { (expression_statement "local_30 = iVar5 >> 0x1f;" (assignment_expression "local_30 = iVar5 >> 0x1f" identifier = (binary_expression "iVar5 >> 0x1f" identifier >> number_literal)) ;) }))) }))) (expression_statement "(**(code **)(*(int *)(*param_1 + 4) + 0x30))(iVar5,local_30,&local_28);" (call_expression "(**(code **)(*(int *)(*param_1 + 4) + 0x30))(iVar5,local_30,&local_28)" (parenthesized_expression "(**(code **)(*(int *)(*param_1 + 4) + 0x30))" ( (pointer_expression "**(code **)(*(int *)(*param_1 + 4) + 0x30)" * (pointer_expression "*(code **)(*(int *)(*param_1 + 4) + 0x30)" * (cast_expression "(code **)(*(int *)(*param_1 + 4) + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(*param_1 + 4) + 0x30)" ( (binary_expression "*(int *)(*param_1 + 4) + 0x30" (pointer_expression "*(int *)(*param_1 + 4)" * (cast_expression "(int *)(*param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 4)" ( (binary_expression "*param_1 + 4" (pointer_expression "*param_1" * identifier) + number_literal) )))) + number_literal) ))))) )) (argument_list "(iVar5,local_30,&local_28)" ( identifier , identifier , (pointer_expression "&local_28" & identifier) ))) ;) (expression_statement "local_24._0_2_ = (ushort)param_2;" (assignment_expression "local_24._0_2_ = (ushort)param_2" (field_expression "local_24._0_2_" identifier . field_identifier) = (cast_expression "(ushort)param_2" ( (type_descriptor "ushort" type_identifier) ) identifier)) ;) (expression_statement "(**(code **)(*(int *)(*param_1 + 4) + 0x3c))(param_3,param_3 >> 0x1f,(int)&local_24 + 2);" (call_expression "(**(code **)(*(int *)(*param_1 + 4) + 0x3c))(param_3,param_3 >> 0x1f,(int)&local_24 + 2)" (parenthesized_expression "(**(code **)(*(int *)(*param_1 + 4) + 0x3c))" ( (pointer_expression "**(code **)(*(int *)(*param_1 + 4) + 0x3c)" * (pointer_expression "*(code **)(*(int *)(*param_1 + 4) + 0x3c)" * (cast_expression "(code **)(*(int *)(*param_1 + 4) + 0x3c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(*param_1 + 4) + 0x3c)" ( (binary_expression "*(int *)(*param_1 + 4) + 0x3c" (pointer_expression "*(int *)(*param_1 + 4)" * (cast_expression "(int *)(*param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 4)" ( (binary_expression "*param_1 + 4" (pointer_expression "*param_1" * identifier) + number_literal) )))) + number_literal) ))))) )) (argument_list "(param_3,param_3 >> 0x1f,(int)&local_24 + 2)" ( identifier , (binary_expression "param_3 >> 0x1f" identifier >> number_literal) , (binary_expression "(int)&local_24 + 2" (cast_expression "(int)&local_24" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&local_24" & identifier)) + number_literal) ))) ;) (expression_statement "(**(code **)(*(int *)(*param_1 + 4) + 0x30))(param_4,param_5,local_20);" (call_expression "(**(code **)(*(int *)(*param_1 + 4) + 0x30))(param_4,param_5,local_20)" (parenthesized_expression "(**(code **)(*(int *)(*param_1 + 4) + 0x30))" ( (pointer_expression "**(code **)(*(int *)(*param_1 + 4) + 0x30)" * (pointer_expression "*(code **)(*(int *)(*param_1 + 4) + 0x30)" * (cast_expression "(code **)(*(int *)(*param_1 + 4) + 0x30)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(*param_1 + 4) + 0x30)" ( (binary_expression "*(int *)(*param_1 + 4) + 0x30" (pointer_expression "*(int *)(*param_1 + 4)" * (cast_expression "(int *)(*param_1 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 4)" ( (binary_expression "*param_1 + 4" (pointer_expression "*param_1" * identifier) + number_literal) )))) + number_literal) ))))) )) (argument_list "(param_4,param_5,local_20)" ( identifier , identifier , identifier ))) ;) (expression_statement "iVar5 = param_1[2];" (assignment_expression "iVar5 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (if_statement "if ((uint)param_1[3] < iVar5 + 0xcU) {\n    iVar5 = param_1[3] * 2;\n    param_1[3] = iVar5;\n    iVar1 = xrealloc(param_1[1],iVar5);\n    iVar5 = param_1[2];\n    param_1[1] = iVar1;\n  }\n  else {\n    iVar1 = param_1[1];\n  }" if (parenthesized_expression "((uint)param_1[3] < iVar5 + 0xcU)" ( (binary_expression "(uint)param_1[3] < iVar5 + 0xcU" (cast_expression "(uint)param_1[3]" ( (type_descriptor "uint" type_identifier) ) (subscript_expression "param_1[3]" identifier [ number_literal ])) < (binary_expression "iVar5 + 0xcU" identifier + number_literal)) )) (compound_statement "{\n    iVar5 = param_1[3] * 2;\n    param_1[3] = iVar5;\n    iVar1 = xrealloc(param_1[1],iVar5);\n    iVar5 = param_1[2];\n    param_1[1] = iVar1;\n  }" { (expression_statement "iVar5 = param_1[3] * 2;" (assignment_expression "iVar5 = param_1[3] * 2" identifier = (binary_expression "param_1[3] * 2" (subscript_expression "param_1[3]" identifier [ number_literal ]) * number_literal)) ;) (expression_statement "param_1[3] = iVar5;" (assignment_expression "param_1[3] = iVar5" (subscript_expression "param_1[3]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar1 = xrealloc(param_1[1],iVar5);" (assignment_expression "iVar1 = xrealloc(param_1[1],iVar5)" identifier = (call_expression "xrealloc(param_1[1],iVar5)" identifier (argument_list "(param_1[1],iVar5)" ( (subscript_expression "param_1[1]" identifier [ number_literal ]) , identifier )))) ;) (expression_statement "iVar5 = param_1[2];" (assignment_expression "iVar5 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (expression_statement "param_1[1] = iVar1;" (assignment_expression "param_1[1] = iVar1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = identifier) ;) }) (else_clause "else {\n    iVar1 = param_1[1];\n  }" else (compound_statement "{\n    iVar1 = param_1[1];\n  }" { (expression_statement "iVar1 = param_1[1];" (assignment_expression "iVar1 = param_1[1]" identifier = (subscript_expression "param_1[1]" identifier [ number_literal ])) ;) }))) (expression_statement "*(undefined4 *)(iVar1 + iVar5) = local_28;" (assignment_expression "*(undefined4 *)(iVar1 + iVar5) = local_28" (pointer_expression "*(undefined4 *)(iVar1 + iVar5)" * (cast_expression "(undefined4 *)(iVar1 + iVar5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + iVar5)" ( (binary_expression "iVar1 + iVar5" identifier + identifier) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar1 + 4 + iVar5) = local_24;" (assignment_expression "*(undefined4 *)(iVar1 + 4 + iVar5) = local_24" (pointer_expression "*(undefined4 *)(iVar1 + 4 + iVar5)" * (cast_expression "(undefined4 *)(iVar1 + 4 + iVar5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 4 + iVar5)" ( (binary_expression "iVar1 + 4 + iVar5" (binary_expression "iVar1 + 4" identifier + number_literal) + identifier) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar1 + 8 + iVar5) = local_20[0];" (assignment_expression "*(undefined4 *)(iVar1 + 8 + iVar5) = local_20[0]" (pointer_expression "*(undefined4 *)(iVar1 + 8 + iVar5)" * (cast_expression "(undefined4 *)(iVar1 + 8 + iVar5)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 8 + iVar5)" ( (binary_expression "iVar1 + 8 + iVar5" (binary_expression "iVar1 + 8" identifier + number_literal) + identifier) )))) = (subscript_expression "local_20[0]" identifier [ number_literal ])) ;) (expression_statement "param_1[2] = param_1[2] + 0xc;" (assignment_expression "param_1[2] = param_1[2] + 0xc" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (binary_expression "param_1[2] + 0xc" (subscript_expression "param_1[2]" identifier [ number_literal ]) + number_literal)) ;) (return_statement "return 1;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + LIT) , IDENT , LIT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , (string_literal " string_content ") , LIT )))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (return_statement return LIT ;) })) (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 (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) = IDENT) ;) }))) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (binary_expression IDENT + LIT) + IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) }))) }))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + LIT) ))))) )) (argument_list ( IDENT , IDENT , (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression (field_expression IDENT . field_identifier) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + LIT) ))))) )) (argument_list ( IDENT , (binary_expression IDENT >> LIT) , (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression & IDENT)) + LIT) ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) + LIT) ))))) )) (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) < (binary_expression IDENT + LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) * LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) )))) = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 __regparm3\nFUN_00029160(int *param_1,byte param_2,int param_3,undefined4 param_4,undefined4 param_5,\n            char *param_6)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  size_t sVar4;\n  int iVar5;\n  int local_30;\n  undefined4 local_28;\n  undefined4 local_24;\n  undefined4 local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2916d;\n  if (param_6 == (char *)0x0) {\n    iVar5 = 0;\n    local_30 = 0;\n  }\n  else {\n    iVar1 = bfd_hash_lookup(param_1 + 7,param_6,1,1);\n    if (iVar1 == 0) {\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      uVar3 = dcgettext(0,"string_hash_lookup failed: %s",5);\n      FUN_0002c910(uVar3,uVar2);\n      return 0;\n    }\n    iVar5 = *(int *)(iVar1 + 0x10);\n    if (iVar5 == -1) {\n      iVar5 = param_1[6];\n      *(int *)(iVar1 + 0x10) = iVar5;\n      if (param_1[5] == 0) {\n        param_1[4] = iVar1;\n      }\n      else {\n        *(int *)(param_1[5] + 0xc) = iVar1;\n      }\n      local_30 = 0;\n      param_1[5] = iVar1;\n      sVar4 = strlen(param_6);\n      param_1[6] = iVar5 + 1 + sVar4;\n    }\n    else {\n      local_30 = iVar5 >> 0x1f;\n    }\n  }\n  (**(code **)(*(int *)(*param_1 + 4) + 0x30))(iVar5,local_30,&local_28);\n  local_24._0_2_ = (ushort)param_2;\n  (**(code **)(*(int *)(*param_1 + 4) + 0x3c))(param_3,param_3 >> 0x1f,(int)&local_24 + 2);\n  (**(code **)(*(int *)(*param_1 + 4) + 0x30))(param_4,param_5,local_20);\n  iVar5 = param_1[2];\n  if ((uint)param_1[3] < iVar5 + 0xcU) {\n    iVar5 = param_1[3] * 2;\n    param_1[3] = iVar5;\n    iVar1 = xrealloc(param_1[1],iVar5);\n    iVar5 = param_1[2];\n    param_1[1] = iVar1;\n  }\n  else {\n    iVar1 = param_1[1];\n  }\n  *(undefined4 *)(iVar1 + iVar5) = local_28;\n  *(undefined4 *)(iVar1 + 4 + iVar5) = local_24;\n  *(undefined4 *)(iVar1 + 8 + iVar5) = local_20[0];\n  param_1[2] = param_1[2] + 0xc;\n  return 1;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00029160(int *param_1,byte param_2,int param_3,undefined4 param_4,undefined4 param_5,\n            char *param_6)" (identifier "FUN_00029160") (parameter_list "(int *param_1,byte param_2,int param_3,undefined4 param_4,undefined4 param_5,\n            char *param_6)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "byte param_2" (type_identifier "byte") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) (, ",") (parameter_declaration "undefined4 param_5" (type_identifier "undefined4") (identifier "param_5")) (, ",") (parameter_declaration "char *param_6" (primitive_type "char") (pointer_declarator "*param_6" (* "*") (identifier "param_6"))) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  size_t sVar4;\n  int iVar5;\n  int local_30;\n  undefined4 local_28;\n  undefined4 local_24;\n  undefined4 local_20 [3];\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x2916d;\n  if (param_6 == (char *)0x0) {\n    iVar5 = 0;\n    local_30 = 0;\n  }\n  else {\n    iVar1 = bfd_hash_lookup(param_1 + 7,param_6,1,1);\n    if (iVar1 == 0) {\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      uVar3 = dcgettext(0,"string_hash_lookup failed: %s",5);\n      FUN_0002c910(uVar3,uVar2);\n      return 0;\n    }\n    iVar5 = *(int *)(iVar1 + 0x10);\n    if (iVar5 == -1) {\n      iVar5 = param_1[6];\n      *(int *)(iVar1 + 0x10) = iVar5;\n      if (param_1[5] == 0) {\n        param_1[4] = iVar1;\n      }\n      else {\n        *(int *)(param_1[5] + 0xc) = iVar1;\n      }\n      local_30 = 0;\n      param_1[5] = iVar1;\n      sVar4 = strlen(param_6);\n      param_1[6] = iVar5 + 1 + sVar4;\n    }\n    else {\n      local_30 = iVar5 >> 0x1f;\n    }\n  }\n  (**(code **)(*(int *)(*param_1 + 4) + 0x30))(iVar5,local_30,&local_28);\n  local_24._0_2_ = (ushort)param_2;\n  (**(code **)(*(int *)(*param_1 + 4) + 0x3c))(param_3,param_3 >> 0x1f,(int)&local_24 + 2);\n  (**(code **)(*(int *)(*param_1 + 4) + 0x30))(param_4,param_5,local_20);\n  iVar5 = param_1[2];\n  if ((uint)param_1[3] < iVar5 + 0xcU) {\n    iVar5 = param_1[3] * 2;\n    param_1[3] = iVar5;\n    iVar1 = xrealloc(param_1[1],iVar5);\n    iVar5 = param_1[2];\n    param_1[1] = iVar1;\n  }\n  else {\n    iVar1 = param_1[1];\n  }\n  *(undefined4 *)(iVar1 + iVar5) = local_28;\n  *(undefined4 *)(iVar1 + 4 + iVar5) = local_24;\n  *(undefined4 *)(iVar1 + 8 + iVar5) = local_20[0];\n  param_1[2] = param_1[2] + 0xc;\n  return 1;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "size_t sVar4;" (primitive_type "size_t") (identifier "sVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int local_30;" (primitive_type "int") (identifier "local_30") (; ";")) (declaration "undefined4 local_28;" (type_identifier "undefined4") (identifier "local_28") (; ";")) (declaration "undefined4 local_24;" (type_identifier "undefined4") (identifier "local_24") (; ";")) (declaration "undefined4 local_20 [3];" (type_identifier "undefined4") (array_declarator "local_20 [3]" (identifier "local_20") ([ "[") (number_literal "3") (] "]")) (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x2916d;" (assignment_expression "uStack_14 = 0x2916d" (identifier "uStack_14") (= "=") (number_literal "0x2916d")) (; ";")) (if_statement "if (param_6 == (char *)0x0) {\n    iVar5 = 0;\n    local_30 = 0;\n  }\n  else {\n    iVar1 = bfd_hash_lookup(param_1 + 7,param_6,1,1);\n    if (iVar1 == 0) {\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      uVar3 = dcgettext(0,"string_hash_lookup failed: %s",5);\n      FUN_0002c910(uVar3,uVar2);\n      return 0;\n    }\n    iVar5 = *(int *)(iVar1 + 0x10);\n    if (iVar5 == -1) {\n      iVar5 = param_1[6];\n      *(int *)(iVar1 + 0x10) = iVar5;\n      if (param_1[5] == 0) {\n        param_1[4] = iVar1;\n      }\n      else {\n        *(int *)(param_1[5] + 0xc) = iVar1;\n      }\n      local_30 = 0;\n      param_1[5] = iVar1;\n      sVar4 = strlen(param_6);\n      param_1[6] = iVar5 + 1 + sVar4;\n    }\n    else {\n      local_30 = iVar5 >> 0x1f;\n    }\n  }" (if "if") (parenthesized_expression "(param_6 == (char *)0x0)" (( "(") (binary_expression "param_6 == (char *)0x0" (identifier "param_6") (== "==") (cast_expression "(char *)0x0" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar5 = 0;\n    local_30 = 0;\n  }" ({ "{") (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" (identifier "local_30") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    iVar1 = bfd_hash_lookup(param_1 + 7,param_6,1,1);\n    if (iVar1 == 0) {\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      uVar3 = dcgettext(0,"string_hash_lookup failed: %s",5);\n      FUN_0002c910(uVar3,uVar2);\n      return 0;\n    }\n    iVar5 = *(int *)(iVar1 + 0x10);\n    if (iVar5 == -1) {\n      iVar5 = param_1[6];\n      *(int *)(iVar1 + 0x10) = iVar5;\n      if (param_1[5] == 0) {\n        param_1[4] = iVar1;\n      }\n      else {\n        *(int *)(param_1[5] + 0xc) = iVar1;\n      }\n      local_30 = 0;\n      param_1[5] = iVar1;\n      sVar4 = strlen(param_6);\n      param_1[6] = iVar5 + 1 + sVar4;\n    }\n    else {\n      local_30 = iVar5 >> 0x1f;\n    }\n  }" (else "else") (compound_statement "{\n    iVar1 = bfd_hash_lookup(param_1 + 7,param_6,1,1);\n    if (iVar1 == 0) {\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      uVar3 = dcgettext(0,"string_hash_lookup failed: %s",5);\n      FUN_0002c910(uVar3,uVar2);\n      return 0;\n    }\n    iVar5 = *(int *)(iVar1 + 0x10);\n    if (iVar5 == -1) {\n      iVar5 = param_1[6];\n      *(int *)(iVar1 + 0x10) = iVar5;\n      if (param_1[5] == 0) {\n        param_1[4] = iVar1;\n      }\n      else {\n        *(int *)(param_1[5] + 0xc) = iVar1;\n      }\n      local_30 = 0;\n      param_1[5] = iVar1;\n      sVar4 = strlen(param_6);\n      param_1[6] = iVar5 + 1 + sVar4;\n    }\n    else {\n      local_30 = iVar5 >> 0x1f;\n    }\n  }" ({ "{") (expression_statement "iVar1 = bfd_hash_lookup(param_1 + 7,param_6,1,1);" (assignment_expression "iVar1 = bfd_hash_lookup(param_1 + 7,param_6,1,1)" (identifier "iVar1") (= "=") (call_expression "bfd_hash_lookup(param_1 + 7,param_6,1,1)" (identifier "bfd_hash_lookup") (argument_list "(param_1 + 7,param_6,1,1)" (( "(") (binary_expression "param_1 + 7" (identifier "param_1") (+ "+") (number_literal "7")) (, ",") (identifier "param_6") (, ",") (number_literal "1") (, ",") (number_literal "1") () ")")))) (; ";")) (if_statement "if (iVar1 == 0) {\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      uVar3 = dcgettext(0,"string_hash_lookup failed: %s",5);\n      FUN_0002c910(uVar3,uVar2);\n      return 0;\n    }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar2 = bfd_get_error();\n      uVar2 = bfd_errmsg(uVar2);\n      uVar3 = dcgettext(0,"string_hash_lookup failed: %s",5);\n      FUN_0002c910(uVar3,uVar2);\n      return 0;\n    }" ({ "{") (expression_statement "uVar2 = bfd_get_error();" (assignment_expression "uVar2 = bfd_get_error()" (identifier "uVar2") (= "=") (call_expression "bfd_get_error()" (identifier "bfd_get_error") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "uVar2 = bfd_errmsg(uVar2);" (assignment_expression "uVar2 = bfd_errmsg(uVar2)" (identifier "uVar2") (= "=") (call_expression "bfd_errmsg(uVar2)" (identifier "bfd_errmsg") (argument_list "(uVar2)" (( "(") (identifier "uVar2") () ")")))) (; ";")) (expression_statement "uVar3 = dcgettext(0,"string_hash_lookup failed: %s",5);" (assignment_expression "uVar3 = dcgettext(0,"string_hash_lookup failed: %s",5)" (identifier "uVar3") (= "=") (call_expression "dcgettext(0,"string_hash_lookup failed: %s",5)" (identifier "dcgettext") (argument_list "(0,"string_hash_lookup failed: %s",5)" (( "(") (number_literal "0") (, ",") (string_literal ""string_hash_lookup failed: %s"" (" """) (string_content "string_hash_lookup failed: %s") (" """)) (, ",") (number_literal "5") () ")")))) (; ";")) (expression_statement "FUN_0002c910(uVar3,uVar2);" (call_expression "FUN_0002c910(uVar3,uVar2)" (identifier "FUN_0002c910") (argument_list "(uVar3,uVar2)" (( "(") (identifier "uVar3") (, ",") (identifier "uVar2") () ")"))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar5 = *(int *)(iVar1 + 0x10);" (assignment_expression "iVar5 = *(int *)(iVar1 + 0x10)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(iVar1 + 0x10)" (* "*") (cast_expression "(int *)(iVar1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x10)" (( "(") (binary_expression "iVar1 + 0x10" (identifier "iVar1") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (if_statement "if (iVar5 == -1) {\n      iVar5 = param_1[6];\n      *(int *)(iVar1 + 0x10) = iVar5;\n      if (param_1[5] == 0) {\n        param_1[4] = iVar1;\n      }\n      else {\n        *(int *)(param_1[5] + 0xc) = iVar1;\n      }\n      local_30 = 0;\n      param_1[5] = iVar1;\n      sVar4 = strlen(param_6);\n      param_1[6] = iVar5 + 1 + sVar4;\n    }\n    else {\n      local_30 = iVar5 >> 0x1f;\n    }" (if "if") (parenthesized_expression "(iVar5 == -1)" (( "(") (binary_expression "iVar5 == -1" (identifier "iVar5") (== "==") (number_literal "-1")) () ")")) (compound_statement "{\n      iVar5 = param_1[6];\n      *(int *)(iVar1 + 0x10) = iVar5;\n      if (param_1[5] == 0) {\n        param_1[4] = iVar1;\n      }\n      else {\n        *(int *)(param_1[5] + 0xc) = iVar1;\n      }\n      local_30 = 0;\n      param_1[5] = iVar1;\n      sVar4 = strlen(param_6);\n      param_1[6] = iVar5 + 1 + sVar4;\n    }" ({ "{") (expression_statement "iVar5 = param_1[6];" (assignment_expression "iVar5 = param_1[6]" (identifier "iVar5") (= "=") (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]"))) (; ";")) (expression_statement "*(int *)(iVar1 + 0x10) = iVar5;" (assignment_expression "*(int *)(iVar1 + 0x10) = iVar5" (pointer_expression "*(int *)(iVar1 + 0x10)" (* "*") (cast_expression "(int *)(iVar1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x10)" (( "(") (binary_expression "iVar1 + 0x10" (identifier "iVar1") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "iVar5")) (; ";")) (if_statement "if (param_1[5] == 0) {\n        param_1[4] = iVar1;\n      }\n      else {\n        *(int *)(param_1[5] + 0xc) = iVar1;\n      }" (if "if") (parenthesized_expression "(param_1[5] == 0)" (( "(") (binary_expression "param_1[5] == 0" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        param_1[4] = iVar1;\n      }" ({ "{") (expression_statement "param_1[4] = iVar1;" (assignment_expression "param_1[4] = iVar1" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (} "}")) (else_clause "else {\n        *(int *)(param_1[5] + 0xc) = iVar1;\n      }" (else "else") (compound_statement "{\n        *(int *)(param_1[5] + 0xc) = iVar1;\n      }" ({ "{") (expression_statement "*(int *)(param_1[5] + 0xc) = iVar1;" (assignment_expression "*(int *)(param_1[5] + 0xc) = iVar1" (pointer_expression "*(int *)(param_1[5] + 0xc)" (* "*") (cast_expression "(int *)(param_1[5] + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1[5] + 0xc)" (( "(") (binary_expression "param_1[5] + 0xc" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "iVar1")) (; ";")) (} "}")))) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" (identifier "local_30") (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[5] = iVar1;" (assignment_expression "param_1[5] = iVar1" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "sVar4 = strlen(param_6);" (assignment_expression "sVar4 = strlen(param_6)" (identifier "sVar4") (= "=") (call_expression "strlen(param_6)" (identifier "strlen") (argument_list "(param_6)" (( "(") (identifier "param_6") () ")")))) (; ";")) (expression_statement "param_1[6] = iVar5 + 1 + sVar4;" (assignment_expression "param_1[6] = iVar5 + 1 + sVar4" (subscript_expression "param_1[6]" (identifier "param_1") ([ "[") (number_literal "6") (] "]")) (= "=") (binary_expression "iVar5 + 1 + sVar4" (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1")) (+ "+") (identifier "sVar4"))) (; ";")) (} "}")) (else_clause "else {\n      local_30 = iVar5 >> 0x1f;\n    }" (else "else") (compound_statement "{\n      local_30 = iVar5 >> 0x1f;\n    }" ({ "{") (expression_statement "local_30 = iVar5 >> 0x1f;" (assignment_expression "local_30 = iVar5 >> 0x1f" (identifier "local_30") (= "=") (binary_expression "iVar5 >> 0x1f" (identifier "iVar5") (>> ">>") (number_literal "0x1f"))) (; ";")) (} "}")))) (} "}")))) (expression_statement "(**(code **)(*(int *)(*param_1 + 4) + 0x30))(iVar5,local_30,&local_28);" (call_expression "(**(code **)(*(int *)(*param_1 + 4) + 0x30))(iVar5,local_30,&local_28)" (parenthesized_expression "(**(code **)(*(int *)(*param_1 + 4) + 0x30))" (( "(") (pointer_expression "**(code **)(*(int *)(*param_1 + 4) + 0x30)" (* "*") (pointer_expression "*(code **)(*(int *)(*param_1 + 4) + 0x30)" (* "*") (cast_expression "(code **)(*(int *)(*param_1 + 4) + 0x30)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(*param_1 + 4) + 0x30)" (( "(") (binary_expression "*(int *)(*param_1 + 4) + 0x30" (pointer_expression "*(int *)(*param_1 + 4)" (* "*") (cast_expression "(int *)(*param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 4)" (( "(") (binary_expression "*param_1 + 4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "0x30")) () ")"))))) () ")")) (argument_list "(iVar5,local_30,&local_28)" (( "(") (identifier "iVar5") (, ",") (identifier "local_30") (, ",") (pointer_expression "&local_28" (& "&") (identifier "local_28")) () ")"))) (; ";")) (expression_statement "local_24._0_2_ = (ushort)param_2;" (assignment_expression "local_24._0_2_ = (ushort)param_2" (field_expression "local_24._0_2_" (identifier "local_24") (. ".") (field_identifier "_0_2_")) (= "=") (cast_expression "(ushort)param_2" (( "(") (type_descriptor "ushort" (type_identifier "ushort")) () ")") (identifier "param_2"))) (; ";")) (expression_statement "(**(code **)(*(int *)(*param_1 + 4) + 0x3c))(param_3,param_3 >> 0x1f,(int)&local_24 + 2);" (call_expression "(**(code **)(*(int *)(*param_1 + 4) + 0x3c))(param_3,param_3 >> 0x1f,(int)&local_24 + 2)" (parenthesized_expression "(**(code **)(*(int *)(*param_1 + 4) + 0x3c))" (( "(") (pointer_expression "**(code **)(*(int *)(*param_1 + 4) + 0x3c)" (* "*") (pointer_expression "*(code **)(*(int *)(*param_1 + 4) + 0x3c)" (* "*") (cast_expression "(code **)(*(int *)(*param_1 + 4) + 0x3c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(*param_1 + 4) + 0x3c)" (( "(") (binary_expression "*(int *)(*param_1 + 4) + 0x3c" (pointer_expression "*(int *)(*param_1 + 4)" (* "*") (cast_expression "(int *)(*param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 4)" (( "(") (binary_expression "*param_1 + 4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "0x3c")) () ")"))))) () ")")) (argument_list "(param_3,param_3 >> 0x1f,(int)&local_24 + 2)" (( "(") (identifier "param_3") (, ",") (binary_expression "param_3 >> 0x1f" (identifier "param_3") (>> ">>") (number_literal "0x1f")) (, ",") (binary_expression "(int)&local_24 + 2" (cast_expression "(int)&local_24" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "&local_24" (& "&") (identifier "local_24"))) (+ "+") (number_literal "2")) () ")"))) (; ";")) (expression_statement "(**(code **)(*(int *)(*param_1 + 4) + 0x30))(param_4,param_5,local_20);" (call_expression "(**(code **)(*(int *)(*param_1 + 4) + 0x30))(param_4,param_5,local_20)" (parenthesized_expression "(**(code **)(*(int *)(*param_1 + 4) + 0x30))" (( "(") (pointer_expression "**(code **)(*(int *)(*param_1 + 4) + 0x30)" (* "*") (pointer_expression "*(code **)(*(int *)(*param_1 + 4) + 0x30)" (* "*") (cast_expression "(code **)(*(int *)(*param_1 + 4) + 0x30)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*(int *)(*param_1 + 4) + 0x30)" (( "(") (binary_expression "*(int *)(*param_1 + 4) + 0x30" (pointer_expression "*(int *)(*param_1 + 4)" (* "*") (cast_expression "(int *)(*param_1 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 4)" (( "(") (binary_expression "*param_1 + 4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "0x30")) () ")"))))) () ")")) (argument_list "(param_4,param_5,local_20)" (( "(") (identifier "param_4") (, ",") (identifier "param_5") (, ",") (identifier "local_20") () ")"))) (; ";")) (expression_statement "iVar5 = param_1[2];" (assignment_expression "iVar5 = param_1[2]" (identifier "iVar5") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (if_statement "if ((uint)param_1[3] < iVar5 + 0xcU) {\n    iVar5 = param_1[3] * 2;\n    param_1[3] = iVar5;\n    iVar1 = xrealloc(param_1[1],iVar5);\n    iVar5 = param_1[2];\n    param_1[1] = iVar1;\n  }\n  else {\n    iVar1 = param_1[1];\n  }" (if "if") (parenthesized_expression "((uint)param_1[3] < iVar5 + 0xcU)" (( "(") (binary_expression "(uint)param_1[3] < iVar5 + 0xcU" (cast_expression "(uint)param_1[3]" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (< "<") (binary_expression "iVar5 + 0xcU" (identifier "iVar5") (+ "+") (number_literal "0xcU"))) () ")")) (compound_statement "{\n    iVar5 = param_1[3] * 2;\n    param_1[3] = iVar5;\n    iVar1 = xrealloc(param_1[1],iVar5);\n    iVar5 = param_1[2];\n    param_1[1] = iVar1;\n  }" ({ "{") (expression_statement "iVar5 = param_1[3] * 2;" (assignment_expression "iVar5 = param_1[3] * 2" (identifier "iVar5") (= "=") (binary_expression "param_1[3] * 2" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (* "*") (number_literal "2"))) (; ";")) (expression_statement "param_1[3] = iVar5;" (assignment_expression "param_1[3] = iVar5" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "iVar1 = xrealloc(param_1[1],iVar5);" (assignment_expression "iVar1 = xrealloc(param_1[1],iVar5)" (identifier "iVar1") (= "=") (call_expression "xrealloc(param_1[1],iVar5)" (identifier "xrealloc") (argument_list "(param_1[1],iVar5)" (( "(") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (, ",") (identifier "iVar5") () ")")))) (; ";")) (expression_statement "iVar5 = param_1[2];" (assignment_expression "iVar5 = param_1[2]" (identifier "iVar5") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "param_1[1] = iVar1;" (assignment_expression "param_1[1] = iVar1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "iVar1")) (; ";")) (} "}")) (else_clause "else {\n    iVar1 = param_1[1];\n  }" (else "else") (compound_statement "{\n    iVar1 = param_1[1];\n  }" ({ "{") (expression_statement "iVar1 = param_1[1];" (assignment_expression "iVar1 = param_1[1]" (identifier "iVar1") (= "=") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}")))) (expression_statement "*(undefined4 *)(iVar1 + iVar5) = local_28;" (assignment_expression "*(undefined4 *)(iVar1 + iVar5) = local_28" (pointer_expression "*(undefined4 *)(iVar1 + iVar5)" (* "*") (cast_expression "(undefined4 *)(iVar1 + iVar5)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + iVar5)" (( "(") (binary_expression "iVar1 + iVar5" (identifier "iVar1") (+ "+") (identifier "iVar5")) () ")")))) (= "=") (identifier "local_28")) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 4 + iVar5) = local_24;" (assignment_expression "*(undefined4 *)(iVar1 + 4 + iVar5) = local_24" (pointer_expression "*(undefined4 *)(iVar1 + 4 + iVar5)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 4 + iVar5)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 4 + iVar5)" (( "(") (binary_expression "iVar1 + 4 + iVar5" (binary_expression "iVar1 + 4" (identifier "iVar1") (+ "+") (number_literal "4")) (+ "+") (identifier "iVar5")) () ")")))) (= "=") (identifier "local_24")) (; ";")) (expression_statement "*(undefined4 *)(iVar1 + 8 + iVar5) = local_20[0];" (assignment_expression "*(undefined4 *)(iVar1 + 8 + iVar5) = local_20[0]" (pointer_expression "*(undefined4 *)(iVar1 + 8 + iVar5)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 8 + iVar5)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 8 + iVar5)" (( "(") (binary_expression "iVar1 + 8 + iVar5" (binary_expression "iVar1 + 8" (identifier "iVar1") (+ "+") (number_literal "8")) (+ "+") (identifier "iVar5")) () ")")))) (= "=") (subscript_expression "local_20[0]" (identifier "local_20") ([ "[") (number_literal "0") (] "]"))) (; ";")) (expression_statement "param_1[2] = param_1[2] + 0xc;" (assignment_expression "param_1[2] = param_1[2] + 0xc" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "param_1[2] + 0xc" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (+ "+") (number_literal "0xc"))) (; ";")) (return_statement "return 1;" (return "return") (number_literal "1") (; ";")) (} "}")))

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

type_1 __regparm3
function_1(type_2 *info,int type,int desc,type_3 value,char *var_1)

{
  type_4 *var_3;
  type_5 *var_14;
  type_6 uVar3;
  char *format;
  size_t var_10;
  size_t var_8;
  type_7 local_48;
  int local_30;
  type_5 var_12 [12];
  
  if (var_1 == (char *)0x0) {
    var_8 = 0;
    local_30 = 0;
  }
  else {
    var_3 = (type_4 *)var_2(&info->strhash,var_1,1,1);
    if (var_3 == (type_4 *)0x0) {
      uVar3 = var_4();
      uVar3 = var_5(uVar3);
      format = (char *)var_6(0,"string_hash_lookup failed: %s",5);
      var_7(format,uVar3);
      return 0;
    }
    var_8 = var_3->index;
    if (var_8 == 0xffffffff) {
      var_8 = info->strings_size;
      var_3->index = var_8;
      if (info->last_string == (type_4 *)0x0) {
        info->strings = var_3;
      }
      else {
        info->last_string->next = var_3;
      }
      local_30 = 0;
      info->last_string = var_3;
      var_10 = var_9(var_1);
      info->strings_size = var_8 + 1 + var_10;
    }
    else {
      local_30 = (int)var_8 >> 0x1f;
    }
  }
  (*info->abfd->xvec->bfd_putx32)(var_11(local_30,var_8),var_12);
  local_48 = (type_7)type;
  var_12[5] = '\0';
  var_12[4] = local_48;
  (*info->abfd->xvec->bfd_putx16)((type_8)desc,var_12 + 6);
  (*info->abfd->xvec->bfd_putx32)(value,var_12 + 8);
  var_8 = info->symbols_size;
  if (info->symbols_alloc < var_8 + 0xc) {
    var_8 = info->symbols_alloc * 2;
    info->symbols_alloc = var_8;
    var_14 = (type_5 *)var_13(info->symbols,var_8);
    var_8 = info->symbols_size;
    info->symbols = var_14;
  }
  else {
    var_14 = info->symbols;
  }
  *(type_6 *)(var_14 + var_8) = var_12._0_4_;
  *(type_6 *)(var_14 + var_8 + 4) = var_12._4_4_;
  *(type_6 *)(var_14 + var_8 + 8) = var_12._8_4_;
  info->symbols_size = info->symbols_size + 0xc;
  return 1;
}


(translation_unit (function_definition type: (type_identifier) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (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: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (identifier) (number_literal) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (number_literal) (string_literal (string_content)) (number_literal))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (return_statement (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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))) alternative: (else_clause (compound_statement (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: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))))) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (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: (number_literal))))) right: (number_literal))))))) arguments: (argument_list (identifier) (identifier) (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (field_expression argument: (identifier) field: (field_identifier)) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (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: (number_literal))))) right: (number_literal))))))) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (pointer_expression argument: (identifier))) right: (number_literal))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (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: (number_literal))))) right: (number_literal))))))) arguments: (argument_list (identifier) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (subscript_expression argument: (identifier) index: (number_literal))) right: (binary_expression left: (identifier) right: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (subscript_expression argument: (identifier) index: (number_literal)) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (identifier)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (subscript_expression argument: (identifier) index: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier))))) right: (identifier))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier))))) right: (subscript_expression argument: (identifier) index: (number_literal)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal)))) (return_statement (number_literal)))))

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

undefined4 __regparm3
MASKED(int *param_1,byte param_2,int param_3,undefined4 param_4,undefined4 param_5,
            char *param_6)

{
  int iVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  size_t sVar4;
  int iVar5;
  int local_30;
  undefined4 local_28;
  undefined4 local_24;
  undefined4 local_20 [3];
  undefined4 uStack_14;
  
  uStack_14 = 0x2916d;
  if (param_6 == (char *)0x0) {
    iVar5 = 0;
    local_30 = 0;
  }
  else {
    iVar1 = bfd_hash_lookup(param_1 + 7,param_6,1,1);
    if (iVar1 == 0) {
      uVar2 = bfd_get_error();
      uVar2 = bfd_errmsg(uVar2);
      uVar3 = dcgettext(0,"string_hash_lookup failed: %s",5);
      FUN_0002c910(uVar3,uVar2);
      return 0;
    }
    iVar5 = *(int *)(iVar1 + 0x10);
    if (iVar5 == -1) {
      iVar5 = param_1[6];
      *(int *)(iVar1 + 0x10) = iVar5;
      if (param_1[5] == 0) {
        param_1[4] = iVar1;
      }
      else {
        *(int *)(param_1[5] + 0xc) = iVar1;
      }
      local_30 = 0;
      param_1[5] = iVar1;
      sVar4 = strlen(param_6);
      param_1[6] = iVar5 + 1 + sVar4;
    }
    else {
      local_30 = iVar5 >> 0x1f;
    }
  }
  (**(code **)(*(int *)(*param_1 + 4) + 0x30))(iVar5,local_30,&local_28);
  local_24._0_2_ = (ushort)param_2;
  (**(code **)(*(int *)(*param_1 + 4) + 0x3c))(param_3,param_3 >> 0x1f,(int)&local_24 + 2);
  (**(code **)(*(int *)(*param_1 + 4) + 0x30))(param_4,param_5,local_20);
  iVar5 = param_1[2];
  if ((uint)param_1[3] < iVar5 + 0xcU) {
    iVar5 = param_1[3] * 2;
    param_1[3] = iVar5;
    iVar1 = xrealloc(param_1[1],iVar5);
    iVar5 = param_1[2];
    param_1[1] = iVar1;
  }
  else {
    iVar1 = param_1[1];
  }
  *(undefined4 *)(iVar1 + iVar5) = local_28;
  *(undefined4 *)(iVar1 + 4 + iVar5) = local_24;
  *(undefined4 *)(iVar1 + 8 + iVar5) = local_20[0];
  param_1[2] = param_1[2] + 0xc;
  return 1;
}

