
zlib_table * __regparm3 zlib_mktable(uchar *lengths,int nlengths)

{
  int iVar1;
  uint uVar2;
  uint uVar3;
  zlib_table *pzVar4;
  int iVar5;
  uint uVar6;
  uint uVar7;
  byte *pbVar8;
  uint *puVar9;
  int *piVar10;
  int in_GS_OFFSET;
  uint local_534;
  int *local_530;
  int count [16];
  int startcode [16];
  int codes [288];
  
  piVar10 = count;
  iVar1 = *(int *)(in_GS_OFFSET + 0x14);
  for (iVar5 = 0xf; piVar10 = piVar10 + 1, iVar5 != 0; iVar5 = iVar5 + -1) {
    *piVar10 = 0;
  }
  if (nlengths < 1) {
    local_534 = 0;
  }
  else {
    uVar6 = 0;
    pbVar8 = lengths;
    do {
      uVar2 = (uint)*pbVar8;
      count[uVar2] = count[uVar2] + 1;
      if (uVar6 < uVar2) {
        uVar6 = uVar2;
      }
      pbVar8 = pbVar8 + 1;
    } while (lengths + nlengths != pbVar8);
    local_534 = 9;
    if (uVar6 < 10) {
      local_534 = uVar6;
    }
  }
  startcode[1] = 0;
  startcode[2] = count[1] * 2;
  startcode[3] = (count[1] * 2 + count[2]) * 2;
  startcode[4] = (startcode[3] + count[3]) * 2;
  startcode[5] = (startcode[4] + count[4]) * 2;
  startcode[6] = (startcode[5] + count[5]) * 2;
  startcode[7] = (startcode[6] + count[6]) * 2;
  startcode[8] = (startcode[7] + count[7]) * 2;
  startcode[9] = (startcode[8] + count[8]) * 2;
  startcode[10] = (startcode[9] + count[9]) * 2;
  startcode[0xb] = (startcode[10] + count[10]) * 2;
  startcode[0xc] = (startcode[0xb] + count[0xb]) * 2;
  startcode[0xd] = (startcode[0xc] + count[0xc]) * 2;
  startcode[0xe] = (startcode[0xd] + count[0xd]) * 2;
  startcode[0xf] = (startcode[0xe] + count[0xe]) * 2;
  if (0 < nlengths) {
    puVar9 = (uint *)codes;
    pbVar8 = lengths;
    do {
      uVar2 = (uint)*pbVar8;
      *puVar9 = 0;
      uVar6 = startcode[uVar2];
      startcode[uVar2] = uVar6 + 1;
      if (uVar2 != 0) {
        uVar3 = 0;
        uVar7 = 0;
        do {
          uVar7 = uVar7 + 1;
          uVar3 = uVar3 * 2 | uVar6 & 1;
          uVar6 = (int)uVar6 >> 1;
        } while (uVar2 != uVar7);
        *puVar9 = uVar3;
      }
      pbVar8 = pbVar8 + 1;
      puVar9 = puVar9 + 1;
    } while (pbVar8 != lengths + nlengths);
  }
  local_530 = codes;
  pzVar4 = zlib_mkonetab(local_530,lengths,nlengths,0,0,local_534);
  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return pzVar4;
}



void __regparm3 FUN_00071950(byte *param_1,int param_2)

{
  uint uVar1;
  uint uVar2;
  int iVar3;
  uint uVar4;
  uint uVar5;
  byte *pbVar6;
  uint *puVar7;
  int *piVar8;
  int in_GS_OFFSET;
  uint local_534;
  int aiStack_520 [5];
  int local_50c;
  int local_508;
  int local_504;
  int local_500;
  int local_4fc;
  int local_4f8;
  int local_4f4;
  int local_4f0;
  int local_4ec;
  int local_4e8;
  uint auStack_4e0 [4];
  int local_4d0;
  int local_4cc;
  int local_4c8;
  int local_4c4;
  int local_4c0;
  int local_4bc;
  int local_4b8;
  int local_4b4;
  int local_4b0;
  int local_4ac;
  int local_4a8;
  int local_4a4;
  uint local_4a0 [288];
  int local_20;
  
  piVar8 = aiStack_520;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  for (iVar3 = 0xf; piVar8 = piVar8 + 1, iVar3 != 0; iVar3 = iVar3 + -1) {
    *piVar8 = 0;
  }
  if (param_2 < 1) {
    local_534 = 0;
  }
  else {
    uVar4 = 0;
    pbVar6 = param_1;
    do {
      uVar1 = (uint)*pbVar6;
      aiStack_520[uVar1] = aiStack_520[uVar1] + 1;
      if (uVar4 < uVar1) {
        uVar4 = uVar1;
      }
      pbVar6 = pbVar6 + 1;
    } while (param_1 + param_2 != pbVar6);
    local_534 = 9;
    if (uVar4 < 10) {
      local_534 = uVar4;
    }
  }
  auStack_4e0[1] = 0;
  auStack_4e0[2] = aiStack_520[1] * 2;
  auStack_4e0[3] = (aiStack_520[1] * 2 + aiStack_520[2]) * 2;
  local_4d0 = (auStack_4e0[3] + aiStack_520[3]) * 2;
  local_4cc = (local_4d0 + aiStack_520[4]) * 2;
  local_4c8 = (local_4cc + local_50c) * 2;
  local_4c4 = (local_4c8 + local_508) * 2;
  local_4c0 = (local_4c4 + local_504) * 2;
  local_4bc = (local_4c0 + local_500) * 2;
  local_4b8 = (local_4bc + local_4fc) * 2;
  local_4b4 = (local_4b8 + local_4f8) * 2;
  local_4b0 = (local_4b4 + local_4f4) * 2;
  local_4ac = (local_4b0 + local_4f0) * 2;
  local_4a8 = (local_4ac + local_4ec) * 2;
  local_4a4 = (local_4a8 + local_4e8) * 2;
  if (0 < param_2) {
    puVar7 = local_4a0;
    pbVar6 = param_1 + param_2;
    do {
      uVar1 = (uint)*param_1;
      *puVar7 = 0;
      uVar4 = auStack_4e0[uVar1];
      auStack_4e0[uVar1] = uVar4 + 1;
      if (uVar1 != 0) {
        uVar2 = 0;
        uVar5 = 0;
        do {
          uVar5 = uVar5 + 1;
          uVar2 = uVar2 * 2 | uVar4 & 1;
          uVar4 = (int)uVar4 >> 1;
        } while (uVar1 != uVar5);
        *puVar7 = uVar2;
      }
      param_1 = param_1 + 1;
      puVar7 = puVar7 + 1;
    } while (param_1 != pbVar6);
  }
  FUN_00071760(0,0,local_534);
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00089270();
  }
  return;
}


PUSH EBP
MOV ECX,0xf
PUSH EDI
PUSH ESI
MOV ESI,EDX
PUSH EBX
MOV EBX,EAX
SUB ESP,0x53c
MOV dword ptr [ESP + 0x10],EDX
LEA EDX,[ESP + 0x30]
MOV dword ptr [ESP + 0x14],EAX
MOV EDI,EDX
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x52c],EAX
XOR EAX,EAX
STOSD.REP ES:EDI
TEST ESI,ESI
JLE 0x00071b1b
MOV EDI,ESI
MOV EDX,EBX
ADD EDI,EBX
MOV EBX,EDI
LEA ESI,[ESI]
MOVZX EAX,byte ptr [EDX]
ADD dword ptr [ESP + EAX*0x4 + 0x2c],0x1
CMP ECX,EAX
CMOVL ECX,EAX
ADD EDX,0x1
CMP EBX,EDX
JNZ 0x00071998
CMP ECX,0x9
MOV EAX,0x9
CMOVLE EAX,ECX
MOV dword ptr [ESP + 0x18],EAX
MOV EAX,dword ptr [ESP + 0x30]
MOV dword ptr [ESP + 0x70],0x0
ADD EAX,EAX
MOV dword ptr [ESP + 0x74],EAX
ADD EAX,dword ptr [ESP + 0x34]
ADD EAX,EAX
MOV dword ptr [ESP + 0x78],EAX
ADD EAX,dword ptr [ESP + 0x38]
ADD EAX,EAX
MOV dword ptr [ESP + 0x7c],EAX
ADD EAX,dword ptr [ESP + 0x3c]
ADD EAX,EAX
MOV dword ptr [ESP + 0x80],EAX
ADD EAX,dword ptr [ESP + 0x40]
ADD EAX,EAX
MOV dword ptr [ESP + 0x84],EAX
ADD EAX,dword ptr [ESP + 0x44]
ADD EAX,EAX
MOV dword ptr [ESP + 0x88],EAX
ADD EAX,dword ptr [ESP + 0x48]
ADD EAX,EAX
MOV dword ptr [ESP + 0x8c],EAX
ADD EAX,dword ptr [ESP + 0x4c]
ADD EAX,EAX
MOV dword ptr [ESP + 0x90],EAX
ADD EAX,dword ptr [ESP + 0x50]
ADD EAX,EAX
MOV dword ptr [ESP + 0x94],EAX
ADD EAX,dword ptr [ESP + 0x54]
ADD EAX,EAX
MOV dword ptr [ESP + 0x98],EAX
ADD EAX,dword ptr [ESP + 0x58]
ADD EAX,EAX
MOV dword ptr [ESP + 0x9c],EAX
ADD EAX,dword ptr [ESP + 0x5c]
ADD EAX,EAX
MOV dword ptr [ESP + 0xa0],EAX
ADD EAX,dword ptr [ESP + 0x60]
ADD EAX,EAX
MOV dword ptr [ESP + 0xa4],EAX
ADD EAX,dword ptr [ESP + 0x64]
ADD EAX,EAX
MOV dword ptr [ESP + 0xa8],EAX
MOV EAX,dword ptr [ESP + 0x10]
TEST EAX,EAX
JLE 0x00071b28
LEA EAX,[ESP + 0xac]
MOV ESI,dword ptr [ESP + 0x14]
MOV dword ptr [ESP + 0x1c],EAX
MOV EBP,EAX
MOV EAX,dword ptr [ESP + 0x10]
MOV EDI,ESI
ADD EAX,ESI
MOV dword ptr [ESP + 0xc],EAX
LEA ESI,[ESI]
MOVZX ESI,byte ptr [EDI]
MOV dword ptr [EBP],0x0
MOV EDX,dword ptr [ESP + ESI*0x4 + 0x6c]
LEA EAX,[EDX + 0x1]
MOV dword ptr [ESP + ESI*0x4 + 0x6c],EAX
TEST ESI,ESI
JZ 0x00071ad5
XOR EAX,EAX
XOR ECX,ECX
LEA ESI,[ESI]
MOV EBX,EDX
ADD EAX,EAX
ADD ECX,0x1
SAR EDX,0x1
AND EBX,0x1
OR EAX,EBX
CMP ESI,ECX
JNZ 0x00071ac0
MOV dword ptr [EBP],EAX
ADD EDI,0x1
ADD EBP,0x4
CMP EDI,dword ptr [ESP + 0xc]
JNZ 0x00071aa0
SUB ESP,0x4
PUSH dword ptr [ESP + 0x1c]
PUSH 0x0
PUSH 0x0
MOV ECX,dword ptr [ESP + 0x20]
MOV EDX,dword ptr [ESP + 0x24]
MOV EAX,dword ptr [ESP + 0x2c]
CALL 0x00071760
ADD ESP,0x10
MOV EDI,dword ptr [ESP + 0x52c]
XOR EDI,dword ptr GS:[0x14]
JNZ 0x00071b35
ADD ESP,0x53c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV dword ptr [ESP + 0x18],0x0
JMP 0x000719bb
LEA EAX,[ESP + 0xac]
MOV dword ptr [ESP + 0x1c],EAX
JMP 0x00071ae1
CALL 0x00089270
(translation_unit "void __regparm3 FUN_00071950(byte *param_1,int param_2)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  byte *pbVar6;\n  uint *puVar7;\n  int *piVar8;\n  int in_GS_OFFSET;\n  uint local_534;\n  int aiStack_520 [5];\n  int local_50c;\n  int local_508;\n  int local_504;\n  int local_500;\n  int local_4fc;\n  int local_4f8;\n  int local_4f4;\n  int local_4f0;\n  int local_4ec;\n  int local_4e8;\n  uint auStack_4e0 [4];\n  int local_4d0;\n  int local_4cc;\n  int local_4c8;\n  int local_4c4;\n  int local_4c0;\n  int local_4bc;\n  int local_4b8;\n  int local_4b4;\n  int local_4b0;\n  int local_4ac;\n  int local_4a8;\n  int local_4a4;\n  uint local_4a0 [288];\n  int local_20;\n  \n  piVar8 = aiStack_520;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  for (iVar3 = 0xf; piVar8 = piVar8 + 1, iVar3 != 0; iVar3 = iVar3 + -1) {\n    *piVar8 = 0;\n  }\n  if (param_2 < 1) {\n    local_534 = 0;\n  }\n  else {\n    uVar4 = 0;\n    pbVar6 = param_1;\n    do {\n      uVar1 = (uint)*pbVar6;\n      aiStack_520[uVar1] = aiStack_520[uVar1] + 1;\n      if (uVar4 < uVar1) {\n        uVar4 = uVar1;\n      }\n      pbVar6 = pbVar6 + 1;\n    } while (param_1 + param_2 != pbVar6);\n    local_534 = 9;\n    if (uVar4 < 10) {\n      local_534 = uVar4;\n    }\n  }\n  auStack_4e0[1] = 0;\n  auStack_4e0[2] = aiStack_520[1] * 2;\n  auStack_4e0[3] = (aiStack_520[1] * 2 + aiStack_520[2]) * 2;\n  local_4d0 = (auStack_4e0[3] + aiStack_520[3]) * 2;\n  local_4cc = (local_4d0 + aiStack_520[4]) * 2;\n  local_4c8 = (local_4cc + local_50c) * 2;\n  local_4c4 = (local_4c8 + local_508) * 2;\n  local_4c0 = (local_4c4 + local_504) * 2;\n  local_4bc = (local_4c0 + local_500) * 2;\n  local_4b8 = (local_4bc + local_4fc) * 2;\n  local_4b4 = (local_4b8 + local_4f8) * 2;\n  local_4b0 = (local_4b4 + local_4f4) * 2;\n  local_4ac = (local_4b0 + local_4f0) * 2;\n  local_4a8 = (local_4ac + local_4ec) * 2;\n  local_4a4 = (local_4a8 + local_4e8) * 2;\n  if (0 < param_2) {\n    puVar7 = local_4a0;\n    pbVar6 = param_1 + param_2;\n    do {\n      uVar1 = (uint)*param_1;\n      *puVar7 = 0;\n      uVar4 = auStack_4e0[uVar1];\n      auStack_4e0[uVar1] = uVar4 + 1;\n      if (uVar1 != 0) {\n        uVar2 = 0;\n        uVar5 = 0;\n        do {\n          uVar5 = uVar5 + 1;\n          uVar2 = uVar2 * 2 | uVar4 & 1;\n          uVar4 = (int)uVar4 >> 1;\n        } while (uVar1 != uVar5);\n        *puVar7 = uVar2;\n      }\n      param_1 = param_1 + 1;\n      puVar7 = puVar7 + 1;\n    } while (param_1 != pbVar6);\n  }\n  FUN_00071760(0,0,local_534);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00089270();\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00071950(byte *param_1,int param_2)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  byte *pbVar6;\n  uint *puVar7;\n  int *piVar8;\n  int in_GS_OFFSET;\n  uint local_534;\n  int aiStack_520 [5];\n  int local_50c;\n  int local_508;\n  int local_504;\n  int local_500;\n  int local_4fc;\n  int local_4f8;\n  int local_4f4;\n  int local_4f0;\n  int local_4ec;\n  int local_4e8;\n  uint auStack_4e0 [4];\n  int local_4d0;\n  int local_4cc;\n  int local_4c8;\n  int local_4c4;\n  int local_4c0;\n  int local_4bc;\n  int local_4b8;\n  int local_4b4;\n  int local_4b0;\n  int local_4ac;\n  int local_4a8;\n  int local_4a4;\n  uint local_4a0 [288];\n  int local_20;\n  \n  piVar8 = aiStack_520;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  for (iVar3 = 0xf; piVar8 = piVar8 + 1, iVar3 != 0; iVar3 = iVar3 + -1) {\n    *piVar8 = 0;\n  }\n  if (param_2 < 1) {\n    local_534 = 0;\n  }\n  else {\n    uVar4 = 0;\n    pbVar6 = param_1;\n    do {\n      uVar1 = (uint)*pbVar6;\n      aiStack_520[uVar1] = aiStack_520[uVar1] + 1;\n      if (uVar4 < uVar1) {\n        uVar4 = uVar1;\n      }\n      pbVar6 = pbVar6 + 1;\n    } while (param_1 + param_2 != pbVar6);\n    local_534 = 9;\n    if (uVar4 < 10) {\n      local_534 = uVar4;\n    }\n  }\n  auStack_4e0[1] = 0;\n  auStack_4e0[2] = aiStack_520[1] * 2;\n  auStack_4e0[3] = (aiStack_520[1] * 2 + aiStack_520[2]) * 2;\n  local_4d0 = (auStack_4e0[3] + aiStack_520[3]) * 2;\n  local_4cc = (local_4d0 + aiStack_520[4]) * 2;\n  local_4c8 = (local_4cc + local_50c) * 2;\n  local_4c4 = (local_4c8 + local_508) * 2;\n  local_4c0 = (local_4c4 + local_504) * 2;\n  local_4bc = (local_4c0 + local_500) * 2;\n  local_4b8 = (local_4bc + local_4fc) * 2;\n  local_4b4 = (local_4b8 + local_4f8) * 2;\n  local_4b0 = (local_4b4 + local_4f4) * 2;\n  local_4ac = (local_4b0 + local_4f0) * 2;\n  local_4a8 = (local_4ac + local_4ec) * 2;\n  local_4a4 = (local_4a8 + local_4e8) * 2;\n  if (0 < param_2) {\n    puVar7 = local_4a0;\n    pbVar6 = param_1 + param_2;\n    do {\n      uVar1 = (uint)*param_1;\n      *puVar7 = 0;\n      uVar4 = auStack_4e0[uVar1];\n      auStack_4e0[uVar1] = uVar4 + 1;\n      if (uVar1 != 0) {\n        uVar2 = 0;\n        uVar5 = 0;\n        do {\n          uVar5 = uVar5 + 1;\n          uVar2 = uVar2 * 2 | uVar4 & 1;\n          uVar4 = (int)uVar4 >> 1;\n        } while (uVar1 != uVar5);\n        *puVar7 = uVar2;\n      }\n      param_1 = param_1 + 1;\n      puVar7 = puVar7 + 1;\n    } while (param_1 != pbVar6);\n  }\n  FUN_00071760(0,0,local_534);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00089270();\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00071950(byte *param_1,int param_2)" identifier (parameter_list "(byte *param_1,int param_2)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  byte *pbVar6;\n  uint *puVar7;\n  int *piVar8;\n  int in_GS_OFFSET;\n  uint local_534;\n  int aiStack_520 [5];\n  int local_50c;\n  int local_508;\n  int local_504;\n  int local_500;\n  int local_4fc;\n  int local_4f8;\n  int local_4f4;\n  int local_4f0;\n  int local_4ec;\n  int local_4e8;\n  uint auStack_4e0 [4];\n  int local_4d0;\n  int local_4cc;\n  int local_4c8;\n  int local_4c4;\n  int local_4c0;\n  int local_4bc;\n  int local_4b8;\n  int local_4b4;\n  int local_4b0;\n  int local_4ac;\n  int local_4a8;\n  int local_4a4;\n  uint local_4a0 [288];\n  int local_20;\n  \n  piVar8 = aiStack_520;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  for (iVar3 = 0xf; piVar8 = piVar8 + 1, iVar3 != 0; iVar3 = iVar3 + -1) {\n    *piVar8 = 0;\n  }\n  if (param_2 < 1) {\n    local_534 = 0;\n  }\n  else {\n    uVar4 = 0;\n    pbVar6 = param_1;\n    do {\n      uVar1 = (uint)*pbVar6;\n      aiStack_520[uVar1] = aiStack_520[uVar1] + 1;\n      if (uVar4 < uVar1) {\n        uVar4 = uVar1;\n      }\n      pbVar6 = pbVar6 + 1;\n    } while (param_1 + param_2 != pbVar6);\n    local_534 = 9;\n    if (uVar4 < 10) {\n      local_534 = uVar4;\n    }\n  }\n  auStack_4e0[1] = 0;\n  auStack_4e0[2] = aiStack_520[1] * 2;\n  auStack_4e0[3] = (aiStack_520[1] * 2 + aiStack_520[2]) * 2;\n  local_4d0 = (auStack_4e0[3] + aiStack_520[3]) * 2;\n  local_4cc = (local_4d0 + aiStack_520[4]) * 2;\n  local_4c8 = (local_4cc + local_50c) * 2;\n  local_4c4 = (local_4c8 + local_508) * 2;\n  local_4c0 = (local_4c4 + local_504) * 2;\n  local_4bc = (local_4c0 + local_500) * 2;\n  local_4b8 = (local_4bc + local_4fc) * 2;\n  local_4b4 = (local_4b8 + local_4f8) * 2;\n  local_4b0 = (local_4b4 + local_4f4) * 2;\n  local_4ac = (local_4b0 + local_4f0) * 2;\n  local_4a8 = (local_4ac + local_4ec) * 2;\n  local_4a4 = (local_4a8 + local_4e8) * 2;\n  if (0 < param_2) {\n    puVar7 = local_4a0;\n    pbVar6 = param_1 + param_2;\n    do {\n      uVar1 = (uint)*param_1;\n      *puVar7 = 0;\n      uVar4 = auStack_4e0[uVar1];\n      auStack_4e0[uVar1] = uVar4 + 1;\n      if (uVar1 != 0) {\n        uVar2 = 0;\n        uVar5 = 0;\n        do {\n          uVar5 = uVar5 + 1;\n          uVar2 = uVar2 * 2 | uVar4 & 1;\n          uVar4 = (int)uVar4 >> 1;\n        } while (uVar1 != uVar5);\n        *puVar7 = uVar2;\n      }\n      param_1 = param_1 + 1;\n      puVar7 = puVar7 + 1;\n    } while (param_1 != pbVar6);\n  }\n  FUN_00071760(0,0,local_534);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00089270();\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "uint *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "int *piVar8;" primitive_type (pointer_declarator "*piVar8" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uint local_534;" type_identifier identifier ;) (declaration "int aiStack_520 [5];" primitive_type (array_declarator "aiStack_520 [5]" identifier [ number_literal ]) ;) (declaration "int local_50c;" primitive_type identifier ;) (declaration "int local_508;" primitive_type identifier ;) (declaration "int local_504;" primitive_type identifier ;) (declaration "int local_500;" primitive_type identifier ;) (declaration "int local_4fc;" primitive_type identifier ;) (declaration "int local_4f8;" primitive_type identifier ;) (declaration "int local_4f4;" primitive_type identifier ;) (declaration "int local_4f0;" primitive_type identifier ;) (declaration "int local_4ec;" primitive_type identifier ;) (declaration "int local_4e8;" primitive_type identifier ;) (declaration "uint auStack_4e0 [4];" type_identifier (array_declarator "auStack_4e0 [4]" identifier [ number_literal ]) ;) (declaration "int local_4d0;" primitive_type identifier ;) (declaration "int local_4cc;" primitive_type identifier ;) (declaration "int local_4c8;" primitive_type identifier ;) (declaration "int local_4c4;" primitive_type identifier ;) (declaration "int local_4c0;" primitive_type identifier ;) (declaration "int local_4bc;" primitive_type identifier ;) (declaration "int local_4b8;" primitive_type identifier ;) (declaration "int local_4b4;" primitive_type identifier ;) (declaration "int local_4b0;" primitive_type identifier ;) (declaration "int local_4ac;" primitive_type identifier ;) (declaration "int local_4a8;" primitive_type identifier ;) (declaration "int local_4a4;" primitive_type identifier ;) (declaration "uint local_4a0 [288];" type_identifier (array_declarator "local_4a0 [288]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "piVar8 = aiStack_520;" (assignment_expression "piVar8 = aiStack_520" identifier = identifier) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (for_statement "for (iVar3 = 0xf; piVar8 = piVar8 + 1, iVar3 != 0; iVar3 = iVar3 + -1) {\n    *piVar8 = 0;\n  }" for ( (assignment_expression "iVar3 = 0xf" identifier = number_literal) ; (comma_expression "piVar8 = piVar8 + 1, iVar3 != 0" (assignment_expression "piVar8 = piVar8 + 1" identifier = (binary_expression "piVar8 + 1" identifier + number_literal)) , (binary_expression "iVar3 != 0" identifier != number_literal)) ; (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ) (compound_statement "{\n    *piVar8 = 0;\n  }" { (expression_statement "*piVar8 = 0;" (assignment_expression "*piVar8 = 0" (pointer_expression "*piVar8" * identifier) = number_literal) ;) })) (if_statement "if (param_2 < 1) {\n    local_534 = 0;\n  }\n  else {\n    uVar4 = 0;\n    pbVar6 = param_1;\n    do {\n      uVar1 = (uint)*pbVar6;\n      aiStack_520[uVar1] = aiStack_520[uVar1] + 1;\n      if (uVar4 < uVar1) {\n        uVar4 = uVar1;\n      }\n      pbVar6 = pbVar6 + 1;\n    } while (param_1 + param_2 != pbVar6);\n    local_534 = 9;\n    if (uVar4 < 10) {\n      local_534 = uVar4;\n    }\n  }" if (parenthesized_expression "(param_2 < 1)" ( (binary_expression "param_2 < 1" identifier < number_literal) )) (compound_statement "{\n    local_534 = 0;\n  }" { (expression_statement "local_534 = 0;" (assignment_expression "local_534 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    uVar4 = 0;\n    pbVar6 = param_1;\n    do {\n      uVar1 = (uint)*pbVar6;\n      aiStack_520[uVar1] = aiStack_520[uVar1] + 1;\n      if (uVar4 < uVar1) {\n        uVar4 = uVar1;\n      }\n      pbVar6 = pbVar6 + 1;\n    } while (param_1 + param_2 != pbVar6);\n    local_534 = 9;\n    if (uVar4 < 10) {\n      local_534 = uVar4;\n    }\n  }" else (compound_statement "{\n    uVar4 = 0;\n    pbVar6 = param_1;\n    do {\n      uVar1 = (uint)*pbVar6;\n      aiStack_520[uVar1] = aiStack_520[uVar1] + 1;\n      if (uVar4 < uVar1) {\n        uVar4 = uVar1;\n      }\n      pbVar6 = pbVar6 + 1;\n    } while (param_1 + param_2 != pbVar6);\n    local_534 = 9;\n    if (uVar4 < 10) {\n      local_534 = uVar4;\n    }\n  }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "pbVar6 = param_1;" (assignment_expression "pbVar6 = param_1" identifier = identifier) ;) (do_statement "do {\n      uVar1 = (uint)*pbVar6;\n      aiStack_520[uVar1] = aiStack_520[uVar1] + 1;\n      if (uVar4 < uVar1) {\n        uVar4 = uVar1;\n      }\n      pbVar6 = pbVar6 + 1;\n    } while (param_1 + param_2 != pbVar6);" do (compound_statement "{\n      uVar1 = (uint)*pbVar6;\n      aiStack_520[uVar1] = aiStack_520[uVar1] + 1;\n      if (uVar4 < uVar1) {\n        uVar4 = uVar1;\n      }\n      pbVar6 = pbVar6 + 1;\n    }" { (expression_statement "uVar1 = (uint)*pbVar6;" (assignment_expression "uVar1 = (uint)*pbVar6" identifier = (binary_expression "(uint)*pbVar6" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "aiStack_520[uVar1] = aiStack_520[uVar1] + 1;" (assignment_expression "aiStack_520[uVar1] = aiStack_520[uVar1] + 1" (subscript_expression "aiStack_520[uVar1]" identifier [ identifier ]) = (binary_expression "aiStack_520[uVar1] + 1" (subscript_expression "aiStack_520[uVar1]" identifier [ identifier ]) + number_literal)) ;) (if_statement "if (uVar4 < uVar1) {\n        uVar4 = uVar1;\n      }" if (parenthesized_expression "(uVar4 < uVar1)" ( (binary_expression "uVar4 < uVar1" identifier < identifier) )) (compound_statement "{\n        uVar4 = uVar1;\n      }" { (expression_statement "uVar4 = uVar1;" (assignment_expression "uVar4 = uVar1" identifier = identifier) ;) })) (expression_statement "pbVar6 = pbVar6 + 1;" (assignment_expression "pbVar6 = pbVar6 + 1" identifier = (binary_expression "pbVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_1 + param_2 != pbVar6)" ( (binary_expression "param_1 + param_2 != pbVar6" (binary_expression "param_1 + param_2" identifier + identifier) != identifier) )) ;) (expression_statement "local_534 = 9;" (assignment_expression "local_534 = 9" identifier = number_literal) ;) (if_statement "if (uVar4 < 10) {\n      local_534 = uVar4;\n    }" if (parenthesized_expression "(uVar4 < 10)" ( (binary_expression "uVar4 < 10" identifier < number_literal) )) (compound_statement "{\n      local_534 = uVar4;\n    }" { (expression_statement "local_534 = uVar4;" (assignment_expression "local_534 = uVar4" identifier = identifier) ;) })) }))) (expression_statement "auStack_4e0[1] = 0;" (assignment_expression "auStack_4e0[1] = 0" (subscript_expression "auStack_4e0[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "auStack_4e0[2] = aiStack_520[1] * 2;" (assignment_expression "auStack_4e0[2] = aiStack_520[1] * 2" (subscript_expression "auStack_4e0[2]" identifier [ number_literal ]) = (binary_expression "aiStack_520[1] * 2" (subscript_expression "aiStack_520[1]" identifier [ number_literal ]) * number_literal)) ;) (expression_statement "auStack_4e0[3] = (aiStack_520[1] * 2 + aiStack_520[2]) * 2;" (assignment_expression "auStack_4e0[3] = (aiStack_520[1] * 2 + aiStack_520[2]) * 2" (subscript_expression "auStack_4e0[3]" identifier [ number_literal ]) = (binary_expression "(aiStack_520[1] * 2 + aiStack_520[2]) * 2" (parenthesized_expression "(aiStack_520[1] * 2 + aiStack_520[2])" ( (binary_expression "aiStack_520[1] * 2 + aiStack_520[2]" (binary_expression "aiStack_520[1] * 2" (subscript_expression "aiStack_520[1]" identifier [ number_literal ]) * number_literal) + (subscript_expression "aiStack_520[2]" identifier [ number_literal ])) )) * number_literal)) ;) (expression_statement "local_4d0 = (auStack_4e0[3] + aiStack_520[3]) * 2;" (assignment_expression "local_4d0 = (auStack_4e0[3] + aiStack_520[3]) * 2" identifier = (binary_expression "(auStack_4e0[3] + aiStack_520[3]) * 2" (parenthesized_expression "(auStack_4e0[3] + aiStack_520[3])" ( (binary_expression "auStack_4e0[3] + aiStack_520[3]" (subscript_expression "auStack_4e0[3]" identifier [ number_literal ]) + (subscript_expression "aiStack_520[3]" identifier [ number_literal ])) )) * number_literal)) ;) (expression_statement "local_4cc = (local_4d0 + aiStack_520[4]) * 2;" (assignment_expression "local_4cc = (local_4d0 + aiStack_520[4]) * 2" identifier = (binary_expression "(local_4d0 + aiStack_520[4]) * 2" (parenthesized_expression "(local_4d0 + aiStack_520[4])" ( (binary_expression "local_4d0 + aiStack_520[4]" identifier + (subscript_expression "aiStack_520[4]" identifier [ number_literal ])) )) * number_literal)) ;) (expression_statement "local_4c8 = (local_4cc + local_50c) * 2;" (assignment_expression "local_4c8 = (local_4cc + local_50c) * 2" identifier = (binary_expression "(local_4cc + local_50c) * 2" (parenthesized_expression "(local_4cc + local_50c)" ( (binary_expression "local_4cc + local_50c" identifier + identifier) )) * number_literal)) ;) (expression_statement "local_4c4 = (local_4c8 + local_508) * 2;" (assignment_expression "local_4c4 = (local_4c8 + local_508) * 2" identifier = (binary_expression "(local_4c8 + local_508) * 2" (parenthesized_expression "(local_4c8 + local_508)" ( (binary_expression "local_4c8 + local_508" identifier + identifier) )) * number_literal)) ;) (expression_statement "local_4c0 = (local_4c4 + local_504) * 2;" (assignment_expression "local_4c0 = (local_4c4 + local_504) * 2" identifier = (binary_expression "(local_4c4 + local_504) * 2" (parenthesized_expression "(local_4c4 + local_504)" ( (binary_expression "local_4c4 + local_504" identifier + identifier) )) * number_literal)) ;) (expression_statement "local_4bc = (local_4c0 + local_500) * 2;" (assignment_expression "local_4bc = (local_4c0 + local_500) * 2" identifier = (binary_expression "(local_4c0 + local_500) * 2" (parenthesized_expression "(local_4c0 + local_500)" ( (binary_expression "local_4c0 + local_500" identifier + identifier) )) * number_literal)) ;) (expression_statement "local_4b8 = (local_4bc + local_4fc) * 2;" (assignment_expression "local_4b8 = (local_4bc + local_4fc) * 2" identifier = (binary_expression "(local_4bc + local_4fc) * 2" (parenthesized_expression "(local_4bc + local_4fc)" ( (binary_expression "local_4bc + local_4fc" identifier + identifier) )) * number_literal)) ;) (expression_statement "local_4b4 = (local_4b8 + local_4f8) * 2;" (assignment_expression "local_4b4 = (local_4b8 + local_4f8) * 2" identifier = (binary_expression "(local_4b8 + local_4f8) * 2" (parenthesized_expression "(local_4b8 + local_4f8)" ( (binary_expression "local_4b8 + local_4f8" identifier + identifier) )) * number_literal)) ;) (expression_statement "local_4b0 = (local_4b4 + local_4f4) * 2;" (assignment_expression "local_4b0 = (local_4b4 + local_4f4) * 2" identifier = (binary_expression "(local_4b4 + local_4f4) * 2" (parenthesized_expression "(local_4b4 + local_4f4)" ( (binary_expression "local_4b4 + local_4f4" identifier + identifier) )) * number_literal)) ;) (expression_statement "local_4ac = (local_4b0 + local_4f0) * 2;" (assignment_expression "local_4ac = (local_4b0 + local_4f0) * 2" identifier = (binary_expression "(local_4b0 + local_4f0) * 2" (parenthesized_expression "(local_4b0 + local_4f0)" ( (binary_expression "local_4b0 + local_4f0" identifier + identifier) )) * number_literal)) ;) (expression_statement "local_4a8 = (local_4ac + local_4ec) * 2;" (assignment_expression "local_4a8 = (local_4ac + local_4ec) * 2" identifier = (binary_expression "(local_4ac + local_4ec) * 2" (parenthesized_expression "(local_4ac + local_4ec)" ( (binary_expression "local_4ac + local_4ec" identifier + identifier) )) * number_literal)) ;) (expression_statement "local_4a4 = (local_4a8 + local_4e8) * 2;" (assignment_expression "local_4a4 = (local_4a8 + local_4e8) * 2" identifier = (binary_expression "(local_4a8 + local_4e8) * 2" (parenthesized_expression "(local_4a8 + local_4e8)" ( (binary_expression "local_4a8 + local_4e8" identifier + identifier) )) * number_literal)) ;) (if_statement "if (0 < param_2) {\n    puVar7 = local_4a0;\n    pbVar6 = param_1 + param_2;\n    do {\n      uVar1 = (uint)*param_1;\n      *puVar7 = 0;\n      uVar4 = auStack_4e0[uVar1];\n      auStack_4e0[uVar1] = uVar4 + 1;\n      if (uVar1 != 0) {\n        uVar2 = 0;\n        uVar5 = 0;\n        do {\n          uVar5 = uVar5 + 1;\n          uVar2 = uVar2 * 2 | uVar4 & 1;\n          uVar4 = (int)uVar4 >> 1;\n        } while (uVar1 != uVar5);\n        *puVar7 = uVar2;\n      }\n      param_1 = param_1 + 1;\n      puVar7 = puVar7 + 1;\n    } while (param_1 != pbVar6);\n  }" if (parenthesized_expression "(0 < param_2)" ( (binary_expression "0 < param_2" number_literal < identifier) )) (compound_statement "{\n    puVar7 = local_4a0;\n    pbVar6 = param_1 + param_2;\n    do {\n      uVar1 = (uint)*param_1;\n      *puVar7 = 0;\n      uVar4 = auStack_4e0[uVar1];\n      auStack_4e0[uVar1] = uVar4 + 1;\n      if (uVar1 != 0) {\n        uVar2 = 0;\n        uVar5 = 0;\n        do {\n          uVar5 = uVar5 + 1;\n          uVar2 = uVar2 * 2 | uVar4 & 1;\n          uVar4 = (int)uVar4 >> 1;\n        } while (uVar1 != uVar5);\n        *puVar7 = uVar2;\n      }\n      param_1 = param_1 + 1;\n      puVar7 = puVar7 + 1;\n    } while (param_1 != pbVar6);\n  }" { (expression_statement "puVar7 = local_4a0;" (assignment_expression "puVar7 = local_4a0" identifier = identifier) ;) (expression_statement "pbVar6 = param_1 + param_2;" (assignment_expression "pbVar6 = param_1 + param_2" identifier = (binary_expression "param_1 + param_2" identifier + identifier)) ;) (do_statement "do {\n      uVar1 = (uint)*param_1;\n      *puVar7 = 0;\n      uVar4 = auStack_4e0[uVar1];\n      auStack_4e0[uVar1] = uVar4 + 1;\n      if (uVar1 != 0) {\n        uVar2 = 0;\n        uVar5 = 0;\n        do {\n          uVar5 = uVar5 + 1;\n          uVar2 = uVar2 * 2 | uVar4 & 1;\n          uVar4 = (int)uVar4 >> 1;\n        } while (uVar1 != uVar5);\n        *puVar7 = uVar2;\n      }\n      param_1 = param_1 + 1;\n      puVar7 = puVar7 + 1;\n    } while (param_1 != pbVar6);" do (compound_statement "{\n      uVar1 = (uint)*param_1;\n      *puVar7 = 0;\n      uVar4 = auStack_4e0[uVar1];\n      auStack_4e0[uVar1] = uVar4 + 1;\n      if (uVar1 != 0) {\n        uVar2 = 0;\n        uVar5 = 0;\n        do {\n          uVar5 = uVar5 + 1;\n          uVar2 = uVar2 * 2 | uVar4 & 1;\n          uVar4 = (int)uVar4 >> 1;\n        } while (uVar1 != uVar5);\n        *puVar7 = uVar2;\n      }\n      param_1 = param_1 + 1;\n      puVar7 = puVar7 + 1;\n    }" { (expression_statement "uVar1 = (uint)*param_1;" (assignment_expression "uVar1 = (uint)*param_1" identifier = (binary_expression "(uint)*param_1" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "*puVar7 = 0;" (assignment_expression "*puVar7 = 0" (pointer_expression "*puVar7" * identifier) = number_literal) ;) (expression_statement "uVar4 = auStack_4e0[uVar1];" (assignment_expression "uVar4 = auStack_4e0[uVar1]" identifier = (subscript_expression "auStack_4e0[uVar1]" identifier [ identifier ])) ;) (expression_statement "auStack_4e0[uVar1] = uVar4 + 1;" (assignment_expression "auStack_4e0[uVar1] = uVar4 + 1" (subscript_expression "auStack_4e0[uVar1]" identifier [ identifier ]) = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) (if_statement "if (uVar1 != 0) {\n        uVar2 = 0;\n        uVar5 = 0;\n        do {\n          uVar5 = uVar5 + 1;\n          uVar2 = uVar2 * 2 | uVar4 & 1;\n          uVar4 = (int)uVar4 >> 1;\n        } while (uVar1 != uVar5);\n        *puVar7 = uVar2;\n      }" if (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        uVar2 = 0;\n        uVar5 = 0;\n        do {\n          uVar5 = uVar5 + 1;\n          uVar2 = uVar2 * 2 | uVar4 & 1;\n          uVar4 = (int)uVar4 >> 1;\n        } while (uVar1 != uVar5);\n        *puVar7 = uVar2;\n      }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n          uVar5 = uVar5 + 1;\n          uVar2 = uVar2 * 2 | uVar4 & 1;\n          uVar4 = (int)uVar4 >> 1;\n        } while (uVar1 != uVar5);" do (compound_statement "{\n          uVar5 = uVar5 + 1;\n          uVar2 = uVar2 * 2 | uVar4 & 1;\n          uVar4 = (int)uVar4 >> 1;\n        }" { (expression_statement "uVar5 = uVar5 + 1;" (assignment_expression "uVar5 = uVar5 + 1" identifier = (binary_expression "uVar5 + 1" identifier + number_literal)) ;) (expression_statement "uVar2 = uVar2 * 2 | uVar4 & 1;" (assignment_expression "uVar2 = uVar2 * 2 | uVar4 & 1" identifier = (binary_expression "uVar2 * 2 | uVar4 & 1" (binary_expression "uVar2 * 2" identifier * number_literal) | (binary_expression "uVar4 & 1" identifier & number_literal))) ;) (expression_statement "uVar4 = (int)uVar4 >> 1;" (assignment_expression "uVar4 = (int)uVar4 >> 1" identifier = (binary_expression "(int)uVar4 >> 1" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) ;) }) while (parenthesized_expression "(uVar1 != uVar5)" ( (binary_expression "uVar1 != uVar5" identifier != identifier) )) ;) (expression_statement "*puVar7 = uVar2;" (assignment_expression "*puVar7 = uVar2" (pointer_expression "*puVar7" * identifier) = identifier) ;) })) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "puVar7 = puVar7 + 1;" (assignment_expression "puVar7 = puVar7 + 1" identifier = (binary_expression "puVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_1 != pbVar6)" ( (binary_expression "param_1 != pbVar6" identifier != identifier) )) ;) })) (expression_statement "FUN_00071760(0,0,local_534);" (call_expression "FUN_00071760(0,0,local_534)" identifier (argument_list "(0,0,local_534)" ( number_literal , number_literal , identifier ))) ;) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    FUN_00089270();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    FUN_00089270();\n  }" { comment (expression_statement "FUN_00089270();" (call_expression "FUN_00089270()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "zlib_table * __regparm3 zlib_mktable(uchar *lengths,int nlengths)\n\n{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  zlib_table *pzVar4;\n  int iVar5;\n  uint uVar6;\n  uint uVar7;\n  byte *pbVar8;\n  uint *puVar9;\n  int *piVar10;\n  int in_GS_OFFSET;\n  uint local_534;\n  int *local_530;\n  int count [16];\n  int startcode [16];\n  int codes [288];\n  \n  piVar10 = count;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  for (iVar5 = 0xf; piVar10 = piVar10 + 1, iVar5 != 0; iVar5 = iVar5 + -1) {\n    *piVar10 = 0;\n  }\n  if (nlengths < 1) {\n    local_534 = 0;\n  }\n  else {\n    uVar6 = 0;\n    pbVar8 = lengths;\n    do {\n      uVar2 = (uint)*pbVar8;\n      count[uVar2] = count[uVar2] + 1;\n      if (uVar6 < uVar2) {\n        uVar6 = uVar2;\n      }\n      pbVar8 = pbVar8 + 1;\n    } while (lengths + nlengths != pbVar8);\n    local_534 = 9;\n    if (uVar6 < 10) {\n      local_534 = uVar6;\n    }\n  }\n  startcode[1] = 0;\n  startcode[2] = count[1] * 2;\n  startcode[3] = (count[1] * 2 + count[2]) * 2;\n  startcode[4] = (startcode[3] + count[3]) * 2;\n  startcode[5] = (startcode[4] + count[4]) * 2;\n  startcode[6] = (startcode[5] + count[5]) * 2;\n  startcode[7] = (startcode[6] + count[6]) * 2;\n  startcode[8] = (startcode[7] + count[7]) * 2;\n  startcode[9] = (startcode[8] + count[8]) * 2;\n  startcode[10] = (startcode[9] + count[9]) * 2;\n  startcode[0xb] = (startcode[10] + count[10]) * 2;\n  startcode[0xc] = (startcode[0xb] + count[0xb]) * 2;\n  startcode[0xd] = (startcode[0xc] + count[0xc]) * 2;\n  startcode[0xe] = (startcode[0xd] + count[0xd]) * 2;\n  startcode[0xf] = (startcode[0xe] + count[0xe]) * 2;\n  if (0 < nlengths) {\n    puVar9 = (uint *)codes;\n    pbVar8 = lengths;\n    do {\n      uVar2 = (uint)*pbVar8;\n      *puVar9 = 0;\n      uVar6 = startcode[uVar2];\n      startcode[uVar2] = uVar6 + 1;\n      if (uVar2 != 0) {\n        uVar3 = 0;\n        uVar7 = 0;\n        do {\n          uVar7 = uVar7 + 1;\n          uVar3 = uVar3 * 2 | uVar6 & 1;\n          uVar6 = (int)uVar6 >> 1;\n        } while (uVar2 != uVar7);\n        *puVar9 = uVar3;\n      }\n      pbVar8 = pbVar8 + 1;\n      puVar9 = puVar9 + 1;\n    } while (pbVar8 != lengths + nlengths);\n  }\n  local_530 = codes;\n  pzVar4 = zlib_mkonetab(local_530,lengths,nlengths,0,0,local_534);\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return pzVar4;\n}\n\n" (ERROR "zlib_table * __regparm3 zlib_mktable(uchar *lengths,int nlengths)" (binary_expression "zlib_table * __regparm3 zlib_mktable(uchar *lengths,int nlengths)" identifier * (ERROR "__regparm3" identifier) (call_expression "zlib_mktable(uchar *lengths,int nlengths)" identifier (argument_list "(uchar *lengths,int nlengths)" ( (binary_expression "uchar *lengths" identifier * identifier) , (ERROR "int" identifier) identifier ))))) (compound_statement "{\n  int iVar1;\n  uint uVar2;\n  uint uVar3;\n  zlib_table *pzVar4;\n  int iVar5;\n  uint uVar6;\n  uint uVar7;\n  byte *pbVar8;\n  uint *puVar9;\n  int *piVar10;\n  int in_GS_OFFSET;\n  uint local_534;\n  int *local_530;\n  int count [16];\n  int startcode [16];\n  int codes [288];\n  \n  piVar10 = count;\n  iVar1 = *(int *)(in_GS_OFFSET + 0x14);\n  for (iVar5 = 0xf; piVar10 = piVar10 + 1, iVar5 != 0; iVar5 = iVar5 + -1) {\n    *piVar10 = 0;\n  }\n  if (nlengths < 1) {\n    local_534 = 0;\n  }\n  else {\n    uVar6 = 0;\n    pbVar8 = lengths;\n    do {\n      uVar2 = (uint)*pbVar8;\n      count[uVar2] = count[uVar2] + 1;\n      if (uVar6 < uVar2) {\n        uVar6 = uVar2;\n      }\n      pbVar8 = pbVar8 + 1;\n    } while (lengths + nlengths != pbVar8);\n    local_534 = 9;\n    if (uVar6 < 10) {\n      local_534 = uVar6;\n    }\n  }\n  startcode[1] = 0;\n  startcode[2] = count[1] * 2;\n  startcode[3] = (count[1] * 2 + count[2]) * 2;\n  startcode[4] = (startcode[3] + count[3]) * 2;\n  startcode[5] = (startcode[4] + count[4]) * 2;\n  startcode[6] = (startcode[5] + count[5]) * 2;\n  startcode[7] = (startcode[6] + count[6]) * 2;\n  startcode[8] = (startcode[7] + count[7]) * 2;\n  startcode[9] = (startcode[8] + count[8]) * 2;\n  startcode[10] = (startcode[9] + count[9]) * 2;\n  startcode[0xb] = (startcode[10] + count[10]) * 2;\n  startcode[0xc] = (startcode[0xb] + count[0xb]) * 2;\n  startcode[0xd] = (startcode[0xc] + count[0xc]) * 2;\n  startcode[0xe] = (startcode[0xd] + count[0xd]) * 2;\n  startcode[0xf] = (startcode[0xe] + count[0xe]) * 2;\n  if (0 < nlengths) {\n    puVar9 = (uint *)codes;\n    pbVar8 = lengths;\n    do {\n      uVar2 = (uint)*pbVar8;\n      *puVar9 = 0;\n      uVar6 = startcode[uVar2];\n      startcode[uVar2] = uVar6 + 1;\n      if (uVar2 != 0) {\n        uVar3 = 0;\n        uVar7 = 0;\n        do {\n          uVar7 = uVar7 + 1;\n          uVar3 = uVar3 * 2 | uVar6 & 1;\n          uVar6 = (int)uVar6 >> 1;\n        } while (uVar2 != uVar7);\n        *puVar9 = uVar3;\n      }\n      pbVar8 = pbVar8 + 1;\n      puVar9 = puVar9 + 1;\n    } while (pbVar8 != lengths + nlengths);\n  }\n  local_530 = codes;\n  pzVar4 = zlib_mkonetab(local_530,lengths,nlengths,0,0,local_534);\n  if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return pzVar4;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "zlib_table *pzVar4;" type_identifier (pointer_declarator "*pzVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "uint *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "int *piVar10;" primitive_type (pointer_declarator "*piVar10" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uint local_534;" type_identifier identifier ;) (declaration "int *local_530;" primitive_type (pointer_declarator "*local_530" * identifier) ;) (declaration "int count [16];" primitive_type (array_declarator "count [16]" identifier [ number_literal ]) ;) (declaration "int startcode [16];" primitive_type (array_declarator "startcode [16]" identifier [ number_literal ]) ;) (declaration "int codes [288];" primitive_type (array_declarator "codes [288]" identifier [ number_literal ]) ;) (expression_statement "piVar10 = count;" (assignment_expression "piVar10 = count" identifier = identifier) ;) (expression_statement "iVar1 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "iVar1 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (for_statement "for (iVar5 = 0xf; piVar10 = piVar10 + 1, iVar5 != 0; iVar5 = iVar5 + -1) {\n    *piVar10 = 0;\n  }" for ( (assignment_expression "iVar5 = 0xf" identifier = number_literal) ; (comma_expression "piVar10 = piVar10 + 1, iVar5 != 0" (assignment_expression "piVar10 = piVar10 + 1" identifier = (binary_expression "piVar10 + 1" identifier + number_literal)) , (binary_expression "iVar5 != 0" identifier != number_literal)) ; (assignment_expression "iVar5 = iVar5 + -1" identifier = (binary_expression "iVar5 + -1" identifier + number_literal)) ) (compound_statement "{\n    *piVar10 = 0;\n  }" { (expression_statement "*piVar10 = 0;" (assignment_expression "*piVar10 = 0" (pointer_expression "*piVar10" * identifier) = number_literal) ;) })) (if_statement "if (nlengths < 1) {\n    local_534 = 0;\n  }\n  else {\n    uVar6 = 0;\n    pbVar8 = lengths;\n    do {\n      uVar2 = (uint)*pbVar8;\n      count[uVar2] = count[uVar2] + 1;\n      if (uVar6 < uVar2) {\n        uVar6 = uVar2;\n      }\n      pbVar8 = pbVar8 + 1;\n    } while (lengths + nlengths != pbVar8);\n    local_534 = 9;\n    if (uVar6 < 10) {\n      local_534 = uVar6;\n    }\n  }" if (parenthesized_expression "(nlengths < 1)" ( (binary_expression "nlengths < 1" identifier < number_literal) )) (compound_statement "{\n    local_534 = 0;\n  }" { (expression_statement "local_534 = 0;" (assignment_expression "local_534 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    uVar6 = 0;\n    pbVar8 = lengths;\n    do {\n      uVar2 = (uint)*pbVar8;\n      count[uVar2] = count[uVar2] + 1;\n      if (uVar6 < uVar2) {\n        uVar6 = uVar2;\n      }\n      pbVar8 = pbVar8 + 1;\n    } while (lengths + nlengths != pbVar8);\n    local_534 = 9;\n    if (uVar6 < 10) {\n      local_534 = uVar6;\n    }\n  }" else (compound_statement "{\n    uVar6 = 0;\n    pbVar8 = lengths;\n    do {\n      uVar2 = (uint)*pbVar8;\n      count[uVar2] = count[uVar2] + 1;\n      if (uVar6 < uVar2) {\n        uVar6 = uVar2;\n      }\n      pbVar8 = pbVar8 + 1;\n    } while (lengths + nlengths != pbVar8);\n    local_534 = 9;\n    if (uVar6 < 10) {\n      local_534 = uVar6;\n    }\n  }" { (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) (expression_statement "pbVar8 = lengths;" (assignment_expression "pbVar8 = lengths" identifier = identifier) ;) (do_statement "do {\n      uVar2 = (uint)*pbVar8;\n      count[uVar2] = count[uVar2] + 1;\n      if (uVar6 < uVar2) {\n        uVar6 = uVar2;\n      }\n      pbVar8 = pbVar8 + 1;\n    } while (lengths + nlengths != pbVar8);" do (compound_statement "{\n      uVar2 = (uint)*pbVar8;\n      count[uVar2] = count[uVar2] + 1;\n      if (uVar6 < uVar2) {\n        uVar6 = uVar2;\n      }\n      pbVar8 = pbVar8 + 1;\n    }" { (expression_statement "uVar2 = (uint)*pbVar8;" (assignment_expression "uVar2 = (uint)*pbVar8" identifier = (binary_expression "(uint)*pbVar8" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "count[uVar2] = count[uVar2] + 1;" (assignment_expression "count[uVar2] = count[uVar2] + 1" (subscript_expression "count[uVar2]" identifier [ identifier ]) = (binary_expression "count[uVar2] + 1" (subscript_expression "count[uVar2]" identifier [ identifier ]) + number_literal)) ;) (if_statement "if (uVar6 < uVar2) {\n        uVar6 = uVar2;\n      }" if (parenthesized_expression "(uVar6 < uVar2)" ( (binary_expression "uVar6 < uVar2" identifier < identifier) )) (compound_statement "{\n        uVar6 = uVar2;\n      }" { (expression_statement "uVar6 = uVar2;" (assignment_expression "uVar6 = uVar2" identifier = identifier) ;) })) (expression_statement "pbVar8 = pbVar8 + 1;" (assignment_expression "pbVar8 = pbVar8 + 1" identifier = (binary_expression "pbVar8 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(lengths + nlengths != pbVar8)" ( (binary_expression "lengths + nlengths != pbVar8" (binary_expression "lengths + nlengths" identifier + identifier) != identifier) )) ;) (expression_statement "local_534 = 9;" (assignment_expression "local_534 = 9" identifier = number_literal) ;) (if_statement "if (uVar6 < 10) {\n      local_534 = uVar6;\n    }" if (parenthesized_expression "(uVar6 < 10)" ( (binary_expression "uVar6 < 10" identifier < number_literal) )) (compound_statement "{\n      local_534 = uVar6;\n    }" { (expression_statement "local_534 = uVar6;" (assignment_expression "local_534 = uVar6" identifier = identifier) ;) })) }))) (expression_statement "startcode[1] = 0;" (assignment_expression "startcode[1] = 0" (subscript_expression "startcode[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "startcode[2] = count[1] * 2;" (assignment_expression "startcode[2] = count[1] * 2" (subscript_expression "startcode[2]" identifier [ number_literal ]) = (binary_expression "count[1] * 2" (subscript_expression "count[1]" identifier [ number_literal ]) * number_literal)) ;) (expression_statement "startcode[3] = (count[1] * 2 + count[2]) * 2;" (assignment_expression "startcode[3] = (count[1] * 2 + count[2]) * 2" (subscript_expression "startcode[3]" identifier [ number_literal ]) = (binary_expression "(count[1] * 2 + count[2]) * 2" (parenthesized_expression "(count[1] * 2 + count[2])" ( (binary_expression "count[1] * 2 + count[2]" (binary_expression "count[1] * 2" (subscript_expression "count[1]" identifier [ number_literal ]) * number_literal) + (subscript_expression "count[2]" identifier [ number_literal ])) )) * number_literal)) ;) (expression_statement "startcode[4] = (startcode[3] + count[3]) * 2;" (assignment_expression "startcode[4] = (startcode[3] + count[3]) * 2" (subscript_expression "startcode[4]" identifier [ number_literal ]) = (binary_expression "(startcode[3] + count[3]) * 2" (parenthesized_expression "(startcode[3] + count[3])" ( (binary_expression "startcode[3] + count[3]" (subscript_expression "startcode[3]" identifier [ number_literal ]) + (subscript_expression "count[3]" identifier [ number_literal ])) )) * number_literal)) ;) (expression_statement "startcode[5] = (startcode[4] + count[4]) * 2;" (assignment_expression "startcode[5] = (startcode[4] + count[4]) * 2" (subscript_expression "startcode[5]" identifier [ number_literal ]) = (binary_expression "(startcode[4] + count[4]) * 2" (parenthesized_expression "(startcode[4] + count[4])" ( (binary_expression "startcode[4] + count[4]" (subscript_expression "startcode[4]" identifier [ number_literal ]) + (subscript_expression "count[4]" identifier [ number_literal ])) )) * number_literal)) ;) (expression_statement "startcode[6] = (startcode[5] + count[5]) * 2;" (assignment_expression "startcode[6] = (startcode[5] + count[5]) * 2" (subscript_expression "startcode[6]" identifier [ number_literal ]) = (binary_expression "(startcode[5] + count[5]) * 2" (parenthesized_expression "(startcode[5] + count[5])" ( (binary_expression "startcode[5] + count[5]" (subscript_expression "startcode[5]" identifier [ number_literal ]) + (subscript_expression "count[5]" identifier [ number_literal ])) )) * number_literal)) ;) (expression_statement "startcode[7] = (startcode[6] + count[6]) * 2;" (assignment_expression "startcode[7] = (startcode[6] + count[6]) * 2" (subscript_expression "startcode[7]" identifier [ number_literal ]) = (binary_expression "(startcode[6] + count[6]) * 2" (parenthesized_expression "(startcode[6] + count[6])" ( (binary_expression "startcode[6] + count[6]" (subscript_expression "startcode[6]" identifier [ number_literal ]) + (subscript_expression "count[6]" identifier [ number_literal ])) )) * number_literal)) ;) (expression_statement "startcode[8] = (startcode[7] + count[7]) * 2;" (assignment_expression "startcode[8] = (startcode[7] + count[7]) * 2" (subscript_expression "startcode[8]" identifier [ number_literal ]) = (binary_expression "(startcode[7] + count[7]) * 2" (parenthesized_expression "(startcode[7] + count[7])" ( (binary_expression "startcode[7] + count[7]" (subscript_expression "startcode[7]" identifier [ number_literal ]) + (subscript_expression "count[7]" identifier [ number_literal ])) )) * number_literal)) ;) (expression_statement "startcode[9] = (startcode[8] + count[8]) * 2;" (assignment_expression "startcode[9] = (startcode[8] + count[8]) * 2" (subscript_expression "startcode[9]" identifier [ number_literal ]) = (binary_expression "(startcode[8] + count[8]) * 2" (parenthesized_expression "(startcode[8] + count[8])" ( (binary_expression "startcode[8] + count[8]" (subscript_expression "startcode[8]" identifier [ number_literal ]) + (subscript_expression "count[8]" identifier [ number_literal ])) )) * number_literal)) ;) (expression_statement "startcode[10] = (startcode[9] + count[9]) * 2;" (assignment_expression "startcode[10] = (startcode[9] + count[9]) * 2" (subscript_expression "startcode[10]" identifier [ number_literal ]) = (binary_expression "(startcode[9] + count[9]) * 2" (parenthesized_expression "(startcode[9] + count[9])" ( (binary_expression "startcode[9] + count[9]" (subscript_expression "startcode[9]" identifier [ number_literal ]) + (subscript_expression "count[9]" identifier [ number_literal ])) )) * number_literal)) ;) (expression_statement "startcode[0xb] = (startcode[10] + count[10]) * 2;" (assignment_expression "startcode[0xb] = (startcode[10] + count[10]) * 2" (subscript_expression "startcode[0xb]" identifier [ number_literal ]) = (binary_expression "(startcode[10] + count[10]) * 2" (parenthesized_expression "(startcode[10] + count[10])" ( (binary_expression "startcode[10] + count[10]" (subscript_expression "startcode[10]" identifier [ number_literal ]) + (subscript_expression "count[10]" identifier [ number_literal ])) )) * number_literal)) ;) (expression_statement "startcode[0xc] = (startcode[0xb] + count[0xb]) * 2;" (assignment_expression "startcode[0xc] = (startcode[0xb] + count[0xb]) * 2" (subscript_expression "startcode[0xc]" identifier [ number_literal ]) = (binary_expression "(startcode[0xb] + count[0xb]) * 2" (parenthesized_expression "(startcode[0xb] + count[0xb])" ( (binary_expression "startcode[0xb] + count[0xb]" (subscript_expression "startcode[0xb]" identifier [ number_literal ]) + (subscript_expression "count[0xb]" identifier [ number_literal ])) )) * number_literal)) ;) (expression_statement "startcode[0xd] = (startcode[0xc] + count[0xc]) * 2;" (assignment_expression "startcode[0xd] = (startcode[0xc] + count[0xc]) * 2" (subscript_expression "startcode[0xd]" identifier [ number_literal ]) = (binary_expression "(startcode[0xc] + count[0xc]) * 2" (parenthesized_expression "(startcode[0xc] + count[0xc])" ( (binary_expression "startcode[0xc] + count[0xc]" (subscript_expression "startcode[0xc]" identifier [ number_literal ]) + (subscript_expression "count[0xc]" identifier [ number_literal ])) )) * number_literal)) ;) (expression_statement "startcode[0xe] = (startcode[0xd] + count[0xd]) * 2;" (assignment_expression "startcode[0xe] = (startcode[0xd] + count[0xd]) * 2" (subscript_expression "startcode[0xe]" identifier [ number_literal ]) = (binary_expression "(startcode[0xd] + count[0xd]) * 2" (parenthesized_expression "(startcode[0xd] + count[0xd])" ( (binary_expression "startcode[0xd] + count[0xd]" (subscript_expression "startcode[0xd]" identifier [ number_literal ]) + (subscript_expression "count[0xd]" identifier [ number_literal ])) )) * number_literal)) ;) (expression_statement "startcode[0xf] = (startcode[0xe] + count[0xe]) * 2;" (assignment_expression "startcode[0xf] = (startcode[0xe] + count[0xe]) * 2" (subscript_expression "startcode[0xf]" identifier [ number_literal ]) = (binary_expression "(startcode[0xe] + count[0xe]) * 2" (parenthesized_expression "(startcode[0xe] + count[0xe])" ( (binary_expression "startcode[0xe] + count[0xe]" (subscript_expression "startcode[0xe]" identifier [ number_literal ]) + (subscript_expression "count[0xe]" identifier [ number_literal ])) )) * number_literal)) ;) (if_statement "if (0 < nlengths) {\n    puVar9 = (uint *)codes;\n    pbVar8 = lengths;\n    do {\n      uVar2 = (uint)*pbVar8;\n      *puVar9 = 0;\n      uVar6 = startcode[uVar2];\n      startcode[uVar2] = uVar6 + 1;\n      if (uVar2 != 0) {\n        uVar3 = 0;\n        uVar7 = 0;\n        do {\n          uVar7 = uVar7 + 1;\n          uVar3 = uVar3 * 2 | uVar6 & 1;\n          uVar6 = (int)uVar6 >> 1;\n        } while (uVar2 != uVar7);\n        *puVar9 = uVar3;\n      }\n      pbVar8 = pbVar8 + 1;\n      puVar9 = puVar9 + 1;\n    } while (pbVar8 != lengths + nlengths);\n  }" if (parenthesized_expression "(0 < nlengths)" ( (binary_expression "0 < nlengths" number_literal < identifier) )) (compound_statement "{\n    puVar9 = (uint *)codes;\n    pbVar8 = lengths;\n    do {\n      uVar2 = (uint)*pbVar8;\n      *puVar9 = 0;\n      uVar6 = startcode[uVar2];\n      startcode[uVar2] = uVar6 + 1;\n      if (uVar2 != 0) {\n        uVar3 = 0;\n        uVar7 = 0;\n        do {\n          uVar7 = uVar7 + 1;\n          uVar3 = uVar3 * 2 | uVar6 & 1;\n          uVar6 = (int)uVar6 >> 1;\n        } while (uVar2 != uVar7);\n        *puVar9 = uVar3;\n      }\n      pbVar8 = pbVar8 + 1;\n      puVar9 = puVar9 + 1;\n    } while (pbVar8 != lengths + nlengths);\n  }" { (expression_statement "puVar9 = (uint *)codes;" (assignment_expression "puVar9 = (uint *)codes" identifier = (cast_expression "(uint *)codes" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "pbVar8 = lengths;" (assignment_expression "pbVar8 = lengths" identifier = identifier) ;) (do_statement "do {\n      uVar2 = (uint)*pbVar8;\n      *puVar9 = 0;\n      uVar6 = startcode[uVar2];\n      startcode[uVar2] = uVar6 + 1;\n      if (uVar2 != 0) {\n        uVar3 = 0;\n        uVar7 = 0;\n        do {\n          uVar7 = uVar7 + 1;\n          uVar3 = uVar3 * 2 | uVar6 & 1;\n          uVar6 = (int)uVar6 >> 1;\n        } while (uVar2 != uVar7);\n        *puVar9 = uVar3;\n      }\n      pbVar8 = pbVar8 + 1;\n      puVar9 = puVar9 + 1;\n    } while (pbVar8 != lengths + nlengths);" do (compound_statement "{\n      uVar2 = (uint)*pbVar8;\n      *puVar9 = 0;\n      uVar6 = startcode[uVar2];\n      startcode[uVar2] = uVar6 + 1;\n      if (uVar2 != 0) {\n        uVar3 = 0;\n        uVar7 = 0;\n        do {\n          uVar7 = uVar7 + 1;\n          uVar3 = uVar3 * 2 | uVar6 & 1;\n          uVar6 = (int)uVar6 >> 1;\n        } while (uVar2 != uVar7);\n        *puVar9 = uVar3;\n      }\n      pbVar8 = pbVar8 + 1;\n      puVar9 = puVar9 + 1;\n    }" { (expression_statement "uVar2 = (uint)*pbVar8;" (assignment_expression "uVar2 = (uint)*pbVar8" identifier = (binary_expression "(uint)*pbVar8" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "*puVar9 = 0;" (assignment_expression "*puVar9 = 0" (pointer_expression "*puVar9" * identifier) = number_literal) ;) (expression_statement "uVar6 = startcode[uVar2];" (assignment_expression "uVar6 = startcode[uVar2]" identifier = (subscript_expression "startcode[uVar2]" identifier [ identifier ])) ;) (expression_statement "startcode[uVar2] = uVar6 + 1;" (assignment_expression "startcode[uVar2] = uVar6 + 1" (subscript_expression "startcode[uVar2]" identifier [ identifier ]) = (binary_expression "uVar6 + 1" identifier + number_literal)) ;) (if_statement "if (uVar2 != 0) {\n        uVar3 = 0;\n        uVar7 = 0;\n        do {\n          uVar7 = uVar7 + 1;\n          uVar3 = uVar3 * 2 | uVar6 & 1;\n          uVar6 = (int)uVar6 >> 1;\n        } while (uVar2 != uVar7);\n        *puVar9 = uVar3;\n      }" if (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) )) (compound_statement "{\n        uVar3 = 0;\n        uVar7 = 0;\n        do {\n          uVar7 = uVar7 + 1;\n          uVar3 = uVar3 * 2 | uVar6 & 1;\n          uVar6 = (int)uVar6 >> 1;\n        } while (uVar2 != uVar7);\n        *puVar9 = uVar3;\n      }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (do_statement "do {\n          uVar7 = uVar7 + 1;\n          uVar3 = uVar3 * 2 | uVar6 & 1;\n          uVar6 = (int)uVar6 >> 1;\n        } while (uVar2 != uVar7);" do (compound_statement "{\n          uVar7 = uVar7 + 1;\n          uVar3 = uVar3 * 2 | uVar6 & 1;\n          uVar6 = (int)uVar6 >> 1;\n        }" { (expression_statement "uVar7 = uVar7 + 1;" (assignment_expression "uVar7 = uVar7 + 1" identifier = (binary_expression "uVar7 + 1" identifier + number_literal)) ;) (expression_statement "uVar3 = uVar3 * 2 | uVar6 & 1;" (assignment_expression "uVar3 = uVar3 * 2 | uVar6 & 1" identifier = (binary_expression "uVar3 * 2 | uVar6 & 1" (binary_expression "uVar3 * 2" identifier * number_literal) | (binary_expression "uVar6 & 1" identifier & number_literal))) ;) (expression_statement "uVar6 = (int)uVar6 >> 1;" (assignment_expression "uVar6 = (int)uVar6 >> 1" identifier = (binary_expression "(int)uVar6 >> 1" (cast_expression "(int)uVar6" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) ;) }) while (parenthesized_expression "(uVar2 != uVar7)" ( (binary_expression "uVar2 != uVar7" identifier != identifier) )) ;) (expression_statement "*puVar9 = uVar3;" (assignment_expression "*puVar9 = uVar3" (pointer_expression "*puVar9" * identifier) = identifier) ;) })) (expression_statement "pbVar8 = pbVar8 + 1;" (assignment_expression "pbVar8 = pbVar8 + 1" identifier = (binary_expression "pbVar8 + 1" identifier + number_literal)) ;) (expression_statement "puVar9 = puVar9 + 1;" (assignment_expression "puVar9 = puVar9 + 1" identifier = (binary_expression "puVar9 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pbVar8 != lengths + nlengths)" ( (binary_expression "pbVar8 != lengths + nlengths" identifier != (binary_expression "lengths + nlengths" identifier + identifier)) )) ;) })) (expression_statement "local_530 = codes;" (assignment_expression "local_530 = codes" identifier = identifier) ;) (expression_statement "pzVar4 = zlib_mkonetab(local_530,lengths,nlengths,0,0,local_534);" (assignment_expression "pzVar4 = zlib_mkonetab(local_530,lengths,nlengths,0,0,local_534)" identifier = (call_expression "zlib_mkonetab(local_530,lengths,nlengths,0,0,local_534)" identifier (argument_list "(local_530,lengths,nlengths,0,0,local_534)" ( identifier , identifier , identifier , number_literal , number_literal , identifier )))) ;) (if_statement "if (iVar1 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(iVar1 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "iVar1 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return pzVar4;" return identifier ;) }))
(translation_unit "void __regparm3 FUN_00071950(byte *param_1,int param_2)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  byte *pbVar6;\n  uint *puVar7;\n  int *piVar8;\n  int in_GS_OFFSET;\n  uint local_534;\n  int aiStack_520 [5];\n  int local_50c;\n  int local_508;\n  int local_504;\n  int local_500;\n  int local_4fc;\n  int local_4f8;\n  int local_4f4;\n  int local_4f0;\n  int local_4ec;\n  int local_4e8;\n  uint auStack_4e0 [4];\n  int local_4d0;\n  int local_4cc;\n  int local_4c8;\n  int local_4c4;\n  int local_4c0;\n  int local_4bc;\n  int local_4b8;\n  int local_4b4;\n  int local_4b0;\n  int local_4ac;\n  int local_4a8;\n  int local_4a4;\n  uint local_4a0 [288];\n  int local_20;\n  \n  piVar8 = aiStack_520;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  for (iVar3 = 0xf; piVar8 = piVar8 + 1, iVar3 != 0; iVar3 = iVar3 + -1) {\n    *piVar8 = 0;\n  }\n  if (param_2 < 1) {\n    local_534 = 0;\n  }\n  else {\n    uVar4 = 0;\n    pbVar6 = param_1;\n    do {\n      uVar1 = (uint)*pbVar6;\n      aiStack_520[uVar1] = aiStack_520[uVar1] + 1;\n      if (uVar4 < uVar1) {\n        uVar4 = uVar1;\n      }\n      pbVar6 = pbVar6 + 1;\n    } while (param_1 + param_2 != pbVar6);\n    local_534 = 9;\n    if (uVar4 < 10) {\n      local_534 = uVar4;\n    }\n  }\n  auStack_4e0[1] = 0;\n  auStack_4e0[2] = aiStack_520[1] * 2;\n  auStack_4e0[3] = (aiStack_520[1] * 2 + aiStack_520[2]) * 2;\n  local_4d0 = (auStack_4e0[3] + aiStack_520[3]) * 2;\n  local_4cc = (local_4d0 + aiStack_520[4]) * 2;\n  local_4c8 = (local_4cc + local_50c) * 2;\n  local_4c4 = (local_4c8 + local_508) * 2;\n  local_4c0 = (local_4c4 + local_504) * 2;\n  local_4bc = (local_4c0 + local_500) * 2;\n  local_4b8 = (local_4bc + local_4fc) * 2;\n  local_4b4 = (local_4b8 + local_4f8) * 2;\n  local_4b0 = (local_4b4 + local_4f4) * 2;\n  local_4ac = (local_4b0 + local_4f0) * 2;\n  local_4a8 = (local_4ac + local_4ec) * 2;\n  local_4a4 = (local_4a8 + local_4e8) * 2;\n  if (0 < param_2) {\n    puVar7 = local_4a0;\n    pbVar6 = param_1 + param_2;\n    do {\n      uVar1 = (uint)*param_1;\n      *puVar7 = 0;\n      uVar4 = auStack_4e0[uVar1];\n      auStack_4e0[uVar1] = uVar4 + 1;\n      if (uVar1 != 0) {\n        uVar2 = 0;\n        uVar5 = 0;\n        do {\n          uVar5 = uVar5 + 1;\n          uVar2 = uVar2 * 2 | uVar4 & 1;\n          uVar4 = (int)uVar4 >> 1;\n        } while (uVar1 != uVar5);\n        *puVar7 = uVar2;\n      }\n      param_1 = param_1 + 1;\n      puVar7 = puVar7 + 1;\n    } while (param_1 != pbVar6);\n  }\n  FUN_00071760(0,0,local_534);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00089270();\n  }\n  return;\n}\n\n" (function_definition "void __regparm3 FUN_00071950(byte *param_1,int param_2)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  byte *pbVar6;\n  uint *puVar7;\n  int *piVar8;\n  int in_GS_OFFSET;\n  uint local_534;\n  int aiStack_520 [5];\n  int local_50c;\n  int local_508;\n  int local_504;\n  int local_500;\n  int local_4fc;\n  int local_4f8;\n  int local_4f4;\n  int local_4f0;\n  int local_4ec;\n  int local_4e8;\n  uint auStack_4e0 [4];\n  int local_4d0;\n  int local_4cc;\n  int local_4c8;\n  int local_4c4;\n  int local_4c0;\n  int local_4bc;\n  int local_4b8;\n  int local_4b4;\n  int local_4b0;\n  int local_4ac;\n  int local_4a8;\n  int local_4a4;\n  uint local_4a0 [288];\n  int local_20;\n  \n  piVar8 = aiStack_520;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  for (iVar3 = 0xf; piVar8 = piVar8 + 1, iVar3 != 0; iVar3 = iVar3 + -1) {\n    *piVar8 = 0;\n  }\n  if (param_2 < 1) {\n    local_534 = 0;\n  }\n  else {\n    uVar4 = 0;\n    pbVar6 = param_1;\n    do {\n      uVar1 = (uint)*pbVar6;\n      aiStack_520[uVar1] = aiStack_520[uVar1] + 1;\n      if (uVar4 < uVar1) {\n        uVar4 = uVar1;\n      }\n      pbVar6 = pbVar6 + 1;\n    } while (param_1 + param_2 != pbVar6);\n    local_534 = 9;\n    if (uVar4 < 10) {\n      local_534 = uVar4;\n    }\n  }\n  auStack_4e0[1] = 0;\n  auStack_4e0[2] = aiStack_520[1] * 2;\n  auStack_4e0[3] = (aiStack_520[1] * 2 + aiStack_520[2]) * 2;\n  local_4d0 = (auStack_4e0[3] + aiStack_520[3]) * 2;\n  local_4cc = (local_4d0 + aiStack_520[4]) * 2;\n  local_4c8 = (local_4cc + local_50c) * 2;\n  local_4c4 = (local_4c8 + local_508) * 2;\n  local_4c0 = (local_4c4 + local_504) * 2;\n  local_4bc = (local_4c0 + local_500) * 2;\n  local_4b8 = (local_4bc + local_4fc) * 2;\n  local_4b4 = (local_4b8 + local_4f8) * 2;\n  local_4b0 = (local_4b4 + local_4f4) * 2;\n  local_4ac = (local_4b0 + local_4f0) * 2;\n  local_4a8 = (local_4ac + local_4ec) * 2;\n  local_4a4 = (local_4a8 + local_4e8) * 2;\n  if (0 < param_2) {\n    puVar7 = local_4a0;\n    pbVar6 = param_1 + param_2;\n    do {\n      uVar1 = (uint)*param_1;\n      *puVar7 = 0;\n      uVar4 = auStack_4e0[uVar1];\n      auStack_4e0[uVar1] = uVar4 + 1;\n      if (uVar1 != 0) {\n        uVar2 = 0;\n        uVar5 = 0;\n        do {\n          uVar5 = uVar5 + 1;\n          uVar2 = uVar2 * 2 | uVar4 & 1;\n          uVar4 = (int)uVar4 >> 1;\n        } while (uVar1 != uVar5);\n        *puVar7 = uVar2;\n      }\n      param_1 = param_1 + 1;\n      puVar7 = puVar7 + 1;\n    } while (param_1 != pbVar6);\n  }\n  FUN_00071760(0,0,local_534);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00089270();\n  }\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_00071950(byte *param_1,int param_2)" identifier (parameter_list "(byte *param_1,int param_2)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  byte *pbVar6;\n  uint *puVar7;\n  int *piVar8;\n  int in_GS_OFFSET;\n  uint local_534;\n  int aiStack_520 [5];\n  int local_50c;\n  int local_508;\n  int local_504;\n  int local_500;\n  int local_4fc;\n  int local_4f8;\n  int local_4f4;\n  int local_4f0;\n  int local_4ec;\n  int local_4e8;\n  uint auStack_4e0 [4];\n  int local_4d0;\n  int local_4cc;\n  int local_4c8;\n  int local_4c4;\n  int local_4c0;\n  int local_4bc;\n  int local_4b8;\n  int local_4b4;\n  int local_4b0;\n  int local_4ac;\n  int local_4a8;\n  int local_4a4;\n  uint local_4a0 [288];\n  int local_20;\n  \n  piVar8 = aiStack_520;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  for (iVar3 = 0xf; piVar8 = piVar8 + 1, iVar3 != 0; iVar3 = iVar3 + -1) {\n    *piVar8 = 0;\n  }\n  if (param_2 < 1) {\n    local_534 = 0;\n  }\n  else {\n    uVar4 = 0;\n    pbVar6 = param_1;\n    do {\n      uVar1 = (uint)*pbVar6;\n      aiStack_520[uVar1] = aiStack_520[uVar1] + 1;\n      if (uVar4 < uVar1) {\n        uVar4 = uVar1;\n      }\n      pbVar6 = pbVar6 + 1;\n    } while (param_1 + param_2 != pbVar6);\n    local_534 = 9;\n    if (uVar4 < 10) {\n      local_534 = uVar4;\n    }\n  }\n  auStack_4e0[1] = 0;\n  auStack_4e0[2] = aiStack_520[1] * 2;\n  auStack_4e0[3] = (aiStack_520[1] * 2 + aiStack_520[2]) * 2;\n  local_4d0 = (auStack_4e0[3] + aiStack_520[3]) * 2;\n  local_4cc = (local_4d0 + aiStack_520[4]) * 2;\n  local_4c8 = (local_4cc + local_50c) * 2;\n  local_4c4 = (local_4c8 + local_508) * 2;\n  local_4c0 = (local_4c4 + local_504) * 2;\n  local_4bc = (local_4c0 + local_500) * 2;\n  local_4b8 = (local_4bc + local_4fc) * 2;\n  local_4b4 = (local_4b8 + local_4f8) * 2;\n  local_4b0 = (local_4b4 + local_4f4) * 2;\n  local_4ac = (local_4b0 + local_4f0) * 2;\n  local_4a8 = (local_4ac + local_4ec) * 2;\n  local_4a4 = (local_4a8 + local_4e8) * 2;\n  if (0 < param_2) {\n    puVar7 = local_4a0;\n    pbVar6 = param_1 + param_2;\n    do {\n      uVar1 = (uint)*param_1;\n      *puVar7 = 0;\n      uVar4 = auStack_4e0[uVar1];\n      auStack_4e0[uVar1] = uVar4 + 1;\n      if (uVar1 != 0) {\n        uVar2 = 0;\n        uVar5 = 0;\n        do {\n          uVar5 = uVar5 + 1;\n          uVar2 = uVar2 * 2 | uVar4 & 1;\n          uVar4 = (int)uVar4 >> 1;\n        } while (uVar1 != uVar5);\n        *puVar7 = uVar2;\n      }\n      param_1 = param_1 + 1;\n      puVar7 = puVar7 + 1;\n    } while (param_1 != pbVar6);\n  }\n  FUN_00071760(0,0,local_534);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00089270();\n  }\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "byte *pbVar6;" type_identifier (pointer_declarator "*pbVar6" * identifier) ;) (declaration "uint *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "int *piVar8;" primitive_type (pointer_declarator "*piVar8" * identifier) ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "uint local_534;" type_identifier identifier ;) (declaration "int aiStack_520 [5];" primitive_type (array_declarator "aiStack_520 [5]" identifier [ number_literal ]) ;) (declaration "int local_50c;" primitive_type identifier ;) (declaration "int local_508;" primitive_type identifier ;) (declaration "int local_504;" primitive_type identifier ;) (declaration "int local_500;" primitive_type identifier ;) (declaration "int local_4fc;" primitive_type identifier ;) (declaration "int local_4f8;" primitive_type identifier ;) (declaration "int local_4f4;" primitive_type identifier ;) (declaration "int local_4f0;" primitive_type identifier ;) (declaration "int local_4ec;" primitive_type identifier ;) (declaration "int local_4e8;" primitive_type identifier ;) (declaration "uint auStack_4e0 [4];" type_identifier (array_declarator "auStack_4e0 [4]" identifier [ number_literal ]) ;) (declaration "int local_4d0;" primitive_type identifier ;) (declaration "int local_4cc;" primitive_type identifier ;) (declaration "int local_4c8;" primitive_type identifier ;) (declaration "int local_4c4;" primitive_type identifier ;) (declaration "int local_4c0;" primitive_type identifier ;) (declaration "int local_4bc;" primitive_type identifier ;) (declaration "int local_4b8;" primitive_type identifier ;) (declaration "int local_4b4;" primitive_type identifier ;) (declaration "int local_4b0;" primitive_type identifier ;) (declaration "int local_4ac;" primitive_type identifier ;) (declaration "int local_4a8;" primitive_type identifier ;) (declaration "int local_4a4;" primitive_type identifier ;) (declaration "uint local_4a0 [288];" type_identifier (array_declarator "local_4a0 [288]" identifier [ number_literal ]) ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "piVar8 = aiStack_520;" (assignment_expression "piVar8 = aiStack_520" identifier = identifier) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (for_statement "for (iVar3 = 0xf; piVar8 = piVar8 + 1, iVar3 != 0; iVar3 = iVar3 + -1) {\n    *piVar8 = 0;\n  }" for ( (assignment_expression "iVar3 = 0xf" identifier = number_literal) ; (comma_expression "piVar8 = piVar8 + 1, iVar3 != 0" (assignment_expression "piVar8 = piVar8 + 1" identifier = (binary_expression "piVar8 + 1" identifier + number_literal)) , (binary_expression "iVar3 != 0" identifier != number_literal)) ; (assignment_expression "iVar3 = iVar3 + -1" identifier = (binary_expression "iVar3 + -1" identifier + number_literal)) ) (compound_statement "{\n    *piVar8 = 0;\n  }" { (expression_statement "*piVar8 = 0;" (assignment_expression "*piVar8 = 0" (pointer_expression "*piVar8" * identifier) = number_literal) ;) })) (if_statement "if (param_2 < 1) {\n    local_534 = 0;\n  }\n  else {\n    uVar4 = 0;\n    pbVar6 = param_1;\n    do {\n      uVar1 = (uint)*pbVar6;\n      aiStack_520[uVar1] = aiStack_520[uVar1] + 1;\n      if (uVar4 < uVar1) {\n        uVar4 = uVar1;\n      }\n      pbVar6 = pbVar6 + 1;\n    } while (param_1 + param_2 != pbVar6);\n    local_534 = 9;\n    if (uVar4 < 10) {\n      local_534 = uVar4;\n    }\n  }" if (parenthesized_expression "(param_2 < 1)" ( (binary_expression "param_2 < 1" identifier < number_literal) )) (compound_statement "{\n    local_534 = 0;\n  }" { (expression_statement "local_534 = 0;" (assignment_expression "local_534 = 0" identifier = number_literal) ;) }) (else_clause "else {\n    uVar4 = 0;\n    pbVar6 = param_1;\n    do {\n      uVar1 = (uint)*pbVar6;\n      aiStack_520[uVar1] = aiStack_520[uVar1] + 1;\n      if (uVar4 < uVar1) {\n        uVar4 = uVar1;\n      }\n      pbVar6 = pbVar6 + 1;\n    } while (param_1 + param_2 != pbVar6);\n    local_534 = 9;\n    if (uVar4 < 10) {\n      local_534 = uVar4;\n    }\n  }" else (compound_statement "{\n    uVar4 = 0;\n    pbVar6 = param_1;\n    do {\n      uVar1 = (uint)*pbVar6;\n      aiStack_520[uVar1] = aiStack_520[uVar1] + 1;\n      if (uVar4 < uVar1) {\n        uVar4 = uVar1;\n      }\n      pbVar6 = pbVar6 + 1;\n    } while (param_1 + param_2 != pbVar6);\n    local_534 = 9;\n    if (uVar4 < 10) {\n      local_534 = uVar4;\n    }\n  }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (expression_statement "pbVar6 = param_1;" (assignment_expression "pbVar6 = param_1" identifier = identifier) ;) (do_statement "do {\n      uVar1 = (uint)*pbVar6;\n      aiStack_520[uVar1] = aiStack_520[uVar1] + 1;\n      if (uVar4 < uVar1) {\n        uVar4 = uVar1;\n      }\n      pbVar6 = pbVar6 + 1;\n    } while (param_1 + param_2 != pbVar6);" do (compound_statement "{\n      uVar1 = (uint)*pbVar6;\n      aiStack_520[uVar1] = aiStack_520[uVar1] + 1;\n      if (uVar4 < uVar1) {\n        uVar4 = uVar1;\n      }\n      pbVar6 = pbVar6 + 1;\n    }" { (expression_statement "uVar1 = (uint)*pbVar6;" (assignment_expression "uVar1 = (uint)*pbVar6" identifier = (binary_expression "(uint)*pbVar6" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "aiStack_520[uVar1] = aiStack_520[uVar1] + 1;" (assignment_expression "aiStack_520[uVar1] = aiStack_520[uVar1] + 1" (subscript_expression "aiStack_520[uVar1]" identifier [ identifier ]) = (binary_expression "aiStack_520[uVar1] + 1" (subscript_expression "aiStack_520[uVar1]" identifier [ identifier ]) + number_literal)) ;) (if_statement "if (uVar4 < uVar1) {\n        uVar4 = uVar1;\n      }" if (parenthesized_expression "(uVar4 < uVar1)" ( (binary_expression "uVar4 < uVar1" identifier < identifier) )) (compound_statement "{\n        uVar4 = uVar1;\n      }" { (expression_statement "uVar4 = uVar1;" (assignment_expression "uVar4 = uVar1" identifier = identifier) ;) })) (expression_statement "pbVar6 = pbVar6 + 1;" (assignment_expression "pbVar6 = pbVar6 + 1" identifier = (binary_expression "pbVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_1 + param_2 != pbVar6)" ( (binary_expression "param_1 + param_2 != pbVar6" (binary_expression "param_1 + param_2" identifier + identifier) != identifier) )) ;) (expression_statement "local_534 = 9;" (assignment_expression "local_534 = 9" identifier = number_literal) ;) (if_statement "if (uVar4 < 10) {\n      local_534 = uVar4;\n    }" if (parenthesized_expression "(uVar4 < 10)" ( (binary_expression "uVar4 < 10" identifier < number_literal) )) (compound_statement "{\n      local_534 = uVar4;\n    }" { (expression_statement "local_534 = uVar4;" (assignment_expression "local_534 = uVar4" identifier = identifier) ;) })) }))) (expression_statement "auStack_4e0[1] = 0;" (assignment_expression "auStack_4e0[1] = 0" (subscript_expression "auStack_4e0[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "auStack_4e0[2] = aiStack_520[1] * 2;" (assignment_expression "auStack_4e0[2] = aiStack_520[1] * 2" (subscript_expression "auStack_4e0[2]" identifier [ number_literal ]) = (binary_expression "aiStack_520[1] * 2" (subscript_expression "aiStack_520[1]" identifier [ number_literal ]) * number_literal)) ;) (expression_statement "auStack_4e0[3] = (aiStack_520[1] * 2 + aiStack_520[2]) * 2;" (assignment_expression "auStack_4e0[3] = (aiStack_520[1] * 2 + aiStack_520[2]) * 2" (subscript_expression "auStack_4e0[3]" identifier [ number_literal ]) = (binary_expression "(aiStack_520[1] * 2 + aiStack_520[2]) * 2" (parenthesized_expression "(aiStack_520[1] * 2 + aiStack_520[2])" ( (binary_expression "aiStack_520[1] * 2 + aiStack_520[2]" (binary_expression "aiStack_520[1] * 2" (subscript_expression "aiStack_520[1]" identifier [ number_literal ]) * number_literal) + (subscript_expression "aiStack_520[2]" identifier [ number_literal ])) )) * number_literal)) ;) (expression_statement "local_4d0 = (auStack_4e0[3] + aiStack_520[3]) * 2;" (assignment_expression "local_4d0 = (auStack_4e0[3] + aiStack_520[3]) * 2" identifier = (binary_expression "(auStack_4e0[3] + aiStack_520[3]) * 2" (parenthesized_expression "(auStack_4e0[3] + aiStack_520[3])" ( (binary_expression "auStack_4e0[3] + aiStack_520[3]" (subscript_expression "auStack_4e0[3]" identifier [ number_literal ]) + (subscript_expression "aiStack_520[3]" identifier [ number_literal ])) )) * number_literal)) ;) (expression_statement "local_4cc = (local_4d0 + aiStack_520[4]) * 2;" (assignment_expression "local_4cc = (local_4d0 + aiStack_520[4]) * 2" identifier = (binary_expression "(local_4d0 + aiStack_520[4]) * 2" (parenthesized_expression "(local_4d0 + aiStack_520[4])" ( (binary_expression "local_4d0 + aiStack_520[4]" identifier + (subscript_expression "aiStack_520[4]" identifier [ number_literal ])) )) * number_literal)) ;) (expression_statement "local_4c8 = (local_4cc + local_50c) * 2;" (assignment_expression "local_4c8 = (local_4cc + local_50c) * 2" identifier = (binary_expression "(local_4cc + local_50c) * 2" (parenthesized_expression "(local_4cc + local_50c)" ( (binary_expression "local_4cc + local_50c" identifier + identifier) )) * number_literal)) ;) (expression_statement "local_4c4 = (local_4c8 + local_508) * 2;" (assignment_expression "local_4c4 = (local_4c8 + local_508) * 2" identifier = (binary_expression "(local_4c8 + local_508) * 2" (parenthesized_expression "(local_4c8 + local_508)" ( (binary_expression "local_4c8 + local_508" identifier + identifier) )) * number_literal)) ;) (expression_statement "local_4c0 = (local_4c4 + local_504) * 2;" (assignment_expression "local_4c0 = (local_4c4 + local_504) * 2" identifier = (binary_expression "(local_4c4 + local_504) * 2" (parenthesized_expression "(local_4c4 + local_504)" ( (binary_expression "local_4c4 + local_504" identifier + identifier) )) * number_literal)) ;) (expression_statement "local_4bc = (local_4c0 + local_500) * 2;" (assignment_expression "local_4bc = (local_4c0 + local_500) * 2" identifier = (binary_expression "(local_4c0 + local_500) * 2" (parenthesized_expression "(local_4c0 + local_500)" ( (binary_expression "local_4c0 + local_500" identifier + identifier) )) * number_literal)) ;) (expression_statement "local_4b8 = (local_4bc + local_4fc) * 2;" (assignment_expression "local_4b8 = (local_4bc + local_4fc) * 2" identifier = (binary_expression "(local_4bc + local_4fc) * 2" (parenthesized_expression "(local_4bc + local_4fc)" ( (binary_expression "local_4bc + local_4fc" identifier + identifier) )) * number_literal)) ;) (expression_statement "local_4b4 = (local_4b8 + local_4f8) * 2;" (assignment_expression "local_4b4 = (local_4b8 + local_4f8) * 2" identifier = (binary_expression "(local_4b8 + local_4f8) * 2" (parenthesized_expression "(local_4b8 + local_4f8)" ( (binary_expression "local_4b8 + local_4f8" identifier + identifier) )) * number_literal)) ;) (expression_statement "local_4b0 = (local_4b4 + local_4f4) * 2;" (assignment_expression "local_4b0 = (local_4b4 + local_4f4) * 2" identifier = (binary_expression "(local_4b4 + local_4f4) * 2" (parenthesized_expression "(local_4b4 + local_4f4)" ( (binary_expression "local_4b4 + local_4f4" identifier + identifier) )) * number_literal)) ;) (expression_statement "local_4ac = (local_4b0 + local_4f0) * 2;" (assignment_expression "local_4ac = (local_4b0 + local_4f0) * 2" identifier = (binary_expression "(local_4b0 + local_4f0) * 2" (parenthesized_expression "(local_4b0 + local_4f0)" ( (binary_expression "local_4b0 + local_4f0" identifier + identifier) )) * number_literal)) ;) (expression_statement "local_4a8 = (local_4ac + local_4ec) * 2;" (assignment_expression "local_4a8 = (local_4ac + local_4ec) * 2" identifier = (binary_expression "(local_4ac + local_4ec) * 2" (parenthesized_expression "(local_4ac + local_4ec)" ( (binary_expression "local_4ac + local_4ec" identifier + identifier) )) * number_literal)) ;) (expression_statement "local_4a4 = (local_4a8 + local_4e8) * 2;" (assignment_expression "local_4a4 = (local_4a8 + local_4e8) * 2" identifier = (binary_expression "(local_4a8 + local_4e8) * 2" (parenthesized_expression "(local_4a8 + local_4e8)" ( (binary_expression "local_4a8 + local_4e8" identifier + identifier) )) * number_literal)) ;) (if_statement "if (0 < param_2) {\n    puVar7 = local_4a0;\n    pbVar6 = param_1 + param_2;\n    do {\n      uVar1 = (uint)*param_1;\n      *puVar7 = 0;\n      uVar4 = auStack_4e0[uVar1];\n      auStack_4e0[uVar1] = uVar4 + 1;\n      if (uVar1 != 0) {\n        uVar2 = 0;\n        uVar5 = 0;\n        do {\n          uVar5 = uVar5 + 1;\n          uVar2 = uVar2 * 2 | uVar4 & 1;\n          uVar4 = (int)uVar4 >> 1;\n        } while (uVar1 != uVar5);\n        *puVar7 = uVar2;\n      }\n      param_1 = param_1 + 1;\n      puVar7 = puVar7 + 1;\n    } while (param_1 != pbVar6);\n  }" if (parenthesized_expression "(0 < param_2)" ( (binary_expression "0 < param_2" number_literal < identifier) )) (compound_statement "{\n    puVar7 = local_4a0;\n    pbVar6 = param_1 + param_2;\n    do {\n      uVar1 = (uint)*param_1;\n      *puVar7 = 0;\n      uVar4 = auStack_4e0[uVar1];\n      auStack_4e0[uVar1] = uVar4 + 1;\n      if (uVar1 != 0) {\n        uVar2 = 0;\n        uVar5 = 0;\n        do {\n          uVar5 = uVar5 + 1;\n          uVar2 = uVar2 * 2 | uVar4 & 1;\n          uVar4 = (int)uVar4 >> 1;\n        } while (uVar1 != uVar5);\n        *puVar7 = uVar2;\n      }\n      param_1 = param_1 + 1;\n      puVar7 = puVar7 + 1;\n    } while (param_1 != pbVar6);\n  }" { (expression_statement "puVar7 = local_4a0;" (assignment_expression "puVar7 = local_4a0" identifier = identifier) ;) (expression_statement "pbVar6 = param_1 + param_2;" (assignment_expression "pbVar6 = param_1 + param_2" identifier = (binary_expression "param_1 + param_2" identifier + identifier)) ;) (do_statement "do {\n      uVar1 = (uint)*param_1;\n      *puVar7 = 0;\n      uVar4 = auStack_4e0[uVar1];\n      auStack_4e0[uVar1] = uVar4 + 1;\n      if (uVar1 != 0) {\n        uVar2 = 0;\n        uVar5 = 0;\n        do {\n          uVar5 = uVar5 + 1;\n          uVar2 = uVar2 * 2 | uVar4 & 1;\n          uVar4 = (int)uVar4 >> 1;\n        } while (uVar1 != uVar5);\n        *puVar7 = uVar2;\n      }\n      param_1 = param_1 + 1;\n      puVar7 = puVar7 + 1;\n    } while (param_1 != pbVar6);" do (compound_statement "{\n      uVar1 = (uint)*param_1;\n      *puVar7 = 0;\n      uVar4 = auStack_4e0[uVar1];\n      auStack_4e0[uVar1] = uVar4 + 1;\n      if (uVar1 != 0) {\n        uVar2 = 0;\n        uVar5 = 0;\n        do {\n          uVar5 = uVar5 + 1;\n          uVar2 = uVar2 * 2 | uVar4 & 1;\n          uVar4 = (int)uVar4 >> 1;\n        } while (uVar1 != uVar5);\n        *puVar7 = uVar2;\n      }\n      param_1 = param_1 + 1;\n      puVar7 = puVar7 + 1;\n    }" { (expression_statement "uVar1 = (uint)*param_1;" (assignment_expression "uVar1 = (uint)*param_1" identifier = (binary_expression "(uint)*param_1" (parenthesized_expression "(uint)" ( identifier )) * identifier)) ;) (expression_statement "*puVar7 = 0;" (assignment_expression "*puVar7 = 0" (pointer_expression "*puVar7" * identifier) = number_literal) ;) (expression_statement "uVar4 = auStack_4e0[uVar1];" (assignment_expression "uVar4 = auStack_4e0[uVar1]" identifier = (subscript_expression "auStack_4e0[uVar1]" identifier [ identifier ])) ;) (expression_statement "auStack_4e0[uVar1] = uVar4 + 1;" (assignment_expression "auStack_4e0[uVar1] = uVar4 + 1" (subscript_expression "auStack_4e0[uVar1]" identifier [ identifier ]) = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) (if_statement "if (uVar1 != 0) {\n        uVar2 = 0;\n        uVar5 = 0;\n        do {\n          uVar5 = uVar5 + 1;\n          uVar2 = uVar2 * 2 | uVar4 & 1;\n          uVar4 = (int)uVar4 >> 1;\n        } while (uVar1 != uVar5);\n        *puVar7 = uVar2;\n      }" if (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (compound_statement "{\n        uVar2 = 0;\n        uVar5 = 0;\n        do {\n          uVar5 = uVar5 + 1;\n          uVar2 = uVar2 * 2 | uVar4 & 1;\n          uVar4 = (int)uVar4 >> 1;\n        } while (uVar1 != uVar5);\n        *puVar7 = uVar2;\n      }" { (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n          uVar5 = uVar5 + 1;\n          uVar2 = uVar2 * 2 | uVar4 & 1;\n          uVar4 = (int)uVar4 >> 1;\n        } while (uVar1 != uVar5);" do (compound_statement "{\n          uVar5 = uVar5 + 1;\n          uVar2 = uVar2 * 2 | uVar4 & 1;\n          uVar4 = (int)uVar4 >> 1;\n        }" { (expression_statement "uVar5 = uVar5 + 1;" (assignment_expression "uVar5 = uVar5 + 1" identifier = (binary_expression "uVar5 + 1" identifier + number_literal)) ;) (expression_statement "uVar2 = uVar2 * 2 | uVar4 & 1;" (assignment_expression "uVar2 = uVar2 * 2 | uVar4 & 1" identifier = (binary_expression "uVar2 * 2 | uVar4 & 1" (binary_expression "uVar2 * 2" identifier * number_literal) | (binary_expression "uVar4 & 1" identifier & number_literal))) ;) (expression_statement "uVar4 = (int)uVar4 >> 1;" (assignment_expression "uVar4 = (int)uVar4 >> 1" identifier = (binary_expression "(int)uVar4 >> 1" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) ;) }) while (parenthesized_expression "(uVar1 != uVar5)" ( (binary_expression "uVar1 != uVar5" identifier != identifier) )) ;) (expression_statement "*puVar7 = uVar2;" (assignment_expression "*puVar7 = uVar2" (pointer_expression "*puVar7" * identifier) = identifier) ;) })) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" identifier = (binary_expression "param_1 + 1" identifier + number_literal)) ;) (expression_statement "puVar7 = puVar7 + 1;" (assignment_expression "puVar7 = puVar7 + 1" identifier = (binary_expression "puVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_1 != pbVar6)" ( (binary_expression "param_1 != pbVar6" identifier != identifier) )) ;) })) (expression_statement "FUN_00071760(0,0,local_534);" (call_expression "FUN_00071760(0,0,local_534)" identifier (argument_list "(0,0,local_534)" ( number_literal , number_literal , identifier ))) ;) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00089270();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    FUN_00089270();\n  }" { (expression_statement "FUN_00089270();" (call_expression "FUN_00089270()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (for_statement for ( (assignment_expression IDENT = LIT) ; (comma_expression (assignment_expression IDENT = (binary_expression IDENT + LIT)) , (binary_expression IDENT != LIT)) ; (assignment_expression IDENT = (binary_expression IDENT + LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = (binary_expression (subscript_expression IDENT [ IDENT ]) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) != IDENT) )) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) }))) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) * LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) * LIT) + (subscript_expression IDENT [ LIT ])) )) * LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + (subscript_expression IDENT [ LIT ])) )) * LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT + (subscript_expression IDENT [ LIT ])) )) * LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT + IDENT) )) * LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT + IDENT) )) * LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT + IDENT) )) * LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT + IDENT) )) * LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT + IDENT) )) * LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT + IDENT) )) * LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT + IDENT) )) * LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT + IDENT) )) * LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT + IDENT) )) * LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT + IDENT) )) * LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ IDENT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT * LIT) | (binary_expression IDENT & LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != IDENT) )) ;) })) (expression_statement (call_expression IDENT (argument_list ( LIT , LIT , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return ;) })))
(function_definition "void __regparm3 FUN_00071950(byte *param_1,int param_2)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  byte *pbVar6;\n  uint *puVar7;\n  int *piVar8;\n  int in_GS_OFFSET;\n  uint local_534;\n  int aiStack_520 [5];\n  int local_50c;\n  int local_508;\n  int local_504;\n  int local_500;\n  int local_4fc;\n  int local_4f8;\n  int local_4f4;\n  int local_4f0;\n  int local_4ec;\n  int local_4e8;\n  uint auStack_4e0 [4];\n  int local_4d0;\n  int local_4cc;\n  int local_4c8;\n  int local_4c4;\n  int local_4c0;\n  int local_4bc;\n  int local_4b8;\n  int local_4b4;\n  int local_4b0;\n  int local_4ac;\n  int local_4a8;\n  int local_4a4;\n  uint local_4a0 [288];\n  int local_20;\n  \n  piVar8 = aiStack_520;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  for (iVar3 = 0xf; piVar8 = piVar8 + 1, iVar3 != 0; iVar3 = iVar3 + -1) {\n    *piVar8 = 0;\n  }\n  if (param_2 < 1) {\n    local_534 = 0;\n  }\n  else {\n    uVar4 = 0;\n    pbVar6 = param_1;\n    do {\n      uVar1 = (uint)*pbVar6;\n      aiStack_520[uVar1] = aiStack_520[uVar1] + 1;\n      if (uVar4 < uVar1) {\n        uVar4 = uVar1;\n      }\n      pbVar6 = pbVar6 + 1;\n    } while (param_1 + param_2 != pbVar6);\n    local_534 = 9;\n    if (uVar4 < 10) {\n      local_534 = uVar4;\n    }\n  }\n  auStack_4e0[1] = 0;\n  auStack_4e0[2] = aiStack_520[1] * 2;\n  auStack_4e0[3] = (aiStack_520[1] * 2 + aiStack_520[2]) * 2;\n  local_4d0 = (auStack_4e0[3] + aiStack_520[3]) * 2;\n  local_4cc = (local_4d0 + aiStack_520[4]) * 2;\n  local_4c8 = (local_4cc + local_50c) * 2;\n  local_4c4 = (local_4c8 + local_508) * 2;\n  local_4c0 = (local_4c4 + local_504) * 2;\n  local_4bc = (local_4c0 + local_500) * 2;\n  local_4b8 = (local_4bc + local_4fc) * 2;\n  local_4b4 = (local_4b8 + local_4f8) * 2;\n  local_4b0 = (local_4b4 + local_4f4) * 2;\n  local_4ac = (local_4b0 + local_4f0) * 2;\n  local_4a8 = (local_4ac + local_4ec) * 2;\n  local_4a4 = (local_4a8 + local_4e8) * 2;\n  if (0 < param_2) {\n    puVar7 = local_4a0;\n    pbVar6 = param_1 + param_2;\n    do {\n      uVar1 = (uint)*param_1;\n      *puVar7 = 0;\n      uVar4 = auStack_4e0[uVar1];\n      auStack_4e0[uVar1] = uVar4 + 1;\n      if (uVar1 != 0) {\n        uVar2 = 0;\n        uVar5 = 0;\n        do {\n          uVar5 = uVar5 + 1;\n          uVar2 = uVar2 * 2 | uVar4 & 1;\n          uVar4 = (int)uVar4 >> 1;\n        } while (uVar1 != uVar5);\n        *puVar7 = uVar2;\n      }\n      param_1 = param_1 + 1;\n      puVar7 = puVar7 + 1;\n    } while (param_1 != pbVar6);\n  }\n  FUN_00071760(0,0,local_534);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00089270();\n  }\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_00071950(byte *param_1,int param_2)" (identifier "FUN_00071950") (parameter_list "(byte *param_1,int param_2)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint uVar4;\n  uint uVar5;\n  byte *pbVar6;\n  uint *puVar7;\n  int *piVar8;\n  int in_GS_OFFSET;\n  uint local_534;\n  int aiStack_520 [5];\n  int local_50c;\n  int local_508;\n  int local_504;\n  int local_500;\n  int local_4fc;\n  int local_4f8;\n  int local_4f4;\n  int local_4f0;\n  int local_4ec;\n  int local_4e8;\n  uint auStack_4e0 [4];\n  int local_4d0;\n  int local_4cc;\n  int local_4c8;\n  int local_4c4;\n  int local_4c0;\n  int local_4bc;\n  int local_4b8;\n  int local_4b4;\n  int local_4b0;\n  int local_4ac;\n  int local_4a8;\n  int local_4a4;\n  uint local_4a0 [288];\n  int local_20;\n  \n  piVar8 = aiStack_520;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  for (iVar3 = 0xf; piVar8 = piVar8 + 1, iVar3 != 0; iVar3 = iVar3 + -1) {\n    *piVar8 = 0;\n  }\n  if (param_2 < 1) {\n    local_534 = 0;\n  }\n  else {\n    uVar4 = 0;\n    pbVar6 = param_1;\n    do {\n      uVar1 = (uint)*pbVar6;\n      aiStack_520[uVar1] = aiStack_520[uVar1] + 1;\n      if (uVar4 < uVar1) {\n        uVar4 = uVar1;\n      }\n      pbVar6 = pbVar6 + 1;\n    } while (param_1 + param_2 != pbVar6);\n    local_534 = 9;\n    if (uVar4 < 10) {\n      local_534 = uVar4;\n    }\n  }\n  auStack_4e0[1] = 0;\n  auStack_4e0[2] = aiStack_520[1] * 2;\n  auStack_4e0[3] = (aiStack_520[1] * 2 + aiStack_520[2]) * 2;\n  local_4d0 = (auStack_4e0[3] + aiStack_520[3]) * 2;\n  local_4cc = (local_4d0 + aiStack_520[4]) * 2;\n  local_4c8 = (local_4cc + local_50c) * 2;\n  local_4c4 = (local_4c8 + local_508) * 2;\n  local_4c0 = (local_4c4 + local_504) * 2;\n  local_4bc = (local_4c0 + local_500) * 2;\n  local_4b8 = (local_4bc + local_4fc) * 2;\n  local_4b4 = (local_4b8 + local_4f8) * 2;\n  local_4b0 = (local_4b4 + local_4f4) * 2;\n  local_4ac = (local_4b0 + local_4f0) * 2;\n  local_4a8 = (local_4ac + local_4ec) * 2;\n  local_4a4 = (local_4a8 + local_4e8) * 2;\n  if (0 < param_2) {\n    puVar7 = local_4a0;\n    pbVar6 = param_1 + param_2;\n    do {\n      uVar1 = (uint)*param_1;\n      *puVar7 = 0;\n      uVar4 = auStack_4e0[uVar1];\n      auStack_4e0[uVar1] = uVar4 + 1;\n      if (uVar1 != 0) {\n        uVar2 = 0;\n        uVar5 = 0;\n        do {\n          uVar5 = uVar5 + 1;\n          uVar2 = uVar2 * 2 | uVar4 & 1;\n          uVar4 = (int)uVar4 >> 1;\n        } while (uVar1 != uVar5);\n        *puVar7 = uVar2;\n      }\n      param_1 = param_1 + 1;\n      puVar7 = puVar7 + 1;\n    } while (param_1 != pbVar6);\n  }\n  FUN_00071760(0,0,local_534);\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00089270();\n  }\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "byte *pbVar6;" (type_identifier "byte") (pointer_declarator "*pbVar6" (* "*") (identifier "pbVar6")) (; ";")) (declaration "uint *puVar7;" (type_identifier "uint") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "int *piVar8;" (primitive_type "int") (pointer_declarator "*piVar8" (* "*") (identifier "piVar8")) (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "uint local_534;" (type_identifier "uint") (identifier "local_534") (; ";")) (declaration "int aiStack_520 [5];" (primitive_type "int") (array_declarator "aiStack_520 [5]" (identifier "aiStack_520") ([ "[") (number_literal "5") (] "]")) (; ";")) (declaration "int local_50c;" (primitive_type "int") (identifier "local_50c") (; ";")) (declaration "int local_508;" (primitive_type "int") (identifier "local_508") (; ";")) (declaration "int local_504;" (primitive_type "int") (identifier "local_504") (; ";")) (declaration "int local_500;" (primitive_type "int") (identifier "local_500") (; ";")) (declaration "int local_4fc;" (primitive_type "int") (identifier "local_4fc") (; ";")) (declaration "int local_4f8;" (primitive_type "int") (identifier "local_4f8") (; ";")) (declaration "int local_4f4;" (primitive_type "int") (identifier "local_4f4") (; ";")) (declaration "int local_4f0;" (primitive_type "int") (identifier "local_4f0") (; ";")) (declaration "int local_4ec;" (primitive_type "int") (identifier "local_4ec") (; ";")) (declaration "int local_4e8;" (primitive_type "int") (identifier "local_4e8") (; ";")) (declaration "uint auStack_4e0 [4];" (type_identifier "uint") (array_declarator "auStack_4e0 [4]" (identifier "auStack_4e0") ([ "[") (number_literal "4") (] "]")) (; ";")) (declaration "int local_4d0;" (primitive_type "int") (identifier "local_4d0") (; ";")) (declaration "int local_4cc;" (primitive_type "int") (identifier "local_4cc") (; ";")) (declaration "int local_4c8;" (primitive_type "int") (identifier "local_4c8") (; ";")) (declaration "int local_4c4;" (primitive_type "int") (identifier "local_4c4") (; ";")) (declaration "int local_4c0;" (primitive_type "int") (identifier "local_4c0") (; ";")) (declaration "int local_4bc;" (primitive_type "int") (identifier "local_4bc") (; ";")) (declaration "int local_4b8;" (primitive_type "int") (identifier "local_4b8") (; ";")) (declaration "int local_4b4;" (primitive_type "int") (identifier "local_4b4") (; ";")) (declaration "int local_4b0;" (primitive_type "int") (identifier "local_4b0") (; ";")) (declaration "int local_4ac;" (primitive_type "int") (identifier "local_4ac") (; ";")) (declaration "int local_4a8;" (primitive_type "int") (identifier "local_4a8") (; ";")) (declaration "int local_4a4;" (primitive_type "int") (identifier "local_4a4") (; ";")) (declaration "uint local_4a0 [288];" (type_identifier "uint") (array_declarator "local_4a0 [288]" (identifier "local_4a0") ([ "[") (number_literal "288") (] "]")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (expression_statement "piVar8 = aiStack_520;" (assignment_expression "piVar8 = aiStack_520" (identifier "piVar8") (= "=") (identifier "aiStack_520")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (for_statement "for (iVar3 = 0xf; piVar8 = piVar8 + 1, iVar3 != 0; iVar3 = iVar3 + -1) {\n    *piVar8 = 0;\n  }" (for "for") (( "(") (assignment_expression "iVar3 = 0xf" (identifier "iVar3") (= "=") (number_literal "0xf")) (; ";") (comma_expression "piVar8 = piVar8 + 1, iVar3 != 0" (assignment_expression "piVar8 = piVar8 + 1" (identifier "piVar8") (= "=") (binary_expression "piVar8 + 1" (identifier "piVar8") (+ "+") (number_literal "1"))) (, ",") (binary_expression "iVar3 != 0" (identifier "iVar3") (!= "!=") (number_literal "0"))) (; ";") (assignment_expression "iVar3 = iVar3 + -1" (identifier "iVar3") (= "=") (binary_expression "iVar3 + -1" (identifier "iVar3") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n    *piVar8 = 0;\n  }" ({ "{") (expression_statement "*piVar8 = 0;" (assignment_expression "*piVar8 = 0" (pointer_expression "*piVar8" (* "*") (identifier "piVar8")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (if_statement "if (param_2 < 1) {\n    local_534 = 0;\n  }\n  else {\n    uVar4 = 0;\n    pbVar6 = param_1;\n    do {\n      uVar1 = (uint)*pbVar6;\n      aiStack_520[uVar1] = aiStack_520[uVar1] + 1;\n      if (uVar4 < uVar1) {\n        uVar4 = uVar1;\n      }\n      pbVar6 = pbVar6 + 1;\n    } while (param_1 + param_2 != pbVar6);\n    local_534 = 9;\n    if (uVar4 < 10) {\n      local_534 = uVar4;\n    }\n  }" (if "if") (parenthesized_expression "(param_2 < 1)" (( "(") (binary_expression "param_2 < 1" (identifier "param_2") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n    local_534 = 0;\n  }" ({ "{") (expression_statement "local_534 = 0;" (assignment_expression "local_534 = 0" (identifier "local_534") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    uVar4 = 0;\n    pbVar6 = param_1;\n    do {\n      uVar1 = (uint)*pbVar6;\n      aiStack_520[uVar1] = aiStack_520[uVar1] + 1;\n      if (uVar4 < uVar1) {\n        uVar4 = uVar1;\n      }\n      pbVar6 = pbVar6 + 1;\n    } while (param_1 + param_2 != pbVar6);\n    local_534 = 9;\n    if (uVar4 < 10) {\n      local_534 = uVar4;\n    }\n  }" (else "else") (compound_statement "{\n    uVar4 = 0;\n    pbVar6 = param_1;\n    do {\n      uVar1 = (uint)*pbVar6;\n      aiStack_520[uVar1] = aiStack_520[uVar1] + 1;\n      if (uVar4 < uVar1) {\n        uVar4 = uVar1;\n      }\n      pbVar6 = pbVar6 + 1;\n    } while (param_1 + param_2 != pbVar6);\n    local_534 = 9;\n    if (uVar4 < 10) {\n      local_534 = uVar4;\n    }\n  }" ({ "{") (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "pbVar6 = param_1;" (assignment_expression "pbVar6 = param_1" (identifier "pbVar6") (= "=") (identifier "param_1")) (; ";")) (do_statement "do {\n      uVar1 = (uint)*pbVar6;\n      aiStack_520[uVar1] = aiStack_520[uVar1] + 1;\n      if (uVar4 < uVar1) {\n        uVar4 = uVar1;\n      }\n      pbVar6 = pbVar6 + 1;\n    } while (param_1 + param_2 != pbVar6);" (do "do") (compound_statement "{\n      uVar1 = (uint)*pbVar6;\n      aiStack_520[uVar1] = aiStack_520[uVar1] + 1;\n      if (uVar4 < uVar1) {\n        uVar4 = uVar1;\n      }\n      pbVar6 = pbVar6 + 1;\n    }" ({ "{") (expression_statement "uVar1 = (uint)*pbVar6;" (assignment_expression "uVar1 = (uint)*pbVar6" (identifier "uVar1") (= "=") (binary_expression "(uint)*pbVar6" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "pbVar6"))) (; ";")) (expression_statement "aiStack_520[uVar1] = aiStack_520[uVar1] + 1;" (assignment_expression "aiStack_520[uVar1] = aiStack_520[uVar1] + 1" (subscript_expression "aiStack_520[uVar1]" (identifier "aiStack_520") ([ "[") (identifier "uVar1") (] "]")) (= "=") (binary_expression "aiStack_520[uVar1] + 1" (subscript_expression "aiStack_520[uVar1]" (identifier "aiStack_520") ([ "[") (identifier "uVar1") (] "]")) (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (uVar4 < uVar1) {\n        uVar4 = uVar1;\n      }" (if "if") (parenthesized_expression "(uVar4 < uVar1)" (( "(") (binary_expression "uVar4 < uVar1" (identifier "uVar4") (< "<") (identifier "uVar1")) () ")")) (compound_statement "{\n        uVar4 = uVar1;\n      }" ({ "{") (expression_statement "uVar4 = uVar1;" (assignment_expression "uVar4 = uVar1" (identifier "uVar4") (= "=") (identifier "uVar1")) (; ";")) (} "}"))) (expression_statement "pbVar6 = pbVar6 + 1;" (assignment_expression "pbVar6 = pbVar6 + 1" (identifier "pbVar6") (= "=") (binary_expression "pbVar6 + 1" (identifier "pbVar6") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_1 + param_2 != pbVar6)" (( "(") (binary_expression "param_1 + param_2 != pbVar6" (binary_expression "param_1 + param_2" (identifier "param_1") (+ "+") (identifier "param_2")) (!= "!=") (identifier "pbVar6")) () ")")) (; ";")) (expression_statement "local_534 = 9;" (assignment_expression "local_534 = 9" (identifier "local_534") (= "=") (number_literal "9")) (; ";")) (if_statement "if (uVar4 < 10) {\n      local_534 = uVar4;\n    }" (if "if") (parenthesized_expression "(uVar4 < 10)" (( "(") (binary_expression "uVar4 < 10" (identifier "uVar4") (< "<") (number_literal "10")) () ")")) (compound_statement "{\n      local_534 = uVar4;\n    }" ({ "{") (expression_statement "local_534 = uVar4;" (assignment_expression "local_534 = uVar4" (identifier "local_534") (= "=") (identifier "uVar4")) (; ";")) (} "}"))) (} "}")))) (expression_statement "auStack_4e0[1] = 0;" (assignment_expression "auStack_4e0[1] = 0" (subscript_expression "auStack_4e0[1]" (identifier "auStack_4e0") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "auStack_4e0[2] = aiStack_520[1] * 2;" (assignment_expression "auStack_4e0[2] = aiStack_520[1] * 2" (subscript_expression "auStack_4e0[2]" (identifier "auStack_4e0") ([ "[") (number_literal "2") (] "]")) (= "=") (binary_expression "aiStack_520[1] * 2" (subscript_expression "aiStack_520[1]" (identifier "aiStack_520") ([ "[") (number_literal "1") (] "]")) (* "*") (number_literal "2"))) (; ";")) (expression_statement "auStack_4e0[3] = (aiStack_520[1] * 2 + aiStack_520[2]) * 2;" (assignment_expression "auStack_4e0[3] = (aiStack_520[1] * 2 + aiStack_520[2]) * 2" (subscript_expression "auStack_4e0[3]" (identifier "auStack_4e0") ([ "[") (number_literal "3") (] "]")) (= "=") (binary_expression "(aiStack_520[1] * 2 + aiStack_520[2]) * 2" (parenthesized_expression "(aiStack_520[1] * 2 + aiStack_520[2])" (( "(") (binary_expression "aiStack_520[1] * 2 + aiStack_520[2]" (binary_expression "aiStack_520[1] * 2" (subscript_expression "aiStack_520[1]" (identifier "aiStack_520") ([ "[") (number_literal "1") (] "]")) (* "*") (number_literal "2")) (+ "+") (subscript_expression "aiStack_520[2]" (identifier "aiStack_520") ([ "[") (number_literal "2") (] "]"))) () ")")) (* "*") (number_literal "2"))) (; ";")) (expression_statement "local_4d0 = (auStack_4e0[3] + aiStack_520[3]) * 2;" (assignment_expression "local_4d0 = (auStack_4e0[3] + aiStack_520[3]) * 2" (identifier "local_4d0") (= "=") (binary_expression "(auStack_4e0[3] + aiStack_520[3]) * 2" (parenthesized_expression "(auStack_4e0[3] + aiStack_520[3])" (( "(") (binary_expression "auStack_4e0[3] + aiStack_520[3]" (subscript_expression "auStack_4e0[3]" (identifier "auStack_4e0") ([ "[") (number_literal "3") (] "]")) (+ "+") (subscript_expression "aiStack_520[3]" (identifier "aiStack_520") ([ "[") (number_literal "3") (] "]"))) () ")")) (* "*") (number_literal "2"))) (; ";")) (expression_statement "local_4cc = (local_4d0 + aiStack_520[4]) * 2;" (assignment_expression "local_4cc = (local_4d0 + aiStack_520[4]) * 2" (identifier "local_4cc") (= "=") (binary_expression "(local_4d0 + aiStack_520[4]) * 2" (parenthesized_expression "(local_4d0 + aiStack_520[4])" (( "(") (binary_expression "local_4d0 + aiStack_520[4]" (identifier "local_4d0") (+ "+") (subscript_expression "aiStack_520[4]" (identifier "aiStack_520") ([ "[") (number_literal "4") (] "]"))) () ")")) (* "*") (number_literal "2"))) (; ";")) (expression_statement "local_4c8 = (local_4cc + local_50c) * 2;" (assignment_expression "local_4c8 = (local_4cc + local_50c) * 2" (identifier "local_4c8") (= "=") (binary_expression "(local_4cc + local_50c) * 2" (parenthesized_expression "(local_4cc + local_50c)" (( "(") (binary_expression "local_4cc + local_50c" (identifier "local_4cc") (+ "+") (identifier "local_50c")) () ")")) (* "*") (number_literal "2"))) (; ";")) (expression_statement "local_4c4 = (local_4c8 + local_508) * 2;" (assignment_expression "local_4c4 = (local_4c8 + local_508) * 2" (identifier "local_4c4") (= "=") (binary_expression "(local_4c8 + local_508) * 2" (parenthesized_expression "(local_4c8 + local_508)" (( "(") (binary_expression "local_4c8 + local_508" (identifier "local_4c8") (+ "+") (identifier "local_508")) () ")")) (* "*") (number_literal "2"))) (; ";")) (expression_statement "local_4c0 = (local_4c4 + local_504) * 2;" (assignment_expression "local_4c0 = (local_4c4 + local_504) * 2" (identifier "local_4c0") (= "=") (binary_expression "(local_4c4 + local_504) * 2" (parenthesized_expression "(local_4c4 + local_504)" (( "(") (binary_expression "local_4c4 + local_504" (identifier "local_4c4") (+ "+") (identifier "local_504")) () ")")) (* "*") (number_literal "2"))) (; ";")) (expression_statement "local_4bc = (local_4c0 + local_500) * 2;" (assignment_expression "local_4bc = (local_4c0 + local_500) * 2" (identifier "local_4bc") (= "=") (binary_expression "(local_4c0 + local_500) * 2" (parenthesized_expression "(local_4c0 + local_500)" (( "(") (binary_expression "local_4c0 + local_500" (identifier "local_4c0") (+ "+") (identifier "local_500")) () ")")) (* "*") (number_literal "2"))) (; ";")) (expression_statement "local_4b8 = (local_4bc + local_4fc) * 2;" (assignment_expression "local_4b8 = (local_4bc + local_4fc) * 2" (identifier "local_4b8") (= "=") (binary_expression "(local_4bc + local_4fc) * 2" (parenthesized_expression "(local_4bc + local_4fc)" (( "(") (binary_expression "local_4bc + local_4fc" (identifier "local_4bc") (+ "+") (identifier "local_4fc")) () ")")) (* "*") (number_literal "2"))) (; ";")) (expression_statement "local_4b4 = (local_4b8 + local_4f8) * 2;" (assignment_expression "local_4b4 = (local_4b8 + local_4f8) * 2" (identifier "local_4b4") (= "=") (binary_expression "(local_4b8 + local_4f8) * 2" (parenthesized_expression "(local_4b8 + local_4f8)" (( "(") (binary_expression "local_4b8 + local_4f8" (identifier "local_4b8") (+ "+") (identifier "local_4f8")) () ")")) (* "*") (number_literal "2"))) (; ";")) (expression_statement "local_4b0 = (local_4b4 + local_4f4) * 2;" (assignment_expression "local_4b0 = (local_4b4 + local_4f4) * 2" (identifier "local_4b0") (= "=") (binary_expression "(local_4b4 + local_4f4) * 2" (parenthesized_expression "(local_4b4 + local_4f4)" (( "(") (binary_expression "local_4b4 + local_4f4" (identifier "local_4b4") (+ "+") (identifier "local_4f4")) () ")")) (* "*") (number_literal "2"))) (; ";")) (expression_statement "local_4ac = (local_4b0 + local_4f0) * 2;" (assignment_expression "local_4ac = (local_4b0 + local_4f0) * 2" (identifier "local_4ac") (= "=") (binary_expression "(local_4b0 + local_4f0) * 2" (parenthesized_expression "(local_4b0 + local_4f0)" (( "(") (binary_expression "local_4b0 + local_4f0" (identifier "local_4b0") (+ "+") (identifier "local_4f0")) () ")")) (* "*") (number_literal "2"))) (; ";")) (expression_statement "local_4a8 = (local_4ac + local_4ec) * 2;" (assignment_expression "local_4a8 = (local_4ac + local_4ec) * 2" (identifier "local_4a8") (= "=") (binary_expression "(local_4ac + local_4ec) * 2" (parenthesized_expression "(local_4ac + local_4ec)" (( "(") (binary_expression "local_4ac + local_4ec" (identifier "local_4ac") (+ "+") (identifier "local_4ec")) () ")")) (* "*") (number_literal "2"))) (; ";")) (expression_statement "local_4a4 = (local_4a8 + local_4e8) * 2;" (assignment_expression "local_4a4 = (local_4a8 + local_4e8) * 2" (identifier "local_4a4") (= "=") (binary_expression "(local_4a8 + local_4e8) * 2" (parenthesized_expression "(local_4a8 + local_4e8)" (( "(") (binary_expression "local_4a8 + local_4e8" (identifier "local_4a8") (+ "+") (identifier "local_4e8")) () ")")) (* "*") (number_literal "2"))) (; ";")) (if_statement "if (0 < param_2) {\n    puVar7 = local_4a0;\n    pbVar6 = param_1 + param_2;\n    do {\n      uVar1 = (uint)*param_1;\n      *puVar7 = 0;\n      uVar4 = auStack_4e0[uVar1];\n      auStack_4e0[uVar1] = uVar4 + 1;\n      if (uVar1 != 0) {\n        uVar2 = 0;\n        uVar5 = 0;\n        do {\n          uVar5 = uVar5 + 1;\n          uVar2 = uVar2 * 2 | uVar4 & 1;\n          uVar4 = (int)uVar4 >> 1;\n        } while (uVar1 != uVar5);\n        *puVar7 = uVar2;\n      }\n      param_1 = param_1 + 1;\n      puVar7 = puVar7 + 1;\n    } while (param_1 != pbVar6);\n  }" (if "if") (parenthesized_expression "(0 < param_2)" (( "(") (binary_expression "0 < param_2" (number_literal "0") (< "<") (identifier "param_2")) () ")")) (compound_statement "{\n    puVar7 = local_4a0;\n    pbVar6 = param_1 + param_2;\n    do {\n      uVar1 = (uint)*param_1;\n      *puVar7 = 0;\n      uVar4 = auStack_4e0[uVar1];\n      auStack_4e0[uVar1] = uVar4 + 1;\n      if (uVar1 != 0) {\n        uVar2 = 0;\n        uVar5 = 0;\n        do {\n          uVar5 = uVar5 + 1;\n          uVar2 = uVar2 * 2 | uVar4 & 1;\n          uVar4 = (int)uVar4 >> 1;\n        } while (uVar1 != uVar5);\n        *puVar7 = uVar2;\n      }\n      param_1 = param_1 + 1;\n      puVar7 = puVar7 + 1;\n    } while (param_1 != pbVar6);\n  }" ({ "{") (expression_statement "puVar7 = local_4a0;" (assignment_expression "puVar7 = local_4a0" (identifier "puVar7") (= "=") (identifier "local_4a0")) (; ";")) (expression_statement "pbVar6 = param_1 + param_2;" (assignment_expression "pbVar6 = param_1 + param_2" (identifier "pbVar6") (= "=") (binary_expression "param_1 + param_2" (identifier "param_1") (+ "+") (identifier "param_2"))) (; ";")) (do_statement "do {\n      uVar1 = (uint)*param_1;\n      *puVar7 = 0;\n      uVar4 = auStack_4e0[uVar1];\n      auStack_4e0[uVar1] = uVar4 + 1;\n      if (uVar1 != 0) {\n        uVar2 = 0;\n        uVar5 = 0;\n        do {\n          uVar5 = uVar5 + 1;\n          uVar2 = uVar2 * 2 | uVar4 & 1;\n          uVar4 = (int)uVar4 >> 1;\n        } while (uVar1 != uVar5);\n        *puVar7 = uVar2;\n      }\n      param_1 = param_1 + 1;\n      puVar7 = puVar7 + 1;\n    } while (param_1 != pbVar6);" (do "do") (compound_statement "{\n      uVar1 = (uint)*param_1;\n      *puVar7 = 0;\n      uVar4 = auStack_4e0[uVar1];\n      auStack_4e0[uVar1] = uVar4 + 1;\n      if (uVar1 != 0) {\n        uVar2 = 0;\n        uVar5 = 0;\n        do {\n          uVar5 = uVar5 + 1;\n          uVar2 = uVar2 * 2 | uVar4 & 1;\n          uVar4 = (int)uVar4 >> 1;\n        } while (uVar1 != uVar5);\n        *puVar7 = uVar2;\n      }\n      param_1 = param_1 + 1;\n      puVar7 = puVar7 + 1;\n    }" ({ "{") (expression_statement "uVar1 = (uint)*param_1;" (assignment_expression "uVar1 = (uint)*param_1" (identifier "uVar1") (= "=") (binary_expression "(uint)*param_1" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (identifier "param_1"))) (; ";")) (expression_statement "*puVar7 = 0;" (assignment_expression "*puVar7 = 0" (pointer_expression "*puVar7" (* "*") (identifier "puVar7")) (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar4 = auStack_4e0[uVar1];" (assignment_expression "uVar4 = auStack_4e0[uVar1]" (identifier "uVar4") (= "=") (subscript_expression "auStack_4e0[uVar1]" (identifier "auStack_4e0") ([ "[") (identifier "uVar1") (] "]"))) (; ";")) (expression_statement "auStack_4e0[uVar1] = uVar4 + 1;" (assignment_expression "auStack_4e0[uVar1] = uVar4 + 1" (subscript_expression "auStack_4e0[uVar1]" (identifier "auStack_4e0") ([ "[") (identifier "uVar1") (] "]")) (= "=") (binary_expression "uVar4 + 1" (identifier "uVar4") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (uVar1 != 0) {\n        uVar2 = 0;\n        uVar5 = 0;\n        do {\n          uVar5 = uVar5 + 1;\n          uVar2 = uVar2 * 2 | uVar4 & 1;\n          uVar4 = (int)uVar4 >> 1;\n        } while (uVar1 != uVar5);\n        *puVar7 = uVar2;\n      }" (if "if") (parenthesized_expression "(uVar1 != 0)" (( "(") (binary_expression "uVar1 != 0" (identifier "uVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        uVar2 = 0;\n        uVar5 = 0;\n        do {\n          uVar5 = uVar5 + 1;\n          uVar2 = uVar2 * 2 | uVar4 & 1;\n          uVar4 = (int)uVar4 >> 1;\n        } while (uVar1 != uVar5);\n        *puVar7 = uVar2;\n      }" ({ "{") (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" (identifier "uVar2") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar5 = 0;" (assignment_expression "uVar5 = 0" (identifier "uVar5") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n          uVar5 = uVar5 + 1;\n          uVar2 = uVar2 * 2 | uVar4 & 1;\n          uVar4 = (int)uVar4 >> 1;\n        } while (uVar1 != uVar5);" (do "do") (compound_statement "{\n          uVar5 = uVar5 + 1;\n          uVar2 = uVar2 * 2 | uVar4 & 1;\n          uVar4 = (int)uVar4 >> 1;\n        }" ({ "{") (expression_statement "uVar5 = uVar5 + 1;" (assignment_expression "uVar5 = uVar5 + 1" (identifier "uVar5") (= "=") (binary_expression "uVar5 + 1" (identifier "uVar5") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar2 = uVar2 * 2 | uVar4 & 1;" (assignment_expression "uVar2 = uVar2 * 2 | uVar4 & 1" (identifier "uVar2") (= "=") (binary_expression "uVar2 * 2 | uVar4 & 1" (binary_expression "uVar2 * 2" (identifier "uVar2") (* "*") (number_literal "2")) (| "|") (binary_expression "uVar4 & 1" (identifier "uVar4") (& "&") (number_literal "1")))) (; ";")) (expression_statement "uVar4 = (int)uVar4 >> 1;" (assignment_expression "uVar4 = (int)uVar4 >> 1" (identifier "uVar4") (= "=") (binary_expression "(int)uVar4 >> 1" (cast_expression "(int)uVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar4")) (>> ">>") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(uVar1 != uVar5)" (( "(") (binary_expression "uVar1 != uVar5" (identifier "uVar1") (!= "!=") (identifier "uVar5")) () ")")) (; ";")) (expression_statement "*puVar7 = uVar2;" (assignment_expression "*puVar7 = uVar2" (pointer_expression "*puVar7" (* "*") (identifier "puVar7")) (= "=") (identifier "uVar2")) (; ";")) (} "}"))) (expression_statement "param_1 = param_1 + 1;" (assignment_expression "param_1 = param_1 + 1" (identifier "param_1") (= "=") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar7 = puVar7 + 1;" (assignment_expression "puVar7 = puVar7 + 1" (identifier "puVar7") (= "=") (binary_expression "puVar7 + 1" (identifier "puVar7") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_1 != pbVar6)" (( "(") (binary_expression "param_1 != pbVar6" (identifier "param_1") (!= "!=") (identifier "pbVar6")) () ")")) (; ";")) (} "}"))) (expression_statement "FUN_00071760(0,0,local_534);" (call_expression "FUN_00071760(0,0,local_534)" (identifier "FUN_00071760") (argument_list "(0,0,local_534)" (( "(") (number_literal "0") (, ",") (number_literal "0") (, ",") (identifier "local_534") () ")"))) (; ";")) (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    \n    FUN_00089270();\n  }" (if "if") (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (!= "!=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n                    \n    FUN_00089270();\n  }" ({ "{") (expression_statement "FUN_00089270();" (call_expression "FUN_00089270()" (identifier "FUN_00089270") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

type_2 * __regparm3 zlib_mktable(uchar *var_8,int var_4)

{
  int var_13;
  type_1 var_7;
  type_1 var_10;
  type_2 *pzVar4;
  int var_3;
  type_1 var_6;
  type_1 var_9;
  type_3 *var_5;
  type_1 *var_11;
  int *var_2;
  int var_1;
  type_1 local_534;
  int *local_530;
  int count [16];
  int startcode [16];
  int codes [288];
  
  var_2 = count;
  var_13 = *(int *)(var_1 + 0x14);
  for (var_3 = 0xf; var_2 = var_2 + 1, var_3 != 0; var_3 = var_3 + -1) {
    *var_2 = 0;
  }
  if (var_4 < 1) {
    local_534 = 0;
  }
  else {
    var_6 = 0;
    var_5 = var_8;
    do {
      var_7 = (type_1)*var_5;
      count[var_7] = count[var_7] + 1;
      if (var_6 < var_7) {
        var_6 = var_7;
      }
      var_5 = var_5 + 1;
    } while (var_8 + var_4 != var_5);
    local_534 = 9;
    if (var_6 < 10) {
      local_534 = var_6;
    }
  }
  startcode[1] = 0;
  startcode[2] = count[1] * 2;
  startcode[3] = (count[1] * 2 + count[2]) * 2;
  startcode[4] = (startcode[3] + count[3]) * 2;
  startcode[5] = (startcode[4] + count[4]) * 2;
  startcode[6] = (startcode[5] + count[5]) * 2;
  startcode[7] = (startcode[6] + count[6]) * 2;
  startcode[8] = (startcode[7] + count[7]) * 2;
  startcode[9] = (startcode[8] + count[8]) * 2;
  startcode[10] = (startcode[9] + count[9]) * 2;
  startcode[0xb] = (startcode[10] + count[10]) * 2;
  startcode[0xc] = (startcode[0xb] + count[0xb]) * 2;
  startcode[0xd] = (startcode[0xc] + count[0xc]) * 2;
  startcode[0xe] = (startcode[0xd] + count[0xd]) * 2;
  startcode[0xf] = (startcode[0xe] + count[0xe]) * 2;
  if (0 < var_4) {
    var_11 = (type_1 *)codes;
    var_5 = var_8;
    do {
      var_7 = (type_1)*var_5;
      *var_11 = 0;
      var_6 = startcode[var_7];
      startcode[var_7] = var_6 + 1;
      if (var_7 != 0) {
        var_10 = 0;
        var_9 = 0;
        do {
          var_9 = var_9 + 1;
          var_10 = var_10 * 2 | var_6 & 1;
          var_6 = (int)var_6 >> 1;
        } while (var_7 != var_9);
        *var_11 = var_10;
      }
      var_5 = var_5 + 1;
      var_11 = var_11 + 1;
    } while (var_5 != var_8 + var_4);
  }
  local_530 = codes;
  pzVar4 = var_12(local_530,var_8,var_4,0,0,local_534);
  if (var_13 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_14();
  }
  return pzVar4;
}


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

void __regparm3 MASKED(byte *param_1,int param_2)

{
  uint uVar1;
  uint uVar2;
  int iVar3;
  uint uVar4;
  uint uVar5;
  byte *pbVar6;
  uint *puVar7;
  int *piVar8;
  int in_GS_OFFSET;
  uint local_534;
  int aiStack_520 [5];
  int local_50c;
  int local_508;
  int local_504;
  int local_500;
  int local_4fc;
  int local_4f8;
  int local_4f4;
  int local_4f0;
  int local_4ec;
  int local_4e8;
  uint auStack_4e0 [4];
  int local_4d0;
  int local_4cc;
  int local_4c8;
  int local_4c4;
  int local_4c0;
  int local_4bc;
  int local_4b8;
  int local_4b4;
  int local_4b0;
  int local_4ac;
  int local_4a8;
  int local_4a4;
  uint local_4a0 [288];
  int local_20;
  
  piVar8 = aiStack_520;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  for (iVar3 = 0xf; piVar8 = piVar8 + 1, iVar3 != 0; iVar3 = iVar3 + -1) {
    *piVar8 = 0;
  }
  if (param_2 < 1) {
    local_534 = 0;
  }
  else {
    uVar4 = 0;
    pbVar6 = param_1;
    do {
      uVar1 = (uint)*pbVar6;
      aiStack_520[uVar1] = aiStack_520[uVar1] + 1;
      if (uVar4 < uVar1) {
        uVar4 = uVar1;
      }
      pbVar6 = pbVar6 + 1;
    } while (param_1 + param_2 != pbVar6);
    local_534 = 9;
    if (uVar4 < 10) {
      local_534 = uVar4;
    }
  }
  auStack_4e0[1] = 0;
  auStack_4e0[2] = aiStack_520[1] * 2;
  auStack_4e0[3] = (aiStack_520[1] * 2 + aiStack_520[2]) * 2;
  local_4d0 = (auStack_4e0[3] + aiStack_520[3]) * 2;
  local_4cc = (local_4d0 + aiStack_520[4]) * 2;
  local_4c8 = (local_4cc + local_50c) * 2;
  local_4c4 = (local_4c8 + local_508) * 2;
  local_4c0 = (local_4c4 + local_504) * 2;
  local_4bc = (local_4c0 + local_500) * 2;
  local_4b8 = (local_4bc + local_4fc) * 2;
  local_4b4 = (local_4b8 + local_4f8) * 2;
  local_4b0 = (local_4b4 + local_4f4) * 2;
  local_4ac = (local_4b0 + local_4f0) * 2;
  local_4a8 = (local_4ac + local_4ec) * 2;
  local_4a4 = (local_4a8 + local_4e8) * 2;
  if (0 < param_2) {
    puVar7 = local_4a0;
    pbVar6 = param_1 + param_2;
    do {
      uVar1 = (uint)*param_1;
      *puVar7 = 0;
      uVar4 = auStack_4e0[uVar1];
      auStack_4e0[uVar1] = uVar4 + 1;
      if (uVar1 != 0) {
        uVar2 = 0;
        uVar5 = 0;
        do {
          uVar5 = uVar5 + 1;
          uVar2 = uVar2 * 2 | uVar4 & 1;
          uVar4 = (int)uVar4 >> 1;
        } while (uVar1 != uVar5);
        *puVar7 = uVar2;
      }
      param_1 = param_1 + 1;
      puVar7 = puVar7 + 1;
    } while (param_1 != pbVar6);
  }
  FUN_00071760(0,0,local_534);
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    FUN_00089270();
  }
  return;
}

