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

valueT add_to_literal_pool(symbolS *sym,valueT addend,segT sec,int size)

{
  int *piVar1;
  segT secptr;
  subsegT subseg;
  uint uVar2;
  char *__s;
  int iVar3;
  bfd_reloc_code_real r_type;
  int iVar4;
  bool bVar5;
  
  subseg = now_subseg;
  secptr = now_seg;
  piVar1 = (int *)sec->userdata;
  if ((*piVar1 != 0) && (iVar4 = *(int *)(*piVar1 + 0x10), iVar4 != 0)) {
    uVar2 = 0;
    iVar3 = 0;
    do {
      if ((*(symbolS **)(iVar4 + 0xc) == sym) && (addend == *(valueT *)(iVar4 + 0x14))) {
        return CONCAT44(iVar3,uVar2);
      }
      iVar4 = *(int *)(iVar4 + 0x28);
      bVar5 = CARRY4(uVar2,size);
      uVar2 = uVar2 + size;
      iVar3 = iVar3 + (size >> 0x1f) + (uint)bVar5;
    } while (iVar4 != 0);
  }
  subseg_set(sec,0);
  __s = frag_more(size);
  memset(__s,0,size);
  if (size == 4) {
    r_type = BFD_RELOC_32;
  }
  else {
    if (size != 8) {
                    /* WARNING: Subroutine does not return */
      as_abort("../../gas/literal.c",0x52,"add_to_literal_pool");
    }
    r_type = BFD_RELOC_64;
  }
  fix_new(frag_now,(int)__s - (int)frag_now->fr_literal,size,sym,addend,0,r_type);
  subseg_set(secptr,subseg);
  uVar2 = piVar1[0xc];
  piVar1[0xc] = uVar2 + size;
  return (valueT)uVar2;
}



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

ulonglong FUN_00026230(int param_1,int param_2,int param_3,int param_4,uint param_5)

{
  int *piVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  uint uVar4;
  void *__s;
  void *pvVar5;
  int iVar6;
  undefined4 uVar7;
  int iVar8;
  bool bVar9;
  
  uVar3 = DAT_00088044;
  uVar2 = DAT_00087f1c;
  piVar1 = *(int **)(param_4 + 0x80);
  if ((*piVar1 != 0) && (iVar8 = *(int *)(*piVar1 + 0x10), iVar8 != 0)) {
    uVar4 = 0;
    iVar6 = 0;
    do {
      if ((*(int *)(iVar8 + 0xc) == param_1) &&
         (param_3 == *(int *)(iVar8 + 0x18) && param_2 == *(int *)(iVar8 + 0x14))) {
        return CONCAT44(iVar6,uVar4);
      }
      iVar8 = *(int *)(iVar8 + 0x28);
      bVar9 = CARRY4(uVar4,param_5);
      uVar4 = uVar4 + param_5;
      iVar6 = iVar6 + ((int)param_5 >> 0x1f) + (uint)bVar9;
    } while (iVar8 != 0);
  }
  FUN_00033da0(param_4,0);
  __s = (void *)FUN_00022130(param_5);
  pvVar5 = memset(__s,0,param_5);
  if (param_5 == 4) {
    uVar7 = 2;
  }
  else {
    if (param_5 != 8) {
                    /* WARNING: Subroutine does not return */
      FUN_00029670("../../gas/literal.c",0x52,"add_to_literal_pool",pvVar5);
    }
    uVar7 = 1;
  }
  FUN_0003c4e0(DAT_00088048,(int)__s - (DAT_00088048 + 0x50),param_5,param_1,param_2,param_3,0,uVar7
              );
  FUN_00033da0(uVar2,uVar3);
  uVar4 = piVar1[0xc];
  piVar1[0xc] = uVar4 + param_5;
  return (ulonglong)uVar4;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00016030
ADD EBX,0x57dc7
SUB ESP,0x2c
MOV EAX,dword ptr [ESP + 0x44]
MOV EDX,dword ptr [ESP + 0x48]
MOV ECX,dword ptr [ESP + 0x40]
MOV dword ptr [ESP + 0x10],EAX
MOV EAX,dword ptr [ESP + 0x4c]
MOV dword ptr [ESP + 0x14],EDX
MOV EAX,dword ptr [EAX + 0x80]
MOV dword ptr [ESP + 0x1c],EAX
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JZ 0x000262c0
MOV EBP,dword ptr [EAX + 0x10]
TEST EBP,EBP
JZ 0x000262c0
MOV ESI,dword ptr [ESP + 0x50]
XOR EAX,EAX
XOR EDX,EDX
MOV EDI,ESI
MOV dword ptr [ESP + 0x8],ESI
SAR EDI,0x1f
MOV dword ptr [ESP + 0xc],EDI
JMP 0x0002629f
MOV EBP,dword ptr [EBP + 0x28]
ADD EAX,dword ptr [ESP + 0x8]
ADC EDX,dword ptr [ESP + 0xc]
TEST EBP,EBP
JZ 0x000262c0
CMP dword ptr [EBP + 0xc],ECX
JNZ 0x00026290
MOV EDI,dword ptr [ESP + 0x10]
MOV ESI,dword ptr [ESP + 0x14]
XOR EDI,dword ptr [EBP + 0x14]
XOR ESI,dword ptr [EBP + 0x18]
OR ESI,EDI
JNZ 0x00026290
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA EAX,[EBX + 0x9f1c]
MOV dword ptr [ESP + 0x40],ECX
SUB ESP,0x8
MOV EBP,dword ptr [EAX]
LEA EAX,[EBX + 0xa044]
MOV EDI,dword ptr [EAX]
PUSH 0x0
PUSH dword ptr [ESP + 0x58]
CALL 0x00033da0
POP EDX
PUSH dword ptr [ESP + 0x5c]
CALL 0x00022130
ADD ESP,0xc
PUSH dword ptr [ESP + 0x54]
MOV ESI,EAX
PUSH 0x0
PUSH EAX
CALL 0x00014490
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x40]
CMP dword ptr [ESP + 0x50],0x4
JZ 0x00026368
CMP dword ptr [ESP + 0x50],0x8
JNZ 0x0002636f
MOV EDX,0x1
LEA EAX,[EBX + 0xa048]
MOV EAX,dword ptr [EAX]
PUSH EDX
PUSH 0x0
LEA EDX,[EAX + 0x50]
PUSH dword ptr [ESP + 0x1c]
SUB ESI,EDX
PUSH dword ptr [ESP + 0x1c]
PUSH ECX
PUSH dword ptr [ESP + 0x64]
PUSH ESI
PUSH EAX
CALL 0x0003c4e0
ADD ESP,0x18
PUSH EDI
PUSH EBP
CALL 0x00033da0
MOV EDI,dword ptr [ESP + 0x2c]
XOR EDX,EDX
MOV ECX,dword ptr [EDI + 0x30]
MOV EAX,ECX
ADD ECX,dword ptr [ESP + 0x60]
ADD ESP,0x10
MOV dword ptr [EDI + 0x30],ECX
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDX,0x2
JMP 0x00026317
PUSH EAX
LEA EAX,[EBX + 0xfffdfab0]
PUSH EAX
LEA EAX,[EBX + 0xfffdfa9c]
PUSH 0x52
PUSH EAX
CALL 0x00029670
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nulonglong FUN_00026230(int param_1,int param_2,int param_3,int param_4,uint param_5)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  void *__s;\n  void *pvVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int iVar8;\n  bool bVar9;\n  \n  uVar3 = DAT_00088044;\n  uVar2 = DAT_00087f1c;\n  piVar1 = *(int **)(param_4 + 0x80);\n  if ((*piVar1 != 0) && (iVar8 = *(int *)(*piVar1 + 0x10), iVar8 != 0)) {\n    uVar4 = 0;\n    iVar6 = 0;\n    do {\n      if ((*(int *)(iVar8 + 0xc) == param_1) &&\n         (param_3 == *(int *)(iVar8 + 0x18) && param_2 == *(int *)(iVar8 + 0x14))) {\n        return CONCAT44(iVar6,uVar4);\n      }\n      iVar8 = *(int *)(iVar8 + 0x28);\n      bVar9 = CARRY4(uVar4,param_5);\n      uVar4 = uVar4 + param_5;\n      iVar6 = iVar6 + ((int)param_5 >> 0x1f) + (uint)bVar9;\n    } while (iVar8 != 0);\n  }\n  FUN_00033da0(param_4,0);\n  __s = (void *)FUN_00022130(param_5);\n  pvVar5 = memset(__s,0,param_5);\n  if (param_5 == 4) {\n    uVar7 = 2;\n  }\n  else {\n    if (param_5 != 8) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00029670("../../gas/literal.c",0x52,"add_to_literal_pool",pvVar5);\n    }\n    uVar7 = 1;\n  }\n  FUN_0003c4e0(DAT_00088048,(int)__s - (DAT_00088048 + 0x50),param_5,param_1,param_2,param_3,0,uVar7\n              );\n  FUN_00033da0(uVar2,uVar3);\n  uVar4 = piVar1[0xc];\n  piVar1[0xc] = uVar4 + param_5;\n  return (ulonglong)uVar4;\n}\n\n" comment (function_definition "ulonglong FUN_00026230(int param_1,int param_2,int param_3,int param_4,uint param_5)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  void *__s;\n  void *pvVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int iVar8;\n  bool bVar9;\n  \n  uVar3 = DAT_00088044;\n  uVar2 = DAT_00087f1c;\n  piVar1 = *(int **)(param_4 + 0x80);\n  if ((*piVar1 != 0) && (iVar8 = *(int *)(*piVar1 + 0x10), iVar8 != 0)) {\n    uVar4 = 0;\n    iVar6 = 0;\n    do {\n      if ((*(int *)(iVar8 + 0xc) == param_1) &&\n         (param_3 == *(int *)(iVar8 + 0x18) && param_2 == *(int *)(iVar8 + 0x14))) {\n        return CONCAT44(iVar6,uVar4);\n      }\n      iVar8 = *(int *)(iVar8 + 0x28);\n      bVar9 = CARRY4(uVar4,param_5);\n      uVar4 = uVar4 + param_5;\n      iVar6 = iVar6 + ((int)param_5 >> 0x1f) + (uint)bVar9;\n    } while (iVar8 != 0);\n  }\n  FUN_00033da0(param_4,0);\n  __s = (void *)FUN_00022130(param_5);\n  pvVar5 = memset(__s,0,param_5);\n  if (param_5 == 4) {\n    uVar7 = 2;\n  }\n  else {\n    if (param_5 != 8) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00029670("../../gas/literal.c",0x52,"add_to_literal_pool",pvVar5);\n    }\n    uVar7 = 1;\n  }\n  FUN_0003c4e0(DAT_00088048,(int)__s - (DAT_00088048 + 0x50),param_5,param_1,param_2,param_3,0,uVar7\n              );\n  FUN_00033da0(uVar2,uVar3);\n  uVar4 = piVar1[0xc];\n  piVar1[0xc] = uVar4 + param_5;\n  return (ulonglong)uVar4;\n}" type_identifier (function_declarator "FUN_00026230(int param_1,int param_2,int param_3,int param_4,uint param_5)" identifier (parameter_list "(int param_1,int param_2,int param_3,int param_4,uint param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "uint param_5" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  void *__s;\n  void *pvVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int iVar8;\n  bool bVar9;\n  \n  uVar3 = DAT_00088044;\n  uVar2 = DAT_00087f1c;\n  piVar1 = *(int **)(param_4 + 0x80);\n  if ((*piVar1 != 0) && (iVar8 = *(int *)(*piVar1 + 0x10), iVar8 != 0)) {\n    uVar4 = 0;\n    iVar6 = 0;\n    do {\n      if ((*(int *)(iVar8 + 0xc) == param_1) &&\n         (param_3 == *(int *)(iVar8 + 0x18) && param_2 == *(int *)(iVar8 + 0x14))) {\n        return CONCAT44(iVar6,uVar4);\n      }\n      iVar8 = *(int *)(iVar8 + 0x28);\n      bVar9 = CARRY4(uVar4,param_5);\n      uVar4 = uVar4 + param_5;\n      iVar6 = iVar6 + ((int)param_5 >> 0x1f) + (uint)bVar9;\n    } while (iVar8 != 0);\n  }\n  FUN_00033da0(param_4,0);\n  __s = (void *)FUN_00022130(param_5);\n  pvVar5 = memset(__s,0,param_5);\n  if (param_5 == 4) {\n    uVar7 = 2;\n  }\n  else {\n    if (param_5 != 8) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00029670("../../gas/literal.c",0x52,"add_to_literal_pool",pvVar5);\n    }\n    uVar7 = 1;\n  }\n  FUN_0003c4e0(DAT_00088048,(int)__s - (DAT_00088048 + 0x50),param_5,param_1,param_2,param_3,0,uVar7\n              );\n  FUN_00033da0(uVar2,uVar3);\n  uVar4 = piVar1[0xc];\n  piVar1[0xc] = uVar4 + param_5;\n  return (ulonglong)uVar4;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "void *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "void *pvVar5;" primitive_type (pointer_declarator "*pvVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "bool bVar9;" primitive_type identifier ;) (expression_statement "uVar3 = DAT_00088044;" (assignment_expression "uVar3 = DAT_00088044" identifier = identifier) ;) (expression_statement "uVar2 = DAT_00087f1c;" (assignment_expression "uVar2 = DAT_00087f1c" identifier = identifier) ;) (expression_statement "piVar1 = *(int **)(param_4 + 0x80);" (assignment_expression "piVar1 = *(int **)(param_4 + 0x80)" identifier = (pointer_expression "*(int **)(param_4 + 0x80)" * (cast_expression "(int **)(param_4 + 0x80)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_4 + 0x80)" ( (binary_expression "param_4 + 0x80" identifier + number_literal) ))))) ;) (if_statement "if ((*piVar1 != 0) && (iVar8 = *(int *)(*piVar1 + 0x10), iVar8 != 0)) {\n    uVar4 = 0;\n    iVar6 = 0;\n    do {\n      if ((*(int *)(iVar8 + 0xc) == param_1) &&\n         (param_3 == *(int *)(iVar8 + 0x18) && param_2 == *(int *)(iVar8 + 0x14))) {\n        return CONCAT44(iVar6,uVar4);\n      }\n      iVar8 = *(int *)(iVar8 + 0x28);\n      bVar9 = CARRY4(uVar4,param_5);\n      uVar4 = uVar4 + param_5;\n      iVar6 = iVar6 + ((int)param_5 >> 0x1f) + (uint)bVar9;\n    } while (iVar8 != 0);\n  }" if (parenthesized_expression "((*piVar1 != 0) && (iVar8 = *(int *)(*piVar1 + 0x10), iVar8 != 0))" ( (binary_expression "(*piVar1 != 0) && (iVar8 = *(int *)(*piVar1 + 0x10), iVar8 != 0)" (parenthesized_expression "(*piVar1 != 0)" ( (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" * identifier) != number_literal) )) && (parenthesized_expression "(iVar8 = *(int *)(*piVar1 + 0x10), iVar8 != 0)" ( (comma_expression "iVar8 = *(int *)(*piVar1 + 0x10), iVar8 != 0" (assignment_expression "iVar8 = *(int *)(*piVar1 + 0x10)" identifier = (pointer_expression "*(int *)(*piVar1 + 0x10)" * (cast_expression "(int *)(*piVar1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar1 + 0x10)" ( (binary_expression "*piVar1 + 0x10" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) , (binary_expression "iVar8 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    uVar4 = 0;\n    iVar6 = 0;\n    do {\n      if ((*(int *)(iVar8 + 0xc) == param_1) &&\n         (param_3 == *(int *)(iVar8 + 0x18) && param_2 == *(int *)(iVar8 + 0x14))) {\n        return CONCAT44(iVar6,uVar4);\n      }\n      iVar8 = *(int *)(iVar8 + 0x28);\n      bVar9 = CARRY4(uVar4,param_5);\n      uVar4 = uVar4 + param_5;\n      iVar6 = iVar6 + ((int)param_5 >> 0x1f) + (uint)bVar9;\n    } while (iVar8 != 0);\n  }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n      if ((*(int *)(iVar8 + 0xc) == param_1) &&\n         (param_3 == *(int *)(iVar8 + 0x18) && param_2 == *(int *)(iVar8 + 0x14))) {\n        return CONCAT44(iVar6,uVar4);\n      }\n      iVar8 = *(int *)(iVar8 + 0x28);\n      bVar9 = CARRY4(uVar4,param_5);\n      uVar4 = uVar4 + param_5;\n      iVar6 = iVar6 + ((int)param_5 >> 0x1f) + (uint)bVar9;\n    } while (iVar8 != 0);" do (compound_statement "{\n      if ((*(int *)(iVar8 + 0xc) == param_1) &&\n         (param_3 == *(int *)(iVar8 + 0x18) && param_2 == *(int *)(iVar8 + 0x14))) {\n        return CONCAT44(iVar6,uVar4);\n      }\n      iVar8 = *(int *)(iVar8 + 0x28);\n      bVar9 = CARRY4(uVar4,param_5);\n      uVar4 = uVar4 + param_5;\n      iVar6 = iVar6 + ((int)param_5 >> 0x1f) + (uint)bVar9;\n    }" { (if_statement "if ((*(int *)(iVar8 + 0xc) == param_1) &&\n         (param_3 == *(int *)(iVar8 + 0x18) && param_2 == *(int *)(iVar8 + 0x14))) {\n        return CONCAT44(iVar6,uVar4);\n      }" if (parenthesized_expression "((*(int *)(iVar8 + 0xc) == param_1) &&\n         (param_3 == *(int *)(iVar8 + 0x18) && param_2 == *(int *)(iVar8 + 0x14)))" ( (binary_expression "(*(int *)(iVar8 + 0xc) == param_1) &&\n         (param_3 == *(int *)(iVar8 + 0x18) && param_2 == *(int *)(iVar8 + 0x14))" (parenthesized_expression "(*(int *)(iVar8 + 0xc) == param_1)" ( (binary_expression "*(int *)(iVar8 + 0xc) == param_1" (pointer_expression "*(int *)(iVar8 + 0xc)" * (cast_expression "(int *)(iVar8 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0xc)" ( (binary_expression "iVar8 + 0xc" identifier + number_literal) )))) == identifier) )) && (parenthesized_expression "(param_3 == *(int *)(iVar8 + 0x18) && param_2 == *(int *)(iVar8 + 0x14))" ( (binary_expression "param_3 == *(int *)(iVar8 + 0x18) && param_2 == *(int *)(iVar8 + 0x14)" (binary_expression "param_3 == *(int *)(iVar8 + 0x18)" identifier == (pointer_expression "*(int *)(iVar8 + 0x18)" * (cast_expression "(int *)(iVar8 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x18)" ( (binary_expression "iVar8 + 0x18" identifier + number_literal) ))))) && (binary_expression "param_2 == *(int *)(iVar8 + 0x14)" identifier == (pointer_expression "*(int *)(iVar8 + 0x14)" * (cast_expression "(int *)(iVar8 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x14)" ( (binary_expression "iVar8 + 0x14" identifier + number_literal) )))))) ))) )) (compound_statement "{\n        return CONCAT44(iVar6,uVar4);\n      }" { (return_statement "return CONCAT44(iVar6,uVar4);" return (call_expression "CONCAT44(iVar6,uVar4)" identifier (argument_list "(iVar6,uVar4)" ( identifier , identifier ))) ;) })) (expression_statement "iVar8 = *(int *)(iVar8 + 0x28);" (assignment_expression "iVar8 = *(int *)(iVar8 + 0x28)" identifier = (pointer_expression "*(int *)(iVar8 + 0x28)" * (cast_expression "(int *)(iVar8 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x28)" ( (binary_expression "iVar8 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "bVar9 = CARRY4(uVar4,param_5);" (assignment_expression "bVar9 = CARRY4(uVar4,param_5)" identifier = (call_expression "CARRY4(uVar4,param_5)" identifier (argument_list "(uVar4,param_5)" ( identifier , identifier )))) ;) (expression_statement "uVar4 = uVar4 + param_5;" (assignment_expression "uVar4 = uVar4 + param_5" identifier = (binary_expression "uVar4 + param_5" identifier + identifier)) ;) (expression_statement "iVar6 = iVar6 + ((int)param_5 >> 0x1f) + (uint)bVar9;" (assignment_expression "iVar6 = iVar6 + ((int)param_5 >> 0x1f) + (uint)bVar9" identifier = (binary_expression "iVar6 + ((int)param_5 >> 0x1f) + (uint)bVar9" (binary_expression "iVar6 + ((int)param_5 >> 0x1f)" identifier + (parenthesized_expression "((int)param_5 >> 0x1f)" ( (binary_expression "(int)param_5 >> 0x1f" (cast_expression "(int)param_5" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) ))) + (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) }) while (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) ;) })) (expression_statement "FUN_00033da0(param_4,0);" (call_expression "FUN_00033da0(param_4,0)" identifier (argument_list "(param_4,0)" ( identifier , number_literal ))) ;) (expression_statement "__s = (void *)FUN_00022130(param_5);" (assignment_expression "__s = (void *)FUN_00022130(param_5)" identifier = (cast_expression "(void *)FUN_00022130(param_5)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00022130(param_5)" identifier (argument_list "(param_5)" ( identifier ))))) ;) (expression_statement "pvVar5 = memset(__s,0,param_5);" (assignment_expression "pvVar5 = memset(__s,0,param_5)" identifier = (call_expression "memset(__s,0,param_5)" identifier (argument_list "(__s,0,param_5)" ( identifier , number_literal , identifier )))) ;) (if_statement "if (param_5 == 4) {\n    uVar7 = 2;\n  }\n  else {\n    if (param_5 != 8) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00029670("../../gas/literal.c",0x52,"add_to_literal_pool",pvVar5);\n    }\n    uVar7 = 1;\n  }" if (parenthesized_expression "(param_5 == 4)" ( (binary_expression "param_5 == 4" identifier == number_literal) )) (compound_statement "{\n    uVar7 = 2;\n  }" { (expression_statement "uVar7 = 2;" (assignment_expression "uVar7 = 2" identifier = number_literal) ;) }) (else_clause "else {\n    if (param_5 != 8) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00029670("../../gas/literal.c",0x52,"add_to_literal_pool",pvVar5);\n    }\n    uVar7 = 1;\n  }" else (compound_statement "{\n    if (param_5 != 8) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00029670("../../gas/literal.c",0x52,"add_to_literal_pool",pvVar5);\n    }\n    uVar7 = 1;\n  }" { (if_statement "if (param_5 != 8) {\n                    /* WARNING: Subroutine does not return */\n      FUN_00029670("../../gas/literal.c",0x52,"add_to_literal_pool",pvVar5);\n    }" if (parenthesized_expression "(param_5 != 8)" ( (binary_expression "param_5 != 8" identifier != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      FUN_00029670("../../gas/literal.c",0x52,"add_to_literal_pool",pvVar5);\n    }" { comment (expression_statement "FUN_00029670("../../gas/literal.c",0x52,"add_to_literal_pool",pvVar5);" (call_expression "FUN_00029670("../../gas/literal.c",0x52,"add_to_literal_pool",pvVar5)" identifier (argument_list "("../../gas/literal.c",0x52,"add_to_literal_pool",pvVar5)" ( (string_literal ""../../gas/literal.c"" " string_content ") , number_literal , (string_literal ""add_to_literal_pool"" " string_content ") , identifier ))) ;) })) (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" identifier = number_literal) ;) }))) (expression_statement "FUN_0003c4e0(DAT_00088048,(int)__s - (DAT_00088048 + 0x50),param_5,param_1,param_2,param_3,0,uVar7\n              );" (call_expression "FUN_0003c4e0(DAT_00088048,(int)__s - (DAT_00088048 + 0x50),param_5,param_1,param_2,param_3,0,uVar7\n              )" identifier (argument_list "(DAT_00088048,(int)__s - (DAT_00088048 + 0x50),param_5,param_1,param_2,param_3,0,uVar7\n              )" ( identifier , (binary_expression "(int)__s - (DAT_00088048 + 0x50)" (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier) - (parenthesized_expression "(DAT_00088048 + 0x50)" ( (binary_expression "DAT_00088048 + 0x50" identifier + number_literal) ))) , identifier , identifier , identifier , identifier , number_literal , identifier ))) ;) (expression_statement "FUN_00033da0(uVar2,uVar3);" (call_expression "FUN_00033da0(uVar2,uVar3)" identifier (argument_list "(uVar2,uVar3)" ( identifier , identifier ))) ;) (expression_statement "uVar4 = piVar1[0xc];" (assignment_expression "uVar4 = piVar1[0xc]" identifier = (subscript_expression "piVar1[0xc]" identifier [ number_literal ])) ;) (expression_statement "piVar1[0xc] = uVar4 + param_5;" (assignment_expression "piVar1[0xc] = uVar4 + param_5" (subscript_expression "piVar1[0xc]" identifier [ number_literal ]) = (binary_expression "uVar4 + param_5" identifier + identifier)) ;) (return_statement "return (ulonglong)uVar4;" return (cast_expression "(ulonglong)uVar4" ( (type_descriptor "ulonglong" type_identifier) ) identifier) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvalueT add_to_literal_pool(symbolS *sym,valueT addend,segT sec,int size)\n\n{\n  int *piVar1;\n  segT secptr;\n  subsegT subseg;\n  uint uVar2;\n  char *__s;\n  int iVar3;\n  bfd_reloc_code_real r_type;\n  int iVar4;\n  bool bVar5;\n  \n  subseg = now_subseg;\n  secptr = now_seg;\n  piVar1 = (int *)sec->userdata;\n  if ((*piVar1 != 0) && (iVar4 = *(int *)(*piVar1 + 0x10), iVar4 != 0)) {\n    uVar2 = 0;\n    iVar3 = 0;\n    do {\n      if ((*(symbolS **)(iVar4 + 0xc) == sym) && (addend == *(valueT *)(iVar4 + 0x14))) {\n        return CONCAT44(iVar3,uVar2);\n      }\n      iVar4 = *(int *)(iVar4 + 0x28);\n      bVar5 = CARRY4(uVar2,size);\n      uVar2 = uVar2 + size;\n      iVar3 = iVar3 + (size >> 0x1f) + (uint)bVar5;\n    } while (iVar4 != 0);\n  }\n  subseg_set(sec,0);\n  __s = frag_more(size);\n  memset(__s,0,size);\n  if (size == 4) {\n    r_type = BFD_RELOC_32;\n  }\n  else {\n    if (size != 8) {\n                    /* WARNING: Subroutine does not return */\n      as_abort("../../gas/literal.c",0x52,"add_to_literal_pool");\n    }\n    r_type = BFD_RELOC_64;\n  }\n  fix_new(frag_now,(int)__s - (int)frag_now->fr_literal,size,sym,addend,0,r_type);\n  subseg_set(secptr,subseg);\n  uVar2 = piVar1[0xc];\n  piVar1[0xc] = uVar2 + size;\n  return (valueT)uVar2;\n}\n\n" comment (function_definition "valueT add_to_literal_pool(symbolS *sym,valueT addend,segT sec,int size)\n\n{\n  int *piVar1;\n  segT secptr;\n  subsegT subseg;\n  uint uVar2;\n  char *__s;\n  int iVar3;\n  bfd_reloc_code_real r_type;\n  int iVar4;\n  bool bVar5;\n  \n  subseg = now_subseg;\n  secptr = now_seg;\n  piVar1 = (int *)sec->userdata;\n  if ((*piVar1 != 0) && (iVar4 = *(int *)(*piVar1 + 0x10), iVar4 != 0)) {\n    uVar2 = 0;\n    iVar3 = 0;\n    do {\n      if ((*(symbolS **)(iVar4 + 0xc) == sym) && (addend == *(valueT *)(iVar4 + 0x14))) {\n        return CONCAT44(iVar3,uVar2);\n      }\n      iVar4 = *(int *)(iVar4 + 0x28);\n      bVar5 = CARRY4(uVar2,size);\n      uVar2 = uVar2 + size;\n      iVar3 = iVar3 + (size >> 0x1f) + (uint)bVar5;\n    } while (iVar4 != 0);\n  }\n  subseg_set(sec,0);\n  __s = frag_more(size);\n  memset(__s,0,size);\n  if (size == 4) {\n    r_type = BFD_RELOC_32;\n  }\n  else {\n    if (size != 8) {\n                    /* WARNING: Subroutine does not return */\n      as_abort("../../gas/literal.c",0x52,"add_to_literal_pool");\n    }\n    r_type = BFD_RELOC_64;\n  }\n  fix_new(frag_now,(int)__s - (int)frag_now->fr_literal,size,sym,addend,0,r_type);\n  subseg_set(secptr,subseg);\n  uVar2 = piVar1[0xc];\n  piVar1[0xc] = uVar2 + size;\n  return (valueT)uVar2;\n}" type_identifier (function_declarator "add_to_literal_pool(symbolS *sym,valueT addend,segT sec,int size)" identifier (parameter_list "(symbolS *sym,valueT addend,segT sec,int size)" ( (parameter_declaration "symbolS *sym" type_identifier (pointer_declarator "*sym" * identifier)) , (parameter_declaration "valueT addend" type_identifier identifier) , (parameter_declaration "segT sec" type_identifier identifier) , (parameter_declaration "int size" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  segT secptr;\n  subsegT subseg;\n  uint uVar2;\n  char *__s;\n  int iVar3;\n  bfd_reloc_code_real r_type;\n  int iVar4;\n  bool bVar5;\n  \n  subseg = now_subseg;\n  secptr = now_seg;\n  piVar1 = (int *)sec->userdata;\n  if ((*piVar1 != 0) && (iVar4 = *(int *)(*piVar1 + 0x10), iVar4 != 0)) {\n    uVar2 = 0;\n    iVar3 = 0;\n    do {\n      if ((*(symbolS **)(iVar4 + 0xc) == sym) && (addend == *(valueT *)(iVar4 + 0x14))) {\n        return CONCAT44(iVar3,uVar2);\n      }\n      iVar4 = *(int *)(iVar4 + 0x28);\n      bVar5 = CARRY4(uVar2,size);\n      uVar2 = uVar2 + size;\n      iVar3 = iVar3 + (size >> 0x1f) + (uint)bVar5;\n    } while (iVar4 != 0);\n  }\n  subseg_set(sec,0);\n  __s = frag_more(size);\n  memset(__s,0,size);\n  if (size == 4) {\n    r_type = BFD_RELOC_32;\n  }\n  else {\n    if (size != 8) {\n                    /* WARNING: Subroutine does not return */\n      as_abort("../../gas/literal.c",0x52,"add_to_literal_pool");\n    }\n    r_type = BFD_RELOC_64;\n  }\n  fix_new(frag_now,(int)__s - (int)frag_now->fr_literal,size,sym,addend,0,r_type);\n  subseg_set(secptr,subseg);\n  uVar2 = piVar1[0xc];\n  piVar1[0xc] = uVar2 + size;\n  return (valueT)uVar2;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "segT secptr;" type_identifier identifier ;) (declaration "subsegT subseg;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "char *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "bfd_reloc_code_real r_type;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "bool bVar5;" primitive_type identifier ;) (expression_statement "subseg = now_subseg;" (assignment_expression "subseg = now_subseg" identifier = identifier) ;) (expression_statement "secptr = now_seg;" (assignment_expression "secptr = now_seg" identifier = identifier) ;) (expression_statement "piVar1 = (int *)sec->userdata;" (assignment_expression "piVar1 = (int *)sec->userdata" identifier = (cast_expression "(int *)sec->userdata" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (field_expression "sec->userdata" identifier -> field_identifier))) ;) (if_statement "if ((*piVar1 != 0) && (iVar4 = *(int *)(*piVar1 + 0x10), iVar4 != 0)) {\n    uVar2 = 0;\n    iVar3 = 0;\n    do {\n      if ((*(symbolS **)(iVar4 + 0xc) == sym) && (addend == *(valueT *)(iVar4 + 0x14))) {\n        return CONCAT44(iVar3,uVar2);\n      }\n      iVar4 = *(int *)(iVar4 + 0x28);\n      bVar5 = CARRY4(uVar2,size);\n      uVar2 = uVar2 + size;\n      iVar3 = iVar3 + (size >> 0x1f) + (uint)bVar5;\n    } while (iVar4 != 0);\n  }" if (parenthesized_expression "((*piVar1 != 0) && (iVar4 = *(int *)(*piVar1 + 0x10), iVar4 != 0))" ( (binary_expression "(*piVar1 != 0) && (iVar4 = *(int *)(*piVar1 + 0x10), iVar4 != 0)" (parenthesized_expression "(*piVar1 != 0)" ( (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" * identifier) != number_literal) )) && (parenthesized_expression "(iVar4 = *(int *)(*piVar1 + 0x10), iVar4 != 0)" ( (comma_expression "iVar4 = *(int *)(*piVar1 + 0x10), iVar4 != 0" (assignment_expression "iVar4 = *(int *)(*piVar1 + 0x10)" identifier = (pointer_expression "*(int *)(*piVar1 + 0x10)" * (cast_expression "(int *)(*piVar1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar1 + 0x10)" ( (binary_expression "*piVar1 + 0x10" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) , (binary_expression "iVar4 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    uVar2 = 0;\n    iVar3 = 0;\n    do {\n      if ((*(symbolS **)(iVar4 + 0xc) == sym) && (addend == *(valueT *)(iVar4 + 0x14))) {\n        return CONCAT44(iVar3,uVar2);\n      }\n      iVar4 = *(int *)(iVar4 + 0x28);\n      bVar5 = CARRY4(uVar2,size);\n      uVar2 = uVar2 + size;\n      iVar3 = iVar3 + (size >> 0x1f) + (uint)bVar5;\n    } while (iVar4 != 0);\n  }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n      if ((*(symbolS **)(iVar4 + 0xc) == sym) && (addend == *(valueT *)(iVar4 + 0x14))) {\n        return CONCAT44(iVar3,uVar2);\n      }\n      iVar4 = *(int *)(iVar4 + 0x28);\n      bVar5 = CARRY4(uVar2,size);\n      uVar2 = uVar2 + size;\n      iVar3 = iVar3 + (size >> 0x1f) + (uint)bVar5;\n    } while (iVar4 != 0);" do (compound_statement "{\n      if ((*(symbolS **)(iVar4 + 0xc) == sym) && (addend == *(valueT *)(iVar4 + 0x14))) {\n        return CONCAT44(iVar3,uVar2);\n      }\n      iVar4 = *(int *)(iVar4 + 0x28);\n      bVar5 = CARRY4(uVar2,size);\n      uVar2 = uVar2 + size;\n      iVar3 = iVar3 + (size >> 0x1f) + (uint)bVar5;\n    }" { (if_statement "if ((*(symbolS **)(iVar4 + 0xc) == sym) && (addend == *(valueT *)(iVar4 + 0x14))) {\n        return CONCAT44(iVar3,uVar2);\n      }" if (parenthesized_expression "((*(symbolS **)(iVar4 + 0xc) == sym) && (addend == *(valueT *)(iVar4 + 0x14)))" ( (binary_expression "(*(symbolS **)(iVar4 + 0xc) == sym) && (addend == *(valueT *)(iVar4 + 0x14))" (parenthesized_expression "(*(symbolS **)(iVar4 + 0xc) == sym)" ( (binary_expression "*(symbolS **)(iVar4 + 0xc) == sym" (pointer_expression "*(symbolS **)(iVar4 + 0xc)" * (cast_expression "(symbolS **)(iVar4 + 0xc)" ( (type_descriptor "symbolS **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar4 + 0xc)" ( (binary_expression "iVar4 + 0xc" identifier + number_literal) )))) == identifier) )) && (parenthesized_expression "(addend == *(valueT *)(iVar4 + 0x14))" ( (binary_expression "addend == *(valueT *)(iVar4 + 0x14)" identifier == (pointer_expression "*(valueT *)(iVar4 + 0x14)" * (cast_expression "(valueT *)(iVar4 + 0x14)" ( (type_descriptor "valueT *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x14)" ( (binary_expression "iVar4 + 0x14" identifier + number_literal) ))))) ))) )) (compound_statement "{\n        return CONCAT44(iVar3,uVar2);\n      }" { (return_statement "return CONCAT44(iVar3,uVar2);" return (call_expression "CONCAT44(iVar3,uVar2)" identifier (argument_list "(iVar3,uVar2)" ( identifier , identifier ))) ;) })) (expression_statement "iVar4 = *(int *)(iVar4 + 0x28);" (assignment_expression "iVar4 = *(int *)(iVar4 + 0x28)" identifier = (pointer_expression "*(int *)(iVar4 + 0x28)" * (cast_expression "(int *)(iVar4 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar4 + 0x28)" ( (binary_expression "iVar4 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "bVar5 = CARRY4(uVar2,size);" (assignment_expression "bVar5 = CARRY4(uVar2,size)" identifier = (call_expression "CARRY4(uVar2,size)" identifier (argument_list "(uVar2,size)" ( identifier , identifier )))) ;) (expression_statement "uVar2 = uVar2 + size;" (assignment_expression "uVar2 = uVar2 + size" identifier = (binary_expression "uVar2 + size" identifier + identifier)) ;) (expression_statement "iVar3 = iVar3 + (size >> 0x1f) + (uint)bVar5;" (assignment_expression "iVar3 = iVar3 + (size >> 0x1f) + (uint)bVar5" identifier = (binary_expression "iVar3 + (size >> 0x1f) + (uint)bVar5" (binary_expression "iVar3 + (size >> 0x1f)" identifier + (parenthesized_expression "(size >> 0x1f)" ( (binary_expression "size >> 0x1f" identifier >> number_literal) ))) + (cast_expression "(uint)bVar5" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) }) while (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) ;) })) (expression_statement "subseg_set(sec,0);" (call_expression "subseg_set(sec,0)" identifier (argument_list "(sec,0)" ( identifier , number_literal ))) ;) (expression_statement "__s = frag_more(size);" (assignment_expression "__s = frag_more(size)" identifier = (call_expression "frag_more(size)" identifier (argument_list "(size)" ( identifier )))) ;) (expression_statement "memset(__s,0,size);" (call_expression "memset(__s,0,size)" identifier (argument_list "(__s,0,size)" ( identifier , number_literal , identifier ))) ;) (if_statement "if (size == 4) {\n    r_type = BFD_RELOC_32;\n  }\n  else {\n    if (size != 8) {\n                    /* WARNING: Subroutine does not return */\n      as_abort("../../gas/literal.c",0x52,"add_to_literal_pool");\n    }\n    r_type = BFD_RELOC_64;\n  }" if (parenthesized_expression "(size == 4)" ( (binary_expression "size == 4" identifier == number_literal) )) (compound_statement "{\n    r_type = BFD_RELOC_32;\n  }" { (expression_statement "r_type = BFD_RELOC_32;" (assignment_expression "r_type = BFD_RELOC_32" identifier = identifier) ;) }) (else_clause "else {\n    if (size != 8) {\n                    /* WARNING: Subroutine does not return */\n      as_abort("../../gas/literal.c",0x52,"add_to_literal_pool");\n    }\n    r_type = BFD_RELOC_64;\n  }" else (compound_statement "{\n    if (size != 8) {\n                    /* WARNING: Subroutine does not return */\n      as_abort("../../gas/literal.c",0x52,"add_to_literal_pool");\n    }\n    r_type = BFD_RELOC_64;\n  }" { (if_statement "if (size != 8) {\n                    /* WARNING: Subroutine does not return */\n      as_abort("../../gas/literal.c",0x52,"add_to_literal_pool");\n    }" if (parenthesized_expression "(size != 8)" ( (binary_expression "size != 8" identifier != number_literal) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      as_abort("../../gas/literal.c",0x52,"add_to_literal_pool");\n    }" { comment (expression_statement "as_abort("../../gas/literal.c",0x52,"add_to_literal_pool");" (call_expression "as_abort("../../gas/literal.c",0x52,"add_to_literal_pool")" identifier (argument_list "("../../gas/literal.c",0x52,"add_to_literal_pool")" ( (string_literal ""../../gas/literal.c"" " string_content ") , number_literal , (string_literal ""add_to_literal_pool"" " string_content ") ))) ;) })) (expression_statement "r_type = BFD_RELOC_64;" (assignment_expression "r_type = BFD_RELOC_64" identifier = identifier) ;) }))) (expression_statement "fix_new(frag_now,(int)__s - (int)frag_now->fr_literal,size,sym,addend,0,r_type);" (call_expression "fix_new(frag_now,(int)__s - (int)frag_now->fr_literal,size,sym,addend,0,r_type)" identifier (argument_list "(frag_now,(int)__s - (int)frag_now->fr_literal,size,sym,addend,0,r_type)" ( identifier , (binary_expression "(int)__s - (int)frag_now->fr_literal" (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)frag_now->fr_literal" ( (type_descriptor "int" primitive_type) ) (field_expression "frag_now->fr_literal" identifier -> field_identifier))) , identifier , identifier , identifier , number_literal , identifier ))) ;) (expression_statement "subseg_set(secptr,subseg);" (call_expression "subseg_set(secptr,subseg)" identifier (argument_list "(secptr,subseg)" ( identifier , identifier ))) ;) (expression_statement "uVar2 = piVar1[0xc];" (assignment_expression "uVar2 = piVar1[0xc]" identifier = (subscript_expression "piVar1[0xc]" identifier [ number_literal ])) ;) (expression_statement "piVar1[0xc] = uVar2 + size;" (assignment_expression "piVar1[0xc] = uVar2 + size" (subscript_expression "piVar1[0xc]" identifier [ number_literal ]) = (binary_expression "uVar2 + size" identifier + identifier)) ;) (return_statement "return (valueT)uVar2;" return (cast_expression "(valueT)uVar2" ( (type_descriptor "valueT" type_identifier) ) identifier) ;) })))
(translation_unit "ulonglong FUN_00026230(int param_1,int param_2,int param_3,int param_4,uint param_5)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  void *__s;\n  void *pvVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int iVar8;\n  bool bVar9;\n  \n  uVar3 = DAT_00088044;\n  uVar2 = DAT_00087f1c;\n  piVar1 = *(int **)(param_4 + 0x80);\n  if ((*piVar1 != 0) && (iVar8 = *(int *)(*piVar1 + 0x10), iVar8 != 0)) {\n    uVar4 = 0;\n    iVar6 = 0;\n    do {\n      if ((*(int *)(iVar8 + 0xc) == param_1) &&\n         (param_3 == *(int *)(iVar8 + 0x18) && param_2 == *(int *)(iVar8 + 0x14))) {\n        return CONCAT44(iVar6,uVar4);\n      }\n      iVar8 = *(int *)(iVar8 + 0x28);\n      bVar9 = CARRY4(uVar4,param_5);\n      uVar4 = uVar4 + param_5;\n      iVar6 = iVar6 + ((int)param_5 >> 0x1f) + (uint)bVar9;\n    } while (iVar8 != 0);\n  }\n  FUN_00033da0(param_4,0);\n  __s = (void *)FUN_00022130(param_5);\n  pvVar5 = memset(__s,0,param_5);\n  if (param_5 == 4) {\n    uVar7 = 2;\n  }\n  else {\n    if (param_5 != 8) {\n                    \n      FUN_00029670("../../gas/literal.c",0x52,"add_to_literal_pool",pvVar5);\n    }\n    uVar7 = 1;\n  }\n  FUN_0003c4e0(DAT_00088048,(int)__s - (DAT_00088048 + 0x50),param_5,param_1,param_2,param_3,0,uVar7\n              );\n  FUN_00033da0(uVar2,uVar3);\n  uVar4 = piVar1[0xc];\n  piVar1[0xc] = uVar4 + param_5;\n  return (ulonglong)uVar4;\n}\n\n" (function_definition "ulonglong FUN_00026230(int param_1,int param_2,int param_3,int param_4,uint param_5)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  void *__s;\n  void *pvVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int iVar8;\n  bool bVar9;\n  \n  uVar3 = DAT_00088044;\n  uVar2 = DAT_00087f1c;\n  piVar1 = *(int **)(param_4 + 0x80);\n  if ((*piVar1 != 0) && (iVar8 = *(int *)(*piVar1 + 0x10), iVar8 != 0)) {\n    uVar4 = 0;\n    iVar6 = 0;\n    do {\n      if ((*(int *)(iVar8 + 0xc) == param_1) &&\n         (param_3 == *(int *)(iVar8 + 0x18) && param_2 == *(int *)(iVar8 + 0x14))) {\n        return CONCAT44(iVar6,uVar4);\n      }\n      iVar8 = *(int *)(iVar8 + 0x28);\n      bVar9 = CARRY4(uVar4,param_5);\n      uVar4 = uVar4 + param_5;\n      iVar6 = iVar6 + ((int)param_5 >> 0x1f) + (uint)bVar9;\n    } while (iVar8 != 0);\n  }\n  FUN_00033da0(param_4,0);\n  __s = (void *)FUN_00022130(param_5);\n  pvVar5 = memset(__s,0,param_5);\n  if (param_5 == 4) {\n    uVar7 = 2;\n  }\n  else {\n    if (param_5 != 8) {\n                    \n      FUN_00029670("../../gas/literal.c",0x52,"add_to_literal_pool",pvVar5);\n    }\n    uVar7 = 1;\n  }\n  FUN_0003c4e0(DAT_00088048,(int)__s - (DAT_00088048 + 0x50),param_5,param_1,param_2,param_3,0,uVar7\n              );\n  FUN_00033da0(uVar2,uVar3);\n  uVar4 = piVar1[0xc];\n  piVar1[0xc] = uVar4 + param_5;\n  return (ulonglong)uVar4;\n}" type_identifier (function_declarator "FUN_00026230(int param_1,int param_2,int param_3,int param_4,uint param_5)" identifier (parameter_list "(int param_1,int param_2,int param_3,int param_4,uint param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "uint param_5" type_identifier identifier) ))) (compound_statement "{\n  int *piVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  void *__s;\n  void *pvVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int iVar8;\n  bool bVar9;\n  \n  uVar3 = DAT_00088044;\n  uVar2 = DAT_00087f1c;\n  piVar1 = *(int **)(param_4 + 0x80);\n  if ((*piVar1 != 0) && (iVar8 = *(int *)(*piVar1 + 0x10), iVar8 != 0)) {\n    uVar4 = 0;\n    iVar6 = 0;\n    do {\n      if ((*(int *)(iVar8 + 0xc) == param_1) &&\n         (param_3 == *(int *)(iVar8 + 0x18) && param_2 == *(int *)(iVar8 + 0x14))) {\n        return CONCAT44(iVar6,uVar4);\n      }\n      iVar8 = *(int *)(iVar8 + 0x28);\n      bVar9 = CARRY4(uVar4,param_5);\n      uVar4 = uVar4 + param_5;\n      iVar6 = iVar6 + ((int)param_5 >> 0x1f) + (uint)bVar9;\n    } while (iVar8 != 0);\n  }\n  FUN_00033da0(param_4,0);\n  __s = (void *)FUN_00022130(param_5);\n  pvVar5 = memset(__s,0,param_5);\n  if (param_5 == 4) {\n    uVar7 = 2;\n  }\n  else {\n    if (param_5 != 8) {\n                    \n      FUN_00029670("../../gas/literal.c",0x52,"add_to_literal_pool",pvVar5);\n    }\n    uVar7 = 1;\n  }\n  FUN_0003c4e0(DAT_00088048,(int)__s - (DAT_00088048 + 0x50),param_5,param_1,param_2,param_3,0,uVar7\n              );\n  FUN_00033da0(uVar2,uVar3);\n  uVar4 = piVar1[0xc];\n  piVar1[0xc] = uVar4 + param_5;\n  return (ulonglong)uVar4;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "void *__s;" primitive_type (pointer_declarator "*__s" * identifier) ;) (declaration "void *pvVar5;" primitive_type (pointer_declarator "*pvVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "undefined4 uVar7;" type_identifier identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "bool bVar9;" primitive_type identifier ;) (expression_statement "uVar3 = DAT_00088044;" (assignment_expression "uVar3 = DAT_00088044" identifier = identifier) ;) (expression_statement "uVar2 = DAT_00087f1c;" (assignment_expression "uVar2 = DAT_00087f1c" identifier = identifier) ;) (expression_statement "piVar1 = *(int **)(param_4 + 0x80);" (assignment_expression "piVar1 = *(int **)(param_4 + 0x80)" identifier = (pointer_expression "*(int **)(param_4 + 0x80)" * (cast_expression "(int **)(param_4 + 0x80)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_4 + 0x80)" ( (binary_expression "param_4 + 0x80" identifier + number_literal) ))))) ;) (if_statement "if ((*piVar1 != 0) && (iVar8 = *(int *)(*piVar1 + 0x10), iVar8 != 0)) {\n    uVar4 = 0;\n    iVar6 = 0;\n    do {\n      if ((*(int *)(iVar8 + 0xc) == param_1) &&\n         (param_3 == *(int *)(iVar8 + 0x18) && param_2 == *(int *)(iVar8 + 0x14))) {\n        return CONCAT44(iVar6,uVar4);\n      }\n      iVar8 = *(int *)(iVar8 + 0x28);\n      bVar9 = CARRY4(uVar4,param_5);\n      uVar4 = uVar4 + param_5;\n      iVar6 = iVar6 + ((int)param_5 >> 0x1f) + (uint)bVar9;\n    } while (iVar8 != 0);\n  }" if (parenthesized_expression "((*piVar1 != 0) && (iVar8 = *(int *)(*piVar1 + 0x10), iVar8 != 0))" ( (binary_expression "(*piVar1 != 0) && (iVar8 = *(int *)(*piVar1 + 0x10), iVar8 != 0)" (parenthesized_expression "(*piVar1 != 0)" ( (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" * identifier) != number_literal) )) && (parenthesized_expression "(iVar8 = *(int *)(*piVar1 + 0x10), iVar8 != 0)" ( (comma_expression "iVar8 = *(int *)(*piVar1 + 0x10), iVar8 != 0" (assignment_expression "iVar8 = *(int *)(*piVar1 + 0x10)" identifier = (pointer_expression "*(int *)(*piVar1 + 0x10)" * (cast_expression "(int *)(*piVar1 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar1 + 0x10)" ( (binary_expression "*piVar1 + 0x10" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) , (binary_expression "iVar8 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    uVar4 = 0;\n    iVar6 = 0;\n    do {\n      if ((*(int *)(iVar8 + 0xc) == param_1) &&\n         (param_3 == *(int *)(iVar8 + 0x18) && param_2 == *(int *)(iVar8 + 0x14))) {\n        return CONCAT44(iVar6,uVar4);\n      }\n      iVar8 = *(int *)(iVar8 + 0x28);\n      bVar9 = CARRY4(uVar4,param_5);\n      uVar4 = uVar4 + param_5;\n      iVar6 = iVar6 + ((int)param_5 >> 0x1f) + (uint)bVar9;\n    } while (iVar8 != 0);\n  }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n      if ((*(int *)(iVar8 + 0xc) == param_1) &&\n         (param_3 == *(int *)(iVar8 + 0x18) && param_2 == *(int *)(iVar8 + 0x14))) {\n        return CONCAT44(iVar6,uVar4);\n      }\n      iVar8 = *(int *)(iVar8 + 0x28);\n      bVar9 = CARRY4(uVar4,param_5);\n      uVar4 = uVar4 + param_5;\n      iVar6 = iVar6 + ((int)param_5 >> 0x1f) + (uint)bVar9;\n    } while (iVar8 != 0);" do (compound_statement "{\n      if ((*(int *)(iVar8 + 0xc) == param_1) &&\n         (param_3 == *(int *)(iVar8 + 0x18) && param_2 == *(int *)(iVar8 + 0x14))) {\n        return CONCAT44(iVar6,uVar4);\n      }\n      iVar8 = *(int *)(iVar8 + 0x28);\n      bVar9 = CARRY4(uVar4,param_5);\n      uVar4 = uVar4 + param_5;\n      iVar6 = iVar6 + ((int)param_5 >> 0x1f) + (uint)bVar9;\n    }" { (if_statement "if ((*(int *)(iVar8 + 0xc) == param_1) &&\n         (param_3 == *(int *)(iVar8 + 0x18) && param_2 == *(int *)(iVar8 + 0x14))) {\n        return CONCAT44(iVar6,uVar4);\n      }" if (parenthesized_expression "((*(int *)(iVar8 + 0xc) == param_1) &&\n         (param_3 == *(int *)(iVar8 + 0x18) && param_2 == *(int *)(iVar8 + 0x14)))" ( (binary_expression "(*(int *)(iVar8 + 0xc) == param_1) &&\n         (param_3 == *(int *)(iVar8 + 0x18) && param_2 == *(int *)(iVar8 + 0x14))" (parenthesized_expression "(*(int *)(iVar8 + 0xc) == param_1)" ( (binary_expression "*(int *)(iVar8 + 0xc) == param_1" (pointer_expression "*(int *)(iVar8 + 0xc)" * (cast_expression "(int *)(iVar8 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0xc)" ( (binary_expression "iVar8 + 0xc" identifier + number_literal) )))) == identifier) )) && (parenthesized_expression "(param_3 == *(int *)(iVar8 + 0x18) && param_2 == *(int *)(iVar8 + 0x14))" ( (binary_expression "param_3 == *(int *)(iVar8 + 0x18) && param_2 == *(int *)(iVar8 + 0x14)" (binary_expression "param_3 == *(int *)(iVar8 + 0x18)" identifier == (pointer_expression "*(int *)(iVar8 + 0x18)" * (cast_expression "(int *)(iVar8 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x18)" ( (binary_expression "iVar8 + 0x18" identifier + number_literal) ))))) && (binary_expression "param_2 == *(int *)(iVar8 + 0x14)" identifier == (pointer_expression "*(int *)(iVar8 + 0x14)" * (cast_expression "(int *)(iVar8 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x14)" ( (binary_expression "iVar8 + 0x14" identifier + number_literal) )))))) ))) )) (compound_statement "{\n        return CONCAT44(iVar6,uVar4);\n      }" { (return_statement "return CONCAT44(iVar6,uVar4);" return (call_expression "CONCAT44(iVar6,uVar4)" identifier (argument_list "(iVar6,uVar4)" ( identifier , identifier ))) ;) })) (expression_statement "iVar8 = *(int *)(iVar8 + 0x28);" (assignment_expression "iVar8 = *(int *)(iVar8 + 0x28)" identifier = (pointer_expression "*(int *)(iVar8 + 0x28)" * (cast_expression "(int *)(iVar8 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + 0x28)" ( (binary_expression "iVar8 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "bVar9 = CARRY4(uVar4,param_5);" (assignment_expression "bVar9 = CARRY4(uVar4,param_5)" identifier = (call_expression "CARRY4(uVar4,param_5)" identifier (argument_list "(uVar4,param_5)" ( identifier , identifier )))) ;) (expression_statement "uVar4 = uVar4 + param_5;" (assignment_expression "uVar4 = uVar4 + param_5" identifier = (binary_expression "uVar4 + param_5" identifier + identifier)) ;) (expression_statement "iVar6 = iVar6 + ((int)param_5 >> 0x1f) + (uint)bVar9;" (assignment_expression "iVar6 = iVar6 + ((int)param_5 >> 0x1f) + (uint)bVar9" identifier = (binary_expression "iVar6 + ((int)param_5 >> 0x1f) + (uint)bVar9" (binary_expression "iVar6 + ((int)param_5 >> 0x1f)" identifier + (parenthesized_expression "((int)param_5 >> 0x1f)" ( (binary_expression "(int)param_5 >> 0x1f" (cast_expression "(int)param_5" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) ))) + (cast_expression "(uint)bVar9" ( (type_descriptor "uint" type_identifier) ) identifier))) ;) }) while (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) ;) })) (expression_statement "FUN_00033da0(param_4,0);" (call_expression "FUN_00033da0(param_4,0)" identifier (argument_list "(param_4,0)" ( identifier , number_literal ))) ;) (expression_statement "__s = (void *)FUN_00022130(param_5);" (assignment_expression "__s = (void *)FUN_00022130(param_5)" identifier = (cast_expression "(void *)FUN_00022130(param_5)" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00022130(param_5)" identifier (argument_list "(param_5)" ( identifier ))))) ;) (expression_statement "pvVar5 = memset(__s,0,param_5);" (assignment_expression "pvVar5 = memset(__s,0,param_5)" identifier = (call_expression "memset(__s,0,param_5)" identifier (argument_list "(__s,0,param_5)" ( identifier , number_literal , identifier )))) ;) (if_statement "if (param_5 == 4) {\n    uVar7 = 2;\n  }\n  else {\n    if (param_5 != 8) {\n                    \n      FUN_00029670("../../gas/literal.c",0x52,"add_to_literal_pool",pvVar5);\n    }\n    uVar7 = 1;\n  }" if (parenthesized_expression "(param_5 == 4)" ( (binary_expression "param_5 == 4" identifier == number_literal) )) (compound_statement "{\n    uVar7 = 2;\n  }" { (expression_statement "uVar7 = 2;" (assignment_expression "uVar7 = 2" identifier = number_literal) ;) }) (else_clause "else {\n    if (param_5 != 8) {\n                    \n      FUN_00029670("../../gas/literal.c",0x52,"add_to_literal_pool",pvVar5);\n    }\n    uVar7 = 1;\n  }" else (compound_statement "{\n    if (param_5 != 8) {\n                    \n      FUN_00029670("../../gas/literal.c",0x52,"add_to_literal_pool",pvVar5);\n    }\n    uVar7 = 1;\n  }" { (if_statement "if (param_5 != 8) {\n                    \n      FUN_00029670("../../gas/literal.c",0x52,"add_to_literal_pool",pvVar5);\n    }" if (parenthesized_expression "(param_5 != 8)" ( (binary_expression "param_5 != 8" identifier != number_literal) )) (compound_statement "{\n                    \n      FUN_00029670("../../gas/literal.c",0x52,"add_to_literal_pool",pvVar5);\n    }" { (expression_statement "FUN_00029670("../../gas/literal.c",0x52,"add_to_literal_pool",pvVar5);" (call_expression "FUN_00029670("../../gas/literal.c",0x52,"add_to_literal_pool",pvVar5)" identifier (argument_list "("../../gas/literal.c",0x52,"add_to_literal_pool",pvVar5)" ( (string_literal ""../../gas/literal.c"" " string_content ") , number_literal , (string_literal ""add_to_literal_pool"" " string_content ") , identifier ))) ;) })) (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" identifier = number_literal) ;) }))) (expression_statement "FUN_0003c4e0(DAT_00088048,(int)__s - (DAT_00088048 + 0x50),param_5,param_1,param_2,param_3,0,uVar7\n              );" (call_expression "FUN_0003c4e0(DAT_00088048,(int)__s - (DAT_00088048 + 0x50),param_5,param_1,param_2,param_3,0,uVar7\n              )" identifier (argument_list "(DAT_00088048,(int)__s - (DAT_00088048 + 0x50),param_5,param_1,param_2,param_3,0,uVar7\n              )" ( identifier , (binary_expression "(int)__s - (DAT_00088048 + 0x50)" (cast_expression "(int)__s" ( (type_descriptor "int" primitive_type) ) identifier) - (parenthesized_expression "(DAT_00088048 + 0x50)" ( (binary_expression "DAT_00088048 + 0x50" identifier + number_literal) ))) , identifier , identifier , identifier , identifier , number_literal , identifier ))) ;) (expression_statement "FUN_00033da0(uVar2,uVar3);" (call_expression "FUN_00033da0(uVar2,uVar3)" identifier (argument_list "(uVar2,uVar3)" ( identifier , identifier ))) ;) (expression_statement "uVar4 = piVar1[0xc];" (assignment_expression "uVar4 = piVar1[0xc]" identifier = (subscript_expression "piVar1[0xc]" identifier [ number_literal ])) ;) (expression_statement "piVar1[0xc] = uVar4 + param_5;" (assignment_expression "piVar1[0xc] = uVar4 + param_5" (subscript_expression "piVar1[0xc]" identifier [ number_literal ]) = (binary_expression "uVar4 + param_5" identifier + identifier)) ;) (return_statement "return (ulonglong)uVar4;" return (cast_expression "(ulonglong)uVar4" ( (type_descriptor "ulonglong" type_identifier) ) identifier) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == IDENT) )) && (parenthesized_expression ( (binary_expression (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) && (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ))) )) (compound_statement { (return_statement return (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) ))) + (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (string_literal " string_content ") , LIT , (string_literal " string_content ") , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (call_expression IDENT (argument_list ( IDENT , (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (parenthesized_expression ( (binary_expression IDENT + LIT) ))) , IDENT , IDENT , IDENT , IDENT , LIT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + IDENT)) ;) (return_statement return (cast_expression ( (type_descriptor TYPE) ) IDENT) ;) })))
(function_definition "ulonglong FUN_00026230(int param_1,int param_2,int param_3,int param_4,uint param_5)\n\n{\n  int *piVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  void *__s;\n  void *pvVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int iVar8;\n  bool bVar9;\n  \n  uVar3 = DAT_00088044;\n  uVar2 = DAT_00087f1c;\n  piVar1 = *(int **)(param_4 + 0x80);\n  if ((*piVar1 != 0) && (iVar8 = *(int *)(*piVar1 + 0x10), iVar8 != 0)) {\n    uVar4 = 0;\n    iVar6 = 0;\n    do {\n      if ((*(int *)(iVar8 + 0xc) == param_1) &&\n         (param_3 == *(int *)(iVar8 + 0x18) && param_2 == *(int *)(iVar8 + 0x14))) {\n        return CONCAT44(iVar6,uVar4);\n      }\n      iVar8 = *(int *)(iVar8 + 0x28);\n      bVar9 = CARRY4(uVar4,param_5);\n      uVar4 = uVar4 + param_5;\n      iVar6 = iVar6 + ((int)param_5 >> 0x1f) + (uint)bVar9;\n    } while (iVar8 != 0);\n  }\n  FUN_00033da0(param_4,0);\n  __s = (void *)FUN_00022130(param_5);\n  pvVar5 = memset(__s,0,param_5);\n  if (param_5 == 4) {\n    uVar7 = 2;\n  }\n  else {\n    if (param_5 != 8) {\n                    \n      FUN_00029670("../../gas/literal.c",0x52,"add_to_literal_pool",pvVar5);\n    }\n    uVar7 = 1;\n  }\n  FUN_0003c4e0(DAT_00088048,(int)__s - (DAT_00088048 + 0x50),param_5,param_1,param_2,param_3,0,uVar7\n              );\n  FUN_00033da0(uVar2,uVar3);\n  uVar4 = piVar1[0xc];\n  piVar1[0xc] = uVar4 + param_5;\n  return (ulonglong)uVar4;\n}" (type_identifier "ulonglong") (function_declarator "FUN_00026230(int param_1,int param_2,int param_3,int param_4,uint param_5)" (identifier "FUN_00026230") (parameter_list "(int param_1,int param_2,int param_3,int param_4,uint param_5)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "uint param_5" (type_identifier "uint") (identifier "param_5")) () ")"))) (compound_statement "{\n  int *piVar1;\n  undefined4 uVar2;\n  undefined4 uVar3;\n  uint uVar4;\n  void *__s;\n  void *pvVar5;\n  int iVar6;\n  undefined4 uVar7;\n  int iVar8;\n  bool bVar9;\n  \n  uVar3 = DAT_00088044;\n  uVar2 = DAT_00087f1c;\n  piVar1 = *(int **)(param_4 + 0x80);\n  if ((*piVar1 != 0) && (iVar8 = *(int *)(*piVar1 + 0x10), iVar8 != 0)) {\n    uVar4 = 0;\n    iVar6 = 0;\n    do {\n      if ((*(int *)(iVar8 + 0xc) == param_1) &&\n         (param_3 == *(int *)(iVar8 + 0x18) && param_2 == *(int *)(iVar8 + 0x14))) {\n        return CONCAT44(iVar6,uVar4);\n      }\n      iVar8 = *(int *)(iVar8 + 0x28);\n      bVar9 = CARRY4(uVar4,param_5);\n      uVar4 = uVar4 + param_5;\n      iVar6 = iVar6 + ((int)param_5 >> 0x1f) + (uint)bVar9;\n    } while (iVar8 != 0);\n  }\n  FUN_00033da0(param_4,0);\n  __s = (void *)FUN_00022130(param_5);\n  pvVar5 = memset(__s,0,param_5);\n  if (param_5 == 4) {\n    uVar7 = 2;\n  }\n  else {\n    if (param_5 != 8) {\n                    \n      FUN_00029670("../../gas/literal.c",0x52,"add_to_literal_pool",pvVar5);\n    }\n    uVar7 = 1;\n  }\n  FUN_0003c4e0(DAT_00088048,(int)__s - (DAT_00088048 + 0x50),param_5,param_1,param_2,param_3,0,uVar7\n              );\n  FUN_00033da0(uVar2,uVar3);\n  uVar4 = piVar1[0xc];\n  piVar1[0xc] = uVar4 + param_5;\n  return (ulonglong)uVar4;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "void *__s;" (primitive_type "void") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "void *pvVar5;" (primitive_type "void") (pointer_declarator "*pvVar5" (* "*") (identifier "pvVar5")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "undefined4 uVar7;" (type_identifier "undefined4") (identifier "uVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "bool bVar9;" (primitive_type "bool") (identifier "bVar9") (; ";")) (expression_statement "uVar3 = DAT_00088044;" (assignment_expression "uVar3 = DAT_00088044" (identifier "uVar3") (= "=") (identifier "DAT_00088044")) (; ";")) (expression_statement "uVar2 = DAT_00087f1c;" (assignment_expression "uVar2 = DAT_00087f1c" (identifier "uVar2") (= "=") (identifier "DAT_00087f1c")) (; ";")) (expression_statement "piVar1 = *(int **)(param_4 + 0x80);" (assignment_expression "piVar1 = *(int **)(param_4 + 0x80)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)(param_4 + 0x80)" (* "*") (cast_expression "(int **)(param_4 + 0x80)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_4 + 0x80)" (( "(") (binary_expression "param_4 + 0x80" (identifier "param_4") (+ "+") (number_literal "0x80")) () ")"))))) (; ";")) (if_statement "if ((*piVar1 != 0) && (iVar8 = *(int *)(*piVar1 + 0x10), iVar8 != 0)) {\n    uVar4 = 0;\n    iVar6 = 0;\n    do {\n      if ((*(int *)(iVar8 + 0xc) == param_1) &&\n         (param_3 == *(int *)(iVar8 + 0x18) && param_2 == *(int *)(iVar8 + 0x14))) {\n        return CONCAT44(iVar6,uVar4);\n      }\n      iVar8 = *(int *)(iVar8 + 0x28);\n      bVar9 = CARRY4(uVar4,param_5);\n      uVar4 = uVar4 + param_5;\n      iVar6 = iVar6 + ((int)param_5 >> 0x1f) + (uint)bVar9;\n    } while (iVar8 != 0);\n  }" (if "if") (parenthesized_expression "((*piVar1 != 0) && (iVar8 = *(int *)(*piVar1 + 0x10), iVar8 != 0))" (( "(") (binary_expression "(*piVar1 != 0) && (iVar8 = *(int *)(*piVar1 + 0x10), iVar8 != 0)" (parenthesized_expression "(*piVar1 != 0)" (( "(") (binary_expression "*piVar1 != 0" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar8 = *(int *)(*piVar1 + 0x10), iVar8 != 0)" (( "(") (comma_expression "iVar8 = *(int *)(*piVar1 + 0x10), iVar8 != 0" (assignment_expression "iVar8 = *(int *)(*piVar1 + 0x10)" (identifier "iVar8") (= "=") (pointer_expression "*(int *)(*piVar1 + 0x10)" (* "*") (cast_expression "(int *)(*piVar1 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar1 + 0x10)" (( "(") (binary_expression "*piVar1 + 0x10" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0x10")) () ")"))))) (, ",") (binary_expression "iVar8 != 0" (identifier "iVar8") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    uVar4 = 0;\n    iVar6 = 0;\n    do {\n      if ((*(int *)(iVar8 + 0xc) == param_1) &&\n         (param_3 == *(int *)(iVar8 + 0x18) && param_2 == *(int *)(iVar8 + 0x14))) {\n        return CONCAT44(iVar6,uVar4);\n      }\n      iVar8 = *(int *)(iVar8 + 0x28);\n      bVar9 = CARRY4(uVar4,param_5);\n      uVar4 = uVar4 + param_5;\n      iVar6 = iVar6 + ((int)param_5 >> 0x1f) + (uint)bVar9;\n    } while (iVar8 != 0);\n  }" ({ "{") (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      if ((*(int *)(iVar8 + 0xc) == param_1) &&\n         (param_3 == *(int *)(iVar8 + 0x18) && param_2 == *(int *)(iVar8 + 0x14))) {\n        return CONCAT44(iVar6,uVar4);\n      }\n      iVar8 = *(int *)(iVar8 + 0x28);\n      bVar9 = CARRY4(uVar4,param_5);\n      uVar4 = uVar4 + param_5;\n      iVar6 = iVar6 + ((int)param_5 >> 0x1f) + (uint)bVar9;\n    } while (iVar8 != 0);" (do "do") (compound_statement "{\n      if ((*(int *)(iVar8 + 0xc) == param_1) &&\n         (param_3 == *(int *)(iVar8 + 0x18) && param_2 == *(int *)(iVar8 + 0x14))) {\n        return CONCAT44(iVar6,uVar4);\n      }\n      iVar8 = *(int *)(iVar8 + 0x28);\n      bVar9 = CARRY4(uVar4,param_5);\n      uVar4 = uVar4 + param_5;\n      iVar6 = iVar6 + ((int)param_5 >> 0x1f) + (uint)bVar9;\n    }" ({ "{") (if_statement "if ((*(int *)(iVar8 + 0xc) == param_1) &&\n         (param_3 == *(int *)(iVar8 + 0x18) && param_2 == *(int *)(iVar8 + 0x14))) {\n        return CONCAT44(iVar6,uVar4);\n      }" (if "if") (parenthesized_expression "((*(int *)(iVar8 + 0xc) == param_1) &&\n         (param_3 == *(int *)(iVar8 + 0x18) && param_2 == *(int *)(iVar8 + 0x14)))" (( "(") (binary_expression "(*(int *)(iVar8 + 0xc) == param_1) &&\n         (param_3 == *(int *)(iVar8 + 0x18) && param_2 == *(int *)(iVar8 + 0x14))" (parenthesized_expression "(*(int *)(iVar8 + 0xc) == param_1)" (( "(") (binary_expression "*(int *)(iVar8 + 0xc) == param_1" (pointer_expression "*(int *)(iVar8 + 0xc)" (* "*") (cast_expression "(int *)(iVar8 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 0xc)" (( "(") (binary_expression "iVar8 + 0xc" (identifier "iVar8") (+ "+") (number_literal "0xc")) () ")")))) (== "==") (identifier "param_1")) () ")")) (&& "&&") (parenthesized_expression "(param_3 == *(int *)(iVar8 + 0x18) && param_2 == *(int *)(iVar8 + 0x14))" (( "(") (binary_expression "param_3 == *(int *)(iVar8 + 0x18) && param_2 == *(int *)(iVar8 + 0x14)" (binary_expression "param_3 == *(int *)(iVar8 + 0x18)" (identifier "param_3") (== "==") (pointer_expression "*(int *)(iVar8 + 0x18)" (* "*") (cast_expression "(int *)(iVar8 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 0x18)" (( "(") (binary_expression "iVar8 + 0x18" (identifier "iVar8") (+ "+") (number_literal "0x18")) () ")"))))) (&& "&&") (binary_expression "param_2 == *(int *)(iVar8 + 0x14)" (identifier "param_2") (== "==") (pointer_expression "*(int *)(iVar8 + 0x14)" (* "*") (cast_expression "(int *)(iVar8 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 0x14)" (( "(") (binary_expression "iVar8 + 0x14" (identifier "iVar8") (+ "+") (number_literal "0x14")) () ")")))))) () ")"))) () ")")) (compound_statement "{\n        return CONCAT44(iVar6,uVar4);\n      }" ({ "{") (return_statement "return CONCAT44(iVar6,uVar4);" (return "return") (call_expression "CONCAT44(iVar6,uVar4)" (identifier "CONCAT44") (argument_list "(iVar6,uVar4)" (( "(") (identifier "iVar6") (, ",") (identifier "uVar4") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar8 = *(int *)(iVar8 + 0x28);" (assignment_expression "iVar8 = *(int *)(iVar8 + 0x28)" (identifier "iVar8") (= "=") (pointer_expression "*(int *)(iVar8 + 0x28)" (* "*") (cast_expression "(int *)(iVar8 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + 0x28)" (( "(") (binary_expression "iVar8 + 0x28" (identifier "iVar8") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "bVar9 = CARRY4(uVar4,param_5);" (assignment_expression "bVar9 = CARRY4(uVar4,param_5)" (identifier "bVar9") (= "=") (call_expression "CARRY4(uVar4,param_5)" (identifier "CARRY4") (argument_list "(uVar4,param_5)" (( "(") (identifier "uVar4") (, ",") (identifier "param_5") () ")")))) (; ";")) (expression_statement "uVar4 = uVar4 + param_5;" (assignment_expression "uVar4 = uVar4 + param_5" (identifier "uVar4") (= "=") (binary_expression "uVar4 + param_5" (identifier "uVar4") (+ "+") (identifier "param_5"))) (; ";")) (expression_statement "iVar6 = iVar6 + ((int)param_5 >> 0x1f) + (uint)bVar9;" (assignment_expression "iVar6 = iVar6 + ((int)param_5 >> 0x1f) + (uint)bVar9" (identifier "iVar6") (= "=") (binary_expression "iVar6 + ((int)param_5 >> 0x1f) + (uint)bVar9" (binary_expression "iVar6 + ((int)param_5 >> 0x1f)" (identifier "iVar6") (+ "+") (parenthesized_expression "((int)param_5 >> 0x1f)" (( "(") (binary_expression "(int)param_5 >> 0x1f" (cast_expression "(int)param_5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_5")) (>> ">>") (number_literal "0x1f")) () ")"))) (+ "+") (cast_expression "(uint)bVar9" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar9")))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar8 != 0)" (( "(") (binary_expression "iVar8 != 0" (identifier "iVar8") (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}"))) (expression_statement "FUN_00033da0(param_4,0);" (call_expression "FUN_00033da0(param_4,0)" (identifier "FUN_00033da0") (argument_list "(param_4,0)" (( "(") (identifier "param_4") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "__s = (void *)FUN_00022130(param_5);" (assignment_expression "__s = (void *)FUN_00022130(param_5)" (identifier "__s") (= "=") (cast_expression "(void *)FUN_00022130(param_5)" (( "(") (type_descriptor "void *" (primitive_type "void") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00022130(param_5)" (identifier "FUN_00022130") (argument_list "(param_5)" (( "(") (identifier "param_5") () ")"))))) (; ";")) (expression_statement "pvVar5 = memset(__s,0,param_5);" (assignment_expression "pvVar5 = memset(__s,0,param_5)" (identifier "pvVar5") (= "=") (call_expression "memset(__s,0,param_5)" (identifier "memset") (argument_list "(__s,0,param_5)" (( "(") (identifier "__s") (, ",") (number_literal "0") (, ",") (identifier "param_5") () ")")))) (; ";")) (if_statement "if (param_5 == 4) {\n    uVar7 = 2;\n  }\n  else {\n    if (param_5 != 8) {\n                    \n      FUN_00029670("../../gas/literal.c",0x52,"add_to_literal_pool",pvVar5);\n    }\n    uVar7 = 1;\n  }" (if "if") (parenthesized_expression "(param_5 == 4)" (( "(") (binary_expression "param_5 == 4" (identifier "param_5") (== "==") (number_literal "4")) () ")")) (compound_statement "{\n    uVar7 = 2;\n  }" ({ "{") (expression_statement "uVar7 = 2;" (assignment_expression "uVar7 = 2" (identifier "uVar7") (= "=") (number_literal "2")) (; ";")) (} "}")) (else_clause "else {\n    if (param_5 != 8) {\n                    \n      FUN_00029670("../../gas/literal.c",0x52,"add_to_literal_pool",pvVar5);\n    }\n    uVar7 = 1;\n  }" (else "else") (compound_statement "{\n    if (param_5 != 8) {\n                    \n      FUN_00029670("../../gas/literal.c",0x52,"add_to_literal_pool",pvVar5);\n    }\n    uVar7 = 1;\n  }" ({ "{") (if_statement "if (param_5 != 8) {\n                    \n      FUN_00029670("../../gas/literal.c",0x52,"add_to_literal_pool",pvVar5);\n    }" (if "if") (parenthesized_expression "(param_5 != 8)" (( "(") (binary_expression "param_5 != 8" (identifier "param_5") (!= "!=") (number_literal "8")) () ")")) (compound_statement "{\n                    \n      FUN_00029670("../../gas/literal.c",0x52,"add_to_literal_pool",pvVar5);\n    }" ({ "{") (expression_statement "FUN_00029670("../../gas/literal.c",0x52,"add_to_literal_pool",pvVar5);" (call_expression "FUN_00029670("../../gas/literal.c",0x52,"add_to_literal_pool",pvVar5)" (identifier "FUN_00029670") (argument_list "("../../gas/literal.c",0x52,"add_to_literal_pool",pvVar5)" (( "(") (string_literal ""../../gas/literal.c"" (" """) (string_content "../../gas/literal.c") (" """)) (, ",") (number_literal "0x52") (, ",") (string_literal ""add_to_literal_pool"" (" """) (string_content "add_to_literal_pool") (" """)) (, ",") (identifier "pvVar5") () ")"))) (; ";")) (} "}"))) (expression_statement "uVar7 = 1;" (assignment_expression "uVar7 = 1" (identifier "uVar7") (= "=") (number_literal "1")) (; ";")) (} "}")))) (expression_statement "FUN_0003c4e0(DAT_00088048,(int)__s - (DAT_00088048 + 0x50),param_5,param_1,param_2,param_3,0,uVar7\n              );" (call_expression "FUN_0003c4e0(DAT_00088048,(int)__s - (DAT_00088048 + 0x50),param_5,param_1,param_2,param_3,0,uVar7\n              )" (identifier "FUN_0003c4e0") (argument_list "(DAT_00088048,(int)__s - (DAT_00088048 + 0x50),param_5,param_1,param_2,param_3,0,uVar7\n              )" (( "(") (identifier "DAT_00088048") (, ",") (binary_expression "(int)__s - (DAT_00088048 + 0x50)" (cast_expression "(int)__s" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "__s")) (- "-") (parenthesized_expression "(DAT_00088048 + 0x50)" (( "(") (binary_expression "DAT_00088048 + 0x50" (identifier "DAT_00088048") (+ "+") (number_literal "0x50")) () ")"))) (, ",") (identifier "param_5") (, ",") (identifier "param_1") (, ",") (identifier "param_2") (, ",") (identifier "param_3") (, ",") (number_literal "0") (, ",") (identifier "uVar7") () ")"))) (; ";")) (expression_statement "FUN_00033da0(uVar2,uVar3);" (call_expression "FUN_00033da0(uVar2,uVar3)" (identifier "FUN_00033da0") (argument_list "(uVar2,uVar3)" (( "(") (identifier "uVar2") (, ",") (identifier "uVar3") () ")"))) (; ";")) (expression_statement "uVar4 = piVar1[0xc];" (assignment_expression "uVar4 = piVar1[0xc]" (identifier "uVar4") (= "=") (subscript_expression "piVar1[0xc]" (identifier "piVar1") ([ "[") (number_literal "0xc") (] "]"))) (; ";")) (expression_statement "piVar1[0xc] = uVar4 + param_5;" (assignment_expression "piVar1[0xc] = uVar4 + param_5" (subscript_expression "piVar1[0xc]" (identifier "piVar1") ([ "[") (number_literal "0xc") (] "]")) (= "=") (binary_expression "uVar4 + param_5" (identifier "uVar4") (+ "+") (identifier "param_5"))) (; ";")) (return_statement "return (ulonglong)uVar4;" (return "return") (cast_expression "(ulonglong)uVar4" (( "(") (type_descriptor "ulonglong" (type_identifier "ulonglong")) () ")") (identifier "uVar4")) (; ";")) (} "}")))

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

type_1 function_1(type_2 *var_2,type_1 var_3,type_3 sec,int var_7)

{
  int *piVar1;
  type_3 secptr;
  type_4 subseg;
  type_5 var_6;
  char *__s;
  int var_8;
  type_6 r_type;
  int var_1;
  bool bVar5;
  
  subseg = now_subseg;
  secptr = now_seg;
  piVar1 = (int *)sec->userdata;
  if ((*piVar1 != 0) && (var_1 = *(int *)(*piVar1 + 0x10), var_1 != 0)) {
    var_6 = 0;
    var_8 = 0;
    do {
      if ((*(type_2 **)(var_1 + 0xc) == var_2) && (var_3 == *(type_1 *)(var_1 + 0x14))) {
        return var_4(var_8,var_6);
      }
      var_1 = *(int *)(var_1 + 0x28);
      bVar5 = var_5(var_6,var_7);
      var_6 = var_6 + var_7;
      var_8 = var_8 + (var_7 >> 0x1f) + (type_5)bVar5;
    } while (var_1 != 0);
  }
  var_9(sec,0);
  __s = var_10(var_7);
  var_11(__s,0,var_7);
  if (var_7 == 4) {
    r_type = BFD_RELOC_32;
  }
  else {
    if (var_7 != 8) {
                    /* WARNING: Subroutine does not return */
      var_12("../../gas/literal.c",0x52,"add_to_literal_pool");
    }
    r_type = BFD_RELOC_64;
  }
  var_13(frag_now,(int)__s - (int)frag_now->fr_literal,var_7,var_2,var_3,0,r_type);
  var_9(secptr,subseg);
  var_6 = piVar1[0xc];
  piVar1[0xc] = var_6 + var_7;
  return (type_1)var_6;
}


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

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

ulonglong MASKED(int param_1,int param_2,int param_3,int param_4,uint param_5)

{
  int *piVar1;
  undefined4 uVar2;
  undefined4 uVar3;
  uint uVar4;
  void *__s;
  void *pvVar5;
  int iVar6;
  undefined4 uVar7;
  int iVar8;
  bool bVar9;
  
  uVar3 = DAT_00088044;
  uVar2 = DAT_00087f1c;
  piVar1 = *(int **)(param_4 + 0x80);
  if ((*piVar1 != 0) && (iVar8 = *(int *)(*piVar1 + 0x10), iVar8 != 0)) {
    uVar4 = 0;
    iVar6 = 0;
    do {
      if ((*(int *)(iVar8 + 0xc) == param_1) &&
         (param_3 == *(int *)(iVar8 + 0x18) && param_2 == *(int *)(iVar8 + 0x14))) {
        return CONCAT44(iVar6,uVar4);
      }
      iVar8 = *(int *)(iVar8 + 0x28);
      bVar9 = CARRY4(uVar4,param_5);
      uVar4 = uVar4 + param_5;
      iVar6 = iVar6 + ((int)param_5 >> 0x1f) + (uint)bVar9;
    } while (iVar8 != 0);
  }
  FUN_00033da0(param_4,0);
  __s = (void *)FUN_00022130(param_5);
  pvVar5 = memset(__s,0,param_5);
  if (param_5 == 4) {
    uVar7 = 2;
  }
  else {
    if (param_5 != 8) {
                    /* WARNING: Subroutine does not return */
      FUN_00029670("../../gas/literal.c",0x52,"add_to_literal_pool",pvVar5);
    }
    uVar7 = 1;
  }
  FUN_0003c4e0(DAT_00088048,(int)__s - (DAT_00088048 + 0x50),param_5,param_1,param_2,param_3,0,uVar7
              );
  FUN_00033da0(uVar2,uVar3);
  uVar4 = piVar1[0xc];
  piVar1[0xc] = uVar4 + param_5;
  return (ulonglong)uVar4;
}

