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

uint __regparm3 output_big_leb128(char *p,LITTLENUM_TYPE *bignum,uint size,int sign)

{
  ushort uVar1;
  short sVar2;
  byte bVar3;
  byte bVar4;
  int iVar5;
  ushort *puVar6;
  uint uVar7;
  byte *pbVar8;
  byte *pbVar9;
  uint uVar10;
  uint uVar11;
  bool bVar12;
  uint local_34;
  uint local_30;
  byte *local_2c;
  uint local_28;
  LITTLENUM_TYPE *local_20;
  
  if (size != 0) {
    if (((LITTLENUM_TYPE *)0x1 < bignum) && ((&generic_bignum)[(int)bignum + 0x7fffffff] == -1)) {
      sVar2 = *(short *)(&DAT_00070f7e + ((int)bignum + 0x7fffffff) * 2);
      while (((sVar2 < 0 &&
              (bignum = (LITTLENUM_TYPE *)((int)bignum + -1), bignum != (LITTLENUM_TYPE *)0x1)) &&
             (*(short *)(&DAT_00070f7e + (int)bignum * 2) == -1))) {
        sVar2 = *(short *)(&DAT_00070f7c + (int)bignum * 2);
      }
    }
    puVar6 = &generic_bignum;
    local_34 = 0;
    local_30 = 0;
    uVar7 = 0;
    pbVar9 = (byte *)p;
    do {
      uVar1 = *puVar6;
      puVar6 = puVar6 + 1;
      bignum = (LITTLENUM_TYPE *)((int)bignum + -1);
      uVar10 = (uint)uVar1 << ((byte)uVar7 & 0x1f);
      local_30 = local_30 | (int)uVar10 >> 0x1f;
      uVar7 = uVar7 + 0x10;
      local_34 = uVar10 | local_34;
      do {
        uVar11 = uVar7;
        pbVar8 = pbVar9;
        pbVar9 = pbVar8 + 1;
        uVar10 = local_34 >> 7 | local_30 << 0x19;
        bVar3 = (byte)local_34 & 0x7f;
        local_30 = local_30 >> 7;
        uVar7 = uVar11 - 7;
        bVar4 = (byte)uVar7;
        if (bignum == (LITTLENUM_TYPE *)0x0) {
          local_2c = (byte *)0x0;
          local_28 = 0;
          if ((local_34 & 0x40) != 0) {
            bVar12 = (uVar7 & 0x20) == 0;
            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);
            local_2c = (byte *)(iVar5 - 1);
            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);
          }
          if (local_28 == local_30 && local_2c == (byte *)uVar10) {
            if (p != (char *)0x0) {
              *pbVar8 = bVar3;
            }
            goto LAB_0002c4a5;
          }
        }
        if (p != (char *)0x0) {
          *pbVar8 = bVar3 | 0x80;
        }
        local_34 = uVar10;
      } while (6 < (int)uVar7);
      if (bignum == (LITTLENUM_TYPE *)0x0) {
        uVar7 = 1 << ((char)uVar11 - 8U & 0x1f);
        if (((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0) {
          local_34 = -1 << (bVar4 & 0x1f) | uVar10;
        }
        if (p != (char *)0x0) {
          *pbVar9 = (byte)local_34 & 0x7f;
        }
        pbVar9 = pbVar8 + 2;
LAB_0002c4a5:
        return (int)pbVar9 - (int)p;
      }
    } while( true );
  }
  puVar6 = &generic_bignum;
  if (bignum != (LITTLENUM_TYPE *)0x0) {
    do {
      if (*(short *)(&DAT_00070f7e + (int)bignum * 2) != 0) break;
      bignum = (LITTLENUM_TYPE *)((int)bignum + -1);
    } while (bignum != (LITTLENUM_TYPE *)0x0);
  }
  local_34 = 0;
  local_30 = 0;
  iVar5 = 0;
  pbVar9 = (byte *)p;
  local_20 = bignum;
  while( true ) {
    local_2c = pbVar9;
    bVar12 = local_20 != (LITTLENUM_TYPE *)0x0;
    if ((iVar5 < 7) && (bVar12)) {
      uVar1 = *puVar6;
      puVar6 = puVar6 + 1;
      uVar7 = (uint)uVar1 << ((byte)iVar5 & 0x1f);
      iVar5 = iVar5 + 0x10;
      local_34 = uVar7 | local_34;
      local_30 = local_30 | (int)uVar7 >> 0x1f;
      local_20 = (LITTLENUM_TYPE *)((int)local_20 + -1);
      bVar12 = local_20 != (LITTLENUM_TYPE *)0x0;
    }
    iVar5 = iVar5 + -7;
    pbVar9 = local_2c + 1;
    uVar7 = local_34 >> 7 | local_30 << 0x19;
    local_30 = local_30 >> 7;
    bVar3 = (byte)local_34 & 0x7f;
    if ((uVar7 == 0 && local_30 == 0) && (!bVar12)) break;
    local_34 = uVar7;
    if (p != (char *)0x0) {
      *local_2c = bVar3 | 0x80;
    }
  }
  if (p != (char *)0x0) {
    *local_2c = bVar3;
  }
  return (int)pbVar9 - (int)p;
}



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

int __regparm3 FUN_0002c250(byte *param_1,uint param_2,int param_3)

{
  ushort uVar1;
  short sVar2;
  byte bVar3;
  byte bVar4;
  int iVar5;
  ushort *puVar6;
  uint uVar7;
  byte *pbVar8;
  byte *pbVar9;
  uint uVar10;
  uint uVar11;
  bool bVar12;
  uint local_34;
  uint local_30;
  byte *local_2c;
  uint local_28;
  uint local_20;
  
  if (param_3 != 0) {
    if ((1 < param_2) && ((&DAT_00070f80)[param_2 + 0x7fffffff] == -1)) {
      sVar2 = *(short *)(&DAT_00070f7e + (param_2 + 0x7fffffff) * 2);
      while (((sVar2 < 0 && (param_2 = param_2 - 1, param_2 != 1)) &&
             (*(short *)(&DAT_00070f7e + param_2 * 2) == -1))) {
        sVar2 = *(short *)(&DAT_00070f7c + param_2 * 2);
      }
    }
    puVar6 = &DAT_00070f80;
    local_34 = 0;
    local_30 = 0;
    uVar7 = 0;
    pbVar9 = param_1;
    do {
      uVar1 = *puVar6;
      puVar6 = puVar6 + 1;
      param_2 = param_2 - 1;
      uVar10 = (uint)uVar1 << ((byte)uVar7 & 0x1f);
      local_30 = local_30 | (int)uVar10 >> 0x1f;
      uVar7 = uVar7 + 0x10;
      local_34 = uVar10 | local_34;
      do {
        uVar11 = uVar7;
        pbVar8 = pbVar9;
        pbVar9 = pbVar8 + 1;
        uVar10 = local_34 >> 7 | local_30 << 0x19;
        bVar3 = (byte)local_34 & 0x7f;
        local_30 = local_30 >> 7;
        uVar7 = uVar11 - 7;
        bVar4 = (byte)uVar7;
        if (param_2 == 0) {
          local_2c = (byte *)0x0;
          local_28 = 0;
          if ((local_34 & 0x40) != 0) {
            bVar12 = (uVar7 & 0x20) == 0;
            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);
            local_2c = (byte *)(iVar5 - 1);
            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);
          }
          if (local_28 == local_30 && local_2c == (byte *)uVar10) {
            if (param_1 != (byte *)0x0) {
              *pbVar8 = bVar3;
            }
            goto LAB_0002c4a5;
          }
        }
        if (param_1 != (byte *)0x0) {
          *pbVar8 = bVar3 | 0x80;
        }
        local_34 = uVar10;
      } while (6 < (int)uVar7);
      if (param_2 == 0) {
        uVar7 = 1 << ((char)uVar11 - 8U & 0x1f);
        if (((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0) {
          local_34 = -1 << (bVar4 & 0x1f) | uVar10;
        }
        if (param_1 != (byte *)0x0) {
          *pbVar9 = (byte)local_34 & 0x7f;
        }
        pbVar9 = pbVar8 + 2;
LAB_0002c4a5:
        return (int)pbVar9 - (int)param_1;
      }
    } while( true );
  }
  puVar6 = &DAT_00070f80;
  if (param_2 != 0) {
    do {
      if (*(short *)(&DAT_00070f7e + param_2 * 2) != 0) break;
      param_2 = param_2 - 1;
    } while (param_2 != 0);
  }
  local_34 = 0;
  local_30 = 0;
  iVar5 = 0;
  pbVar9 = param_1;
  local_20 = param_2;
  while( true ) {
    local_2c = pbVar9;
    bVar12 = local_20 != 0;
    if ((iVar5 < 7) && (bVar12)) {
      uVar1 = *puVar6;
      puVar6 = puVar6 + 1;
      uVar7 = (uint)uVar1 << ((byte)iVar5 & 0x1f);
      iVar5 = iVar5 + 0x10;
      local_34 = uVar7 | local_34;
      local_30 = local_30 | (int)uVar7 >> 0x1f;
      local_20 = local_20 - 1;
      bVar12 = local_20 != 0;
    }
    iVar5 = iVar5 + -7;
    pbVar9 = local_2c + 1;
    uVar7 = local_34 >> 7 | local_30 << 0x19;
    local_30 = local_30 >> 7;
    bVar3 = (byte)local_34 & 0x7f;
    if ((uVar7 == 0 && local_30 == 0) && (!bVar12)) break;
    local_34 = uVar7;
    if (param_1 != (byte *)0x0) {
      *local_2c = bVar3 | 0x80;
    }
  }
  if (param_1 != (byte *)0x0) {
    *local_2c = bVar3;
  }
  return (int)pbVar9 - (int)param_1;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00015020
ADD EBX,0x3bda7
SUB ESP,0x24
MOV dword ptr [ESP + 0x10],EAX
TEST ECX,ECX
JNZ 0x0002c350
LEA EBX,[EBX + 0x8f80]
TEST EDX,EDX
JNZ 0x0002c341
LEA ESI,[ESI]
MOV EAX,dword ptr [ESP + 0x10]
MOV dword ptr [ESP],0x0
MOV dword ptr [ESP + 0x4],0x0
MOV dword ptr [ESP + 0x8],EAX
MOV dword ptr [ESP + 0x14],EDX
LEA ESI,[ESI]
NOP
MOV EAX,dword ptr [ESP + 0x14]
TEST EAX,EAX
SETNZ DL
MOV EDI,EDX
CMP ECX,0x6
JG 0x0002c2e2
TEST DL,DL
JZ 0x0002c2e2
MOVZX ESI,word ptr [EBX]
MOV EAX,dword ptr [ESP]
ADD EBX,0x2
MOV EDX,dword ptr [ESP + 0x4]
SHL ESI,CL
ADD ECX,0x10
MOV EBP,ESI
OR ESI,EAX
MOV EAX,EDX
SAR EBP,0x1f
MOV dword ptr [ESP],ESI
OR EAX,EBP
SUB dword ptr [ESP + 0x14],0x1
MOV dword ptr [ESP + 0x4],EAX
SETNZ DL
MOV EDI,EDX
MOV EAX,dword ptr [ESP]
MOV EDX,dword ptr [ESP + 0x4]
SUB ECX,0x7
ADD dword ptr [ESP + 0x8],0x1
MOV ESI,EAX
SHRD EAX,EDX,0x7
MOV EBP,EAX
SHR EDX,0x7
AND ESI,0x7f
MOV dword ptr [ESP],EAX
OR EBP,EDX
MOV dword ptr [ESP + 0x4],EDX
JNZ 0x0002c520
MOV EDX,EDI
TEST DL,DL
JNZ 0x0002c520
MOV EDX,dword ptr [ESP + 0x10]
MOV EAX,dword ptr [ESP + 0x8]
TEST EDX,EDX
JZ 0x0002c329
MOV ECX,ESI
MOV byte ptr [EAX + -0x1],CL
SUB EAX,dword ptr [ESP + 0x10]
ADD ESP,0x24
POP EBX
POP ESI
POP EDI
POP EBP
RET
SUB EDX,0x1
JZ 0x0002c280
CMP word ptr [EBX + EDX*0x2 + -0x2],0x0
JZ 0x0002c338
JMP 0x0002c280
CMP EDX,0x1
JBE 0x0002c540
LEA EBX,[EBX + 0x8f80]
LEA EAX,[EDX + 0x7fffffff]
LEA ECX,[EAX + EAX*0x1]
CMP word ptr [EBX + EAX*0x2],-0x1
JNZ 0x0002c39b
CMP word ptr [EBX + ECX*0x1 + -0x2],0x0
JS 0x0002c393
JMP 0x0002c39b
LEA EAX,[EDX + EDX*0x1]
CMP word ptr [EBX + EAX*0x1 + -0x2],-0x1
JNZ 0x0002c39b
CMP word ptr [EBX + EAX*0x1 + -0x4],0x0
JNS 0x0002c39b
SUB EDX,0x1
CMP EDX,0x1
JNZ 0x0002c380
MOV dword ptr [ESP],0x0
XOR EAX,EAX
MOV ESI,dword ptr [ESP + 0x10]
MOV EBP,EBX
MOV dword ptr [ESP + 0x4],0x0
MOV ECX,EAX
MOV EBX,EDX
LEA ESI,[ESI]
LEA ESI,[ESI]
MOVZX EDI,word ptr [EBP]
ADD EBP,0x2
SUB EBX,0x1
MOV dword ptr [ESP + 0x18],ESI
MOV dword ptr [ESP + 0x1c],EBP
SHL EDI,CL
MOV EAX,EDI
OR EDI,dword ptr [ESP]
MOV dword ptr [ESP + 0x8],EDI
MOV EDI,dword ptr [ESP + 0x4]
CDQ
OR EDI,EDX
MOV EAX,EDI
MOV EDI,dword ptr [ESP + 0x8]
MOV dword ptr [ESP + 0x4],EAX
MOV dword ptr [ESP],EDI
LEA EDI,[ECX + 0x10]
JMP 0x0002c420
MOV EAX,dword ptr [ESP + 0x10]
TEST EAX,EAX
JZ 0x0002c411
MOV EAX,dword ptr [ESP + 0x14]
OR AL,0x80
MOV byte ptr [ESI + -0x1],AL
CMP ECX,0x6
JLE 0x0002c4b8
MOV dword ptr [ESP + 0x18],ESI
MOV EDI,ECX
MOV EAX,dword ptr [ESP]
MOV EDX,dword ptr [ESP + 0x4]
ADD ESI,0x1
MOV ECX,EAX
MOV EBP,EAX
SHRD EAX,EDX,0x7
AND ECX,0x7f
SHR EDX,0x7
MOV dword ptr [ESP],EAX
MOV dword ptr [ESP + 0x14],ECX
LEA ECX,[EDI + -0x7]
MOV dword ptr [ESP + 0x4],EDX
TEST EBX,EBX
JNZ 0x0002c400
AND EBP,0x40
MOV dword ptr [ESP + 0x8],0x0
MOV dword ptr [ESP + 0xc],0x0
JZ 0x0002c47e
XOR EAX,EAX
XOR EDX,EDX
TEST CL,0x20
SETZ AL
SETNZ DL
SHL EAX,CL
SHL EDX,CL
ADD EAX,-0x1
ADC EDX,-0x1
MOV dword ptr [ESP + 0x8],EAX
MOV dword ptr [ESP + 0xc],EDX
MOV EAX,dword ptr [ESP + 0x8]
MOV EDX,dword ptr [ESP + 0xc]
XOR EAX,dword ptr [ESP]
XOR EDX,dword ptr [ESP + 0x4]
OR EDX,EAX
JNZ 0x0002c400
MOV EAX,dword ptr [ESP + 0x10]
TEST EAX,EAX
JZ 0x0002c4a5
MOVZX EAX,byte ptr [ESP + 0x14]
MOV byte ptr [ESI + -0x1],AL
MOV EAX,ESI
SUB EAX,dword ptr [ESP + 0x10]
ADD ESP,0x24
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EBP,dword ptr [ESP + 0x1c]
TEST EBX,EBX
JNZ 0x0002c3c0
MOV EAX,ECX
MOV EDX,0x1
LEA ECX,[EDI + -0x8]
MOV EDI,dword ptr [ESP]
SHL EDX,CL
MOV EBP,EDX
MOV ECX,EDX
MOV dword ptr [ESP + 0x8],EDX
SAR EBP,0x1f
AND ECX,EDI
MOV dword ptr [ESP + 0xc],EBP
MOV EBP,dword ptr [ESP + 0x4]
MOV EDX,dword ptr [ESP + 0xc]
AND EDX,EBP
OR EDX,ECX
JZ 0x0002c500
MOV EDX,0xffffffff
MOV ECX,EAX
SHL EDX,CL
OR EDX,EDI
MOV dword ptr [ESP],EDX
MOV EAX,dword ptr [ESP + 0x10]
TEST EAX,EAX
JZ 0x0002c511
MOVZX EAX,byte ptr [ESP]
AND EAX,0x7f
MOV byte ptr [ESI],AL
MOV ESI,dword ptr [ESP + 0x18]
ADD ESI,0x2
JMP 0x0002c4a5
MOV EDI,dword ptr [ESP + 0x10]
TEST EDI,EDI
JZ 0x0002c2a0
OR ESI,0x80
MOV EAX,dword ptr [ESP + 0x8]
MOV EDX,ESI
MOV byte ptr [EAX + -0x1],DL
JMP 0x0002c2a0
LEA EBX,[EBX + 0x8f80]
JMP 0x0002c39b
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 FUN_0002c250(byte *param_1,uint param_2,int param_3)\n\n{\n  ushort uVar1;\n  short sVar2;\n  byte bVar3;\n  byte bVar4;\n  int iVar5;\n  ushort *puVar6;\n  uint uVar7;\n  byte *pbVar8;\n  byte *pbVar9;\n  uint uVar10;\n  uint uVar11;\n  bool bVar12;\n  uint local_34;\n  uint local_30;\n  byte *local_2c;\n  uint local_28;\n  uint local_20;\n  \n  if (param_3 != 0) {\n    if ((1 < param_2) && ((&DAT_00070f80)[param_2 + 0x7fffffff] == -1)) {\n      sVar2 = *(short *)(&DAT_00070f7e + (param_2 + 0x7fffffff) * 2);\n      while (((sVar2 < 0 && (param_2 = param_2 - 1, param_2 != 1)) &&\n             (*(short *)(&DAT_00070f7e + param_2 * 2) == -1))) {\n        sVar2 = *(short *)(&DAT_00070f7c + param_2 * 2);\n      }\n    }\n    puVar6 = &DAT_00070f80;\n    local_34 = 0;\n    local_30 = 0;\n    uVar7 = 0;\n    pbVar9 = param_1;\n    do {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      param_2 = param_2 - 1;\n      uVar10 = (uint)uVar1 << ((byte)uVar7 & 0x1f);\n      local_30 = local_30 | (int)uVar10 >> 0x1f;\n      uVar7 = uVar7 + 0x10;\n      local_34 = uVar10 | local_34;\n      do {\n        uVar11 = uVar7;\n        pbVar8 = pbVar9;\n        pbVar9 = pbVar8 + 1;\n        uVar10 = local_34 >> 7 | local_30 << 0x19;\n        bVar3 = (byte)local_34 & 0x7f;\n        local_30 = local_30 >> 7;\n        uVar7 = uVar11 - 7;\n        bVar4 = (byte)uVar7;\n        if (param_2 == 0) {\n          local_2c = (byte *)0x0;\n          local_28 = 0;\n          if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }\n          if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (param_1 != (byte *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar8 = bVar3 | 0x80;\n        }\n        local_34 = uVar10;\n      } while (6 < (int)uVar7);\n      if (param_2 == 0) {\n        uVar7 = 1 << ((char)uVar11 - 8U & 0x1f);\n        if (((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0) {\n          local_34 = -1 << (bVar4 & 0x1f) | uVar10;\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar9 = (byte)local_34 & 0x7f;\n        }\n        pbVar9 = pbVar8 + 2;\nLAB_0002c4a5:\n        return (int)pbVar9 - (int)param_1;\n      }\n    } while( true );\n  }\n  puVar6 = &DAT_00070f80;\n  if (param_2 != 0) {\n    do {\n      if (*(short *)(&DAT_00070f7e + param_2 * 2) != 0) break;\n      param_2 = param_2 - 1;\n    } while (param_2 != 0);\n  }\n  local_34 = 0;\n  local_30 = 0;\n  iVar5 = 0;\n  pbVar9 = param_1;\n  local_20 = param_2;\n  while( true ) {\n    local_2c = pbVar9;\n    bVar12 = local_20 != 0;\n    if ((iVar5 < 7) && (bVar12)) {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      uVar7 = (uint)uVar1 << ((byte)iVar5 & 0x1f);\n      iVar5 = iVar5 + 0x10;\n      local_34 = uVar7 | local_34;\n      local_30 = local_30 | (int)uVar7 >> 0x1f;\n      local_20 = local_20 - 1;\n      bVar12 = local_20 != 0;\n    }\n    iVar5 = iVar5 + -7;\n    pbVar9 = local_2c + 1;\n    uVar7 = local_34 >> 7 | local_30 << 0x19;\n    local_30 = local_30 >> 7;\n    bVar3 = (byte)local_34 & 0x7f;\n    if ((uVar7 == 0 && local_30 == 0) && (!bVar12)) break;\n    local_34 = uVar7;\n    if (param_1 != (byte *)0x0) {\n      *local_2c = bVar3 | 0x80;\n    }\n  }\n  if (param_1 != (byte *)0x0) {\n    *local_2c = bVar3;\n  }\n  return (int)pbVar9 - (int)param_1;\n}\n\n" comment (function_definition "int __regparm3 FUN_0002c250(byte *param_1,uint param_2,int param_3)\n\n{\n  ushort uVar1;\n  short sVar2;\n  byte bVar3;\n  byte bVar4;\n  int iVar5;\n  ushort *puVar6;\n  uint uVar7;\n  byte *pbVar8;\n  byte *pbVar9;\n  uint uVar10;\n  uint uVar11;\n  bool bVar12;\n  uint local_34;\n  uint local_30;\n  byte *local_2c;\n  uint local_28;\n  uint local_20;\n  \n  if (param_3 != 0) {\n    if ((1 < param_2) && ((&DAT_00070f80)[param_2 + 0x7fffffff] == -1)) {\n      sVar2 = *(short *)(&DAT_00070f7e + (param_2 + 0x7fffffff) * 2);\n      while (((sVar2 < 0 && (param_2 = param_2 - 1, param_2 != 1)) &&\n             (*(short *)(&DAT_00070f7e + param_2 * 2) == -1))) {\n        sVar2 = *(short *)(&DAT_00070f7c + param_2 * 2);\n      }\n    }\n    puVar6 = &DAT_00070f80;\n    local_34 = 0;\n    local_30 = 0;\n    uVar7 = 0;\n    pbVar9 = param_1;\n    do {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      param_2 = param_2 - 1;\n      uVar10 = (uint)uVar1 << ((byte)uVar7 & 0x1f);\n      local_30 = local_30 | (int)uVar10 >> 0x1f;\n      uVar7 = uVar7 + 0x10;\n      local_34 = uVar10 | local_34;\n      do {\n        uVar11 = uVar7;\n        pbVar8 = pbVar9;\n        pbVar9 = pbVar8 + 1;\n        uVar10 = local_34 >> 7 | local_30 << 0x19;\n        bVar3 = (byte)local_34 & 0x7f;\n        local_30 = local_30 >> 7;\n        uVar7 = uVar11 - 7;\n        bVar4 = (byte)uVar7;\n        if (param_2 == 0) {\n          local_2c = (byte *)0x0;\n          local_28 = 0;\n          if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }\n          if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (param_1 != (byte *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar8 = bVar3 | 0x80;\n        }\n        local_34 = uVar10;\n      } while (6 < (int)uVar7);\n      if (param_2 == 0) {\n        uVar7 = 1 << ((char)uVar11 - 8U & 0x1f);\n        if (((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0) {\n          local_34 = -1 << (bVar4 & 0x1f) | uVar10;\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar9 = (byte)local_34 & 0x7f;\n        }\n        pbVar9 = pbVar8 + 2;\nLAB_0002c4a5:\n        return (int)pbVar9 - (int)param_1;\n      }\n    } while( true );\n  }\n  puVar6 = &DAT_00070f80;\n  if (param_2 != 0) {\n    do {\n      if (*(short *)(&DAT_00070f7e + param_2 * 2) != 0) break;\n      param_2 = param_2 - 1;\n    } while (param_2 != 0);\n  }\n  local_34 = 0;\n  local_30 = 0;\n  iVar5 = 0;\n  pbVar9 = param_1;\n  local_20 = param_2;\n  while( true ) {\n    local_2c = pbVar9;\n    bVar12 = local_20 != 0;\n    if ((iVar5 < 7) && (bVar12)) {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      uVar7 = (uint)uVar1 << ((byte)iVar5 & 0x1f);\n      iVar5 = iVar5 + 0x10;\n      local_34 = uVar7 | local_34;\n      local_30 = local_30 | (int)uVar7 >> 0x1f;\n      local_20 = local_20 - 1;\n      bVar12 = local_20 != 0;\n    }\n    iVar5 = iVar5 + -7;\n    pbVar9 = local_2c + 1;\n    uVar7 = local_34 >> 7 | local_30 << 0x19;\n    local_30 = local_30 >> 7;\n    bVar3 = (byte)local_34 & 0x7f;\n    if ((uVar7 == 0 && local_30 == 0) && (!bVar12)) break;\n    local_34 = uVar7;\n    if (param_1 != (byte *)0x0) {\n      *local_2c = bVar3 | 0x80;\n    }\n  }\n  if (param_1 != (byte *)0x0) {\n    *local_2c = bVar3;\n  }\n  return (int)pbVar9 - (int)param_1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0002c250(byte *param_1,uint param_2,int param_3)" identifier (parameter_list "(byte *param_1,uint param_2,int param_3)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  ushort uVar1;\n  short sVar2;\n  byte bVar3;\n  byte bVar4;\n  int iVar5;\n  ushort *puVar6;\n  uint uVar7;\n  byte *pbVar8;\n  byte *pbVar9;\n  uint uVar10;\n  uint uVar11;\n  bool bVar12;\n  uint local_34;\n  uint local_30;\n  byte *local_2c;\n  uint local_28;\n  uint local_20;\n  \n  if (param_3 != 0) {\n    if ((1 < param_2) && ((&DAT_00070f80)[param_2 + 0x7fffffff] == -1)) {\n      sVar2 = *(short *)(&DAT_00070f7e + (param_2 + 0x7fffffff) * 2);\n      while (((sVar2 < 0 && (param_2 = param_2 - 1, param_2 != 1)) &&\n             (*(short *)(&DAT_00070f7e + param_2 * 2) == -1))) {\n        sVar2 = *(short *)(&DAT_00070f7c + param_2 * 2);\n      }\n    }\n    puVar6 = &DAT_00070f80;\n    local_34 = 0;\n    local_30 = 0;\n    uVar7 = 0;\n    pbVar9 = param_1;\n    do {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      param_2 = param_2 - 1;\n      uVar10 = (uint)uVar1 << ((byte)uVar7 & 0x1f);\n      local_30 = local_30 | (int)uVar10 >> 0x1f;\n      uVar7 = uVar7 + 0x10;\n      local_34 = uVar10 | local_34;\n      do {\n        uVar11 = uVar7;\n        pbVar8 = pbVar9;\n        pbVar9 = pbVar8 + 1;\n        uVar10 = local_34 >> 7 | local_30 << 0x19;\n        bVar3 = (byte)local_34 & 0x7f;\n        local_30 = local_30 >> 7;\n        uVar7 = uVar11 - 7;\n        bVar4 = (byte)uVar7;\n        if (param_2 == 0) {\n          local_2c = (byte *)0x0;\n          local_28 = 0;\n          if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }\n          if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (param_1 != (byte *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar8 = bVar3 | 0x80;\n        }\n        local_34 = uVar10;\n      } while (6 < (int)uVar7);\n      if (param_2 == 0) {\n        uVar7 = 1 << ((char)uVar11 - 8U & 0x1f);\n        if (((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0) {\n          local_34 = -1 << (bVar4 & 0x1f) | uVar10;\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar9 = (byte)local_34 & 0x7f;\n        }\n        pbVar9 = pbVar8 + 2;\nLAB_0002c4a5:\n        return (int)pbVar9 - (int)param_1;\n      }\n    } while( true );\n  }\n  puVar6 = &DAT_00070f80;\n  if (param_2 != 0) {\n    do {\n      if (*(short *)(&DAT_00070f7e + param_2 * 2) != 0) break;\n      param_2 = param_2 - 1;\n    } while (param_2 != 0);\n  }\n  local_34 = 0;\n  local_30 = 0;\n  iVar5 = 0;\n  pbVar9 = param_1;\n  local_20 = param_2;\n  while( true ) {\n    local_2c = pbVar9;\n    bVar12 = local_20 != 0;\n    if ((iVar5 < 7) && (bVar12)) {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      uVar7 = (uint)uVar1 << ((byte)iVar5 & 0x1f);\n      iVar5 = iVar5 + 0x10;\n      local_34 = uVar7 | local_34;\n      local_30 = local_30 | (int)uVar7 >> 0x1f;\n      local_20 = local_20 - 1;\n      bVar12 = local_20 != 0;\n    }\n    iVar5 = iVar5 + -7;\n    pbVar9 = local_2c + 1;\n    uVar7 = local_34 >> 7 | local_30 << 0x19;\n    local_30 = local_30 >> 7;\n    bVar3 = (byte)local_34 & 0x7f;\n    if ((uVar7 == 0 && local_30 == 0) && (!bVar12)) break;\n    local_34 = uVar7;\n    if (param_1 != (byte *)0x0) {\n      *local_2c = bVar3 | 0x80;\n    }\n  }\n  if (param_1 != (byte *)0x0) {\n    *local_2c = bVar3;\n  }\n  return (int)pbVar9 - (int)param_1;\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "short sVar2;" (sized_type_specifier "short" short) identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "byte bVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "ushort *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "byte *pbVar9;" type_identifier (pointer_declarator "*pbVar9" * identifier) ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "bool bVar12;" primitive_type identifier ;) (declaration "uint local_34;" type_identifier identifier ;) (declaration "uint local_30;" type_identifier identifier ;) (declaration "byte *local_2c;" type_identifier (pointer_declarator "*local_2c" * identifier) ;) (declaration "uint local_28;" type_identifier identifier ;) (declaration "uint local_20;" type_identifier identifier ;) (if_statement "if (param_3 != 0) {\n    if ((1 < param_2) && ((&DAT_00070f80)[param_2 + 0x7fffffff] == -1)) {\n      sVar2 = *(short *)(&DAT_00070f7e + (param_2 + 0x7fffffff) * 2);\n      while (((sVar2 < 0 && (param_2 = param_2 - 1, param_2 != 1)) &&\n             (*(short *)(&DAT_00070f7e + param_2 * 2) == -1))) {\n        sVar2 = *(short *)(&DAT_00070f7c + param_2 * 2);\n      }\n    }\n    puVar6 = &DAT_00070f80;\n    local_34 = 0;\n    local_30 = 0;\n    uVar7 = 0;\n    pbVar9 = param_1;\n    do {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      param_2 = param_2 - 1;\n      uVar10 = (uint)uVar1 << ((byte)uVar7 & 0x1f);\n      local_30 = local_30 | (int)uVar10 >> 0x1f;\n      uVar7 = uVar7 + 0x10;\n      local_34 = uVar10 | local_34;\n      do {\n        uVar11 = uVar7;\n        pbVar8 = pbVar9;\n        pbVar9 = pbVar8 + 1;\n        uVar10 = local_34 >> 7 | local_30 << 0x19;\n        bVar3 = (byte)local_34 & 0x7f;\n        local_30 = local_30 >> 7;\n        uVar7 = uVar11 - 7;\n        bVar4 = (byte)uVar7;\n        if (param_2 == 0) {\n          local_2c = (byte *)0x0;\n          local_28 = 0;\n          if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }\n          if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (param_1 != (byte *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar8 = bVar3 | 0x80;\n        }\n        local_34 = uVar10;\n      } while (6 < (int)uVar7);\n      if (param_2 == 0) {\n        uVar7 = 1 << ((char)uVar11 - 8U & 0x1f);\n        if (((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0) {\n          local_34 = -1 << (bVar4 & 0x1f) | uVar10;\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar9 = (byte)local_34 & 0x7f;\n        }\n        pbVar9 = pbVar8 + 2;\nLAB_0002c4a5:\n        return (int)pbVar9 - (int)param_1;\n      }\n    } while( true );\n  }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n    if ((1 < param_2) && ((&DAT_00070f80)[param_2 + 0x7fffffff] == -1)) {\n      sVar2 = *(short *)(&DAT_00070f7e + (param_2 + 0x7fffffff) * 2);\n      while (((sVar2 < 0 && (param_2 = param_2 - 1, param_2 != 1)) &&\n             (*(short *)(&DAT_00070f7e + param_2 * 2) == -1))) {\n        sVar2 = *(short *)(&DAT_00070f7c + param_2 * 2);\n      }\n    }\n    puVar6 = &DAT_00070f80;\n    local_34 = 0;\n    local_30 = 0;\n    uVar7 = 0;\n    pbVar9 = param_1;\n    do {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      param_2 = param_2 - 1;\n      uVar10 = (uint)uVar1 << ((byte)uVar7 & 0x1f);\n      local_30 = local_30 | (int)uVar10 >> 0x1f;\n      uVar7 = uVar7 + 0x10;\n      local_34 = uVar10 | local_34;\n      do {\n        uVar11 = uVar7;\n        pbVar8 = pbVar9;\n        pbVar9 = pbVar8 + 1;\n        uVar10 = local_34 >> 7 | local_30 << 0x19;\n        bVar3 = (byte)local_34 & 0x7f;\n        local_30 = local_30 >> 7;\n        uVar7 = uVar11 - 7;\n        bVar4 = (byte)uVar7;\n        if (param_2 == 0) {\n          local_2c = (byte *)0x0;\n          local_28 = 0;\n          if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }\n          if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (param_1 != (byte *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar8 = bVar3 | 0x80;\n        }\n        local_34 = uVar10;\n      } while (6 < (int)uVar7);\n      if (param_2 == 0) {\n        uVar7 = 1 << ((char)uVar11 - 8U & 0x1f);\n        if (((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0) {\n          local_34 = -1 << (bVar4 & 0x1f) | uVar10;\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar9 = (byte)local_34 & 0x7f;\n        }\n        pbVar9 = pbVar8 + 2;\nLAB_0002c4a5:\n        return (int)pbVar9 - (int)param_1;\n      }\n    } while( true );\n  }" { (if_statement "if ((1 < param_2) && ((&DAT_00070f80)[param_2 + 0x7fffffff] == -1)) {\n      sVar2 = *(short *)(&DAT_00070f7e + (param_2 + 0x7fffffff) * 2);\n      while (((sVar2 < 0 && (param_2 = param_2 - 1, param_2 != 1)) &&\n             (*(short *)(&DAT_00070f7e + param_2 * 2) == -1))) {\n        sVar2 = *(short *)(&DAT_00070f7c + param_2 * 2);\n      }\n    }" if (parenthesized_expression "((1 < param_2) && ((&DAT_00070f80)[param_2 + 0x7fffffff] == -1))" ( (binary_expression "(1 < param_2) && ((&DAT_00070f80)[param_2 + 0x7fffffff] == -1)" (parenthesized_expression "(1 < param_2)" ( (binary_expression "1 < param_2" number_literal < identifier) )) && (parenthesized_expression "((&DAT_00070f80)[param_2 + 0x7fffffff] == -1)" ( (binary_expression "(&DAT_00070f80)[param_2 + 0x7fffffff] == -1" (subscript_expression "(&DAT_00070f80)[param_2 + 0x7fffffff]" (parenthesized_expression "(&DAT_00070f80)" ( (pointer_expression "&DAT_00070f80" & identifier) )) [ (binary_expression "param_2 + 0x7fffffff" identifier + number_literal) ]) == number_literal) ))) )) (compound_statement "{\n      sVar2 = *(short *)(&DAT_00070f7e + (param_2 + 0x7fffffff) * 2);\n      while (((sVar2 < 0 && (param_2 = param_2 - 1, param_2 != 1)) &&\n             (*(short *)(&DAT_00070f7e + param_2 * 2) == -1))) {\n        sVar2 = *(short *)(&DAT_00070f7c + param_2 * 2);\n      }\n    }" { (expression_statement "sVar2 = *(short *)(&DAT_00070f7e + (param_2 + 0x7fffffff) * 2);" (assignment_expression "sVar2 = *(short *)(&DAT_00070f7e + (param_2 + 0x7fffffff) * 2)" identifier = (pointer_expression "*(short *)(&DAT_00070f7e + (param_2 + 0x7fffffff) * 2)" * (cast_expression "(short *)(&DAT_00070f7e + (param_2 + 0x7fffffff) * 2)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00070f7e + (param_2 + 0x7fffffff) * 2)" ( (binary_expression "&DAT_00070f7e + (param_2 + 0x7fffffff) * 2" (pointer_expression "&DAT_00070f7e" & identifier) + (binary_expression "(param_2 + 0x7fffffff) * 2" (parenthesized_expression "(param_2 + 0x7fffffff)" ( (binary_expression "param_2 + 0x7fffffff" identifier + number_literal) )) * number_literal)) ))))) ;) (while_statement "while (((sVar2 < 0 && (param_2 = param_2 - 1, param_2 != 1)) &&\n             (*(short *)(&DAT_00070f7e + param_2 * 2) == -1))) {\n        sVar2 = *(short *)(&DAT_00070f7c + param_2 * 2);\n      }" while (parenthesized_expression "(((sVar2 < 0 && (param_2 = param_2 - 1, param_2 != 1)) &&\n             (*(short *)(&DAT_00070f7e + param_2 * 2) == -1)))" ( (parenthesized_expression "((sVar2 < 0 && (param_2 = param_2 - 1, param_2 != 1)) &&\n             (*(short *)(&DAT_00070f7e + param_2 * 2) == -1))" ( (binary_expression "(sVar2 < 0 && (param_2 = param_2 - 1, param_2 != 1)) &&\n             (*(short *)(&DAT_00070f7e + param_2 * 2) == -1)" (parenthesized_expression "(sVar2 < 0 && (param_2 = param_2 - 1, param_2 != 1))" ( (binary_expression "sVar2 < 0 && (param_2 = param_2 - 1, param_2 != 1)" (binary_expression "sVar2 < 0" identifier < number_literal) && (parenthesized_expression "(param_2 = param_2 - 1, param_2 != 1)" ( (comma_expression "param_2 = param_2 - 1, param_2 != 1" (assignment_expression "param_2 = param_2 - 1" identifier = (binary_expression "param_2 - 1" identifier - number_literal)) , (binary_expression "param_2 != 1" identifier != number_literal)) ))) )) && (parenthesized_expression "(*(short *)(&DAT_00070f7e + param_2 * 2) == -1)" ( (binary_expression "*(short *)(&DAT_00070f7e + param_2 * 2) == -1" (pointer_expression "*(short *)(&DAT_00070f7e + param_2 * 2)" * (cast_expression "(short *)(&DAT_00070f7e + param_2 * 2)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00070f7e + param_2 * 2)" ( (binary_expression "&DAT_00070f7e + param_2 * 2" (pointer_expression "&DAT_00070f7e" & identifier) + (binary_expression "param_2 * 2" identifier * number_literal)) )))) == number_literal) ))) )) )) (compound_statement "{\n        sVar2 = *(short *)(&DAT_00070f7c + param_2 * 2);\n      }" { (expression_statement "sVar2 = *(short *)(&DAT_00070f7c + param_2 * 2);" (assignment_expression "sVar2 = *(short *)(&DAT_00070f7c + param_2 * 2)" identifier = (pointer_expression "*(short *)(&DAT_00070f7c + param_2 * 2)" * (cast_expression "(short *)(&DAT_00070f7c + param_2 * 2)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00070f7c + param_2 * 2)" ( (binary_expression "&DAT_00070f7c + param_2 * 2" (pointer_expression "&DAT_00070f7c" & identifier) + (binary_expression "param_2 * 2" identifier * number_literal)) ))))) ;) })) })) (expression_statement "puVar6 = &DAT_00070f80;" (assignment_expression "puVar6 = &DAT_00070f80" identifier = (pointer_expression "&DAT_00070f80" & identifier)) ;) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "pbVar9 = param_1;" (assignment_expression "pbVar9 = param_1" identifier = identifier) ;) (do_statement "do {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      param_2 = param_2 - 1;\n      uVar10 = (uint)uVar1 << ((byte)uVar7 & 0x1f);\n      local_30 = local_30 | (int)uVar10 >> 0x1f;\n      uVar7 = uVar7 + 0x10;\n      local_34 = uVar10 | local_34;\n      do {\n        uVar11 = uVar7;\n        pbVar8 = pbVar9;\n        pbVar9 = pbVar8 + 1;\n        uVar10 = local_34 >> 7 | local_30 << 0x19;\n        bVar3 = (byte)local_34 & 0x7f;\n        local_30 = local_30 >> 7;\n        uVar7 = uVar11 - 7;\n        bVar4 = (byte)uVar7;\n        if (param_2 == 0) {\n          local_2c = (byte *)0x0;\n          local_28 = 0;\n          if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }\n          if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (param_1 != (byte *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar8 = bVar3 | 0x80;\n        }\n        local_34 = uVar10;\n      } while (6 < (int)uVar7);\n      if (param_2 == 0) {\n        uVar7 = 1 << ((char)uVar11 - 8U & 0x1f);\n        if (((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0) {\n          local_34 = -1 << (bVar4 & 0x1f) | uVar10;\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar9 = (byte)local_34 & 0x7f;\n        }\n        pbVar9 = pbVar8 + 2;\nLAB_0002c4a5:\n        return (int)pbVar9 - (int)param_1;\n      }\n    } while( true );" do (compound_statement "{\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      param_2 = param_2 - 1;\n      uVar10 = (uint)uVar1 << ((byte)uVar7 & 0x1f);\n      local_30 = local_30 | (int)uVar10 >> 0x1f;\n      uVar7 = uVar7 + 0x10;\n      local_34 = uVar10 | local_34;\n      do {\n        uVar11 = uVar7;\n        pbVar8 = pbVar9;\n        pbVar9 = pbVar8 + 1;\n        uVar10 = local_34 >> 7 | local_30 << 0x19;\n        bVar3 = (byte)local_34 & 0x7f;\n        local_30 = local_30 >> 7;\n        uVar7 = uVar11 - 7;\n        bVar4 = (byte)uVar7;\n        if (param_2 == 0) {\n          local_2c = (byte *)0x0;\n          local_28 = 0;\n          if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }\n          if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (param_1 != (byte *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar8 = bVar3 | 0x80;\n        }\n        local_34 = uVar10;\n      } while (6 < (int)uVar7);\n      if (param_2 == 0) {\n        uVar7 = 1 << ((char)uVar11 - 8U & 0x1f);\n        if (((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0) {\n          local_34 = -1 << (bVar4 & 0x1f) | uVar10;\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar9 = (byte)local_34 & 0x7f;\n        }\n        pbVar9 = pbVar8 + 2;\nLAB_0002c4a5:\n        return (int)pbVar9 - (int)param_1;\n      }\n    }" { (expression_statement "uVar1 = *puVar6;" (assignment_expression "uVar1 = *puVar6" identifier = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) (expression_statement "param_2 = param_2 - 1;" (assignment_expression "param_2 = param_2 - 1" identifier = (binary_expression "param_2 - 1" identifier - number_literal)) ;) (expression_statement "uVar10 = (uint)uVar1 << ((byte)uVar7 & 0x1f);" (assignment_expression "uVar10 = (uint)uVar1 << ((byte)uVar7 & 0x1f)" identifier = (binary_expression "(uint)uVar1 << ((byte)uVar7 & 0x1f)" (cast_expression "(uint)uVar1" ( (type_descriptor "uint" type_identifier) ) identifier) << (parenthesized_expression "((byte)uVar7 & 0x1f)" ( (binary_expression "(byte)uVar7 & 0x1f" (cast_expression "(byte)uVar7" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )))) ;) (expression_statement "local_30 = local_30 | (int)uVar10 >> 0x1f;" (assignment_expression "local_30 = local_30 | (int)uVar10 >> 0x1f" identifier = (binary_expression "local_30 | (int)uVar10 >> 0x1f" identifier | (binary_expression "(int)uVar10 >> 0x1f" (cast_expression "(int)uVar10" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal))) ;) (expression_statement "uVar7 = uVar7 + 0x10;" (assignment_expression "uVar7 = uVar7 + 0x10" identifier = (binary_expression "uVar7 + 0x10" identifier + number_literal)) ;) (expression_statement "local_34 = uVar10 | local_34;" (assignment_expression "local_34 = uVar10 | local_34" identifier = (binary_expression "uVar10 | local_34" identifier | identifier)) ;) (do_statement "do {\n        uVar11 = uVar7;\n        pbVar8 = pbVar9;\n        pbVar9 = pbVar8 + 1;\n        uVar10 = local_34 >> 7 | local_30 << 0x19;\n        bVar3 = (byte)local_34 & 0x7f;\n        local_30 = local_30 >> 7;\n        uVar7 = uVar11 - 7;\n        bVar4 = (byte)uVar7;\n        if (param_2 == 0) {\n          local_2c = (byte *)0x0;\n          local_28 = 0;\n          if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }\n          if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (param_1 != (byte *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar8 = bVar3 | 0x80;\n        }\n        local_34 = uVar10;\n      } while (6 < (int)uVar7);" do (compound_statement "{\n        uVar11 = uVar7;\n        pbVar8 = pbVar9;\n        pbVar9 = pbVar8 + 1;\n        uVar10 = local_34 >> 7 | local_30 << 0x19;\n        bVar3 = (byte)local_34 & 0x7f;\n        local_30 = local_30 >> 7;\n        uVar7 = uVar11 - 7;\n        bVar4 = (byte)uVar7;\n        if (param_2 == 0) {\n          local_2c = (byte *)0x0;\n          local_28 = 0;\n          if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }\n          if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (param_1 != (byte *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar8 = bVar3 | 0x80;\n        }\n        local_34 = uVar10;\n      }" { (expression_statement "uVar11 = uVar7;" (assignment_expression "uVar11 = uVar7" identifier = identifier) ;) (expression_statement "pbVar8 = pbVar9;" (assignment_expression "pbVar8 = pbVar9" identifier = identifier) ;) (expression_statement "pbVar9 = pbVar8 + 1;" (assignment_expression "pbVar9 = pbVar8 + 1" identifier = (binary_expression "pbVar8 + 1" identifier + number_literal)) ;) (expression_statement "uVar10 = local_34 >> 7 | local_30 << 0x19;" (assignment_expression "uVar10 = local_34 >> 7 | local_30 << 0x19" identifier = (binary_expression "local_34 >> 7 | local_30 << 0x19" (binary_expression "local_34 >> 7" identifier >> number_literal) | (binary_expression "local_30 << 0x19" identifier << number_literal))) ;) (expression_statement "bVar3 = (byte)local_34 & 0x7f;" (assignment_expression "bVar3 = (byte)local_34 & 0x7f" identifier = (binary_expression "(byte)local_34 & 0x7f" (cast_expression "(byte)local_34" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal)) ;) (expression_statement "local_30 = local_30 >> 7;" (assignment_expression "local_30 = local_30 >> 7" identifier = (binary_expression "local_30 >> 7" identifier >> number_literal)) ;) (expression_statement "uVar7 = uVar11 - 7;" (assignment_expression "uVar7 = uVar11 - 7" identifier = (binary_expression "uVar11 - 7" identifier - number_literal)) ;) (expression_statement "bVar4 = (byte)uVar7;" (assignment_expression "bVar4 = (byte)uVar7" identifier = (cast_expression "(byte)uVar7" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (if_statement "if (param_2 == 0) {\n          local_2c = (byte *)0x0;\n          local_28 = 0;\n          if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }\n          if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (param_1 != (byte *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }\n        }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n          local_2c = (byte *)0x0;\n          local_28 = 0;\n          if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }\n          if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (param_1 != (byte *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }\n        }" { (expression_statement "local_2c = (byte *)0x0;" (assignment_expression "local_2c = (byte *)0x0" identifier = (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (if_statement "if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }" if (parenthesized_expression "((local_34 & 0x40) != 0)" ( (binary_expression "(local_34 & 0x40) != 0" (parenthesized_expression "(local_34 & 0x40)" ( (binary_expression "local_34 & 0x40" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }" { (expression_statement "bVar12 = (uVar7 & 0x20) == 0;" (assignment_expression "bVar12 = (uVar7 & 0x20) == 0" identifier = (binary_expression "(uVar7 & 0x20) == 0" (parenthesized_expression "(uVar7 & 0x20)" ( (binary_expression "uVar7 & 0x20" identifier & number_literal) )) == number_literal)) ;) (expression_statement "iVar5 = (uint)bVar12 << (bVar4 & 0x1f);" (assignment_expression "iVar5 = (uint)bVar12 << (bVar4 & 0x1f)" identifier = (binary_expression "(uint)bVar12 << (bVar4 & 0x1f)" (cast_expression "(uint)bVar12" ( (type_descriptor "uint" type_identifier) ) identifier) << (parenthesized_expression "(bVar4 & 0x1f)" ( (binary_expression "bVar4 & 0x1f" identifier & number_literal) )))) ;) (expression_statement "local_2c = (byte *)(iVar5 - 1);" (assignment_expression "local_2c = (byte *)(iVar5 - 1)" identifier = (cast_expression "(byte *)(iVar5 - 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 - 1)" ( (binary_expression "iVar5 - 1" identifier - number_literal) )))) ;) (expression_statement "local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);" (assignment_expression "local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0)" identifier = (binary_expression "((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0)" (binary_expression "((uint)!bVar12 << (bVar4 & 0x1f)) + -1" (parenthesized_expression "((uint)!bVar12 << (bVar4 & 0x1f))" ( (binary_expression "(uint)!bVar12 << (bVar4 & 0x1f)" (cast_expression "(uint)!bVar12" ( (type_descriptor "uint" type_identifier) ) (unary_expression "!bVar12" ! identifier)) << (parenthesized_expression "(bVar4 & 0x1f)" ( (binary_expression "bVar4 & 0x1f" identifier & number_literal) ))) )) + number_literal) + (call_expression "(uint)(iVar5 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) ))))) ;) })) (if_statement "if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (param_1 != (byte *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }" if (parenthesized_expression "(local_28 == local_30 && local_2c == (byte *)uVar10)" ( (binary_expression "local_28 == local_30 && local_2c == (byte *)uVar10" (binary_expression "local_28 == local_30" identifier == identifier) && (binary_expression "local_2c == (byte *)uVar10" identifier == (cast_expression "(byte *)uVar10" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n            if (param_1 != (byte *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }" { (if_statement "if (param_1 != (byte *)0x0) {\n              *pbVar8 = bVar3;\n            }" if (parenthesized_expression "(param_1 != (byte *)0x0)" ( (binary_expression "param_1 != (byte *)0x0" identifier != (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              *pbVar8 = bVar3;\n            }" { (expression_statement "*pbVar8 = bVar3;" (assignment_expression "*pbVar8 = bVar3" (pointer_expression "*pbVar8" * identifier) = identifier) ;) })) (goto_statement "goto LAB_0002c4a5;" goto statement_identifier ;) })) })) (if_statement "if (param_1 != (byte *)0x0) {\n          *pbVar8 = bVar3 | 0x80;\n        }" if (parenthesized_expression "(param_1 != (byte *)0x0)" ( (binary_expression "param_1 != (byte *)0x0" identifier != (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          *pbVar8 = bVar3 | 0x80;\n        }" { (expression_statement "*pbVar8 = bVar3 | 0x80;" (assignment_expression "*pbVar8 = bVar3 | 0x80" (pointer_expression "*pbVar8" * identifier) = (binary_expression "bVar3 | 0x80" identifier | number_literal)) ;) })) (expression_statement "local_34 = uVar10;" (assignment_expression "local_34 = uVar10" identifier = identifier) ;) }) while (parenthesized_expression "(6 < (int)uVar7)" ( (binary_expression "6 < (int)uVar7" number_literal < (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) (if_statement "if (param_2 == 0) {\n        uVar7 = 1 << ((char)uVar11 - 8U & 0x1f);\n        if (((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0) {\n          local_34 = -1 << (bVar4 & 0x1f) | uVar10;\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar9 = (byte)local_34 & 0x7f;\n        }\n        pbVar9 = pbVar8 + 2;\nLAB_0002c4a5:\n        return (int)pbVar9 - (int)param_1;\n      }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar7 = 1 << ((char)uVar11 - 8U & 0x1f);\n        if (((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0) {\n          local_34 = -1 << (bVar4 & 0x1f) | uVar10;\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar9 = (byte)local_34 & 0x7f;\n        }\n        pbVar9 = pbVar8 + 2;\nLAB_0002c4a5:\n        return (int)pbVar9 - (int)param_1;\n      }" { (expression_statement "uVar7 = 1 << ((char)uVar11 - 8U & 0x1f);" (assignment_expression "uVar7 = 1 << ((char)uVar11 - 8U & 0x1f)" identifier = (binary_expression "1 << ((char)uVar11 - 8U & 0x1f)" number_literal << (parenthesized_expression "((char)uVar11 - 8U & 0x1f)" ( (binary_expression "(char)uVar11 - 8U & 0x1f" (binary_expression "(char)uVar11 - 8U" (cast_expression "(char)uVar11" ( (type_descriptor "char" primitive_type) ) identifier) - number_literal) & number_literal) )))) ;) (if_statement "if (((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0) {\n          local_34 = -1 << (bVar4 & 0x1f) | uVar10;\n        }" if (parenthesized_expression "(((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0)" ( (binary_expression "((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0" (binary_expression "((int)uVar7 >> 0x1f & local_30) != 0" (parenthesized_expression "((int)uVar7 >> 0x1f & local_30)" ( (binary_expression "(int)uVar7 >> 0x1f & local_30" (binary_expression "(int)uVar7 >> 0x1f" (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) & identifier) )) != number_literal) || (binary_expression "(uVar7 & uVar10) != 0" (parenthesized_expression "(uVar7 & uVar10)" ( (binary_expression "uVar7 & uVar10" identifier & identifier) )) != number_literal)) )) (compound_statement "{\n          local_34 = -1 << (bVar4 & 0x1f) | uVar10;\n        }" { (expression_statement "local_34 = -1 << (bVar4 & 0x1f) | uVar10;" (assignment_expression "local_34 = -1 << (bVar4 & 0x1f) | uVar10" identifier = (binary_expression "-1 << (bVar4 & 0x1f) | uVar10" (binary_expression "-1 << (bVar4 & 0x1f)" number_literal << (parenthesized_expression "(bVar4 & 0x1f)" ( (binary_expression "bVar4 & 0x1f" identifier & number_literal) ))) | identifier)) ;) })) (if_statement "if (param_1 != (byte *)0x0) {\n          *pbVar9 = (byte)local_34 & 0x7f;\n        }" if (parenthesized_expression "(param_1 != (byte *)0x0)" ( (binary_expression "param_1 != (byte *)0x0" identifier != (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          *pbVar9 = (byte)local_34 & 0x7f;\n        }" { (expression_statement "*pbVar9 = (byte)local_34 & 0x7f;" (assignment_expression "*pbVar9 = (byte)local_34 & 0x7f" (pointer_expression "*pbVar9" * identifier) = (binary_expression "(byte)local_34 & 0x7f" (cast_expression "(byte)local_34" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal)) ;) })) (expression_statement "pbVar9 = pbVar8 + 2;" (assignment_expression "pbVar9 = pbVar8 + 2" identifier = (binary_expression "pbVar8 + 2" identifier + number_literal)) ;) (labeled_statement "LAB_0002c4a5:\n        return (int)pbVar9 - (int)param_1;" statement_identifier : (return_statement "return (int)pbVar9 - (int)param_1;" return (binary_expression "(int)pbVar9 - (int)param_1" (cast_expression "(int)pbVar9" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) ;)) })) }) while (parenthesized_expression "( true )" ( true )) ;) })) (expression_statement "puVar6 = &DAT_00070f80;" (assignment_expression "puVar6 = &DAT_00070f80" identifier = (pointer_expression "&DAT_00070f80" & identifier)) ;) (if_statement "if (param_2 != 0) {\n    do {\n      if (*(short *)(&DAT_00070f7e + param_2 * 2) != 0) break;\n      param_2 = param_2 - 1;\n    } while (param_2 != 0);\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      if (*(short *)(&DAT_00070f7e + param_2 * 2) != 0) break;\n      param_2 = param_2 - 1;\n    } while (param_2 != 0);\n  }" { (do_statement "do {\n      if (*(short *)(&DAT_00070f7e + param_2 * 2) != 0) break;\n      param_2 = param_2 - 1;\n    } while (param_2 != 0);" do (compound_statement "{\n      if (*(short *)(&DAT_00070f7e + param_2 * 2) != 0) break;\n      param_2 = param_2 - 1;\n    }" { (if_statement "if (*(short *)(&DAT_00070f7e + param_2 * 2) != 0) break;" if (parenthesized_expression "(*(short *)(&DAT_00070f7e + param_2 * 2) != 0)" ( (binary_expression "*(short *)(&DAT_00070f7e + param_2 * 2) != 0" (pointer_expression "*(short *)(&DAT_00070f7e + param_2 * 2)" * (cast_expression "(short *)(&DAT_00070f7e + param_2 * 2)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00070f7e + param_2 * 2)" ( (binary_expression "&DAT_00070f7e + param_2 * 2" (pointer_expression "&DAT_00070f7e" & identifier) + (binary_expression "param_2 * 2" identifier * number_literal)) )))) != number_literal) )) (break_statement "break;" break ;)) (expression_statement "param_2 = param_2 - 1;" (assignment_expression "param_2 = param_2 - 1" identifier = (binary_expression "param_2 - 1" identifier - number_literal)) ;) }) while (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) ;) })) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "pbVar9 = param_1;" (assignment_expression "pbVar9 = param_1" identifier = identifier) ;) (expression_statement "local_20 = param_2;" (assignment_expression "local_20 = param_2" identifier = identifier) ;) (while_statement "while( true ) {\n    local_2c = pbVar9;\n    bVar12 = local_20 != 0;\n    if ((iVar5 < 7) && (bVar12)) {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      uVar7 = (uint)uVar1 << ((byte)iVar5 & 0x1f);\n      iVar5 = iVar5 + 0x10;\n      local_34 = uVar7 | local_34;\n      local_30 = local_30 | (int)uVar7 >> 0x1f;\n      local_20 = local_20 - 1;\n      bVar12 = local_20 != 0;\n    }\n    iVar5 = iVar5 + -7;\n    pbVar9 = local_2c + 1;\n    uVar7 = local_34 >> 7 | local_30 << 0x19;\n    local_30 = local_30 >> 7;\n    bVar3 = (byte)local_34 & 0x7f;\n    if ((uVar7 == 0 && local_30 == 0) && (!bVar12)) break;\n    local_34 = uVar7;\n    if (param_1 != (byte *)0x0) {\n      *local_2c = bVar3 | 0x80;\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    local_2c = pbVar9;\n    bVar12 = local_20 != 0;\n    if ((iVar5 < 7) && (bVar12)) {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      uVar7 = (uint)uVar1 << ((byte)iVar5 & 0x1f);\n      iVar5 = iVar5 + 0x10;\n      local_34 = uVar7 | local_34;\n      local_30 = local_30 | (int)uVar7 >> 0x1f;\n      local_20 = local_20 - 1;\n      bVar12 = local_20 != 0;\n    }\n    iVar5 = iVar5 + -7;\n    pbVar9 = local_2c + 1;\n    uVar7 = local_34 >> 7 | local_30 << 0x19;\n    local_30 = local_30 >> 7;\n    bVar3 = (byte)local_34 & 0x7f;\n    if ((uVar7 == 0 && local_30 == 0) && (!bVar12)) break;\n    local_34 = uVar7;\n    if (param_1 != (byte *)0x0) {\n      *local_2c = bVar3 | 0x80;\n    }\n  }" { (expression_statement "local_2c = pbVar9;" (assignment_expression "local_2c = pbVar9" identifier = identifier) ;) (expression_statement "bVar12 = local_20 != 0;" (assignment_expression "bVar12 = local_20 != 0" identifier = (binary_expression "local_20 != 0" identifier != number_literal)) ;) (if_statement "if ((iVar5 < 7) && (bVar12)) {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      uVar7 = (uint)uVar1 << ((byte)iVar5 & 0x1f);\n      iVar5 = iVar5 + 0x10;\n      local_34 = uVar7 | local_34;\n      local_30 = local_30 | (int)uVar7 >> 0x1f;\n      local_20 = local_20 - 1;\n      bVar12 = local_20 != 0;\n    }" if (parenthesized_expression "((iVar5 < 7) && (bVar12))" ( (binary_expression "(iVar5 < 7) && (bVar12)" (parenthesized_expression "(iVar5 < 7)" ( (binary_expression "iVar5 < 7" identifier < number_literal) )) && (parenthesized_expression "(bVar12)" ( identifier ))) )) (compound_statement "{\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      uVar7 = (uint)uVar1 << ((byte)iVar5 & 0x1f);\n      iVar5 = iVar5 + 0x10;\n      local_34 = uVar7 | local_34;\n      local_30 = local_30 | (int)uVar7 >> 0x1f;\n      local_20 = local_20 - 1;\n      bVar12 = local_20 != 0;\n    }" { (expression_statement "uVar1 = *puVar6;" (assignment_expression "uVar1 = *puVar6" identifier = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) (expression_statement "uVar7 = (uint)uVar1 << ((byte)iVar5 & 0x1f);" (assignment_expression "uVar7 = (uint)uVar1 << ((byte)iVar5 & 0x1f)" identifier = (binary_expression "(uint)uVar1 << ((byte)iVar5 & 0x1f)" (cast_expression "(uint)uVar1" ( (type_descriptor "uint" type_identifier) ) identifier) << (parenthesized_expression "((byte)iVar5 & 0x1f)" ( (binary_expression "(byte)iVar5 & 0x1f" (cast_expression "(byte)iVar5" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )))) ;) (expression_statement "iVar5 = iVar5 + 0x10;" (assignment_expression "iVar5 = iVar5 + 0x10" identifier = (binary_expression "iVar5 + 0x10" identifier + number_literal)) ;) (expression_statement "local_34 = uVar7 | local_34;" (assignment_expression "local_34 = uVar7 | local_34" identifier = (binary_expression "uVar7 | local_34" identifier | identifier)) ;) (expression_statement "local_30 = local_30 | (int)uVar7 >> 0x1f;" (assignment_expression "local_30 = local_30 | (int)uVar7 >> 0x1f" identifier = (binary_expression "local_30 | (int)uVar7 >> 0x1f" identifier | (binary_expression "(int)uVar7 >> 0x1f" (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal))) ;) (expression_statement "local_20 = local_20 - 1;" (assignment_expression "local_20 = local_20 - 1" identifier = (binary_expression "local_20 - 1" identifier - number_literal)) ;) (expression_statement "bVar12 = local_20 != 0;" (assignment_expression "bVar12 = local_20 != 0" identifier = (binary_expression "local_20 != 0" identifier != number_literal)) ;) })) (expression_statement "iVar5 = iVar5 + -7;" (assignment_expression "iVar5 = iVar5 + -7" identifier = (binary_expression "iVar5 + -7" identifier + number_literal)) ;) (expression_statement "pbVar9 = local_2c + 1;" (assignment_expression "pbVar9 = local_2c + 1" identifier = (binary_expression "local_2c + 1" identifier + number_literal)) ;) (expression_statement "uVar7 = local_34 >> 7 | local_30 << 0x19;" (assignment_expression "uVar7 = local_34 >> 7 | local_30 << 0x19" identifier = (binary_expression "local_34 >> 7 | local_30 << 0x19" (binary_expression "local_34 >> 7" identifier >> number_literal) | (binary_expression "local_30 << 0x19" identifier << number_literal))) ;) (expression_statement "local_30 = local_30 >> 7;" (assignment_expression "local_30 = local_30 >> 7" identifier = (binary_expression "local_30 >> 7" identifier >> number_literal)) ;) (expression_statement "bVar3 = (byte)local_34 & 0x7f;" (assignment_expression "bVar3 = (byte)local_34 & 0x7f" identifier = (binary_expression "(byte)local_34 & 0x7f" (cast_expression "(byte)local_34" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal)) ;) (if_statement "if ((uVar7 == 0 && local_30 == 0) && (!bVar12)) break;" if (parenthesized_expression "((uVar7 == 0 && local_30 == 0) && (!bVar12))" ( (binary_expression "(uVar7 == 0 && local_30 == 0) && (!bVar12)" (parenthesized_expression "(uVar7 == 0 && local_30 == 0)" ( (binary_expression "uVar7 == 0 && local_30 == 0" (binary_expression "uVar7 == 0" identifier == number_literal) && (binary_expression "local_30 == 0" identifier == number_literal)) )) && (parenthesized_expression "(!bVar12)" ( (unary_expression "!bVar12" ! identifier) ))) )) (break_statement "break;" break ;)) (expression_statement "local_34 = uVar7;" (assignment_expression "local_34 = uVar7" identifier = identifier) ;) (if_statement "if (param_1 != (byte *)0x0) {\n      *local_2c = bVar3 | 0x80;\n    }" if (parenthesized_expression "(param_1 != (byte *)0x0)" ( (binary_expression "param_1 != (byte *)0x0" identifier != (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *local_2c = bVar3 | 0x80;\n    }" { (expression_statement "*local_2c = bVar3 | 0x80;" (assignment_expression "*local_2c = bVar3 | 0x80" (pointer_expression "*local_2c" * identifier) = (binary_expression "bVar3 | 0x80" identifier | number_literal)) ;) })) })) (if_statement "if (param_1 != (byte *)0x0) {\n    *local_2c = bVar3;\n  }" if (parenthesized_expression "(param_1 != (byte *)0x0)" ( (binary_expression "param_1 != (byte *)0x0" identifier != (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *local_2c = bVar3;\n  }" { (expression_statement "*local_2c = bVar3;" (assignment_expression "*local_2c = bVar3" (pointer_expression "*local_2c" * identifier) = identifier) ;) })) (return_statement "return (int)pbVar9 - (int)param_1;" return (binary_expression "(int)pbVar9 - (int)param_1" (cast_expression "(int)pbVar9" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nuint __regparm3 output_big_leb128(char *p,LITTLENUM_TYPE *bignum,uint size,int sign)\n\n{\n  ushort uVar1;\n  short sVar2;\n  byte bVar3;\n  byte bVar4;\n  int iVar5;\n  ushort *puVar6;\n  uint uVar7;\n  byte *pbVar8;\n  byte *pbVar9;\n  uint uVar10;\n  uint uVar11;\n  bool bVar12;\n  uint local_34;\n  uint local_30;\n  byte *local_2c;\n  uint local_28;\n  LITTLENUM_TYPE *local_20;\n  \n  if (size != 0) {\n    if (((LITTLENUM_TYPE *)0x1 < bignum) && ((&generic_bignum)[(int)bignum + 0x7fffffff] == -1)) {\n      sVar2 = *(short *)(&DAT_00070f7e + ((int)bignum + 0x7fffffff) * 2);\n      while (((sVar2 < 0 &&\n              (bignum = (LITTLENUM_TYPE *)((int)bignum + -1), bignum != (LITTLENUM_TYPE *)0x1)) &&\n             (*(short *)(&DAT_00070f7e + (int)bignum * 2) == -1))) {\n        sVar2 = *(short *)(&DAT_00070f7c + (int)bignum * 2);\n      }\n    }\n    puVar6 = &generic_bignum;\n    local_34 = 0;\n    local_30 = 0;\n    uVar7 = 0;\n    pbVar9 = (byte *)p;\n    do {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      bignum = (LITTLENUM_TYPE *)((int)bignum + -1);\n      uVar10 = (uint)uVar1 << ((byte)uVar7 & 0x1f);\n      local_30 = local_30 | (int)uVar10 >> 0x1f;\n      uVar7 = uVar7 + 0x10;\n      local_34 = uVar10 | local_34;\n      do {\n        uVar11 = uVar7;\n        pbVar8 = pbVar9;\n        pbVar9 = pbVar8 + 1;\n        uVar10 = local_34 >> 7 | local_30 << 0x19;\n        bVar3 = (byte)local_34 & 0x7f;\n        local_30 = local_30 >> 7;\n        uVar7 = uVar11 - 7;\n        bVar4 = (byte)uVar7;\n        if (bignum == (LITTLENUM_TYPE *)0x0) {\n          local_2c = (byte *)0x0;\n          local_28 = 0;\n          if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }\n          if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (p != (char *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }\n        }\n        if (p != (char *)0x0) {\n          *pbVar8 = bVar3 | 0x80;\n        }\n        local_34 = uVar10;\n      } while (6 < (int)uVar7);\n      if (bignum == (LITTLENUM_TYPE *)0x0) {\n        uVar7 = 1 << ((char)uVar11 - 8U & 0x1f);\n        if (((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0) {\n          local_34 = -1 << (bVar4 & 0x1f) | uVar10;\n        }\n        if (p != (char *)0x0) {\n          *pbVar9 = (byte)local_34 & 0x7f;\n        }\n        pbVar9 = pbVar8 + 2;\nLAB_0002c4a5:\n        return (int)pbVar9 - (int)p;\n      }\n    } while( true );\n  }\n  puVar6 = &generic_bignum;\n  if (bignum != (LITTLENUM_TYPE *)0x0) {\n    do {\n      if (*(short *)(&DAT_00070f7e + (int)bignum * 2) != 0) break;\n      bignum = (LITTLENUM_TYPE *)((int)bignum + -1);\n    } while (bignum != (LITTLENUM_TYPE *)0x0);\n  }\n  local_34 = 0;\n  local_30 = 0;\n  iVar5 = 0;\n  pbVar9 = (byte *)p;\n  local_20 = bignum;\n  while( true ) {\n    local_2c = pbVar9;\n    bVar12 = local_20 != (LITTLENUM_TYPE *)0x0;\n    if ((iVar5 < 7) && (bVar12)) {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      uVar7 = (uint)uVar1 << ((byte)iVar5 & 0x1f);\n      iVar5 = iVar5 + 0x10;\n      local_34 = uVar7 | local_34;\n      local_30 = local_30 | (int)uVar7 >> 0x1f;\n      local_20 = (LITTLENUM_TYPE *)((int)local_20 + -1);\n      bVar12 = local_20 != (LITTLENUM_TYPE *)0x0;\n    }\n    iVar5 = iVar5 + -7;\n    pbVar9 = local_2c + 1;\n    uVar7 = local_34 >> 7 | local_30 << 0x19;\n    local_30 = local_30 >> 7;\n    bVar3 = (byte)local_34 & 0x7f;\n    if ((uVar7 == 0 && local_30 == 0) && (!bVar12)) break;\n    local_34 = uVar7;\n    if (p != (char *)0x0) {\n      *local_2c = bVar3 | 0x80;\n    }\n  }\n  if (p != (char *)0x0) {\n    *local_2c = bVar3;\n  }\n  return (int)pbVar9 - (int)p;\n}\n\n" comment (function_definition "uint __regparm3 output_big_leb128(char *p,LITTLENUM_TYPE *bignum,uint size,int sign)\n\n{\n  ushort uVar1;\n  short sVar2;\n  byte bVar3;\n  byte bVar4;\n  int iVar5;\n  ushort *puVar6;\n  uint uVar7;\n  byte *pbVar8;\n  byte *pbVar9;\n  uint uVar10;\n  uint uVar11;\n  bool bVar12;\n  uint local_34;\n  uint local_30;\n  byte *local_2c;\n  uint local_28;\n  LITTLENUM_TYPE *local_20;\n  \n  if (size != 0) {\n    if (((LITTLENUM_TYPE *)0x1 < bignum) && ((&generic_bignum)[(int)bignum + 0x7fffffff] == -1)) {\n      sVar2 = *(short *)(&DAT_00070f7e + ((int)bignum + 0x7fffffff) * 2);\n      while (((sVar2 < 0 &&\n              (bignum = (LITTLENUM_TYPE *)((int)bignum + -1), bignum != (LITTLENUM_TYPE *)0x1)) &&\n             (*(short *)(&DAT_00070f7e + (int)bignum * 2) == -1))) {\n        sVar2 = *(short *)(&DAT_00070f7c + (int)bignum * 2);\n      }\n    }\n    puVar6 = &generic_bignum;\n    local_34 = 0;\n    local_30 = 0;\n    uVar7 = 0;\n    pbVar9 = (byte *)p;\n    do {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      bignum = (LITTLENUM_TYPE *)((int)bignum + -1);\n      uVar10 = (uint)uVar1 << ((byte)uVar7 & 0x1f);\n      local_30 = local_30 | (int)uVar10 >> 0x1f;\n      uVar7 = uVar7 + 0x10;\n      local_34 = uVar10 | local_34;\n      do {\n        uVar11 = uVar7;\n        pbVar8 = pbVar9;\n        pbVar9 = pbVar8 + 1;\n        uVar10 = local_34 >> 7 | local_30 << 0x19;\n        bVar3 = (byte)local_34 & 0x7f;\n        local_30 = local_30 >> 7;\n        uVar7 = uVar11 - 7;\n        bVar4 = (byte)uVar7;\n        if (bignum == (LITTLENUM_TYPE *)0x0) {\n          local_2c = (byte *)0x0;\n          local_28 = 0;\n          if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }\n          if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (p != (char *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }\n        }\n        if (p != (char *)0x0) {\n          *pbVar8 = bVar3 | 0x80;\n        }\n        local_34 = uVar10;\n      } while (6 < (int)uVar7);\n      if (bignum == (LITTLENUM_TYPE *)0x0) {\n        uVar7 = 1 << ((char)uVar11 - 8U & 0x1f);\n        if (((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0) {\n          local_34 = -1 << (bVar4 & 0x1f) | uVar10;\n        }\n        if (p != (char *)0x0) {\n          *pbVar9 = (byte)local_34 & 0x7f;\n        }\n        pbVar9 = pbVar8 + 2;\nLAB_0002c4a5:\n        return (int)pbVar9 - (int)p;\n      }\n    } while( true );\n  }\n  puVar6 = &generic_bignum;\n  if (bignum != (LITTLENUM_TYPE *)0x0) {\n    do {\n      if (*(short *)(&DAT_00070f7e + (int)bignum * 2) != 0) break;\n      bignum = (LITTLENUM_TYPE *)((int)bignum + -1);\n    } while (bignum != (LITTLENUM_TYPE *)0x0);\n  }\n  local_34 = 0;\n  local_30 = 0;\n  iVar5 = 0;\n  pbVar9 = (byte *)p;\n  local_20 = bignum;\n  while( true ) {\n    local_2c = pbVar9;\n    bVar12 = local_20 != (LITTLENUM_TYPE *)0x0;\n    if ((iVar5 < 7) && (bVar12)) {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      uVar7 = (uint)uVar1 << ((byte)iVar5 & 0x1f);\n      iVar5 = iVar5 + 0x10;\n      local_34 = uVar7 | local_34;\n      local_30 = local_30 | (int)uVar7 >> 0x1f;\n      local_20 = (LITTLENUM_TYPE *)((int)local_20 + -1);\n      bVar12 = local_20 != (LITTLENUM_TYPE *)0x0;\n    }\n    iVar5 = iVar5 + -7;\n    pbVar9 = local_2c + 1;\n    uVar7 = local_34 >> 7 | local_30 << 0x19;\n    local_30 = local_30 >> 7;\n    bVar3 = (byte)local_34 & 0x7f;\n    if ((uVar7 == 0 && local_30 == 0) && (!bVar12)) break;\n    local_34 = uVar7;\n    if (p != (char *)0x0) {\n      *local_2c = bVar3 | 0x80;\n    }\n  }\n  if (p != (char *)0x0) {\n    *local_2c = bVar3;\n  }\n  return (int)pbVar9 - (int)p;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "output_big_leb128(char *p,LITTLENUM_TYPE *bignum,uint size,int sign)" identifier (parameter_list "(char *p,LITTLENUM_TYPE *bignum,uint size,int sign)" ( (parameter_declaration "char *p" primitive_type (pointer_declarator "*p" * identifier)) , (parameter_declaration "LITTLENUM_TYPE *bignum" type_identifier (pointer_declarator "*bignum" * identifier)) , (parameter_declaration "uint size" type_identifier identifier) , (parameter_declaration "int sign" primitive_type identifier) ))) (compound_statement "{\n  ushort uVar1;\n  short sVar2;\n  byte bVar3;\n  byte bVar4;\n  int iVar5;\n  ushort *puVar6;\n  uint uVar7;\n  byte *pbVar8;\n  byte *pbVar9;\n  uint uVar10;\n  uint uVar11;\n  bool bVar12;\n  uint local_34;\n  uint local_30;\n  byte *local_2c;\n  uint local_28;\n  LITTLENUM_TYPE *local_20;\n  \n  if (size != 0) {\n    if (((LITTLENUM_TYPE *)0x1 < bignum) && ((&generic_bignum)[(int)bignum + 0x7fffffff] == -1)) {\n      sVar2 = *(short *)(&DAT_00070f7e + ((int)bignum + 0x7fffffff) * 2);\n      while (((sVar2 < 0 &&\n              (bignum = (LITTLENUM_TYPE *)((int)bignum + -1), bignum != (LITTLENUM_TYPE *)0x1)) &&\n             (*(short *)(&DAT_00070f7e + (int)bignum * 2) == -1))) {\n        sVar2 = *(short *)(&DAT_00070f7c + (int)bignum * 2);\n      }\n    }\n    puVar6 = &generic_bignum;\n    local_34 = 0;\n    local_30 = 0;\n    uVar7 = 0;\n    pbVar9 = (byte *)p;\n    do {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      bignum = (LITTLENUM_TYPE *)((int)bignum + -1);\n      uVar10 = (uint)uVar1 << ((byte)uVar7 & 0x1f);\n      local_30 = local_30 | (int)uVar10 >> 0x1f;\n      uVar7 = uVar7 + 0x10;\n      local_34 = uVar10 | local_34;\n      do {\n        uVar11 = uVar7;\n        pbVar8 = pbVar9;\n        pbVar9 = pbVar8 + 1;\n        uVar10 = local_34 >> 7 | local_30 << 0x19;\n        bVar3 = (byte)local_34 & 0x7f;\n        local_30 = local_30 >> 7;\n        uVar7 = uVar11 - 7;\n        bVar4 = (byte)uVar7;\n        if (bignum == (LITTLENUM_TYPE *)0x0) {\n          local_2c = (byte *)0x0;\n          local_28 = 0;\n          if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }\n          if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (p != (char *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }\n        }\n        if (p != (char *)0x0) {\n          *pbVar8 = bVar3 | 0x80;\n        }\n        local_34 = uVar10;\n      } while (6 < (int)uVar7);\n      if (bignum == (LITTLENUM_TYPE *)0x0) {\n        uVar7 = 1 << ((char)uVar11 - 8U & 0x1f);\n        if (((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0) {\n          local_34 = -1 << (bVar4 & 0x1f) | uVar10;\n        }\n        if (p != (char *)0x0) {\n          *pbVar9 = (byte)local_34 & 0x7f;\n        }\n        pbVar9 = pbVar8 + 2;\nLAB_0002c4a5:\n        return (int)pbVar9 - (int)p;\n      }\n    } while( true );\n  }\n  puVar6 = &generic_bignum;\n  if (bignum != (LITTLENUM_TYPE *)0x0) {\n    do {\n      if (*(short *)(&DAT_00070f7e + (int)bignum * 2) != 0) break;\n      bignum = (LITTLENUM_TYPE *)((int)bignum + -1);\n    } while (bignum != (LITTLENUM_TYPE *)0x0);\n  }\n  local_34 = 0;\n  local_30 = 0;\n  iVar5 = 0;\n  pbVar9 = (byte *)p;\n  local_20 = bignum;\n  while( true ) {\n    local_2c = pbVar9;\n    bVar12 = local_20 != (LITTLENUM_TYPE *)0x0;\n    if ((iVar5 < 7) && (bVar12)) {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      uVar7 = (uint)uVar1 << ((byte)iVar5 & 0x1f);\n      iVar5 = iVar5 + 0x10;\n      local_34 = uVar7 | local_34;\n      local_30 = local_30 | (int)uVar7 >> 0x1f;\n      local_20 = (LITTLENUM_TYPE *)((int)local_20 + -1);\n      bVar12 = local_20 != (LITTLENUM_TYPE *)0x0;\n    }\n    iVar5 = iVar5 + -7;\n    pbVar9 = local_2c + 1;\n    uVar7 = local_34 >> 7 | local_30 << 0x19;\n    local_30 = local_30 >> 7;\n    bVar3 = (byte)local_34 & 0x7f;\n    if ((uVar7 == 0 && local_30 == 0) && (!bVar12)) break;\n    local_34 = uVar7;\n    if (p != (char *)0x0) {\n      *local_2c = bVar3 | 0x80;\n    }\n  }\n  if (p != (char *)0x0) {\n    *local_2c = bVar3;\n  }\n  return (int)pbVar9 - (int)p;\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "short sVar2;" (sized_type_specifier "short" short) identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "byte bVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "ushort *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "byte *pbVar9;" type_identifier (pointer_declarator "*pbVar9" * identifier) ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "bool bVar12;" primitive_type identifier ;) (declaration "uint local_34;" type_identifier identifier ;) (declaration "uint local_30;" type_identifier identifier ;) (declaration "byte *local_2c;" type_identifier (pointer_declarator "*local_2c" * identifier) ;) (declaration "uint local_28;" type_identifier identifier ;) (declaration "LITTLENUM_TYPE *local_20;" type_identifier (pointer_declarator "*local_20" * identifier) ;) (if_statement "if (size != 0) {\n    if (((LITTLENUM_TYPE *)0x1 < bignum) && ((&generic_bignum)[(int)bignum + 0x7fffffff] == -1)) {\n      sVar2 = *(short *)(&DAT_00070f7e + ((int)bignum + 0x7fffffff) * 2);\n      while (((sVar2 < 0 &&\n              (bignum = (LITTLENUM_TYPE *)((int)bignum + -1), bignum != (LITTLENUM_TYPE *)0x1)) &&\n             (*(short *)(&DAT_00070f7e + (int)bignum * 2) == -1))) {\n        sVar2 = *(short *)(&DAT_00070f7c + (int)bignum * 2);\n      }\n    }\n    puVar6 = &generic_bignum;\n    local_34 = 0;\n    local_30 = 0;\n    uVar7 = 0;\n    pbVar9 = (byte *)p;\n    do {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      bignum = (LITTLENUM_TYPE *)((int)bignum + -1);\n      uVar10 = (uint)uVar1 << ((byte)uVar7 & 0x1f);\n      local_30 = local_30 | (int)uVar10 >> 0x1f;\n      uVar7 = uVar7 + 0x10;\n      local_34 = uVar10 | local_34;\n      do {\n        uVar11 = uVar7;\n        pbVar8 = pbVar9;\n        pbVar9 = pbVar8 + 1;\n        uVar10 = local_34 >> 7 | local_30 << 0x19;\n        bVar3 = (byte)local_34 & 0x7f;\n        local_30 = local_30 >> 7;\n        uVar7 = uVar11 - 7;\n        bVar4 = (byte)uVar7;\n        if (bignum == (LITTLENUM_TYPE *)0x0) {\n          local_2c = (byte *)0x0;\n          local_28 = 0;\n          if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }\n          if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (p != (char *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }\n        }\n        if (p != (char *)0x0) {\n          *pbVar8 = bVar3 | 0x80;\n        }\n        local_34 = uVar10;\n      } while (6 < (int)uVar7);\n      if (bignum == (LITTLENUM_TYPE *)0x0) {\n        uVar7 = 1 << ((char)uVar11 - 8U & 0x1f);\n        if (((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0) {\n          local_34 = -1 << (bVar4 & 0x1f) | uVar10;\n        }\n        if (p != (char *)0x0) {\n          *pbVar9 = (byte)local_34 & 0x7f;\n        }\n        pbVar9 = pbVar8 + 2;\nLAB_0002c4a5:\n        return (int)pbVar9 - (int)p;\n      }\n    } while( true );\n  }" if (parenthesized_expression "(size != 0)" ( (binary_expression "size != 0" identifier != number_literal) )) (compound_statement "{\n    if (((LITTLENUM_TYPE *)0x1 < bignum) && ((&generic_bignum)[(int)bignum + 0x7fffffff] == -1)) {\n      sVar2 = *(short *)(&DAT_00070f7e + ((int)bignum + 0x7fffffff) * 2);\n      while (((sVar2 < 0 &&\n              (bignum = (LITTLENUM_TYPE *)((int)bignum + -1), bignum != (LITTLENUM_TYPE *)0x1)) &&\n             (*(short *)(&DAT_00070f7e + (int)bignum * 2) == -1))) {\n        sVar2 = *(short *)(&DAT_00070f7c + (int)bignum * 2);\n      }\n    }\n    puVar6 = &generic_bignum;\n    local_34 = 0;\n    local_30 = 0;\n    uVar7 = 0;\n    pbVar9 = (byte *)p;\n    do {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      bignum = (LITTLENUM_TYPE *)((int)bignum + -1);\n      uVar10 = (uint)uVar1 << ((byte)uVar7 & 0x1f);\n      local_30 = local_30 | (int)uVar10 >> 0x1f;\n      uVar7 = uVar7 + 0x10;\n      local_34 = uVar10 | local_34;\n      do {\n        uVar11 = uVar7;\n        pbVar8 = pbVar9;\n        pbVar9 = pbVar8 + 1;\n        uVar10 = local_34 >> 7 | local_30 << 0x19;\n        bVar3 = (byte)local_34 & 0x7f;\n        local_30 = local_30 >> 7;\n        uVar7 = uVar11 - 7;\n        bVar4 = (byte)uVar7;\n        if (bignum == (LITTLENUM_TYPE *)0x0) {\n          local_2c = (byte *)0x0;\n          local_28 = 0;\n          if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }\n          if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (p != (char *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }\n        }\n        if (p != (char *)0x0) {\n          *pbVar8 = bVar3 | 0x80;\n        }\n        local_34 = uVar10;\n      } while (6 < (int)uVar7);\n      if (bignum == (LITTLENUM_TYPE *)0x0) {\n        uVar7 = 1 << ((char)uVar11 - 8U & 0x1f);\n        if (((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0) {\n          local_34 = -1 << (bVar4 & 0x1f) | uVar10;\n        }\n        if (p != (char *)0x0) {\n          *pbVar9 = (byte)local_34 & 0x7f;\n        }\n        pbVar9 = pbVar8 + 2;\nLAB_0002c4a5:\n        return (int)pbVar9 - (int)p;\n      }\n    } while( true );\n  }" { (if_statement "if (((LITTLENUM_TYPE *)0x1 < bignum) && ((&generic_bignum)[(int)bignum + 0x7fffffff] == -1)) {\n      sVar2 = *(short *)(&DAT_00070f7e + ((int)bignum + 0x7fffffff) * 2);\n      while (((sVar2 < 0 &&\n              (bignum = (LITTLENUM_TYPE *)((int)bignum + -1), bignum != (LITTLENUM_TYPE *)0x1)) &&\n             (*(short *)(&DAT_00070f7e + (int)bignum * 2) == -1))) {\n        sVar2 = *(short *)(&DAT_00070f7c + (int)bignum * 2);\n      }\n    }" if (parenthesized_expression "(((LITTLENUM_TYPE *)0x1 < bignum) && ((&generic_bignum)[(int)bignum + 0x7fffffff] == -1))" ( (binary_expression "((LITTLENUM_TYPE *)0x1 < bignum) && ((&generic_bignum)[(int)bignum + 0x7fffffff] == -1)" (parenthesized_expression "((LITTLENUM_TYPE *)0x1 < bignum)" ( (binary_expression "(LITTLENUM_TYPE *)0x1 < bignum" (cast_expression "(LITTLENUM_TYPE *)0x1" ( (type_descriptor "LITTLENUM_TYPE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) < identifier) )) && (parenthesized_expression "((&generic_bignum)[(int)bignum + 0x7fffffff] == -1)" ( (binary_expression "(&generic_bignum)[(int)bignum + 0x7fffffff] == -1" (subscript_expression "(&generic_bignum)[(int)bignum + 0x7fffffff]" (parenthesized_expression "(&generic_bignum)" ( (pointer_expression "&generic_bignum" & identifier) )) [ (binary_expression "(int)bignum + 0x7fffffff" (cast_expression "(int)bignum" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ]) == number_literal) ))) )) (compound_statement "{\n      sVar2 = *(short *)(&DAT_00070f7e + ((int)bignum + 0x7fffffff) * 2);\n      while (((sVar2 < 0 &&\n              (bignum = (LITTLENUM_TYPE *)((int)bignum + -1), bignum != (LITTLENUM_TYPE *)0x1)) &&\n             (*(short *)(&DAT_00070f7e + (int)bignum * 2) == -1))) {\n        sVar2 = *(short *)(&DAT_00070f7c + (int)bignum * 2);\n      }\n    }" { (expression_statement "sVar2 = *(short *)(&DAT_00070f7e + ((int)bignum + 0x7fffffff) * 2);" (assignment_expression "sVar2 = *(short *)(&DAT_00070f7e + ((int)bignum + 0x7fffffff) * 2)" identifier = (pointer_expression "*(short *)(&DAT_00070f7e + ((int)bignum + 0x7fffffff) * 2)" * (cast_expression "(short *)(&DAT_00070f7e + ((int)bignum + 0x7fffffff) * 2)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00070f7e + ((int)bignum + 0x7fffffff) * 2)" ( (binary_expression "&DAT_00070f7e + ((int)bignum + 0x7fffffff) * 2" (pointer_expression "&DAT_00070f7e" & identifier) + (binary_expression "((int)bignum + 0x7fffffff) * 2" (parenthesized_expression "((int)bignum + 0x7fffffff)" ( (binary_expression "(int)bignum + 0x7fffffff" (cast_expression "(int)bignum" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )) * number_literal)) ))))) ;) (while_statement "while (((sVar2 < 0 &&\n              (bignum = (LITTLENUM_TYPE *)((int)bignum + -1), bignum != (LITTLENUM_TYPE *)0x1)) &&\n             (*(short *)(&DAT_00070f7e + (int)bignum * 2) == -1))) {\n        sVar2 = *(short *)(&DAT_00070f7c + (int)bignum * 2);\n      }" while (parenthesized_expression "(((sVar2 < 0 &&\n              (bignum = (LITTLENUM_TYPE *)((int)bignum + -1), bignum != (LITTLENUM_TYPE *)0x1)) &&\n             (*(short *)(&DAT_00070f7e + (int)bignum * 2) == -1)))" ( (parenthesized_expression "((sVar2 < 0 &&\n              (bignum = (LITTLENUM_TYPE *)((int)bignum + -1), bignum != (LITTLENUM_TYPE *)0x1)) &&\n             (*(short *)(&DAT_00070f7e + (int)bignum * 2) == -1))" ( (binary_expression "(sVar2 < 0 &&\n              (bignum = (LITTLENUM_TYPE *)((int)bignum + -1), bignum != (LITTLENUM_TYPE *)0x1)) &&\n             (*(short *)(&DAT_00070f7e + (int)bignum * 2) == -1)" (parenthesized_expression "(sVar2 < 0 &&\n              (bignum = (LITTLENUM_TYPE *)((int)bignum + -1), bignum != (LITTLENUM_TYPE *)0x1))" ( (binary_expression "sVar2 < 0 &&\n              (bignum = (LITTLENUM_TYPE *)((int)bignum + -1), bignum != (LITTLENUM_TYPE *)0x1)" (binary_expression "sVar2 < 0" identifier < number_literal) && (parenthesized_expression "(bignum = (LITTLENUM_TYPE *)((int)bignum + -1), bignum != (LITTLENUM_TYPE *)0x1)" ( (comma_expression "bignum = (LITTLENUM_TYPE *)((int)bignum + -1), bignum != (LITTLENUM_TYPE *)0x1" (assignment_expression "bignum = (LITTLENUM_TYPE *)((int)bignum + -1)" identifier = (cast_expression "(LITTLENUM_TYPE *)((int)bignum + -1)" ( (type_descriptor "LITTLENUM_TYPE *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)bignum + -1)" ( (binary_expression "(int)bignum + -1" (cast_expression "(int)bignum" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) , (binary_expression "bignum != (LITTLENUM_TYPE *)0x1" identifier != (cast_expression "(LITTLENUM_TYPE *)0x1" ( (type_descriptor "LITTLENUM_TYPE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) && (parenthesized_expression "(*(short *)(&DAT_00070f7e + (int)bignum * 2) == -1)" ( (binary_expression "*(short *)(&DAT_00070f7e + (int)bignum * 2) == -1" (pointer_expression "*(short *)(&DAT_00070f7e + (int)bignum * 2)" * (cast_expression "(short *)(&DAT_00070f7e + (int)bignum * 2)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00070f7e + (int)bignum * 2)" ( (binary_expression "&DAT_00070f7e + (int)bignum * 2" (pointer_expression "&DAT_00070f7e" & identifier) + (binary_expression "(int)bignum * 2" (cast_expression "(int)bignum" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal)) )))) == number_literal) ))) )) )) (compound_statement "{\n        sVar2 = *(short *)(&DAT_00070f7c + (int)bignum * 2);\n      }" { (expression_statement "sVar2 = *(short *)(&DAT_00070f7c + (int)bignum * 2);" (assignment_expression "sVar2 = *(short *)(&DAT_00070f7c + (int)bignum * 2)" identifier = (pointer_expression "*(short *)(&DAT_00070f7c + (int)bignum * 2)" * (cast_expression "(short *)(&DAT_00070f7c + (int)bignum * 2)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00070f7c + (int)bignum * 2)" ( (binary_expression "&DAT_00070f7c + (int)bignum * 2" (pointer_expression "&DAT_00070f7c" & identifier) + (binary_expression "(int)bignum * 2" (cast_expression "(int)bignum" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal)) ))))) ;) })) })) (expression_statement "puVar6 = &generic_bignum;" (assignment_expression "puVar6 = &generic_bignum" identifier = (pointer_expression "&generic_bignum" & identifier)) ;) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "pbVar9 = (byte *)p;" (assignment_expression "pbVar9 = (byte *)p" identifier = (cast_expression "(byte *)p" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (do_statement "do {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      bignum = (LITTLENUM_TYPE *)((int)bignum + -1);\n      uVar10 = (uint)uVar1 << ((byte)uVar7 & 0x1f);\n      local_30 = local_30 | (int)uVar10 >> 0x1f;\n      uVar7 = uVar7 + 0x10;\n      local_34 = uVar10 | local_34;\n      do {\n        uVar11 = uVar7;\n        pbVar8 = pbVar9;\n        pbVar9 = pbVar8 + 1;\n        uVar10 = local_34 >> 7 | local_30 << 0x19;\n        bVar3 = (byte)local_34 & 0x7f;\n        local_30 = local_30 >> 7;\n        uVar7 = uVar11 - 7;\n        bVar4 = (byte)uVar7;\n        if (bignum == (LITTLENUM_TYPE *)0x0) {\n          local_2c = (byte *)0x0;\n          local_28 = 0;\n          if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }\n          if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (p != (char *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }\n        }\n        if (p != (char *)0x0) {\n          *pbVar8 = bVar3 | 0x80;\n        }\n        local_34 = uVar10;\n      } while (6 < (int)uVar7);\n      if (bignum == (LITTLENUM_TYPE *)0x0) {\n        uVar7 = 1 << ((char)uVar11 - 8U & 0x1f);\n        if (((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0) {\n          local_34 = -1 << (bVar4 & 0x1f) | uVar10;\n        }\n        if (p != (char *)0x0) {\n          *pbVar9 = (byte)local_34 & 0x7f;\n        }\n        pbVar9 = pbVar8 + 2;\nLAB_0002c4a5:\n        return (int)pbVar9 - (int)p;\n      }\n    } while( true );" do (compound_statement "{\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      bignum = (LITTLENUM_TYPE *)((int)bignum + -1);\n      uVar10 = (uint)uVar1 << ((byte)uVar7 & 0x1f);\n      local_30 = local_30 | (int)uVar10 >> 0x1f;\n      uVar7 = uVar7 + 0x10;\n      local_34 = uVar10 | local_34;\n      do {\n        uVar11 = uVar7;\n        pbVar8 = pbVar9;\n        pbVar9 = pbVar8 + 1;\n        uVar10 = local_34 >> 7 | local_30 << 0x19;\n        bVar3 = (byte)local_34 & 0x7f;\n        local_30 = local_30 >> 7;\n        uVar7 = uVar11 - 7;\n        bVar4 = (byte)uVar7;\n        if (bignum == (LITTLENUM_TYPE *)0x0) {\n          local_2c = (byte *)0x0;\n          local_28 = 0;\n          if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }\n          if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (p != (char *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }\n        }\n        if (p != (char *)0x0) {\n          *pbVar8 = bVar3 | 0x80;\n        }\n        local_34 = uVar10;\n      } while (6 < (int)uVar7);\n      if (bignum == (LITTLENUM_TYPE *)0x0) {\n        uVar7 = 1 << ((char)uVar11 - 8U & 0x1f);\n        if (((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0) {\n          local_34 = -1 << (bVar4 & 0x1f) | uVar10;\n        }\n        if (p != (char *)0x0) {\n          *pbVar9 = (byte)local_34 & 0x7f;\n        }\n        pbVar9 = pbVar8 + 2;\nLAB_0002c4a5:\n        return (int)pbVar9 - (int)p;\n      }\n    }" { (expression_statement "uVar1 = *puVar6;" (assignment_expression "uVar1 = *puVar6" identifier = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) (expression_statement "bignum = (LITTLENUM_TYPE *)((int)bignum + -1);" (assignment_expression "bignum = (LITTLENUM_TYPE *)((int)bignum + -1)" identifier = (cast_expression "(LITTLENUM_TYPE *)((int)bignum + -1)" ( (type_descriptor "LITTLENUM_TYPE *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)bignum + -1)" ( (binary_expression "(int)bignum + -1" (cast_expression "(int)bignum" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "uVar10 = (uint)uVar1 << ((byte)uVar7 & 0x1f);" (assignment_expression "uVar10 = (uint)uVar1 << ((byte)uVar7 & 0x1f)" identifier = (binary_expression "(uint)uVar1 << ((byte)uVar7 & 0x1f)" (cast_expression "(uint)uVar1" ( (type_descriptor "uint" type_identifier) ) identifier) << (parenthesized_expression "((byte)uVar7 & 0x1f)" ( (binary_expression "(byte)uVar7 & 0x1f" (cast_expression "(byte)uVar7" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )))) ;) (expression_statement "local_30 = local_30 | (int)uVar10 >> 0x1f;" (assignment_expression "local_30 = local_30 | (int)uVar10 >> 0x1f" identifier = (binary_expression "local_30 | (int)uVar10 >> 0x1f" identifier | (binary_expression "(int)uVar10 >> 0x1f" (cast_expression "(int)uVar10" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal))) ;) (expression_statement "uVar7 = uVar7 + 0x10;" (assignment_expression "uVar7 = uVar7 + 0x10" identifier = (binary_expression "uVar7 + 0x10" identifier + number_literal)) ;) (expression_statement "local_34 = uVar10 | local_34;" (assignment_expression "local_34 = uVar10 | local_34" identifier = (binary_expression "uVar10 | local_34" identifier | identifier)) ;) (do_statement "do {\n        uVar11 = uVar7;\n        pbVar8 = pbVar9;\n        pbVar9 = pbVar8 + 1;\n        uVar10 = local_34 >> 7 | local_30 << 0x19;\n        bVar3 = (byte)local_34 & 0x7f;\n        local_30 = local_30 >> 7;\n        uVar7 = uVar11 - 7;\n        bVar4 = (byte)uVar7;\n        if (bignum == (LITTLENUM_TYPE *)0x0) {\n          local_2c = (byte *)0x0;\n          local_28 = 0;\n          if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }\n          if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (p != (char *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }\n        }\n        if (p != (char *)0x0) {\n          *pbVar8 = bVar3 | 0x80;\n        }\n        local_34 = uVar10;\n      } while (6 < (int)uVar7);" do (compound_statement "{\n        uVar11 = uVar7;\n        pbVar8 = pbVar9;\n        pbVar9 = pbVar8 + 1;\n        uVar10 = local_34 >> 7 | local_30 << 0x19;\n        bVar3 = (byte)local_34 & 0x7f;\n        local_30 = local_30 >> 7;\n        uVar7 = uVar11 - 7;\n        bVar4 = (byte)uVar7;\n        if (bignum == (LITTLENUM_TYPE *)0x0) {\n          local_2c = (byte *)0x0;\n          local_28 = 0;\n          if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }\n          if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (p != (char *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }\n        }\n        if (p != (char *)0x0) {\n          *pbVar8 = bVar3 | 0x80;\n        }\n        local_34 = uVar10;\n      }" { (expression_statement "uVar11 = uVar7;" (assignment_expression "uVar11 = uVar7" identifier = identifier) ;) (expression_statement "pbVar8 = pbVar9;" (assignment_expression "pbVar8 = pbVar9" identifier = identifier) ;) (expression_statement "pbVar9 = pbVar8 + 1;" (assignment_expression "pbVar9 = pbVar8 + 1" identifier = (binary_expression "pbVar8 + 1" identifier + number_literal)) ;) (expression_statement "uVar10 = local_34 >> 7 | local_30 << 0x19;" (assignment_expression "uVar10 = local_34 >> 7 | local_30 << 0x19" identifier = (binary_expression "local_34 >> 7 | local_30 << 0x19" (binary_expression "local_34 >> 7" identifier >> number_literal) | (binary_expression "local_30 << 0x19" identifier << number_literal))) ;) (expression_statement "bVar3 = (byte)local_34 & 0x7f;" (assignment_expression "bVar3 = (byte)local_34 & 0x7f" identifier = (binary_expression "(byte)local_34 & 0x7f" (cast_expression "(byte)local_34" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal)) ;) (expression_statement "local_30 = local_30 >> 7;" (assignment_expression "local_30 = local_30 >> 7" identifier = (binary_expression "local_30 >> 7" identifier >> number_literal)) ;) (expression_statement "uVar7 = uVar11 - 7;" (assignment_expression "uVar7 = uVar11 - 7" identifier = (binary_expression "uVar11 - 7" identifier - number_literal)) ;) (expression_statement "bVar4 = (byte)uVar7;" (assignment_expression "bVar4 = (byte)uVar7" identifier = (cast_expression "(byte)uVar7" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (if_statement "if (bignum == (LITTLENUM_TYPE *)0x0) {\n          local_2c = (byte *)0x0;\n          local_28 = 0;\n          if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }\n          if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (p != (char *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }\n        }" if (parenthesized_expression "(bignum == (LITTLENUM_TYPE *)0x0)" ( (binary_expression "bignum == (LITTLENUM_TYPE *)0x0" identifier == (cast_expression "(LITTLENUM_TYPE *)0x0" ( (type_descriptor "LITTLENUM_TYPE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          local_2c = (byte *)0x0;\n          local_28 = 0;\n          if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }\n          if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (p != (char *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }\n        }" { (expression_statement "local_2c = (byte *)0x0;" (assignment_expression "local_2c = (byte *)0x0" identifier = (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (if_statement "if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }" if (parenthesized_expression "((local_34 & 0x40) != 0)" ( (binary_expression "(local_34 & 0x40) != 0" (parenthesized_expression "(local_34 & 0x40)" ( (binary_expression "local_34 & 0x40" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }" { (expression_statement "bVar12 = (uVar7 & 0x20) == 0;" (assignment_expression "bVar12 = (uVar7 & 0x20) == 0" identifier = (binary_expression "(uVar7 & 0x20) == 0" (parenthesized_expression "(uVar7 & 0x20)" ( (binary_expression "uVar7 & 0x20" identifier & number_literal) )) == number_literal)) ;) (expression_statement "iVar5 = (uint)bVar12 << (bVar4 & 0x1f);" (assignment_expression "iVar5 = (uint)bVar12 << (bVar4 & 0x1f)" identifier = (binary_expression "(uint)bVar12 << (bVar4 & 0x1f)" (cast_expression "(uint)bVar12" ( (type_descriptor "uint" type_identifier) ) identifier) << (parenthesized_expression "(bVar4 & 0x1f)" ( (binary_expression "bVar4 & 0x1f" identifier & number_literal) )))) ;) (expression_statement "local_2c = (byte *)(iVar5 - 1);" (assignment_expression "local_2c = (byte *)(iVar5 - 1)" identifier = (cast_expression "(byte *)(iVar5 - 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 - 1)" ( (binary_expression "iVar5 - 1" identifier - number_literal) )))) ;) (expression_statement "local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);" (assignment_expression "local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0)" identifier = (binary_expression "((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0)" (binary_expression "((uint)!bVar12 << (bVar4 & 0x1f)) + -1" (parenthesized_expression "((uint)!bVar12 << (bVar4 & 0x1f))" ( (binary_expression "(uint)!bVar12 << (bVar4 & 0x1f)" (cast_expression "(uint)!bVar12" ( (type_descriptor "uint" type_identifier) ) (unary_expression "!bVar12" ! identifier)) << (parenthesized_expression "(bVar4 & 0x1f)" ( (binary_expression "bVar4 & 0x1f" identifier & number_literal) ))) )) + number_literal) + (call_expression "(uint)(iVar5 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) ))))) ;) })) (if_statement "if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (p != (char *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }" if (parenthesized_expression "(local_28 == local_30 && local_2c == (byte *)uVar10)" ( (binary_expression "local_28 == local_30 && local_2c == (byte *)uVar10" (binary_expression "local_28 == local_30" identifier == identifier) && (binary_expression "local_2c == (byte *)uVar10" identifier == (cast_expression "(byte *)uVar10" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n            if (p != (char *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }" { (if_statement "if (p != (char *)0x0) {\n              *pbVar8 = bVar3;\n            }" if (parenthesized_expression "(p != (char *)0x0)" ( (binary_expression "p != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              *pbVar8 = bVar3;\n            }" { (expression_statement "*pbVar8 = bVar3;" (assignment_expression "*pbVar8 = bVar3" (pointer_expression "*pbVar8" * identifier) = identifier) ;) })) (goto_statement "goto LAB_0002c4a5;" goto statement_identifier ;) })) })) (if_statement "if (p != (char *)0x0) {\n          *pbVar8 = bVar3 | 0x80;\n        }" if (parenthesized_expression "(p != (char *)0x0)" ( (binary_expression "p != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          *pbVar8 = bVar3 | 0x80;\n        }" { (expression_statement "*pbVar8 = bVar3 | 0x80;" (assignment_expression "*pbVar8 = bVar3 | 0x80" (pointer_expression "*pbVar8" * identifier) = (binary_expression "bVar3 | 0x80" identifier | number_literal)) ;) })) (expression_statement "local_34 = uVar10;" (assignment_expression "local_34 = uVar10" identifier = identifier) ;) }) while (parenthesized_expression "(6 < (int)uVar7)" ( (binary_expression "6 < (int)uVar7" number_literal < (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) (if_statement "if (bignum == (LITTLENUM_TYPE *)0x0) {\n        uVar7 = 1 << ((char)uVar11 - 8U & 0x1f);\n        if (((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0) {\n          local_34 = -1 << (bVar4 & 0x1f) | uVar10;\n        }\n        if (p != (char *)0x0) {\n          *pbVar9 = (byte)local_34 & 0x7f;\n        }\n        pbVar9 = pbVar8 + 2;\nLAB_0002c4a5:\n        return (int)pbVar9 - (int)p;\n      }" if (parenthesized_expression "(bignum == (LITTLENUM_TYPE *)0x0)" ( (binary_expression "bignum == (LITTLENUM_TYPE *)0x0" identifier == (cast_expression "(LITTLENUM_TYPE *)0x0" ( (type_descriptor "LITTLENUM_TYPE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        uVar7 = 1 << ((char)uVar11 - 8U & 0x1f);\n        if (((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0) {\n          local_34 = -1 << (bVar4 & 0x1f) | uVar10;\n        }\n        if (p != (char *)0x0) {\n          *pbVar9 = (byte)local_34 & 0x7f;\n        }\n        pbVar9 = pbVar8 + 2;\nLAB_0002c4a5:\n        return (int)pbVar9 - (int)p;\n      }" { (expression_statement "uVar7 = 1 << ((char)uVar11 - 8U & 0x1f);" (assignment_expression "uVar7 = 1 << ((char)uVar11 - 8U & 0x1f)" identifier = (binary_expression "1 << ((char)uVar11 - 8U & 0x1f)" number_literal << (parenthesized_expression "((char)uVar11 - 8U & 0x1f)" ( (binary_expression "(char)uVar11 - 8U & 0x1f" (binary_expression "(char)uVar11 - 8U" (cast_expression "(char)uVar11" ( (type_descriptor "char" primitive_type) ) identifier) - number_literal) & number_literal) )))) ;) (if_statement "if (((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0) {\n          local_34 = -1 << (bVar4 & 0x1f) | uVar10;\n        }" if (parenthesized_expression "(((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0)" ( (binary_expression "((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0" (binary_expression "((int)uVar7 >> 0x1f & local_30) != 0" (parenthesized_expression "((int)uVar7 >> 0x1f & local_30)" ( (binary_expression "(int)uVar7 >> 0x1f & local_30" (binary_expression "(int)uVar7 >> 0x1f" (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) & identifier) )) != number_literal) || (binary_expression "(uVar7 & uVar10) != 0" (parenthesized_expression "(uVar7 & uVar10)" ( (binary_expression "uVar7 & uVar10" identifier & identifier) )) != number_literal)) )) (compound_statement "{\n          local_34 = -1 << (bVar4 & 0x1f) | uVar10;\n        }" { (expression_statement "local_34 = -1 << (bVar4 & 0x1f) | uVar10;" (assignment_expression "local_34 = -1 << (bVar4 & 0x1f) | uVar10" identifier = (binary_expression "-1 << (bVar4 & 0x1f) | uVar10" (binary_expression "-1 << (bVar4 & 0x1f)" number_literal << (parenthesized_expression "(bVar4 & 0x1f)" ( (binary_expression "bVar4 & 0x1f" identifier & number_literal) ))) | identifier)) ;) })) (if_statement "if (p != (char *)0x0) {\n          *pbVar9 = (byte)local_34 & 0x7f;\n        }" if (parenthesized_expression "(p != (char *)0x0)" ( (binary_expression "p != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          *pbVar9 = (byte)local_34 & 0x7f;\n        }" { (expression_statement "*pbVar9 = (byte)local_34 & 0x7f;" (assignment_expression "*pbVar9 = (byte)local_34 & 0x7f" (pointer_expression "*pbVar9" * identifier) = (binary_expression "(byte)local_34 & 0x7f" (cast_expression "(byte)local_34" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal)) ;) })) (expression_statement "pbVar9 = pbVar8 + 2;" (assignment_expression "pbVar9 = pbVar8 + 2" identifier = (binary_expression "pbVar8 + 2" identifier + number_literal)) ;) (labeled_statement "LAB_0002c4a5:\n        return (int)pbVar9 - (int)p;" statement_identifier : (return_statement "return (int)pbVar9 - (int)p;" return (binary_expression "(int)pbVar9 - (int)p" (cast_expression "(int)pbVar9" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier)) ;)) })) }) while (parenthesized_expression "( true )" ( true )) ;) })) (expression_statement "puVar6 = &generic_bignum;" (assignment_expression "puVar6 = &generic_bignum" identifier = (pointer_expression "&generic_bignum" & identifier)) ;) (if_statement "if (bignum != (LITTLENUM_TYPE *)0x0) {\n    do {\n      if (*(short *)(&DAT_00070f7e + (int)bignum * 2) != 0) break;\n      bignum = (LITTLENUM_TYPE *)((int)bignum + -1);\n    } while (bignum != (LITTLENUM_TYPE *)0x0);\n  }" if (parenthesized_expression "(bignum != (LITTLENUM_TYPE *)0x0)" ( (binary_expression "bignum != (LITTLENUM_TYPE *)0x0" identifier != (cast_expression "(LITTLENUM_TYPE *)0x0" ( (type_descriptor "LITTLENUM_TYPE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    do {\n      if (*(short *)(&DAT_00070f7e + (int)bignum * 2) != 0) break;\n      bignum = (LITTLENUM_TYPE *)((int)bignum + -1);\n    } while (bignum != (LITTLENUM_TYPE *)0x0);\n  }" { (do_statement "do {\n      if (*(short *)(&DAT_00070f7e + (int)bignum * 2) != 0) break;\n      bignum = (LITTLENUM_TYPE *)((int)bignum + -1);\n    } while (bignum != (LITTLENUM_TYPE *)0x0);" do (compound_statement "{\n      if (*(short *)(&DAT_00070f7e + (int)bignum * 2) != 0) break;\n      bignum = (LITTLENUM_TYPE *)((int)bignum + -1);\n    }" { (if_statement "if (*(short *)(&DAT_00070f7e + (int)bignum * 2) != 0) break;" if (parenthesized_expression "(*(short *)(&DAT_00070f7e + (int)bignum * 2) != 0)" ( (binary_expression "*(short *)(&DAT_00070f7e + (int)bignum * 2) != 0" (pointer_expression "*(short *)(&DAT_00070f7e + (int)bignum * 2)" * (cast_expression "(short *)(&DAT_00070f7e + (int)bignum * 2)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00070f7e + (int)bignum * 2)" ( (binary_expression "&DAT_00070f7e + (int)bignum * 2" (pointer_expression "&DAT_00070f7e" & identifier) + (binary_expression "(int)bignum * 2" (cast_expression "(int)bignum" ( (type_descriptor "int" primitive_type) ) identifier) * number_literal)) )))) != number_literal) )) (break_statement "break;" break ;)) (expression_statement "bignum = (LITTLENUM_TYPE *)((int)bignum + -1);" (assignment_expression "bignum = (LITTLENUM_TYPE *)((int)bignum + -1)" identifier = (cast_expression "(LITTLENUM_TYPE *)((int)bignum + -1)" ( (type_descriptor "LITTLENUM_TYPE *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)bignum + -1)" ( (binary_expression "(int)bignum + -1" (cast_expression "(int)bignum" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) }) while (parenthesized_expression "(bignum != (LITTLENUM_TYPE *)0x0)" ( (binary_expression "bignum != (LITTLENUM_TYPE *)0x0" identifier != (cast_expression "(LITTLENUM_TYPE *)0x0" ( (type_descriptor "LITTLENUM_TYPE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) })) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "pbVar9 = (byte *)p;" (assignment_expression "pbVar9 = (byte *)p" identifier = (cast_expression "(byte *)p" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "local_20 = bignum;" (assignment_expression "local_20 = bignum" identifier = identifier) ;) (while_statement "while( true ) {\n    local_2c = pbVar9;\n    bVar12 = local_20 != (LITTLENUM_TYPE *)0x0;\n    if ((iVar5 < 7) && (bVar12)) {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      uVar7 = (uint)uVar1 << ((byte)iVar5 & 0x1f);\n      iVar5 = iVar5 + 0x10;\n      local_34 = uVar7 | local_34;\n      local_30 = local_30 | (int)uVar7 >> 0x1f;\n      local_20 = (LITTLENUM_TYPE *)((int)local_20 + -1);\n      bVar12 = local_20 != (LITTLENUM_TYPE *)0x0;\n    }\n    iVar5 = iVar5 + -7;\n    pbVar9 = local_2c + 1;\n    uVar7 = local_34 >> 7 | local_30 << 0x19;\n    local_30 = local_30 >> 7;\n    bVar3 = (byte)local_34 & 0x7f;\n    if ((uVar7 == 0 && local_30 == 0) && (!bVar12)) break;\n    local_34 = uVar7;\n    if (p != (char *)0x0) {\n      *local_2c = bVar3 | 0x80;\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    local_2c = pbVar9;\n    bVar12 = local_20 != (LITTLENUM_TYPE *)0x0;\n    if ((iVar5 < 7) && (bVar12)) {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      uVar7 = (uint)uVar1 << ((byte)iVar5 & 0x1f);\n      iVar5 = iVar5 + 0x10;\n      local_34 = uVar7 | local_34;\n      local_30 = local_30 | (int)uVar7 >> 0x1f;\n      local_20 = (LITTLENUM_TYPE *)((int)local_20 + -1);\n      bVar12 = local_20 != (LITTLENUM_TYPE *)0x0;\n    }\n    iVar5 = iVar5 + -7;\n    pbVar9 = local_2c + 1;\n    uVar7 = local_34 >> 7 | local_30 << 0x19;\n    local_30 = local_30 >> 7;\n    bVar3 = (byte)local_34 & 0x7f;\n    if ((uVar7 == 0 && local_30 == 0) && (!bVar12)) break;\n    local_34 = uVar7;\n    if (p != (char *)0x0) {\n      *local_2c = bVar3 | 0x80;\n    }\n  }" { (expression_statement "local_2c = pbVar9;" (assignment_expression "local_2c = pbVar9" identifier = identifier) ;) (expression_statement "bVar12 = local_20 != (LITTLENUM_TYPE *)0x0;" (assignment_expression "bVar12 = local_20 != (LITTLENUM_TYPE *)0x0" identifier = (binary_expression "local_20 != (LITTLENUM_TYPE *)0x0" identifier != (cast_expression "(LITTLENUM_TYPE *)0x0" ( (type_descriptor "LITTLENUM_TYPE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) (if_statement "if ((iVar5 < 7) && (bVar12)) {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      uVar7 = (uint)uVar1 << ((byte)iVar5 & 0x1f);\n      iVar5 = iVar5 + 0x10;\n      local_34 = uVar7 | local_34;\n      local_30 = local_30 | (int)uVar7 >> 0x1f;\n      local_20 = (LITTLENUM_TYPE *)((int)local_20 + -1);\n      bVar12 = local_20 != (LITTLENUM_TYPE *)0x0;\n    }" if (parenthesized_expression "((iVar5 < 7) && (bVar12))" ( (binary_expression "(iVar5 < 7) && (bVar12)" (parenthesized_expression "(iVar5 < 7)" ( (binary_expression "iVar5 < 7" identifier < number_literal) )) && (parenthesized_expression "(bVar12)" ( identifier ))) )) (compound_statement "{\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      uVar7 = (uint)uVar1 << ((byte)iVar5 & 0x1f);\n      iVar5 = iVar5 + 0x10;\n      local_34 = uVar7 | local_34;\n      local_30 = local_30 | (int)uVar7 >> 0x1f;\n      local_20 = (LITTLENUM_TYPE *)((int)local_20 + -1);\n      bVar12 = local_20 != (LITTLENUM_TYPE *)0x0;\n    }" { (expression_statement "uVar1 = *puVar6;" (assignment_expression "uVar1 = *puVar6" identifier = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) (expression_statement "uVar7 = (uint)uVar1 << ((byte)iVar5 & 0x1f);" (assignment_expression "uVar7 = (uint)uVar1 << ((byte)iVar5 & 0x1f)" identifier = (binary_expression "(uint)uVar1 << ((byte)iVar5 & 0x1f)" (cast_expression "(uint)uVar1" ( (type_descriptor "uint" type_identifier) ) identifier) << (parenthesized_expression "((byte)iVar5 & 0x1f)" ( (binary_expression "(byte)iVar5 & 0x1f" (cast_expression "(byte)iVar5" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )))) ;) (expression_statement "iVar5 = iVar5 + 0x10;" (assignment_expression "iVar5 = iVar5 + 0x10" identifier = (binary_expression "iVar5 + 0x10" identifier + number_literal)) ;) (expression_statement "local_34 = uVar7 | local_34;" (assignment_expression "local_34 = uVar7 | local_34" identifier = (binary_expression "uVar7 | local_34" identifier | identifier)) ;) (expression_statement "local_30 = local_30 | (int)uVar7 >> 0x1f;" (assignment_expression "local_30 = local_30 | (int)uVar7 >> 0x1f" identifier = (binary_expression "local_30 | (int)uVar7 >> 0x1f" identifier | (binary_expression "(int)uVar7 >> 0x1f" (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal))) ;) (expression_statement "local_20 = (LITTLENUM_TYPE *)((int)local_20 + -1);" (assignment_expression "local_20 = (LITTLENUM_TYPE *)((int)local_20 + -1)" identifier = (cast_expression "(LITTLENUM_TYPE *)((int)local_20 + -1)" ( (type_descriptor "LITTLENUM_TYPE *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_20 + -1)" ( (binary_expression "(int)local_20 + -1" (cast_expression "(int)local_20" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) ;) (expression_statement "bVar12 = local_20 != (LITTLENUM_TYPE *)0x0;" (assignment_expression "bVar12 = local_20 != (LITTLENUM_TYPE *)0x0" identifier = (binary_expression "local_20 != (LITTLENUM_TYPE *)0x0" identifier != (cast_expression "(LITTLENUM_TYPE *)0x0" ( (type_descriptor "LITTLENUM_TYPE *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ;) })) (expression_statement "iVar5 = iVar5 + -7;" (assignment_expression "iVar5 = iVar5 + -7" identifier = (binary_expression "iVar5 + -7" identifier + number_literal)) ;) (expression_statement "pbVar9 = local_2c + 1;" (assignment_expression "pbVar9 = local_2c + 1" identifier = (binary_expression "local_2c + 1" identifier + number_literal)) ;) (expression_statement "uVar7 = local_34 >> 7 | local_30 << 0x19;" (assignment_expression "uVar7 = local_34 >> 7 | local_30 << 0x19" identifier = (binary_expression "local_34 >> 7 | local_30 << 0x19" (binary_expression "local_34 >> 7" identifier >> number_literal) | (binary_expression "local_30 << 0x19" identifier << number_literal))) ;) (expression_statement "local_30 = local_30 >> 7;" (assignment_expression "local_30 = local_30 >> 7" identifier = (binary_expression "local_30 >> 7" identifier >> number_literal)) ;) (expression_statement "bVar3 = (byte)local_34 & 0x7f;" (assignment_expression "bVar3 = (byte)local_34 & 0x7f" identifier = (binary_expression "(byte)local_34 & 0x7f" (cast_expression "(byte)local_34" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal)) ;) (if_statement "if ((uVar7 == 0 && local_30 == 0) && (!bVar12)) break;" if (parenthesized_expression "((uVar7 == 0 && local_30 == 0) && (!bVar12))" ( (binary_expression "(uVar7 == 0 && local_30 == 0) && (!bVar12)" (parenthesized_expression "(uVar7 == 0 && local_30 == 0)" ( (binary_expression "uVar7 == 0 && local_30 == 0" (binary_expression "uVar7 == 0" identifier == number_literal) && (binary_expression "local_30 == 0" identifier == number_literal)) )) && (parenthesized_expression "(!bVar12)" ( (unary_expression "!bVar12" ! identifier) ))) )) (break_statement "break;" break ;)) (expression_statement "local_34 = uVar7;" (assignment_expression "local_34 = uVar7" identifier = identifier) ;) (if_statement "if (p != (char *)0x0) {\n      *local_2c = bVar3 | 0x80;\n    }" if (parenthesized_expression "(p != (char *)0x0)" ( (binary_expression "p != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *local_2c = bVar3 | 0x80;\n    }" { (expression_statement "*local_2c = bVar3 | 0x80;" (assignment_expression "*local_2c = bVar3 | 0x80" (pointer_expression "*local_2c" * identifier) = (binary_expression "bVar3 | 0x80" identifier | number_literal)) ;) })) })) (if_statement "if (p != (char *)0x0) {\n    *local_2c = bVar3;\n  }" if (parenthesized_expression "(p != (char *)0x0)" ( (binary_expression "p != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *local_2c = bVar3;\n  }" { (expression_statement "*local_2c = bVar3;" (assignment_expression "*local_2c = bVar3" (pointer_expression "*local_2c" * identifier) = identifier) ;) })) (return_statement "return (int)pbVar9 - (int)p;" return (binary_expression "(int)pbVar9 - (int)p" (cast_expression "(int)pbVar9" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)p" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })))
(translation_unit "int __regparm3 FUN_0002c250(byte *param_1,uint param_2,int param_3)\n\n{\n  ushort uVar1;\n  short sVar2;\n  byte bVar3;\n  byte bVar4;\n  int iVar5;\n  ushort *puVar6;\n  uint uVar7;\n  byte *pbVar8;\n  byte *pbVar9;\n  uint uVar10;\n  uint uVar11;\n  bool bVar12;\n  uint local_34;\n  uint local_30;\n  byte *local_2c;\n  uint local_28;\n  uint local_20;\n  \n  if (param_3 != 0) {\n    if ((1 < param_2) && ((&DAT_00070f80)[param_2 + 0x7fffffff] == -1)) {\n      sVar2 = *(short *)(&DAT_00070f7e + (param_2 + 0x7fffffff) * 2);\n      while (((sVar2 < 0 && (param_2 = param_2 - 1, param_2 != 1)) &&\n             (*(short *)(&DAT_00070f7e + param_2 * 2) == -1))) {\n        sVar2 = *(short *)(&DAT_00070f7c + param_2 * 2);\n      }\n    }\n    puVar6 = &DAT_00070f80;\n    local_34 = 0;\n    local_30 = 0;\n    uVar7 = 0;\n    pbVar9 = param_1;\n    do {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      param_2 = param_2 - 1;\n      uVar10 = (uint)uVar1 << ((byte)uVar7 & 0x1f);\n      local_30 = local_30 | (int)uVar10 >> 0x1f;\n      uVar7 = uVar7 + 0x10;\n      local_34 = uVar10 | local_34;\n      do {\n        uVar11 = uVar7;\n        pbVar8 = pbVar9;\n        pbVar9 = pbVar8 + 1;\n        uVar10 = local_34 >> 7 | local_30 << 0x19;\n        bVar3 = (byte)local_34 & 0x7f;\n        local_30 = local_30 >> 7;\n        uVar7 = uVar11 - 7;\n        bVar4 = (byte)uVar7;\n        if (param_2 == 0) {\n          local_2c = (byte *)0x0;\n          local_28 = 0;\n          if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }\n          if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (param_1 != (byte *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar8 = bVar3 | 0x80;\n        }\n        local_34 = uVar10;\n      } while (6 < (int)uVar7);\n      if (param_2 == 0) {\n        uVar7 = 1 << ((char)uVar11 - 8U & 0x1f);\n        if (((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0) {\n          local_34 = -1 << (bVar4 & 0x1f) | uVar10;\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar9 = (byte)local_34 & 0x7f;\n        }\n        pbVar9 = pbVar8 + 2;\nLAB_0002c4a5:\n        return (int)pbVar9 - (int)param_1;\n      }\n    } while( true );\n  }\n  puVar6 = &DAT_00070f80;\n  if (param_2 != 0) {\n    do {\n      if (*(short *)(&DAT_00070f7e + param_2 * 2) != 0) break;\n      param_2 = param_2 - 1;\n    } while (param_2 != 0);\n  }\n  local_34 = 0;\n  local_30 = 0;\n  iVar5 = 0;\n  pbVar9 = param_1;\n  local_20 = param_2;\n  while( true ) {\n    local_2c = pbVar9;\n    bVar12 = local_20 != 0;\n    if ((iVar5 < 7) && (bVar12)) {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      uVar7 = (uint)uVar1 << ((byte)iVar5 & 0x1f);\n      iVar5 = iVar5 + 0x10;\n      local_34 = uVar7 | local_34;\n      local_30 = local_30 | (int)uVar7 >> 0x1f;\n      local_20 = local_20 - 1;\n      bVar12 = local_20 != 0;\n    }\n    iVar5 = iVar5 + -7;\n    pbVar9 = local_2c + 1;\n    uVar7 = local_34 >> 7 | local_30 << 0x19;\n    local_30 = local_30 >> 7;\n    bVar3 = (byte)local_34 & 0x7f;\n    if ((uVar7 == 0 && local_30 == 0) && (!bVar12)) break;\n    local_34 = uVar7;\n    if (param_1 != (byte *)0x0) {\n      *local_2c = bVar3 | 0x80;\n    }\n  }\n  if (param_1 != (byte *)0x0) {\n    *local_2c = bVar3;\n  }\n  return (int)pbVar9 - (int)param_1;\n}\n\n" (function_definition "int __regparm3 FUN_0002c250(byte *param_1,uint param_2,int param_3)\n\n{\n  ushort uVar1;\n  short sVar2;\n  byte bVar3;\n  byte bVar4;\n  int iVar5;\n  ushort *puVar6;\n  uint uVar7;\n  byte *pbVar8;\n  byte *pbVar9;\n  uint uVar10;\n  uint uVar11;\n  bool bVar12;\n  uint local_34;\n  uint local_30;\n  byte *local_2c;\n  uint local_28;\n  uint local_20;\n  \n  if (param_3 != 0) {\n    if ((1 < param_2) && ((&DAT_00070f80)[param_2 + 0x7fffffff] == -1)) {\n      sVar2 = *(short *)(&DAT_00070f7e + (param_2 + 0x7fffffff) * 2);\n      while (((sVar2 < 0 && (param_2 = param_2 - 1, param_2 != 1)) &&\n             (*(short *)(&DAT_00070f7e + param_2 * 2) == -1))) {\n        sVar2 = *(short *)(&DAT_00070f7c + param_2 * 2);\n      }\n    }\n    puVar6 = &DAT_00070f80;\n    local_34 = 0;\n    local_30 = 0;\n    uVar7 = 0;\n    pbVar9 = param_1;\n    do {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      param_2 = param_2 - 1;\n      uVar10 = (uint)uVar1 << ((byte)uVar7 & 0x1f);\n      local_30 = local_30 | (int)uVar10 >> 0x1f;\n      uVar7 = uVar7 + 0x10;\n      local_34 = uVar10 | local_34;\n      do {\n        uVar11 = uVar7;\n        pbVar8 = pbVar9;\n        pbVar9 = pbVar8 + 1;\n        uVar10 = local_34 >> 7 | local_30 << 0x19;\n        bVar3 = (byte)local_34 & 0x7f;\n        local_30 = local_30 >> 7;\n        uVar7 = uVar11 - 7;\n        bVar4 = (byte)uVar7;\n        if (param_2 == 0) {\n          local_2c = (byte *)0x0;\n          local_28 = 0;\n          if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }\n          if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (param_1 != (byte *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar8 = bVar3 | 0x80;\n        }\n        local_34 = uVar10;\n      } while (6 < (int)uVar7);\n      if (param_2 == 0) {\n        uVar7 = 1 << ((char)uVar11 - 8U & 0x1f);\n        if (((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0) {\n          local_34 = -1 << (bVar4 & 0x1f) | uVar10;\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar9 = (byte)local_34 & 0x7f;\n        }\n        pbVar9 = pbVar8 + 2;\nLAB_0002c4a5:\n        return (int)pbVar9 - (int)param_1;\n      }\n    } while( true );\n  }\n  puVar6 = &DAT_00070f80;\n  if (param_2 != 0) {\n    do {\n      if (*(short *)(&DAT_00070f7e + param_2 * 2) != 0) break;\n      param_2 = param_2 - 1;\n    } while (param_2 != 0);\n  }\n  local_34 = 0;\n  local_30 = 0;\n  iVar5 = 0;\n  pbVar9 = param_1;\n  local_20 = param_2;\n  while( true ) {\n    local_2c = pbVar9;\n    bVar12 = local_20 != 0;\n    if ((iVar5 < 7) && (bVar12)) {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      uVar7 = (uint)uVar1 << ((byte)iVar5 & 0x1f);\n      iVar5 = iVar5 + 0x10;\n      local_34 = uVar7 | local_34;\n      local_30 = local_30 | (int)uVar7 >> 0x1f;\n      local_20 = local_20 - 1;\n      bVar12 = local_20 != 0;\n    }\n    iVar5 = iVar5 + -7;\n    pbVar9 = local_2c + 1;\n    uVar7 = local_34 >> 7 | local_30 << 0x19;\n    local_30 = local_30 >> 7;\n    bVar3 = (byte)local_34 & 0x7f;\n    if ((uVar7 == 0 && local_30 == 0) && (!bVar12)) break;\n    local_34 = uVar7;\n    if (param_1 != (byte *)0x0) {\n      *local_2c = bVar3 | 0x80;\n    }\n  }\n  if (param_1 != (byte *)0x0) {\n    *local_2c = bVar3;\n  }\n  return (int)pbVar9 - (int)param_1;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0002c250(byte *param_1,uint param_2,int param_3)" identifier (parameter_list "(byte *param_1,uint param_2,int param_3)" ( (parameter_declaration "byte *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) ))) (compound_statement "{\n  ushort uVar1;\n  short sVar2;\n  byte bVar3;\n  byte bVar4;\n  int iVar5;\n  ushort *puVar6;\n  uint uVar7;\n  byte *pbVar8;\n  byte *pbVar9;\n  uint uVar10;\n  uint uVar11;\n  bool bVar12;\n  uint local_34;\n  uint local_30;\n  byte *local_2c;\n  uint local_28;\n  uint local_20;\n  \n  if (param_3 != 0) {\n    if ((1 < param_2) && ((&DAT_00070f80)[param_2 + 0x7fffffff] == -1)) {\n      sVar2 = *(short *)(&DAT_00070f7e + (param_2 + 0x7fffffff) * 2);\n      while (((sVar2 < 0 && (param_2 = param_2 - 1, param_2 != 1)) &&\n             (*(short *)(&DAT_00070f7e + param_2 * 2) == -1))) {\n        sVar2 = *(short *)(&DAT_00070f7c + param_2 * 2);\n      }\n    }\n    puVar6 = &DAT_00070f80;\n    local_34 = 0;\n    local_30 = 0;\n    uVar7 = 0;\n    pbVar9 = param_1;\n    do {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      param_2 = param_2 - 1;\n      uVar10 = (uint)uVar1 << ((byte)uVar7 & 0x1f);\n      local_30 = local_30 | (int)uVar10 >> 0x1f;\n      uVar7 = uVar7 + 0x10;\n      local_34 = uVar10 | local_34;\n      do {\n        uVar11 = uVar7;\n        pbVar8 = pbVar9;\n        pbVar9 = pbVar8 + 1;\n        uVar10 = local_34 >> 7 | local_30 << 0x19;\n        bVar3 = (byte)local_34 & 0x7f;\n        local_30 = local_30 >> 7;\n        uVar7 = uVar11 - 7;\n        bVar4 = (byte)uVar7;\n        if (param_2 == 0) {\n          local_2c = (byte *)0x0;\n          local_28 = 0;\n          if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }\n          if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (param_1 != (byte *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar8 = bVar3 | 0x80;\n        }\n        local_34 = uVar10;\n      } while (6 < (int)uVar7);\n      if (param_2 == 0) {\n        uVar7 = 1 << ((char)uVar11 - 8U & 0x1f);\n        if (((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0) {\n          local_34 = -1 << (bVar4 & 0x1f) | uVar10;\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar9 = (byte)local_34 & 0x7f;\n        }\n        pbVar9 = pbVar8 + 2;\nLAB_0002c4a5:\n        return (int)pbVar9 - (int)param_1;\n      }\n    } while( true );\n  }\n  puVar6 = &DAT_00070f80;\n  if (param_2 != 0) {\n    do {\n      if (*(short *)(&DAT_00070f7e + param_2 * 2) != 0) break;\n      param_2 = param_2 - 1;\n    } while (param_2 != 0);\n  }\n  local_34 = 0;\n  local_30 = 0;\n  iVar5 = 0;\n  pbVar9 = param_1;\n  local_20 = param_2;\n  while( true ) {\n    local_2c = pbVar9;\n    bVar12 = local_20 != 0;\n    if ((iVar5 < 7) && (bVar12)) {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      uVar7 = (uint)uVar1 << ((byte)iVar5 & 0x1f);\n      iVar5 = iVar5 + 0x10;\n      local_34 = uVar7 | local_34;\n      local_30 = local_30 | (int)uVar7 >> 0x1f;\n      local_20 = local_20 - 1;\n      bVar12 = local_20 != 0;\n    }\n    iVar5 = iVar5 + -7;\n    pbVar9 = local_2c + 1;\n    uVar7 = local_34 >> 7 | local_30 << 0x19;\n    local_30 = local_30 >> 7;\n    bVar3 = (byte)local_34 & 0x7f;\n    if ((uVar7 == 0 && local_30 == 0) && (!bVar12)) break;\n    local_34 = uVar7;\n    if (param_1 != (byte *)0x0) {\n      *local_2c = bVar3 | 0x80;\n    }\n  }\n  if (param_1 != (byte *)0x0) {\n    *local_2c = bVar3;\n  }\n  return (int)pbVar9 - (int)param_1;\n}" { (declaration "ushort uVar1;" type_identifier identifier ;) (declaration "short sVar2;" (sized_type_specifier "short" short) identifier ;) (declaration "byte bVar3;" type_identifier identifier ;) (declaration "byte bVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "ushort *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "byte *pbVar8;" type_identifier (pointer_declarator "*pbVar8" * identifier) ;) (declaration "byte *pbVar9;" type_identifier (pointer_declarator "*pbVar9" * identifier) ;) (declaration "uint uVar10;" type_identifier identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "bool bVar12;" primitive_type identifier ;) (declaration "uint local_34;" type_identifier identifier ;) (declaration "uint local_30;" type_identifier identifier ;) (declaration "byte *local_2c;" type_identifier (pointer_declarator "*local_2c" * identifier) ;) (declaration "uint local_28;" type_identifier identifier ;) (declaration "uint local_20;" type_identifier identifier ;) (if_statement "if (param_3 != 0) {\n    if ((1 < param_2) && ((&DAT_00070f80)[param_2 + 0x7fffffff] == -1)) {\n      sVar2 = *(short *)(&DAT_00070f7e + (param_2 + 0x7fffffff) * 2);\n      while (((sVar2 < 0 && (param_2 = param_2 - 1, param_2 != 1)) &&\n             (*(short *)(&DAT_00070f7e + param_2 * 2) == -1))) {\n        sVar2 = *(short *)(&DAT_00070f7c + param_2 * 2);\n      }\n    }\n    puVar6 = &DAT_00070f80;\n    local_34 = 0;\n    local_30 = 0;\n    uVar7 = 0;\n    pbVar9 = param_1;\n    do {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      param_2 = param_2 - 1;\n      uVar10 = (uint)uVar1 << ((byte)uVar7 & 0x1f);\n      local_30 = local_30 | (int)uVar10 >> 0x1f;\n      uVar7 = uVar7 + 0x10;\n      local_34 = uVar10 | local_34;\n      do {\n        uVar11 = uVar7;\n        pbVar8 = pbVar9;\n        pbVar9 = pbVar8 + 1;\n        uVar10 = local_34 >> 7 | local_30 << 0x19;\n        bVar3 = (byte)local_34 & 0x7f;\n        local_30 = local_30 >> 7;\n        uVar7 = uVar11 - 7;\n        bVar4 = (byte)uVar7;\n        if (param_2 == 0) {\n          local_2c = (byte *)0x0;\n          local_28 = 0;\n          if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }\n          if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (param_1 != (byte *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar8 = bVar3 | 0x80;\n        }\n        local_34 = uVar10;\n      } while (6 < (int)uVar7);\n      if (param_2 == 0) {\n        uVar7 = 1 << ((char)uVar11 - 8U & 0x1f);\n        if (((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0) {\n          local_34 = -1 << (bVar4 & 0x1f) | uVar10;\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar9 = (byte)local_34 & 0x7f;\n        }\n        pbVar9 = pbVar8 + 2;\nLAB_0002c4a5:\n        return (int)pbVar9 - (int)param_1;\n      }\n    } while( true );\n  }" if (parenthesized_expression "(param_3 != 0)" ( (binary_expression "param_3 != 0" identifier != number_literal) )) (compound_statement "{\n    if ((1 < param_2) && ((&DAT_00070f80)[param_2 + 0x7fffffff] == -1)) {\n      sVar2 = *(short *)(&DAT_00070f7e + (param_2 + 0x7fffffff) * 2);\n      while (((sVar2 < 0 && (param_2 = param_2 - 1, param_2 != 1)) &&\n             (*(short *)(&DAT_00070f7e + param_2 * 2) == -1))) {\n        sVar2 = *(short *)(&DAT_00070f7c + param_2 * 2);\n      }\n    }\n    puVar6 = &DAT_00070f80;\n    local_34 = 0;\n    local_30 = 0;\n    uVar7 = 0;\n    pbVar9 = param_1;\n    do {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      param_2 = param_2 - 1;\n      uVar10 = (uint)uVar1 << ((byte)uVar7 & 0x1f);\n      local_30 = local_30 | (int)uVar10 >> 0x1f;\n      uVar7 = uVar7 + 0x10;\n      local_34 = uVar10 | local_34;\n      do {\n        uVar11 = uVar7;\n        pbVar8 = pbVar9;\n        pbVar9 = pbVar8 + 1;\n        uVar10 = local_34 >> 7 | local_30 << 0x19;\n        bVar3 = (byte)local_34 & 0x7f;\n        local_30 = local_30 >> 7;\n        uVar7 = uVar11 - 7;\n        bVar4 = (byte)uVar7;\n        if (param_2 == 0) {\n          local_2c = (byte *)0x0;\n          local_28 = 0;\n          if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }\n          if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (param_1 != (byte *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar8 = bVar3 | 0x80;\n        }\n        local_34 = uVar10;\n      } while (6 < (int)uVar7);\n      if (param_2 == 0) {\n        uVar7 = 1 << ((char)uVar11 - 8U & 0x1f);\n        if (((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0) {\n          local_34 = -1 << (bVar4 & 0x1f) | uVar10;\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar9 = (byte)local_34 & 0x7f;\n        }\n        pbVar9 = pbVar8 + 2;\nLAB_0002c4a5:\n        return (int)pbVar9 - (int)param_1;\n      }\n    } while( true );\n  }" { (if_statement "if ((1 < param_2) && ((&DAT_00070f80)[param_2 + 0x7fffffff] == -1)) {\n      sVar2 = *(short *)(&DAT_00070f7e + (param_2 + 0x7fffffff) * 2);\n      while (((sVar2 < 0 && (param_2 = param_2 - 1, param_2 != 1)) &&\n             (*(short *)(&DAT_00070f7e + param_2 * 2) == -1))) {\n        sVar2 = *(short *)(&DAT_00070f7c + param_2 * 2);\n      }\n    }" if (parenthesized_expression "((1 < param_2) && ((&DAT_00070f80)[param_2 + 0x7fffffff] == -1))" ( (binary_expression "(1 < param_2) && ((&DAT_00070f80)[param_2 + 0x7fffffff] == -1)" (parenthesized_expression "(1 < param_2)" ( (binary_expression "1 < param_2" number_literal < identifier) )) && (parenthesized_expression "((&DAT_00070f80)[param_2 + 0x7fffffff] == -1)" ( (binary_expression "(&DAT_00070f80)[param_2 + 0x7fffffff] == -1" (subscript_expression "(&DAT_00070f80)[param_2 + 0x7fffffff]" (parenthesized_expression "(&DAT_00070f80)" ( (pointer_expression "&DAT_00070f80" & identifier) )) [ (binary_expression "param_2 + 0x7fffffff" identifier + number_literal) ]) == number_literal) ))) )) (compound_statement "{\n      sVar2 = *(short *)(&DAT_00070f7e + (param_2 + 0x7fffffff) * 2);\n      while (((sVar2 < 0 && (param_2 = param_2 - 1, param_2 != 1)) &&\n             (*(short *)(&DAT_00070f7e + param_2 * 2) == -1))) {\n        sVar2 = *(short *)(&DAT_00070f7c + param_2 * 2);\n      }\n    }" { (expression_statement "sVar2 = *(short *)(&DAT_00070f7e + (param_2 + 0x7fffffff) * 2);" (assignment_expression "sVar2 = *(short *)(&DAT_00070f7e + (param_2 + 0x7fffffff) * 2)" identifier = (pointer_expression "*(short *)(&DAT_00070f7e + (param_2 + 0x7fffffff) * 2)" * (cast_expression "(short *)(&DAT_00070f7e + (param_2 + 0x7fffffff) * 2)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00070f7e + (param_2 + 0x7fffffff) * 2)" ( (binary_expression "&DAT_00070f7e + (param_2 + 0x7fffffff) * 2" (pointer_expression "&DAT_00070f7e" & identifier) + (binary_expression "(param_2 + 0x7fffffff) * 2" (parenthesized_expression "(param_2 + 0x7fffffff)" ( (binary_expression "param_2 + 0x7fffffff" identifier + number_literal) )) * number_literal)) ))))) ;) (while_statement "while (((sVar2 < 0 && (param_2 = param_2 - 1, param_2 != 1)) &&\n             (*(short *)(&DAT_00070f7e + param_2 * 2) == -1))) {\n        sVar2 = *(short *)(&DAT_00070f7c + param_2 * 2);\n      }" while (parenthesized_expression "(((sVar2 < 0 && (param_2 = param_2 - 1, param_2 != 1)) &&\n             (*(short *)(&DAT_00070f7e + param_2 * 2) == -1)))" ( (parenthesized_expression "((sVar2 < 0 && (param_2 = param_2 - 1, param_2 != 1)) &&\n             (*(short *)(&DAT_00070f7e + param_2 * 2) == -1))" ( (binary_expression "(sVar2 < 0 && (param_2 = param_2 - 1, param_2 != 1)) &&\n             (*(short *)(&DAT_00070f7e + param_2 * 2) == -1)" (parenthesized_expression "(sVar2 < 0 && (param_2 = param_2 - 1, param_2 != 1))" ( (binary_expression "sVar2 < 0 && (param_2 = param_2 - 1, param_2 != 1)" (binary_expression "sVar2 < 0" identifier < number_literal) && (parenthesized_expression "(param_2 = param_2 - 1, param_2 != 1)" ( (comma_expression "param_2 = param_2 - 1, param_2 != 1" (assignment_expression "param_2 = param_2 - 1" identifier = (binary_expression "param_2 - 1" identifier - number_literal)) , (binary_expression "param_2 != 1" identifier != number_literal)) ))) )) && (parenthesized_expression "(*(short *)(&DAT_00070f7e + param_2 * 2) == -1)" ( (binary_expression "*(short *)(&DAT_00070f7e + param_2 * 2) == -1" (pointer_expression "*(short *)(&DAT_00070f7e + param_2 * 2)" * (cast_expression "(short *)(&DAT_00070f7e + param_2 * 2)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00070f7e + param_2 * 2)" ( (binary_expression "&DAT_00070f7e + param_2 * 2" (pointer_expression "&DAT_00070f7e" & identifier) + (binary_expression "param_2 * 2" identifier * number_literal)) )))) == number_literal) ))) )) )) (compound_statement "{\n        sVar2 = *(short *)(&DAT_00070f7c + param_2 * 2);\n      }" { (expression_statement "sVar2 = *(short *)(&DAT_00070f7c + param_2 * 2);" (assignment_expression "sVar2 = *(short *)(&DAT_00070f7c + param_2 * 2)" identifier = (pointer_expression "*(short *)(&DAT_00070f7c + param_2 * 2)" * (cast_expression "(short *)(&DAT_00070f7c + param_2 * 2)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00070f7c + param_2 * 2)" ( (binary_expression "&DAT_00070f7c + param_2 * 2" (pointer_expression "&DAT_00070f7c" & identifier) + (binary_expression "param_2 * 2" identifier * number_literal)) ))))) ;) })) })) (expression_statement "puVar6 = &DAT_00070f80;" (assignment_expression "puVar6 = &DAT_00070f80" identifier = (pointer_expression "&DAT_00070f80" & identifier)) ;) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) (expression_statement "pbVar9 = param_1;" (assignment_expression "pbVar9 = param_1" identifier = identifier) ;) (do_statement "do {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      param_2 = param_2 - 1;\n      uVar10 = (uint)uVar1 << ((byte)uVar7 & 0x1f);\n      local_30 = local_30 | (int)uVar10 >> 0x1f;\n      uVar7 = uVar7 + 0x10;\n      local_34 = uVar10 | local_34;\n      do {\n        uVar11 = uVar7;\n        pbVar8 = pbVar9;\n        pbVar9 = pbVar8 + 1;\n        uVar10 = local_34 >> 7 | local_30 << 0x19;\n        bVar3 = (byte)local_34 & 0x7f;\n        local_30 = local_30 >> 7;\n        uVar7 = uVar11 - 7;\n        bVar4 = (byte)uVar7;\n        if (param_2 == 0) {\n          local_2c = (byte *)0x0;\n          local_28 = 0;\n          if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }\n          if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (param_1 != (byte *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar8 = bVar3 | 0x80;\n        }\n        local_34 = uVar10;\n      } while (6 < (int)uVar7);\n      if (param_2 == 0) {\n        uVar7 = 1 << ((char)uVar11 - 8U & 0x1f);\n        if (((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0) {\n          local_34 = -1 << (bVar4 & 0x1f) | uVar10;\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar9 = (byte)local_34 & 0x7f;\n        }\n        pbVar9 = pbVar8 + 2;\nLAB_0002c4a5:\n        return (int)pbVar9 - (int)param_1;\n      }\n    } while( true );" do (compound_statement "{\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      param_2 = param_2 - 1;\n      uVar10 = (uint)uVar1 << ((byte)uVar7 & 0x1f);\n      local_30 = local_30 | (int)uVar10 >> 0x1f;\n      uVar7 = uVar7 + 0x10;\n      local_34 = uVar10 | local_34;\n      do {\n        uVar11 = uVar7;\n        pbVar8 = pbVar9;\n        pbVar9 = pbVar8 + 1;\n        uVar10 = local_34 >> 7 | local_30 << 0x19;\n        bVar3 = (byte)local_34 & 0x7f;\n        local_30 = local_30 >> 7;\n        uVar7 = uVar11 - 7;\n        bVar4 = (byte)uVar7;\n        if (param_2 == 0) {\n          local_2c = (byte *)0x0;\n          local_28 = 0;\n          if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }\n          if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (param_1 != (byte *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar8 = bVar3 | 0x80;\n        }\n        local_34 = uVar10;\n      } while (6 < (int)uVar7);\n      if (param_2 == 0) {\n        uVar7 = 1 << ((char)uVar11 - 8U & 0x1f);\n        if (((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0) {\n          local_34 = -1 << (bVar4 & 0x1f) | uVar10;\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar9 = (byte)local_34 & 0x7f;\n        }\n        pbVar9 = pbVar8 + 2;\nLAB_0002c4a5:\n        return (int)pbVar9 - (int)param_1;\n      }\n    }" { (expression_statement "uVar1 = *puVar6;" (assignment_expression "uVar1 = *puVar6" identifier = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) (expression_statement "param_2 = param_2 - 1;" (assignment_expression "param_2 = param_2 - 1" identifier = (binary_expression "param_2 - 1" identifier - number_literal)) ;) (expression_statement "uVar10 = (uint)uVar1 << ((byte)uVar7 & 0x1f);" (assignment_expression "uVar10 = (uint)uVar1 << ((byte)uVar7 & 0x1f)" identifier = (binary_expression "(uint)uVar1 << ((byte)uVar7 & 0x1f)" (cast_expression "(uint)uVar1" ( (type_descriptor "uint" type_identifier) ) identifier) << (parenthesized_expression "((byte)uVar7 & 0x1f)" ( (binary_expression "(byte)uVar7 & 0x1f" (cast_expression "(byte)uVar7" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )))) ;) (expression_statement "local_30 = local_30 | (int)uVar10 >> 0x1f;" (assignment_expression "local_30 = local_30 | (int)uVar10 >> 0x1f" identifier = (binary_expression "local_30 | (int)uVar10 >> 0x1f" identifier | (binary_expression "(int)uVar10 >> 0x1f" (cast_expression "(int)uVar10" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal))) ;) (expression_statement "uVar7 = uVar7 + 0x10;" (assignment_expression "uVar7 = uVar7 + 0x10" identifier = (binary_expression "uVar7 + 0x10" identifier + number_literal)) ;) (expression_statement "local_34 = uVar10 | local_34;" (assignment_expression "local_34 = uVar10 | local_34" identifier = (binary_expression "uVar10 | local_34" identifier | identifier)) ;) (do_statement "do {\n        uVar11 = uVar7;\n        pbVar8 = pbVar9;\n        pbVar9 = pbVar8 + 1;\n        uVar10 = local_34 >> 7 | local_30 << 0x19;\n        bVar3 = (byte)local_34 & 0x7f;\n        local_30 = local_30 >> 7;\n        uVar7 = uVar11 - 7;\n        bVar4 = (byte)uVar7;\n        if (param_2 == 0) {\n          local_2c = (byte *)0x0;\n          local_28 = 0;\n          if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }\n          if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (param_1 != (byte *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar8 = bVar3 | 0x80;\n        }\n        local_34 = uVar10;\n      } while (6 < (int)uVar7);" do (compound_statement "{\n        uVar11 = uVar7;\n        pbVar8 = pbVar9;\n        pbVar9 = pbVar8 + 1;\n        uVar10 = local_34 >> 7 | local_30 << 0x19;\n        bVar3 = (byte)local_34 & 0x7f;\n        local_30 = local_30 >> 7;\n        uVar7 = uVar11 - 7;\n        bVar4 = (byte)uVar7;\n        if (param_2 == 0) {\n          local_2c = (byte *)0x0;\n          local_28 = 0;\n          if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }\n          if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (param_1 != (byte *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar8 = bVar3 | 0x80;\n        }\n        local_34 = uVar10;\n      }" { (expression_statement "uVar11 = uVar7;" (assignment_expression "uVar11 = uVar7" identifier = identifier) ;) (expression_statement "pbVar8 = pbVar9;" (assignment_expression "pbVar8 = pbVar9" identifier = identifier) ;) (expression_statement "pbVar9 = pbVar8 + 1;" (assignment_expression "pbVar9 = pbVar8 + 1" identifier = (binary_expression "pbVar8 + 1" identifier + number_literal)) ;) (expression_statement "uVar10 = local_34 >> 7 | local_30 << 0x19;" (assignment_expression "uVar10 = local_34 >> 7 | local_30 << 0x19" identifier = (binary_expression "local_34 >> 7 | local_30 << 0x19" (binary_expression "local_34 >> 7" identifier >> number_literal) | (binary_expression "local_30 << 0x19" identifier << number_literal))) ;) (expression_statement "bVar3 = (byte)local_34 & 0x7f;" (assignment_expression "bVar3 = (byte)local_34 & 0x7f" identifier = (binary_expression "(byte)local_34 & 0x7f" (cast_expression "(byte)local_34" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal)) ;) (expression_statement "local_30 = local_30 >> 7;" (assignment_expression "local_30 = local_30 >> 7" identifier = (binary_expression "local_30 >> 7" identifier >> number_literal)) ;) (expression_statement "uVar7 = uVar11 - 7;" (assignment_expression "uVar7 = uVar11 - 7" identifier = (binary_expression "uVar11 - 7" identifier - number_literal)) ;) (expression_statement "bVar4 = (byte)uVar7;" (assignment_expression "bVar4 = (byte)uVar7" identifier = (cast_expression "(byte)uVar7" ( (type_descriptor "byte" type_identifier) ) identifier)) ;) (if_statement "if (param_2 == 0) {\n          local_2c = (byte *)0x0;\n          local_28 = 0;\n          if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }\n          if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (param_1 != (byte *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }\n        }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n          local_2c = (byte *)0x0;\n          local_28 = 0;\n          if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }\n          if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (param_1 != (byte *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }\n        }" { (expression_statement "local_2c = (byte *)0x0;" (assignment_expression "local_2c = (byte *)0x0" identifier = (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (if_statement "if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }" if (parenthesized_expression "((local_34 & 0x40) != 0)" ( (binary_expression "(local_34 & 0x40) != 0" (parenthesized_expression "(local_34 & 0x40)" ( (binary_expression "local_34 & 0x40" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }" { (expression_statement "bVar12 = (uVar7 & 0x20) == 0;" (assignment_expression "bVar12 = (uVar7 & 0x20) == 0" identifier = (binary_expression "(uVar7 & 0x20) == 0" (parenthesized_expression "(uVar7 & 0x20)" ( (binary_expression "uVar7 & 0x20" identifier & number_literal) )) == number_literal)) ;) (expression_statement "iVar5 = (uint)bVar12 << (bVar4 & 0x1f);" (assignment_expression "iVar5 = (uint)bVar12 << (bVar4 & 0x1f)" identifier = (binary_expression "(uint)bVar12 << (bVar4 & 0x1f)" (cast_expression "(uint)bVar12" ( (type_descriptor "uint" type_identifier) ) identifier) << (parenthesized_expression "(bVar4 & 0x1f)" ( (binary_expression "bVar4 & 0x1f" identifier & number_literal) )))) ;) (expression_statement "local_2c = (byte *)(iVar5 - 1);" (assignment_expression "local_2c = (byte *)(iVar5 - 1)" identifier = (cast_expression "(byte *)(iVar5 - 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 - 1)" ( (binary_expression "iVar5 - 1" identifier - number_literal) )))) ;) (expression_statement "local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);" (assignment_expression "local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0)" identifier = (binary_expression "((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0)" (binary_expression "((uint)!bVar12 << (bVar4 & 0x1f)) + -1" (parenthesized_expression "((uint)!bVar12 << (bVar4 & 0x1f))" ( (binary_expression "(uint)!bVar12 << (bVar4 & 0x1f)" (cast_expression "(uint)!bVar12" ( (type_descriptor "uint" type_identifier) ) (unary_expression "!bVar12" ! identifier)) << (parenthesized_expression "(bVar4 & 0x1f)" ( (binary_expression "bVar4 & 0x1f" identifier & number_literal) ))) )) + number_literal) + (call_expression "(uint)(iVar5 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) ))))) ;) })) (if_statement "if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (param_1 != (byte *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }" if (parenthesized_expression "(local_28 == local_30 && local_2c == (byte *)uVar10)" ( (binary_expression "local_28 == local_30 && local_2c == (byte *)uVar10" (binary_expression "local_28 == local_30" identifier == identifier) && (binary_expression "local_2c == (byte *)uVar10" identifier == (cast_expression "(byte *)uVar10" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n            if (param_1 != (byte *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }" { (if_statement "if (param_1 != (byte *)0x0) {\n              *pbVar8 = bVar3;\n            }" if (parenthesized_expression "(param_1 != (byte *)0x0)" ( (binary_expression "param_1 != (byte *)0x0" identifier != (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n              *pbVar8 = bVar3;\n            }" { (expression_statement "*pbVar8 = bVar3;" (assignment_expression "*pbVar8 = bVar3" (pointer_expression "*pbVar8" * identifier) = identifier) ;) })) (goto_statement "goto LAB_0002c4a5;" goto statement_identifier ;) })) })) (if_statement "if (param_1 != (byte *)0x0) {\n          *pbVar8 = bVar3 | 0x80;\n        }" if (parenthesized_expression "(param_1 != (byte *)0x0)" ( (binary_expression "param_1 != (byte *)0x0" identifier != (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          *pbVar8 = bVar3 | 0x80;\n        }" { (expression_statement "*pbVar8 = bVar3 | 0x80;" (assignment_expression "*pbVar8 = bVar3 | 0x80" (pointer_expression "*pbVar8" * identifier) = (binary_expression "bVar3 | 0x80" identifier | number_literal)) ;) })) (expression_statement "local_34 = uVar10;" (assignment_expression "local_34 = uVar10" identifier = identifier) ;) }) while (parenthesized_expression "(6 < (int)uVar7)" ( (binary_expression "6 < (int)uVar7" number_literal < (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier)) )) ;) (if_statement "if (param_2 == 0) {\n        uVar7 = 1 << ((char)uVar11 - 8U & 0x1f);\n        if (((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0) {\n          local_34 = -1 << (bVar4 & 0x1f) | uVar10;\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar9 = (byte)local_34 & 0x7f;\n        }\n        pbVar9 = pbVar8 + 2;\nLAB_0002c4a5:\n        return (int)pbVar9 - (int)param_1;\n      }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar7 = 1 << ((char)uVar11 - 8U & 0x1f);\n        if (((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0) {\n          local_34 = -1 << (bVar4 & 0x1f) | uVar10;\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar9 = (byte)local_34 & 0x7f;\n        }\n        pbVar9 = pbVar8 + 2;\nLAB_0002c4a5:\n        return (int)pbVar9 - (int)param_1;\n      }" { (expression_statement "uVar7 = 1 << ((char)uVar11 - 8U & 0x1f);" (assignment_expression "uVar7 = 1 << ((char)uVar11 - 8U & 0x1f)" identifier = (binary_expression "1 << ((char)uVar11 - 8U & 0x1f)" number_literal << (parenthesized_expression "((char)uVar11 - 8U & 0x1f)" ( (binary_expression "(char)uVar11 - 8U & 0x1f" (binary_expression "(char)uVar11 - 8U" (cast_expression "(char)uVar11" ( (type_descriptor "char" primitive_type) ) identifier) - number_literal) & number_literal) )))) ;) (if_statement "if (((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0) {\n          local_34 = -1 << (bVar4 & 0x1f) | uVar10;\n        }" if (parenthesized_expression "(((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0)" ( (binary_expression "((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0" (binary_expression "((int)uVar7 >> 0x1f & local_30) != 0" (parenthesized_expression "((int)uVar7 >> 0x1f & local_30)" ( (binary_expression "(int)uVar7 >> 0x1f & local_30" (binary_expression "(int)uVar7 >> 0x1f" (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) & identifier) )) != number_literal) || (binary_expression "(uVar7 & uVar10) != 0" (parenthesized_expression "(uVar7 & uVar10)" ( (binary_expression "uVar7 & uVar10" identifier & identifier) )) != number_literal)) )) (compound_statement "{\n          local_34 = -1 << (bVar4 & 0x1f) | uVar10;\n        }" { (expression_statement "local_34 = -1 << (bVar4 & 0x1f) | uVar10;" (assignment_expression "local_34 = -1 << (bVar4 & 0x1f) | uVar10" identifier = (binary_expression "-1 << (bVar4 & 0x1f) | uVar10" (binary_expression "-1 << (bVar4 & 0x1f)" number_literal << (parenthesized_expression "(bVar4 & 0x1f)" ( (binary_expression "bVar4 & 0x1f" identifier & number_literal) ))) | identifier)) ;) })) (if_statement "if (param_1 != (byte *)0x0) {\n          *pbVar9 = (byte)local_34 & 0x7f;\n        }" if (parenthesized_expression "(param_1 != (byte *)0x0)" ( (binary_expression "param_1 != (byte *)0x0" identifier != (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          *pbVar9 = (byte)local_34 & 0x7f;\n        }" { (expression_statement "*pbVar9 = (byte)local_34 & 0x7f;" (assignment_expression "*pbVar9 = (byte)local_34 & 0x7f" (pointer_expression "*pbVar9" * identifier) = (binary_expression "(byte)local_34 & 0x7f" (cast_expression "(byte)local_34" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal)) ;) })) (expression_statement "pbVar9 = pbVar8 + 2;" (assignment_expression "pbVar9 = pbVar8 + 2" identifier = (binary_expression "pbVar8 + 2" identifier + number_literal)) ;) (labeled_statement "LAB_0002c4a5:\n        return (int)pbVar9 - (int)param_1;" statement_identifier : (return_statement "return (int)pbVar9 - (int)param_1;" return (binary_expression "(int)pbVar9 - (int)param_1" (cast_expression "(int)pbVar9" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) ;)) })) }) while (parenthesized_expression "( true )" ( true )) ;) })) (expression_statement "puVar6 = &DAT_00070f80;" (assignment_expression "puVar6 = &DAT_00070f80" identifier = (pointer_expression "&DAT_00070f80" & identifier)) ;) (if_statement "if (param_2 != 0) {\n    do {\n      if (*(short *)(&DAT_00070f7e + param_2 * 2) != 0) break;\n      param_2 = param_2 - 1;\n    } while (param_2 != 0);\n  }" if (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) (compound_statement "{\n    do {\n      if (*(short *)(&DAT_00070f7e + param_2 * 2) != 0) break;\n      param_2 = param_2 - 1;\n    } while (param_2 != 0);\n  }" { (do_statement "do {\n      if (*(short *)(&DAT_00070f7e + param_2 * 2) != 0) break;\n      param_2 = param_2 - 1;\n    } while (param_2 != 0);" do (compound_statement "{\n      if (*(short *)(&DAT_00070f7e + param_2 * 2) != 0) break;\n      param_2 = param_2 - 1;\n    }" { (if_statement "if (*(short *)(&DAT_00070f7e + param_2 * 2) != 0) break;" if (parenthesized_expression "(*(short *)(&DAT_00070f7e + param_2 * 2) != 0)" ( (binary_expression "*(short *)(&DAT_00070f7e + param_2 * 2) != 0" (pointer_expression "*(short *)(&DAT_00070f7e + param_2 * 2)" * (cast_expression "(short *)(&DAT_00070f7e + param_2 * 2)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_00070f7e + param_2 * 2)" ( (binary_expression "&DAT_00070f7e + param_2 * 2" (pointer_expression "&DAT_00070f7e" & identifier) + (binary_expression "param_2 * 2" identifier * number_literal)) )))) != number_literal) )) (break_statement "break;" break ;)) (expression_statement "param_2 = param_2 - 1;" (assignment_expression "param_2 = param_2 - 1" identifier = (binary_expression "param_2 - 1" identifier - number_literal)) ;) }) while (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )) ;) })) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "pbVar9 = param_1;" (assignment_expression "pbVar9 = param_1" identifier = identifier) ;) (expression_statement "local_20 = param_2;" (assignment_expression "local_20 = param_2" identifier = identifier) ;) (while_statement "while( true ) {\n    local_2c = pbVar9;\n    bVar12 = local_20 != 0;\n    if ((iVar5 < 7) && (bVar12)) {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      uVar7 = (uint)uVar1 << ((byte)iVar5 & 0x1f);\n      iVar5 = iVar5 + 0x10;\n      local_34 = uVar7 | local_34;\n      local_30 = local_30 | (int)uVar7 >> 0x1f;\n      local_20 = local_20 - 1;\n      bVar12 = local_20 != 0;\n    }\n    iVar5 = iVar5 + -7;\n    pbVar9 = local_2c + 1;\n    uVar7 = local_34 >> 7 | local_30 << 0x19;\n    local_30 = local_30 >> 7;\n    bVar3 = (byte)local_34 & 0x7f;\n    if ((uVar7 == 0 && local_30 == 0) && (!bVar12)) break;\n    local_34 = uVar7;\n    if (param_1 != (byte *)0x0) {\n      *local_2c = bVar3 | 0x80;\n    }\n  }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n    local_2c = pbVar9;\n    bVar12 = local_20 != 0;\n    if ((iVar5 < 7) && (bVar12)) {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      uVar7 = (uint)uVar1 << ((byte)iVar5 & 0x1f);\n      iVar5 = iVar5 + 0x10;\n      local_34 = uVar7 | local_34;\n      local_30 = local_30 | (int)uVar7 >> 0x1f;\n      local_20 = local_20 - 1;\n      bVar12 = local_20 != 0;\n    }\n    iVar5 = iVar5 + -7;\n    pbVar9 = local_2c + 1;\n    uVar7 = local_34 >> 7 | local_30 << 0x19;\n    local_30 = local_30 >> 7;\n    bVar3 = (byte)local_34 & 0x7f;\n    if ((uVar7 == 0 && local_30 == 0) && (!bVar12)) break;\n    local_34 = uVar7;\n    if (param_1 != (byte *)0x0) {\n      *local_2c = bVar3 | 0x80;\n    }\n  }" { (expression_statement "local_2c = pbVar9;" (assignment_expression "local_2c = pbVar9" identifier = identifier) ;) (expression_statement "bVar12 = local_20 != 0;" (assignment_expression "bVar12 = local_20 != 0" identifier = (binary_expression "local_20 != 0" identifier != number_literal)) ;) (if_statement "if ((iVar5 < 7) && (bVar12)) {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      uVar7 = (uint)uVar1 << ((byte)iVar5 & 0x1f);\n      iVar5 = iVar5 + 0x10;\n      local_34 = uVar7 | local_34;\n      local_30 = local_30 | (int)uVar7 >> 0x1f;\n      local_20 = local_20 - 1;\n      bVar12 = local_20 != 0;\n    }" if (parenthesized_expression "((iVar5 < 7) && (bVar12))" ( (binary_expression "(iVar5 < 7) && (bVar12)" (parenthesized_expression "(iVar5 < 7)" ( (binary_expression "iVar5 < 7" identifier < number_literal) )) && (parenthesized_expression "(bVar12)" ( identifier ))) )) (compound_statement "{\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      uVar7 = (uint)uVar1 << ((byte)iVar5 & 0x1f);\n      iVar5 = iVar5 + 0x10;\n      local_34 = uVar7 | local_34;\n      local_30 = local_30 | (int)uVar7 >> 0x1f;\n      local_20 = local_20 - 1;\n      bVar12 = local_20 != 0;\n    }" { (expression_statement "uVar1 = *puVar6;" (assignment_expression "uVar1 = *puVar6" identifier = (pointer_expression "*puVar6" * identifier)) ;) (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" identifier = (binary_expression "puVar6 + 1" identifier + number_literal)) ;) (expression_statement "uVar7 = (uint)uVar1 << ((byte)iVar5 & 0x1f);" (assignment_expression "uVar7 = (uint)uVar1 << ((byte)iVar5 & 0x1f)" identifier = (binary_expression "(uint)uVar1 << ((byte)iVar5 & 0x1f)" (cast_expression "(uint)uVar1" ( (type_descriptor "uint" type_identifier) ) identifier) << (parenthesized_expression "((byte)iVar5 & 0x1f)" ( (binary_expression "(byte)iVar5 & 0x1f" (cast_expression "(byte)iVar5" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) )))) ;) (expression_statement "iVar5 = iVar5 + 0x10;" (assignment_expression "iVar5 = iVar5 + 0x10" identifier = (binary_expression "iVar5 + 0x10" identifier + number_literal)) ;) (expression_statement "local_34 = uVar7 | local_34;" (assignment_expression "local_34 = uVar7 | local_34" identifier = (binary_expression "uVar7 | local_34" identifier | identifier)) ;) (expression_statement "local_30 = local_30 | (int)uVar7 >> 0x1f;" (assignment_expression "local_30 = local_30 | (int)uVar7 >> 0x1f" identifier = (binary_expression "local_30 | (int)uVar7 >> 0x1f" identifier | (binary_expression "(int)uVar7 >> 0x1f" (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal))) ;) (expression_statement "local_20 = local_20 - 1;" (assignment_expression "local_20 = local_20 - 1" identifier = (binary_expression "local_20 - 1" identifier - number_literal)) ;) (expression_statement "bVar12 = local_20 != 0;" (assignment_expression "bVar12 = local_20 != 0" identifier = (binary_expression "local_20 != 0" identifier != number_literal)) ;) })) (expression_statement "iVar5 = iVar5 + -7;" (assignment_expression "iVar5 = iVar5 + -7" identifier = (binary_expression "iVar5 + -7" identifier + number_literal)) ;) (expression_statement "pbVar9 = local_2c + 1;" (assignment_expression "pbVar9 = local_2c + 1" identifier = (binary_expression "local_2c + 1" identifier + number_literal)) ;) (expression_statement "uVar7 = local_34 >> 7 | local_30 << 0x19;" (assignment_expression "uVar7 = local_34 >> 7 | local_30 << 0x19" identifier = (binary_expression "local_34 >> 7 | local_30 << 0x19" (binary_expression "local_34 >> 7" identifier >> number_literal) | (binary_expression "local_30 << 0x19" identifier << number_literal))) ;) (expression_statement "local_30 = local_30 >> 7;" (assignment_expression "local_30 = local_30 >> 7" identifier = (binary_expression "local_30 >> 7" identifier >> number_literal)) ;) (expression_statement "bVar3 = (byte)local_34 & 0x7f;" (assignment_expression "bVar3 = (byte)local_34 & 0x7f" identifier = (binary_expression "(byte)local_34 & 0x7f" (cast_expression "(byte)local_34" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal)) ;) (if_statement "if ((uVar7 == 0 && local_30 == 0) && (!bVar12)) break;" if (parenthesized_expression "((uVar7 == 0 && local_30 == 0) && (!bVar12))" ( (binary_expression "(uVar7 == 0 && local_30 == 0) && (!bVar12)" (parenthesized_expression "(uVar7 == 0 && local_30 == 0)" ( (binary_expression "uVar7 == 0 && local_30 == 0" (binary_expression "uVar7 == 0" identifier == number_literal) && (binary_expression "local_30 == 0" identifier == number_literal)) )) && (parenthesized_expression "(!bVar12)" ( (unary_expression "!bVar12" ! identifier) ))) )) (break_statement "break;" break ;)) (expression_statement "local_34 = uVar7;" (assignment_expression "local_34 = uVar7" identifier = identifier) ;) (if_statement "if (param_1 != (byte *)0x0) {\n      *local_2c = bVar3 | 0x80;\n    }" if (parenthesized_expression "(param_1 != (byte *)0x0)" ( (binary_expression "param_1 != (byte *)0x0" identifier != (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *local_2c = bVar3 | 0x80;\n    }" { (expression_statement "*local_2c = bVar3 | 0x80;" (assignment_expression "*local_2c = bVar3 | 0x80" (pointer_expression "*local_2c" * identifier) = (binary_expression "bVar3 | 0x80" identifier | number_literal)) ;) })) })) (if_statement "if (param_1 != (byte *)0x0) {\n    *local_2c = bVar3;\n  }" if (parenthesized_expression "(param_1 != (byte *)0x0)" ( (binary_expression "param_1 != (byte *)0x0" identifier != (cast_expression "(byte *)0x0" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    *local_2c = bVar3;\n  }" { (expression_statement "*local_2c = bVar3;" (assignment_expression "*local_2c = bVar3" (pointer_expression "*local_2c" * identifier) = identifier) ;) })) (return_statement "return (int)pbVar9 - (int)param_1;" return (binary_expression "(int)pbVar9 - (int)param_1" (cast_expression "(int)pbVar9" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration (sized_type_specifier short) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < IDENT) )) && (parenthesized_expression ( (binary_expression (subscript_expression (parenthesized_expression ( (pointer_expression & IDENT) )) [ (binary_expression IDENT + LIT) ]) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) * LIT)) ))))) ;) (while_statement while (parenthesized_expression ( (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT < LIT) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT - LIT)) , (binary_expression IDENT != LIT)) ))) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression IDENT * LIT)) )))) == LIT) ))) )) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression IDENT * LIT)) ))))) ;) })) })) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) << (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | IDENT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (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)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) << (parenthesized_expression ( (binary_expression IDENT & LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT - LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (unary_expression ! IDENT)) << (parenthesized_expression ( (binary_expression IDENT & LIT) ))) )) + LIT) + (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT != LIT) ))))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT == IDENT) && (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) (goto_statement goto statement_identifier ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT | LIT)) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression LIT << (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - LIT) & LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) & IDENT) )) != LIT) || (binary_expression (parenthesized_expression ( (binary_expression IDENT & IDENT) )) != LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression LIT << (parenthesized_expression ( (binary_expression IDENT & LIT) ))) | IDENT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (labeled_statement statement_identifier : (return_statement return (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;)) })) }) while (parenthesized_expression ( BOOL )) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + (binary_expression IDENT * LIT)) )))) != LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != LIT) )) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT != LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) && (parenthesized_expression ( IDENT ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) << (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT != LIT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (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 IDENT >> LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT == LIT) && (binary_expression IDENT == LIT)) )) && (parenthesized_expression ( (unary_expression ! IDENT) ))) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT | LIT)) ;) })) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) })) (return_statement return (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) })))
(function_definition "int __regparm3 FUN_0002c250(byte *param_1,uint param_2,int param_3)\n\n{\n  ushort uVar1;\n  short sVar2;\n  byte bVar3;\n  byte bVar4;\n  int iVar5;\n  ushort *puVar6;\n  uint uVar7;\n  byte *pbVar8;\n  byte *pbVar9;\n  uint uVar10;\n  uint uVar11;\n  bool bVar12;\n  uint local_34;\n  uint local_30;\n  byte *local_2c;\n  uint local_28;\n  uint local_20;\n  \n  if (param_3 != 0) {\n    if ((1 < param_2) && ((&DAT_00070f80)[param_2 + 0x7fffffff] == -1)) {\n      sVar2 = *(short *)(&DAT_00070f7e + (param_2 + 0x7fffffff) * 2);\n      while (((sVar2 < 0 && (param_2 = param_2 - 1, param_2 != 1)) &&\n             (*(short *)(&DAT_00070f7e + param_2 * 2) == -1))) {\n        sVar2 = *(short *)(&DAT_00070f7c + param_2 * 2);\n      }\n    }\n    puVar6 = &DAT_00070f80;\n    local_34 = 0;\n    local_30 = 0;\n    uVar7 = 0;\n    pbVar9 = param_1;\n    do {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      param_2 = param_2 - 1;\n      uVar10 = (uint)uVar1 << ((byte)uVar7 & 0x1f);\n      local_30 = local_30 | (int)uVar10 >> 0x1f;\n      uVar7 = uVar7 + 0x10;\n      local_34 = uVar10 | local_34;\n      do {\n        uVar11 = uVar7;\n        pbVar8 = pbVar9;\n        pbVar9 = pbVar8 + 1;\n        uVar10 = local_34 >> 7 | local_30 << 0x19;\n        bVar3 = (byte)local_34 & 0x7f;\n        local_30 = local_30 >> 7;\n        uVar7 = uVar11 - 7;\n        bVar4 = (byte)uVar7;\n        if (param_2 == 0) {\n          local_2c = (byte *)0x0;\n          local_28 = 0;\n          if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }\n          if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (param_1 != (byte *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar8 = bVar3 | 0x80;\n        }\n        local_34 = uVar10;\n      } while (6 < (int)uVar7);\n      if (param_2 == 0) {\n        uVar7 = 1 << ((char)uVar11 - 8U & 0x1f);\n        if (((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0) {\n          local_34 = -1 << (bVar4 & 0x1f) | uVar10;\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar9 = (byte)local_34 & 0x7f;\n        }\n        pbVar9 = pbVar8 + 2;\nLAB_0002c4a5:\n        return (int)pbVar9 - (int)param_1;\n      }\n    } while( true );\n  }\n  puVar6 = &DAT_00070f80;\n  if (param_2 != 0) {\n    do {\n      if (*(short *)(&DAT_00070f7e + param_2 * 2) != 0) break;\n      param_2 = param_2 - 1;\n    } while (param_2 != 0);\n  }\n  local_34 = 0;\n  local_30 = 0;\n  iVar5 = 0;\n  pbVar9 = param_1;\n  local_20 = param_2;\n  while( true ) {\n    local_2c = pbVar9;\n    bVar12 = local_20 != 0;\n    if ((iVar5 < 7) && (bVar12)) {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      uVar7 = (uint)uVar1 << ((byte)iVar5 & 0x1f);\n      iVar5 = iVar5 + 0x10;\n      local_34 = uVar7 | local_34;\n      local_30 = local_30 | (int)uVar7 >> 0x1f;\n      local_20 = local_20 - 1;\n      bVar12 = local_20 != 0;\n    }\n    iVar5 = iVar5 + -7;\n    pbVar9 = local_2c + 1;\n    uVar7 = local_34 >> 7 | local_30 << 0x19;\n    local_30 = local_30 >> 7;\n    bVar3 = (byte)local_34 & 0x7f;\n    if ((uVar7 == 0 && local_30 == 0) && (!bVar12)) break;\n    local_34 = uVar7;\n    if (param_1 != (byte *)0x0) {\n      *local_2c = bVar3 | 0x80;\n    }\n  }\n  if (param_1 != (byte *)0x0) {\n    *local_2c = bVar3;\n  }\n  return (int)pbVar9 - (int)param_1;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0002c250(byte *param_1,uint param_2,int param_3)" (identifier "FUN_0002c250") (parameter_list "(byte *param_1,uint param_2,int param_3)" (( "(") (parameter_declaration "byte *param_1" (type_identifier "byte") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) () ")"))) (compound_statement "{\n  ushort uVar1;\n  short sVar2;\n  byte bVar3;\n  byte bVar4;\n  int iVar5;\n  ushort *puVar6;\n  uint uVar7;\n  byte *pbVar8;\n  byte *pbVar9;\n  uint uVar10;\n  uint uVar11;\n  bool bVar12;\n  uint local_34;\n  uint local_30;\n  byte *local_2c;\n  uint local_28;\n  uint local_20;\n  \n  if (param_3 != 0) {\n    if ((1 < param_2) && ((&DAT_00070f80)[param_2 + 0x7fffffff] == -1)) {\n      sVar2 = *(short *)(&DAT_00070f7e + (param_2 + 0x7fffffff) * 2);\n      while (((sVar2 < 0 && (param_2 = param_2 - 1, param_2 != 1)) &&\n             (*(short *)(&DAT_00070f7e + param_2 * 2) == -1))) {\n        sVar2 = *(short *)(&DAT_00070f7c + param_2 * 2);\n      }\n    }\n    puVar6 = &DAT_00070f80;\n    local_34 = 0;\n    local_30 = 0;\n    uVar7 = 0;\n    pbVar9 = param_1;\n    do {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      param_2 = param_2 - 1;\n      uVar10 = (uint)uVar1 << ((byte)uVar7 & 0x1f);\n      local_30 = local_30 | (int)uVar10 >> 0x1f;\n      uVar7 = uVar7 + 0x10;\n      local_34 = uVar10 | local_34;\n      do {\n        uVar11 = uVar7;\n        pbVar8 = pbVar9;\n        pbVar9 = pbVar8 + 1;\n        uVar10 = local_34 >> 7 | local_30 << 0x19;\n        bVar3 = (byte)local_34 & 0x7f;\n        local_30 = local_30 >> 7;\n        uVar7 = uVar11 - 7;\n        bVar4 = (byte)uVar7;\n        if (param_2 == 0) {\n          local_2c = (byte *)0x0;\n          local_28 = 0;\n          if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }\n          if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (param_1 != (byte *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar8 = bVar3 | 0x80;\n        }\n        local_34 = uVar10;\n      } while (6 < (int)uVar7);\n      if (param_2 == 0) {\n        uVar7 = 1 << ((char)uVar11 - 8U & 0x1f);\n        if (((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0) {\n          local_34 = -1 << (bVar4 & 0x1f) | uVar10;\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar9 = (byte)local_34 & 0x7f;\n        }\n        pbVar9 = pbVar8 + 2;\nLAB_0002c4a5:\n        return (int)pbVar9 - (int)param_1;\n      }\n    } while( true );\n  }\n  puVar6 = &DAT_00070f80;\n  if (param_2 != 0) {\n    do {\n      if (*(short *)(&DAT_00070f7e + param_2 * 2) != 0) break;\n      param_2 = param_2 - 1;\n    } while (param_2 != 0);\n  }\n  local_34 = 0;\n  local_30 = 0;\n  iVar5 = 0;\n  pbVar9 = param_1;\n  local_20 = param_2;\n  while( true ) {\n    local_2c = pbVar9;\n    bVar12 = local_20 != 0;\n    if ((iVar5 < 7) && (bVar12)) {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      uVar7 = (uint)uVar1 << ((byte)iVar5 & 0x1f);\n      iVar5 = iVar5 + 0x10;\n      local_34 = uVar7 | local_34;\n      local_30 = local_30 | (int)uVar7 >> 0x1f;\n      local_20 = local_20 - 1;\n      bVar12 = local_20 != 0;\n    }\n    iVar5 = iVar5 + -7;\n    pbVar9 = local_2c + 1;\n    uVar7 = local_34 >> 7 | local_30 << 0x19;\n    local_30 = local_30 >> 7;\n    bVar3 = (byte)local_34 & 0x7f;\n    if ((uVar7 == 0 && local_30 == 0) && (!bVar12)) break;\n    local_34 = uVar7;\n    if (param_1 != (byte *)0x0) {\n      *local_2c = bVar3 | 0x80;\n    }\n  }\n  if (param_1 != (byte *)0x0) {\n    *local_2c = bVar3;\n  }\n  return (int)pbVar9 - (int)param_1;\n}" ({ "{") (declaration "ushort uVar1;" (type_identifier "ushort") (identifier "uVar1") (; ";")) (declaration "short sVar2;" (sized_type_specifier "short" (short "short")) (identifier "sVar2") (; ";")) (declaration "byte bVar3;" (type_identifier "byte") (identifier "bVar3") (; ";")) (declaration "byte bVar4;" (type_identifier "byte") (identifier "bVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "ushort *puVar6;" (type_identifier "ushort") (pointer_declarator "*puVar6" (* "*") (identifier "puVar6")) (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (declaration "byte *pbVar8;" (type_identifier "byte") (pointer_declarator "*pbVar8" (* "*") (identifier "pbVar8")) (; ";")) (declaration "byte *pbVar9;" (type_identifier "byte") (pointer_declarator "*pbVar9" (* "*") (identifier "pbVar9")) (; ";")) (declaration "uint uVar10;" (type_identifier "uint") (identifier "uVar10") (; ";")) (declaration "uint uVar11;" (type_identifier "uint") (identifier "uVar11") (; ";")) (declaration "bool bVar12;" (primitive_type "bool") (identifier "bVar12") (; ";")) (declaration "uint local_34;" (type_identifier "uint") (identifier "local_34") (; ";")) (declaration "uint local_30;" (type_identifier "uint") (identifier "local_30") (; ";")) (declaration "byte *local_2c;" (type_identifier "byte") (pointer_declarator "*local_2c" (* "*") (identifier "local_2c")) (; ";")) (declaration "uint local_28;" (type_identifier "uint") (identifier "local_28") (; ";")) (declaration "uint local_20;" (type_identifier "uint") (identifier "local_20") (; ";")) (if_statement "if (param_3 != 0) {\n    if ((1 < param_2) && ((&DAT_00070f80)[param_2 + 0x7fffffff] == -1)) {\n      sVar2 = *(short *)(&DAT_00070f7e + (param_2 + 0x7fffffff) * 2);\n      while (((sVar2 < 0 && (param_2 = param_2 - 1, param_2 != 1)) &&\n             (*(short *)(&DAT_00070f7e + param_2 * 2) == -1))) {\n        sVar2 = *(short *)(&DAT_00070f7c + param_2 * 2);\n      }\n    }\n    puVar6 = &DAT_00070f80;\n    local_34 = 0;\n    local_30 = 0;\n    uVar7 = 0;\n    pbVar9 = param_1;\n    do {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      param_2 = param_2 - 1;\n      uVar10 = (uint)uVar1 << ((byte)uVar7 & 0x1f);\n      local_30 = local_30 | (int)uVar10 >> 0x1f;\n      uVar7 = uVar7 + 0x10;\n      local_34 = uVar10 | local_34;\n      do {\n        uVar11 = uVar7;\n        pbVar8 = pbVar9;\n        pbVar9 = pbVar8 + 1;\n        uVar10 = local_34 >> 7 | local_30 << 0x19;\n        bVar3 = (byte)local_34 & 0x7f;\n        local_30 = local_30 >> 7;\n        uVar7 = uVar11 - 7;\n        bVar4 = (byte)uVar7;\n        if (param_2 == 0) {\n          local_2c = (byte *)0x0;\n          local_28 = 0;\n          if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }\n          if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (param_1 != (byte *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar8 = bVar3 | 0x80;\n        }\n        local_34 = uVar10;\n      } while (6 < (int)uVar7);\n      if (param_2 == 0) {\n        uVar7 = 1 << ((char)uVar11 - 8U & 0x1f);\n        if (((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0) {\n          local_34 = -1 << (bVar4 & 0x1f) | uVar10;\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar9 = (byte)local_34 & 0x7f;\n        }\n        pbVar9 = pbVar8 + 2;\nLAB_0002c4a5:\n        return (int)pbVar9 - (int)param_1;\n      }\n    } while( true );\n  }" (if "if") (parenthesized_expression "(param_3 != 0)" (( "(") (binary_expression "param_3 != 0" (identifier "param_3") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if ((1 < param_2) && ((&DAT_00070f80)[param_2 + 0x7fffffff] == -1)) {\n      sVar2 = *(short *)(&DAT_00070f7e + (param_2 + 0x7fffffff) * 2);\n      while (((sVar2 < 0 && (param_2 = param_2 - 1, param_2 != 1)) &&\n             (*(short *)(&DAT_00070f7e + param_2 * 2) == -1))) {\n        sVar2 = *(short *)(&DAT_00070f7c + param_2 * 2);\n      }\n    }\n    puVar6 = &DAT_00070f80;\n    local_34 = 0;\n    local_30 = 0;\n    uVar7 = 0;\n    pbVar9 = param_1;\n    do {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      param_2 = param_2 - 1;\n      uVar10 = (uint)uVar1 << ((byte)uVar7 & 0x1f);\n      local_30 = local_30 | (int)uVar10 >> 0x1f;\n      uVar7 = uVar7 + 0x10;\n      local_34 = uVar10 | local_34;\n      do {\n        uVar11 = uVar7;\n        pbVar8 = pbVar9;\n        pbVar9 = pbVar8 + 1;\n        uVar10 = local_34 >> 7 | local_30 << 0x19;\n        bVar3 = (byte)local_34 & 0x7f;\n        local_30 = local_30 >> 7;\n        uVar7 = uVar11 - 7;\n        bVar4 = (byte)uVar7;\n        if (param_2 == 0) {\n          local_2c = (byte *)0x0;\n          local_28 = 0;\n          if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }\n          if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (param_1 != (byte *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar8 = bVar3 | 0x80;\n        }\n        local_34 = uVar10;\n      } while (6 < (int)uVar7);\n      if (param_2 == 0) {\n        uVar7 = 1 << ((char)uVar11 - 8U & 0x1f);\n        if (((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0) {\n          local_34 = -1 << (bVar4 & 0x1f) | uVar10;\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar9 = (byte)local_34 & 0x7f;\n        }\n        pbVar9 = pbVar8 + 2;\nLAB_0002c4a5:\n        return (int)pbVar9 - (int)param_1;\n      }\n    } while( true );\n  }" ({ "{") (if_statement "if ((1 < param_2) && ((&DAT_00070f80)[param_2 + 0x7fffffff] == -1)) {\n      sVar2 = *(short *)(&DAT_00070f7e + (param_2 + 0x7fffffff) * 2);\n      while (((sVar2 < 0 && (param_2 = param_2 - 1, param_2 != 1)) &&\n             (*(short *)(&DAT_00070f7e + param_2 * 2) == -1))) {\n        sVar2 = *(short *)(&DAT_00070f7c + param_2 * 2);\n      }\n    }" (if "if") (parenthesized_expression "((1 < param_2) && ((&DAT_00070f80)[param_2 + 0x7fffffff] == -1))" (( "(") (binary_expression "(1 < param_2) && ((&DAT_00070f80)[param_2 + 0x7fffffff] == -1)" (parenthesized_expression "(1 < param_2)" (( "(") (binary_expression "1 < param_2" (number_literal "1") (< "<") (identifier "param_2")) () ")")) (&& "&&") (parenthesized_expression "((&DAT_00070f80)[param_2 + 0x7fffffff] == -1)" (( "(") (binary_expression "(&DAT_00070f80)[param_2 + 0x7fffffff] == -1" (subscript_expression "(&DAT_00070f80)[param_2 + 0x7fffffff]" (parenthesized_expression "(&DAT_00070f80)" (( "(") (pointer_expression "&DAT_00070f80" (& "&") (identifier "DAT_00070f80")) () ")")) ([ "[") (binary_expression "param_2 + 0x7fffffff" (identifier "param_2") (+ "+") (number_literal "0x7fffffff")) (] "]")) (== "==") (number_literal "-1")) () ")"))) () ")")) (compound_statement "{\n      sVar2 = *(short *)(&DAT_00070f7e + (param_2 + 0x7fffffff) * 2);\n      while (((sVar2 < 0 && (param_2 = param_2 - 1, param_2 != 1)) &&\n             (*(short *)(&DAT_00070f7e + param_2 * 2) == -1))) {\n        sVar2 = *(short *)(&DAT_00070f7c + param_2 * 2);\n      }\n    }" ({ "{") (expression_statement "sVar2 = *(short *)(&DAT_00070f7e + (param_2 + 0x7fffffff) * 2);" (assignment_expression "sVar2 = *(short *)(&DAT_00070f7e + (param_2 + 0x7fffffff) * 2)" (identifier "sVar2") (= "=") (pointer_expression "*(short *)(&DAT_00070f7e + (param_2 + 0x7fffffff) * 2)" (* "*") (cast_expression "(short *)(&DAT_00070f7e + (param_2 + 0x7fffffff) * 2)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_00070f7e + (param_2 + 0x7fffffff) * 2)" (( "(") (binary_expression "&DAT_00070f7e + (param_2 + 0x7fffffff) * 2" (pointer_expression "&DAT_00070f7e" (& "&") (identifier "DAT_00070f7e")) (+ "+") (binary_expression "(param_2 + 0x7fffffff) * 2" (parenthesized_expression "(param_2 + 0x7fffffff)" (( "(") (binary_expression "param_2 + 0x7fffffff" (identifier "param_2") (+ "+") (number_literal "0x7fffffff")) () ")")) (* "*") (number_literal "2"))) () ")"))))) (; ";")) (while_statement "while (((sVar2 < 0 && (param_2 = param_2 - 1, param_2 != 1)) &&\n             (*(short *)(&DAT_00070f7e + param_2 * 2) == -1))) {\n        sVar2 = *(short *)(&DAT_00070f7c + param_2 * 2);\n      }" (while "while") (parenthesized_expression "(((sVar2 < 0 && (param_2 = param_2 - 1, param_2 != 1)) &&\n             (*(short *)(&DAT_00070f7e + param_2 * 2) == -1)))" (( "(") (parenthesized_expression "((sVar2 < 0 && (param_2 = param_2 - 1, param_2 != 1)) &&\n             (*(short *)(&DAT_00070f7e + param_2 * 2) == -1))" (( "(") (binary_expression "(sVar2 < 0 && (param_2 = param_2 - 1, param_2 != 1)) &&\n             (*(short *)(&DAT_00070f7e + param_2 * 2) == -1)" (parenthesized_expression "(sVar2 < 0 && (param_2 = param_2 - 1, param_2 != 1))" (( "(") (binary_expression "sVar2 < 0 && (param_2 = param_2 - 1, param_2 != 1)" (binary_expression "sVar2 < 0" (identifier "sVar2") (< "<") (number_literal "0")) (&& "&&") (parenthesized_expression "(param_2 = param_2 - 1, param_2 != 1)" (( "(") (comma_expression "param_2 = param_2 - 1, param_2 != 1" (assignment_expression "param_2 = param_2 - 1" (identifier "param_2") (= "=") (binary_expression "param_2 - 1" (identifier "param_2") (- "-") (number_literal "1"))) (, ",") (binary_expression "param_2 != 1" (identifier "param_2") (!= "!=") (number_literal "1"))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(*(short *)(&DAT_00070f7e + param_2 * 2) == -1)" (( "(") (binary_expression "*(short *)(&DAT_00070f7e + param_2 * 2) == -1" (pointer_expression "*(short *)(&DAT_00070f7e + param_2 * 2)" (* "*") (cast_expression "(short *)(&DAT_00070f7e + param_2 * 2)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_00070f7e + param_2 * 2)" (( "(") (binary_expression "&DAT_00070f7e + param_2 * 2" (pointer_expression "&DAT_00070f7e" (& "&") (identifier "DAT_00070f7e")) (+ "+") (binary_expression "param_2 * 2" (identifier "param_2") (* "*") (number_literal "2"))) () ")")))) (== "==") (number_literal "-1")) () ")"))) () ")")) () ")")) (compound_statement "{\n        sVar2 = *(short *)(&DAT_00070f7c + param_2 * 2);\n      }" ({ "{") (expression_statement "sVar2 = *(short *)(&DAT_00070f7c + param_2 * 2);" (assignment_expression "sVar2 = *(short *)(&DAT_00070f7c + param_2 * 2)" (identifier "sVar2") (= "=") (pointer_expression "*(short *)(&DAT_00070f7c + param_2 * 2)" (* "*") (cast_expression "(short *)(&DAT_00070f7c + param_2 * 2)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_00070f7c + param_2 * 2)" (( "(") (binary_expression "&DAT_00070f7c + param_2 * 2" (pointer_expression "&DAT_00070f7c" (& "&") (identifier "DAT_00070f7c")) (+ "+") (binary_expression "param_2 * 2" (identifier "param_2") (* "*") (number_literal "2"))) () ")"))))) (; ";")) (} "}"))) (} "}"))) (expression_statement "puVar6 = &DAT_00070f80;" (assignment_expression "puVar6 = &DAT_00070f80" (identifier "puVar6") (= "=") (pointer_expression "&DAT_00070f80" (& "&") (identifier "DAT_00070f80"))) (; ";")) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" (identifier "local_34") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" (identifier "local_30") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" (identifier "uVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "pbVar9 = param_1;" (assignment_expression "pbVar9 = param_1" (identifier "pbVar9") (= "=") (identifier "param_1")) (; ";")) (do_statement "do {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      param_2 = param_2 - 1;\n      uVar10 = (uint)uVar1 << ((byte)uVar7 & 0x1f);\n      local_30 = local_30 | (int)uVar10 >> 0x1f;\n      uVar7 = uVar7 + 0x10;\n      local_34 = uVar10 | local_34;\n      do {\n        uVar11 = uVar7;\n        pbVar8 = pbVar9;\n        pbVar9 = pbVar8 + 1;\n        uVar10 = local_34 >> 7 | local_30 << 0x19;\n        bVar3 = (byte)local_34 & 0x7f;\n        local_30 = local_30 >> 7;\n        uVar7 = uVar11 - 7;\n        bVar4 = (byte)uVar7;\n        if (param_2 == 0) {\n          local_2c = (byte *)0x0;\n          local_28 = 0;\n          if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }\n          if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (param_1 != (byte *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar8 = bVar3 | 0x80;\n        }\n        local_34 = uVar10;\n      } while (6 < (int)uVar7);\n      if (param_2 == 0) {\n        uVar7 = 1 << ((char)uVar11 - 8U & 0x1f);\n        if (((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0) {\n          local_34 = -1 << (bVar4 & 0x1f) | uVar10;\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar9 = (byte)local_34 & 0x7f;\n        }\n        pbVar9 = pbVar8 + 2;\nLAB_0002c4a5:\n        return (int)pbVar9 - (int)param_1;\n      }\n    } while( true );" (do "do") (compound_statement "{\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      param_2 = param_2 - 1;\n      uVar10 = (uint)uVar1 << ((byte)uVar7 & 0x1f);\n      local_30 = local_30 | (int)uVar10 >> 0x1f;\n      uVar7 = uVar7 + 0x10;\n      local_34 = uVar10 | local_34;\n      do {\n        uVar11 = uVar7;\n        pbVar8 = pbVar9;\n        pbVar9 = pbVar8 + 1;\n        uVar10 = local_34 >> 7 | local_30 << 0x19;\n        bVar3 = (byte)local_34 & 0x7f;\n        local_30 = local_30 >> 7;\n        uVar7 = uVar11 - 7;\n        bVar4 = (byte)uVar7;\n        if (param_2 == 0) {\n          local_2c = (byte *)0x0;\n          local_28 = 0;\n          if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }\n          if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (param_1 != (byte *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar8 = bVar3 | 0x80;\n        }\n        local_34 = uVar10;\n      } while (6 < (int)uVar7);\n      if (param_2 == 0) {\n        uVar7 = 1 << ((char)uVar11 - 8U & 0x1f);\n        if (((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0) {\n          local_34 = -1 << (bVar4 & 0x1f) | uVar10;\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar9 = (byte)local_34 & 0x7f;\n        }\n        pbVar9 = pbVar8 + 2;\nLAB_0002c4a5:\n        return (int)pbVar9 - (int)param_1;\n      }\n    }" ({ "{") (expression_statement "uVar1 = *puVar6;" (assignment_expression "uVar1 = *puVar6" (identifier "uVar1") (= "=") (pointer_expression "*puVar6" (* "*") (identifier "puVar6"))) (; ";")) (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" (identifier "puVar6") (= "=") (binary_expression "puVar6 + 1" (identifier "puVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "param_2 = param_2 - 1;" (assignment_expression "param_2 = param_2 - 1" (identifier "param_2") (= "=") (binary_expression "param_2 - 1" (identifier "param_2") (- "-") (number_literal "1"))) (; ";")) (expression_statement "uVar10 = (uint)uVar1 << ((byte)uVar7 & 0x1f);" (assignment_expression "uVar10 = (uint)uVar1 << ((byte)uVar7 & 0x1f)" (identifier "uVar10") (= "=") (binary_expression "(uint)uVar1 << ((byte)uVar7 & 0x1f)" (cast_expression "(uint)uVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar1")) (<< "<<") (parenthesized_expression "((byte)uVar7 & 0x1f)" (( "(") (binary_expression "(byte)uVar7 & 0x1f" (cast_expression "(byte)uVar7" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "uVar7")) (& "&") (number_literal "0x1f")) () ")")))) (; ";")) (expression_statement "local_30 = local_30 | (int)uVar10 >> 0x1f;" (assignment_expression "local_30 = local_30 | (int)uVar10 >> 0x1f" (identifier "local_30") (= "=") (binary_expression "local_30 | (int)uVar10 >> 0x1f" (identifier "local_30") (| "|") (binary_expression "(int)uVar10 >> 0x1f" (cast_expression "(int)uVar10" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar10")) (>> ">>") (number_literal "0x1f")))) (; ";")) (expression_statement "uVar7 = uVar7 + 0x10;" (assignment_expression "uVar7 = uVar7 + 0x10" (identifier "uVar7") (= "=") (binary_expression "uVar7 + 0x10" (identifier "uVar7") (+ "+") (number_literal "0x10"))) (; ";")) (expression_statement "local_34 = uVar10 | local_34;" (assignment_expression "local_34 = uVar10 | local_34" (identifier "local_34") (= "=") (binary_expression "uVar10 | local_34" (identifier "uVar10") (| "|") (identifier "local_34"))) (; ";")) (do_statement "do {\n        uVar11 = uVar7;\n        pbVar8 = pbVar9;\n        pbVar9 = pbVar8 + 1;\n        uVar10 = local_34 >> 7 | local_30 << 0x19;\n        bVar3 = (byte)local_34 & 0x7f;\n        local_30 = local_30 >> 7;\n        uVar7 = uVar11 - 7;\n        bVar4 = (byte)uVar7;\n        if (param_2 == 0) {\n          local_2c = (byte *)0x0;\n          local_28 = 0;\n          if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }\n          if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (param_1 != (byte *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar8 = bVar3 | 0x80;\n        }\n        local_34 = uVar10;\n      } while (6 < (int)uVar7);" (do "do") (compound_statement "{\n        uVar11 = uVar7;\n        pbVar8 = pbVar9;\n        pbVar9 = pbVar8 + 1;\n        uVar10 = local_34 >> 7 | local_30 << 0x19;\n        bVar3 = (byte)local_34 & 0x7f;\n        local_30 = local_30 >> 7;\n        uVar7 = uVar11 - 7;\n        bVar4 = (byte)uVar7;\n        if (param_2 == 0) {\n          local_2c = (byte *)0x0;\n          local_28 = 0;\n          if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }\n          if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (param_1 != (byte *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar8 = bVar3 | 0x80;\n        }\n        local_34 = uVar10;\n      }" ({ "{") (expression_statement "uVar11 = uVar7;" (assignment_expression "uVar11 = uVar7" (identifier "uVar11") (= "=") (identifier "uVar7")) (; ";")) (expression_statement "pbVar8 = pbVar9;" (assignment_expression "pbVar8 = pbVar9" (identifier "pbVar8") (= "=") (identifier "pbVar9")) (; ";")) (expression_statement "pbVar9 = pbVar8 + 1;" (assignment_expression "pbVar9 = pbVar8 + 1" (identifier "pbVar9") (= "=") (binary_expression "pbVar8 + 1" (identifier "pbVar8") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar10 = local_34 >> 7 | local_30 << 0x19;" (assignment_expression "uVar10 = local_34 >> 7 | local_30 << 0x19" (identifier "uVar10") (= "=") (binary_expression "local_34 >> 7 | local_30 << 0x19" (binary_expression "local_34 >> 7" (identifier "local_34") (>> ">>") (number_literal "7")) (| "|") (binary_expression "local_30 << 0x19" (identifier "local_30") (<< "<<") (number_literal "0x19")))) (; ";")) (expression_statement "bVar3 = (byte)local_34 & 0x7f;" (assignment_expression "bVar3 = (byte)local_34 & 0x7f" (identifier "bVar3") (= "=") (binary_expression "(byte)local_34 & 0x7f" (cast_expression "(byte)local_34" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "local_34")) (& "&") (number_literal "0x7f"))) (; ";")) (expression_statement "local_30 = local_30 >> 7;" (assignment_expression "local_30 = local_30 >> 7" (identifier "local_30") (= "=") (binary_expression "local_30 >> 7" (identifier "local_30") (>> ">>") (number_literal "7"))) (; ";")) (expression_statement "uVar7 = uVar11 - 7;" (assignment_expression "uVar7 = uVar11 - 7" (identifier "uVar7") (= "=") (binary_expression "uVar11 - 7" (identifier "uVar11") (- "-") (number_literal "7"))) (; ";")) (expression_statement "bVar4 = (byte)uVar7;" (assignment_expression "bVar4 = (byte)uVar7" (identifier "bVar4") (= "=") (cast_expression "(byte)uVar7" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "uVar7"))) (; ";")) (if_statement "if (param_2 == 0) {\n          local_2c = (byte *)0x0;\n          local_28 = 0;\n          if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }\n          if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (param_1 != (byte *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }\n        }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          local_2c = (byte *)0x0;\n          local_28 = 0;\n          if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }\n          if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (param_1 != (byte *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }\n        }" ({ "{") (expression_statement "local_2c = (byte *)0x0;" (assignment_expression "local_2c = (byte *)0x0" (identifier "local_2c") (= "=") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" (identifier "local_28") (= "=") (number_literal "0")) (; ";")) (if_statement "if ((local_34 & 0x40) != 0) {\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }" (if "if") (parenthesized_expression "((local_34 & 0x40) != 0)" (( "(") (binary_expression "(local_34 & 0x40) != 0" (parenthesized_expression "(local_34 & 0x40)" (( "(") (binary_expression "local_34 & 0x40" (identifier "local_34") (& "&") (number_literal "0x40")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n            bVar12 = (uVar7 & 0x20) == 0;\n            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);\n            local_2c = (byte *)(iVar5 - 1);\n            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);\n          }" ({ "{") (expression_statement "bVar12 = (uVar7 & 0x20) == 0;" (assignment_expression "bVar12 = (uVar7 & 0x20) == 0" (identifier "bVar12") (= "=") (binary_expression "(uVar7 & 0x20) == 0" (parenthesized_expression "(uVar7 & 0x20)" (( "(") (binary_expression "uVar7 & 0x20" (identifier "uVar7") (& "&") (number_literal "0x20")) () ")")) (== "==") (number_literal "0"))) (; ";")) (expression_statement "iVar5 = (uint)bVar12 << (bVar4 & 0x1f);" (assignment_expression "iVar5 = (uint)bVar12 << (bVar4 & 0x1f)" (identifier "iVar5") (= "=") (binary_expression "(uint)bVar12 << (bVar4 & 0x1f)" (cast_expression "(uint)bVar12" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar12")) (<< "<<") (parenthesized_expression "(bVar4 & 0x1f)" (( "(") (binary_expression "bVar4 & 0x1f" (identifier "bVar4") (& "&") (number_literal "0x1f")) () ")")))) (; ";")) (expression_statement "local_2c = (byte *)(iVar5 - 1);" (assignment_expression "local_2c = (byte *)(iVar5 - 1)" (identifier "local_2c") (= "=") (cast_expression "(byte *)(iVar5 - 1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 - 1)" (( "(") (binary_expression "iVar5 - 1" (identifier "iVar5") (- "-") (number_literal "1")) () ")")))) (; ";")) (expression_statement "local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);" (assignment_expression "local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0)" (identifier "local_28") (= "=") (binary_expression "((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0)" (binary_expression "((uint)!bVar12 << (bVar4 & 0x1f)) + -1" (parenthesized_expression "((uint)!bVar12 << (bVar4 & 0x1f))" (( "(") (binary_expression "(uint)!bVar12 << (bVar4 & 0x1f)" (cast_expression "(uint)!bVar12" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (unary_expression "!bVar12" (! "!") (identifier "bVar12"))) (<< "<<") (parenthesized_expression "(bVar4 & 0x1f)" (( "(") (binary_expression "bVar4 & 0x1f" (identifier "bVar4") (& "&") (number_literal "0x1f")) () ")"))) () ")")) (+ "+") (number_literal "-1")) (+ "+") (call_expression "(uint)(iVar5 != 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")"))))) (; ";")) (} "}"))) (if_statement "if (local_28 == local_30 && local_2c == (byte *)uVar10) {\n            if (param_1 != (byte *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }" (if "if") (parenthesized_expression "(local_28 == local_30 && local_2c == (byte *)uVar10)" (( "(") (binary_expression "local_28 == local_30 && local_2c == (byte *)uVar10" (binary_expression "local_28 == local_30" (identifier "local_28") (== "==") (identifier "local_30")) (&& "&&") (binary_expression "local_2c == (byte *)uVar10" (identifier "local_2c") (== "==") (cast_expression "(byte *)uVar10" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "uVar10")))) () ")")) (compound_statement "{\n            if (param_1 != (byte *)0x0) {\n              *pbVar8 = bVar3;\n            }\n            goto LAB_0002c4a5;\n          }" ({ "{") (if_statement "if (param_1 != (byte *)0x0) {\n              *pbVar8 = bVar3;\n            }" (if "if") (parenthesized_expression "(param_1 != (byte *)0x0)" (( "(") (binary_expression "param_1 != (byte *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n              *pbVar8 = bVar3;\n            }" ({ "{") (expression_statement "*pbVar8 = bVar3;" (assignment_expression "*pbVar8 = bVar3" (pointer_expression "*pbVar8" (* "*") (identifier "pbVar8")) (= "=") (identifier "bVar3")) (; ";")) (} "}"))) (goto_statement "goto LAB_0002c4a5;" (goto "goto") (statement_identifier "LAB_0002c4a5") (; ";")) (} "}"))) (} "}"))) (if_statement "if (param_1 != (byte *)0x0) {\n          *pbVar8 = bVar3 | 0x80;\n        }" (if "if") (parenthesized_expression "(param_1 != (byte *)0x0)" (( "(") (binary_expression "param_1 != (byte *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          *pbVar8 = bVar3 | 0x80;\n        }" ({ "{") (expression_statement "*pbVar8 = bVar3 | 0x80;" (assignment_expression "*pbVar8 = bVar3 | 0x80" (pointer_expression "*pbVar8" (* "*") (identifier "pbVar8")) (= "=") (binary_expression "bVar3 | 0x80" (identifier "bVar3") (| "|") (number_literal "0x80"))) (; ";")) (} "}"))) (expression_statement "local_34 = uVar10;" (assignment_expression "local_34 = uVar10" (identifier "local_34") (= "=") (identifier "uVar10")) (; ";")) (} "}")) (while "while") (parenthesized_expression "(6 < (int)uVar7)" (( "(") (binary_expression "6 < (int)uVar7" (number_literal "6") (< "<") (cast_expression "(int)uVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar7"))) () ")")) (; ";")) (if_statement "if (param_2 == 0) {\n        uVar7 = 1 << ((char)uVar11 - 8U & 0x1f);\n        if (((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0) {\n          local_34 = -1 << (bVar4 & 0x1f) | uVar10;\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar9 = (byte)local_34 & 0x7f;\n        }\n        pbVar9 = pbVar8 + 2;\nLAB_0002c4a5:\n        return (int)pbVar9 - (int)param_1;\n      }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        uVar7 = 1 << ((char)uVar11 - 8U & 0x1f);\n        if (((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0) {\n          local_34 = -1 << (bVar4 & 0x1f) | uVar10;\n        }\n        if (param_1 != (byte *)0x0) {\n          *pbVar9 = (byte)local_34 & 0x7f;\n        }\n        pbVar9 = pbVar8 + 2;\nLAB_0002c4a5:\n        return (int)pbVar9 - (int)param_1;\n      }" ({ "{") (expression_statement "uVar7 = 1 << ((char)uVar11 - 8U & 0x1f);" (assignment_expression "uVar7 = 1 << ((char)uVar11 - 8U & 0x1f)" (identifier "uVar7") (= "=") (binary_expression "1 << ((char)uVar11 - 8U & 0x1f)" (number_literal "1") (<< "<<") (parenthesized_expression "((char)uVar11 - 8U & 0x1f)" (( "(") (binary_expression "(char)uVar11 - 8U & 0x1f" (binary_expression "(char)uVar11 - 8U" (cast_expression "(char)uVar11" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar11")) (- "-") (number_literal "8U")) (& "&") (number_literal "0x1f")) () ")")))) (; ";")) (if_statement "if (((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0) {\n          local_34 = -1 << (bVar4 & 0x1f) | uVar10;\n        }" (if "if") (parenthesized_expression "(((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0)" (( "(") (binary_expression "((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0" (binary_expression "((int)uVar7 >> 0x1f & local_30) != 0" (parenthesized_expression "((int)uVar7 >> 0x1f & local_30)" (( "(") (binary_expression "(int)uVar7 >> 0x1f & local_30" (binary_expression "(int)uVar7 >> 0x1f" (cast_expression "(int)uVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar7")) (>> ">>") (number_literal "0x1f")) (& "&") (identifier "local_30")) () ")")) (!= "!=") (number_literal "0")) (|| "||") (binary_expression "(uVar7 & uVar10) != 0" (parenthesized_expression "(uVar7 & uVar10)" (( "(") (binary_expression "uVar7 & uVar10" (identifier "uVar7") (& "&") (identifier "uVar10")) () ")")) (!= "!=") (number_literal "0"))) () ")")) (compound_statement "{\n          local_34 = -1 << (bVar4 & 0x1f) | uVar10;\n        }" ({ "{") (expression_statement "local_34 = -1 << (bVar4 & 0x1f) | uVar10;" (assignment_expression "local_34 = -1 << (bVar4 & 0x1f) | uVar10" (identifier "local_34") (= "=") (binary_expression "-1 << (bVar4 & 0x1f) | uVar10" (binary_expression "-1 << (bVar4 & 0x1f)" (number_literal "-1") (<< "<<") (parenthesized_expression "(bVar4 & 0x1f)" (( "(") (binary_expression "bVar4 & 0x1f" (identifier "bVar4") (& "&") (number_literal "0x1f")) () ")"))) (| "|") (identifier "uVar10"))) (; ";")) (} "}"))) (if_statement "if (param_1 != (byte *)0x0) {\n          *pbVar9 = (byte)local_34 & 0x7f;\n        }" (if "if") (parenthesized_expression "(param_1 != (byte *)0x0)" (( "(") (binary_expression "param_1 != (byte *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          *pbVar9 = (byte)local_34 & 0x7f;\n        }" ({ "{") (expression_statement "*pbVar9 = (byte)local_34 & 0x7f;" (assignment_expression "*pbVar9 = (byte)local_34 & 0x7f" (pointer_expression "*pbVar9" (* "*") (identifier "pbVar9")) (= "=") (binary_expression "(byte)local_34 & 0x7f" (cast_expression "(byte)local_34" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "local_34")) (& "&") (number_literal "0x7f"))) (; ";")) (} "}"))) (expression_statement "pbVar9 = pbVar8 + 2;" (assignment_expression "pbVar9 = pbVar8 + 2" (identifier "pbVar9") (= "=") (binary_expression "pbVar8 + 2" (identifier "pbVar8") (+ "+") (number_literal "2"))) (; ";")) (labeled_statement "LAB_0002c4a5:\n        return (int)pbVar9 - (int)param_1;" (statement_identifier "LAB_0002c4a5") (: ":") (return_statement "return (int)pbVar9 - (int)param_1;" (return "return") (binary_expression "(int)pbVar9 - (int)param_1" (cast_expression "(int)pbVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar9")) (- "-") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1"))) (; ";"))) (} "}"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}"))) (expression_statement "puVar6 = &DAT_00070f80;" (assignment_expression "puVar6 = &DAT_00070f80" (identifier "puVar6") (= "=") (pointer_expression "&DAT_00070f80" (& "&") (identifier "DAT_00070f80"))) (; ";")) (if_statement "if (param_2 != 0) {\n    do {\n      if (*(short *)(&DAT_00070f7e + param_2 * 2) != 0) break;\n      param_2 = param_2 - 1;\n    } while (param_2 != 0);\n  }" (if "if") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    do {\n      if (*(short *)(&DAT_00070f7e + param_2 * 2) != 0) break;\n      param_2 = param_2 - 1;\n    } while (param_2 != 0);\n  }" ({ "{") (do_statement "do {\n      if (*(short *)(&DAT_00070f7e + param_2 * 2) != 0) break;\n      param_2 = param_2 - 1;\n    } while (param_2 != 0);" (do "do") (compound_statement "{\n      if (*(short *)(&DAT_00070f7e + param_2 * 2) != 0) break;\n      param_2 = param_2 - 1;\n    }" ({ "{") (if_statement "if (*(short *)(&DAT_00070f7e + param_2 * 2) != 0) break;" (if "if") (parenthesized_expression "(*(short *)(&DAT_00070f7e + param_2 * 2) != 0)" (( "(") (binary_expression "*(short *)(&DAT_00070f7e + param_2 * 2) != 0" (pointer_expression "*(short *)(&DAT_00070f7e + param_2 * 2)" (* "*") (cast_expression "(short *)(&DAT_00070f7e + param_2 * 2)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_00070f7e + param_2 * 2)" (( "(") (binary_expression "&DAT_00070f7e + param_2 * 2" (pointer_expression "&DAT_00070f7e" (& "&") (identifier "DAT_00070f7e")) (+ "+") (binary_expression "param_2 * 2" (identifier "param_2") (* "*") (number_literal "2"))) () ")")))) (!= "!=") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "param_2 = param_2 - 1;" (assignment_expression "param_2 = param_2 - 1" (identifier "param_2") (= "=") (binary_expression "param_2 - 1" (identifier "param_2") (- "-") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}"))) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" (identifier "local_34") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" (identifier "local_30") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (expression_statement "pbVar9 = param_1;" (assignment_expression "pbVar9 = param_1" (identifier "pbVar9") (= "=") (identifier "param_1")) (; ";")) (expression_statement "local_20 = param_2;" (assignment_expression "local_20 = param_2" (identifier "local_20") (= "=") (identifier "param_2")) (; ";")) (while_statement "while( true ) {\n    local_2c = pbVar9;\n    bVar12 = local_20 != 0;\n    if ((iVar5 < 7) && (bVar12)) {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      uVar7 = (uint)uVar1 << ((byte)iVar5 & 0x1f);\n      iVar5 = iVar5 + 0x10;\n      local_34 = uVar7 | local_34;\n      local_30 = local_30 | (int)uVar7 >> 0x1f;\n      local_20 = local_20 - 1;\n      bVar12 = local_20 != 0;\n    }\n    iVar5 = iVar5 + -7;\n    pbVar9 = local_2c + 1;\n    uVar7 = local_34 >> 7 | local_30 << 0x19;\n    local_30 = local_30 >> 7;\n    bVar3 = (byte)local_34 & 0x7f;\n    if ((uVar7 == 0 && local_30 == 0) && (!bVar12)) break;\n    local_34 = uVar7;\n    if (param_1 != (byte *)0x0) {\n      *local_2c = bVar3 | 0x80;\n    }\n  }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n    local_2c = pbVar9;\n    bVar12 = local_20 != 0;\n    if ((iVar5 < 7) && (bVar12)) {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      uVar7 = (uint)uVar1 << ((byte)iVar5 & 0x1f);\n      iVar5 = iVar5 + 0x10;\n      local_34 = uVar7 | local_34;\n      local_30 = local_30 | (int)uVar7 >> 0x1f;\n      local_20 = local_20 - 1;\n      bVar12 = local_20 != 0;\n    }\n    iVar5 = iVar5 + -7;\n    pbVar9 = local_2c + 1;\n    uVar7 = local_34 >> 7 | local_30 << 0x19;\n    local_30 = local_30 >> 7;\n    bVar3 = (byte)local_34 & 0x7f;\n    if ((uVar7 == 0 && local_30 == 0) && (!bVar12)) break;\n    local_34 = uVar7;\n    if (param_1 != (byte *)0x0) {\n      *local_2c = bVar3 | 0x80;\n    }\n  }" ({ "{") (expression_statement "local_2c = pbVar9;" (assignment_expression "local_2c = pbVar9" (identifier "local_2c") (= "=") (identifier "pbVar9")) (; ";")) (expression_statement "bVar12 = local_20 != 0;" (assignment_expression "bVar12 = local_20 != 0" (identifier "bVar12") (= "=") (binary_expression "local_20 != 0" (identifier "local_20") (!= "!=") (number_literal "0"))) (; ";")) (if_statement "if ((iVar5 < 7) && (bVar12)) {\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      uVar7 = (uint)uVar1 << ((byte)iVar5 & 0x1f);\n      iVar5 = iVar5 + 0x10;\n      local_34 = uVar7 | local_34;\n      local_30 = local_30 | (int)uVar7 >> 0x1f;\n      local_20 = local_20 - 1;\n      bVar12 = local_20 != 0;\n    }" (if "if") (parenthesized_expression "((iVar5 < 7) && (bVar12))" (( "(") (binary_expression "(iVar5 < 7) && (bVar12)" (parenthesized_expression "(iVar5 < 7)" (( "(") (binary_expression "iVar5 < 7" (identifier "iVar5") (< "<") (number_literal "7")) () ")")) (&& "&&") (parenthesized_expression "(bVar12)" (( "(") (identifier "bVar12") () ")"))) () ")")) (compound_statement "{\n      uVar1 = *puVar6;\n      puVar6 = puVar6 + 1;\n      uVar7 = (uint)uVar1 << ((byte)iVar5 & 0x1f);\n      iVar5 = iVar5 + 0x10;\n      local_34 = uVar7 | local_34;\n      local_30 = local_30 | (int)uVar7 >> 0x1f;\n      local_20 = local_20 - 1;\n      bVar12 = local_20 != 0;\n    }" ({ "{") (expression_statement "uVar1 = *puVar6;" (assignment_expression "uVar1 = *puVar6" (identifier "uVar1") (= "=") (pointer_expression "*puVar6" (* "*") (identifier "puVar6"))) (; ";")) (expression_statement "puVar6 = puVar6 + 1;" (assignment_expression "puVar6 = puVar6 + 1" (identifier "puVar6") (= "=") (binary_expression "puVar6 + 1" (identifier "puVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar7 = (uint)uVar1 << ((byte)iVar5 & 0x1f);" (assignment_expression "uVar7 = (uint)uVar1 << ((byte)iVar5 & 0x1f)" (identifier "uVar7") (= "=") (binary_expression "(uint)uVar1 << ((byte)iVar5 & 0x1f)" (cast_expression "(uint)uVar1" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "uVar1")) (<< "<<") (parenthesized_expression "((byte)iVar5 & 0x1f)" (( "(") (binary_expression "(byte)iVar5 & 0x1f" (cast_expression "(byte)iVar5" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "iVar5")) (& "&") (number_literal "0x1f")) () ")")))) (; ";")) (expression_statement "iVar5 = iVar5 + 0x10;" (assignment_expression "iVar5 = iVar5 + 0x10" (identifier "iVar5") (= "=") (binary_expression "iVar5 + 0x10" (identifier "iVar5") (+ "+") (number_literal "0x10"))) (; ";")) (expression_statement "local_34 = uVar7 | local_34;" (assignment_expression "local_34 = uVar7 | local_34" (identifier "local_34") (= "=") (binary_expression "uVar7 | local_34" (identifier "uVar7") (| "|") (identifier "local_34"))) (; ";")) (expression_statement "local_30 = local_30 | (int)uVar7 >> 0x1f;" (assignment_expression "local_30 = local_30 | (int)uVar7 >> 0x1f" (identifier "local_30") (= "=") (binary_expression "local_30 | (int)uVar7 >> 0x1f" (identifier "local_30") (| "|") (binary_expression "(int)uVar7 >> 0x1f" (cast_expression "(int)uVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar7")) (>> ">>") (number_literal "0x1f")))) (; ";")) (expression_statement "local_20 = local_20 - 1;" (assignment_expression "local_20 = local_20 - 1" (identifier "local_20") (= "=") (binary_expression "local_20 - 1" (identifier "local_20") (- "-") (number_literal "1"))) (; ";")) (expression_statement "bVar12 = local_20 != 0;" (assignment_expression "bVar12 = local_20 != 0" (identifier "bVar12") (= "=") (binary_expression "local_20 != 0" (identifier "local_20") (!= "!=") (number_literal "0"))) (; ";")) (} "}"))) (expression_statement "iVar5 = iVar5 + -7;" (assignment_expression "iVar5 = iVar5 + -7" (identifier "iVar5") (= "=") (binary_expression "iVar5 + -7" (identifier "iVar5") (+ "+") (number_literal "-7"))) (; ";")) (expression_statement "pbVar9 = local_2c + 1;" (assignment_expression "pbVar9 = local_2c + 1" (identifier "pbVar9") (= "=") (binary_expression "local_2c + 1" (identifier "local_2c") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar7 = local_34 >> 7 | local_30 << 0x19;" (assignment_expression "uVar7 = local_34 >> 7 | local_30 << 0x19" (identifier "uVar7") (= "=") (binary_expression "local_34 >> 7 | local_30 << 0x19" (binary_expression "local_34 >> 7" (identifier "local_34") (>> ">>") (number_literal "7")) (| "|") (binary_expression "local_30 << 0x19" (identifier "local_30") (<< "<<") (number_literal "0x19")))) (; ";")) (expression_statement "local_30 = local_30 >> 7;" (assignment_expression "local_30 = local_30 >> 7" (identifier "local_30") (= "=") (binary_expression "local_30 >> 7" (identifier "local_30") (>> ">>") (number_literal "7"))) (; ";")) (expression_statement "bVar3 = (byte)local_34 & 0x7f;" (assignment_expression "bVar3 = (byte)local_34 & 0x7f" (identifier "bVar3") (= "=") (binary_expression "(byte)local_34 & 0x7f" (cast_expression "(byte)local_34" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "local_34")) (& "&") (number_literal "0x7f"))) (; ";")) (if_statement "if ((uVar7 == 0 && local_30 == 0) && (!bVar12)) break;" (if "if") (parenthesized_expression "((uVar7 == 0 && local_30 == 0) && (!bVar12))" (( "(") (binary_expression "(uVar7 == 0 && local_30 == 0) && (!bVar12)" (parenthesized_expression "(uVar7 == 0 && local_30 == 0)" (( "(") (binary_expression "uVar7 == 0 && local_30 == 0" (binary_expression "uVar7 == 0" (identifier "uVar7") (== "==") (number_literal "0")) (&& "&&") (binary_expression "local_30 == 0" (identifier "local_30") (== "==") (number_literal "0"))) () ")")) (&& "&&") (parenthesized_expression "(!bVar12)" (( "(") (unary_expression "!bVar12" (! "!") (identifier "bVar12")) () ")"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "local_34 = uVar7;" (assignment_expression "local_34 = uVar7" (identifier "local_34") (= "=") (identifier "uVar7")) (; ";")) (if_statement "if (param_1 != (byte *)0x0) {\n      *local_2c = bVar3 | 0x80;\n    }" (if "if") (parenthesized_expression "(param_1 != (byte *)0x0)" (( "(") (binary_expression "param_1 != (byte *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      *local_2c = bVar3 | 0x80;\n    }" ({ "{") (expression_statement "*local_2c = bVar3 | 0x80;" (assignment_expression "*local_2c = bVar3 | 0x80" (pointer_expression "*local_2c" (* "*") (identifier "local_2c")) (= "=") (binary_expression "bVar3 | 0x80" (identifier "bVar3") (| "|") (number_literal "0x80"))) (; ";")) (} "}"))) (} "}"))) (if_statement "if (param_1 != (byte *)0x0) {\n    *local_2c = bVar3;\n  }" (if "if") (parenthesized_expression "(param_1 != (byte *)0x0)" (( "(") (binary_expression "param_1 != (byte *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(byte *)0x0" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    *local_2c = bVar3;\n  }" ({ "{") (expression_statement "*local_2c = bVar3;" (assignment_expression "*local_2c = bVar3" (pointer_expression "*local_2c" (* "*") (identifier "local_2c")) (= "=") (identifier "bVar3")) (; ";")) (} "}"))) (return_statement "return (int)pbVar9 - (int)param_1;" (return "return") (binary_expression "(int)pbVar9 - (int)param_1" (cast_expression "(int)pbVar9" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pbVar9")) (- "-") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1"))) (; ";")) (} "}")))

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

type_1 __regparm3 function_1(char *var_15,type_2 *var_2,type_1 var_1,int sign)

{
  type_3 uVar1;
  short var_3;
  type_4 var_16;
  type_4 var_11;
  int var_12;
  type_3 *var_4;
  type_1 var_6;
  type_4 *var_9;
  type_4 *pbVar9;
  type_1 var_7;
  type_1 var_10;
  bool bVar12;
  type_1 var_8;
  type_1 var_5;
  type_4 *var_14;
  type_1 var_13;
  type_2 *var_17;
  
  if (var_1 != 0) {
    if (((type_2 *)0x1 < var_2) && ((&generic_bignum)[(int)var_2 + 0x7fffffff] == -1)) {
      var_3 = *(short *)(&DAT_00070f7e + ((int)var_2 + 0x7fffffff) * 2);
      while (((var_3 < 0 &&
              (var_2 = (type_2 *)((int)var_2 + -1), var_2 != (type_2 *)0x1)) &&
             (*(short *)(&DAT_00070f7e + (int)var_2 * 2) == -1))) {
        var_3 = *(short *)(&DAT_00070f7c + (int)var_2 * 2);
      }
    }
    var_4 = &generic_bignum;
    var_8 = 0;
    var_5 = 0;
    var_6 = 0;
    pbVar9 = (type_4 *)var_15;
    do {
      uVar1 = *var_4;
      var_4 = var_4 + 1;
      var_2 = (type_2 *)((int)var_2 + -1);
      var_7 = (type_1)uVar1 << ((type_4)var_6 & 0x1f);
      var_5 = var_5 | (int)var_7 >> 0x1f;
      var_6 = var_6 + 0x10;
      var_8 = var_7 | var_8;
      do {
        var_10 = var_6;
        var_9 = pbVar9;
        pbVar9 = var_9 + 1;
        var_7 = var_8 >> 7 | var_5 << 0x19;
        var_16 = (type_4)var_8 & 0x7f;
        var_5 = var_5 >> 7;
        var_6 = var_10 - 7;
        var_11 = (type_4)var_6;
        if (var_2 == (type_2 *)0x0) {
          var_14 = (type_4 *)0x0;
          var_13 = 0;
          if ((var_8 & 0x40) != 0) {
            bVar12 = (var_6 & 0x20) == 0;
            var_12 = (type_1)bVar12 << (var_11 & 0x1f);
            var_14 = (type_4 *)(var_12 - 1);
            var_13 = ((type_1)!bVar12 << (var_11 & 0x1f)) + -1 + (type_1)(var_12 != 0);
          }
          if (var_13 == var_5 && var_14 == (type_4 *)var_7) {
            if (var_15 != (char *)0x0) {
              *var_9 = var_16;
            }
            goto LAB_0002c4a5;
          }
        }
        if (var_15 != (char *)0x0) {
          *var_9 = var_16 | 0x80;
        }
        var_8 = var_7;
      } while (6 < (int)var_6);
      if (var_2 == (type_2 *)0x0) {
        var_6 = 1 << ((char)var_10 - 8U & 0x1f);
        if (((int)var_6 >> 0x1f & var_5) != 0 || (var_6 & var_7) != 0) {
          var_8 = -1 << (var_11 & 0x1f) | var_7;
        }
        if (var_15 != (char *)0x0) {
          *pbVar9 = (type_4)var_8 & 0x7f;
        }
        pbVar9 = var_9 + 2;
LAB_0002c4a5:
        return (int)pbVar9 - (int)var_15;
      }
    } while( true );
  }
  var_4 = &generic_bignum;
  if (var_2 != (type_2 *)0x0) {
    do {
      if (*(short *)(&DAT_00070f7e + (int)var_2 * 2) != 0) break;
      var_2 = (type_2 *)((int)var_2 + -1);
    } while (var_2 != (type_2 *)0x0);
  }
  var_8 = 0;
  var_5 = 0;
  var_12 = 0;
  pbVar9 = (type_4 *)var_15;
  var_17 = var_2;
  while( true ) {
    var_14 = pbVar9;
    bVar12 = var_17 != (type_2 *)0x0;
    if ((var_12 < 7) && (bVar12)) {
      uVar1 = *var_4;
      var_4 = var_4 + 1;
      var_6 = (type_1)uVar1 << ((type_4)var_12 & 0x1f);
      var_12 = var_12 + 0x10;
      var_8 = var_6 | var_8;
      var_5 = var_5 | (int)var_6 >> 0x1f;
      var_17 = (type_2 *)((int)var_17 + -1);
      bVar12 = var_17 != (type_2 *)0x0;
    }
    var_12 = var_12 + -7;
    pbVar9 = var_14 + 1;
    var_6 = var_8 >> 7 | var_5 << 0x19;
    var_5 = var_5 >> 7;
    var_16 = (type_4)var_8 & 0x7f;
    if ((var_6 == 0 && var_5 == 0) && (!bVar12)) break;
    var_8 = var_6;
    if (var_15 != (char *)0x0) {
      *var_14 = var_16 | 0x80;
    }
  }
  if (var_15 != (char *)0x0) {
    *var_14 = var_16;
  }
  return (int)pbVar9 - (int)var_15;
}


(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: (type_identifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator 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: (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: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) right: (parenthesized_expression (binary_expression left: (subscript_expression argument: (parenthesized_expression (pointer_expression argument: (identifier))) index: (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))))))) (while_statement condition: (parenthesized_expression (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal)))))) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))))))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (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: (pointer_expression argument: (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)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) (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: (identifier)))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (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: (type_identifier)) value: (identifier)) right: (number_literal)))) (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)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (unary_expression argument: (identifier))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (identifier))))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))))) (goto_statement label: (statement_identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (number_literal) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (number_literal) right: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)) right: (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal)) right: (identifier))) right: (number_literal)) right: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (binary_expression left: (number_literal) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))) right: (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (labeled_statement label: (statement_identifier) (return_statement (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))))))) condition: (parenthesized_expression (true))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (do_statement body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))))) right: (number_literal))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (while_statement condition: (parenthesized_expression (true)) body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (identifier)))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (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: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))))) (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: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))))) (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)))))) (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)))) (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: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (cast_expression type: (type_descriptor type: (type_identifier)) value: (identifier)) right: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (identifier) right: (number_literal)))) right: (parenthesized_expression (unary_expression argument: (identifier))))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (binary_expression left: (identifier) right: (number_literal)))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))))) (return_statement (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))))))

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

int __regparm3 MASKED(byte *param_1,uint param_2,int param_3)

{
  ushort uVar1;
  short sVar2;
  byte bVar3;
  byte bVar4;
  int iVar5;
  ushort *puVar6;
  uint uVar7;
  byte *pbVar8;
  byte *pbVar9;
  uint uVar10;
  uint uVar11;
  bool bVar12;
  uint local_34;
  uint local_30;
  byte *local_2c;
  uint local_28;
  uint local_20;
  
  if (param_3 != 0) {
    if ((1 < param_2) && ((&DAT_00070f80)[param_2 + 0x7fffffff] == -1)) {
      sVar2 = *(short *)(&DAT_00070f7e + (param_2 + 0x7fffffff) * 2);
      while (((sVar2 < 0 && (param_2 = param_2 - 1, param_2 != 1)) &&
             (*(short *)(&DAT_00070f7e + param_2 * 2) == -1))) {
        sVar2 = *(short *)(&DAT_00070f7c + param_2 * 2);
      }
    }
    puVar6 = &DAT_00070f80;
    local_34 = 0;
    local_30 = 0;
    uVar7 = 0;
    pbVar9 = param_1;
    do {
      uVar1 = *puVar6;
      puVar6 = puVar6 + 1;
      param_2 = param_2 - 1;
      uVar10 = (uint)uVar1 << ((byte)uVar7 & 0x1f);
      local_30 = local_30 | (int)uVar10 >> 0x1f;
      uVar7 = uVar7 + 0x10;
      local_34 = uVar10 | local_34;
      do {
        uVar11 = uVar7;
        pbVar8 = pbVar9;
        pbVar9 = pbVar8 + 1;
        uVar10 = local_34 >> 7 | local_30 << 0x19;
        bVar3 = (byte)local_34 & 0x7f;
        local_30 = local_30 >> 7;
        uVar7 = uVar11 - 7;
        bVar4 = (byte)uVar7;
        if (param_2 == 0) {
          local_2c = (byte *)0x0;
          local_28 = 0;
          if ((local_34 & 0x40) != 0) {
            bVar12 = (uVar7 & 0x20) == 0;
            iVar5 = (uint)bVar12 << (bVar4 & 0x1f);
            local_2c = (byte *)(iVar5 - 1);
            local_28 = ((uint)!bVar12 << (bVar4 & 0x1f)) + -1 + (uint)(iVar5 != 0);
          }
          if (local_28 == local_30 && local_2c == (byte *)uVar10) {
            if (param_1 != (byte *)0x0) {
              *pbVar8 = bVar3;
            }
            goto LAB_0002c4a5;
          }
        }
        if (param_1 != (byte *)0x0) {
          *pbVar8 = bVar3 | 0x80;
        }
        local_34 = uVar10;
      } while (6 < (int)uVar7);
      if (param_2 == 0) {
        uVar7 = 1 << ((char)uVar11 - 8U & 0x1f);
        if (((int)uVar7 >> 0x1f & local_30) != 0 || (uVar7 & uVar10) != 0) {
          local_34 = -1 << (bVar4 & 0x1f) | uVar10;
        }
        if (param_1 != (byte *)0x0) {
          *pbVar9 = (byte)local_34 & 0x7f;
        }
        pbVar9 = pbVar8 + 2;
LAB_0002c4a5:
        return (int)pbVar9 - (int)param_1;
      }
    } while( true );
  }
  puVar6 = &DAT_00070f80;
  if (param_2 != 0) {
    do {
      if (*(short *)(&DAT_00070f7e + param_2 * 2) != 0) break;
      param_2 = param_2 - 1;
    } while (param_2 != 0);
  }
  local_34 = 0;
  local_30 = 0;
  iVar5 = 0;
  pbVar9 = param_1;
  local_20 = param_2;
  while( true ) {
    local_2c = pbVar9;
    bVar12 = local_20 != 0;
    if ((iVar5 < 7) && (bVar12)) {
      uVar1 = *puVar6;
      puVar6 = puVar6 + 1;
      uVar7 = (uint)uVar1 << ((byte)iVar5 & 0x1f);
      iVar5 = iVar5 + 0x10;
      local_34 = uVar7 | local_34;
      local_30 = local_30 | (int)uVar7 >> 0x1f;
      local_20 = local_20 - 1;
      bVar12 = local_20 != 0;
    }
    iVar5 = iVar5 + -7;
    pbVar9 = local_2c + 1;
    uVar7 = local_34 >> 7 | local_30 << 0x19;
    local_30 = local_30 >> 7;
    bVar3 = (byte)local_34 & 0x7f;
    if ((uVar7 == 0 && local_30 == 0) && (!bVar12)) break;
    local_34 = uVar7;
    if (param_1 != (byte *)0x0) {
      *local_2c = bVar3 | 0x80;
    }
  }
  if (param_1 != (byte *)0x0) {
    *local_2c = bVar3;
  }
  return (int)pbVar9 - (int)param_1;
}

