
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void record_got_page_entry(Mips_got_info<64,_false> * this,
   Mips_relobj<64,_false> * object, uint symndx, int addend) */

void __thiscall
anon_unknown.dwarf_d7d43e::Mips_got_info<64,_false>::record_got_page_entry
          (Mips_got_info<64,_false> *this,Mips_relobj<64,_false> *object,uint symndx,int addend)

{
  Got_page_entry *entry;
  
}



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

void __regparm3 FUN_0017f380(int param_1,int param_2,int param_3,int param_4)

{
  int *piVar1;
  int iVar2;
  int iVar3;
  int *piVar4;
  int *piVar5;
  uint uVar6;
  int iVar7;
  int iVar8;
  undefined4 *local_40;
  int local_30;
  
  piVar4 = (int *)FUN_003ac4d0(0xc);
  *piVar4 = param_2;
  piVar4[1] = param_3;
  piVar4[2] = 0;
  FUN_0016f8a0();
  if (local_30 == 0) {
    FUN_00177cc0();
    local_40 = *(undefined4 **)(param_2 + 0x1ec);
  }
  else {
    piVar4 = *(int **)(local_30 + 4);
    local_40 = *(undefined4 **)(param_2 + 0x1ec);
  }
  if (local_40 == (undefined4 *)0x0) {
    local_40 = (undefined4 *)FUN_003ac4d0(0x9c);
    *local_40 = 0;
    local_40[1] = 0;
    local_40[2] = 0;
    local_40[3] = 0;
    local_40[4] = 0;
    local_40[5] = 0xffffffff;
    uVar6 = 0;
    do {
      *(undefined4 *)((int)local_40 + uVar6 + 0x18) = 0;
      uVar6 = uVar6 + 4;
    } while (uVar6 < 0x1c);
    local_40[7] = 1;
    local_40[8] = 0;
    local_40[9] = 0;
    local_40[10] = 0x3f800000;
    local_40[0xb] = 0;
    local_40[0xc] = 0;
    local_40[6] = local_40 + 0xc;
    uVar6 = 0;
    do {
      *(undefined4 *)((int)local_40 + uVar6 + 0x34) = 0;
      uVar6 = uVar6 + 4;
    } while (uVar6 < 0x1c);
    local_40[0xe] = 1;
    local_40[0xf] = 0;
    local_40[0x10] = 0;
    local_40[0x11] = 0x3f800000;
    local_40[0x12] = 0;
    local_40[0x13] = 0;
    local_40[0xd] = local_40 + 0x13;
    uVar6 = 0;
    do {
      *(undefined4 *)((int)local_40 + uVar6 + 0x50) = 0;
      uVar6 = uVar6 + 4;
    } while (uVar6 < 0x1c);
    local_40[0x15] = 1;
    local_40[0x16] = 0;
    local_40[0x17] = 0;
    local_40[0x18] = 0x3f800000;
    local_40[0x19] = 0;
    local_40[0x1a] = 0;
    local_40[0x1b] = 0;
    local_40[0x1c] = 0;
    local_40[0x14] = local_40 + 0x1a;
    uVar6 = 0;
    do {
      *(undefined4 *)((int)local_40 + uVar6 + 0x74) = 0;
      uVar6 = uVar6 + 4;
    } while (uVar6 < 0x1c);
    *(undefined4 **)(param_2 + 0x1ec) = local_40;
    local_40[0x1d] = local_40 + 0x23;
    local_40[0x1e] = 1;
    local_40[0x1f] = 0;
    local_40[0x20] = 0;
    local_40[0x21] = 0x3f800000;
    local_40[0x22] = 0;
    local_40[0x23] = 0;
    local_40[0x24] = 0;
    local_40[0x25] = 0xffffffff;
    local_40[0x26] = 0;
  }
  piVar5 = (int *)piVar4[2];
  piVar4 = piVar4 + 2;
  if (piVar5 != (int *)0x0) {
    iVar8 = piVar5[2];
    while (iVar8 + 0xffff < param_4) {
      piVar1 = (int *)*piVar5;
      piVar4 = piVar5;
      if (piVar1 == (int *)0x0) goto LAB_0017f425;
      piVar5 = piVar1;
      iVar8 = piVar1[2];
    }
    iVar8 = piVar5[1];
    if (iVar8 + -0xffff <= param_4) {
      iVar2 = piVar5[2];
      iVar7 = (iVar2 - iVar8) + 0x1ffff >> 0x10;
      if (param_4 < iVar8) {
        piVar5[1] = param_4;
        iVar8 = (iVar2 - param_4) + 0x1ffff >> 0x10;
      }
      else {
        if (param_4 <= iVar2) {
          return;
        }
        piVar4 = (int *)*piVar5;
        if ((piVar4 == (int *)0x0) || (iVar2 = piVar4[1], param_4 < iVar2 + -0xffff)) {
          piVar5[2] = param_4;
          iVar8 = (param_4 - iVar8) + 0x1ffff >> 0x10;
        }
        else {
          iVar3 = piVar4[2];
          piVar5[2] = iVar3;
          iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10);
          *piVar5 = *piVar4;
          iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10;
        }
      }
      if (iVar7 == iVar8) {
        return;
      }
      *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + (iVar8 - iVar7);
      local_40[1] = local_40[1] + (iVar8 - iVar7);
      return;
    }
  }
LAB_0017f425:
  piVar5 = (int *)FUN_003ac4d0(0xc);
  *piVar5 = 0;
  iVar8 = *piVar4;
  piVar5[1] = param_4;
  *piVar5 = iVar8;
  piVar5[2] = param_4;
  *piVar4 = (int)piVar5;
  *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;
  local_40[1] = local_40[1] + 1;
  return;
}


PUSH EBP
MOV EBP,ESP
PUSH EDI
MOV EDI,EDX
PUSH ESI
PUSH EBX
CALL 0x00050b50
ADD EBX,0x46ac73
SUB ESP,0x48
MOV dword ptr [EBP + -0x3c],ECX
MOV ESI,dword ptr [EBP + 0x8]
PUSH 0xc
MOV dword ptr [EBP + -0x40],EAX
CALL 0x003ac4d0
MOV ECX,dword ptr [EBP + -0x3c]
MOV dword ptr [EAX],EDI
MOV dword ptr [EAX + 0x4],ECX
LEA ECX,[EBP + -0x1c]
MOV dword ptr [EAX + 0x8],0x0
MOV dword ptr [EBP + -0x1c],EAX
MOV EAX,dword ptr [EBP + -0x40]
MOV dword ptr [EBP + -0x44],ECX
LEA EDX,[EAX + 0x50]
LEA EAX,[EBP + -0x2c]
MOV dword ptr [EBP + -0x3c],EDX
CALL 0x0016f8a0
MOV EAX,dword ptr [EBP + -0x2c]
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0017f500
MOV EAX,dword ptr [EAX + 0x4]
MOV dword ptr [EBP + -0x1c],EAX
MOV EAX,dword ptr [EDI + 0x1ec]
MOV dword ptr [EBP + -0x3c],EAX
TEST EAX,EAX
JZ 0x0017f520
MOV EAX,dword ptr [EBP + -0x1c]
LEA EDI,[EAX + 0x8]
MOV EAX,dword ptr [EAX + 0x8]
TEST EAX,EAX
JZ 0x0017f425
MOV EDX,dword ptr [EAX + 0x8]
ADD EDX,0xffff
CMP ESI,EDX
JG 0x0017f41d
JMP 0x0017f460
MOV ECX,dword ptr [EAX + 0x8]
LEA EDX,[ECX + 0xffff]
CMP EDX,ESI
JGE 0x0017f460
MOV EDI,EAX
MOV EAX,dword ptr [EAX]
TEST EAX,EAX
JNZ 0x0017f410
SUB ESP,0xc
PUSH 0xc
CALL 0x003ac4d0
ADD ESP,0x10
MOV dword ptr [EAX],0x0
MOV EDX,dword ptr [EDI]
MOV dword ptr [EAX + 0x4],ESI
MOV dword ptr [EAX],EDX
MOV dword ptr [EAX + 0x8],ESI
MOV dword ptr [EDI],EAX
MOV EAX,dword ptr [EBP + -0x40]
ADD dword ptr [EAX + 0x4],0x1
MOV EAX,dword ptr [EBP + -0x3c]
ADD dword ptr [EAX + 0x4],0x1
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDX,dword ptr [EAX + 0x4]
LEA ECX,[EDX + 0xffff0001]
CMP ECX,ESI
JG 0x0017f425
MOV EBX,dword ptr [EAX + 0x8]
MOV ECX,EBX
SUB ECX,EDX
ADD ECX,0x1ffff
SAR ECX,0x10
CMP EDX,ESI
JLE 0x0017f4b0
SUB EBX,ESI
MOV dword ptr [EAX + 0x4],ESI
ADD EBX,0x1ffff
SAR EBX,0x10
CMP ECX,EBX
JZ 0x0017f452
MOV EAX,dword ptr [EBP + -0x40]
SUB EBX,ECX
ADD dword ptr [EAX + 0x4],EBX
MOV EAX,dword ptr [EBP + -0x3c]
ADD dword ptr [EAX + 0x4],EBX
LEA ESP,[EBP + -0xc]
POP EBX
POP ESI
POP EDI
POP EBP
RET
CMP ESI,EBX
JLE 0x0017f452
MOV EBX,dword ptr [EAX]
TEST EBX,EBX
JZ 0x0017f6b0
MOV dword ptr [EBP + -0x44],EBX
MOV EBX,dword ptr [EBX + 0x4]
LEA EDI,[EBX + 0xffff0001]
CMP EDI,ESI
JG 0x0017f6b0
MOV ESI,dword ptr [EBP + -0x44]
MOV ESI,dword ptr [ESI + 0x8]
MOV EDI,ESI
MOV dword ptr [EAX + 0x8],ESI
SUB ESI,EDX
SUB EDI,EBX
MOV EBX,EDI
ADD EBX,0x1ffff
SAR EBX,0x10
ADD ECX,EBX
MOV EBX,dword ptr [EBP + -0x44]
MOV EBX,dword ptr [EBX]
MOV dword ptr [EAX],EBX
LEA EBX,[ESI + 0x1ffff]
SAR EBX,0x10
JMP 0x0017f48f
MOV ECX,dword ptr [EBP + -0x44]
MOV EDX,dword ptr [EBP + -0x3c]
LEA EAX,[EBP + -0x38]
CALL 0x00177cc0
MOV EAX,dword ptr [EDI + 0x1ec]
MOV dword ptr [EBP + -0x3c],EAX
TEST EAX,EAX
JNZ 0x0017f3f4
NOP
SUB ESP,0xc
PUSH 0x9c
CALL 0x003ac4d0
XOR EDX,EDX
MOV ECX,EAX
MOV dword ptr [EAX],0x0
MOV dword ptr [EAX + 0x4],0x0
MOV dword ptr [EAX + 0x8],0x0
MOV dword ptr [EAX + 0xc],0x0
MOV dword ptr [EAX + 0x10],0x0
MOV dword ptr [EAX + 0x14],0xffffffff
XOR EAX,EAX
MOV dword ptr [ECX + EAX*0x1 + 0x18],EDX
ADD EAX,0x4
CMP EAX,0x1c
JC 0x0017f55c
MOV dword ptr [ECX + 0x1c],0x1
LEA EAX,[ECX + 0x30]
XOR EDX,EDX
MOV dword ptr [ECX + 0x20],0x0
MOV dword ptr [ECX + 0x24],0x0
MOV dword ptr [ECX + 0x28],0x3f800000
MOV dword ptr [ECX + 0x2c],0x0
MOV dword ptr [ECX + 0x30],0x0
MOV dword ptr [ECX + 0x18],EAX
XOR EAX,EAX
MOV dword ptr [ECX + EAX*0x1 + 0x34],EDX
ADD EAX,0x4
CMP EAX,0x1c
JC 0x0017f59c
MOV dword ptr [ECX + 0x38],0x1
LEA EAX,[ECX + 0x4c]
XOR EDX,EDX
MOV dword ptr [ECX + 0x3c],0x0
MOV dword ptr [ECX + 0x40],0x0
MOV dword ptr [ECX + 0x44],0x3f800000
MOV dword ptr [ECX + 0x48],0x0
MOV dword ptr [ECX + 0x4c],0x0
MOV dword ptr [ECX + 0x34],EAX
XOR EAX,EAX
MOV dword ptr [ECX + EAX*0x1 + 0x50],EDX
ADD EAX,0x4
CMP EAX,0x1c
JC 0x0017f5dc
MOV EAX,ECX
MOV dword ptr [ECX + 0x54],0x1
XOR EDX,EDX
MOV dword ptr [ECX + 0x58],0x0
ADD EAX,0x68
MOV dword ptr [ECX + 0x5c],0x0
MOV dword ptr [ECX + 0x60],0x3f800000
MOV dword ptr [ECX + 0x64],0x0
MOV dword ptr [ECX + 0x68],0x0
MOV dword ptr [ECX + 0x6c],0x0
MOV dword ptr [ECX + 0x70],0x0
MOV dword ptr [ECX + 0x50],EAX
XOR EAX,EAX
MOV dword ptr [ECX + EAX*0x1 + 0x74],EDX
ADD EAX,0x4
CMP EAX,0x1c
JC 0x0017f62c
MOV EAX,ECX
MOV dword ptr [EBP + -0x3c],ECX
ADD ESP,0x10
ADD EAX,0x8c
MOV dword ptr [EDI + 0x1ec],ECX
MOV dword ptr [ECX + 0x74],EAX
MOV dword ptr [ECX + 0x78],0x1
MOV dword ptr [ECX + 0x7c],0x0
MOV dword ptr [ECX + 0x80],0x0
MOV dword ptr [ECX + 0x84],0x3f800000
MOV dword ptr [ECX + 0x88],0x0
MOV dword ptr [ECX + 0x8c],0x0
MOV dword ptr [ECX + 0x90],0x0
MOV dword ptr [ECX + 0x94],0xffffffff
MOV dword ptr [ECX + 0x98],0x0
JMP 0x0017f3f4
MOV dword ptr [EAX + 0x8],ESI
SUB ESI,EDX
LEA EBX,[ESI + 0x1ffff]
SAR EBX,0x10
JMP 0x0017f48f
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid __regparm3 FUN_0017f380(int param_1,int param_2,int param_3,int param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int *piVar5;\n  uint uVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 *local_40;\n  int local_30;\n  \n  piVar4 = (int *)FUN_003ac4d0(0xc);\n  *piVar4 = param_2;\n  piVar4[1] = param_3;\n  piVar4[2] = 0;\n  FUN_0016f8a0();\n  if (local_30 == 0) {\n    FUN_00177cc0();\n    local_40 = *(undefined4 **)(param_2 + 0x1ec);\n  }\n  else {\n    piVar4 = *(int **)(local_30 + 4);\n    local_40 = *(undefined4 **)(param_2 + 0x1ec);\n  }\n  if (local_40 == (undefined4 *)0x0) {\n    local_40 = (undefined4 *)FUN_003ac4d0(0x9c);\n    *local_40 = 0;\n    local_40[1] = 0;\n    local_40[2] = 0;\n    local_40[3] = 0;\n    local_40[4] = 0;\n    local_40[5] = 0xffffffff;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x18) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    local_40[7] = 1;\n    local_40[8] = 0;\n    local_40[9] = 0;\n    local_40[10] = 0x3f800000;\n    local_40[0xb] = 0;\n    local_40[0xc] = 0;\n    local_40[6] = local_40 + 0xc;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x34) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    local_40[0xe] = 1;\n    local_40[0xf] = 0;\n    local_40[0x10] = 0;\n    local_40[0x11] = 0x3f800000;\n    local_40[0x12] = 0;\n    local_40[0x13] = 0;\n    local_40[0xd] = local_40 + 0x13;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x50) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    local_40[0x15] = 1;\n    local_40[0x16] = 0;\n    local_40[0x17] = 0;\n    local_40[0x18] = 0x3f800000;\n    local_40[0x19] = 0;\n    local_40[0x1a] = 0;\n    local_40[0x1b] = 0;\n    local_40[0x1c] = 0;\n    local_40[0x14] = local_40 + 0x1a;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x74) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    *(undefined4 **)(param_2 + 0x1ec) = local_40;\n    local_40[0x1d] = local_40 + 0x23;\n    local_40[0x1e] = 1;\n    local_40[0x1f] = 0;\n    local_40[0x20] = 0;\n    local_40[0x21] = 0x3f800000;\n    local_40[0x22] = 0;\n    local_40[0x23] = 0;\n    local_40[0x24] = 0;\n    local_40[0x25] = 0xffffffff;\n    local_40[0x26] = 0;\n  }\n  piVar5 = (int *)piVar4[2];\n  piVar4 = piVar4 + 2;\n  if (piVar5 != (int *)0x0) {\n    iVar8 = piVar5[2];\n    while (iVar8 + 0xffff < param_4) {\n      piVar1 = (int *)*piVar5;\n      piVar4 = piVar5;\n      if (piVar1 == (int *)0x0) goto LAB_0017f425;\n      piVar5 = piVar1;\n      iVar8 = piVar1[2];\n    }\n    iVar8 = piVar5[1];\n    if (iVar8 + -0xffff <= param_4) {\n      iVar2 = piVar5[2];\n      iVar7 = (iVar2 - iVar8) + 0x1ffff >> 0x10;\n      if (param_4 < iVar8) {\n        piVar5[1] = param_4;\n        iVar8 = (iVar2 - param_4) + 0x1ffff >> 0x10;\n      }\n      else {\n        if (param_4 <= iVar2) {\n          return;\n        }\n        piVar4 = (int *)*piVar5;\n        if ((piVar4 == (int *)0x0) || (iVar2 = piVar4[1], param_4 < iVar2 + -0xffff)) {\n          piVar5[2] = param_4;\n          iVar8 = (param_4 - iVar8) + 0x1ffff >> 0x10;\n        }\n        else {\n          iVar3 = piVar4[2];\n          piVar5[2] = iVar3;\n          iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10);\n          *piVar5 = *piVar4;\n          iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10;\n        }\n      }\n      if (iVar7 == iVar8) {\n        return;\n      }\n      *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + (iVar8 - iVar7);\n      local_40[1] = local_40[1] + (iVar8 - iVar7);\n      return;\n    }\n  }\nLAB_0017f425:\n  piVar5 = (int *)FUN_003ac4d0(0xc);\n  *piVar5 = 0;\n  iVar8 = *piVar4;\n  piVar5[1] = param_4;\n  *piVar5 = iVar8;\n  piVar5[2] = param_4;\n  *piVar4 = (int)piVar5;\n  *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n  local_40[1] = local_40[1] + 1;\n  return;\n}\n\n" comment (function_definition "void __regparm3 FUN_0017f380(int param_1,int param_2,int param_3,int param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int *piVar5;\n  uint uVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 *local_40;\n  int local_30;\n  \n  piVar4 = (int *)FUN_003ac4d0(0xc);\n  *piVar4 = param_2;\n  piVar4[1] = param_3;\n  piVar4[2] = 0;\n  FUN_0016f8a0();\n  if (local_30 == 0) {\n    FUN_00177cc0();\n    local_40 = *(undefined4 **)(param_2 + 0x1ec);\n  }\n  else {\n    piVar4 = *(int **)(local_30 + 4);\n    local_40 = *(undefined4 **)(param_2 + 0x1ec);\n  }\n  if (local_40 == (undefined4 *)0x0) {\n    local_40 = (undefined4 *)FUN_003ac4d0(0x9c);\n    *local_40 = 0;\n    local_40[1] = 0;\n    local_40[2] = 0;\n    local_40[3] = 0;\n    local_40[4] = 0;\n    local_40[5] = 0xffffffff;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x18) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    local_40[7] = 1;\n    local_40[8] = 0;\n    local_40[9] = 0;\n    local_40[10] = 0x3f800000;\n    local_40[0xb] = 0;\n    local_40[0xc] = 0;\n    local_40[6] = local_40 + 0xc;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x34) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    local_40[0xe] = 1;\n    local_40[0xf] = 0;\n    local_40[0x10] = 0;\n    local_40[0x11] = 0x3f800000;\n    local_40[0x12] = 0;\n    local_40[0x13] = 0;\n    local_40[0xd] = local_40 + 0x13;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x50) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    local_40[0x15] = 1;\n    local_40[0x16] = 0;\n    local_40[0x17] = 0;\n    local_40[0x18] = 0x3f800000;\n    local_40[0x19] = 0;\n    local_40[0x1a] = 0;\n    local_40[0x1b] = 0;\n    local_40[0x1c] = 0;\n    local_40[0x14] = local_40 + 0x1a;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x74) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    *(undefined4 **)(param_2 + 0x1ec) = local_40;\n    local_40[0x1d] = local_40 + 0x23;\n    local_40[0x1e] = 1;\n    local_40[0x1f] = 0;\n    local_40[0x20] = 0;\n    local_40[0x21] = 0x3f800000;\n    local_40[0x22] = 0;\n    local_40[0x23] = 0;\n    local_40[0x24] = 0;\n    local_40[0x25] = 0xffffffff;\n    local_40[0x26] = 0;\n  }\n  piVar5 = (int *)piVar4[2];\n  piVar4 = piVar4 + 2;\n  if (piVar5 != (int *)0x0) {\n    iVar8 = piVar5[2];\n    while (iVar8 + 0xffff < param_4) {\n      piVar1 = (int *)*piVar5;\n      piVar4 = piVar5;\n      if (piVar1 == (int *)0x0) goto LAB_0017f425;\n      piVar5 = piVar1;\n      iVar8 = piVar1[2];\n    }\n    iVar8 = piVar5[1];\n    if (iVar8 + -0xffff <= param_4) {\n      iVar2 = piVar5[2];\n      iVar7 = (iVar2 - iVar8) + 0x1ffff >> 0x10;\n      if (param_4 < iVar8) {\n        piVar5[1] = param_4;\n        iVar8 = (iVar2 - param_4) + 0x1ffff >> 0x10;\n      }\n      else {\n        if (param_4 <= iVar2) {\n          return;\n        }\n        piVar4 = (int *)*piVar5;\n        if ((piVar4 == (int *)0x0) || (iVar2 = piVar4[1], param_4 < iVar2 + -0xffff)) {\n          piVar5[2] = param_4;\n          iVar8 = (param_4 - iVar8) + 0x1ffff >> 0x10;\n        }\n        else {\n          iVar3 = piVar4[2];\n          piVar5[2] = iVar3;\n          iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10);\n          *piVar5 = *piVar4;\n          iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10;\n        }\n      }\n      if (iVar7 == iVar8) {\n        return;\n      }\n      *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + (iVar8 - iVar7);\n      local_40[1] = local_40[1] + (iVar8 - iVar7);\n      return;\n    }\n  }\nLAB_0017f425:\n  piVar5 = (int *)FUN_003ac4d0(0xc);\n  *piVar5 = 0;\n  iVar8 = *piVar4;\n  piVar5[1] = param_4;\n  *piVar5 = iVar8;\n  piVar5[2] = param_4;\n  *piVar4 = (int)piVar5;\n  *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n  local_40[1] = local_40[1] + 1;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0017f380(int param_1,int param_2,int param_3,int param_4)" identifier (parameter_list "(int param_1,int param_2,int param_3,int param_4)" ( (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) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int *piVar5;\n  uint uVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 *local_40;\n  int local_30;\n  \n  piVar4 = (int *)FUN_003ac4d0(0xc);\n  *piVar4 = param_2;\n  piVar4[1] = param_3;\n  piVar4[2] = 0;\n  FUN_0016f8a0();\n  if (local_30 == 0) {\n    FUN_00177cc0();\n    local_40 = *(undefined4 **)(param_2 + 0x1ec);\n  }\n  else {\n    piVar4 = *(int **)(local_30 + 4);\n    local_40 = *(undefined4 **)(param_2 + 0x1ec);\n  }\n  if (local_40 == (undefined4 *)0x0) {\n    local_40 = (undefined4 *)FUN_003ac4d0(0x9c);\n    *local_40 = 0;\n    local_40[1] = 0;\n    local_40[2] = 0;\n    local_40[3] = 0;\n    local_40[4] = 0;\n    local_40[5] = 0xffffffff;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x18) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    local_40[7] = 1;\n    local_40[8] = 0;\n    local_40[9] = 0;\n    local_40[10] = 0x3f800000;\n    local_40[0xb] = 0;\n    local_40[0xc] = 0;\n    local_40[6] = local_40 + 0xc;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x34) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    local_40[0xe] = 1;\n    local_40[0xf] = 0;\n    local_40[0x10] = 0;\n    local_40[0x11] = 0x3f800000;\n    local_40[0x12] = 0;\n    local_40[0x13] = 0;\n    local_40[0xd] = local_40 + 0x13;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x50) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    local_40[0x15] = 1;\n    local_40[0x16] = 0;\n    local_40[0x17] = 0;\n    local_40[0x18] = 0x3f800000;\n    local_40[0x19] = 0;\n    local_40[0x1a] = 0;\n    local_40[0x1b] = 0;\n    local_40[0x1c] = 0;\n    local_40[0x14] = local_40 + 0x1a;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x74) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    *(undefined4 **)(param_2 + 0x1ec) = local_40;\n    local_40[0x1d] = local_40 + 0x23;\n    local_40[0x1e] = 1;\n    local_40[0x1f] = 0;\n    local_40[0x20] = 0;\n    local_40[0x21] = 0x3f800000;\n    local_40[0x22] = 0;\n    local_40[0x23] = 0;\n    local_40[0x24] = 0;\n    local_40[0x25] = 0xffffffff;\n    local_40[0x26] = 0;\n  }\n  piVar5 = (int *)piVar4[2];\n  piVar4 = piVar4 + 2;\n  if (piVar5 != (int *)0x0) {\n    iVar8 = piVar5[2];\n    while (iVar8 + 0xffff < param_4) {\n      piVar1 = (int *)*piVar5;\n      piVar4 = piVar5;\n      if (piVar1 == (int *)0x0) goto LAB_0017f425;\n      piVar5 = piVar1;\n      iVar8 = piVar1[2];\n    }\n    iVar8 = piVar5[1];\n    if (iVar8 + -0xffff <= param_4) {\n      iVar2 = piVar5[2];\n      iVar7 = (iVar2 - iVar8) + 0x1ffff >> 0x10;\n      if (param_4 < iVar8) {\n        piVar5[1] = param_4;\n        iVar8 = (iVar2 - param_4) + 0x1ffff >> 0x10;\n      }\n      else {\n        if (param_4 <= iVar2) {\n          return;\n        }\n        piVar4 = (int *)*piVar5;\n        if ((piVar4 == (int *)0x0) || (iVar2 = piVar4[1], param_4 < iVar2 + -0xffff)) {\n          piVar5[2] = param_4;\n          iVar8 = (param_4 - iVar8) + 0x1ffff >> 0x10;\n        }\n        else {\n          iVar3 = piVar4[2];\n          piVar5[2] = iVar3;\n          iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10);\n          *piVar5 = *piVar4;\n          iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10;\n        }\n      }\n      if (iVar7 == iVar8) {\n        return;\n      }\n      *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + (iVar8 - iVar7);\n      local_40[1] = local_40[1] + (iVar8 - iVar7);\n      return;\n    }\n  }\nLAB_0017f425:\n  piVar5 = (int *)FUN_003ac4d0(0xc);\n  *piVar5 = 0;\n  iVar8 = *piVar4;\n  piVar5[1] = param_4;\n  *piVar5 = iVar8;\n  piVar5[2] = param_4;\n  *piVar4 = (int)piVar5;\n  *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n  local_40[1] = local_40[1] + 1;\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "undefined4 *local_40;" type_identifier (pointer_declarator "*local_40" * identifier) ;) (declaration "int local_30;" primitive_type identifier ;) (expression_statement "piVar4 = (int *)FUN_003ac4d0(0xc);" (assignment_expression "piVar4 = (int *)FUN_003ac4d0(0xc)" identifier = (cast_expression "(int *)FUN_003ac4d0(0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_003ac4d0(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "*piVar4 = param_2;" (assignment_expression "*piVar4 = param_2" (pointer_expression "*piVar4" * identifier) = identifier) ;) (expression_statement "piVar4[1] = param_3;" (assignment_expression "piVar4[1] = param_3" (subscript_expression "piVar4[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar4[2] = 0;" (assignment_expression "piVar4[2] = 0" (subscript_expression "piVar4[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_0016f8a0();" (call_expression "FUN_0016f8a0()" identifier (argument_list "()" ( ))) ;) (if_statement "if (local_30 == 0) {\n    FUN_00177cc0();\n    local_40 = *(undefined4 **)(param_2 + 0x1ec);\n  }\n  else {\n    piVar4 = *(int **)(local_30 + 4);\n    local_40 = *(undefined4 **)(param_2 + 0x1ec);\n  }" if (parenthesized_expression "(local_30 == 0)" ( (binary_expression "local_30 == 0" identifier == number_literal) )) (compound_statement "{\n    FUN_00177cc0();\n    local_40 = *(undefined4 **)(param_2 + 0x1ec);\n  }" { (expression_statement "FUN_00177cc0();" (call_expression "FUN_00177cc0()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_40 = *(undefined4 **)(param_2 + 0x1ec);" (assignment_expression "local_40 = *(undefined4 **)(param_2 + 0x1ec)" identifier = (pointer_expression "*(undefined4 **)(param_2 + 0x1ec)" * (cast_expression "(undefined4 **)(param_2 + 0x1ec)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x1ec)" ( (binary_expression "param_2 + 0x1ec" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    piVar4 = *(int **)(local_30 + 4);\n    local_40 = *(undefined4 **)(param_2 + 0x1ec);\n  }" else (compound_statement "{\n    piVar4 = *(int **)(local_30 + 4);\n    local_40 = *(undefined4 **)(param_2 + 0x1ec);\n  }" { (expression_statement "piVar4 = *(int **)(local_30 + 4);" (assignment_expression "piVar4 = *(int **)(local_30 + 4)" identifier = (pointer_expression "*(int **)(local_30 + 4)" * (cast_expression "(int **)(local_30 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(local_30 + 4)" ( (binary_expression "local_30 + 4" identifier + number_literal) ))))) ;) (expression_statement "local_40 = *(undefined4 **)(param_2 + 0x1ec);" (assignment_expression "local_40 = *(undefined4 **)(param_2 + 0x1ec)" identifier = (pointer_expression "*(undefined4 **)(param_2 + 0x1ec)" * (cast_expression "(undefined4 **)(param_2 + 0x1ec)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x1ec)" ( (binary_expression "param_2 + 0x1ec" identifier + number_literal) ))))) ;) }))) (if_statement "if (local_40 == (undefined4 *)0x0) {\n    local_40 = (undefined4 *)FUN_003ac4d0(0x9c);\n    *local_40 = 0;\n    local_40[1] = 0;\n    local_40[2] = 0;\n    local_40[3] = 0;\n    local_40[4] = 0;\n    local_40[5] = 0xffffffff;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x18) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    local_40[7] = 1;\n    local_40[8] = 0;\n    local_40[9] = 0;\n    local_40[10] = 0x3f800000;\n    local_40[0xb] = 0;\n    local_40[0xc] = 0;\n    local_40[6] = local_40 + 0xc;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x34) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    local_40[0xe] = 1;\n    local_40[0xf] = 0;\n    local_40[0x10] = 0;\n    local_40[0x11] = 0x3f800000;\n    local_40[0x12] = 0;\n    local_40[0x13] = 0;\n    local_40[0xd] = local_40 + 0x13;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x50) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    local_40[0x15] = 1;\n    local_40[0x16] = 0;\n    local_40[0x17] = 0;\n    local_40[0x18] = 0x3f800000;\n    local_40[0x19] = 0;\n    local_40[0x1a] = 0;\n    local_40[0x1b] = 0;\n    local_40[0x1c] = 0;\n    local_40[0x14] = local_40 + 0x1a;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x74) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    *(undefined4 **)(param_2 + 0x1ec) = local_40;\n    local_40[0x1d] = local_40 + 0x23;\n    local_40[0x1e] = 1;\n    local_40[0x1f] = 0;\n    local_40[0x20] = 0;\n    local_40[0x21] = 0x3f800000;\n    local_40[0x22] = 0;\n    local_40[0x23] = 0;\n    local_40[0x24] = 0;\n    local_40[0x25] = 0xffffffff;\n    local_40[0x26] = 0;\n  }" if (parenthesized_expression "(local_40 == (undefined4 *)0x0)" ( (binary_expression "local_40 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    local_40 = (undefined4 *)FUN_003ac4d0(0x9c);\n    *local_40 = 0;\n    local_40[1] = 0;\n    local_40[2] = 0;\n    local_40[3] = 0;\n    local_40[4] = 0;\n    local_40[5] = 0xffffffff;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x18) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    local_40[7] = 1;\n    local_40[8] = 0;\n    local_40[9] = 0;\n    local_40[10] = 0x3f800000;\n    local_40[0xb] = 0;\n    local_40[0xc] = 0;\n    local_40[6] = local_40 + 0xc;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x34) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    local_40[0xe] = 1;\n    local_40[0xf] = 0;\n    local_40[0x10] = 0;\n    local_40[0x11] = 0x3f800000;\n    local_40[0x12] = 0;\n    local_40[0x13] = 0;\n    local_40[0xd] = local_40 + 0x13;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x50) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    local_40[0x15] = 1;\n    local_40[0x16] = 0;\n    local_40[0x17] = 0;\n    local_40[0x18] = 0x3f800000;\n    local_40[0x19] = 0;\n    local_40[0x1a] = 0;\n    local_40[0x1b] = 0;\n    local_40[0x1c] = 0;\n    local_40[0x14] = local_40 + 0x1a;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x74) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    *(undefined4 **)(param_2 + 0x1ec) = local_40;\n    local_40[0x1d] = local_40 + 0x23;\n    local_40[0x1e] = 1;\n    local_40[0x1f] = 0;\n    local_40[0x20] = 0;\n    local_40[0x21] = 0x3f800000;\n    local_40[0x22] = 0;\n    local_40[0x23] = 0;\n    local_40[0x24] = 0;\n    local_40[0x25] = 0xffffffff;\n    local_40[0x26] = 0;\n  }" { (expression_statement "local_40 = (undefined4 *)FUN_003ac4d0(0x9c);" (assignment_expression "local_40 = (undefined4 *)FUN_003ac4d0(0x9c)" identifier = (cast_expression "(undefined4 *)FUN_003ac4d0(0x9c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_003ac4d0(0x9c)" identifier (argument_list "(0x9c)" ( number_literal ))))) ;) (expression_statement "*local_40 = 0;" (assignment_expression "*local_40 = 0" (pointer_expression "*local_40" * identifier) = number_literal) ;) (expression_statement "local_40[1] = 0;" (assignment_expression "local_40[1] = 0" (subscript_expression "local_40[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[2] = 0;" (assignment_expression "local_40[2] = 0" (subscript_expression "local_40[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[3] = 0;" (assignment_expression "local_40[3] = 0" (subscript_expression "local_40[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[4] = 0;" (assignment_expression "local_40[4] = 0" (subscript_expression "local_40[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[5] = 0xffffffff;" (assignment_expression "local_40[5] = 0xffffffff" (subscript_expression "local_40[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x18) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);" do (compound_statement "{\n      *(undefined4 *)((int)local_40 + uVar6 + 0x18) = 0;\n      uVar6 = uVar6 + 4;\n    }" { (expression_statement "*(undefined4 *)((int)local_40 + uVar6 + 0x18) = 0;" (assignment_expression "*(undefined4 *)((int)local_40 + uVar6 + 0x18) = 0" (pointer_expression "*(undefined4 *)((int)local_40 + uVar6 + 0x18)" * (cast_expression "(undefined4 *)((int)local_40 + uVar6 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_40 + uVar6 + 0x18)" ( (binary_expression "(int)local_40 + uVar6 + 0x18" (binary_expression "(int)local_40 + uVar6" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) (expression_statement "uVar6 = uVar6 + 4;" (assignment_expression "uVar6 = uVar6 + 4" identifier = (binary_expression "uVar6 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar6 < 0x1c)" ( (binary_expression "uVar6 < 0x1c" identifier < number_literal) )) ;) (expression_statement "local_40[7] = 1;" (assignment_expression "local_40[7] = 1" (subscript_expression "local_40[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[8] = 0;" (assignment_expression "local_40[8] = 0" (subscript_expression "local_40[8]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[9] = 0;" (assignment_expression "local_40[9] = 0" (subscript_expression "local_40[9]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[10] = 0x3f800000;" (assignment_expression "local_40[10] = 0x3f800000" (subscript_expression "local_40[10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0xb] = 0;" (assignment_expression "local_40[0xb] = 0" (subscript_expression "local_40[0xb]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0xc] = 0;" (assignment_expression "local_40[0xc] = 0" (subscript_expression "local_40[0xc]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[6] = local_40 + 0xc;" (assignment_expression "local_40[6] = local_40 + 0xc" (subscript_expression "local_40[6]" identifier [ number_literal ]) = (binary_expression "local_40 + 0xc" identifier + number_literal)) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x34) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);" do (compound_statement "{\n      *(undefined4 *)((int)local_40 + uVar6 + 0x34) = 0;\n      uVar6 = uVar6 + 4;\n    }" { (expression_statement "*(undefined4 *)((int)local_40 + uVar6 + 0x34) = 0;" (assignment_expression "*(undefined4 *)((int)local_40 + uVar6 + 0x34) = 0" (pointer_expression "*(undefined4 *)((int)local_40 + uVar6 + 0x34)" * (cast_expression "(undefined4 *)((int)local_40 + uVar6 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_40 + uVar6 + 0x34)" ( (binary_expression "(int)local_40 + uVar6 + 0x34" (binary_expression "(int)local_40 + uVar6" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) (expression_statement "uVar6 = uVar6 + 4;" (assignment_expression "uVar6 = uVar6 + 4" identifier = (binary_expression "uVar6 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar6 < 0x1c)" ( (binary_expression "uVar6 < 0x1c" identifier < number_literal) )) ;) (expression_statement "local_40[0xe] = 1;" (assignment_expression "local_40[0xe] = 1" (subscript_expression "local_40[0xe]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0xf] = 0;" (assignment_expression "local_40[0xf] = 0" (subscript_expression "local_40[0xf]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0x10] = 0;" (assignment_expression "local_40[0x10] = 0" (subscript_expression "local_40[0x10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0x11] = 0x3f800000;" (assignment_expression "local_40[0x11] = 0x3f800000" (subscript_expression "local_40[0x11]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0x12] = 0;" (assignment_expression "local_40[0x12] = 0" (subscript_expression "local_40[0x12]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0x13] = 0;" (assignment_expression "local_40[0x13] = 0" (subscript_expression "local_40[0x13]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0xd] = local_40 + 0x13;" (assignment_expression "local_40[0xd] = local_40 + 0x13" (subscript_expression "local_40[0xd]" identifier [ number_literal ]) = (binary_expression "local_40 + 0x13" identifier + number_literal)) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x50) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);" do (compound_statement "{\n      *(undefined4 *)((int)local_40 + uVar6 + 0x50) = 0;\n      uVar6 = uVar6 + 4;\n    }" { (expression_statement "*(undefined4 *)((int)local_40 + uVar6 + 0x50) = 0;" (assignment_expression "*(undefined4 *)((int)local_40 + uVar6 + 0x50) = 0" (pointer_expression "*(undefined4 *)((int)local_40 + uVar6 + 0x50)" * (cast_expression "(undefined4 *)((int)local_40 + uVar6 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_40 + uVar6 + 0x50)" ( (binary_expression "(int)local_40 + uVar6 + 0x50" (binary_expression "(int)local_40 + uVar6" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) (expression_statement "uVar6 = uVar6 + 4;" (assignment_expression "uVar6 = uVar6 + 4" identifier = (binary_expression "uVar6 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar6 < 0x1c)" ( (binary_expression "uVar6 < 0x1c" identifier < number_literal) )) ;) (expression_statement "local_40[0x15] = 1;" (assignment_expression "local_40[0x15] = 1" (subscript_expression "local_40[0x15]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0x16] = 0;" (assignment_expression "local_40[0x16] = 0" (subscript_expression "local_40[0x16]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0x17] = 0;" (assignment_expression "local_40[0x17] = 0" (subscript_expression "local_40[0x17]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0x18] = 0x3f800000;" (assignment_expression "local_40[0x18] = 0x3f800000" (subscript_expression "local_40[0x18]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0x19] = 0;" (assignment_expression "local_40[0x19] = 0" (subscript_expression "local_40[0x19]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0x1a] = 0;" (assignment_expression "local_40[0x1a] = 0" (subscript_expression "local_40[0x1a]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0x1b] = 0;" (assignment_expression "local_40[0x1b] = 0" (subscript_expression "local_40[0x1b]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0x1c] = 0;" (assignment_expression "local_40[0x1c] = 0" (subscript_expression "local_40[0x1c]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0x14] = local_40 + 0x1a;" (assignment_expression "local_40[0x14] = local_40 + 0x1a" (subscript_expression "local_40[0x14]" identifier [ number_literal ]) = (binary_expression "local_40 + 0x1a" identifier + number_literal)) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x74) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);" do (compound_statement "{\n      *(undefined4 *)((int)local_40 + uVar6 + 0x74) = 0;\n      uVar6 = uVar6 + 4;\n    }" { (expression_statement "*(undefined4 *)((int)local_40 + uVar6 + 0x74) = 0;" (assignment_expression "*(undefined4 *)((int)local_40 + uVar6 + 0x74) = 0" (pointer_expression "*(undefined4 *)((int)local_40 + uVar6 + 0x74)" * (cast_expression "(undefined4 *)((int)local_40 + uVar6 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_40 + uVar6 + 0x74)" ( (binary_expression "(int)local_40 + uVar6 + 0x74" (binary_expression "(int)local_40 + uVar6" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) (expression_statement "uVar6 = uVar6 + 4;" (assignment_expression "uVar6 = uVar6 + 4" identifier = (binary_expression "uVar6 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar6 < 0x1c)" ( (binary_expression "uVar6 < 0x1c" identifier < number_literal) )) ;) (expression_statement "*(undefined4 **)(param_2 + 0x1ec) = local_40;" (assignment_expression "*(undefined4 **)(param_2 + 0x1ec) = local_40" (pointer_expression "*(undefined4 **)(param_2 + 0x1ec)" * (cast_expression "(undefined4 **)(param_2 + 0x1ec)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x1ec)" ( (binary_expression "param_2 + 0x1ec" identifier + number_literal) )))) = identifier) ;) (expression_statement "local_40[0x1d] = local_40 + 0x23;" (assignment_expression "local_40[0x1d] = local_40 + 0x23" (subscript_expression "local_40[0x1d]" identifier [ number_literal ]) = (binary_expression "local_40 + 0x23" identifier + number_literal)) ;) (expression_statement "local_40[0x1e] = 1;" (assignment_expression "local_40[0x1e] = 1" (subscript_expression "local_40[0x1e]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0x1f] = 0;" (assignment_expression "local_40[0x1f] = 0" (subscript_expression "local_40[0x1f]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0x20] = 0;" (assignment_expression "local_40[0x20] = 0" (subscript_expression "local_40[0x20]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0x21] = 0x3f800000;" (assignment_expression "local_40[0x21] = 0x3f800000" (subscript_expression "local_40[0x21]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0x22] = 0;" (assignment_expression "local_40[0x22] = 0" (subscript_expression "local_40[0x22]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0x23] = 0;" (assignment_expression "local_40[0x23] = 0" (subscript_expression "local_40[0x23]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0x24] = 0;" (assignment_expression "local_40[0x24] = 0" (subscript_expression "local_40[0x24]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0x25] = 0xffffffff;" (assignment_expression "local_40[0x25] = 0xffffffff" (subscript_expression "local_40[0x25]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0x26] = 0;" (assignment_expression "local_40[0x26] = 0" (subscript_expression "local_40[0x26]" identifier [ number_literal ]) = number_literal) ;) })) (expression_statement "piVar5 = (int *)piVar4[2];" (assignment_expression "piVar5 = (int *)piVar4[2]" identifier = (cast_expression "(int *)piVar4[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[2]" identifier [ number_literal ]))) ;) (expression_statement "piVar4 = piVar4 + 2;" (assignment_expression "piVar4 = piVar4 + 2" identifier = (binary_expression "piVar4 + 2" identifier + number_literal)) ;) (if_statement "if (piVar5 != (int *)0x0) {\n    iVar8 = piVar5[2];\n    while (iVar8 + 0xffff < param_4) {\n      piVar1 = (int *)*piVar5;\n      piVar4 = piVar5;\n      if (piVar1 == (int *)0x0) goto LAB_0017f425;\n      piVar5 = piVar1;\n      iVar8 = piVar1[2];\n    }\n    iVar8 = piVar5[1];\n    if (iVar8 + -0xffff <= param_4) {\n      iVar2 = piVar5[2];\n      iVar7 = (iVar2 - iVar8) + 0x1ffff >> 0x10;\n      if (param_4 < iVar8) {\n        piVar5[1] = param_4;\n        iVar8 = (iVar2 - param_4) + 0x1ffff >> 0x10;\n      }\n      else {\n        if (param_4 <= iVar2) {\n          return;\n        }\n        piVar4 = (int *)*piVar5;\n        if ((piVar4 == (int *)0x0) || (iVar2 = piVar4[1], param_4 < iVar2 + -0xffff)) {\n          piVar5[2] = param_4;\n          iVar8 = (param_4 - iVar8) + 0x1ffff >> 0x10;\n        }\n        else {\n          iVar3 = piVar4[2];\n          piVar5[2] = iVar3;\n          iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10);\n          *piVar5 = *piVar4;\n          iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10;\n        }\n      }\n      if (iVar7 == iVar8) {\n        return;\n      }\n      *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + (iVar8 - iVar7);\n      local_40[1] = local_40[1] + (iVar8 - iVar7);\n      return;\n    }\n  }" if (parenthesized_expression "(piVar5 != (int *)0x0)" ( (binary_expression "piVar5 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar8 = piVar5[2];\n    while (iVar8 + 0xffff < param_4) {\n      piVar1 = (int *)*piVar5;\n      piVar4 = piVar5;\n      if (piVar1 == (int *)0x0) goto LAB_0017f425;\n      piVar5 = piVar1;\n      iVar8 = piVar1[2];\n    }\n    iVar8 = piVar5[1];\n    if (iVar8 + -0xffff <= param_4) {\n      iVar2 = piVar5[2];\n      iVar7 = (iVar2 - iVar8) + 0x1ffff >> 0x10;\n      if (param_4 < iVar8) {\n        piVar5[1] = param_4;\n        iVar8 = (iVar2 - param_4) + 0x1ffff >> 0x10;\n      }\n      else {\n        if (param_4 <= iVar2) {\n          return;\n        }\n        piVar4 = (int *)*piVar5;\n        if ((piVar4 == (int *)0x0) || (iVar2 = piVar4[1], param_4 < iVar2 + -0xffff)) {\n          piVar5[2] = param_4;\n          iVar8 = (param_4 - iVar8) + 0x1ffff >> 0x10;\n        }\n        else {\n          iVar3 = piVar4[2];\n          piVar5[2] = iVar3;\n          iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10);\n          *piVar5 = *piVar4;\n          iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10;\n        }\n      }\n      if (iVar7 == iVar8) {\n        return;\n      }\n      *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + (iVar8 - iVar7);\n      local_40[1] = local_40[1] + (iVar8 - iVar7);\n      return;\n    }\n  }" { (expression_statement "iVar8 = piVar5[2];" (assignment_expression "iVar8 = piVar5[2]" identifier = (subscript_expression "piVar5[2]" identifier [ number_literal ])) ;) (while_statement "while (iVar8 + 0xffff < param_4) {\n      piVar1 = (int *)*piVar5;\n      piVar4 = piVar5;\n      if (piVar1 == (int *)0x0) goto LAB_0017f425;\n      piVar5 = piVar1;\n      iVar8 = piVar1[2];\n    }" while (parenthesized_expression "(iVar8 + 0xffff < param_4)" ( (binary_expression "iVar8 + 0xffff < param_4" (binary_expression "iVar8 + 0xffff" identifier + number_literal) < identifier) )) (compound_statement "{\n      piVar1 = (int *)*piVar5;\n      piVar4 = piVar5;\n      if (piVar1 == (int *)0x0) goto LAB_0017f425;\n      piVar5 = piVar1;\n      iVar8 = piVar1[2];\n    }" { (expression_statement "piVar1 = (int *)*piVar5;" (assignment_expression "piVar1 = (int *)*piVar5" identifier = (cast_expression "(int *)*piVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar5" * identifier))) ;) (expression_statement "piVar4 = piVar5;" (assignment_expression "piVar4 = piVar5" identifier = identifier) ;) (if_statement "if (piVar1 == (int *)0x0) goto LAB_0017f425;" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0017f425;" goto statement_identifier ;)) (expression_statement "piVar5 = piVar1;" (assignment_expression "piVar5 = piVar1" identifier = identifier) ;) (expression_statement "iVar8 = piVar1[2];" (assignment_expression "iVar8 = piVar1[2]" identifier = (subscript_expression "piVar1[2]" identifier [ number_literal ])) ;) })) (expression_statement "iVar8 = piVar5[1];" (assignment_expression "iVar8 = piVar5[1]" identifier = (subscript_expression "piVar5[1]" identifier [ number_literal ])) ;) (if_statement "if (iVar8 + -0xffff <= param_4) {\n      iVar2 = piVar5[2];\n      iVar7 = (iVar2 - iVar8) + 0x1ffff >> 0x10;\n      if (param_4 < iVar8) {\n        piVar5[1] = param_4;\n        iVar8 = (iVar2 - param_4) + 0x1ffff >> 0x10;\n      }\n      else {\n        if (param_4 <= iVar2) {\n          return;\n        }\n        piVar4 = (int *)*piVar5;\n        if ((piVar4 == (int *)0x0) || (iVar2 = piVar4[1], param_4 < iVar2 + -0xffff)) {\n          piVar5[2] = param_4;\n          iVar8 = (param_4 - iVar8) + 0x1ffff >> 0x10;\n        }\n        else {\n          iVar3 = piVar4[2];\n          piVar5[2] = iVar3;\n          iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10);\n          *piVar5 = *piVar4;\n          iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10;\n        }\n      }\n      if (iVar7 == iVar8) {\n        return;\n      }\n      *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + (iVar8 - iVar7);\n      local_40[1] = local_40[1] + (iVar8 - iVar7);\n      return;\n    }" if (parenthesized_expression "(iVar8 + -0xffff <= param_4)" ( (binary_expression "iVar8 + -0xffff <= param_4" (binary_expression "iVar8 + -0xffff" identifier + number_literal) <= identifier) )) (compound_statement "{\n      iVar2 = piVar5[2];\n      iVar7 = (iVar2 - iVar8) + 0x1ffff >> 0x10;\n      if (param_4 < iVar8) {\n        piVar5[1] = param_4;\n        iVar8 = (iVar2 - param_4) + 0x1ffff >> 0x10;\n      }\n      else {\n        if (param_4 <= iVar2) {\n          return;\n        }\n        piVar4 = (int *)*piVar5;\n        if ((piVar4 == (int *)0x0) || (iVar2 = piVar4[1], param_4 < iVar2 + -0xffff)) {\n          piVar5[2] = param_4;\n          iVar8 = (param_4 - iVar8) + 0x1ffff >> 0x10;\n        }\n        else {\n          iVar3 = piVar4[2];\n          piVar5[2] = iVar3;\n          iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10);\n          *piVar5 = *piVar4;\n          iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10;\n        }\n      }\n      if (iVar7 == iVar8) {\n        return;\n      }\n      *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + (iVar8 - iVar7);\n      local_40[1] = local_40[1] + (iVar8 - iVar7);\n      return;\n    }" { (expression_statement "iVar2 = piVar5[2];" (assignment_expression "iVar2 = piVar5[2]" identifier = (subscript_expression "piVar5[2]" identifier [ number_literal ])) ;) (expression_statement "iVar7 = (iVar2 - iVar8) + 0x1ffff >> 0x10;" (assignment_expression "iVar7 = (iVar2 - iVar8) + 0x1ffff >> 0x10" identifier = (binary_expression "(iVar2 - iVar8) + 0x1ffff >> 0x10" (binary_expression "(iVar2 - iVar8) + 0x1ffff" (parenthesized_expression "(iVar2 - iVar8)" ( (binary_expression "iVar2 - iVar8" identifier - identifier) )) + number_literal) >> number_literal)) ;) (if_statement "if (param_4 < iVar8) {\n        piVar5[1] = param_4;\n        iVar8 = (iVar2 - param_4) + 0x1ffff >> 0x10;\n      }\n      else {\n        if (param_4 <= iVar2) {\n          return;\n        }\n        piVar4 = (int *)*piVar5;\n        if ((piVar4 == (int *)0x0) || (iVar2 = piVar4[1], param_4 < iVar2 + -0xffff)) {\n          piVar5[2] = param_4;\n          iVar8 = (param_4 - iVar8) + 0x1ffff >> 0x10;\n        }\n        else {\n          iVar3 = piVar4[2];\n          piVar5[2] = iVar3;\n          iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10);\n          *piVar5 = *piVar4;\n          iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10;\n        }\n      }" if (parenthesized_expression "(param_4 < iVar8)" ( (binary_expression "param_4 < iVar8" identifier < identifier) )) (compound_statement "{\n        piVar5[1] = param_4;\n        iVar8 = (iVar2 - param_4) + 0x1ffff >> 0x10;\n      }" { (expression_statement "piVar5[1] = param_4;" (assignment_expression "piVar5[1] = param_4" (subscript_expression "piVar5[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar8 = (iVar2 - param_4) + 0x1ffff >> 0x10;" (assignment_expression "iVar8 = (iVar2 - param_4) + 0x1ffff >> 0x10" identifier = (binary_expression "(iVar2 - param_4) + 0x1ffff >> 0x10" (binary_expression "(iVar2 - param_4) + 0x1ffff" (parenthesized_expression "(iVar2 - param_4)" ( (binary_expression "iVar2 - param_4" identifier - identifier) )) + number_literal) >> number_literal)) ;) }) (else_clause "else {\n        if (param_4 <= iVar2) {\n          return;\n        }\n        piVar4 = (int *)*piVar5;\n        if ((piVar4 == (int *)0x0) || (iVar2 = piVar4[1], param_4 < iVar2 + -0xffff)) {\n          piVar5[2] = param_4;\n          iVar8 = (param_4 - iVar8) + 0x1ffff >> 0x10;\n        }\n        else {\n          iVar3 = piVar4[2];\n          piVar5[2] = iVar3;\n          iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10);\n          *piVar5 = *piVar4;\n          iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10;\n        }\n      }" else (compound_statement "{\n        if (param_4 <= iVar2) {\n          return;\n        }\n        piVar4 = (int *)*piVar5;\n        if ((piVar4 == (int *)0x0) || (iVar2 = piVar4[1], param_4 < iVar2 + -0xffff)) {\n          piVar5[2] = param_4;\n          iVar8 = (param_4 - iVar8) + 0x1ffff >> 0x10;\n        }\n        else {\n          iVar3 = piVar4[2];\n          piVar5[2] = iVar3;\n          iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10);\n          *piVar5 = *piVar4;\n          iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10;\n        }\n      }" { (if_statement "if (param_4 <= iVar2) {\n          return;\n        }" if (parenthesized_expression "(param_4 <= iVar2)" ( (binary_expression "param_4 <= iVar2" identifier <= identifier) )) (compound_statement "{\n          return;\n        }" { (return_statement "return;" return ;) })) (expression_statement "piVar4 = (int *)*piVar5;" (assignment_expression "piVar4 = (int *)*piVar5" identifier = (cast_expression "(int *)*piVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar5" * identifier))) ;) (if_statement "if ((piVar4 == (int *)0x0) || (iVar2 = piVar4[1], param_4 < iVar2 + -0xffff)) {\n          piVar5[2] = param_4;\n          iVar8 = (param_4 - iVar8) + 0x1ffff >> 0x10;\n        }\n        else {\n          iVar3 = piVar4[2];\n          piVar5[2] = iVar3;\n          iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10);\n          *piVar5 = *piVar4;\n          iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10;\n        }" if (parenthesized_expression "((piVar4 == (int *)0x0) || (iVar2 = piVar4[1], param_4 < iVar2 + -0xffff))" ( (binary_expression "(piVar4 == (int *)0x0) || (iVar2 = piVar4[1], param_4 < iVar2 + -0xffff)" (parenthesized_expression "(piVar4 == (int *)0x0)" ( (binary_expression "piVar4 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(iVar2 = piVar4[1], param_4 < iVar2 + -0xffff)" ( (comma_expression "iVar2 = piVar4[1], param_4 < iVar2 + -0xffff" (assignment_expression "iVar2 = piVar4[1]" identifier = (subscript_expression "piVar4[1]" identifier [ number_literal ])) , (binary_expression "param_4 < iVar2 + -0xffff" identifier < (binary_expression "iVar2 + -0xffff" identifier + number_literal))) ))) )) (compound_statement "{\n          piVar5[2] = param_4;\n          iVar8 = (param_4 - iVar8) + 0x1ffff >> 0x10;\n        }" { (expression_statement "piVar5[2] = param_4;" (assignment_expression "piVar5[2] = param_4" (subscript_expression "piVar5[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar8 = (param_4 - iVar8) + 0x1ffff >> 0x10;" (assignment_expression "iVar8 = (param_4 - iVar8) + 0x1ffff >> 0x10" identifier = (binary_expression "(param_4 - iVar8) + 0x1ffff >> 0x10" (binary_expression "(param_4 - iVar8) + 0x1ffff" (parenthesized_expression "(param_4 - iVar8)" ( (binary_expression "param_4 - iVar8" identifier - identifier) )) + number_literal) >> number_literal)) ;) }) (else_clause "else {\n          iVar3 = piVar4[2];\n          piVar5[2] = iVar3;\n          iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10);\n          *piVar5 = *piVar4;\n          iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10;\n        }" else (compound_statement "{\n          iVar3 = piVar4[2];\n          piVar5[2] = iVar3;\n          iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10);\n          *piVar5 = *piVar4;\n          iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10;\n        }" { (expression_statement "iVar3 = piVar4[2];" (assignment_expression "iVar3 = piVar4[2]" identifier = (subscript_expression "piVar4[2]" identifier [ number_literal ])) ;) (expression_statement "piVar5[2] = iVar3;" (assignment_expression "piVar5[2] = iVar3" (subscript_expression "piVar5[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10);" (assignment_expression "iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10)" identifier = (binary_expression "iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10)" identifier + (parenthesized_expression "((iVar3 - iVar2) + 0x1ffff >> 0x10)" ( (binary_expression "(iVar3 - iVar2) + 0x1ffff >> 0x10" (binary_expression "(iVar3 - iVar2) + 0x1ffff" (parenthesized_expression "(iVar3 - iVar2)" ( (binary_expression "iVar3 - iVar2" identifier - identifier) )) + number_literal) >> number_literal) )))) ;) (expression_statement "*piVar5 = *piVar4;" (assignment_expression "*piVar5 = *piVar4" (pointer_expression "*piVar5" * identifier) = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10;" (assignment_expression "iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10" identifier = (binary_expression "(iVar3 - iVar8) + 0x1ffff >> 0x10" (binary_expression "(iVar3 - iVar8) + 0x1ffff" (parenthesized_expression "(iVar3 - iVar8)" ( (binary_expression "iVar3 - iVar8" identifier - identifier) )) + number_literal) >> number_literal)) ;) }))) }))) (if_statement "if (iVar7 == iVar8) {\n        return;\n      }" if (parenthesized_expression "(iVar7 == iVar8)" ( (binary_expression "iVar7 == iVar8" identifier == identifier) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "*(int *)(param_1 + 4) = *(int *)(param_1 + 4) + (iVar8 - iVar7);" (assignment_expression "*(int *)(param_1 + 4) = *(int *)(param_1 + 4) + (iVar8 - iVar7)" (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" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 4) + (iVar8 - iVar7)" (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" identifier + number_literal) )))) + (parenthesized_expression "(iVar8 - iVar7)" ( (binary_expression "iVar8 - iVar7" identifier - identifier) )))) ;) (expression_statement "local_40[1] = local_40[1] + (iVar8 - iVar7);" (assignment_expression "local_40[1] = local_40[1] + (iVar8 - iVar7)" (subscript_expression "local_40[1]" identifier [ number_literal ]) = (binary_expression "local_40[1] + (iVar8 - iVar7)" (subscript_expression "local_40[1]" identifier [ number_literal ]) + (parenthesized_expression "(iVar8 - iVar7)" ( (binary_expression "iVar8 - iVar7" identifier - identifier) )))) ;) (return_statement "return;" return ;) })) })) (labeled_statement "LAB_0017f425:\n  piVar5 = (int *)FUN_003ac4d0(0xc);" statement_identifier : (expression_statement "piVar5 = (int *)FUN_003ac4d0(0xc);" (assignment_expression "piVar5 = (int *)FUN_003ac4d0(0xc)" identifier = (cast_expression "(int *)FUN_003ac4d0(0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_003ac4d0(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;)) (expression_statement "*piVar5 = 0;" (assignment_expression "*piVar5 = 0" (pointer_expression "*piVar5" * identifier) = number_literal) ;) (expression_statement "iVar8 = *piVar4;" (assignment_expression "iVar8 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "piVar5[1] = param_4;" (assignment_expression "piVar5[1] = param_4" (subscript_expression "piVar5[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*piVar5 = iVar8;" (assignment_expression "*piVar5 = iVar8" (pointer_expression "*piVar5" * identifier) = identifier) ;) (expression_statement "piVar5[2] = param_4;" (assignment_expression "piVar5[2] = param_4" (subscript_expression "piVar5[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*piVar4 = (int)piVar5;" (assignment_expression "*piVar4 = (int)piVar5" (pointer_expression "*piVar4" * identifier) = (cast_expression "(int)piVar5" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;" (assignment_expression "*(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1" (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" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 4) + 1" (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" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "local_40[1] = local_40[1] + 1;" (assignment_expression "local_40[1] = local_40[1] + 1" (subscript_expression "local_40[1]" identifier [ number_literal ]) = (binary_expression "local_40[1] + 1" (subscript_expression "local_40[1]" identifier [ number_literal ]) + number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* DWARF original prototype: void record_got_page_entry(Mips_got_info<64,_false> * this,\n   Mips_relobj<64,_false> * object, uint symndx, int addend) */\n\nvoid __thiscall\nanon_unknown.dwarf_d7d43e::Mips_got_info<64,_false>::record_got_page_entry\n          (Mips_got_info<64,_false> *this,Mips_relobj<64,_false> *object,uint symndx,int addend)\n\n{\n  Got_page_entry *entry;\n  \n}\n\n" comment comment (declaration "void __thiscall\nanon_unknown.dwarf_d7d43e::Mips_got_info<64,_false>::record_got_page_entry\n          (Mips_got_info<64,_false> *this,Mips_relobj<64,_false> *object,uint symndx,int addend)\n\n{\n  Got_page_entry *entry;" primitive_type (ms_call_modifier "__thiscall" __thiscall) (ERROR "anon_unknown.dwarf_d7d43e::" identifier . identifier : :) identifier (ERROR "<64" < number_literal) , (ERROR "_false>::record_got_page_entry\n          (Mips_got_info<64,_false> *this,Mips_relobj<64,_false> *object,uint symndx,int addend)\n\n{\n  Got_page_entry" identifier > : : (function_declarator "record_got_page_entry\n          (Mips_got_info<64,_false> *this,Mips_relobj<64,_false> *object,uint symndx,int addend)" identifier (parameter_list "(Mips_got_info<64,_false> *this,Mips_relobj<64,_false> *object,uint symndx,int addend)" ( (parameter_declaration "Mips_got_info" type_identifier) (ERROR "<64" < number_literal) , (parameter_declaration "_false> *this" type_identifier (ERROR ">" >) (pointer_declarator "*this" * identifier)) , (parameter_declaration "Mips_relobj" type_identifier) (ERROR "<64" < number_literal) , (parameter_declaration "_false> *object" type_identifier (ERROR ">" >) (pointer_declarator "*object" * identifier)) , (parameter_declaration "uint symndx" type_identifier identifier) , (parameter_declaration "int addend" primitive_type identifier) ))) { identifier) (pointer_declarator "*entry" * identifier) ;) (ERROR "}" }))
(translation_unit "void __regparm3 FUN_0017f380(int param_1,int param_2,int param_3,int param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int *piVar5;\n  uint uVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 *local_40;\n  int local_30;\n  \n  piVar4 = (int *)FUN_003ac4d0(0xc);\n  *piVar4 = param_2;\n  piVar4[1] = param_3;\n  piVar4[2] = 0;\n  FUN_0016f8a0();\n  if (local_30 == 0) {\n    FUN_00177cc0();\n    local_40 = *(undefined4 **)(param_2 + 0x1ec);\n  }\n  else {\n    piVar4 = *(int **)(local_30 + 4);\n    local_40 = *(undefined4 **)(param_2 + 0x1ec);\n  }\n  if (local_40 == (undefined4 *)0x0) {\n    local_40 = (undefined4 *)FUN_003ac4d0(0x9c);\n    *local_40 = 0;\n    local_40[1] = 0;\n    local_40[2] = 0;\n    local_40[3] = 0;\n    local_40[4] = 0;\n    local_40[5] = 0xffffffff;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x18) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    local_40[7] = 1;\n    local_40[8] = 0;\n    local_40[9] = 0;\n    local_40[10] = 0x3f800000;\n    local_40[0xb] = 0;\n    local_40[0xc] = 0;\n    local_40[6] = local_40 + 0xc;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x34) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    local_40[0xe] = 1;\n    local_40[0xf] = 0;\n    local_40[0x10] = 0;\n    local_40[0x11] = 0x3f800000;\n    local_40[0x12] = 0;\n    local_40[0x13] = 0;\n    local_40[0xd] = local_40 + 0x13;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x50) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    local_40[0x15] = 1;\n    local_40[0x16] = 0;\n    local_40[0x17] = 0;\n    local_40[0x18] = 0x3f800000;\n    local_40[0x19] = 0;\n    local_40[0x1a] = 0;\n    local_40[0x1b] = 0;\n    local_40[0x1c] = 0;\n    local_40[0x14] = local_40 + 0x1a;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x74) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    *(undefined4 **)(param_2 + 0x1ec) = local_40;\n    local_40[0x1d] = local_40 + 0x23;\n    local_40[0x1e] = 1;\n    local_40[0x1f] = 0;\n    local_40[0x20] = 0;\n    local_40[0x21] = 0x3f800000;\n    local_40[0x22] = 0;\n    local_40[0x23] = 0;\n    local_40[0x24] = 0;\n    local_40[0x25] = 0xffffffff;\n    local_40[0x26] = 0;\n  }\n  piVar5 = (int *)piVar4[2];\n  piVar4 = piVar4 + 2;\n  if (piVar5 != (int *)0x0) {\n    iVar8 = piVar5[2];\n    while (iVar8 + 0xffff < param_4) {\n      piVar1 = (int *)*piVar5;\n      piVar4 = piVar5;\n      if (piVar1 == (int *)0x0) goto LAB_0017f425;\n      piVar5 = piVar1;\n      iVar8 = piVar1[2];\n    }\n    iVar8 = piVar5[1];\n    if (iVar8 + -0xffff <= param_4) {\n      iVar2 = piVar5[2];\n      iVar7 = (iVar2 - iVar8) + 0x1ffff >> 0x10;\n      if (param_4 < iVar8) {\n        piVar5[1] = param_4;\n        iVar8 = (iVar2 - param_4) + 0x1ffff >> 0x10;\n      }\n      else {\n        if (param_4 <= iVar2) {\n          return;\n        }\n        piVar4 = (int *)*piVar5;\n        if ((piVar4 == (int *)0x0) || (iVar2 = piVar4[1], param_4 < iVar2 + -0xffff)) {\n          piVar5[2] = param_4;\n          iVar8 = (param_4 - iVar8) + 0x1ffff >> 0x10;\n        }\n        else {\n          iVar3 = piVar4[2];\n          piVar5[2] = iVar3;\n          iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10);\n          *piVar5 = *piVar4;\n          iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10;\n        }\n      }\n      if (iVar7 == iVar8) {\n        return;\n      }\n      *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + (iVar8 - iVar7);\n      local_40[1] = local_40[1] + (iVar8 - iVar7);\n      return;\n    }\n  }\nLAB_0017f425:\n  piVar5 = (int *)FUN_003ac4d0(0xc);\n  *piVar5 = 0;\n  iVar8 = *piVar4;\n  piVar5[1] = param_4;\n  *piVar5 = iVar8;\n  piVar5[2] = param_4;\n  *piVar4 = (int)piVar5;\n  *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n  local_40[1] = local_40[1] + 1;\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_0017f380(int param_1,int param_2,int param_3,int param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int *piVar5;\n  uint uVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 *local_40;\n  int local_30;\n  \n  piVar4 = (int *)FUN_003ac4d0(0xc);\n  *piVar4 = param_2;\n  piVar4[1] = param_3;\n  piVar4[2] = 0;\n  FUN_0016f8a0();\n  if (local_30 == 0) {\n    FUN_00177cc0();\n    local_40 = *(undefined4 **)(param_2 + 0x1ec);\n  }\n  else {\n    piVar4 = *(int **)(local_30 + 4);\n    local_40 = *(undefined4 **)(param_2 + 0x1ec);\n  }\n  if (local_40 == (undefined4 *)0x0) {\n    local_40 = (undefined4 *)FUN_003ac4d0(0x9c);\n    *local_40 = 0;\n    local_40[1] = 0;\n    local_40[2] = 0;\n    local_40[3] = 0;\n    local_40[4] = 0;\n    local_40[5] = 0xffffffff;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x18) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    local_40[7] = 1;\n    local_40[8] = 0;\n    local_40[9] = 0;\n    local_40[10] = 0x3f800000;\n    local_40[0xb] = 0;\n    local_40[0xc] = 0;\n    local_40[6] = local_40 + 0xc;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x34) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    local_40[0xe] = 1;\n    local_40[0xf] = 0;\n    local_40[0x10] = 0;\n    local_40[0x11] = 0x3f800000;\n    local_40[0x12] = 0;\n    local_40[0x13] = 0;\n    local_40[0xd] = local_40 + 0x13;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x50) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    local_40[0x15] = 1;\n    local_40[0x16] = 0;\n    local_40[0x17] = 0;\n    local_40[0x18] = 0x3f800000;\n    local_40[0x19] = 0;\n    local_40[0x1a] = 0;\n    local_40[0x1b] = 0;\n    local_40[0x1c] = 0;\n    local_40[0x14] = local_40 + 0x1a;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x74) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    *(undefined4 **)(param_2 + 0x1ec) = local_40;\n    local_40[0x1d] = local_40 + 0x23;\n    local_40[0x1e] = 1;\n    local_40[0x1f] = 0;\n    local_40[0x20] = 0;\n    local_40[0x21] = 0x3f800000;\n    local_40[0x22] = 0;\n    local_40[0x23] = 0;\n    local_40[0x24] = 0;\n    local_40[0x25] = 0xffffffff;\n    local_40[0x26] = 0;\n  }\n  piVar5 = (int *)piVar4[2];\n  piVar4 = piVar4 + 2;\n  if (piVar5 != (int *)0x0) {\n    iVar8 = piVar5[2];\n    while (iVar8 + 0xffff < param_4) {\n      piVar1 = (int *)*piVar5;\n      piVar4 = piVar5;\n      if (piVar1 == (int *)0x0) goto LAB_0017f425;\n      piVar5 = piVar1;\n      iVar8 = piVar1[2];\n    }\n    iVar8 = piVar5[1];\n    if (iVar8 + -0xffff <= param_4) {\n      iVar2 = piVar5[2];\n      iVar7 = (iVar2 - iVar8) + 0x1ffff >> 0x10;\n      if (param_4 < iVar8) {\n        piVar5[1] = param_4;\n        iVar8 = (iVar2 - param_4) + 0x1ffff >> 0x10;\n      }\n      else {\n        if (param_4 <= iVar2) {\n          return;\n        }\n        piVar4 = (int *)*piVar5;\n        if ((piVar4 == (int *)0x0) || (iVar2 = piVar4[1], param_4 < iVar2 + -0xffff)) {\n          piVar5[2] = param_4;\n          iVar8 = (param_4 - iVar8) + 0x1ffff >> 0x10;\n        }\n        else {\n          iVar3 = piVar4[2];\n          piVar5[2] = iVar3;\n          iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10);\n          *piVar5 = *piVar4;\n          iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10;\n        }\n      }\n      if (iVar7 == iVar8) {\n        return;\n      }\n      *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + (iVar8 - iVar7);\n      local_40[1] = local_40[1] + (iVar8 - iVar7);\n      return;\n    }\n  }\nLAB_0017f425:\n  piVar5 = (int *)FUN_003ac4d0(0xc);\n  *piVar5 = 0;\n  iVar8 = *piVar4;\n  piVar5[1] = param_4;\n  *piVar5 = iVar8;\n  piVar5[2] = param_4;\n  *piVar4 = (int)piVar5;\n  *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n  local_40[1] = local_40[1] + 1;\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0017f380(int param_1,int param_2,int param_3,int param_4)" identifier (parameter_list "(int param_1,int param_2,int param_3,int param_4)" ( (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) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int *piVar5;\n  uint uVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 *local_40;\n  int local_30;\n  \n  piVar4 = (int *)FUN_003ac4d0(0xc);\n  *piVar4 = param_2;\n  piVar4[1] = param_3;\n  piVar4[2] = 0;\n  FUN_0016f8a0();\n  if (local_30 == 0) {\n    FUN_00177cc0();\n    local_40 = *(undefined4 **)(param_2 + 0x1ec);\n  }\n  else {\n    piVar4 = *(int **)(local_30 + 4);\n    local_40 = *(undefined4 **)(param_2 + 0x1ec);\n  }\n  if (local_40 == (undefined4 *)0x0) {\n    local_40 = (undefined4 *)FUN_003ac4d0(0x9c);\n    *local_40 = 0;\n    local_40[1] = 0;\n    local_40[2] = 0;\n    local_40[3] = 0;\n    local_40[4] = 0;\n    local_40[5] = 0xffffffff;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x18) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    local_40[7] = 1;\n    local_40[8] = 0;\n    local_40[9] = 0;\n    local_40[10] = 0x3f800000;\n    local_40[0xb] = 0;\n    local_40[0xc] = 0;\n    local_40[6] = local_40 + 0xc;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x34) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    local_40[0xe] = 1;\n    local_40[0xf] = 0;\n    local_40[0x10] = 0;\n    local_40[0x11] = 0x3f800000;\n    local_40[0x12] = 0;\n    local_40[0x13] = 0;\n    local_40[0xd] = local_40 + 0x13;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x50) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    local_40[0x15] = 1;\n    local_40[0x16] = 0;\n    local_40[0x17] = 0;\n    local_40[0x18] = 0x3f800000;\n    local_40[0x19] = 0;\n    local_40[0x1a] = 0;\n    local_40[0x1b] = 0;\n    local_40[0x1c] = 0;\n    local_40[0x14] = local_40 + 0x1a;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x74) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    *(undefined4 **)(param_2 + 0x1ec) = local_40;\n    local_40[0x1d] = local_40 + 0x23;\n    local_40[0x1e] = 1;\n    local_40[0x1f] = 0;\n    local_40[0x20] = 0;\n    local_40[0x21] = 0x3f800000;\n    local_40[0x22] = 0;\n    local_40[0x23] = 0;\n    local_40[0x24] = 0;\n    local_40[0x25] = 0xffffffff;\n    local_40[0x26] = 0;\n  }\n  piVar5 = (int *)piVar4[2];\n  piVar4 = piVar4 + 2;\n  if (piVar5 != (int *)0x0) {\n    iVar8 = piVar5[2];\n    while (iVar8 + 0xffff < param_4) {\n      piVar1 = (int *)*piVar5;\n      piVar4 = piVar5;\n      if (piVar1 == (int *)0x0) goto LAB_0017f425;\n      piVar5 = piVar1;\n      iVar8 = piVar1[2];\n    }\n    iVar8 = piVar5[1];\n    if (iVar8 + -0xffff <= param_4) {\n      iVar2 = piVar5[2];\n      iVar7 = (iVar2 - iVar8) + 0x1ffff >> 0x10;\n      if (param_4 < iVar8) {\n        piVar5[1] = param_4;\n        iVar8 = (iVar2 - param_4) + 0x1ffff >> 0x10;\n      }\n      else {\n        if (param_4 <= iVar2) {\n          return;\n        }\n        piVar4 = (int *)*piVar5;\n        if ((piVar4 == (int *)0x0) || (iVar2 = piVar4[1], param_4 < iVar2 + -0xffff)) {\n          piVar5[2] = param_4;\n          iVar8 = (param_4 - iVar8) + 0x1ffff >> 0x10;\n        }\n        else {\n          iVar3 = piVar4[2];\n          piVar5[2] = iVar3;\n          iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10);\n          *piVar5 = *piVar4;\n          iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10;\n        }\n      }\n      if (iVar7 == iVar8) {\n        return;\n      }\n      *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + (iVar8 - iVar7);\n      local_40[1] = local_40[1] + (iVar8 - iVar7);\n      return;\n    }\n  }\nLAB_0017f425:\n  piVar5 = (int *)FUN_003ac4d0(0xc);\n  *piVar5 = 0;\n  iVar8 = *piVar4;\n  piVar5[1] = param_4;\n  *piVar5 = iVar8;\n  piVar5[2] = param_4;\n  *piVar4 = (int)piVar5;\n  *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n  local_40[1] = local_40[1] + 1;\n  return;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "undefined4 *local_40;" type_identifier (pointer_declarator "*local_40" * identifier) ;) (declaration "int local_30;" primitive_type identifier ;) (expression_statement "piVar4 = (int *)FUN_003ac4d0(0xc);" (assignment_expression "piVar4 = (int *)FUN_003ac4d0(0xc)" identifier = (cast_expression "(int *)FUN_003ac4d0(0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_003ac4d0(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;) (expression_statement "*piVar4 = param_2;" (assignment_expression "*piVar4 = param_2" (pointer_expression "*piVar4" * identifier) = identifier) ;) (expression_statement "piVar4[1] = param_3;" (assignment_expression "piVar4[1] = param_3" (subscript_expression "piVar4[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar4[2] = 0;" (assignment_expression "piVar4[2] = 0" (subscript_expression "piVar4[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "FUN_0016f8a0();" (call_expression "FUN_0016f8a0()" identifier (argument_list "()" ( ))) ;) (if_statement "if (local_30 == 0) {\n    FUN_00177cc0();\n    local_40 = *(undefined4 **)(param_2 + 0x1ec);\n  }\n  else {\n    piVar4 = *(int **)(local_30 + 4);\n    local_40 = *(undefined4 **)(param_2 + 0x1ec);\n  }" if (parenthesized_expression "(local_30 == 0)" ( (binary_expression "local_30 == 0" identifier == number_literal) )) (compound_statement "{\n    FUN_00177cc0();\n    local_40 = *(undefined4 **)(param_2 + 0x1ec);\n  }" { (expression_statement "FUN_00177cc0();" (call_expression "FUN_00177cc0()" identifier (argument_list "()" ( ))) ;) (expression_statement "local_40 = *(undefined4 **)(param_2 + 0x1ec);" (assignment_expression "local_40 = *(undefined4 **)(param_2 + 0x1ec)" identifier = (pointer_expression "*(undefined4 **)(param_2 + 0x1ec)" * (cast_expression "(undefined4 **)(param_2 + 0x1ec)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x1ec)" ( (binary_expression "param_2 + 0x1ec" identifier + number_literal) ))))) ;) }) (else_clause "else {\n    piVar4 = *(int **)(local_30 + 4);\n    local_40 = *(undefined4 **)(param_2 + 0x1ec);\n  }" else (compound_statement "{\n    piVar4 = *(int **)(local_30 + 4);\n    local_40 = *(undefined4 **)(param_2 + 0x1ec);\n  }" { (expression_statement "piVar4 = *(int **)(local_30 + 4);" (assignment_expression "piVar4 = *(int **)(local_30 + 4)" identifier = (pointer_expression "*(int **)(local_30 + 4)" * (cast_expression "(int **)(local_30 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(local_30 + 4)" ( (binary_expression "local_30 + 4" identifier + number_literal) ))))) ;) (expression_statement "local_40 = *(undefined4 **)(param_2 + 0x1ec);" (assignment_expression "local_40 = *(undefined4 **)(param_2 + 0x1ec)" identifier = (pointer_expression "*(undefined4 **)(param_2 + 0x1ec)" * (cast_expression "(undefined4 **)(param_2 + 0x1ec)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x1ec)" ( (binary_expression "param_2 + 0x1ec" identifier + number_literal) ))))) ;) }))) (if_statement "if (local_40 == (undefined4 *)0x0) {\n    local_40 = (undefined4 *)FUN_003ac4d0(0x9c);\n    *local_40 = 0;\n    local_40[1] = 0;\n    local_40[2] = 0;\n    local_40[3] = 0;\n    local_40[4] = 0;\n    local_40[5] = 0xffffffff;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x18) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    local_40[7] = 1;\n    local_40[8] = 0;\n    local_40[9] = 0;\n    local_40[10] = 0x3f800000;\n    local_40[0xb] = 0;\n    local_40[0xc] = 0;\n    local_40[6] = local_40 + 0xc;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x34) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    local_40[0xe] = 1;\n    local_40[0xf] = 0;\n    local_40[0x10] = 0;\n    local_40[0x11] = 0x3f800000;\n    local_40[0x12] = 0;\n    local_40[0x13] = 0;\n    local_40[0xd] = local_40 + 0x13;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x50) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    local_40[0x15] = 1;\n    local_40[0x16] = 0;\n    local_40[0x17] = 0;\n    local_40[0x18] = 0x3f800000;\n    local_40[0x19] = 0;\n    local_40[0x1a] = 0;\n    local_40[0x1b] = 0;\n    local_40[0x1c] = 0;\n    local_40[0x14] = local_40 + 0x1a;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x74) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    *(undefined4 **)(param_2 + 0x1ec) = local_40;\n    local_40[0x1d] = local_40 + 0x23;\n    local_40[0x1e] = 1;\n    local_40[0x1f] = 0;\n    local_40[0x20] = 0;\n    local_40[0x21] = 0x3f800000;\n    local_40[0x22] = 0;\n    local_40[0x23] = 0;\n    local_40[0x24] = 0;\n    local_40[0x25] = 0xffffffff;\n    local_40[0x26] = 0;\n  }" if (parenthesized_expression "(local_40 == (undefined4 *)0x0)" ( (binary_expression "local_40 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    local_40 = (undefined4 *)FUN_003ac4d0(0x9c);\n    *local_40 = 0;\n    local_40[1] = 0;\n    local_40[2] = 0;\n    local_40[3] = 0;\n    local_40[4] = 0;\n    local_40[5] = 0xffffffff;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x18) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    local_40[7] = 1;\n    local_40[8] = 0;\n    local_40[9] = 0;\n    local_40[10] = 0x3f800000;\n    local_40[0xb] = 0;\n    local_40[0xc] = 0;\n    local_40[6] = local_40 + 0xc;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x34) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    local_40[0xe] = 1;\n    local_40[0xf] = 0;\n    local_40[0x10] = 0;\n    local_40[0x11] = 0x3f800000;\n    local_40[0x12] = 0;\n    local_40[0x13] = 0;\n    local_40[0xd] = local_40 + 0x13;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x50) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    local_40[0x15] = 1;\n    local_40[0x16] = 0;\n    local_40[0x17] = 0;\n    local_40[0x18] = 0x3f800000;\n    local_40[0x19] = 0;\n    local_40[0x1a] = 0;\n    local_40[0x1b] = 0;\n    local_40[0x1c] = 0;\n    local_40[0x14] = local_40 + 0x1a;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x74) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    *(undefined4 **)(param_2 + 0x1ec) = local_40;\n    local_40[0x1d] = local_40 + 0x23;\n    local_40[0x1e] = 1;\n    local_40[0x1f] = 0;\n    local_40[0x20] = 0;\n    local_40[0x21] = 0x3f800000;\n    local_40[0x22] = 0;\n    local_40[0x23] = 0;\n    local_40[0x24] = 0;\n    local_40[0x25] = 0xffffffff;\n    local_40[0x26] = 0;\n  }" { (expression_statement "local_40 = (undefined4 *)FUN_003ac4d0(0x9c);" (assignment_expression "local_40 = (undefined4 *)FUN_003ac4d0(0x9c)" identifier = (cast_expression "(undefined4 *)FUN_003ac4d0(0x9c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_003ac4d0(0x9c)" identifier (argument_list "(0x9c)" ( number_literal ))))) ;) (expression_statement "*local_40 = 0;" (assignment_expression "*local_40 = 0" (pointer_expression "*local_40" * identifier) = number_literal) ;) (expression_statement "local_40[1] = 0;" (assignment_expression "local_40[1] = 0" (subscript_expression "local_40[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[2] = 0;" (assignment_expression "local_40[2] = 0" (subscript_expression "local_40[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[3] = 0;" (assignment_expression "local_40[3] = 0" (subscript_expression "local_40[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[4] = 0;" (assignment_expression "local_40[4] = 0" (subscript_expression "local_40[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[5] = 0xffffffff;" (assignment_expression "local_40[5] = 0xffffffff" (subscript_expression "local_40[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x18) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);" do (compound_statement "{\n      *(undefined4 *)((int)local_40 + uVar6 + 0x18) = 0;\n      uVar6 = uVar6 + 4;\n    }" { (expression_statement "*(undefined4 *)((int)local_40 + uVar6 + 0x18) = 0;" (assignment_expression "*(undefined4 *)((int)local_40 + uVar6 + 0x18) = 0" (pointer_expression "*(undefined4 *)((int)local_40 + uVar6 + 0x18)" * (cast_expression "(undefined4 *)((int)local_40 + uVar6 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_40 + uVar6 + 0x18)" ( (binary_expression "(int)local_40 + uVar6 + 0x18" (binary_expression "(int)local_40 + uVar6" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) (expression_statement "uVar6 = uVar6 + 4;" (assignment_expression "uVar6 = uVar6 + 4" identifier = (binary_expression "uVar6 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar6 < 0x1c)" ( (binary_expression "uVar6 < 0x1c" identifier < number_literal) )) ;) (expression_statement "local_40[7] = 1;" (assignment_expression "local_40[7] = 1" (subscript_expression "local_40[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[8] = 0;" (assignment_expression "local_40[8] = 0" (subscript_expression "local_40[8]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[9] = 0;" (assignment_expression "local_40[9] = 0" (subscript_expression "local_40[9]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[10] = 0x3f800000;" (assignment_expression "local_40[10] = 0x3f800000" (subscript_expression "local_40[10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0xb] = 0;" (assignment_expression "local_40[0xb] = 0" (subscript_expression "local_40[0xb]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0xc] = 0;" (assignment_expression "local_40[0xc] = 0" (subscript_expression "local_40[0xc]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[6] = local_40 + 0xc;" (assignment_expression "local_40[6] = local_40 + 0xc" (subscript_expression "local_40[6]" identifier [ number_literal ]) = (binary_expression "local_40 + 0xc" identifier + number_literal)) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x34) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);" do (compound_statement "{\n      *(undefined4 *)((int)local_40 + uVar6 + 0x34) = 0;\n      uVar6 = uVar6 + 4;\n    }" { (expression_statement "*(undefined4 *)((int)local_40 + uVar6 + 0x34) = 0;" (assignment_expression "*(undefined4 *)((int)local_40 + uVar6 + 0x34) = 0" (pointer_expression "*(undefined4 *)((int)local_40 + uVar6 + 0x34)" * (cast_expression "(undefined4 *)((int)local_40 + uVar6 + 0x34)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_40 + uVar6 + 0x34)" ( (binary_expression "(int)local_40 + uVar6 + 0x34" (binary_expression "(int)local_40 + uVar6" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) (expression_statement "uVar6 = uVar6 + 4;" (assignment_expression "uVar6 = uVar6 + 4" identifier = (binary_expression "uVar6 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar6 < 0x1c)" ( (binary_expression "uVar6 < 0x1c" identifier < number_literal) )) ;) (expression_statement "local_40[0xe] = 1;" (assignment_expression "local_40[0xe] = 1" (subscript_expression "local_40[0xe]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0xf] = 0;" (assignment_expression "local_40[0xf] = 0" (subscript_expression "local_40[0xf]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0x10] = 0;" (assignment_expression "local_40[0x10] = 0" (subscript_expression "local_40[0x10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0x11] = 0x3f800000;" (assignment_expression "local_40[0x11] = 0x3f800000" (subscript_expression "local_40[0x11]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0x12] = 0;" (assignment_expression "local_40[0x12] = 0" (subscript_expression "local_40[0x12]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0x13] = 0;" (assignment_expression "local_40[0x13] = 0" (subscript_expression "local_40[0x13]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0xd] = local_40 + 0x13;" (assignment_expression "local_40[0xd] = local_40 + 0x13" (subscript_expression "local_40[0xd]" identifier [ number_literal ]) = (binary_expression "local_40 + 0x13" identifier + number_literal)) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x50) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);" do (compound_statement "{\n      *(undefined4 *)((int)local_40 + uVar6 + 0x50) = 0;\n      uVar6 = uVar6 + 4;\n    }" { (expression_statement "*(undefined4 *)((int)local_40 + uVar6 + 0x50) = 0;" (assignment_expression "*(undefined4 *)((int)local_40 + uVar6 + 0x50) = 0" (pointer_expression "*(undefined4 *)((int)local_40 + uVar6 + 0x50)" * (cast_expression "(undefined4 *)((int)local_40 + uVar6 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_40 + uVar6 + 0x50)" ( (binary_expression "(int)local_40 + uVar6 + 0x50" (binary_expression "(int)local_40 + uVar6" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) (expression_statement "uVar6 = uVar6 + 4;" (assignment_expression "uVar6 = uVar6 + 4" identifier = (binary_expression "uVar6 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar6 < 0x1c)" ( (binary_expression "uVar6 < 0x1c" identifier < number_literal) )) ;) (expression_statement "local_40[0x15] = 1;" (assignment_expression "local_40[0x15] = 1" (subscript_expression "local_40[0x15]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0x16] = 0;" (assignment_expression "local_40[0x16] = 0" (subscript_expression "local_40[0x16]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0x17] = 0;" (assignment_expression "local_40[0x17] = 0" (subscript_expression "local_40[0x17]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0x18] = 0x3f800000;" (assignment_expression "local_40[0x18] = 0x3f800000" (subscript_expression "local_40[0x18]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0x19] = 0;" (assignment_expression "local_40[0x19] = 0" (subscript_expression "local_40[0x19]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0x1a] = 0;" (assignment_expression "local_40[0x1a] = 0" (subscript_expression "local_40[0x1a]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0x1b] = 0;" (assignment_expression "local_40[0x1b] = 0" (subscript_expression "local_40[0x1b]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0x1c] = 0;" (assignment_expression "local_40[0x1c] = 0" (subscript_expression "local_40[0x1c]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0x14] = local_40 + 0x1a;" (assignment_expression "local_40[0x14] = local_40 + 0x1a" (subscript_expression "local_40[0x14]" identifier [ number_literal ]) = (binary_expression "local_40 + 0x1a" identifier + number_literal)) ;) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (do_statement "do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x74) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);" do (compound_statement "{\n      *(undefined4 *)((int)local_40 + uVar6 + 0x74) = 0;\n      uVar6 = uVar6 + 4;\n    }" { (expression_statement "*(undefined4 *)((int)local_40 + uVar6 + 0x74) = 0;" (assignment_expression "*(undefined4 *)((int)local_40 + uVar6 + 0x74) = 0" (pointer_expression "*(undefined4 *)((int)local_40 + uVar6 + 0x74)" * (cast_expression "(undefined4 *)((int)local_40 + uVar6 + 0x74)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_40 + uVar6 + 0x74)" ( (binary_expression "(int)local_40 + uVar6 + 0x74" (binary_expression "(int)local_40 + uVar6" (cast_expression "(int)local_40" ( (type_descriptor "int" primitive_type) ) identifier) + identifier) + number_literal) )))) = number_literal) ;) (expression_statement "uVar6 = uVar6 + 4;" (assignment_expression "uVar6 = uVar6 + 4" identifier = (binary_expression "uVar6 + 4" identifier + number_literal)) ;) }) while (parenthesized_expression "(uVar6 < 0x1c)" ( (binary_expression "uVar6 < 0x1c" identifier < number_literal) )) ;) (expression_statement "*(undefined4 **)(param_2 + 0x1ec) = local_40;" (assignment_expression "*(undefined4 **)(param_2 + 0x1ec) = local_40" (pointer_expression "*(undefined4 **)(param_2 + 0x1ec)" * (cast_expression "(undefined4 **)(param_2 + 0x1ec)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x1ec)" ( (binary_expression "param_2 + 0x1ec" identifier + number_literal) )))) = identifier) ;) (expression_statement "local_40[0x1d] = local_40 + 0x23;" (assignment_expression "local_40[0x1d] = local_40 + 0x23" (subscript_expression "local_40[0x1d]" identifier [ number_literal ]) = (binary_expression "local_40 + 0x23" identifier + number_literal)) ;) (expression_statement "local_40[0x1e] = 1;" (assignment_expression "local_40[0x1e] = 1" (subscript_expression "local_40[0x1e]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0x1f] = 0;" (assignment_expression "local_40[0x1f] = 0" (subscript_expression "local_40[0x1f]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0x20] = 0;" (assignment_expression "local_40[0x20] = 0" (subscript_expression "local_40[0x20]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0x21] = 0x3f800000;" (assignment_expression "local_40[0x21] = 0x3f800000" (subscript_expression "local_40[0x21]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0x22] = 0;" (assignment_expression "local_40[0x22] = 0" (subscript_expression "local_40[0x22]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0x23] = 0;" (assignment_expression "local_40[0x23] = 0" (subscript_expression "local_40[0x23]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0x24] = 0;" (assignment_expression "local_40[0x24] = 0" (subscript_expression "local_40[0x24]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0x25] = 0xffffffff;" (assignment_expression "local_40[0x25] = 0xffffffff" (subscript_expression "local_40[0x25]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "local_40[0x26] = 0;" (assignment_expression "local_40[0x26] = 0" (subscript_expression "local_40[0x26]" identifier [ number_literal ]) = number_literal) ;) })) (expression_statement "piVar5 = (int *)piVar4[2];" (assignment_expression "piVar5 = (int *)piVar4[2]" identifier = (cast_expression "(int *)piVar4[2]" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar4[2]" identifier [ number_literal ]))) ;) (expression_statement "piVar4 = piVar4 + 2;" (assignment_expression "piVar4 = piVar4 + 2" identifier = (binary_expression "piVar4 + 2" identifier + number_literal)) ;) (if_statement "if (piVar5 != (int *)0x0) {\n    iVar8 = piVar5[2];\n    while (iVar8 + 0xffff < param_4) {\n      piVar1 = (int *)*piVar5;\n      piVar4 = piVar5;\n      if (piVar1 == (int *)0x0) goto LAB_0017f425;\n      piVar5 = piVar1;\n      iVar8 = piVar1[2];\n    }\n    iVar8 = piVar5[1];\n    if (iVar8 + -0xffff <= param_4) {\n      iVar2 = piVar5[2];\n      iVar7 = (iVar2 - iVar8) + 0x1ffff >> 0x10;\n      if (param_4 < iVar8) {\n        piVar5[1] = param_4;\n        iVar8 = (iVar2 - param_4) + 0x1ffff >> 0x10;\n      }\n      else {\n        if (param_4 <= iVar2) {\n          return;\n        }\n        piVar4 = (int *)*piVar5;\n        if ((piVar4 == (int *)0x0) || (iVar2 = piVar4[1], param_4 < iVar2 + -0xffff)) {\n          piVar5[2] = param_4;\n          iVar8 = (param_4 - iVar8) + 0x1ffff >> 0x10;\n        }\n        else {\n          iVar3 = piVar4[2];\n          piVar5[2] = iVar3;\n          iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10);\n          *piVar5 = *piVar4;\n          iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10;\n        }\n      }\n      if (iVar7 == iVar8) {\n        return;\n      }\n      *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + (iVar8 - iVar7);\n      local_40[1] = local_40[1] + (iVar8 - iVar7);\n      return;\n    }\n  }" if (parenthesized_expression "(piVar5 != (int *)0x0)" ( (binary_expression "piVar5 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar8 = piVar5[2];\n    while (iVar8 + 0xffff < param_4) {\n      piVar1 = (int *)*piVar5;\n      piVar4 = piVar5;\n      if (piVar1 == (int *)0x0) goto LAB_0017f425;\n      piVar5 = piVar1;\n      iVar8 = piVar1[2];\n    }\n    iVar8 = piVar5[1];\n    if (iVar8 + -0xffff <= param_4) {\n      iVar2 = piVar5[2];\n      iVar7 = (iVar2 - iVar8) + 0x1ffff >> 0x10;\n      if (param_4 < iVar8) {\n        piVar5[1] = param_4;\n        iVar8 = (iVar2 - param_4) + 0x1ffff >> 0x10;\n      }\n      else {\n        if (param_4 <= iVar2) {\n          return;\n        }\n        piVar4 = (int *)*piVar5;\n        if ((piVar4 == (int *)0x0) || (iVar2 = piVar4[1], param_4 < iVar2 + -0xffff)) {\n          piVar5[2] = param_4;\n          iVar8 = (param_4 - iVar8) + 0x1ffff >> 0x10;\n        }\n        else {\n          iVar3 = piVar4[2];\n          piVar5[2] = iVar3;\n          iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10);\n          *piVar5 = *piVar4;\n          iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10;\n        }\n      }\n      if (iVar7 == iVar8) {\n        return;\n      }\n      *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + (iVar8 - iVar7);\n      local_40[1] = local_40[1] + (iVar8 - iVar7);\n      return;\n    }\n  }" { (expression_statement "iVar8 = piVar5[2];" (assignment_expression "iVar8 = piVar5[2]" identifier = (subscript_expression "piVar5[2]" identifier [ number_literal ])) ;) (while_statement "while (iVar8 + 0xffff < param_4) {\n      piVar1 = (int *)*piVar5;\n      piVar4 = piVar5;\n      if (piVar1 == (int *)0x0) goto LAB_0017f425;\n      piVar5 = piVar1;\n      iVar8 = piVar1[2];\n    }" while (parenthesized_expression "(iVar8 + 0xffff < param_4)" ( (binary_expression "iVar8 + 0xffff < param_4" (binary_expression "iVar8 + 0xffff" identifier + number_literal) < identifier) )) (compound_statement "{\n      piVar1 = (int *)*piVar5;\n      piVar4 = piVar5;\n      if (piVar1 == (int *)0x0) goto LAB_0017f425;\n      piVar5 = piVar1;\n      iVar8 = piVar1[2];\n    }" { (expression_statement "piVar1 = (int *)*piVar5;" (assignment_expression "piVar1 = (int *)*piVar5" identifier = (cast_expression "(int *)*piVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar5" * identifier))) ;) (expression_statement "piVar4 = piVar5;" (assignment_expression "piVar4 = piVar5" identifier = identifier) ;) (if_statement "if (piVar1 == (int *)0x0) goto LAB_0017f425;" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0017f425;" goto statement_identifier ;)) (expression_statement "piVar5 = piVar1;" (assignment_expression "piVar5 = piVar1" identifier = identifier) ;) (expression_statement "iVar8 = piVar1[2];" (assignment_expression "iVar8 = piVar1[2]" identifier = (subscript_expression "piVar1[2]" identifier [ number_literal ])) ;) })) (expression_statement "iVar8 = piVar5[1];" (assignment_expression "iVar8 = piVar5[1]" identifier = (subscript_expression "piVar5[1]" identifier [ number_literal ])) ;) (if_statement "if (iVar8 + -0xffff <= param_4) {\n      iVar2 = piVar5[2];\n      iVar7 = (iVar2 - iVar8) + 0x1ffff >> 0x10;\n      if (param_4 < iVar8) {\n        piVar5[1] = param_4;\n        iVar8 = (iVar2 - param_4) + 0x1ffff >> 0x10;\n      }\n      else {\n        if (param_4 <= iVar2) {\n          return;\n        }\n        piVar4 = (int *)*piVar5;\n        if ((piVar4 == (int *)0x0) || (iVar2 = piVar4[1], param_4 < iVar2 + -0xffff)) {\n          piVar5[2] = param_4;\n          iVar8 = (param_4 - iVar8) + 0x1ffff >> 0x10;\n        }\n        else {\n          iVar3 = piVar4[2];\n          piVar5[2] = iVar3;\n          iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10);\n          *piVar5 = *piVar4;\n          iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10;\n        }\n      }\n      if (iVar7 == iVar8) {\n        return;\n      }\n      *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + (iVar8 - iVar7);\n      local_40[1] = local_40[1] + (iVar8 - iVar7);\n      return;\n    }" if (parenthesized_expression "(iVar8 + -0xffff <= param_4)" ( (binary_expression "iVar8 + -0xffff <= param_4" (binary_expression "iVar8 + -0xffff" identifier + number_literal) <= identifier) )) (compound_statement "{\n      iVar2 = piVar5[2];\n      iVar7 = (iVar2 - iVar8) + 0x1ffff >> 0x10;\n      if (param_4 < iVar8) {\n        piVar5[1] = param_4;\n        iVar8 = (iVar2 - param_4) + 0x1ffff >> 0x10;\n      }\n      else {\n        if (param_4 <= iVar2) {\n          return;\n        }\n        piVar4 = (int *)*piVar5;\n        if ((piVar4 == (int *)0x0) || (iVar2 = piVar4[1], param_4 < iVar2 + -0xffff)) {\n          piVar5[2] = param_4;\n          iVar8 = (param_4 - iVar8) + 0x1ffff >> 0x10;\n        }\n        else {\n          iVar3 = piVar4[2];\n          piVar5[2] = iVar3;\n          iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10);\n          *piVar5 = *piVar4;\n          iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10;\n        }\n      }\n      if (iVar7 == iVar8) {\n        return;\n      }\n      *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + (iVar8 - iVar7);\n      local_40[1] = local_40[1] + (iVar8 - iVar7);\n      return;\n    }" { (expression_statement "iVar2 = piVar5[2];" (assignment_expression "iVar2 = piVar5[2]" identifier = (subscript_expression "piVar5[2]" identifier [ number_literal ])) ;) (expression_statement "iVar7 = (iVar2 - iVar8) + 0x1ffff >> 0x10;" (assignment_expression "iVar7 = (iVar2 - iVar8) + 0x1ffff >> 0x10" identifier = (binary_expression "(iVar2 - iVar8) + 0x1ffff >> 0x10" (binary_expression "(iVar2 - iVar8) + 0x1ffff" (parenthesized_expression "(iVar2 - iVar8)" ( (binary_expression "iVar2 - iVar8" identifier - identifier) )) + number_literal) >> number_literal)) ;) (if_statement "if (param_4 < iVar8) {\n        piVar5[1] = param_4;\n        iVar8 = (iVar2 - param_4) + 0x1ffff >> 0x10;\n      }\n      else {\n        if (param_4 <= iVar2) {\n          return;\n        }\n        piVar4 = (int *)*piVar5;\n        if ((piVar4 == (int *)0x0) || (iVar2 = piVar4[1], param_4 < iVar2 + -0xffff)) {\n          piVar5[2] = param_4;\n          iVar8 = (param_4 - iVar8) + 0x1ffff >> 0x10;\n        }\n        else {\n          iVar3 = piVar4[2];\n          piVar5[2] = iVar3;\n          iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10);\n          *piVar5 = *piVar4;\n          iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10;\n        }\n      }" if (parenthesized_expression "(param_4 < iVar8)" ( (binary_expression "param_4 < iVar8" identifier < identifier) )) (compound_statement "{\n        piVar5[1] = param_4;\n        iVar8 = (iVar2 - param_4) + 0x1ffff >> 0x10;\n      }" { (expression_statement "piVar5[1] = param_4;" (assignment_expression "piVar5[1] = param_4" (subscript_expression "piVar5[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar8 = (iVar2 - param_4) + 0x1ffff >> 0x10;" (assignment_expression "iVar8 = (iVar2 - param_4) + 0x1ffff >> 0x10" identifier = (binary_expression "(iVar2 - param_4) + 0x1ffff >> 0x10" (binary_expression "(iVar2 - param_4) + 0x1ffff" (parenthesized_expression "(iVar2 - param_4)" ( (binary_expression "iVar2 - param_4" identifier - identifier) )) + number_literal) >> number_literal)) ;) }) (else_clause "else {\n        if (param_4 <= iVar2) {\n          return;\n        }\n        piVar4 = (int *)*piVar5;\n        if ((piVar4 == (int *)0x0) || (iVar2 = piVar4[1], param_4 < iVar2 + -0xffff)) {\n          piVar5[2] = param_4;\n          iVar8 = (param_4 - iVar8) + 0x1ffff >> 0x10;\n        }\n        else {\n          iVar3 = piVar4[2];\n          piVar5[2] = iVar3;\n          iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10);\n          *piVar5 = *piVar4;\n          iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10;\n        }\n      }" else (compound_statement "{\n        if (param_4 <= iVar2) {\n          return;\n        }\n        piVar4 = (int *)*piVar5;\n        if ((piVar4 == (int *)0x0) || (iVar2 = piVar4[1], param_4 < iVar2 + -0xffff)) {\n          piVar5[2] = param_4;\n          iVar8 = (param_4 - iVar8) + 0x1ffff >> 0x10;\n        }\n        else {\n          iVar3 = piVar4[2];\n          piVar5[2] = iVar3;\n          iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10);\n          *piVar5 = *piVar4;\n          iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10;\n        }\n      }" { (if_statement "if (param_4 <= iVar2) {\n          return;\n        }" if (parenthesized_expression "(param_4 <= iVar2)" ( (binary_expression "param_4 <= iVar2" identifier <= identifier) )) (compound_statement "{\n          return;\n        }" { (return_statement "return;" return ;) })) (expression_statement "piVar4 = (int *)*piVar5;" (assignment_expression "piVar4 = (int *)*piVar5" identifier = (cast_expression "(int *)*piVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*piVar5" * identifier))) ;) (if_statement "if ((piVar4 == (int *)0x0) || (iVar2 = piVar4[1], param_4 < iVar2 + -0xffff)) {\n          piVar5[2] = param_4;\n          iVar8 = (param_4 - iVar8) + 0x1ffff >> 0x10;\n        }\n        else {\n          iVar3 = piVar4[2];\n          piVar5[2] = iVar3;\n          iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10);\n          *piVar5 = *piVar4;\n          iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10;\n        }" if (parenthesized_expression "((piVar4 == (int *)0x0) || (iVar2 = piVar4[1], param_4 < iVar2 + -0xffff))" ( (binary_expression "(piVar4 == (int *)0x0) || (iVar2 = piVar4[1], param_4 < iVar2 + -0xffff)" (parenthesized_expression "(piVar4 == (int *)0x0)" ( (binary_expression "piVar4 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(iVar2 = piVar4[1], param_4 < iVar2 + -0xffff)" ( (comma_expression "iVar2 = piVar4[1], param_4 < iVar2 + -0xffff" (assignment_expression "iVar2 = piVar4[1]" identifier = (subscript_expression "piVar4[1]" identifier [ number_literal ])) , (binary_expression "param_4 < iVar2 + -0xffff" identifier < (binary_expression "iVar2 + -0xffff" identifier + number_literal))) ))) )) (compound_statement "{\n          piVar5[2] = param_4;\n          iVar8 = (param_4 - iVar8) + 0x1ffff >> 0x10;\n        }" { (expression_statement "piVar5[2] = param_4;" (assignment_expression "piVar5[2] = param_4" (subscript_expression "piVar5[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar8 = (param_4 - iVar8) + 0x1ffff >> 0x10;" (assignment_expression "iVar8 = (param_4 - iVar8) + 0x1ffff >> 0x10" identifier = (binary_expression "(param_4 - iVar8) + 0x1ffff >> 0x10" (binary_expression "(param_4 - iVar8) + 0x1ffff" (parenthesized_expression "(param_4 - iVar8)" ( (binary_expression "param_4 - iVar8" identifier - identifier) )) + number_literal) >> number_literal)) ;) }) (else_clause "else {\n          iVar3 = piVar4[2];\n          piVar5[2] = iVar3;\n          iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10);\n          *piVar5 = *piVar4;\n          iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10;\n        }" else (compound_statement "{\n          iVar3 = piVar4[2];\n          piVar5[2] = iVar3;\n          iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10);\n          *piVar5 = *piVar4;\n          iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10;\n        }" { (expression_statement "iVar3 = piVar4[2];" (assignment_expression "iVar3 = piVar4[2]" identifier = (subscript_expression "piVar4[2]" identifier [ number_literal ])) ;) (expression_statement "piVar5[2] = iVar3;" (assignment_expression "piVar5[2] = iVar3" (subscript_expression "piVar5[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10);" (assignment_expression "iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10)" identifier = (binary_expression "iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10)" identifier + (parenthesized_expression "((iVar3 - iVar2) + 0x1ffff >> 0x10)" ( (binary_expression "(iVar3 - iVar2) + 0x1ffff >> 0x10" (binary_expression "(iVar3 - iVar2) + 0x1ffff" (parenthesized_expression "(iVar3 - iVar2)" ( (binary_expression "iVar3 - iVar2" identifier - identifier) )) + number_literal) >> number_literal) )))) ;) (expression_statement "*piVar5 = *piVar4;" (assignment_expression "*piVar5 = *piVar4" (pointer_expression "*piVar5" * identifier) = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10;" (assignment_expression "iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10" identifier = (binary_expression "(iVar3 - iVar8) + 0x1ffff >> 0x10" (binary_expression "(iVar3 - iVar8) + 0x1ffff" (parenthesized_expression "(iVar3 - iVar8)" ( (binary_expression "iVar3 - iVar8" identifier - identifier) )) + number_literal) >> number_literal)) ;) }))) }))) (if_statement "if (iVar7 == iVar8) {\n        return;\n      }" if (parenthesized_expression "(iVar7 == iVar8)" ( (binary_expression "iVar7 == iVar8" identifier == identifier) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "*(int *)(param_1 + 4) = *(int *)(param_1 + 4) + (iVar8 - iVar7);" (assignment_expression "*(int *)(param_1 + 4) = *(int *)(param_1 + 4) + (iVar8 - iVar7)" (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" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 4) + (iVar8 - iVar7)" (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" identifier + number_literal) )))) + (parenthesized_expression "(iVar8 - iVar7)" ( (binary_expression "iVar8 - iVar7" identifier - identifier) )))) ;) (expression_statement "local_40[1] = local_40[1] + (iVar8 - iVar7);" (assignment_expression "local_40[1] = local_40[1] + (iVar8 - iVar7)" (subscript_expression "local_40[1]" identifier [ number_literal ]) = (binary_expression "local_40[1] + (iVar8 - iVar7)" (subscript_expression "local_40[1]" identifier [ number_literal ]) + (parenthesized_expression "(iVar8 - iVar7)" ( (binary_expression "iVar8 - iVar7" identifier - identifier) )))) ;) (return_statement "return;" return ;) })) })) (labeled_statement "LAB_0017f425:\n  piVar5 = (int *)FUN_003ac4d0(0xc);" statement_identifier : (expression_statement "piVar5 = (int *)FUN_003ac4d0(0xc);" (assignment_expression "piVar5 = (int *)FUN_003ac4d0(0xc)" identifier = (cast_expression "(int *)FUN_003ac4d0(0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_003ac4d0(0xc)" identifier (argument_list "(0xc)" ( number_literal ))))) ;)) (expression_statement "*piVar5 = 0;" (assignment_expression "*piVar5 = 0" (pointer_expression "*piVar5" * identifier) = number_literal) ;) (expression_statement "iVar8 = *piVar4;" (assignment_expression "iVar8 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "piVar5[1] = param_4;" (assignment_expression "piVar5[1] = param_4" (subscript_expression "piVar5[1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*piVar5 = iVar8;" (assignment_expression "*piVar5 = iVar8" (pointer_expression "*piVar5" * identifier) = identifier) ;) (expression_statement "piVar5[2] = param_4;" (assignment_expression "piVar5[2] = param_4" (subscript_expression "piVar5[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "*piVar4 = (int)piVar5;" (assignment_expression "*piVar4 = (int)piVar5" (pointer_expression "*piVar4" * identifier) = (cast_expression "(int)piVar5" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "*(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;" (assignment_expression "*(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1" (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" identifier + number_literal) )))) = (binary_expression "*(int *)(param_1 + 4) + 1" (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" identifier + number_literal) )))) + number_literal)) ;) (expression_statement "local_40[1] = local_40[1] + 1;" (assignment_expression "local_40[1] = local_40[1] + 1" (subscript_expression "local_40[1]" identifier [ number_literal ]) = (binary_expression "local_40[1] + 1" (subscript_expression "local_40[1]" identifier [ number_literal ]) + number_literal)) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * 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 (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (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 IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < LIT) )) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < LIT) )) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < LIT) )) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < LIT) )) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (binary_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 = (subscript_expression IDENT [ LIT ])) ;) (while_statement while (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) + LIT) >> LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) + LIT) >> LIT)) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) , (binary_expression IDENT < (binary_expression IDENT + LIT))) ))) )) (compound_statement { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) + LIT) >> LIT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) + LIT) >> LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) + LIT) >> LIT)) ;) }))) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (parenthesized_expression ( (binary_expression IDENT - IDENT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + (parenthesized_expression ( (binary_expression IDENT - IDENT) )))) ;) (return_statement return ;) })) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT ))))) ;)) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_0017f380(int param_1,int param_2,int param_3,int param_4)\n\n{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int *piVar5;\n  uint uVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 *local_40;\n  int local_30;\n  \n  piVar4 = (int *)FUN_003ac4d0(0xc);\n  *piVar4 = param_2;\n  piVar4[1] = param_3;\n  piVar4[2] = 0;\n  FUN_0016f8a0();\n  if (local_30 == 0) {\n    FUN_00177cc0();\n    local_40 = *(undefined4 **)(param_2 + 0x1ec);\n  }\n  else {\n    piVar4 = *(int **)(local_30 + 4);\n    local_40 = *(undefined4 **)(param_2 + 0x1ec);\n  }\n  if (local_40 == (undefined4 *)0x0) {\n    local_40 = (undefined4 *)FUN_003ac4d0(0x9c);\n    *local_40 = 0;\n    local_40[1] = 0;\n    local_40[2] = 0;\n    local_40[3] = 0;\n    local_40[4] = 0;\n    local_40[5] = 0xffffffff;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x18) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    local_40[7] = 1;\n    local_40[8] = 0;\n    local_40[9] = 0;\n    local_40[10] = 0x3f800000;\n    local_40[0xb] = 0;\n    local_40[0xc] = 0;\n    local_40[6] = local_40 + 0xc;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x34) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    local_40[0xe] = 1;\n    local_40[0xf] = 0;\n    local_40[0x10] = 0;\n    local_40[0x11] = 0x3f800000;\n    local_40[0x12] = 0;\n    local_40[0x13] = 0;\n    local_40[0xd] = local_40 + 0x13;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x50) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    local_40[0x15] = 1;\n    local_40[0x16] = 0;\n    local_40[0x17] = 0;\n    local_40[0x18] = 0x3f800000;\n    local_40[0x19] = 0;\n    local_40[0x1a] = 0;\n    local_40[0x1b] = 0;\n    local_40[0x1c] = 0;\n    local_40[0x14] = local_40 + 0x1a;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x74) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    *(undefined4 **)(param_2 + 0x1ec) = local_40;\n    local_40[0x1d] = local_40 + 0x23;\n    local_40[0x1e] = 1;\n    local_40[0x1f] = 0;\n    local_40[0x20] = 0;\n    local_40[0x21] = 0x3f800000;\n    local_40[0x22] = 0;\n    local_40[0x23] = 0;\n    local_40[0x24] = 0;\n    local_40[0x25] = 0xffffffff;\n    local_40[0x26] = 0;\n  }\n  piVar5 = (int *)piVar4[2];\n  piVar4 = piVar4 + 2;\n  if (piVar5 != (int *)0x0) {\n    iVar8 = piVar5[2];\n    while (iVar8 + 0xffff < param_4) {\n      piVar1 = (int *)*piVar5;\n      piVar4 = piVar5;\n      if (piVar1 == (int *)0x0) goto LAB_0017f425;\n      piVar5 = piVar1;\n      iVar8 = piVar1[2];\n    }\n    iVar8 = piVar5[1];\n    if (iVar8 + -0xffff <= param_4) {\n      iVar2 = piVar5[2];\n      iVar7 = (iVar2 - iVar8) + 0x1ffff >> 0x10;\n      if (param_4 < iVar8) {\n        piVar5[1] = param_4;\n        iVar8 = (iVar2 - param_4) + 0x1ffff >> 0x10;\n      }\n      else {\n        if (param_4 <= iVar2) {\n          return;\n        }\n        piVar4 = (int *)*piVar5;\n        if ((piVar4 == (int *)0x0) || (iVar2 = piVar4[1], param_4 < iVar2 + -0xffff)) {\n          piVar5[2] = param_4;\n          iVar8 = (param_4 - iVar8) + 0x1ffff >> 0x10;\n        }\n        else {\n          iVar3 = piVar4[2];\n          piVar5[2] = iVar3;\n          iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10);\n          *piVar5 = *piVar4;\n          iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10;\n        }\n      }\n      if (iVar7 == iVar8) {\n        return;\n      }\n      *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + (iVar8 - iVar7);\n      local_40[1] = local_40[1] + (iVar8 - iVar7);\n      return;\n    }\n  }\nLAB_0017f425:\n  piVar5 = (int *)FUN_003ac4d0(0xc);\n  *piVar5 = 0;\n  iVar8 = *piVar4;\n  piVar5[1] = param_4;\n  *piVar5 = iVar8;\n  piVar5[2] = param_4;\n  *piVar4 = (int)piVar5;\n  *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n  local_40[1] = local_40[1] + 1;\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0017f380(int param_1,int param_2,int param_3,int param_4)" (identifier "FUN_0017f380") (parameter_list "(int param_1,int param_2,int param_3,int param_4)" (( "(") (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")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  int iVar3;\n  int *piVar4;\n  int *piVar5;\n  uint uVar6;\n  int iVar7;\n  int iVar8;\n  undefined4 *local_40;\n  int local_30;\n  \n  piVar4 = (int *)FUN_003ac4d0(0xc);\n  *piVar4 = param_2;\n  piVar4[1] = param_3;\n  piVar4[2] = 0;\n  FUN_0016f8a0();\n  if (local_30 == 0) {\n    FUN_00177cc0();\n    local_40 = *(undefined4 **)(param_2 + 0x1ec);\n  }\n  else {\n    piVar4 = *(int **)(local_30 + 4);\n    local_40 = *(undefined4 **)(param_2 + 0x1ec);\n  }\n  if (local_40 == (undefined4 *)0x0) {\n    local_40 = (undefined4 *)FUN_003ac4d0(0x9c);\n    *local_40 = 0;\n    local_40[1] = 0;\n    local_40[2] = 0;\n    local_40[3] = 0;\n    local_40[4] = 0;\n    local_40[5] = 0xffffffff;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x18) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    local_40[7] = 1;\n    local_40[8] = 0;\n    local_40[9] = 0;\n    local_40[10] = 0x3f800000;\n    local_40[0xb] = 0;\n    local_40[0xc] = 0;\n    local_40[6] = local_40 + 0xc;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x34) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    local_40[0xe] = 1;\n    local_40[0xf] = 0;\n    local_40[0x10] = 0;\n    local_40[0x11] = 0x3f800000;\n    local_40[0x12] = 0;\n    local_40[0x13] = 0;\n    local_40[0xd] = local_40 + 0x13;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x50) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    local_40[0x15] = 1;\n    local_40[0x16] = 0;\n    local_40[0x17] = 0;\n    local_40[0x18] = 0x3f800000;\n    local_40[0x19] = 0;\n    local_40[0x1a] = 0;\n    local_40[0x1b] = 0;\n    local_40[0x1c] = 0;\n    local_40[0x14] = local_40 + 0x1a;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x74) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    *(undefined4 **)(param_2 + 0x1ec) = local_40;\n    local_40[0x1d] = local_40 + 0x23;\n    local_40[0x1e] = 1;\n    local_40[0x1f] = 0;\n    local_40[0x20] = 0;\n    local_40[0x21] = 0x3f800000;\n    local_40[0x22] = 0;\n    local_40[0x23] = 0;\n    local_40[0x24] = 0;\n    local_40[0x25] = 0xffffffff;\n    local_40[0x26] = 0;\n  }\n  piVar5 = (int *)piVar4[2];\n  piVar4 = piVar4 + 2;\n  if (piVar5 != (int *)0x0) {\n    iVar8 = piVar5[2];\n    while (iVar8 + 0xffff < param_4) {\n      piVar1 = (int *)*piVar5;\n      piVar4 = piVar5;\n      if (piVar1 == (int *)0x0) goto LAB_0017f425;\n      piVar5 = piVar1;\n      iVar8 = piVar1[2];\n    }\n    iVar8 = piVar5[1];\n    if (iVar8 + -0xffff <= param_4) {\n      iVar2 = piVar5[2];\n      iVar7 = (iVar2 - iVar8) + 0x1ffff >> 0x10;\n      if (param_4 < iVar8) {\n        piVar5[1] = param_4;\n        iVar8 = (iVar2 - param_4) + 0x1ffff >> 0x10;\n      }\n      else {\n        if (param_4 <= iVar2) {\n          return;\n        }\n        piVar4 = (int *)*piVar5;\n        if ((piVar4 == (int *)0x0) || (iVar2 = piVar4[1], param_4 < iVar2 + -0xffff)) {\n          piVar5[2] = param_4;\n          iVar8 = (param_4 - iVar8) + 0x1ffff >> 0x10;\n        }\n        else {\n          iVar3 = piVar4[2];\n          piVar5[2] = iVar3;\n          iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10);\n          *piVar5 = *piVar4;\n          iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10;\n        }\n      }\n      if (iVar7 == iVar8) {\n        return;\n      }\n      *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + (iVar8 - iVar7);\n      local_40[1] = local_40[1] + (iVar8 - iVar7);\n      return;\n    }\n  }\nLAB_0017f425:\n  piVar5 = (int *)FUN_003ac4d0(0xc);\n  *piVar5 = 0;\n  iVar8 = *piVar4;\n  piVar5[1] = param_4;\n  *piVar5 = iVar8;\n  piVar5[2] = param_4;\n  *piVar4 = (int)piVar5;\n  *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;\n  local_40[1] = local_40[1] + 1;\n  return;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "undefined4 *local_40;" (type_identifier "undefined4") (pointer_declarator "*local_40" (* "*") (identifier "local_40")) (; ";")) (declaration "int local_30;" (primitive_type "int") (identifier "local_30") (; ";")) (expression_statement "piVar4 = (int *)FUN_003ac4d0(0xc);" (assignment_expression "piVar4 = (int *)FUN_003ac4d0(0xc)" (identifier "piVar4") (= "=") (cast_expression "(int *)FUN_003ac4d0(0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_003ac4d0(0xc)" (identifier "FUN_003ac4d0") (argument_list "(0xc)" (( "(") (number_literal "0xc") () ")"))))) (; ";")) (expression_statement "*piVar4 = param_2;" (assignment_expression "*piVar4 = param_2" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "piVar4[1] = param_3;" (assignment_expression "piVar4[1] = param_3" (subscript_expression "piVar4[1]" (identifier "piVar4") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "piVar4[2] = 0;" (assignment_expression "piVar4[2] = 0" (subscript_expression "piVar4[2]" (identifier "piVar4") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_0016f8a0();" (call_expression "FUN_0016f8a0()" (identifier "FUN_0016f8a0") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (local_30 == 0) {\n    FUN_00177cc0();\n    local_40 = *(undefined4 **)(param_2 + 0x1ec);\n  }\n  else {\n    piVar4 = *(int **)(local_30 + 4);\n    local_40 = *(undefined4 **)(param_2 + 0x1ec);\n  }" (if "if") (parenthesized_expression "(local_30 == 0)" (( "(") (binary_expression "local_30 == 0" (identifier "local_30") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_00177cc0();\n    local_40 = *(undefined4 **)(param_2 + 0x1ec);\n  }" ({ "{") (expression_statement "FUN_00177cc0();" (call_expression "FUN_00177cc0()" (identifier "FUN_00177cc0") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "local_40 = *(undefined4 **)(param_2 + 0x1ec);" (assignment_expression "local_40 = *(undefined4 **)(param_2 + 0x1ec)" (identifier "local_40") (= "=") (pointer_expression "*(undefined4 **)(param_2 + 0x1ec)" (* "*") (cast_expression "(undefined4 **)(param_2 + 0x1ec)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x1ec)" (( "(") (binary_expression "param_2 + 0x1ec" (identifier "param_2") (+ "+") (number_literal "0x1ec")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n    piVar4 = *(int **)(local_30 + 4);\n    local_40 = *(undefined4 **)(param_2 + 0x1ec);\n  }" (else "else") (compound_statement "{\n    piVar4 = *(int **)(local_30 + 4);\n    local_40 = *(undefined4 **)(param_2 + 0x1ec);\n  }" ({ "{") (expression_statement "piVar4 = *(int **)(local_30 + 4);" (assignment_expression "piVar4 = *(int **)(local_30 + 4)" (identifier "piVar4") (= "=") (pointer_expression "*(int **)(local_30 + 4)" (* "*") (cast_expression "(int **)(local_30 + 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(local_30 + 4)" (( "(") (binary_expression "local_30 + 4" (identifier "local_30") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "local_40 = *(undefined4 **)(param_2 + 0x1ec);" (assignment_expression "local_40 = *(undefined4 **)(param_2 + 0x1ec)" (identifier "local_40") (= "=") (pointer_expression "*(undefined4 **)(param_2 + 0x1ec)" (* "*") (cast_expression "(undefined4 **)(param_2 + 0x1ec)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x1ec)" (( "(") (binary_expression "param_2 + 0x1ec" (identifier "param_2") (+ "+") (number_literal "0x1ec")) () ")"))))) (; ";")) (} "}")))) (if_statement "if (local_40 == (undefined4 *)0x0) {\n    local_40 = (undefined4 *)FUN_003ac4d0(0x9c);\n    *local_40 = 0;\n    local_40[1] = 0;\n    local_40[2] = 0;\n    local_40[3] = 0;\n    local_40[4] = 0;\n    local_40[5] = 0xffffffff;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x18) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    local_40[7] = 1;\n    local_40[8] = 0;\n    local_40[9] = 0;\n    local_40[10] = 0x3f800000;\n    local_40[0xb] = 0;\n    local_40[0xc] = 0;\n    local_40[6] = local_40 + 0xc;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x34) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    local_40[0xe] = 1;\n    local_40[0xf] = 0;\n    local_40[0x10] = 0;\n    local_40[0x11] = 0x3f800000;\n    local_40[0x12] = 0;\n    local_40[0x13] = 0;\n    local_40[0xd] = local_40 + 0x13;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x50) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    local_40[0x15] = 1;\n    local_40[0x16] = 0;\n    local_40[0x17] = 0;\n    local_40[0x18] = 0x3f800000;\n    local_40[0x19] = 0;\n    local_40[0x1a] = 0;\n    local_40[0x1b] = 0;\n    local_40[0x1c] = 0;\n    local_40[0x14] = local_40 + 0x1a;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x74) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    *(undefined4 **)(param_2 + 0x1ec) = local_40;\n    local_40[0x1d] = local_40 + 0x23;\n    local_40[0x1e] = 1;\n    local_40[0x1f] = 0;\n    local_40[0x20] = 0;\n    local_40[0x21] = 0x3f800000;\n    local_40[0x22] = 0;\n    local_40[0x23] = 0;\n    local_40[0x24] = 0;\n    local_40[0x25] = 0xffffffff;\n    local_40[0x26] = 0;\n  }" (if "if") (parenthesized_expression "(local_40 == (undefined4 *)0x0)" (( "(") (binary_expression "local_40 == (undefined4 *)0x0" (identifier "local_40") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    local_40 = (undefined4 *)FUN_003ac4d0(0x9c);\n    *local_40 = 0;\n    local_40[1] = 0;\n    local_40[2] = 0;\n    local_40[3] = 0;\n    local_40[4] = 0;\n    local_40[5] = 0xffffffff;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x18) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    local_40[7] = 1;\n    local_40[8] = 0;\n    local_40[9] = 0;\n    local_40[10] = 0x3f800000;\n    local_40[0xb] = 0;\n    local_40[0xc] = 0;\n    local_40[6] = local_40 + 0xc;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x34) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    local_40[0xe] = 1;\n    local_40[0xf] = 0;\n    local_40[0x10] = 0;\n    local_40[0x11] = 0x3f800000;\n    local_40[0x12] = 0;\n    local_40[0x13] = 0;\n    local_40[0xd] = local_40 + 0x13;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x50) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    local_40[0x15] = 1;\n    local_40[0x16] = 0;\n    local_40[0x17] = 0;\n    local_40[0x18] = 0x3f800000;\n    local_40[0x19] = 0;\n    local_40[0x1a] = 0;\n    local_40[0x1b] = 0;\n    local_40[0x1c] = 0;\n    local_40[0x14] = local_40 + 0x1a;\n    uVar6 = 0;\n    do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x74) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);\n    *(undefined4 **)(param_2 + 0x1ec) = local_40;\n    local_40[0x1d] = local_40 + 0x23;\n    local_40[0x1e] = 1;\n    local_40[0x1f] = 0;\n    local_40[0x20] = 0;\n    local_40[0x21] = 0x3f800000;\n    local_40[0x22] = 0;\n    local_40[0x23] = 0;\n    local_40[0x24] = 0;\n    local_40[0x25] = 0xffffffff;\n    local_40[0x26] = 0;\n  }" ({ "{") (expression_statement "local_40 = (undefined4 *)FUN_003ac4d0(0x9c);" (assignment_expression "local_40 = (undefined4 *)FUN_003ac4d0(0x9c)" (identifier "local_40") (= "=") (cast_expression "(undefined4 *)FUN_003ac4d0(0x9c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_003ac4d0(0x9c)" (identifier "FUN_003ac4d0") (argument_list "(0x9c)" (( "(") (number_literal "0x9c") () ")"))))) (; ";")) (expression_statement "*local_40 = 0;" (assignment_expression "*local_40 = 0" (pointer_expression "*local_40" (* "*") (identifier "local_40")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40[1] = 0;" (assignment_expression "local_40[1] = 0" (subscript_expression "local_40[1]" (identifier "local_40") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40[2] = 0;" (assignment_expression "local_40[2] = 0" (subscript_expression "local_40[2]" (identifier "local_40") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40[3] = 0;" (assignment_expression "local_40[3] = 0" (subscript_expression "local_40[3]" (identifier "local_40") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40[4] = 0;" (assignment_expression "local_40[4] = 0" (subscript_expression "local_40[4]" (identifier "local_40") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40[5] = 0xffffffff;" (assignment_expression "local_40[5] = 0xffffffff" (subscript_expression "local_40[5]" (identifier "local_40") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" (identifier "uVar6") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x18) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);" (do "do") (compound_statement "{\n      *(undefined4 *)((int)local_40 + uVar6 + 0x18) = 0;\n      uVar6 = uVar6 + 4;\n    }" ({ "{") (expression_statement "*(undefined4 *)((int)local_40 + uVar6 + 0x18) = 0;" (assignment_expression "*(undefined4 *)((int)local_40 + uVar6 + 0x18) = 0" (pointer_expression "*(undefined4 *)((int)local_40 + uVar6 + 0x18)" (* "*") (cast_expression "(undefined4 *)((int)local_40 + uVar6 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)local_40 + uVar6 + 0x18)" (( "(") (binary_expression "(int)local_40 + uVar6 + 0x18" (binary_expression "(int)local_40 + uVar6" (cast_expression "(int)local_40" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_40")) (+ "+") (identifier "uVar6")) (+ "+") (number_literal "0x18")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar6 = uVar6 + 4;" (assignment_expression "uVar6 = uVar6 + 4" (identifier "uVar6") (= "=") (binary_expression "uVar6 + 4" (identifier "uVar6") (+ "+") (number_literal "4"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar6 < 0x1c)" (( "(") (binary_expression "uVar6 < 0x1c" (identifier "uVar6") (< "<") (number_literal "0x1c")) () ")")) (; ";")) (expression_statement "local_40[7] = 1;" (assignment_expression "local_40[7] = 1" (subscript_expression "local_40[7]" (identifier "local_40") ([ "[") (number_literal "7") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "local_40[8] = 0;" (assignment_expression "local_40[8] = 0" (subscript_expression "local_40[8]" (identifier "local_40") ([ "[") (number_literal "8") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40[9] = 0;" (assignment_expression "local_40[9] = 0" (subscript_expression "local_40[9]" (identifier "local_40") ([ "[") (number_literal "9") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40[10] = 0x3f800000;" (assignment_expression "local_40[10] = 0x3f800000" (subscript_expression "local_40[10]" (identifier "local_40") ([ "[") (number_literal "10") (] "]")) (= "=") (number_literal "0x3f800000")) (; ";")) (expression_statement "local_40[0xb] = 0;" (assignment_expression "local_40[0xb] = 0" (subscript_expression "local_40[0xb]" (identifier "local_40") ([ "[") (number_literal "0xb") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40[0xc] = 0;" (assignment_expression "local_40[0xc] = 0" (subscript_expression "local_40[0xc]" (identifier "local_40") ([ "[") (number_literal "0xc") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40[6] = local_40 + 0xc;" (assignment_expression "local_40[6] = local_40 + 0xc" (subscript_expression "local_40[6]" (identifier "local_40") ([ "[") (number_literal "6") (] "]")) (= "=") (binary_expression "local_40 + 0xc" (identifier "local_40") (+ "+") (number_literal "0xc"))) (; ";")) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" (identifier "uVar6") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x34) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);" (do "do") (compound_statement "{\n      *(undefined4 *)((int)local_40 + uVar6 + 0x34) = 0;\n      uVar6 = uVar6 + 4;\n    }" ({ "{") (expression_statement "*(undefined4 *)((int)local_40 + uVar6 + 0x34) = 0;" (assignment_expression "*(undefined4 *)((int)local_40 + uVar6 + 0x34) = 0" (pointer_expression "*(undefined4 *)((int)local_40 + uVar6 + 0x34)" (* "*") (cast_expression "(undefined4 *)((int)local_40 + uVar6 + 0x34)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)local_40 + uVar6 + 0x34)" (( "(") (binary_expression "(int)local_40 + uVar6 + 0x34" (binary_expression "(int)local_40 + uVar6" (cast_expression "(int)local_40" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_40")) (+ "+") (identifier "uVar6")) (+ "+") (number_literal "0x34")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar6 = uVar6 + 4;" (assignment_expression "uVar6 = uVar6 + 4" (identifier "uVar6") (= "=") (binary_expression "uVar6 + 4" (identifier "uVar6") (+ "+") (number_literal "4"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar6 < 0x1c)" (( "(") (binary_expression "uVar6 < 0x1c" (identifier "uVar6") (< "<") (number_literal "0x1c")) () ")")) (; ";")) (expression_statement "local_40[0xe] = 1;" (assignment_expression "local_40[0xe] = 1" (subscript_expression "local_40[0xe]" (identifier "local_40") ([ "[") (number_literal "0xe") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "local_40[0xf] = 0;" (assignment_expression "local_40[0xf] = 0" (subscript_expression "local_40[0xf]" (identifier "local_40") ([ "[") (number_literal "0xf") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40[0x10] = 0;" (assignment_expression "local_40[0x10] = 0" (subscript_expression "local_40[0x10]" (identifier "local_40") ([ "[") (number_literal "0x10") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40[0x11] = 0x3f800000;" (assignment_expression "local_40[0x11] = 0x3f800000" (subscript_expression "local_40[0x11]" (identifier "local_40") ([ "[") (number_literal "0x11") (] "]")) (= "=") (number_literal "0x3f800000")) (; ";")) (expression_statement "local_40[0x12] = 0;" (assignment_expression "local_40[0x12] = 0" (subscript_expression "local_40[0x12]" (identifier "local_40") ([ "[") (number_literal "0x12") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40[0x13] = 0;" (assignment_expression "local_40[0x13] = 0" (subscript_expression "local_40[0x13]" (identifier "local_40") ([ "[") (number_literal "0x13") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40[0xd] = local_40 + 0x13;" (assignment_expression "local_40[0xd] = local_40 + 0x13" (subscript_expression "local_40[0xd]" (identifier "local_40") ([ "[") (number_literal "0xd") (] "]")) (= "=") (binary_expression "local_40 + 0x13" (identifier "local_40") (+ "+") (number_literal "0x13"))) (; ";")) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" (identifier "uVar6") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x50) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);" (do "do") (compound_statement "{\n      *(undefined4 *)((int)local_40 + uVar6 + 0x50) = 0;\n      uVar6 = uVar6 + 4;\n    }" ({ "{") (expression_statement "*(undefined4 *)((int)local_40 + uVar6 + 0x50) = 0;" (assignment_expression "*(undefined4 *)((int)local_40 + uVar6 + 0x50) = 0" (pointer_expression "*(undefined4 *)((int)local_40 + uVar6 + 0x50)" (* "*") (cast_expression "(undefined4 *)((int)local_40 + uVar6 + 0x50)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)local_40 + uVar6 + 0x50)" (( "(") (binary_expression "(int)local_40 + uVar6 + 0x50" (binary_expression "(int)local_40 + uVar6" (cast_expression "(int)local_40" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_40")) (+ "+") (identifier "uVar6")) (+ "+") (number_literal "0x50")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar6 = uVar6 + 4;" (assignment_expression "uVar6 = uVar6 + 4" (identifier "uVar6") (= "=") (binary_expression "uVar6 + 4" (identifier "uVar6") (+ "+") (number_literal "4"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar6 < 0x1c)" (( "(") (binary_expression "uVar6 < 0x1c" (identifier "uVar6") (< "<") (number_literal "0x1c")) () ")")) (; ";")) (expression_statement "local_40[0x15] = 1;" (assignment_expression "local_40[0x15] = 1" (subscript_expression "local_40[0x15]" (identifier "local_40") ([ "[") (number_literal "0x15") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "local_40[0x16] = 0;" (assignment_expression "local_40[0x16] = 0" (subscript_expression "local_40[0x16]" (identifier "local_40") ([ "[") (number_literal "0x16") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40[0x17] = 0;" (assignment_expression "local_40[0x17] = 0" (subscript_expression "local_40[0x17]" (identifier "local_40") ([ "[") (number_literal "0x17") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40[0x18] = 0x3f800000;" (assignment_expression "local_40[0x18] = 0x3f800000" (subscript_expression "local_40[0x18]" (identifier "local_40") ([ "[") (number_literal "0x18") (] "]")) (= "=") (number_literal "0x3f800000")) (; ";")) (expression_statement "local_40[0x19] = 0;" (assignment_expression "local_40[0x19] = 0" (subscript_expression "local_40[0x19]" (identifier "local_40") ([ "[") (number_literal "0x19") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40[0x1a] = 0;" (assignment_expression "local_40[0x1a] = 0" (subscript_expression "local_40[0x1a]" (identifier "local_40") ([ "[") (number_literal "0x1a") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40[0x1b] = 0;" (assignment_expression "local_40[0x1b] = 0" (subscript_expression "local_40[0x1b]" (identifier "local_40") ([ "[") (number_literal "0x1b") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40[0x1c] = 0;" (assignment_expression "local_40[0x1c] = 0" (subscript_expression "local_40[0x1c]" (identifier "local_40") ([ "[") (number_literal "0x1c") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40[0x14] = local_40 + 0x1a;" (assignment_expression "local_40[0x14] = local_40 + 0x1a" (subscript_expression "local_40[0x14]" (identifier "local_40") ([ "[") (number_literal "0x14") (] "]")) (= "=") (binary_expression "local_40 + 0x1a" (identifier "local_40") (+ "+") (number_literal "0x1a"))) (; ";")) (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" (identifier "uVar6") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      *(undefined4 *)((int)local_40 + uVar6 + 0x74) = 0;\n      uVar6 = uVar6 + 4;\n    } while (uVar6 < 0x1c);" (do "do") (compound_statement "{\n      *(undefined4 *)((int)local_40 + uVar6 + 0x74) = 0;\n      uVar6 = uVar6 + 4;\n    }" ({ "{") (expression_statement "*(undefined4 *)((int)local_40 + uVar6 + 0x74) = 0;" (assignment_expression "*(undefined4 *)((int)local_40 + uVar6 + 0x74) = 0" (pointer_expression "*(undefined4 *)((int)local_40 + uVar6 + 0x74)" (* "*") (cast_expression "(undefined4 *)((int)local_40 + uVar6 + 0x74)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)local_40 + uVar6 + 0x74)" (( "(") (binary_expression "(int)local_40 + uVar6 + 0x74" (binary_expression "(int)local_40 + uVar6" (cast_expression "(int)local_40" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "local_40")) (+ "+") (identifier "uVar6")) (+ "+") (number_literal "0x74")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar6 = uVar6 + 4;" (assignment_expression "uVar6 = uVar6 + 4" (identifier "uVar6") (= "=") (binary_expression "uVar6 + 4" (identifier "uVar6") (+ "+") (number_literal "4"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar6 < 0x1c)" (( "(") (binary_expression "uVar6 < 0x1c" (identifier "uVar6") (< "<") (number_literal "0x1c")) () ")")) (; ";")) (expression_statement "*(undefined4 **)(param_2 + 0x1ec) = local_40;" (assignment_expression "*(undefined4 **)(param_2 + 0x1ec) = local_40" (pointer_expression "*(undefined4 **)(param_2 + 0x1ec)" (* "*") (cast_expression "(undefined4 **)(param_2 + 0x1ec)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x1ec)" (( "(") (binary_expression "param_2 + 0x1ec" (identifier "param_2") (+ "+") (number_literal "0x1ec")) () ")")))) (= "=") (identifier "local_40")) (; ";")) (expression_statement "local_40[0x1d] = local_40 + 0x23;" (assignment_expression "local_40[0x1d] = local_40 + 0x23" (subscript_expression "local_40[0x1d]" (identifier "local_40") ([ "[") (number_literal "0x1d") (] "]")) (= "=") (binary_expression "local_40 + 0x23" (identifier "local_40") (+ "+") (number_literal "0x23"))) (; ";")) (expression_statement "local_40[0x1e] = 1;" (assignment_expression "local_40[0x1e] = 1" (subscript_expression "local_40[0x1e]" (identifier "local_40") ([ "[") (number_literal "0x1e") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "local_40[0x1f] = 0;" (assignment_expression "local_40[0x1f] = 0" (subscript_expression "local_40[0x1f]" (identifier "local_40") ([ "[") (number_literal "0x1f") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40[0x20] = 0;" (assignment_expression "local_40[0x20] = 0" (subscript_expression "local_40[0x20]" (identifier "local_40") ([ "[") (number_literal "0x20") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40[0x21] = 0x3f800000;" (assignment_expression "local_40[0x21] = 0x3f800000" (subscript_expression "local_40[0x21]" (identifier "local_40") ([ "[") (number_literal "0x21") (] "]")) (= "=") (number_literal "0x3f800000")) (; ";")) (expression_statement "local_40[0x22] = 0;" (assignment_expression "local_40[0x22] = 0" (subscript_expression "local_40[0x22]" (identifier "local_40") ([ "[") (number_literal "0x22") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40[0x23] = 0;" (assignment_expression "local_40[0x23] = 0" (subscript_expression "local_40[0x23]" (identifier "local_40") ([ "[") (number_literal "0x23") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40[0x24] = 0;" (assignment_expression "local_40[0x24] = 0" (subscript_expression "local_40[0x24]" (identifier "local_40") ([ "[") (number_literal "0x24") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40[0x25] = 0xffffffff;" (assignment_expression "local_40[0x25] = 0xffffffff" (subscript_expression "local_40[0x25]" (identifier "local_40") ([ "[") (number_literal "0x25") (] "]")) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "local_40[0x26] = 0;" (assignment_expression "local_40[0x26] = 0" (subscript_expression "local_40[0x26]" (identifier "local_40") ([ "[") (number_literal "0x26") (] "]")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "piVar5 = (int *)piVar4[2];" (assignment_expression "piVar5 = (int *)piVar4[2]" (identifier "piVar5") (= "=") (cast_expression "(int *)piVar4[2]" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "piVar4[2]" (identifier "piVar4") ([ "[") (number_literal "2") (] "]")))) (; ";")) (expression_statement "piVar4 = piVar4 + 2;" (assignment_expression "piVar4 = piVar4 + 2" (identifier "piVar4") (= "=") (binary_expression "piVar4 + 2" (identifier "piVar4") (+ "+") (number_literal "2"))) (; ";")) (if_statement "if (piVar5 != (int *)0x0) {\n    iVar8 = piVar5[2];\n    while (iVar8 + 0xffff < param_4) {\n      piVar1 = (int *)*piVar5;\n      piVar4 = piVar5;\n      if (piVar1 == (int *)0x0) goto LAB_0017f425;\n      piVar5 = piVar1;\n      iVar8 = piVar1[2];\n    }\n    iVar8 = piVar5[1];\n    if (iVar8 + -0xffff <= param_4) {\n      iVar2 = piVar5[2];\n      iVar7 = (iVar2 - iVar8) + 0x1ffff >> 0x10;\n      if (param_4 < iVar8) {\n        piVar5[1] = param_4;\n        iVar8 = (iVar2 - param_4) + 0x1ffff >> 0x10;\n      }\n      else {\n        if (param_4 <= iVar2) {\n          return;\n        }\n        piVar4 = (int *)*piVar5;\n        if ((piVar4 == (int *)0x0) || (iVar2 = piVar4[1], param_4 < iVar2 + -0xffff)) {\n          piVar5[2] = param_4;\n          iVar8 = (param_4 - iVar8) + 0x1ffff >> 0x10;\n        }\n        else {\n          iVar3 = piVar4[2];\n          piVar5[2] = iVar3;\n          iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10);\n          *piVar5 = *piVar4;\n          iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10;\n        }\n      }\n      if (iVar7 == iVar8) {\n        return;\n      }\n      *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + (iVar8 - iVar7);\n      local_40[1] = local_40[1] + (iVar8 - iVar7);\n      return;\n    }\n  }" (if "if") (parenthesized_expression "(piVar5 != (int *)0x0)" (( "(") (binary_expression "piVar5 != (int *)0x0" (identifier "piVar5") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar8 = piVar5[2];\n    while (iVar8 + 0xffff < param_4) {\n      piVar1 = (int *)*piVar5;\n      piVar4 = piVar5;\n      if (piVar1 == (int *)0x0) goto LAB_0017f425;\n      piVar5 = piVar1;\n      iVar8 = piVar1[2];\n    }\n    iVar8 = piVar5[1];\n    if (iVar8 + -0xffff <= param_4) {\n      iVar2 = piVar5[2];\n      iVar7 = (iVar2 - iVar8) + 0x1ffff >> 0x10;\n      if (param_4 < iVar8) {\n        piVar5[1] = param_4;\n        iVar8 = (iVar2 - param_4) + 0x1ffff >> 0x10;\n      }\n      else {\n        if (param_4 <= iVar2) {\n          return;\n        }\n        piVar4 = (int *)*piVar5;\n        if ((piVar4 == (int *)0x0) || (iVar2 = piVar4[1], param_4 < iVar2 + -0xffff)) {\n          piVar5[2] = param_4;\n          iVar8 = (param_4 - iVar8) + 0x1ffff >> 0x10;\n        }\n        else {\n          iVar3 = piVar4[2];\n          piVar5[2] = iVar3;\n          iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10);\n          *piVar5 = *piVar4;\n          iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10;\n        }\n      }\n      if (iVar7 == iVar8) {\n        return;\n      }\n      *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + (iVar8 - iVar7);\n      local_40[1] = local_40[1] + (iVar8 - iVar7);\n      return;\n    }\n  }" ({ "{") (expression_statement "iVar8 = piVar5[2];" (assignment_expression "iVar8 = piVar5[2]" (identifier "iVar8") (= "=") (subscript_expression "piVar5[2]" (identifier "piVar5") ([ "[") (number_literal "2") (] "]"))) (; ";")) (while_statement "while (iVar8 + 0xffff < param_4) {\n      piVar1 = (int *)*piVar5;\n      piVar4 = piVar5;\n      if (piVar1 == (int *)0x0) goto LAB_0017f425;\n      piVar5 = piVar1;\n      iVar8 = piVar1[2];\n    }" (while "while") (parenthesized_expression "(iVar8 + 0xffff < param_4)" (( "(") (binary_expression "iVar8 + 0xffff < param_4" (binary_expression "iVar8 + 0xffff" (identifier "iVar8") (+ "+") (number_literal "0xffff")) (< "<") (identifier "param_4")) () ")")) (compound_statement "{\n      piVar1 = (int *)*piVar5;\n      piVar4 = piVar5;\n      if (piVar1 == (int *)0x0) goto LAB_0017f425;\n      piVar5 = piVar1;\n      iVar8 = piVar1[2];\n    }" ({ "{") (expression_statement "piVar1 = (int *)*piVar5;" (assignment_expression "piVar1 = (int *)*piVar5" (identifier "piVar1") (= "=") (cast_expression "(int *)*piVar5" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar5" (* "*") (identifier "piVar5")))) (; ";")) (expression_statement "piVar4 = piVar5;" (assignment_expression "piVar4 = piVar5" (identifier "piVar4") (= "=") (identifier "piVar5")) (; ";")) (if_statement "if (piVar1 == (int *)0x0) goto LAB_0017f425;" (if "if") (parenthesized_expression "(piVar1 == (int *)0x0)" (( "(") (binary_expression "piVar1 == (int *)0x0" (identifier "piVar1") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_0017f425;" (goto "goto") (statement_identifier "LAB_0017f425") (; ";"))) (expression_statement "piVar5 = piVar1;" (assignment_expression "piVar5 = piVar1" (identifier "piVar5") (= "=") (identifier "piVar1")) (; ";")) (expression_statement "iVar8 = piVar1[2];" (assignment_expression "iVar8 = piVar1[2]" (identifier "iVar8") (= "=") (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (} "}"))) (expression_statement "iVar8 = piVar5[1];" (assignment_expression "iVar8 = piVar5[1]" (identifier "iVar8") (= "=") (subscript_expression "piVar5[1]" (identifier "piVar5") ([ "[") (number_literal "1") (] "]"))) (; ";")) (if_statement "if (iVar8 + -0xffff <= param_4) {\n      iVar2 = piVar5[2];\n      iVar7 = (iVar2 - iVar8) + 0x1ffff >> 0x10;\n      if (param_4 < iVar8) {\n        piVar5[1] = param_4;\n        iVar8 = (iVar2 - param_4) + 0x1ffff >> 0x10;\n      }\n      else {\n        if (param_4 <= iVar2) {\n          return;\n        }\n        piVar4 = (int *)*piVar5;\n        if ((piVar4 == (int *)0x0) || (iVar2 = piVar4[1], param_4 < iVar2 + -0xffff)) {\n          piVar5[2] = param_4;\n          iVar8 = (param_4 - iVar8) + 0x1ffff >> 0x10;\n        }\n        else {\n          iVar3 = piVar4[2];\n          piVar5[2] = iVar3;\n          iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10);\n          *piVar5 = *piVar4;\n          iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10;\n        }\n      }\n      if (iVar7 == iVar8) {\n        return;\n      }\n      *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + (iVar8 - iVar7);\n      local_40[1] = local_40[1] + (iVar8 - iVar7);\n      return;\n    }" (if "if") (parenthesized_expression "(iVar8 + -0xffff <= param_4)" (( "(") (binary_expression "iVar8 + -0xffff <= param_4" (binary_expression "iVar8 + -0xffff" (identifier "iVar8") (+ "+") (number_literal "-0xffff")) (<= "<=") (identifier "param_4")) () ")")) (compound_statement "{\n      iVar2 = piVar5[2];\n      iVar7 = (iVar2 - iVar8) + 0x1ffff >> 0x10;\n      if (param_4 < iVar8) {\n        piVar5[1] = param_4;\n        iVar8 = (iVar2 - param_4) + 0x1ffff >> 0x10;\n      }\n      else {\n        if (param_4 <= iVar2) {\n          return;\n        }\n        piVar4 = (int *)*piVar5;\n        if ((piVar4 == (int *)0x0) || (iVar2 = piVar4[1], param_4 < iVar2 + -0xffff)) {\n          piVar5[2] = param_4;\n          iVar8 = (param_4 - iVar8) + 0x1ffff >> 0x10;\n        }\n        else {\n          iVar3 = piVar4[2];\n          piVar5[2] = iVar3;\n          iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10);\n          *piVar5 = *piVar4;\n          iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10;\n        }\n      }\n      if (iVar7 == iVar8) {\n        return;\n      }\n      *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + (iVar8 - iVar7);\n      local_40[1] = local_40[1] + (iVar8 - iVar7);\n      return;\n    }" ({ "{") (expression_statement "iVar2 = piVar5[2];" (assignment_expression "iVar2 = piVar5[2]" (identifier "iVar2") (= "=") (subscript_expression "piVar5[2]" (identifier "piVar5") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "iVar7 = (iVar2 - iVar8) + 0x1ffff >> 0x10;" (assignment_expression "iVar7 = (iVar2 - iVar8) + 0x1ffff >> 0x10" (identifier "iVar7") (= "=") (binary_expression "(iVar2 - iVar8) + 0x1ffff >> 0x10" (binary_expression "(iVar2 - iVar8) + 0x1ffff" (parenthesized_expression "(iVar2 - iVar8)" (( "(") (binary_expression "iVar2 - iVar8" (identifier "iVar2") (- "-") (identifier "iVar8")) () ")")) (+ "+") (number_literal "0x1ffff")) (>> ">>") (number_literal "0x10"))) (; ";")) (if_statement "if (param_4 < iVar8) {\n        piVar5[1] = param_4;\n        iVar8 = (iVar2 - param_4) + 0x1ffff >> 0x10;\n      }\n      else {\n        if (param_4 <= iVar2) {\n          return;\n        }\n        piVar4 = (int *)*piVar5;\n        if ((piVar4 == (int *)0x0) || (iVar2 = piVar4[1], param_4 < iVar2 + -0xffff)) {\n          piVar5[2] = param_4;\n          iVar8 = (param_4 - iVar8) + 0x1ffff >> 0x10;\n        }\n        else {\n          iVar3 = piVar4[2];\n          piVar5[2] = iVar3;\n          iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10);\n          *piVar5 = *piVar4;\n          iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10;\n        }\n      }" (if "if") (parenthesized_expression "(param_4 < iVar8)" (( "(") (binary_expression "param_4 < iVar8" (identifier "param_4") (< "<") (identifier "iVar8")) () ")")) (compound_statement "{\n        piVar5[1] = param_4;\n        iVar8 = (iVar2 - param_4) + 0x1ffff >> 0x10;\n      }" ({ "{") (expression_statement "piVar5[1] = param_4;" (assignment_expression "piVar5[1] = param_4" (subscript_expression "piVar5[1]" (identifier "piVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "iVar8 = (iVar2 - param_4) + 0x1ffff >> 0x10;" (assignment_expression "iVar8 = (iVar2 - param_4) + 0x1ffff >> 0x10" (identifier "iVar8") (= "=") (binary_expression "(iVar2 - param_4) + 0x1ffff >> 0x10" (binary_expression "(iVar2 - param_4) + 0x1ffff" (parenthesized_expression "(iVar2 - param_4)" (( "(") (binary_expression "iVar2 - param_4" (identifier "iVar2") (- "-") (identifier "param_4")) () ")")) (+ "+") (number_literal "0x1ffff")) (>> ">>") (number_literal "0x10"))) (; ";")) (} "}")) (else_clause "else {\n        if (param_4 <= iVar2) {\n          return;\n        }\n        piVar4 = (int *)*piVar5;\n        if ((piVar4 == (int *)0x0) || (iVar2 = piVar4[1], param_4 < iVar2 + -0xffff)) {\n          piVar5[2] = param_4;\n          iVar8 = (param_4 - iVar8) + 0x1ffff >> 0x10;\n        }\n        else {\n          iVar3 = piVar4[2];\n          piVar5[2] = iVar3;\n          iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10);\n          *piVar5 = *piVar4;\n          iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10;\n        }\n      }" (else "else") (compound_statement "{\n        if (param_4 <= iVar2) {\n          return;\n        }\n        piVar4 = (int *)*piVar5;\n        if ((piVar4 == (int *)0x0) || (iVar2 = piVar4[1], param_4 < iVar2 + -0xffff)) {\n          piVar5[2] = param_4;\n          iVar8 = (param_4 - iVar8) + 0x1ffff >> 0x10;\n        }\n        else {\n          iVar3 = piVar4[2];\n          piVar5[2] = iVar3;\n          iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10);\n          *piVar5 = *piVar4;\n          iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10;\n        }\n      }" ({ "{") (if_statement "if (param_4 <= iVar2) {\n          return;\n        }" (if "if") (parenthesized_expression "(param_4 <= iVar2)" (( "(") (binary_expression "param_4 <= iVar2" (identifier "param_4") (<= "<=") (identifier "iVar2")) () ")")) (compound_statement "{\n          return;\n        }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "piVar4 = (int *)*piVar5;" (assignment_expression "piVar4 = (int *)*piVar5" (identifier "piVar4") (= "=") (cast_expression "(int *)*piVar5" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*piVar5" (* "*") (identifier "piVar5")))) (; ";")) (if_statement "if ((piVar4 == (int *)0x0) || (iVar2 = piVar4[1], param_4 < iVar2 + -0xffff)) {\n          piVar5[2] = param_4;\n          iVar8 = (param_4 - iVar8) + 0x1ffff >> 0x10;\n        }\n        else {\n          iVar3 = piVar4[2];\n          piVar5[2] = iVar3;\n          iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10);\n          *piVar5 = *piVar4;\n          iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10;\n        }" (if "if") (parenthesized_expression "((piVar4 == (int *)0x0) || (iVar2 = piVar4[1], param_4 < iVar2 + -0xffff))" (( "(") (binary_expression "(piVar4 == (int *)0x0) || (iVar2 = piVar4[1], param_4 < iVar2 + -0xffff)" (parenthesized_expression "(piVar4 == (int *)0x0)" (( "(") (binary_expression "piVar4 == (int *)0x0" (identifier "piVar4") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (|| "||") (parenthesized_expression "(iVar2 = piVar4[1], param_4 < iVar2 + -0xffff)" (( "(") (comma_expression "iVar2 = piVar4[1], param_4 < iVar2 + -0xffff" (assignment_expression "iVar2 = piVar4[1]" (identifier "iVar2") (= "=") (subscript_expression "piVar4[1]" (identifier "piVar4") ([ "[") (number_literal "1") (] "]"))) (, ",") (binary_expression "param_4 < iVar2 + -0xffff" (identifier "param_4") (< "<") (binary_expression "iVar2 + -0xffff" (identifier "iVar2") (+ "+") (number_literal "-0xffff")))) () ")"))) () ")")) (compound_statement "{\n          piVar5[2] = param_4;\n          iVar8 = (param_4 - iVar8) + 0x1ffff >> 0x10;\n        }" ({ "{") (expression_statement "piVar5[2] = param_4;" (assignment_expression "piVar5[2] = param_4" (subscript_expression "piVar5[2]" (identifier "piVar5") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "iVar8 = (param_4 - iVar8) + 0x1ffff >> 0x10;" (assignment_expression "iVar8 = (param_4 - iVar8) + 0x1ffff >> 0x10" (identifier "iVar8") (= "=") (binary_expression "(param_4 - iVar8) + 0x1ffff >> 0x10" (binary_expression "(param_4 - iVar8) + 0x1ffff" (parenthesized_expression "(param_4 - iVar8)" (( "(") (binary_expression "param_4 - iVar8" (identifier "param_4") (- "-") (identifier "iVar8")) () ")")) (+ "+") (number_literal "0x1ffff")) (>> ">>") (number_literal "0x10"))) (; ";")) (} "}")) (else_clause "else {\n          iVar3 = piVar4[2];\n          piVar5[2] = iVar3;\n          iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10);\n          *piVar5 = *piVar4;\n          iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10;\n        }" (else "else") (compound_statement "{\n          iVar3 = piVar4[2];\n          piVar5[2] = iVar3;\n          iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10);\n          *piVar5 = *piVar4;\n          iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10;\n        }" ({ "{") (expression_statement "iVar3 = piVar4[2];" (assignment_expression "iVar3 = piVar4[2]" (identifier "iVar3") (= "=") (subscript_expression "piVar4[2]" (identifier "piVar4") ([ "[") (number_literal "2") (] "]"))) (; ";")) (expression_statement "piVar5[2] = iVar3;" (assignment_expression "piVar5[2] = iVar3" (subscript_expression "piVar5[2]" (identifier "piVar5") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "iVar3")) (; ";")) (expression_statement "iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10);" (assignment_expression "iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10)" (identifier "iVar7") (= "=") (binary_expression "iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10)" (identifier "iVar7") (+ "+") (parenthesized_expression "((iVar3 - iVar2) + 0x1ffff >> 0x10)" (( "(") (binary_expression "(iVar3 - iVar2) + 0x1ffff >> 0x10" (binary_expression "(iVar3 - iVar2) + 0x1ffff" (parenthesized_expression "(iVar3 - iVar2)" (( "(") (binary_expression "iVar3 - iVar2" (identifier "iVar3") (- "-") (identifier "iVar2")) () ")")) (+ "+") (number_literal "0x1ffff")) (>> ">>") (number_literal "0x10")) () ")")))) (; ";")) (expression_statement "*piVar5 = *piVar4;" (assignment_expression "*piVar5 = *piVar4" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (pointer_expression "*piVar4" (* "*") (identifier "piVar4"))) (; ";")) (expression_statement "iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10;" (assignment_expression "iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10" (identifier "iVar8") (= "=") (binary_expression "(iVar3 - iVar8) + 0x1ffff >> 0x10" (binary_expression "(iVar3 - iVar8) + 0x1ffff" (parenthesized_expression "(iVar3 - iVar8)" (( "(") (binary_expression "iVar3 - iVar8" (identifier "iVar3") (- "-") (identifier "iVar8")) () ")")) (+ "+") (number_literal "0x1ffff")) (>> ">>") (number_literal "0x10"))) (; ";")) (} "}")))) (} "}")))) (if_statement "if (iVar7 == iVar8) {\n        return;\n      }" (if "if") (parenthesized_expression "(iVar7 == iVar8)" (( "(") (binary_expression "iVar7 == iVar8" (identifier "iVar7") (== "==") (identifier "iVar8")) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "*(int *)(param_1 + 4) = *(int *)(param_1 + 4) + (iVar8 - iVar7);" (assignment_expression "*(int *)(param_1 + 4) = *(int *)(param_1 + 4) + (iVar8 - iVar7)" (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" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (binary_expression "*(int *)(param_1 + 4) + (iVar8 - iVar7)" (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" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (+ "+") (parenthesized_expression "(iVar8 - iVar7)" (( "(") (binary_expression "iVar8 - iVar7" (identifier "iVar8") (- "-") (identifier "iVar7")) () ")")))) (; ";")) (expression_statement "local_40[1] = local_40[1] + (iVar8 - iVar7);" (assignment_expression "local_40[1] = local_40[1] + (iVar8 - iVar7)" (subscript_expression "local_40[1]" (identifier "local_40") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "local_40[1] + (iVar8 - iVar7)" (subscript_expression "local_40[1]" (identifier "local_40") ([ "[") (number_literal "1") (] "]")) (+ "+") (parenthesized_expression "(iVar8 - iVar7)" (( "(") (binary_expression "iVar8 - iVar7" (identifier "iVar8") (- "-") (identifier "iVar7")) () ")")))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (labeled_statement "LAB_0017f425:\n  piVar5 = (int *)FUN_003ac4d0(0xc);" (statement_identifier "LAB_0017f425") (: ":") (expression_statement "piVar5 = (int *)FUN_003ac4d0(0xc);" (assignment_expression "piVar5 = (int *)FUN_003ac4d0(0xc)" (identifier "piVar5") (= "=") (cast_expression "(int *)FUN_003ac4d0(0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_003ac4d0(0xc)" (identifier "FUN_003ac4d0") (argument_list "(0xc)" (( "(") (number_literal "0xc") () ")"))))) (; ";"))) (expression_statement "*piVar5 = 0;" (assignment_expression "*piVar5 = 0" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar8 = *piVar4;" (assignment_expression "iVar8 = *piVar4" (identifier "iVar8") (= "=") (pointer_expression "*piVar4" (* "*") (identifier "piVar4"))) (; ";")) (expression_statement "piVar5[1] = param_4;" (assignment_expression "piVar5[1] = param_4" (subscript_expression "piVar5[1]" (identifier "piVar5") ([ "[") (number_literal "1") (] "]")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "*piVar5 = iVar8;" (assignment_expression "*piVar5 = iVar8" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (identifier "iVar8")) (; ";")) (expression_statement "piVar5[2] = param_4;" (assignment_expression "piVar5[2] = param_4" (subscript_expression "piVar5[2]" (identifier "piVar5") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "*piVar4 = (int)piVar5;" (assignment_expression "*piVar4 = (int)piVar5" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (= "=") (cast_expression "(int)piVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar5"))) (; ";")) (expression_statement "*(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;" (assignment_expression "*(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1" (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" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (= "=") (binary_expression "*(int *)(param_1 + 4) + 1" (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" (identifier "param_1") (+ "+") (number_literal "4")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "local_40[1] = local_40[1] + 1;" (assignment_expression "local_40[1] = local_40[1] + 1" (subscript_expression "local_40[1]" (identifier "local_40") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "local_40[1] + 1" (subscript_expression "local_40[1]" (identifier "local_40") ([ "[") (number_literal "1") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* DWARF original prototype: void record_got_page_entry(Mips_got_info<64,_false> * this,
   Mips_relobj<64,_false> * object, uint symndx, int addend) */

void __thiscall
anon_unknown.dwarf_d7d43e::Mips_got_info<64,_false>::record_got_page_entry
          (Mips_got_info<64,_false> *this,Mips_relobj<64,_false> *object,uint symndx,int addend)

{
  Got_page_entry *entry;
  
}


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

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

void __regparm3 MASKED(int param_1,int param_2,int param_3,int param_4)

{
  int *piVar1;
  int iVar2;
  int iVar3;
  int *piVar4;
  int *piVar5;
  uint uVar6;
  int iVar7;
  int iVar8;
  undefined4 *local_40;
  int local_30;
  
  piVar4 = (int *)FUN_003ac4d0(0xc);
  *piVar4 = param_2;
  piVar4[1] = param_3;
  piVar4[2] = 0;
  FUN_0016f8a0();
  if (local_30 == 0) {
    FUN_00177cc0();
    local_40 = *(undefined4 **)(param_2 + 0x1ec);
  }
  else {
    piVar4 = *(int **)(local_30 + 4);
    local_40 = *(undefined4 **)(param_2 + 0x1ec);
  }
  if (local_40 == (undefined4 *)0x0) {
    local_40 = (undefined4 *)FUN_003ac4d0(0x9c);
    *local_40 = 0;
    local_40[1] = 0;
    local_40[2] = 0;
    local_40[3] = 0;
    local_40[4] = 0;
    local_40[5] = 0xffffffff;
    uVar6 = 0;
    do {
      *(undefined4 *)((int)local_40 + uVar6 + 0x18) = 0;
      uVar6 = uVar6 + 4;
    } while (uVar6 < 0x1c);
    local_40[7] = 1;
    local_40[8] = 0;
    local_40[9] = 0;
    local_40[10] = 0x3f800000;
    local_40[0xb] = 0;
    local_40[0xc] = 0;
    local_40[6] = local_40 + 0xc;
    uVar6 = 0;
    do {
      *(undefined4 *)((int)local_40 + uVar6 + 0x34) = 0;
      uVar6 = uVar6 + 4;
    } while (uVar6 < 0x1c);
    local_40[0xe] = 1;
    local_40[0xf] = 0;
    local_40[0x10] = 0;
    local_40[0x11] = 0x3f800000;
    local_40[0x12] = 0;
    local_40[0x13] = 0;
    local_40[0xd] = local_40 + 0x13;
    uVar6 = 0;
    do {
      *(undefined4 *)((int)local_40 + uVar6 + 0x50) = 0;
      uVar6 = uVar6 + 4;
    } while (uVar6 < 0x1c);
    local_40[0x15] = 1;
    local_40[0x16] = 0;
    local_40[0x17] = 0;
    local_40[0x18] = 0x3f800000;
    local_40[0x19] = 0;
    local_40[0x1a] = 0;
    local_40[0x1b] = 0;
    local_40[0x1c] = 0;
    local_40[0x14] = local_40 + 0x1a;
    uVar6 = 0;
    do {
      *(undefined4 *)((int)local_40 + uVar6 + 0x74) = 0;
      uVar6 = uVar6 + 4;
    } while (uVar6 < 0x1c);
    *(undefined4 **)(param_2 + 0x1ec) = local_40;
    local_40[0x1d] = local_40 + 0x23;
    local_40[0x1e] = 1;
    local_40[0x1f] = 0;
    local_40[0x20] = 0;
    local_40[0x21] = 0x3f800000;
    local_40[0x22] = 0;
    local_40[0x23] = 0;
    local_40[0x24] = 0;
    local_40[0x25] = 0xffffffff;
    local_40[0x26] = 0;
  }
  piVar5 = (int *)piVar4[2];
  piVar4 = piVar4 + 2;
  if (piVar5 != (int *)0x0) {
    iVar8 = piVar5[2];
    while (iVar8 + 0xffff < param_4) {
      piVar1 = (int *)*piVar5;
      piVar4 = piVar5;
      if (piVar1 == (int *)0x0) goto LAB_0017f425;
      piVar5 = piVar1;
      iVar8 = piVar1[2];
    }
    iVar8 = piVar5[1];
    if (iVar8 + -0xffff <= param_4) {
      iVar2 = piVar5[2];
      iVar7 = (iVar2 - iVar8) + 0x1ffff >> 0x10;
      if (param_4 < iVar8) {
        piVar5[1] = param_4;
        iVar8 = (iVar2 - param_4) + 0x1ffff >> 0x10;
      }
      else {
        if (param_4 <= iVar2) {
          return;
        }
        piVar4 = (int *)*piVar5;
        if ((piVar4 == (int *)0x0) || (iVar2 = piVar4[1], param_4 < iVar2 + -0xffff)) {
          piVar5[2] = param_4;
          iVar8 = (param_4 - iVar8) + 0x1ffff >> 0x10;
        }
        else {
          iVar3 = piVar4[2];
          piVar5[2] = iVar3;
          iVar7 = iVar7 + ((iVar3 - iVar2) + 0x1ffff >> 0x10);
          *piVar5 = *piVar4;
          iVar8 = (iVar3 - iVar8) + 0x1ffff >> 0x10;
        }
      }
      if (iVar7 == iVar8) {
        return;
      }
      *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + (iVar8 - iVar7);
      local_40[1] = local_40[1] + (iVar8 - iVar7);
      return;
    }
  }
LAB_0017f425:
  piVar5 = (int *)FUN_003ac4d0(0xc);
  *piVar5 = 0;
  iVar8 = *piVar4;
  piVar5[1] = param_4;
  *piVar5 = iVar8;
  piVar5[2] = param_4;
  *piVar4 = (int)piVar5;
  *(int *)(param_1 + 4) = *(int *)(param_1 + 4) + 1;
  local_40[1] = local_40[1] + 1;
  return;
}

