
int sqlite3BitvecSet(Bitvec *p,u32 i)

{
  u32 uVar1;
  uint uVar2;
  Bitvec *pBVar3;
  u32 *p_00;
  long lVar4;
  ulong uVar5;
  uint uVar6;
  u32 *puVar7;
  undefined8 *puVar8;
  undefined8 *puVar9;
  byte bVar10;
  
  bVar10 = 0;
  if (p == (Bitvec *)0x0) {
    return 0;
  }
  uVar6 = i - 1;
  if (p->iSize < 0xf81) {
LAB_00123533:
    (p->u).aBitmap[uVar6 >> 3] = (p->u).aBitmap[uVar6 >> 3] | (byte)(1 << ((byte)uVar6 & 7));
    return 0;
  }
  uVar1 = p->iDivisor;
  while (uVar1 != 0) {
    uVar2 = uVar6 / uVar1;
    uVar6 = uVar6 % uVar1;
    if (*(long *)((long)&p->u + (ulong)uVar2 * 8) == 0) {
      pBVar3 = sqlite3BitvecCreate(uVar1);
      *(Bitvec **)((long)&p->u + (ulong)uVar2 * 8) = pBVar3;
      if (pBVar3 == (Bitvec *)0x0) {
        return 7;
      }
    }
    p = *(Bitvec **)((long)&p->u + (ulong)uVar2 * 8);
    if (p->iSize < 0xf81) goto LAB_00123533;
    uVar1 = p->iDivisor;
  }
  uVar1 = uVar6 + 1;
  uVar6 = uVar6 % 0x7c;
  if (*(int *)((long)&p->u + (ulong)uVar6 * 4) == 0) {
    if (p->nSet < 0x7b) goto LAB_001233b6;
  }
  else {
    do {
      if (*(u32 *)((long)&p->u + (ulong)uVar6 * 4) == uVar1) {
        return 0;
      }
      uVar6 = uVar6 + 1;
      if (0x7b < uVar6) {
        uVar6 = 0;
      }
    } while (*(int *)((long)&p->u + (ulong)uVar6 * 4) != 0);
  }
  if (0x3d < p->nSet) {
    p_00 = (u32 *)sqlite3DbMallocRaw((sqlite3 *)0x0,0x1f0);
    if (p_00 == (u32 *)0x0) {
      return 7;
    }
    *(Bitvec **)p_00 = (p->u).apSub[0];
    *(Bitvec **)(p_00 + 0x7a) = (p->u).apSub[0x3d];
    lVar4 = (long)p_00 - (long)((ulong)(p_00 + 2) & 0xfffffffffffffff8);
    puVar9 = (undefined8 *)((long)&p->u - lVar4);
    puVar8 = (undefined8 *)((ulong)(p_00 + 2) & 0xfffffffffffffff8);
    for (uVar5 = (ulong)((int)lVar4 + 0x1f0U >> 3); uVar5 != 0; uVar5 = uVar5 - 1) {
      *puVar8 = *puVar9;
      puVar9 = puVar9 + (ulong)bVar10 * -2 + 1;
      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;
    }
    (p->u).apSub[0] = (Bitvec *)0x0;
    (p->u).apSub[0x3d] = (Bitvec *)0x0;
    puVar9 = (undefined8 *)((ulong)((long)&p->u + 8U) & 0xfffffffffffffff8);
    uVar5 = (ulong)(((int)&p->u - (int)puVar9) + 0x1f0U >> 3);
    for (; uVar5 != 0; uVar5 = uVar5 - 1) {
      *puVar9 = 0;
      puVar9 = puVar9 + (ulong)bVar10 * -2 + 1;
    }
    p->iDivisor = (u32)(((ulong)p->iSize + 0x3d) / 0x3e);
    uVar6 = sqlite3BitvecSet(p,uVar1);
    puVar7 = p_00;
    do {
      if (*puVar7 != 0) {
        uVar2 = sqlite3BitvecSet(p,*puVar7);
        uVar6 = uVar6 | uVar2;
      }
      puVar7 = puVar7 + 1;
    } while (puVar7 != p_00 + 0x7c);
    sqlite3DbFree((sqlite3 *)0x0,p_00);
    return uVar6;
  }
LAB_001233b6:
  p->nSet = p->nSet + 1;
  *(u32 *)((long)&p->u + (ulong)uVar6 * 4) = uVar1;
  return 0;
}



uint FUN_00123346(uint *param_1,int param_2)

{
  byte *pbVar1;
  uint uVar2;
  int *piVar3;
  long lVar4;
  ulong uVar5;
  uint uVar6;
  int *piVar7;
  undefined8 *puVar8;
  undefined8 *puVar9;
  byte bVar10;
  
  bVar10 = 0;
  if (param_1 == (uint *)0x0) {
    return 0;
  }
  uVar6 = param_2 - 1;
  if (*param_1 < 0xf81) {
LAB_00123533:
    pbVar1 = (byte *)((long)param_1 + (ulong)(uVar6 >> 3) + 0x10);
    *pbVar1 = *pbVar1 | (byte)(1 << ((byte)uVar6 & 7));
    return 0;
  }
  uVar2 = param_1[2];
  while (uVar2 != 0) {
    uVar5 = (ulong)uVar6 / (ulong)uVar2;
    uVar6 = uVar6 % uVar2;
    if (*(long *)(param_1 + uVar5 * 2 + 4) == 0) {
      lVar4 = FUN_0011d296();
      *(long *)(param_1 + uVar5 * 2 + 4) = lVar4;
      if (lVar4 == 0) {
        return 7;
      }
    }
    param_1 = *(uint **)(param_1 + uVar5 * 2 + 4);
    if (*param_1 < 0xf81) goto LAB_00123533;
    uVar2 = param_1[2];
  }
  uVar2 = uVar6 + 1;
  uVar5 = (ulong)(uVar6 % 0x7c);
  if (param_1[(ulong)(uVar6 % 0x7c) + 4] == 0) {
    if (param_1[1] < 0x7b) goto LAB_001233b6;
  }
  else {
    do {
      if (param_1[uVar5 + 4] == uVar2) {
        return 0;
      }
      uVar6 = (int)uVar5 + 1;
      if (0x7b < uVar6) {
        uVar6 = 0;
      }
      uVar5 = (ulong)uVar6;
    } while (param_1[uVar5 + 4] != 0);
  }
  if (0x3d < param_1[1]) {
    piVar3 = (int *)FUN_001224ab(0,0x1f0);
    if (piVar3 == (int *)0x0) {
      return 7;
    }
    *(undefined8 *)piVar3 = *(undefined8 *)(param_1 + 4);
    *(undefined8 *)(piVar3 + 0x7a) = *(undefined8 *)(param_1 + 0x7e);
    lVar4 = (long)piVar3 - (long)((ulong)(piVar3 + 2) & 0xfffffffffffffff8);
    puVar8 = (undefined8 *)((long)(param_1 + 4) - lVar4);
    puVar9 = (undefined8 *)((ulong)(piVar3 + 2) & 0xfffffffffffffff8);
    for (uVar5 = (ulong)((int)lVar4 + 0x1f0U >> 3); uVar5 != 0; uVar5 = uVar5 - 1) {
      *puVar9 = *puVar8;
      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;
      puVar9 = puVar9 + (ulong)bVar10 * -2 + 1;
    }
    param_1[4] = 0;
    param_1[5] = 0;
    param_1[0x7e] = 0;
    param_1[0x7f] = 0;
    puVar8 = (undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8);
    for (uVar5 = (ulong)(((int)(param_1 + 4) -
                         (int)(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)) + 0x1f0U >>
                        3); uVar5 != 0; uVar5 = uVar5 - 1) {
      *puVar8 = 0;
      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;
    }
    param_1[2] = (uint)(((ulong)*param_1 + 0x3d) / 0x3e);
    uVar6 = FUN_00123346(param_1,uVar2);
    piVar7 = piVar3;
    do {
      if (*piVar7 != 0) {
        uVar2 = FUN_00123346(param_1);
        uVar6 = uVar6 | uVar2;
      }
      piVar7 = piVar7 + 1;
    } while (piVar7 != piVar3 + 0x7c);
    FUN_00119825(0,piVar3);
    return uVar6;
  }
LAB_001233b6:
  param_1[1] = param_1[1] + 1;
  param_1[uVar5 + 4] = uVar2;
  return 0;
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x8
MOV R13D,0x0
TEST RDI,RDI
JZ 0x00123550
MOV RBX,RDI
LEA EBP,[RSI + -0x1]
CMP dword ptr [RDI],0xf80
JBE 0x00123533
MOV EDI,dword ptr [RDI + 0x8]
TEST EDI,EDI
JNZ 0x001233e3
LEA R12D,[RBP + 0x1]
MOV EDX,EBP
SHR EDX,0x2
MOV ECX,0x21084211
MOV EAX,EDX
MUL ECX
SHR EDX,0x2
IMUL EDX,EDX,0x7c
SUB EBP,EDX
MOV EDX,EBP
MOV EAX,EBP
MOV ECX,0x0
CMP dword ptr [RBX + RAX*0x4 + 0x10],0x0
JNZ 0x00123414
CMP dword ptr [RBX + 0x4],0x7a
JBE 0x001233b6
CMP dword ptr [RBX + 0x4],0x3d
JA 0x00123438
ADD dword ptr [RBX + 0x4],0x1
MOV EDX,EDX
MOV dword ptr [RBX + RDX*0x4 + 0x10],R12D
MOV R13D,0x0
JMP 0x00123550
MOV RBX,qword ptr [RBX + 0x10]
CMP dword ptr [RBX],0xf80
JBE 0x00123533
MOV EDI,dword ptr [RBX + 0x8]
TEST EDI,EDI
JZ 0x0012337c
MOV EAX,EBP
MOV EDX,0x0
DIV EDI
MOV EBP,EDX
MOV EAX,EAX
LEA RBX,[RBX + RAX*0x8]
CMP qword ptr [RBX + 0x10],0x0
JNZ 0x001233cc
CALL 0x0011d296
MOV qword ptr [RBX + 0x10],RAX
TEST RAX,RAX
JNZ 0x001233cc
MOV R13D,0x7
JMP 0x00123550
MOV EAX,EDX
CMP dword ptr [RBX + RAX*0x4 + 0x10],R12D
JZ 0x0012352b
ADD EDX,0x1
CMP EDX,0x7c
CMOVNC EDX,ECX
MOV EAX,EDX
CMP dword ptr [RBX + RAX*0x4 + 0x10],0x0
JNZ 0x00123414
JMP 0x001233ac
MOV ESI,0x1f0
MOV EDI,0x0
CALL 0x001224ab
MOV R14,RAX
MOV R13D,0x7
TEST RAX,RAX
JZ 0x00123550
LEA RDX,[RBX + 0x10]
MOV RAX,qword ptr [RBX + 0x10]
MOV qword ptr [R14],RAX
LEA R15,[R14 + 0x1f0]
MOV RAX,qword ptr [RBX + 0x1f8]
MOV qword ptr [R14 + 0x1e8],RAX
LEA RDI,[R14 + 0x8]
AND RDI,-0x8
MOV RAX,R14
SUB RAX,RDI
MOV RSI,RDX
SUB RSI,RAX
ADD EAX,0x1f0
SHR EAX,0x3
MOV EAX,EAX
MOV RCX,RAX
MOVSQ.REP RDI,RSI
MOV RAX,RCX
MOV qword ptr [RBX + 0x10],0x0
MOV qword ptr [RBX + 0x1f8],0x0
LEA RDI,[RBX + 0x18]
AND RDI,-0x8
SUB RDX,RDI
LEA ECX,[RDX + 0x1f0]
SHR ECX,0x3
MOV ECX,ECX
STOSQ.REP RDI
MOV EDX,dword ptr [RBX]
ADD RDX,0x3d
SHR RDX,0x1
MOV RCX,-0x7bdef7bdef7bdef7
MOV RAX,RDX
MUL RCX
SHR RDX,0x4
MOV dword ptr [RBX + 0x8],EDX
MOV ESI,R12D
MOV RDI,RBX
CALL 0x00123346
MOV R13D,EAX
MOV RBP,R14
JMP 0x00123508
ADD RBP,0x4
CMP RBP,R15
JZ 0x0012351c
MOV ESI,dword ptr [RBP]
TEST ESI,ESI
JZ 0x001234ff
MOV RDI,RBX
CALL 0x00123346
OR R13D,EAX
JMP 0x001234ff
MOV RSI,R14
MOV EDI,0x0
CALL 0x00119825
JMP 0x00123550
MOV R13D,0x0
JMP 0x00123550
MOV EAX,EBP
SHR EAX,0x3
MOV EAX,EAX
MOV ECX,EBP
AND ECX,0x7
MOV EDX,0x1
SHL EDX,CL
OR byte ptr [RBX + RAX*0x1 + 0x10],DL
MOV R13D,0x0
MOV EAX,R13D
ADD RSP,0x8
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
(translation_unit "uint FUN_00123346(uint *param_1,int param_2)\n\n{\n  byte *pbVar1;\n  uint uVar2;\n  int *piVar3;\n  long lVar4;\n  ulong uVar5;\n  uint uVar6;\n  int *piVar7;\n  undefined8 *puVar8;\n  undefined8 *puVar9;\n  byte bVar10;\n  \n  bVar10 = 0;\n  if (param_1 == (uint *)0x0) {\n    return 0;\n  }\n  uVar6 = param_2 - 1;\n  if (*param_1 < 0xf81) {\nLAB_00123533:\n    pbVar1 = (byte *)((long)param_1 + (ulong)(uVar6 >> 3) + 0x10);\n    *pbVar1 = *pbVar1 | (byte)(1 << ((byte)uVar6 & 7));\n    return 0;\n  }\n  uVar2 = param_1[2];\n  while (uVar2 != 0) {\n    uVar5 = (ulong)uVar6 / (ulong)uVar2;\n    uVar6 = uVar6 % uVar2;\n    if (*(long *)(param_1 + uVar5 * 2 + 4) == 0) {\n      lVar4 = FUN_0011d296();\n      *(long *)(param_1 + uVar5 * 2 + 4) = lVar4;\n      if (lVar4 == 0) {\n        return 7;\n      }\n    }\n    param_1 = *(uint **)(param_1 + uVar5 * 2 + 4);\n    if (*param_1 < 0xf81) goto LAB_00123533;\n    uVar2 = param_1[2];\n  }\n  uVar2 = uVar6 + 1;\n  uVar5 = (ulong)(uVar6 % 0x7c);\n  if (param_1[(ulong)(uVar6 % 0x7c) + 4] == 0) {\n    if (param_1[1] < 0x7b) goto LAB_001233b6;\n  }\n  else {\n    do {\n      if (param_1[uVar5 + 4] == uVar2) {\n        return 0;\n      }\n      uVar6 = (int)uVar5 + 1;\n      if (0x7b < uVar6) {\n        uVar6 = 0;\n      }\n      uVar5 = (ulong)uVar6;\n    } while (param_1[uVar5 + 4] != 0);\n  }\n  if (0x3d < param_1[1]) {\n    piVar3 = (int *)FUN_001224ab(0,0x1f0);\n    if (piVar3 == (int *)0x0) {\n      return 7;\n    }\n    *(undefined8 *)piVar3 = *(undefined8 *)(param_1 + 4);\n    *(undefined8 *)(piVar3 + 0x7a) = *(undefined8 *)(param_1 + 0x7e);\n    lVar4 = (long)piVar3 - (long)((ulong)(piVar3 + 2) & 0xfffffffffffffff8);\n    puVar8 = (undefined8 *)((long)(param_1 + 4) - lVar4);\n    puVar9 = (undefined8 *)((ulong)(piVar3 + 2) & 0xfffffffffffffff8);\n    for (uVar5 = (ulong)((int)lVar4 + 0x1f0U >> 3); uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar9 = *puVar8;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n      puVar9 = puVar9 + (ulong)bVar10 * -2 + 1;\n    }\n    param_1[4] = 0;\n    param_1[5] = 0;\n    param_1[0x7e] = 0;\n    param_1[0x7f] = 0;\n    puVar8 = (undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8);\n    for (uVar5 = (ulong)(((int)(param_1 + 4) -\n                         (int)(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)) + 0x1f0U >>\n                        3); uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar8 = 0;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n    }\n    param_1[2] = (uint)(((ulong)*param_1 + 0x3d) / 0x3e);\n    uVar6 = FUN_00123346(param_1,uVar2);\n    piVar7 = piVar3;\n    do {\n      if (*piVar7 != 0) {\n        uVar2 = FUN_00123346(param_1);\n        uVar6 = uVar6 | uVar2;\n      }\n      piVar7 = piVar7 + 1;\n    } while (piVar7 != piVar3 + 0x7c);\n    FUN_00119825(0,piVar3);\n    return uVar6;\n  }\nLAB_001233b6:\n  param_1[1] = param_1[1] + 1;\n  param_1[uVar5 + 4] = uVar2;\n  return 0;\n}\n\n" (function_definition "uint FUN_00123346(uint *param_1,int param_2)\n\n{\n  byte *pbVar1;\n  uint uVar2;\n  int *piVar3;\n  long lVar4;\n  ulong uVar5;\n  uint uVar6;\n  int *piVar7;\n  undefined8 *puVar8;\n  undefined8 *puVar9;\n  byte bVar10;\n  \n  bVar10 = 0;\n  if (param_1 == (uint *)0x0) {\n    return 0;\n  }\n  uVar6 = param_2 - 1;\n  if (*param_1 < 0xf81) {\nLAB_00123533:\n    pbVar1 = (byte *)((long)param_1 + (ulong)(uVar6 >> 3) + 0x10);\n    *pbVar1 = *pbVar1 | (byte)(1 << ((byte)uVar6 & 7));\n    return 0;\n  }\n  uVar2 = param_1[2];\n  while (uVar2 != 0) {\n    uVar5 = (ulong)uVar6 / (ulong)uVar2;\n    uVar6 = uVar6 % uVar2;\n    if (*(long *)(param_1 + uVar5 * 2 + 4) == 0) {\n      lVar4 = FUN_0011d296();\n      *(long *)(param_1 + uVar5 * 2 + 4) = lVar4;\n      if (lVar4 == 0) {\n        return 7;\n      }\n    }\n    param_1 = *(uint **)(param_1 + uVar5 * 2 + 4);\n    if (*param_1 < 0xf81) goto LAB_00123533;\n    uVar2 = param_1[2];\n  }\n  uVar2 = uVar6 + 1;\n  uVar5 = (ulong)(uVar6 % 0x7c);\n  if (param_1[(ulong)(uVar6 % 0x7c) + 4] == 0) {\n    if (param_1[1] < 0x7b) goto LAB_001233b6;\n  }\n  else {\n    do {\n      if (param_1[uVar5 + 4] == uVar2) {\n        return 0;\n      }\n      uVar6 = (int)uVar5 + 1;\n      if (0x7b < uVar6) {\n        uVar6 = 0;\n      }\n      uVar5 = (ulong)uVar6;\n    } while (param_1[uVar5 + 4] != 0);\n  }\n  if (0x3d < param_1[1]) {\n    piVar3 = (int *)FUN_001224ab(0,0x1f0);\n    if (piVar3 == (int *)0x0) {\n      return 7;\n    }\n    *(undefined8 *)piVar3 = *(undefined8 *)(param_1 + 4);\n    *(undefined8 *)(piVar3 + 0x7a) = *(undefined8 *)(param_1 + 0x7e);\n    lVar4 = (long)piVar3 - (long)((ulong)(piVar3 + 2) & 0xfffffffffffffff8);\n    puVar8 = (undefined8 *)((long)(param_1 + 4) - lVar4);\n    puVar9 = (undefined8 *)((ulong)(piVar3 + 2) & 0xfffffffffffffff8);\n    for (uVar5 = (ulong)((int)lVar4 + 0x1f0U >> 3); uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar9 = *puVar8;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n      puVar9 = puVar9 + (ulong)bVar10 * -2 + 1;\n    }\n    param_1[4] = 0;\n    param_1[5] = 0;\n    param_1[0x7e] = 0;\n    param_1[0x7f] = 0;\n    puVar8 = (undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8);\n    for (uVar5 = (ulong)(((int)(param_1 + 4) -\n                         (int)(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)) + 0x1f0U >>\n                        3); uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar8 = 0;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n    }\n    param_1[2] = (uint)(((ulong)*param_1 + 0x3d) / 0x3e);\n    uVar6 = FUN_00123346(param_1,uVar2);\n    piVar7 = piVar3;\n    do {\n      if (*piVar7 != 0) {\n        uVar2 = FUN_00123346(param_1);\n        uVar6 = uVar6 | uVar2;\n      }\n      piVar7 = piVar7 + 1;\n    } while (piVar7 != piVar3 + 0x7c);\n    FUN_00119825(0,piVar3);\n    return uVar6;\n  }\nLAB_001233b6:\n  param_1[1] = param_1[1] + 1;\n  param_1[uVar5 + 4] = uVar2;\n  return 0;\n}" type_identifier (function_declarator "FUN_00123346(uint *param_1,int param_2)" identifier (parameter_list "(uint *param_1,int param_2)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  byte *pbVar1;\n  uint uVar2;\n  int *piVar3;\n  long lVar4;\n  ulong uVar5;\n  uint uVar6;\n  int *piVar7;\n  undefined8 *puVar8;\n  undefined8 *puVar9;\n  byte bVar10;\n  \n  bVar10 = 0;\n  if (param_1 == (uint *)0x0) {\n    return 0;\n  }\n  uVar6 = param_2 - 1;\n  if (*param_1 < 0xf81) {\nLAB_00123533:\n    pbVar1 = (byte *)((long)param_1 + (ulong)(uVar6 >> 3) + 0x10);\n    *pbVar1 = *pbVar1 | (byte)(1 << ((byte)uVar6 & 7));\n    return 0;\n  }\n  uVar2 = param_1[2];\n  while (uVar2 != 0) {\n    uVar5 = (ulong)uVar6 / (ulong)uVar2;\n    uVar6 = uVar6 % uVar2;\n    if (*(long *)(param_1 + uVar5 * 2 + 4) == 0) {\n      lVar4 = FUN_0011d296();\n      *(long *)(param_1 + uVar5 * 2 + 4) = lVar4;\n      if (lVar4 == 0) {\n        return 7;\n      }\n    }\n    param_1 = *(uint **)(param_1 + uVar5 * 2 + 4);\n    if (*param_1 < 0xf81) goto LAB_00123533;\n    uVar2 = param_1[2];\n  }\n  uVar2 = uVar6 + 1;\n  uVar5 = (ulong)(uVar6 % 0x7c);\n  if (param_1[(ulong)(uVar6 % 0x7c) + 4] == 0) {\n    if (param_1[1] < 0x7b) goto LAB_001233b6;\n  }\n  else {\n    do {\n      if (param_1[uVar5 + 4] == uVar2) {\n        return 0;\n      }\n      uVar6 = (int)uVar5 + 1;\n      if (0x7b < uVar6) {\n        uVar6 = 0;\n      }\n      uVar5 = (ulong)uVar6;\n    } while (param_1[uVar5 + 4] != 0);\n  }\n  if (0x3d < param_1[1]) {\n    piVar3 = (int *)FUN_001224ab(0,0x1f0);\n    if (piVar3 == (int *)0x0) {\n      return 7;\n    }\n    *(undefined8 *)piVar3 = *(undefined8 *)(param_1 + 4);\n    *(undefined8 *)(piVar3 + 0x7a) = *(undefined8 *)(param_1 + 0x7e);\n    lVar4 = (long)piVar3 - (long)((ulong)(piVar3 + 2) & 0xfffffffffffffff8);\n    puVar8 = (undefined8 *)((long)(param_1 + 4) - lVar4);\n    puVar9 = (undefined8 *)((ulong)(piVar3 + 2) & 0xfffffffffffffff8);\n    for (uVar5 = (ulong)((int)lVar4 + 0x1f0U >> 3); uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar9 = *puVar8;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n      puVar9 = puVar9 + (ulong)bVar10 * -2 + 1;\n    }\n    param_1[4] = 0;\n    param_1[5] = 0;\n    param_1[0x7e] = 0;\n    param_1[0x7f] = 0;\n    puVar8 = (undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8);\n    for (uVar5 = (ulong)(((int)(param_1 + 4) -\n                         (int)(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)) + 0x1f0U >>\n                        3); uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar8 = 0;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n    }\n    param_1[2] = (uint)(((ulong)*param_1 + 0x3d) / 0x3e);\n    uVar6 = FUN_00123346(param_1,uVar2);\n    piVar7 = piVar3;\n    do {\n      if (*piVar7 != 0) {\n        uVar2 = FUN_00123346(param_1);\n        uVar6 = uVar6 | uVar2;\n      }\n      piVar7 = piVar7 + 1;\n    } while (piVar7 != piVar3 + 0x7c);\n    FUN_00119825(0,piVar3);\n    return uVar6;\n  }\nLAB_001233b6:\n  param_1[1] = param_1[1] + 1;\n  param_1[uVar5 + 4] = uVar2;\n  return 0;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "undefined8 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined8 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "byte bVar10;" type_identifier identifier ;) (expression_statement "bVar10 = 0;" (assignment_expression "bVar10 = 0" identifier = number_literal) ;) (if_statement "if (param_1 == (uint *)0x0) {\n    return 0;\n  }" if (parenthesized_expression "(param_1 == (uint *)0x0)" ( (binary_expression "param_1 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar6 = param_2 - 1;" (assignment_expression "uVar6 = param_2 - 1" identifier = (binary_expression "param_2 - 1" identifier - number_literal)) ;) (if_statement "if (*param_1 < 0xf81) {\nLAB_00123533:\n    pbVar1 = (byte *)((long)param_1 + (ulong)(uVar6 >> 3) + 0x10);\n    *pbVar1 = *pbVar1 | (byte)(1 << ((byte)uVar6 & 7));\n    return 0;\n  }" if (parenthesized_expression "(*param_1 < 0xf81)" ( (binary_expression "*param_1 < 0xf81" (pointer_expression "*param_1" * identifier) < number_literal) )) (compound_statement "{\nLAB_00123533:\n    pbVar1 = (byte *)((long)param_1 + (ulong)(uVar6 >> 3) + 0x10);\n    *pbVar1 = *pbVar1 | (byte)(1 << ((byte)uVar6 & 7));\n    return 0;\n  }" { (labeled_statement "LAB_00123533:\n    pbVar1 = (byte *)((long)param_1 + (ulong)(uVar6 >> 3) + 0x10);" statement_identifier : (expression_statement "pbVar1 = (byte *)((long)param_1 + (ulong)(uVar6 >> 3) + 0x10);" (assignment_expression "pbVar1 = (byte *)((long)param_1 + (ulong)(uVar6 >> 3) + 0x10)" identifier = (cast_expression "(byte *)((long)param_1 + (ulong)(uVar6 >> 3) + 0x10)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + (ulong)(uVar6 >> 3) + 0x10)" ( (binary_expression "(long)param_1 + (ulong)(uVar6 >> 3) + 0x10" (binary_expression "(long)param_1 + (ulong)(uVar6 >> 3)" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (call_expression "(ulong)(uVar6 >> 3)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(uVar6 >> 3)" ( (binary_expression "uVar6 >> 3" identifier >> number_literal) )))) + number_literal) )))) ;)) (expression_statement "*pbVar1 = *pbVar1 | (byte)(1 << ((byte)uVar6 & 7));" (assignment_expression "*pbVar1 = *pbVar1 | (byte)(1 << ((byte)uVar6 & 7))" (pointer_expression "*pbVar1" * identifier) = (binary_expression "*pbVar1 | (byte)(1 << ((byte)uVar6 & 7))" (pointer_expression "*pbVar1" * identifier) | (call_expression "(byte)(1 << ((byte)uVar6 & 7))" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(1 << ((byte)uVar6 & 7))" ( (binary_expression "1 << ((byte)uVar6 & 7)" number_literal << (parenthesized_expression "((byte)uVar6 & 7)" ( (binary_expression "(byte)uVar6 & 7" (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) ))) ))))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar2 = param_1[2];" (assignment_expression "uVar2 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (while_statement "while (uVar2 != 0) {\n    uVar5 = (ulong)uVar6 / (ulong)uVar2;\n    uVar6 = uVar6 % uVar2;\n    if (*(long *)(param_1 + uVar5 * 2 + 4) == 0) {\n      lVar4 = FUN_0011d296();\n      *(long *)(param_1 + uVar5 * 2 + 4) = lVar4;\n      if (lVar4 == 0) {\n        return 7;\n      }\n    }\n    param_1 = *(uint **)(param_1 + uVar5 * 2 + 4);\n    if (*param_1 < 0xf81) goto LAB_00123533;\n    uVar2 = param_1[2];\n  }" while (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar5 = (ulong)uVar6 / (ulong)uVar2;\n    uVar6 = uVar6 % uVar2;\n    if (*(long *)(param_1 + uVar5 * 2 + 4) == 0) {\n      lVar4 = FUN_0011d296();\n      *(long *)(param_1 + uVar5 * 2 + 4) = lVar4;\n      if (lVar4 == 0) {\n        return 7;\n      }\n    }\n    param_1 = *(uint **)(param_1 + uVar5 * 2 + 4);\n    if (*param_1 < 0xf81) goto LAB_00123533;\n    uVar2 = param_1[2];\n  }" { (expression_statement "uVar5 = (ulong)uVar6 / (ulong)uVar2;" (assignment_expression "uVar5 = (ulong)uVar6 / (ulong)uVar2" identifier = (binary_expression "(ulong)uVar6 / (ulong)uVar2" (cast_expression "(ulong)uVar6" ( (type_descriptor "ulong" type_identifier) ) identifier) / (cast_expression "(ulong)uVar2" ( (type_descriptor "ulong" type_identifier) ) identifier))) ;) (expression_statement "uVar6 = uVar6 % uVar2;" (assignment_expression "uVar6 = uVar6 % uVar2" identifier = (binary_expression "uVar6 % uVar2" identifier % identifier)) ;) (if_statement "if (*(long *)(param_1 + uVar5 * 2 + 4) == 0) {\n      lVar4 = FUN_0011d296();\n      *(long *)(param_1 + uVar5 * 2 + 4) = lVar4;\n      if (lVar4 == 0) {\n        return 7;\n      }\n    }" if (parenthesized_expression "(*(long *)(param_1 + uVar5 * 2 + 4) == 0)" ( (binary_expression "*(long *)(param_1 + uVar5 * 2 + 4) == 0" (pointer_expression "*(long *)(param_1 + uVar5 * 2 + 4)" * (cast_expression "(long *)(param_1 + uVar5 * 2 + 4)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + uVar5 * 2 + 4)" ( (binary_expression "param_1 + uVar5 * 2 + 4" (binary_expression "param_1 + uVar5 * 2" identifier + (binary_expression "uVar5 * 2" identifier * number_literal)) + number_literal) )))) == number_literal) )) (compound_statement "{\n      lVar4 = FUN_0011d296();\n      *(long *)(param_1 + uVar5 * 2 + 4) = lVar4;\n      if (lVar4 == 0) {\n        return 7;\n      }\n    }" { (expression_statement "lVar4 = FUN_0011d296();" (assignment_expression "lVar4 = FUN_0011d296()" identifier = (call_expression "FUN_0011d296()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(long *)(param_1 + uVar5 * 2 + 4) = lVar4;" (assignment_expression "*(long *)(param_1 + uVar5 * 2 + 4) = lVar4" (pointer_expression "*(long *)(param_1 + uVar5 * 2 + 4)" * (cast_expression "(long *)(param_1 + uVar5 * 2 + 4)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + uVar5 * 2 + 4)" ( (binary_expression "param_1 + uVar5 * 2 + 4" (binary_expression "param_1 + uVar5 * 2" identifier + (binary_expression "uVar5 * 2" identifier * number_literal)) + number_literal) )))) = identifier) ;) (if_statement "if (lVar4 == 0) {\n        return 7;\n      }" if (parenthesized_expression "(lVar4 == 0)" ( (binary_expression "lVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        return 7;\n      }" { (return_statement "return 7;" return number_literal ;) })) })) (expression_statement "param_1 = *(uint **)(param_1 + uVar5 * 2 + 4);" (assignment_expression "param_1 = *(uint **)(param_1 + uVar5 * 2 + 4)" identifier = (pointer_expression "*(uint **)(param_1 + uVar5 * 2 + 4)" * (cast_expression "(uint **)(param_1 + uVar5 * 2 + 4)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + uVar5 * 2 + 4)" ( (binary_expression "param_1 + uVar5 * 2 + 4" (binary_expression "param_1 + uVar5 * 2" identifier + (binary_expression "uVar5 * 2" identifier * number_literal)) + number_literal) ))))) ;) (if_statement "if (*param_1 < 0xf81) goto LAB_00123533;" if (parenthesized_expression "(*param_1 < 0xf81)" ( (binary_expression "*param_1 < 0xf81" (pointer_expression "*param_1" * identifier) < number_literal) )) (goto_statement "goto LAB_00123533;" goto statement_identifier ;)) (expression_statement "uVar2 = param_1[2];" (assignment_expression "uVar2 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) })) (expression_statement "uVar2 = uVar6 + 1;" (assignment_expression "uVar2 = uVar6 + 1" identifier = (binary_expression "uVar6 + 1" identifier + number_literal)) ;) (expression_statement "uVar5 = (ulong)(uVar6 % 0x7c);" (assignment_expression "uVar5 = (ulong)(uVar6 % 0x7c)" identifier = (call_expression "(ulong)(uVar6 % 0x7c)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(uVar6 % 0x7c)" ( (binary_expression "uVar6 % 0x7c" identifier % number_literal) )))) ;) (if_statement "if (param_1[(ulong)(uVar6 % 0x7c) + 4] == 0) {\n    if (param_1[1] < 0x7b) goto LAB_001233b6;\n  }\n  else {\n    do {\n      if (param_1[uVar5 + 4] == uVar2) {\n        return 0;\n      }\n      uVar6 = (int)uVar5 + 1;\n      if (0x7b < uVar6) {\n        uVar6 = 0;\n      }\n      uVar5 = (ulong)uVar6;\n    } while (param_1[uVar5 + 4] != 0);\n  }" if (parenthesized_expression "(param_1[(ulong)(uVar6 % 0x7c) + 4] == 0)" ( (binary_expression "param_1[(ulong)(uVar6 % 0x7c) + 4] == 0" (subscript_expression "param_1[(ulong)(uVar6 % 0x7c) + 4]" identifier [ (binary_expression "(ulong)(uVar6 % 0x7c) + 4" (call_expression "(ulong)(uVar6 % 0x7c)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(uVar6 % 0x7c)" ( (binary_expression "uVar6 % 0x7c" identifier % number_literal) ))) + number_literal) ]) == number_literal) )) (compound_statement "{\n    if (param_1[1] < 0x7b) goto LAB_001233b6;\n  }" { (if_statement "if (param_1[1] < 0x7b) goto LAB_001233b6;" if (parenthesized_expression "(param_1[1] < 0x7b)" ( (binary_expression "param_1[1] < 0x7b" (subscript_expression "param_1[1]" identifier [ number_literal ]) < number_literal) )) (goto_statement "goto LAB_001233b6;" goto statement_identifier ;)) }) (else_clause "else {\n    do {\n      if (param_1[uVar5 + 4] == uVar2) {\n        return 0;\n      }\n      uVar6 = (int)uVar5 + 1;\n      if (0x7b < uVar6) {\n        uVar6 = 0;\n      }\n      uVar5 = (ulong)uVar6;\n    } while (param_1[uVar5 + 4] != 0);\n  }" else (compound_statement "{\n    do {\n      if (param_1[uVar5 + 4] == uVar2) {\n        return 0;\n      }\n      uVar6 = (int)uVar5 + 1;\n      if (0x7b < uVar6) {\n        uVar6 = 0;\n      }\n      uVar5 = (ulong)uVar6;\n    } while (param_1[uVar5 + 4] != 0);\n  }" { (do_statement "do {\n      if (param_1[uVar5 + 4] == uVar2) {\n        return 0;\n      }\n      uVar6 = (int)uVar5 + 1;\n      if (0x7b < uVar6) {\n        uVar6 = 0;\n      }\n      uVar5 = (ulong)uVar6;\n    } while (param_1[uVar5 + 4] != 0);" do (compound_statement "{\n      if (param_1[uVar5 + 4] == uVar2) {\n        return 0;\n      }\n      uVar6 = (int)uVar5 + 1;\n      if (0x7b < uVar6) {\n        uVar6 = 0;\n      }\n      uVar5 = (ulong)uVar6;\n    }" { (if_statement "if (param_1[uVar5 + 4] == uVar2) {\n        return 0;\n      }" if (parenthesized_expression "(param_1[uVar5 + 4] == uVar2)" ( (binary_expression "param_1[uVar5 + 4] == uVar2" (subscript_expression "param_1[uVar5 + 4]" identifier [ (binary_expression "uVar5 + 4" identifier + number_literal) ]) == identifier) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar6 = (int)uVar5 + 1;" (assignment_expression "uVar6 = (int)uVar5 + 1" identifier = (binary_expression "(int)uVar5 + 1" (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal)) ;) (if_statement "if (0x7b < uVar6) {\n        uVar6 = 0;\n      }" if (parenthesized_expression "(0x7b < uVar6)" ( (binary_expression "0x7b < uVar6" number_literal < identifier) )) (compound_statement "{\n        uVar6 = 0;\n      }" { (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) })) (expression_statement "uVar5 = (ulong)uVar6;" (assignment_expression "uVar5 = (ulong)uVar6" identifier = (cast_expression "(ulong)uVar6" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) }) while (parenthesized_expression "(param_1[uVar5 + 4] != 0)" ( (binary_expression "param_1[uVar5 + 4] != 0" (subscript_expression "param_1[uVar5 + 4]" identifier [ (binary_expression "uVar5 + 4" identifier + number_literal) ]) != number_literal) )) ;) }))) (if_statement "if (0x3d < param_1[1]) {\n    piVar3 = (int *)FUN_001224ab(0,0x1f0);\n    if (piVar3 == (int *)0x0) {\n      return 7;\n    }\n    *(undefined8 *)piVar3 = *(undefined8 *)(param_1 + 4);\n    *(undefined8 *)(piVar3 + 0x7a) = *(undefined8 *)(param_1 + 0x7e);\n    lVar4 = (long)piVar3 - (long)((ulong)(piVar3 + 2) & 0xfffffffffffffff8);\n    puVar8 = (undefined8 *)((long)(param_1 + 4) - lVar4);\n    puVar9 = (undefined8 *)((ulong)(piVar3 + 2) & 0xfffffffffffffff8);\n    for (uVar5 = (ulong)((int)lVar4 + 0x1f0U >> 3); uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar9 = *puVar8;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n      puVar9 = puVar9 + (ulong)bVar10 * -2 + 1;\n    }\n    param_1[4] = 0;\n    param_1[5] = 0;\n    param_1[0x7e] = 0;\n    param_1[0x7f] = 0;\n    puVar8 = (undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8);\n    for (uVar5 = (ulong)(((int)(param_1 + 4) -\n                         (int)(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)) + 0x1f0U >>\n                        3); uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar8 = 0;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n    }\n    param_1[2] = (uint)(((ulong)*param_1 + 0x3d) / 0x3e);\n    uVar6 = FUN_00123346(param_1,uVar2);\n    piVar7 = piVar3;\n    do {\n      if (*piVar7 != 0) {\n        uVar2 = FUN_00123346(param_1);\n        uVar6 = uVar6 | uVar2;\n      }\n      piVar7 = piVar7 + 1;\n    } while (piVar7 != piVar3 + 0x7c);\n    FUN_00119825(0,piVar3);\n    return uVar6;\n  }" if (parenthesized_expression "(0x3d < param_1[1])" ( (binary_expression "0x3d < param_1[1]" number_literal < (subscript_expression "param_1[1]" identifier [ number_literal ])) )) (compound_statement "{\n    piVar3 = (int *)FUN_001224ab(0,0x1f0);\n    if (piVar3 == (int *)0x0) {\n      return 7;\n    }\n    *(undefined8 *)piVar3 = *(undefined8 *)(param_1 + 4);\n    *(undefined8 *)(piVar3 + 0x7a) = *(undefined8 *)(param_1 + 0x7e);\n    lVar4 = (long)piVar3 - (long)((ulong)(piVar3 + 2) & 0xfffffffffffffff8);\n    puVar8 = (undefined8 *)((long)(param_1 + 4) - lVar4);\n    puVar9 = (undefined8 *)((ulong)(piVar3 + 2) & 0xfffffffffffffff8);\n    for (uVar5 = (ulong)((int)lVar4 + 0x1f0U >> 3); uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar9 = *puVar8;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n      puVar9 = puVar9 + (ulong)bVar10 * -2 + 1;\n    }\n    param_1[4] = 0;\n    param_1[5] = 0;\n    param_1[0x7e] = 0;\n    param_1[0x7f] = 0;\n    puVar8 = (undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8);\n    for (uVar5 = (ulong)(((int)(param_1 + 4) -\n                         (int)(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)) + 0x1f0U >>\n                        3); uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar8 = 0;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n    }\n    param_1[2] = (uint)(((ulong)*param_1 + 0x3d) / 0x3e);\n    uVar6 = FUN_00123346(param_1,uVar2);\n    piVar7 = piVar3;\n    do {\n      if (*piVar7 != 0) {\n        uVar2 = FUN_00123346(param_1);\n        uVar6 = uVar6 | uVar2;\n      }\n      piVar7 = piVar7 + 1;\n    } while (piVar7 != piVar3 + 0x7c);\n    FUN_00119825(0,piVar3);\n    return uVar6;\n  }" { (expression_statement "piVar3 = (int *)FUN_001224ab(0,0x1f0);" (assignment_expression "piVar3 = (int *)FUN_001224ab(0,0x1f0)" identifier = (cast_expression "(int *)FUN_001224ab(0,0x1f0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001224ab(0,0x1f0)" identifier (argument_list "(0,0x1f0)" ( number_literal , number_literal ))))) ;) (if_statement "if (piVar3 == (int *)0x0) {\n      return 7;\n    }" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 7;\n    }" { (return_statement "return 7;" return number_literal ;) })) (expression_statement "*(undefined8 *)piVar3 = *(undefined8 *)(param_1 + 4);" (assignment_expression "*(undefined8 *)piVar3 = *(undefined8 *)(param_1 + 4)" (pointer_expression "*(undefined8 *)piVar3" * (cast_expression "(undefined8 *)piVar3" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (pointer_expression "*(undefined8 *)(param_1 + 4)" * (cast_expression "(undefined8 *)(param_1 + 4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)(piVar3 + 0x7a) = *(undefined8 *)(param_1 + 0x7e);" (assignment_expression "*(undefined8 *)(piVar3 + 0x7a) = *(undefined8 *)(param_1 + 0x7e)" (pointer_expression "*(undefined8 *)(piVar3 + 0x7a)" * (cast_expression "(undefined8 *)(piVar3 + 0x7a)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar3 + 0x7a)" ( (binary_expression "piVar3 + 0x7a" identifier + number_literal) )))) = (pointer_expression "*(undefined8 *)(param_1 + 0x7e)" * (cast_expression "(undefined8 *)(param_1 + 0x7e)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x7e)" ( (binary_expression "param_1 + 0x7e" identifier + number_literal) ))))) ;) (expression_statement "lVar4 = (long)piVar3 - (long)((ulong)(piVar3 + 2) & 0xfffffffffffffff8);" (assignment_expression "lVar4 = (long)piVar3 - (long)((ulong)(piVar3 + 2) & 0xfffffffffffffff8)" identifier = (binary_expression "(long)piVar3 - (long)((ulong)(piVar3 + 2) & 0xfffffffffffffff8)" (cast_expression "(long)piVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)((ulong)(piVar3 + 2) & 0xfffffffffffffff8)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "((ulong)(piVar3 + 2) & 0xfffffffffffffff8)" ( (binary_expression "(ulong)(piVar3 + 2) & 0xfffffffffffffff8" (call_expression "(ulong)(piVar3 + 2)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(piVar3 + 2)" ( (binary_expression "piVar3 + 2" identifier + number_literal) ))) & number_literal) ))))) ;) (expression_statement "puVar8 = (undefined8 *)((long)(param_1 + 4) - lVar4);" (assignment_expression "puVar8 = (undefined8 *)((long)(param_1 + 4) - lVar4)" identifier = (cast_expression "(undefined8 *)((long)(param_1 + 4) - lVar4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)(param_1 + 4) - lVar4)" ( (binary_expression "(long)(param_1 + 4) - lVar4" (cast_expression "(long)(param_1 + 4)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))) - identifier) )))) ;) (expression_statement "puVar9 = (undefined8 *)((ulong)(piVar3 + 2) & 0xfffffffffffffff8);" (assignment_expression "puVar9 = (undefined8 *)((ulong)(piVar3 + 2) & 0xfffffffffffffff8)" identifier = (cast_expression "(undefined8 *)((ulong)(piVar3 + 2) & 0xfffffffffffffff8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ulong)(piVar3 + 2) & 0xfffffffffffffff8)" ( (binary_expression "(ulong)(piVar3 + 2) & 0xfffffffffffffff8" (call_expression "(ulong)(piVar3 + 2)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(piVar3 + 2)" ( (binary_expression "piVar3 + 2" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar5 = (ulong)((int)lVar4 + 0x1f0U >> 3); uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar9 = *puVar8;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n      puVar9 = puVar9 + (ulong)bVar10 * -2 + 1;\n    }" for ( (assignment_expression "uVar5 = (ulong)((int)lVar4 + 0x1f0U >> 3)" identifier = (call_expression "(ulong)((int)lVar4 + 0x1f0U >> 3)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "((int)lVar4 + 0x1f0U >> 3)" ( (binary_expression "(int)lVar4 + 0x1f0U >> 3" (binary_expression "(int)lVar4 + 0x1f0U" (cast_expression "(int)lVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) >> number_literal) )))) ; (binary_expression "uVar5 != 0" identifier != number_literal) ; (assignment_expression "uVar5 = uVar5 - 1" identifier = (binary_expression "uVar5 - 1" identifier - number_literal)) ) (compound_statement "{\n      *puVar9 = *puVar8;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n      puVar9 = puVar9 + (ulong)bVar10 * -2 + 1;\n    }" { (expression_statement "*puVar9 = *puVar8;" (assignment_expression "*puVar9 = *puVar8" (pointer_expression "*puVar9" * identifier) = (pointer_expression "*puVar8" * identifier)) ;) (expression_statement "puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;" (assignment_expression "puVar8 = puVar8 + (ulong)bVar10 * -2 + 1" identifier = (binary_expression "puVar8 + (ulong)bVar10 * -2 + 1" (binary_expression "puVar8 + (ulong)bVar10 * -2" identifier + (binary_expression "(ulong)bVar10 * -2" (cast_expression "(ulong)bVar10" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar9 = puVar9 + (ulong)bVar10 * -2 + 1;" (assignment_expression "puVar9 = puVar9 + (ulong)bVar10 * -2 + 1" identifier = (binary_expression "puVar9 + (ulong)bVar10 * -2 + 1" (binary_expression "puVar9 + (ulong)bVar10 * -2" identifier + (binary_expression "(ulong)bVar10 * -2" (cast_expression "(ulong)bVar10" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x7e] = 0;" (assignment_expression "param_1[0x7e] = 0" (subscript_expression "param_1[0x7e]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x7f] = 0;" (assignment_expression "param_1[0x7f] = 0" (subscript_expression "param_1[0x7f]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar8 = (undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8);" (assignment_expression "puVar8 = (undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)" identifier = (cast_expression "(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ulong)(param_1 + 6) & 0xfffffffffffffff8)" ( (binary_expression "(ulong)(param_1 + 6) & 0xfffffffffffffff8" (call_expression "(ulong)(param_1 + 6)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_1 + 6)" ( (binary_expression "param_1 + 6" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar5 = (ulong)(((int)(param_1 + 4) -\n                         (int)(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)) + 0x1f0U >>\n                        3); uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar8 = 0;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n    }" for ( (assignment_expression "uVar5 = (ulong)(((int)(param_1 + 4) -\n                         (int)(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)) + 0x1f0U >>\n                        3)" identifier = (call_expression "(ulong)(((int)(param_1 + 4) -\n                         (int)(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)) + 0x1f0U >>\n                        3)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(((int)(param_1 + 4) -\n                         (int)(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)) + 0x1f0U >>\n                        3)" ( (binary_expression "((int)(param_1 + 4) -\n                         (int)(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)) + 0x1f0U >>\n                        3" (binary_expression "((int)(param_1 + 4) -\n                         (int)(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)) + 0x1f0U" (parenthesized_expression "((int)(param_1 + 4) -\n                         (int)(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8))" ( (binary_expression "(int)(param_1 + 4) -\n                         (int)(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)" (cast_expression "(int)(param_1 + 4)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))) - (cast_expression "(int)(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)" ( (type_descriptor "int" primitive_type) ) (cast_expression "(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ulong)(param_1 + 6) & 0xfffffffffffffff8)" ( (binary_expression "(ulong)(param_1 + 6) & 0xfffffffffffffff8" (call_expression "(ulong)(param_1 + 6)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_1 + 6)" ( (binary_expression "param_1 + 6" identifier + number_literal) ))) & number_literal) ))))) )) + number_literal) >> number_literal) )))) ; (binary_expression "uVar5 != 0" identifier != number_literal) ; (assignment_expression "uVar5 = uVar5 - 1" identifier = (binary_expression "uVar5 - 1" identifier - number_literal)) ) (compound_statement "{\n      *puVar8 = 0;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n    }" { (expression_statement "*puVar8 = 0;" (assignment_expression "*puVar8 = 0" (pointer_expression "*puVar8" * identifier) = number_literal) ;) (expression_statement "puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;" (assignment_expression "puVar8 = puVar8 + (ulong)bVar10 * -2 + 1" identifier = (binary_expression "puVar8 + (ulong)bVar10 * -2 + 1" (binary_expression "puVar8 + (ulong)bVar10 * -2" identifier + (binary_expression "(ulong)bVar10 * -2" (cast_expression "(ulong)bVar10" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "param_1[2] = (uint)(((ulong)*param_1 + 0x3d) / 0x3e);" (assignment_expression "param_1[2] = (uint)(((ulong)*param_1 + 0x3d) / 0x3e)" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (call_expression "(uint)(((ulong)*param_1 + 0x3d) / 0x3e)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(((ulong)*param_1 + 0x3d) / 0x3e)" ( (binary_expression "((ulong)*param_1 + 0x3d) / 0x3e" (parenthesized_expression "((ulong)*param_1 + 0x3d)" ( (binary_expression "(ulong)*param_1 + 0x3d" (binary_expression "(ulong)*param_1" (parenthesized_expression "(ulong)" ( identifier )) * identifier) + number_literal) )) / number_literal) )))) ;) (expression_statement "uVar6 = FUN_00123346(param_1,uVar2);" (assignment_expression "uVar6 = FUN_00123346(param_1,uVar2)" identifier = (call_expression "FUN_00123346(param_1,uVar2)" identifier (argument_list "(param_1,uVar2)" ( identifier , identifier )))) ;) (expression_statement "piVar7 = piVar3;" (assignment_expression "piVar7 = piVar3" identifier = identifier) ;) (do_statement "do {\n      if (*piVar7 != 0) {\n        uVar2 = FUN_00123346(param_1);\n        uVar6 = uVar6 | uVar2;\n      }\n      piVar7 = piVar7 + 1;\n    } while (piVar7 != piVar3 + 0x7c);" do (compound_statement "{\n      if (*piVar7 != 0) {\n        uVar2 = FUN_00123346(param_1);\n        uVar6 = uVar6 | uVar2;\n      }\n      piVar7 = piVar7 + 1;\n    }" { (if_statement "if (*piVar7 != 0) {\n        uVar2 = FUN_00123346(param_1);\n        uVar6 = uVar6 | uVar2;\n      }" if (parenthesized_expression "(*piVar7 != 0)" ( (binary_expression "*piVar7 != 0" (pointer_expression "*piVar7" * identifier) != number_literal) )) (compound_statement "{\n        uVar2 = FUN_00123346(param_1);\n        uVar6 = uVar6 | uVar2;\n      }" { (expression_statement "uVar2 = FUN_00123346(param_1);" (assignment_expression "uVar2 = FUN_00123346(param_1)" identifier = (call_expression "FUN_00123346(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "uVar6 = uVar6 | uVar2;" (assignment_expression "uVar6 = uVar6 | uVar2" identifier = (binary_expression "uVar6 | uVar2" identifier | identifier)) ;) })) (expression_statement "piVar7 = piVar7 + 1;" (assignment_expression "piVar7 = piVar7 + 1" identifier = (binary_expression "piVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar7 != piVar3 + 0x7c)" ( (binary_expression "piVar7 != piVar3 + 0x7c" identifier != (binary_expression "piVar3 + 0x7c" identifier + number_literal)) )) ;) (expression_statement "FUN_00119825(0,piVar3);" (call_expression "FUN_00119825(0,piVar3)" identifier (argument_list "(0,piVar3)" ( number_literal , identifier ))) ;) (return_statement "return uVar6;" return identifier ;) })) (labeled_statement "LAB_001233b6:\n  param_1[1] = param_1[1] + 1;" statement_identifier : (expression_statement "param_1[1] = param_1[1] + 1;" (assignment_expression "param_1[1] = param_1[1] + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "param_1[1] + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) + number_literal)) ;)) (expression_statement "param_1[uVar5 + 4] = uVar2;" (assignment_expression "param_1[uVar5 + 4] = uVar2" (subscript_expression "param_1[uVar5 + 4]" identifier [ (binary_expression "uVar5 + 4" identifier + number_literal) ]) = identifier) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int sqlite3BitvecSet(Bitvec *p,u32 i)\n\n{\n  u32 uVar1;\n  uint uVar2;\n  Bitvec *pBVar3;\n  u32 *p_00;\n  long lVar4;\n  ulong uVar5;\n  uint uVar6;\n  u32 *puVar7;\n  undefined8 *puVar8;\n  undefined8 *puVar9;\n  byte bVar10;\n  \n  bVar10 = 0;\n  if (p == (Bitvec *)0x0) {\n    return 0;\n  }\n  uVar6 = i - 1;\n  if (p->iSize < 0xf81) {\nLAB_00123533:\n    (p->u).aBitmap[uVar6 >> 3] = (p->u).aBitmap[uVar6 >> 3] | (byte)(1 << ((byte)uVar6 & 7));\n    return 0;\n  }\n  uVar1 = p->iDivisor;\n  while (uVar1 != 0) {\n    uVar2 = uVar6 / uVar1;\n    uVar6 = uVar6 % uVar1;\n    if (*(long *)((long)&p->u + (ulong)uVar2 * 8) == 0) {\n      pBVar3 = sqlite3BitvecCreate(uVar1);\n      *(Bitvec **)((long)&p->u + (ulong)uVar2 * 8) = pBVar3;\n      if (pBVar3 == (Bitvec *)0x0) {\n        return 7;\n      }\n    }\n    p = *(Bitvec **)((long)&p->u + (ulong)uVar2 * 8);\n    if (p->iSize < 0xf81) goto LAB_00123533;\n    uVar1 = p->iDivisor;\n  }\n  uVar1 = uVar6 + 1;\n  uVar6 = uVar6 % 0x7c;\n  if (*(int *)((long)&p->u + (ulong)uVar6 * 4) == 0) {\n    if (p->nSet < 0x7b) goto LAB_001233b6;\n  }\n  else {\n    do {\n      if (*(u32 *)((long)&p->u + (ulong)uVar6 * 4) == uVar1) {\n        return 0;\n      }\n      uVar6 = uVar6 + 1;\n      if (0x7b < uVar6) {\n        uVar6 = 0;\n      }\n    } while (*(int *)((long)&p->u + (ulong)uVar6 * 4) != 0);\n  }\n  if (0x3d < p->nSet) {\n    p_00 = (u32 *)sqlite3DbMallocRaw((sqlite3 *)0x0,0x1f0);\n    if (p_00 == (u32 *)0x0) {\n      return 7;\n    }\n    *(Bitvec **)p_00 = (p->u).apSub[0];\n    *(Bitvec **)(p_00 + 0x7a) = (p->u).apSub[0x3d];\n    lVar4 = (long)p_00 - (long)((ulong)(p_00 + 2) & 0xfffffffffffffff8);\n    puVar9 = (undefined8 *)((long)&p->u - lVar4);\n    puVar8 = (undefined8 *)((ulong)(p_00 + 2) & 0xfffffffffffffff8);\n    for (uVar5 = (ulong)((int)lVar4 + 0x1f0U >> 3); uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar8 = *puVar9;\n      puVar9 = puVar9 + (ulong)bVar10 * -2 + 1;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n    }\n    (p->u).apSub[0] = (Bitvec *)0x0;\n    (p->u).apSub[0x3d] = (Bitvec *)0x0;\n    puVar9 = (undefined8 *)((ulong)((long)&p->u + 8U) & 0xfffffffffffffff8);\n    uVar5 = (ulong)(((int)&p->u - (int)puVar9) + 0x1f0U >> 3);\n    for (; uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar9 = 0;\n      puVar9 = puVar9 + (ulong)bVar10 * -2 + 1;\n    }\n    p->iDivisor = (u32)(((ulong)p->iSize + 0x3d) / 0x3e);\n    uVar6 = sqlite3BitvecSet(p,uVar1);\n    puVar7 = p_00;\n    do {\n      if (*puVar7 != 0) {\n        uVar2 = sqlite3BitvecSet(p,*puVar7);\n        uVar6 = uVar6 | uVar2;\n      }\n      puVar7 = puVar7 + 1;\n    } while (puVar7 != p_00 + 0x7c);\n    sqlite3DbFree((sqlite3 *)0x0,p_00);\n    return uVar6;\n  }\nLAB_001233b6:\n  p->nSet = p->nSet + 1;\n  *(u32 *)((long)&p->u + (ulong)uVar6 * 4) = uVar1;\n  return 0;\n}\n\n" (function_definition "int sqlite3BitvecSet(Bitvec *p,u32 i)\n\n{\n  u32 uVar1;\n  uint uVar2;\n  Bitvec *pBVar3;\n  u32 *p_00;\n  long lVar4;\n  ulong uVar5;\n  uint uVar6;\n  u32 *puVar7;\n  undefined8 *puVar8;\n  undefined8 *puVar9;\n  byte bVar10;\n  \n  bVar10 = 0;\n  if (p == (Bitvec *)0x0) {\n    return 0;\n  }\n  uVar6 = i - 1;\n  if (p->iSize < 0xf81) {\nLAB_00123533:\n    (p->u).aBitmap[uVar6 >> 3] = (p->u).aBitmap[uVar6 >> 3] | (byte)(1 << ((byte)uVar6 & 7));\n    return 0;\n  }\n  uVar1 = p->iDivisor;\n  while (uVar1 != 0) {\n    uVar2 = uVar6 / uVar1;\n    uVar6 = uVar6 % uVar1;\n    if (*(long *)((long)&p->u + (ulong)uVar2 * 8) == 0) {\n      pBVar3 = sqlite3BitvecCreate(uVar1);\n      *(Bitvec **)((long)&p->u + (ulong)uVar2 * 8) = pBVar3;\n      if (pBVar3 == (Bitvec *)0x0) {\n        return 7;\n      }\n    }\n    p = *(Bitvec **)((long)&p->u + (ulong)uVar2 * 8);\n    if (p->iSize < 0xf81) goto LAB_00123533;\n    uVar1 = p->iDivisor;\n  }\n  uVar1 = uVar6 + 1;\n  uVar6 = uVar6 % 0x7c;\n  if (*(int *)((long)&p->u + (ulong)uVar6 * 4) == 0) {\n    if (p->nSet < 0x7b) goto LAB_001233b6;\n  }\n  else {\n    do {\n      if (*(u32 *)((long)&p->u + (ulong)uVar6 * 4) == uVar1) {\n        return 0;\n      }\n      uVar6 = uVar6 + 1;\n      if (0x7b < uVar6) {\n        uVar6 = 0;\n      }\n    } while (*(int *)((long)&p->u + (ulong)uVar6 * 4) != 0);\n  }\n  if (0x3d < p->nSet) {\n    p_00 = (u32 *)sqlite3DbMallocRaw((sqlite3 *)0x0,0x1f0);\n    if (p_00 == (u32 *)0x0) {\n      return 7;\n    }\n    *(Bitvec **)p_00 = (p->u).apSub[0];\n    *(Bitvec **)(p_00 + 0x7a) = (p->u).apSub[0x3d];\n    lVar4 = (long)p_00 - (long)((ulong)(p_00 + 2) & 0xfffffffffffffff8);\n    puVar9 = (undefined8 *)((long)&p->u - lVar4);\n    puVar8 = (undefined8 *)((ulong)(p_00 + 2) & 0xfffffffffffffff8);\n    for (uVar5 = (ulong)((int)lVar4 + 0x1f0U >> 3); uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar8 = *puVar9;\n      puVar9 = puVar9 + (ulong)bVar10 * -2 + 1;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n    }\n    (p->u).apSub[0] = (Bitvec *)0x0;\n    (p->u).apSub[0x3d] = (Bitvec *)0x0;\n    puVar9 = (undefined8 *)((ulong)((long)&p->u + 8U) & 0xfffffffffffffff8);\n    uVar5 = (ulong)(((int)&p->u - (int)puVar9) + 0x1f0U >> 3);\n    for (; uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar9 = 0;\n      puVar9 = puVar9 + (ulong)bVar10 * -2 + 1;\n    }\n    p->iDivisor = (u32)(((ulong)p->iSize + 0x3d) / 0x3e);\n    uVar6 = sqlite3BitvecSet(p,uVar1);\n    puVar7 = p_00;\n    do {\n      if (*puVar7 != 0) {\n        uVar2 = sqlite3BitvecSet(p,*puVar7);\n        uVar6 = uVar6 | uVar2;\n      }\n      puVar7 = puVar7 + 1;\n    } while (puVar7 != p_00 + 0x7c);\n    sqlite3DbFree((sqlite3 *)0x0,p_00);\n    return uVar6;\n  }\nLAB_001233b6:\n  p->nSet = p->nSet + 1;\n  *(u32 *)((long)&p->u + (ulong)uVar6 * 4) = uVar1;\n  return 0;\n}" primitive_type (function_declarator "sqlite3BitvecSet(Bitvec *p,u32 i)" identifier (parameter_list "(Bitvec *p,u32 i)" ( (parameter_declaration "Bitvec *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "u32 i" type_identifier identifier) ))) (compound_statement "{\n  u32 uVar1;\n  uint uVar2;\n  Bitvec *pBVar3;\n  u32 *p_00;\n  long lVar4;\n  ulong uVar5;\n  uint uVar6;\n  u32 *puVar7;\n  undefined8 *puVar8;\n  undefined8 *puVar9;\n  byte bVar10;\n  \n  bVar10 = 0;\n  if (p == (Bitvec *)0x0) {\n    return 0;\n  }\n  uVar6 = i - 1;\n  if (p->iSize < 0xf81) {\nLAB_00123533:\n    (p->u).aBitmap[uVar6 >> 3] = (p->u).aBitmap[uVar6 >> 3] | (byte)(1 << ((byte)uVar6 & 7));\n    return 0;\n  }\n  uVar1 = p->iDivisor;\n  while (uVar1 != 0) {\n    uVar2 = uVar6 / uVar1;\n    uVar6 = uVar6 % uVar1;\n    if (*(long *)((long)&p->u + (ulong)uVar2 * 8) == 0) {\n      pBVar3 = sqlite3BitvecCreate(uVar1);\n      *(Bitvec **)((long)&p->u + (ulong)uVar2 * 8) = pBVar3;\n      if (pBVar3 == (Bitvec *)0x0) {\n        return 7;\n      }\n    }\n    p = *(Bitvec **)((long)&p->u + (ulong)uVar2 * 8);\n    if (p->iSize < 0xf81) goto LAB_00123533;\n    uVar1 = p->iDivisor;\n  }\n  uVar1 = uVar6 + 1;\n  uVar6 = uVar6 % 0x7c;\n  if (*(int *)((long)&p->u + (ulong)uVar6 * 4) == 0) {\n    if (p->nSet < 0x7b) goto LAB_001233b6;\n  }\n  else {\n    do {\n      if (*(u32 *)((long)&p->u + (ulong)uVar6 * 4) == uVar1) {\n        return 0;\n      }\n      uVar6 = uVar6 + 1;\n      if (0x7b < uVar6) {\n        uVar6 = 0;\n      }\n    } while (*(int *)((long)&p->u + (ulong)uVar6 * 4) != 0);\n  }\n  if (0x3d < p->nSet) {\n    p_00 = (u32 *)sqlite3DbMallocRaw((sqlite3 *)0x0,0x1f0);\n    if (p_00 == (u32 *)0x0) {\n      return 7;\n    }\n    *(Bitvec **)p_00 = (p->u).apSub[0];\n    *(Bitvec **)(p_00 + 0x7a) = (p->u).apSub[0x3d];\n    lVar4 = (long)p_00 - (long)((ulong)(p_00 + 2) & 0xfffffffffffffff8);\n    puVar9 = (undefined8 *)((long)&p->u - lVar4);\n    puVar8 = (undefined8 *)((ulong)(p_00 + 2) & 0xfffffffffffffff8);\n    for (uVar5 = (ulong)((int)lVar4 + 0x1f0U >> 3); uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar8 = *puVar9;\n      puVar9 = puVar9 + (ulong)bVar10 * -2 + 1;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n    }\n    (p->u).apSub[0] = (Bitvec *)0x0;\n    (p->u).apSub[0x3d] = (Bitvec *)0x0;\n    puVar9 = (undefined8 *)((ulong)((long)&p->u + 8U) & 0xfffffffffffffff8);\n    uVar5 = (ulong)(((int)&p->u - (int)puVar9) + 0x1f0U >> 3);\n    for (; uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar9 = 0;\n      puVar9 = puVar9 + (ulong)bVar10 * -2 + 1;\n    }\n    p->iDivisor = (u32)(((ulong)p->iSize + 0x3d) / 0x3e);\n    uVar6 = sqlite3BitvecSet(p,uVar1);\n    puVar7 = p_00;\n    do {\n      if (*puVar7 != 0) {\n        uVar2 = sqlite3BitvecSet(p,*puVar7);\n        uVar6 = uVar6 | uVar2;\n      }\n      puVar7 = puVar7 + 1;\n    } while (puVar7 != p_00 + 0x7c);\n    sqlite3DbFree((sqlite3 *)0x0,p_00);\n    return uVar6;\n  }\nLAB_001233b6:\n  p->nSet = p->nSet + 1;\n  *(u32 *)((long)&p->u + (ulong)uVar6 * 4) = uVar1;\n  return 0;\n}" { (declaration "u32 uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "Bitvec *pBVar3;" type_identifier (pointer_declarator "*pBVar3" * identifier) ;) (declaration "u32 *p_00;" type_identifier (pointer_declarator "*p_00" * identifier) ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "u32 *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "undefined8 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined8 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "byte bVar10;" type_identifier identifier ;) (expression_statement "bVar10 = 0;" (assignment_expression "bVar10 = 0" identifier = number_literal) ;) (if_statement "if (p == (Bitvec *)0x0) {\n    return 0;\n  }" if (parenthesized_expression "(p == (Bitvec *)0x0)" ( (binary_expression "p == (Bitvec *)0x0" identifier == (cast_expression "(Bitvec *)0x0" ( (type_descriptor "Bitvec *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar6 = i - 1;" (assignment_expression "uVar6 = i - 1" identifier = (binary_expression "i - 1" identifier - number_literal)) ;) (if_statement "if (p->iSize < 0xf81) {\nLAB_00123533:\n    (p->u).aBitmap[uVar6 >> 3] = (p->u).aBitmap[uVar6 >> 3] | (byte)(1 << ((byte)uVar6 & 7));\n    return 0;\n  }" if (parenthesized_expression "(p->iSize < 0xf81)" ( (binary_expression "p->iSize < 0xf81" (field_expression "p->iSize" identifier -> field_identifier) < number_literal) )) (compound_statement "{\nLAB_00123533:\n    (p->u).aBitmap[uVar6 >> 3] = (p->u).aBitmap[uVar6 >> 3] | (byte)(1 << ((byte)uVar6 & 7));\n    return 0;\n  }" { (labeled_statement "LAB_00123533:\n    (p->u).aBitmap[uVar6 >> 3] = (p->u).aBitmap[uVar6 >> 3] | (byte)(1 << ((byte)uVar6 & 7));" statement_identifier : (expression_statement "(p->u).aBitmap[uVar6 >> 3] = (p->u).aBitmap[uVar6 >> 3] | (byte)(1 << ((byte)uVar6 & 7));" (assignment_expression "(p->u).aBitmap[uVar6 >> 3] = (p->u).aBitmap[uVar6 >> 3] | (byte)(1 << ((byte)uVar6 & 7))" (subscript_expression "(p->u).aBitmap[uVar6 >> 3]" (field_expression "(p->u).aBitmap" (parenthesized_expression "(p->u)" ( (field_expression "p->u" identifier -> field_identifier) )) . field_identifier) [ (binary_expression "uVar6 >> 3" identifier >> number_literal) ]) = (binary_expression "(p->u).aBitmap[uVar6 >> 3] | (byte)(1 << ((byte)uVar6 & 7))" (subscript_expression "(p->u).aBitmap[uVar6 >> 3]" (field_expression "(p->u).aBitmap" (parenthesized_expression "(p->u)" ( (field_expression "p->u" identifier -> field_identifier) )) . field_identifier) [ (binary_expression "uVar6 >> 3" identifier >> number_literal) ]) | (call_expression "(byte)(1 << ((byte)uVar6 & 7))" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(1 << ((byte)uVar6 & 7))" ( (binary_expression "1 << ((byte)uVar6 & 7)" number_literal << (parenthesized_expression "((byte)uVar6 & 7)" ( (binary_expression "(byte)uVar6 & 7" (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) ))) ))))) ;)) (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar1 = p->iDivisor;" (assignment_expression "uVar1 = p->iDivisor" identifier = (field_expression "p->iDivisor" identifier -> field_identifier)) ;) (while_statement "while (uVar1 != 0) {\n    uVar2 = uVar6 / uVar1;\n    uVar6 = uVar6 % uVar1;\n    if (*(long *)((long)&p->u + (ulong)uVar2 * 8) == 0) {\n      pBVar3 = sqlite3BitvecCreate(uVar1);\n      *(Bitvec **)((long)&p->u + (ulong)uVar2 * 8) = pBVar3;\n      if (pBVar3 == (Bitvec *)0x0) {\n        return 7;\n      }\n    }\n    p = *(Bitvec **)((long)&p->u + (ulong)uVar2 * 8);\n    if (p->iSize < 0xf81) goto LAB_00123533;\n    uVar1 = p->iDivisor;\n  }" while (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar2 = uVar6 / uVar1;\n    uVar6 = uVar6 % uVar1;\n    if (*(long *)((long)&p->u + (ulong)uVar2 * 8) == 0) {\n      pBVar3 = sqlite3BitvecCreate(uVar1);\n      *(Bitvec **)((long)&p->u + (ulong)uVar2 * 8) = pBVar3;\n      if (pBVar3 == (Bitvec *)0x0) {\n        return 7;\n      }\n    }\n    p = *(Bitvec **)((long)&p->u + (ulong)uVar2 * 8);\n    if (p->iSize < 0xf81) goto LAB_00123533;\n    uVar1 = p->iDivisor;\n  }" { (expression_statement "uVar2 = uVar6 / uVar1;" (assignment_expression "uVar2 = uVar6 / uVar1" identifier = (binary_expression "uVar6 / uVar1" identifier / identifier)) ;) (expression_statement "uVar6 = uVar6 % uVar1;" (assignment_expression "uVar6 = uVar6 % uVar1" identifier = (binary_expression "uVar6 % uVar1" identifier % identifier)) ;) (if_statement "if (*(long *)((long)&p->u + (ulong)uVar2 * 8) == 0) {\n      pBVar3 = sqlite3BitvecCreate(uVar1);\n      *(Bitvec **)((long)&p->u + (ulong)uVar2 * 8) = pBVar3;\n      if (pBVar3 == (Bitvec *)0x0) {\n        return 7;\n      }\n    }" if (parenthesized_expression "(*(long *)((long)&p->u + (ulong)uVar2 * 8) == 0)" ( (binary_expression "*(long *)((long)&p->u + (ulong)uVar2 * 8) == 0" (pointer_expression "*(long *)((long)&p->u + (ulong)uVar2 * 8)" * (cast_expression "(long *)((long)&p->u + (ulong)uVar2 * 8)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&p->u + (ulong)uVar2 * 8)" ( (binary_expression "(long)&p->u + (ulong)uVar2 * 8" (cast_expression "(long)&p->u" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&p->u" & (field_expression "p->u" identifier -> field_identifier))) + (binary_expression "(ulong)uVar2 * 8" (cast_expression "(ulong)uVar2" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) )))) == number_literal) )) (compound_statement "{\n      pBVar3 = sqlite3BitvecCreate(uVar1);\n      *(Bitvec **)((long)&p->u + (ulong)uVar2 * 8) = pBVar3;\n      if (pBVar3 == (Bitvec *)0x0) {\n        return 7;\n      }\n    }" { (expression_statement "pBVar3 = sqlite3BitvecCreate(uVar1);" (assignment_expression "pBVar3 = sqlite3BitvecCreate(uVar1)" identifier = (call_expression "sqlite3BitvecCreate(uVar1)" identifier (argument_list "(uVar1)" ( identifier )))) ;) (expression_statement "*(Bitvec **)((long)&p->u + (ulong)uVar2 * 8) = pBVar3;" (assignment_expression "*(Bitvec **)((long)&p->u + (ulong)uVar2 * 8) = pBVar3" (pointer_expression "*(Bitvec **)((long)&p->u + (ulong)uVar2 * 8)" * (cast_expression "(Bitvec **)((long)&p->u + (ulong)uVar2 * 8)" ( (type_descriptor "Bitvec **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)&p->u + (ulong)uVar2 * 8)" ( (binary_expression "(long)&p->u + (ulong)uVar2 * 8" (cast_expression "(long)&p->u" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&p->u" & (field_expression "p->u" identifier -> field_identifier))) + (binary_expression "(ulong)uVar2 * 8" (cast_expression "(ulong)uVar2" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) )))) = identifier) ;) (if_statement "if (pBVar3 == (Bitvec *)0x0) {\n        return 7;\n      }" if (parenthesized_expression "(pBVar3 == (Bitvec *)0x0)" ( (binary_expression "pBVar3 == (Bitvec *)0x0" identifier == (cast_expression "(Bitvec *)0x0" ( (type_descriptor "Bitvec *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        return 7;\n      }" { (return_statement "return 7;" return number_literal ;) })) })) (expression_statement "p = *(Bitvec **)((long)&p->u + (ulong)uVar2 * 8);" (assignment_expression "p = *(Bitvec **)((long)&p->u + (ulong)uVar2 * 8)" identifier = (pointer_expression "*(Bitvec **)((long)&p->u + (ulong)uVar2 * 8)" * (cast_expression "(Bitvec **)((long)&p->u + (ulong)uVar2 * 8)" ( (type_descriptor "Bitvec **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "((long)&p->u + (ulong)uVar2 * 8)" ( (binary_expression "(long)&p->u + (ulong)uVar2 * 8" (cast_expression "(long)&p->u" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&p->u" & (field_expression "p->u" identifier -> field_identifier))) + (binary_expression "(ulong)uVar2 * 8" (cast_expression "(ulong)uVar2" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) ))))) ;) (if_statement "if (p->iSize < 0xf81) goto LAB_00123533;" if (parenthesized_expression "(p->iSize < 0xf81)" ( (binary_expression "p->iSize < 0xf81" (field_expression "p->iSize" identifier -> field_identifier) < number_literal) )) (goto_statement "goto LAB_00123533;" goto statement_identifier ;)) (expression_statement "uVar1 = p->iDivisor;" (assignment_expression "uVar1 = p->iDivisor" identifier = (field_expression "p->iDivisor" identifier -> field_identifier)) ;) })) (expression_statement "uVar1 = uVar6 + 1;" (assignment_expression "uVar1 = uVar6 + 1" identifier = (binary_expression "uVar6 + 1" identifier + number_literal)) ;) (expression_statement "uVar6 = uVar6 % 0x7c;" (assignment_expression "uVar6 = uVar6 % 0x7c" identifier = (binary_expression "uVar6 % 0x7c" identifier % number_literal)) ;) (if_statement "if (*(int *)((long)&p->u + (ulong)uVar6 * 4) == 0) {\n    if (p->nSet < 0x7b) goto LAB_001233b6;\n  }\n  else {\n    do {\n      if (*(u32 *)((long)&p->u + (ulong)uVar6 * 4) == uVar1) {\n        return 0;\n      }\n      uVar6 = uVar6 + 1;\n      if (0x7b < uVar6) {\n        uVar6 = 0;\n      }\n    } while (*(int *)((long)&p->u + (ulong)uVar6 * 4) != 0);\n  }" if (parenthesized_expression "(*(int *)((long)&p->u + (ulong)uVar6 * 4) == 0)" ( (binary_expression "*(int *)((long)&p->u + (ulong)uVar6 * 4) == 0" (pointer_expression "*(int *)((long)&p->u + (ulong)uVar6 * 4)" * (cast_expression "(int *)((long)&p->u + (ulong)uVar6 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&p->u + (ulong)uVar6 * 4)" ( (binary_expression "(long)&p->u + (ulong)uVar6 * 4" (cast_expression "(long)&p->u" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&p->u" & (field_expression "p->u" identifier -> field_identifier))) + (binary_expression "(ulong)uVar6 * 4" (cast_expression "(ulong)uVar6" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) )))) == number_literal) )) (compound_statement "{\n    if (p->nSet < 0x7b) goto LAB_001233b6;\n  }" { (if_statement "if (p->nSet < 0x7b) goto LAB_001233b6;" if (parenthesized_expression "(p->nSet < 0x7b)" ( (binary_expression "p->nSet < 0x7b" (field_expression "p->nSet" identifier -> field_identifier) < number_literal) )) (goto_statement "goto LAB_001233b6;" goto statement_identifier ;)) }) (else_clause "else {\n    do {\n      if (*(u32 *)((long)&p->u + (ulong)uVar6 * 4) == uVar1) {\n        return 0;\n      }\n      uVar6 = uVar6 + 1;\n      if (0x7b < uVar6) {\n        uVar6 = 0;\n      }\n    } while (*(int *)((long)&p->u + (ulong)uVar6 * 4) != 0);\n  }" else (compound_statement "{\n    do {\n      if (*(u32 *)((long)&p->u + (ulong)uVar6 * 4) == uVar1) {\n        return 0;\n      }\n      uVar6 = uVar6 + 1;\n      if (0x7b < uVar6) {\n        uVar6 = 0;\n      }\n    } while (*(int *)((long)&p->u + (ulong)uVar6 * 4) != 0);\n  }" { (do_statement "do {\n      if (*(u32 *)((long)&p->u + (ulong)uVar6 * 4) == uVar1) {\n        return 0;\n      }\n      uVar6 = uVar6 + 1;\n      if (0x7b < uVar6) {\n        uVar6 = 0;\n      }\n    } while (*(int *)((long)&p->u + (ulong)uVar6 * 4) != 0);" do (compound_statement "{\n      if (*(u32 *)((long)&p->u + (ulong)uVar6 * 4) == uVar1) {\n        return 0;\n      }\n      uVar6 = uVar6 + 1;\n      if (0x7b < uVar6) {\n        uVar6 = 0;\n      }\n    }" { (if_statement "if (*(u32 *)((long)&p->u + (ulong)uVar6 * 4) == uVar1) {\n        return 0;\n      }" if (parenthesized_expression "(*(u32 *)((long)&p->u + (ulong)uVar6 * 4) == uVar1)" ( (binary_expression "*(u32 *)((long)&p->u + (ulong)uVar6 * 4) == uVar1" (pointer_expression "*(u32 *)((long)&p->u + (ulong)uVar6 * 4)" * (cast_expression "(u32 *)((long)&p->u + (ulong)uVar6 * 4)" ( (type_descriptor "u32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&p->u + (ulong)uVar6 * 4)" ( (binary_expression "(long)&p->u + (ulong)uVar6 * 4" (cast_expression "(long)&p->u" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&p->u" & (field_expression "p->u" identifier -> field_identifier))) + (binary_expression "(ulong)uVar6 * 4" (cast_expression "(ulong)uVar6" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) )))) == identifier) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar6 = uVar6 + 1;" (assignment_expression "uVar6 = uVar6 + 1" identifier = (binary_expression "uVar6 + 1" identifier + number_literal)) ;) (if_statement "if (0x7b < uVar6) {\n        uVar6 = 0;\n      }" if (parenthesized_expression "(0x7b < uVar6)" ( (binary_expression "0x7b < uVar6" number_literal < identifier) )) (compound_statement "{\n        uVar6 = 0;\n      }" { (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) })) }) while (parenthesized_expression "(*(int *)((long)&p->u + (ulong)uVar6 * 4) != 0)" ( (binary_expression "*(int *)((long)&p->u + (ulong)uVar6 * 4) != 0" (pointer_expression "*(int *)((long)&p->u + (ulong)uVar6 * 4)" * (cast_expression "(int *)((long)&p->u + (ulong)uVar6 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&p->u + (ulong)uVar6 * 4)" ( (binary_expression "(long)&p->u + (ulong)uVar6 * 4" (cast_expression "(long)&p->u" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&p->u" & (field_expression "p->u" identifier -> field_identifier))) + (binary_expression "(ulong)uVar6 * 4" (cast_expression "(ulong)uVar6" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) )))) != number_literal) )) ;) }))) (if_statement "if (0x3d < p->nSet) {\n    p_00 = (u32 *)sqlite3DbMallocRaw((sqlite3 *)0x0,0x1f0);\n    if (p_00 == (u32 *)0x0) {\n      return 7;\n    }\n    *(Bitvec **)p_00 = (p->u).apSub[0];\n    *(Bitvec **)(p_00 + 0x7a) = (p->u).apSub[0x3d];\n    lVar4 = (long)p_00 - (long)((ulong)(p_00 + 2) & 0xfffffffffffffff8);\n    puVar9 = (undefined8 *)((long)&p->u - lVar4);\n    puVar8 = (undefined8 *)((ulong)(p_00 + 2) & 0xfffffffffffffff8);\n    for (uVar5 = (ulong)((int)lVar4 + 0x1f0U >> 3); uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar8 = *puVar9;\n      puVar9 = puVar9 + (ulong)bVar10 * -2 + 1;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n    }\n    (p->u).apSub[0] = (Bitvec *)0x0;\n    (p->u).apSub[0x3d] = (Bitvec *)0x0;\n    puVar9 = (undefined8 *)((ulong)((long)&p->u + 8U) & 0xfffffffffffffff8);\n    uVar5 = (ulong)(((int)&p->u - (int)puVar9) + 0x1f0U >> 3);\n    for (; uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar9 = 0;\n      puVar9 = puVar9 + (ulong)bVar10 * -2 + 1;\n    }\n    p->iDivisor = (u32)(((ulong)p->iSize + 0x3d) / 0x3e);\n    uVar6 = sqlite3BitvecSet(p,uVar1);\n    puVar7 = p_00;\n    do {\n      if (*puVar7 != 0) {\n        uVar2 = sqlite3BitvecSet(p,*puVar7);\n        uVar6 = uVar6 | uVar2;\n      }\n      puVar7 = puVar7 + 1;\n    } while (puVar7 != p_00 + 0x7c);\n    sqlite3DbFree((sqlite3 *)0x0,p_00);\n    return uVar6;\n  }" if (parenthesized_expression "(0x3d < p->nSet)" ( (binary_expression "0x3d < p->nSet" number_literal < (field_expression "p->nSet" identifier -> field_identifier)) )) (compound_statement "{\n    p_00 = (u32 *)sqlite3DbMallocRaw((sqlite3 *)0x0,0x1f0);\n    if (p_00 == (u32 *)0x0) {\n      return 7;\n    }\n    *(Bitvec **)p_00 = (p->u).apSub[0];\n    *(Bitvec **)(p_00 + 0x7a) = (p->u).apSub[0x3d];\n    lVar4 = (long)p_00 - (long)((ulong)(p_00 + 2) & 0xfffffffffffffff8);\n    puVar9 = (undefined8 *)((long)&p->u - lVar4);\n    puVar8 = (undefined8 *)((ulong)(p_00 + 2) & 0xfffffffffffffff8);\n    for (uVar5 = (ulong)((int)lVar4 + 0x1f0U >> 3); uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar8 = *puVar9;\n      puVar9 = puVar9 + (ulong)bVar10 * -2 + 1;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n    }\n    (p->u).apSub[0] = (Bitvec *)0x0;\n    (p->u).apSub[0x3d] = (Bitvec *)0x0;\n    puVar9 = (undefined8 *)((ulong)((long)&p->u + 8U) & 0xfffffffffffffff8);\n    uVar5 = (ulong)(((int)&p->u - (int)puVar9) + 0x1f0U >> 3);\n    for (; uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar9 = 0;\n      puVar9 = puVar9 + (ulong)bVar10 * -2 + 1;\n    }\n    p->iDivisor = (u32)(((ulong)p->iSize + 0x3d) / 0x3e);\n    uVar6 = sqlite3BitvecSet(p,uVar1);\n    puVar7 = p_00;\n    do {\n      if (*puVar7 != 0) {\n        uVar2 = sqlite3BitvecSet(p,*puVar7);\n        uVar6 = uVar6 | uVar2;\n      }\n      puVar7 = puVar7 + 1;\n    } while (puVar7 != p_00 + 0x7c);\n    sqlite3DbFree((sqlite3 *)0x0,p_00);\n    return uVar6;\n  }" { (expression_statement "p_00 = (u32 *)sqlite3DbMallocRaw((sqlite3 *)0x0,0x1f0);" (assignment_expression "p_00 = (u32 *)sqlite3DbMallocRaw((sqlite3 *)0x0,0x1f0)" identifier = (cast_expression "(u32 *)sqlite3DbMallocRaw((sqlite3 *)0x0,0x1f0)" ( (type_descriptor "u32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3DbMallocRaw((sqlite3 *)0x0,0x1f0)" identifier (argument_list "((sqlite3 *)0x0,0x1f0)" ( (cast_expression "(sqlite3 *)0x0" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , number_literal ))))) ;) (if_statement "if (p_00 == (u32 *)0x0) {\n      return 7;\n    }" if (parenthesized_expression "(p_00 == (u32 *)0x0)" ( (binary_expression "p_00 == (u32 *)0x0" identifier == (cast_expression "(u32 *)0x0" ( (type_descriptor "u32 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 7;\n    }" { (return_statement "return 7;" return number_literal ;) })) (expression_statement "*(Bitvec **)p_00 = (p->u).apSub[0];" (assignment_expression "*(Bitvec **)p_00 = (p->u).apSub[0]" (pointer_expression "*(Bitvec **)p_00" * (cast_expression "(Bitvec **)p_00" ( (type_descriptor "Bitvec **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier)) = (subscript_expression "(p->u).apSub[0]" (field_expression "(p->u).apSub" (parenthesized_expression "(p->u)" ( (field_expression "p->u" identifier -> field_identifier) )) . field_identifier) [ number_literal ])) ;) (expression_statement "*(Bitvec **)(p_00 + 0x7a) = (p->u).apSub[0x3d];" (assignment_expression "*(Bitvec **)(p_00 + 0x7a) = (p->u).apSub[0x3d]" (pointer_expression "*(Bitvec **)(p_00 + 0x7a)" * (cast_expression "(Bitvec **)(p_00 + 0x7a)" ( (type_descriptor "Bitvec **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(p_00 + 0x7a)" ( (binary_expression "p_00 + 0x7a" identifier + number_literal) )))) = (subscript_expression "(p->u).apSub[0x3d]" (field_expression "(p->u).apSub" (parenthesized_expression "(p->u)" ( (field_expression "p->u" identifier -> field_identifier) )) . field_identifier) [ number_literal ])) ;) (expression_statement "lVar4 = (long)p_00 - (long)((ulong)(p_00 + 2) & 0xfffffffffffffff8);" (assignment_expression "lVar4 = (long)p_00 - (long)((ulong)(p_00 + 2) & 0xfffffffffffffff8)" identifier = (binary_expression "(long)p_00 - (long)((ulong)(p_00 + 2) & 0xfffffffffffffff8)" (cast_expression "(long)p_00" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)((ulong)(p_00 + 2) & 0xfffffffffffffff8)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "((ulong)(p_00 + 2) & 0xfffffffffffffff8)" ( (binary_expression "(ulong)(p_00 + 2) & 0xfffffffffffffff8" (call_expression "(ulong)(p_00 + 2)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(p_00 + 2)" ( (binary_expression "p_00 + 2" identifier + number_literal) ))) & number_literal) ))))) ;) (expression_statement "puVar9 = (undefined8 *)((long)&p->u - lVar4);" (assignment_expression "puVar9 = (undefined8 *)((long)&p->u - lVar4)" identifier = (cast_expression "(undefined8 *)((long)&p->u - lVar4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&p->u - lVar4)" ( (binary_expression "(long)&p->u - lVar4" (cast_expression "(long)&p->u" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&p->u" & (field_expression "p->u" identifier -> field_identifier))) - identifier) )))) ;) (expression_statement "puVar8 = (undefined8 *)((ulong)(p_00 + 2) & 0xfffffffffffffff8);" (assignment_expression "puVar8 = (undefined8 *)((ulong)(p_00 + 2) & 0xfffffffffffffff8)" identifier = (cast_expression "(undefined8 *)((ulong)(p_00 + 2) & 0xfffffffffffffff8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ulong)(p_00 + 2) & 0xfffffffffffffff8)" ( (binary_expression "(ulong)(p_00 + 2) & 0xfffffffffffffff8" (call_expression "(ulong)(p_00 + 2)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(p_00 + 2)" ( (binary_expression "p_00 + 2" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar5 = (ulong)((int)lVar4 + 0x1f0U >> 3); uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar8 = *puVar9;\n      puVar9 = puVar9 + (ulong)bVar10 * -2 + 1;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n    }" for ( (assignment_expression "uVar5 = (ulong)((int)lVar4 + 0x1f0U >> 3)" identifier = (call_expression "(ulong)((int)lVar4 + 0x1f0U >> 3)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "((int)lVar4 + 0x1f0U >> 3)" ( (binary_expression "(int)lVar4 + 0x1f0U >> 3" (binary_expression "(int)lVar4 + 0x1f0U" (cast_expression "(int)lVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) >> number_literal) )))) ; (binary_expression "uVar5 != 0" identifier != number_literal) ; (assignment_expression "uVar5 = uVar5 - 1" identifier = (binary_expression "uVar5 - 1" identifier - number_literal)) ) (compound_statement "{\n      *puVar8 = *puVar9;\n      puVar9 = puVar9 + (ulong)bVar10 * -2 + 1;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n    }" { (expression_statement "*puVar8 = *puVar9;" (assignment_expression "*puVar8 = *puVar9" (pointer_expression "*puVar8" * identifier) = (pointer_expression "*puVar9" * identifier)) ;) (expression_statement "puVar9 = puVar9 + (ulong)bVar10 * -2 + 1;" (assignment_expression "puVar9 = puVar9 + (ulong)bVar10 * -2 + 1" identifier = (binary_expression "puVar9 + (ulong)bVar10 * -2 + 1" (binary_expression "puVar9 + (ulong)bVar10 * -2" identifier + (binary_expression "(ulong)bVar10 * -2" (cast_expression "(ulong)bVar10" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;" (assignment_expression "puVar8 = puVar8 + (ulong)bVar10 * -2 + 1" identifier = (binary_expression "puVar8 + (ulong)bVar10 * -2 + 1" (binary_expression "puVar8 + (ulong)bVar10 * -2" identifier + (binary_expression "(ulong)bVar10 * -2" (cast_expression "(ulong)bVar10" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "(p->u).apSub[0] = (Bitvec *)0x0;" (assignment_expression "(p->u).apSub[0] = (Bitvec *)0x0" (subscript_expression "(p->u).apSub[0]" (field_expression "(p->u).apSub" (parenthesized_expression "(p->u)" ( (field_expression "p->u" identifier -> field_identifier) )) . field_identifier) [ number_literal ]) = (cast_expression "(Bitvec *)0x0" ( (type_descriptor "Bitvec *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "(p->u).apSub[0x3d] = (Bitvec *)0x0;" (assignment_expression "(p->u).apSub[0x3d] = (Bitvec *)0x0" (subscript_expression "(p->u).apSub[0x3d]" (field_expression "(p->u).apSub" (parenthesized_expression "(p->u)" ( (field_expression "p->u" identifier -> field_identifier) )) . field_identifier) [ number_literal ]) = (cast_expression "(Bitvec *)0x0" ( (type_descriptor "Bitvec *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "puVar9 = (undefined8 *)((ulong)((long)&p->u + 8U) & 0xfffffffffffffff8);" (assignment_expression "puVar9 = (undefined8 *)((ulong)((long)&p->u + 8U) & 0xfffffffffffffff8)" identifier = (cast_expression "(undefined8 *)((ulong)((long)&p->u + 8U) & 0xfffffffffffffff8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ulong)((long)&p->u + 8U) & 0xfffffffffffffff8)" ( (binary_expression "(ulong)((long)&p->u + 8U) & 0xfffffffffffffff8" (call_expression "(ulong)((long)&p->u + 8U)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "((long)&p->u + 8U)" ( (binary_expression "(long)&p->u + 8U" (cast_expression "(long)&p->u" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&p->u" & (field_expression "p->u" identifier -> field_identifier))) + number_literal) ))) & number_literal) )))) ;) (expression_statement "uVar5 = (ulong)(((int)&p->u - (int)puVar9) + 0x1f0U >> 3);" (assignment_expression "uVar5 = (ulong)(((int)&p->u - (int)puVar9) + 0x1f0U >> 3)" identifier = (call_expression "(ulong)(((int)&p->u - (int)puVar9) + 0x1f0U >> 3)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(((int)&p->u - (int)puVar9) + 0x1f0U >> 3)" ( (binary_expression "((int)&p->u - (int)puVar9) + 0x1f0U >> 3" (binary_expression "((int)&p->u - (int)puVar9) + 0x1f0U" (parenthesized_expression "((int)&p->u - (int)puVar9)" ( (binary_expression "(int)&p->u - (int)puVar9" (cast_expression "(int)&p->u" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&p->u" & (field_expression "p->u" identifier -> field_identifier))) - (cast_expression "(int)puVar9" ( (type_descriptor "int" primitive_type) ) identifier)) )) + number_literal) >> number_literal) )))) ;) (for_statement "for (; uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar9 = 0;\n      puVar9 = puVar9 + (ulong)bVar10 * -2 + 1;\n    }" for ( ; (binary_expression "uVar5 != 0" identifier != number_literal) ; (assignment_expression "uVar5 = uVar5 - 1" identifier = (binary_expression "uVar5 - 1" identifier - number_literal)) ) (compound_statement "{\n      *puVar9 = 0;\n      puVar9 = puVar9 + (ulong)bVar10 * -2 + 1;\n    }" { (expression_statement "*puVar9 = 0;" (assignment_expression "*puVar9 = 0" (pointer_expression "*puVar9" * identifier) = number_literal) ;) (expression_statement "puVar9 = puVar9 + (ulong)bVar10 * -2 + 1;" (assignment_expression "puVar9 = puVar9 + (ulong)bVar10 * -2 + 1" identifier = (binary_expression "puVar9 + (ulong)bVar10 * -2 + 1" (binary_expression "puVar9 + (ulong)bVar10 * -2" identifier + (binary_expression "(ulong)bVar10 * -2" (cast_expression "(ulong)bVar10" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "p->iDivisor = (u32)(((ulong)p->iSize + 0x3d) / 0x3e);" (assignment_expression "p->iDivisor = (u32)(((ulong)p->iSize + 0x3d) / 0x3e)" (field_expression "p->iDivisor" identifier -> field_identifier) = (call_expression "(u32)(((ulong)p->iSize + 0x3d) / 0x3e)" (parenthesized_expression "(u32)" ( identifier )) (argument_list "(((ulong)p->iSize + 0x3d) / 0x3e)" ( (binary_expression "((ulong)p->iSize + 0x3d) / 0x3e" (parenthesized_expression "((ulong)p->iSize + 0x3d)" ( (binary_expression "(ulong)p->iSize + 0x3d" (cast_expression "(ulong)p->iSize" ( (type_descriptor "ulong" type_identifier) ) (field_expression "p->iSize" identifier -> field_identifier)) + number_literal) )) / number_literal) )))) ;) (expression_statement "uVar6 = sqlite3BitvecSet(p,uVar1);" (assignment_expression "uVar6 = sqlite3BitvecSet(p,uVar1)" identifier = (call_expression "sqlite3BitvecSet(p,uVar1)" identifier (argument_list "(p,uVar1)" ( identifier , identifier )))) ;) (expression_statement "puVar7 = p_00;" (assignment_expression "puVar7 = p_00" identifier = identifier) ;) (do_statement "do {\n      if (*puVar7 != 0) {\n        uVar2 = sqlite3BitvecSet(p,*puVar7);\n        uVar6 = uVar6 | uVar2;\n      }\n      puVar7 = puVar7 + 1;\n    } while (puVar7 != p_00 + 0x7c);" do (compound_statement "{\n      if (*puVar7 != 0) {\n        uVar2 = sqlite3BitvecSet(p,*puVar7);\n        uVar6 = uVar6 | uVar2;\n      }\n      puVar7 = puVar7 + 1;\n    }" { (if_statement "if (*puVar7 != 0) {\n        uVar2 = sqlite3BitvecSet(p,*puVar7);\n        uVar6 = uVar6 | uVar2;\n      }" if (parenthesized_expression "(*puVar7 != 0)" ( (binary_expression "*puVar7 != 0" (pointer_expression "*puVar7" * identifier) != number_literal) )) (compound_statement "{\n        uVar2 = sqlite3BitvecSet(p,*puVar7);\n        uVar6 = uVar6 | uVar2;\n      }" { (expression_statement "uVar2 = sqlite3BitvecSet(p,*puVar7);" (assignment_expression "uVar2 = sqlite3BitvecSet(p,*puVar7)" identifier = (call_expression "sqlite3BitvecSet(p,*puVar7)" identifier (argument_list "(p,*puVar7)" ( identifier , (pointer_expression "*puVar7" * identifier) )))) ;) (expression_statement "uVar6 = uVar6 | uVar2;" (assignment_expression "uVar6 = uVar6 | uVar2" identifier = (binary_expression "uVar6 | uVar2" identifier | identifier)) ;) })) (expression_statement "puVar7 = puVar7 + 1;" (assignment_expression "puVar7 = puVar7 + 1" identifier = (binary_expression "puVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar7 != p_00 + 0x7c)" ( (binary_expression "puVar7 != p_00 + 0x7c" identifier != (binary_expression "p_00 + 0x7c" identifier + number_literal)) )) ;) (expression_statement "sqlite3DbFree((sqlite3 *)0x0,p_00);" (call_expression "sqlite3DbFree((sqlite3 *)0x0,p_00)" identifier (argument_list "((sqlite3 *)0x0,p_00)" ( (cast_expression "(sqlite3 *)0x0" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , identifier ))) ;) (return_statement "return uVar6;" return identifier ;) })) (labeled_statement "LAB_001233b6:\n  p->nSet = p->nSet + 1;" statement_identifier : (expression_statement "p->nSet = p->nSet + 1;" (assignment_expression "p->nSet = p->nSet + 1" (field_expression "p->nSet" identifier -> field_identifier) = (binary_expression "p->nSet + 1" (field_expression "p->nSet" identifier -> field_identifier) + number_literal)) ;)) (expression_statement "*(u32 *)((long)&p->u + (ulong)uVar6 * 4) = uVar1;" (assignment_expression "*(u32 *)((long)&p->u + (ulong)uVar6 * 4) = uVar1" (pointer_expression "*(u32 *)((long)&p->u + (ulong)uVar6 * 4)" * (cast_expression "(u32 *)((long)&p->u + (ulong)uVar6 * 4)" ( (type_descriptor "u32 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&p->u + (ulong)uVar6 * 4)" ( (binary_expression "(long)&p->u + (ulong)uVar6 * 4" (cast_expression "(long)&p->u" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&p->u" & (field_expression "p->u" identifier -> field_identifier))) + (binary_expression "(ulong)uVar6 * 4" (cast_expression "(ulong)uVar6" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) )))) = identifier) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "uint FUN_00123346(uint *param_1,int param_2)\n\n{\n  byte *pbVar1;\n  uint uVar2;\n  int *piVar3;\n  long lVar4;\n  ulong uVar5;\n  uint uVar6;\n  int *piVar7;\n  undefined8 *puVar8;\n  undefined8 *puVar9;\n  byte bVar10;\n  \n  bVar10 = 0;\n  if (param_1 == (uint *)0x0) {\n    return 0;\n  }\n  uVar6 = param_2 - 1;\n  if (*param_1 < 0xf81) {\nLAB_00123533:\n    pbVar1 = (byte *)((long)param_1 + (ulong)(uVar6 >> 3) + 0x10);\n    *pbVar1 = *pbVar1 | (byte)(1 << ((byte)uVar6 & 7));\n    return 0;\n  }\n  uVar2 = param_1[2];\n  while (uVar2 != 0) {\n    uVar5 = (ulong)uVar6 / (ulong)uVar2;\n    uVar6 = uVar6 % uVar2;\n    if (*(long *)(param_1 + uVar5 * 2 + 4) == 0) {\n      lVar4 = FUN_0011d296();\n      *(long *)(param_1 + uVar5 * 2 + 4) = lVar4;\n      if (lVar4 == 0) {\n        return 7;\n      }\n    }\n    param_1 = *(uint **)(param_1 + uVar5 * 2 + 4);\n    if (*param_1 < 0xf81) goto LAB_00123533;\n    uVar2 = param_1[2];\n  }\n  uVar2 = uVar6 + 1;\n  uVar5 = (ulong)(uVar6 % 0x7c);\n  if (param_1[(ulong)(uVar6 % 0x7c) + 4] == 0) {\n    if (param_1[1] < 0x7b) goto LAB_001233b6;\n  }\n  else {\n    do {\n      if (param_1[uVar5 + 4] == uVar2) {\n        return 0;\n      }\n      uVar6 = (int)uVar5 + 1;\n      if (0x7b < uVar6) {\n        uVar6 = 0;\n      }\n      uVar5 = (ulong)uVar6;\n    } while (param_1[uVar5 + 4] != 0);\n  }\n  if (0x3d < param_1[1]) {\n    piVar3 = (int *)FUN_001224ab(0,0x1f0);\n    if (piVar3 == (int *)0x0) {\n      return 7;\n    }\n    *(undefined8 *)piVar3 = *(undefined8 *)(param_1 + 4);\n    *(undefined8 *)(piVar3 + 0x7a) = *(undefined8 *)(param_1 + 0x7e);\n    lVar4 = (long)piVar3 - (long)((ulong)(piVar3 + 2) & 0xfffffffffffffff8);\n    puVar8 = (undefined8 *)((long)(param_1 + 4) - lVar4);\n    puVar9 = (undefined8 *)((ulong)(piVar3 + 2) & 0xfffffffffffffff8);\n    for (uVar5 = (ulong)((int)lVar4 + 0x1f0U >> 3); uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar9 = *puVar8;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n      puVar9 = puVar9 + (ulong)bVar10 * -2 + 1;\n    }\n    param_1[4] = 0;\n    param_1[5] = 0;\n    param_1[0x7e] = 0;\n    param_1[0x7f] = 0;\n    puVar8 = (undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8);\n    for (uVar5 = (ulong)(((int)(param_1 + 4) -\n                         (int)(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)) + 0x1f0U >>\n                        3); uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar8 = 0;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n    }\n    param_1[2] = (uint)(((ulong)*param_1 + 0x3d) / 0x3e);\n    uVar6 = FUN_00123346(param_1,uVar2);\n    piVar7 = piVar3;\n    do {\n      if (*piVar7 != 0) {\n        uVar2 = FUN_00123346(param_1);\n        uVar6 = uVar6 | uVar2;\n      }\n      piVar7 = piVar7 + 1;\n    } while (piVar7 != piVar3 + 0x7c);\n    FUN_00119825(0,piVar3);\n    return uVar6;\n  }\nLAB_001233b6:\n  param_1[1] = param_1[1] + 1;\n  param_1[uVar5 + 4] = uVar2;\n  return 0;\n}\n\n" (function_definition "uint FUN_00123346(uint *param_1,int param_2)\n\n{\n  byte *pbVar1;\n  uint uVar2;\n  int *piVar3;\n  long lVar4;\n  ulong uVar5;\n  uint uVar6;\n  int *piVar7;\n  undefined8 *puVar8;\n  undefined8 *puVar9;\n  byte bVar10;\n  \n  bVar10 = 0;\n  if (param_1 == (uint *)0x0) {\n    return 0;\n  }\n  uVar6 = param_2 - 1;\n  if (*param_1 < 0xf81) {\nLAB_00123533:\n    pbVar1 = (byte *)((long)param_1 + (ulong)(uVar6 >> 3) + 0x10);\n    *pbVar1 = *pbVar1 | (byte)(1 << ((byte)uVar6 & 7));\n    return 0;\n  }\n  uVar2 = param_1[2];\n  while (uVar2 != 0) {\n    uVar5 = (ulong)uVar6 / (ulong)uVar2;\n    uVar6 = uVar6 % uVar2;\n    if (*(long *)(param_1 + uVar5 * 2 + 4) == 0) {\n      lVar4 = FUN_0011d296();\n      *(long *)(param_1 + uVar5 * 2 + 4) = lVar4;\n      if (lVar4 == 0) {\n        return 7;\n      }\n    }\n    param_1 = *(uint **)(param_1 + uVar5 * 2 + 4);\n    if (*param_1 < 0xf81) goto LAB_00123533;\n    uVar2 = param_1[2];\n  }\n  uVar2 = uVar6 + 1;\n  uVar5 = (ulong)(uVar6 % 0x7c);\n  if (param_1[(ulong)(uVar6 % 0x7c) + 4] == 0) {\n    if (param_1[1] < 0x7b) goto LAB_001233b6;\n  }\n  else {\n    do {\n      if (param_1[uVar5 + 4] == uVar2) {\n        return 0;\n      }\n      uVar6 = (int)uVar5 + 1;\n      if (0x7b < uVar6) {\n        uVar6 = 0;\n      }\n      uVar5 = (ulong)uVar6;\n    } while (param_1[uVar5 + 4] != 0);\n  }\n  if (0x3d < param_1[1]) {\n    piVar3 = (int *)FUN_001224ab(0,0x1f0);\n    if (piVar3 == (int *)0x0) {\n      return 7;\n    }\n    *(undefined8 *)piVar3 = *(undefined8 *)(param_1 + 4);\n    *(undefined8 *)(piVar3 + 0x7a) = *(undefined8 *)(param_1 + 0x7e);\n    lVar4 = (long)piVar3 - (long)((ulong)(piVar3 + 2) & 0xfffffffffffffff8);\n    puVar8 = (undefined8 *)((long)(param_1 + 4) - lVar4);\n    puVar9 = (undefined8 *)((ulong)(piVar3 + 2) & 0xfffffffffffffff8);\n    for (uVar5 = (ulong)((int)lVar4 + 0x1f0U >> 3); uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar9 = *puVar8;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n      puVar9 = puVar9 + (ulong)bVar10 * -2 + 1;\n    }\n    param_1[4] = 0;\n    param_1[5] = 0;\n    param_1[0x7e] = 0;\n    param_1[0x7f] = 0;\n    puVar8 = (undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8);\n    for (uVar5 = (ulong)(((int)(param_1 + 4) -\n                         (int)(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)) + 0x1f0U >>\n                        3); uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar8 = 0;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n    }\n    param_1[2] = (uint)(((ulong)*param_1 + 0x3d) / 0x3e);\n    uVar6 = FUN_00123346(param_1,uVar2);\n    piVar7 = piVar3;\n    do {\n      if (*piVar7 != 0) {\n        uVar2 = FUN_00123346(param_1);\n        uVar6 = uVar6 | uVar2;\n      }\n      piVar7 = piVar7 + 1;\n    } while (piVar7 != piVar3 + 0x7c);\n    FUN_00119825(0,piVar3);\n    return uVar6;\n  }\nLAB_001233b6:\n  param_1[1] = param_1[1] + 1;\n  param_1[uVar5 + 4] = uVar2;\n  return 0;\n}" type_identifier (function_declarator "FUN_00123346(uint *param_1,int param_2)" identifier (parameter_list "(uint *param_1,int param_2)" ( (parameter_declaration "uint *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  byte *pbVar1;\n  uint uVar2;\n  int *piVar3;\n  long lVar4;\n  ulong uVar5;\n  uint uVar6;\n  int *piVar7;\n  undefined8 *puVar8;\n  undefined8 *puVar9;\n  byte bVar10;\n  \n  bVar10 = 0;\n  if (param_1 == (uint *)0x0) {\n    return 0;\n  }\n  uVar6 = param_2 - 1;\n  if (*param_1 < 0xf81) {\nLAB_00123533:\n    pbVar1 = (byte *)((long)param_1 + (ulong)(uVar6 >> 3) + 0x10);\n    *pbVar1 = *pbVar1 | (byte)(1 << ((byte)uVar6 & 7));\n    return 0;\n  }\n  uVar2 = param_1[2];\n  while (uVar2 != 0) {\n    uVar5 = (ulong)uVar6 / (ulong)uVar2;\n    uVar6 = uVar6 % uVar2;\n    if (*(long *)(param_1 + uVar5 * 2 + 4) == 0) {\n      lVar4 = FUN_0011d296();\n      *(long *)(param_1 + uVar5 * 2 + 4) = lVar4;\n      if (lVar4 == 0) {\n        return 7;\n      }\n    }\n    param_1 = *(uint **)(param_1 + uVar5 * 2 + 4);\n    if (*param_1 < 0xf81) goto LAB_00123533;\n    uVar2 = param_1[2];\n  }\n  uVar2 = uVar6 + 1;\n  uVar5 = (ulong)(uVar6 % 0x7c);\n  if (param_1[(ulong)(uVar6 % 0x7c) + 4] == 0) {\n    if (param_1[1] < 0x7b) goto LAB_001233b6;\n  }\n  else {\n    do {\n      if (param_1[uVar5 + 4] == uVar2) {\n        return 0;\n      }\n      uVar6 = (int)uVar5 + 1;\n      if (0x7b < uVar6) {\n        uVar6 = 0;\n      }\n      uVar5 = (ulong)uVar6;\n    } while (param_1[uVar5 + 4] != 0);\n  }\n  if (0x3d < param_1[1]) {\n    piVar3 = (int *)FUN_001224ab(0,0x1f0);\n    if (piVar3 == (int *)0x0) {\n      return 7;\n    }\n    *(undefined8 *)piVar3 = *(undefined8 *)(param_1 + 4);\n    *(undefined8 *)(piVar3 + 0x7a) = *(undefined8 *)(param_1 + 0x7e);\n    lVar4 = (long)piVar3 - (long)((ulong)(piVar3 + 2) & 0xfffffffffffffff8);\n    puVar8 = (undefined8 *)((long)(param_1 + 4) - lVar4);\n    puVar9 = (undefined8 *)((ulong)(piVar3 + 2) & 0xfffffffffffffff8);\n    for (uVar5 = (ulong)((int)lVar4 + 0x1f0U >> 3); uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar9 = *puVar8;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n      puVar9 = puVar9 + (ulong)bVar10 * -2 + 1;\n    }\n    param_1[4] = 0;\n    param_1[5] = 0;\n    param_1[0x7e] = 0;\n    param_1[0x7f] = 0;\n    puVar8 = (undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8);\n    for (uVar5 = (ulong)(((int)(param_1 + 4) -\n                         (int)(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)) + 0x1f0U >>\n                        3); uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar8 = 0;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n    }\n    param_1[2] = (uint)(((ulong)*param_1 + 0x3d) / 0x3e);\n    uVar6 = FUN_00123346(param_1,uVar2);\n    piVar7 = piVar3;\n    do {\n      if (*piVar7 != 0) {\n        uVar2 = FUN_00123346(param_1);\n        uVar6 = uVar6 | uVar2;\n      }\n      piVar7 = piVar7 + 1;\n    } while (piVar7 != piVar3 + 0x7c);\n    FUN_00119825(0,piVar3);\n    return uVar6;\n  }\nLAB_001233b6:\n  param_1[1] = param_1[1] + 1;\n  param_1[uVar5 + 4] = uVar2;\n  return 0;\n}" { (declaration "byte *pbVar1;" type_identifier (pointer_declarator "*pbVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int *piVar3;" primitive_type (pointer_declarator "*piVar3" * identifier) ;) (declaration "long lVar4;" (sized_type_specifier "long" long) identifier ;) (declaration "ulong uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "int *piVar7;" primitive_type (pointer_declarator "*piVar7" * identifier) ;) (declaration "undefined8 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "undefined8 *puVar9;" type_identifier (pointer_declarator "*puVar9" * identifier) ;) (declaration "byte bVar10;" type_identifier identifier ;) (expression_statement "bVar10 = 0;" (assignment_expression "bVar10 = 0" identifier = number_literal) ;) (if_statement "if (param_1 == (uint *)0x0) {\n    return 0;\n  }" if (parenthesized_expression "(param_1 == (uint *)0x0)" ( (binary_expression "param_1 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 0;\n  }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar6 = param_2 - 1;" (assignment_expression "uVar6 = param_2 - 1" identifier = (binary_expression "param_2 - 1" identifier - number_literal)) ;) (if_statement "if (*param_1 < 0xf81) {\nLAB_00123533:\n    pbVar1 = (byte *)((long)param_1 + (ulong)(uVar6 >> 3) + 0x10);\n    *pbVar1 = *pbVar1 | (byte)(1 << ((byte)uVar6 & 7));\n    return 0;\n  }" if (parenthesized_expression "(*param_1 < 0xf81)" ( (binary_expression "*param_1 < 0xf81" (pointer_expression "*param_1" * identifier) < number_literal) )) (compound_statement "{\nLAB_00123533:\n    pbVar1 = (byte *)((long)param_1 + (ulong)(uVar6 >> 3) + 0x10);\n    *pbVar1 = *pbVar1 | (byte)(1 << ((byte)uVar6 & 7));\n    return 0;\n  }" { (labeled_statement "LAB_00123533:\n    pbVar1 = (byte *)((long)param_1 + (ulong)(uVar6 >> 3) + 0x10);" statement_identifier : (expression_statement "pbVar1 = (byte *)((long)param_1 + (ulong)(uVar6 >> 3) + 0x10);" (assignment_expression "pbVar1 = (byte *)((long)param_1 + (ulong)(uVar6 >> 3) + 0x10)" identifier = (cast_expression "(byte *)((long)param_1 + (ulong)(uVar6 >> 3) + 0x10)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + (ulong)(uVar6 >> 3) + 0x10)" ( (binary_expression "(long)param_1 + (ulong)(uVar6 >> 3) + 0x10" (binary_expression "(long)param_1 + (ulong)(uVar6 >> 3)" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (call_expression "(ulong)(uVar6 >> 3)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(uVar6 >> 3)" ( (binary_expression "uVar6 >> 3" identifier >> number_literal) )))) + number_literal) )))) ;)) (expression_statement "*pbVar1 = *pbVar1 | (byte)(1 << ((byte)uVar6 & 7));" (assignment_expression "*pbVar1 = *pbVar1 | (byte)(1 << ((byte)uVar6 & 7))" (pointer_expression "*pbVar1" * identifier) = (binary_expression "*pbVar1 | (byte)(1 << ((byte)uVar6 & 7))" (pointer_expression "*pbVar1" * identifier) | (call_expression "(byte)(1 << ((byte)uVar6 & 7))" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(1 << ((byte)uVar6 & 7))" ( (binary_expression "1 << ((byte)uVar6 & 7)" number_literal << (parenthesized_expression "((byte)uVar6 & 7)" ( (binary_expression "(byte)uVar6 & 7" (cast_expression "(byte)uVar6" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) ))) ))))) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar2 = param_1[2];" (assignment_expression "uVar2 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) (while_statement "while (uVar2 != 0) {\n    uVar5 = (ulong)uVar6 / (ulong)uVar2;\n    uVar6 = uVar6 % uVar2;\n    if (*(long *)(param_1 + uVar5 * 2 + 4) == 0) {\n      lVar4 = FUN_0011d296();\n      *(long *)(param_1 + uVar5 * 2 + 4) = lVar4;\n      if (lVar4 == 0) {\n        return 7;\n      }\n    }\n    param_1 = *(uint **)(param_1 + uVar5 * 2 + 4);\n    if (*param_1 < 0xf81) goto LAB_00123533;\n    uVar2 = param_1[2];\n  }" while (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar5 = (ulong)uVar6 / (ulong)uVar2;\n    uVar6 = uVar6 % uVar2;\n    if (*(long *)(param_1 + uVar5 * 2 + 4) == 0) {\n      lVar4 = FUN_0011d296();\n      *(long *)(param_1 + uVar5 * 2 + 4) = lVar4;\n      if (lVar4 == 0) {\n        return 7;\n      }\n    }\n    param_1 = *(uint **)(param_1 + uVar5 * 2 + 4);\n    if (*param_1 < 0xf81) goto LAB_00123533;\n    uVar2 = param_1[2];\n  }" { (expression_statement "uVar5 = (ulong)uVar6 / (ulong)uVar2;" (assignment_expression "uVar5 = (ulong)uVar6 / (ulong)uVar2" identifier = (binary_expression "(ulong)uVar6 / (ulong)uVar2" (cast_expression "(ulong)uVar6" ( (type_descriptor "ulong" type_identifier) ) identifier) / (cast_expression "(ulong)uVar2" ( (type_descriptor "ulong" type_identifier) ) identifier))) ;) (expression_statement "uVar6 = uVar6 % uVar2;" (assignment_expression "uVar6 = uVar6 % uVar2" identifier = (binary_expression "uVar6 % uVar2" identifier % identifier)) ;) (if_statement "if (*(long *)(param_1 + uVar5 * 2 + 4) == 0) {\n      lVar4 = FUN_0011d296();\n      *(long *)(param_1 + uVar5 * 2 + 4) = lVar4;\n      if (lVar4 == 0) {\n        return 7;\n      }\n    }" if (parenthesized_expression "(*(long *)(param_1 + uVar5 * 2 + 4) == 0)" ( (binary_expression "*(long *)(param_1 + uVar5 * 2 + 4) == 0" (pointer_expression "*(long *)(param_1 + uVar5 * 2 + 4)" * (cast_expression "(long *)(param_1 + uVar5 * 2 + 4)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + uVar5 * 2 + 4)" ( (binary_expression "param_1 + uVar5 * 2 + 4" (binary_expression "param_1 + uVar5 * 2" identifier + (binary_expression "uVar5 * 2" identifier * number_literal)) + number_literal) )))) == number_literal) )) (compound_statement "{\n      lVar4 = FUN_0011d296();\n      *(long *)(param_1 + uVar5 * 2 + 4) = lVar4;\n      if (lVar4 == 0) {\n        return 7;\n      }\n    }" { (expression_statement "lVar4 = FUN_0011d296();" (assignment_expression "lVar4 = FUN_0011d296()" identifier = (call_expression "FUN_0011d296()" identifier (argument_list "()" ( )))) ;) (expression_statement "*(long *)(param_1 + uVar5 * 2 + 4) = lVar4;" (assignment_expression "*(long *)(param_1 + uVar5 * 2 + 4) = lVar4" (pointer_expression "*(long *)(param_1 + uVar5 * 2 + 4)" * (cast_expression "(long *)(param_1 + uVar5 * 2 + 4)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + uVar5 * 2 + 4)" ( (binary_expression "param_1 + uVar5 * 2 + 4" (binary_expression "param_1 + uVar5 * 2" identifier + (binary_expression "uVar5 * 2" identifier * number_literal)) + number_literal) )))) = identifier) ;) (if_statement "if (lVar4 == 0) {\n        return 7;\n      }" if (parenthesized_expression "(lVar4 == 0)" ( (binary_expression "lVar4 == 0" identifier == number_literal) )) (compound_statement "{\n        return 7;\n      }" { (return_statement "return 7;" return number_literal ;) })) })) (expression_statement "param_1 = *(uint **)(param_1 + uVar5 * 2 + 4);" (assignment_expression "param_1 = *(uint **)(param_1 + uVar5 * 2 + 4)" identifier = (pointer_expression "*(uint **)(param_1 + uVar5 * 2 + 4)" * (cast_expression "(uint **)(param_1 + uVar5 * 2 + 4)" ( (type_descriptor "uint **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + uVar5 * 2 + 4)" ( (binary_expression "param_1 + uVar5 * 2 + 4" (binary_expression "param_1 + uVar5 * 2" identifier + (binary_expression "uVar5 * 2" identifier * number_literal)) + number_literal) ))))) ;) (if_statement "if (*param_1 < 0xf81) goto LAB_00123533;" if (parenthesized_expression "(*param_1 < 0xf81)" ( (binary_expression "*param_1 < 0xf81" (pointer_expression "*param_1" * identifier) < number_literal) )) (goto_statement "goto LAB_00123533;" goto statement_identifier ;)) (expression_statement "uVar2 = param_1[2];" (assignment_expression "uVar2 = param_1[2]" identifier = (subscript_expression "param_1[2]" identifier [ number_literal ])) ;) })) (expression_statement "uVar2 = uVar6 + 1;" (assignment_expression "uVar2 = uVar6 + 1" identifier = (binary_expression "uVar6 + 1" identifier + number_literal)) ;) (expression_statement "uVar5 = (ulong)(uVar6 % 0x7c);" (assignment_expression "uVar5 = (ulong)(uVar6 % 0x7c)" identifier = (call_expression "(ulong)(uVar6 % 0x7c)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(uVar6 % 0x7c)" ( (binary_expression "uVar6 % 0x7c" identifier % number_literal) )))) ;) (if_statement "if (param_1[(ulong)(uVar6 % 0x7c) + 4] == 0) {\n    if (param_1[1] < 0x7b) goto LAB_001233b6;\n  }\n  else {\n    do {\n      if (param_1[uVar5 + 4] == uVar2) {\n        return 0;\n      }\n      uVar6 = (int)uVar5 + 1;\n      if (0x7b < uVar6) {\n        uVar6 = 0;\n      }\n      uVar5 = (ulong)uVar6;\n    } while (param_1[uVar5 + 4] != 0);\n  }" if (parenthesized_expression "(param_1[(ulong)(uVar6 % 0x7c) + 4] == 0)" ( (binary_expression "param_1[(ulong)(uVar6 % 0x7c) + 4] == 0" (subscript_expression "param_1[(ulong)(uVar6 % 0x7c) + 4]" identifier [ (binary_expression "(ulong)(uVar6 % 0x7c) + 4" (call_expression "(ulong)(uVar6 % 0x7c)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(uVar6 % 0x7c)" ( (binary_expression "uVar6 % 0x7c" identifier % number_literal) ))) + number_literal) ]) == number_literal) )) (compound_statement "{\n    if (param_1[1] < 0x7b) goto LAB_001233b6;\n  }" { (if_statement "if (param_1[1] < 0x7b) goto LAB_001233b6;" if (parenthesized_expression "(param_1[1] < 0x7b)" ( (binary_expression "param_1[1] < 0x7b" (subscript_expression "param_1[1]" identifier [ number_literal ]) < number_literal) )) (goto_statement "goto LAB_001233b6;" goto statement_identifier ;)) }) (else_clause "else {\n    do {\n      if (param_1[uVar5 + 4] == uVar2) {\n        return 0;\n      }\n      uVar6 = (int)uVar5 + 1;\n      if (0x7b < uVar6) {\n        uVar6 = 0;\n      }\n      uVar5 = (ulong)uVar6;\n    } while (param_1[uVar5 + 4] != 0);\n  }" else (compound_statement "{\n    do {\n      if (param_1[uVar5 + 4] == uVar2) {\n        return 0;\n      }\n      uVar6 = (int)uVar5 + 1;\n      if (0x7b < uVar6) {\n        uVar6 = 0;\n      }\n      uVar5 = (ulong)uVar6;\n    } while (param_1[uVar5 + 4] != 0);\n  }" { (do_statement "do {\n      if (param_1[uVar5 + 4] == uVar2) {\n        return 0;\n      }\n      uVar6 = (int)uVar5 + 1;\n      if (0x7b < uVar6) {\n        uVar6 = 0;\n      }\n      uVar5 = (ulong)uVar6;\n    } while (param_1[uVar5 + 4] != 0);" do (compound_statement "{\n      if (param_1[uVar5 + 4] == uVar2) {\n        return 0;\n      }\n      uVar6 = (int)uVar5 + 1;\n      if (0x7b < uVar6) {\n        uVar6 = 0;\n      }\n      uVar5 = (ulong)uVar6;\n    }" { (if_statement "if (param_1[uVar5 + 4] == uVar2) {\n        return 0;\n      }" if (parenthesized_expression "(param_1[uVar5 + 4] == uVar2)" ( (binary_expression "param_1[uVar5 + 4] == uVar2" (subscript_expression "param_1[uVar5 + 4]" identifier [ (binary_expression "uVar5 + 4" identifier + number_literal) ]) == identifier) )) (compound_statement "{\n        return 0;\n      }" { (return_statement "return 0;" return number_literal ;) })) (expression_statement "uVar6 = (int)uVar5 + 1;" (assignment_expression "uVar6 = (int)uVar5 + 1" identifier = (binary_expression "(int)uVar5 + 1" (cast_expression "(int)uVar5" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal)) ;) (if_statement "if (0x7b < uVar6) {\n        uVar6 = 0;\n      }" if (parenthesized_expression "(0x7b < uVar6)" ( (binary_expression "0x7b < uVar6" number_literal < identifier) )) (compound_statement "{\n        uVar6 = 0;\n      }" { (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) })) (expression_statement "uVar5 = (ulong)uVar6;" (assignment_expression "uVar5 = (ulong)uVar6" identifier = (cast_expression "(ulong)uVar6" ( (type_descriptor "ulong" type_identifier) ) identifier)) ;) }) while (parenthesized_expression "(param_1[uVar5 + 4] != 0)" ( (binary_expression "param_1[uVar5 + 4] != 0" (subscript_expression "param_1[uVar5 + 4]" identifier [ (binary_expression "uVar5 + 4" identifier + number_literal) ]) != number_literal) )) ;) }))) (if_statement "if (0x3d < param_1[1]) {\n    piVar3 = (int *)FUN_001224ab(0,0x1f0);\n    if (piVar3 == (int *)0x0) {\n      return 7;\n    }\n    *(undefined8 *)piVar3 = *(undefined8 *)(param_1 + 4);\n    *(undefined8 *)(piVar3 + 0x7a) = *(undefined8 *)(param_1 + 0x7e);\n    lVar4 = (long)piVar3 - (long)((ulong)(piVar3 + 2) & 0xfffffffffffffff8);\n    puVar8 = (undefined8 *)((long)(param_1 + 4) - lVar4);\n    puVar9 = (undefined8 *)((ulong)(piVar3 + 2) & 0xfffffffffffffff8);\n    for (uVar5 = (ulong)((int)lVar4 + 0x1f0U >> 3); uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar9 = *puVar8;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n      puVar9 = puVar9 + (ulong)bVar10 * -2 + 1;\n    }\n    param_1[4] = 0;\n    param_1[5] = 0;\n    param_1[0x7e] = 0;\n    param_1[0x7f] = 0;\n    puVar8 = (undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8);\n    for (uVar5 = (ulong)(((int)(param_1 + 4) -\n                         (int)(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)) + 0x1f0U >>\n                        3); uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar8 = 0;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n    }\n    param_1[2] = (uint)(((ulong)*param_1 + 0x3d) / 0x3e);\n    uVar6 = FUN_00123346(param_1,uVar2);\n    piVar7 = piVar3;\n    do {\n      if (*piVar7 != 0) {\n        uVar2 = FUN_00123346(param_1);\n        uVar6 = uVar6 | uVar2;\n      }\n      piVar7 = piVar7 + 1;\n    } while (piVar7 != piVar3 + 0x7c);\n    FUN_00119825(0,piVar3);\n    return uVar6;\n  }" if (parenthesized_expression "(0x3d < param_1[1])" ( (binary_expression "0x3d < param_1[1]" number_literal < (subscript_expression "param_1[1]" identifier [ number_literal ])) )) (compound_statement "{\n    piVar3 = (int *)FUN_001224ab(0,0x1f0);\n    if (piVar3 == (int *)0x0) {\n      return 7;\n    }\n    *(undefined8 *)piVar3 = *(undefined8 *)(param_1 + 4);\n    *(undefined8 *)(piVar3 + 0x7a) = *(undefined8 *)(param_1 + 0x7e);\n    lVar4 = (long)piVar3 - (long)((ulong)(piVar3 + 2) & 0xfffffffffffffff8);\n    puVar8 = (undefined8 *)((long)(param_1 + 4) - lVar4);\n    puVar9 = (undefined8 *)((ulong)(piVar3 + 2) & 0xfffffffffffffff8);\n    for (uVar5 = (ulong)((int)lVar4 + 0x1f0U >> 3); uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar9 = *puVar8;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n      puVar9 = puVar9 + (ulong)bVar10 * -2 + 1;\n    }\n    param_1[4] = 0;\n    param_1[5] = 0;\n    param_1[0x7e] = 0;\n    param_1[0x7f] = 0;\n    puVar8 = (undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8);\n    for (uVar5 = (ulong)(((int)(param_1 + 4) -\n                         (int)(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)) + 0x1f0U >>\n                        3); uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar8 = 0;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n    }\n    param_1[2] = (uint)(((ulong)*param_1 + 0x3d) / 0x3e);\n    uVar6 = FUN_00123346(param_1,uVar2);\n    piVar7 = piVar3;\n    do {\n      if (*piVar7 != 0) {\n        uVar2 = FUN_00123346(param_1);\n        uVar6 = uVar6 | uVar2;\n      }\n      piVar7 = piVar7 + 1;\n    } while (piVar7 != piVar3 + 0x7c);\n    FUN_00119825(0,piVar3);\n    return uVar6;\n  }" { (expression_statement "piVar3 = (int *)FUN_001224ab(0,0x1f0);" (assignment_expression "piVar3 = (int *)FUN_001224ab(0,0x1f0)" identifier = (cast_expression "(int *)FUN_001224ab(0,0x1f0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_001224ab(0,0x1f0)" identifier (argument_list "(0,0x1f0)" ( number_literal , number_literal ))))) ;) (if_statement "if (piVar3 == (int *)0x0) {\n      return 7;\n    }" if (parenthesized_expression "(piVar3 == (int *)0x0)" ( (binary_expression "piVar3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return 7;\n    }" { (return_statement "return 7;" return number_literal ;) })) (expression_statement "*(undefined8 *)piVar3 = *(undefined8 *)(param_1 + 4);" (assignment_expression "*(undefined8 *)piVar3 = *(undefined8 *)(param_1 + 4)" (pointer_expression "*(undefined8 *)piVar3" * (cast_expression "(undefined8 *)piVar3" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (pointer_expression "*(undefined8 *)(param_1 + 4)" * (cast_expression "(undefined8 *)(param_1 + 4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (expression_statement "*(undefined8 *)(piVar3 + 0x7a) = *(undefined8 *)(param_1 + 0x7e);" (assignment_expression "*(undefined8 *)(piVar3 + 0x7a) = *(undefined8 *)(param_1 + 0x7e)" (pointer_expression "*(undefined8 *)(piVar3 + 0x7a)" * (cast_expression "(undefined8 *)(piVar3 + 0x7a)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar3 + 0x7a)" ( (binary_expression "piVar3 + 0x7a" identifier + number_literal) )))) = (pointer_expression "*(undefined8 *)(param_1 + 0x7e)" * (cast_expression "(undefined8 *)(param_1 + 0x7e)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x7e)" ( (binary_expression "param_1 + 0x7e" identifier + number_literal) ))))) ;) (expression_statement "lVar4 = (long)piVar3 - (long)((ulong)(piVar3 + 2) & 0xfffffffffffffff8);" (assignment_expression "lVar4 = (long)piVar3 - (long)((ulong)(piVar3 + 2) & 0xfffffffffffffff8)" identifier = (binary_expression "(long)piVar3 - (long)((ulong)(piVar3 + 2) & 0xfffffffffffffff8)" (cast_expression "(long)piVar3" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) - (cast_expression "(long)((ulong)(piVar3 + 2) & 0xfffffffffffffff8)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "((ulong)(piVar3 + 2) & 0xfffffffffffffff8)" ( (binary_expression "(ulong)(piVar3 + 2) & 0xfffffffffffffff8" (call_expression "(ulong)(piVar3 + 2)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(piVar3 + 2)" ( (binary_expression "piVar3 + 2" identifier + number_literal) ))) & number_literal) ))))) ;) (expression_statement "puVar8 = (undefined8 *)((long)(param_1 + 4) - lVar4);" (assignment_expression "puVar8 = (undefined8 *)((long)(param_1 + 4) - lVar4)" identifier = (cast_expression "(undefined8 *)((long)(param_1 + 4) - lVar4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)(param_1 + 4) - lVar4)" ( (binary_expression "(long)(param_1 + 4) - lVar4" (cast_expression "(long)(param_1 + 4)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))) - identifier) )))) ;) (expression_statement "puVar9 = (undefined8 *)((ulong)(piVar3 + 2) & 0xfffffffffffffff8);" (assignment_expression "puVar9 = (undefined8 *)((ulong)(piVar3 + 2) & 0xfffffffffffffff8)" identifier = (cast_expression "(undefined8 *)((ulong)(piVar3 + 2) & 0xfffffffffffffff8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ulong)(piVar3 + 2) & 0xfffffffffffffff8)" ( (binary_expression "(ulong)(piVar3 + 2) & 0xfffffffffffffff8" (call_expression "(ulong)(piVar3 + 2)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(piVar3 + 2)" ( (binary_expression "piVar3 + 2" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar5 = (ulong)((int)lVar4 + 0x1f0U >> 3); uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar9 = *puVar8;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n      puVar9 = puVar9 + (ulong)bVar10 * -2 + 1;\n    }" for ( (assignment_expression "uVar5 = (ulong)((int)lVar4 + 0x1f0U >> 3)" identifier = (call_expression "(ulong)((int)lVar4 + 0x1f0U >> 3)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "((int)lVar4 + 0x1f0U >> 3)" ( (binary_expression "(int)lVar4 + 0x1f0U >> 3" (binary_expression "(int)lVar4 + 0x1f0U" (cast_expression "(int)lVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) >> number_literal) )))) ; (binary_expression "uVar5 != 0" identifier != number_literal) ; (assignment_expression "uVar5 = uVar5 - 1" identifier = (binary_expression "uVar5 - 1" identifier - number_literal)) ) (compound_statement "{\n      *puVar9 = *puVar8;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n      puVar9 = puVar9 + (ulong)bVar10 * -2 + 1;\n    }" { (expression_statement "*puVar9 = *puVar8;" (assignment_expression "*puVar9 = *puVar8" (pointer_expression "*puVar9" * identifier) = (pointer_expression "*puVar8" * identifier)) ;) (expression_statement "puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;" (assignment_expression "puVar8 = puVar8 + (ulong)bVar10 * -2 + 1" identifier = (binary_expression "puVar8 + (ulong)bVar10 * -2 + 1" (binary_expression "puVar8 + (ulong)bVar10 * -2" identifier + (binary_expression "(ulong)bVar10 * -2" (cast_expression "(ulong)bVar10" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) (expression_statement "puVar9 = puVar9 + (ulong)bVar10 * -2 + 1;" (assignment_expression "puVar9 = puVar9 + (ulong)bVar10 * -2 + 1" identifier = (binary_expression "puVar9 + (ulong)bVar10 * -2 + 1" (binary_expression "puVar9 + (ulong)bVar10 * -2" identifier + (binary_expression "(ulong)bVar10 * -2" (cast_expression "(ulong)bVar10" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x7e] = 0;" (assignment_expression "param_1[0x7e] = 0" (subscript_expression "param_1[0x7e]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "param_1[0x7f] = 0;" (assignment_expression "param_1[0x7f] = 0" (subscript_expression "param_1[0x7f]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "puVar8 = (undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8);" (assignment_expression "puVar8 = (undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)" identifier = (cast_expression "(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ulong)(param_1 + 6) & 0xfffffffffffffff8)" ( (binary_expression "(ulong)(param_1 + 6) & 0xfffffffffffffff8" (call_expression "(ulong)(param_1 + 6)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_1 + 6)" ( (binary_expression "param_1 + 6" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar5 = (ulong)(((int)(param_1 + 4) -\n                         (int)(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)) + 0x1f0U >>\n                        3); uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar8 = 0;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n    }" for ( (assignment_expression "uVar5 = (ulong)(((int)(param_1 + 4) -\n                         (int)(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)) + 0x1f0U >>\n                        3)" identifier = (call_expression "(ulong)(((int)(param_1 + 4) -\n                         (int)(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)) + 0x1f0U >>\n                        3)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(((int)(param_1 + 4) -\n                         (int)(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)) + 0x1f0U >>\n                        3)" ( (binary_expression "((int)(param_1 + 4) -\n                         (int)(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)) + 0x1f0U >>\n                        3" (binary_expression "((int)(param_1 + 4) -\n                         (int)(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)) + 0x1f0U" (parenthesized_expression "((int)(param_1 + 4) -\n                         (int)(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8))" ( (binary_expression "(int)(param_1 + 4) -\n                         (int)(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)" (cast_expression "(int)(param_1 + 4)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))) - (cast_expression "(int)(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)" ( (type_descriptor "int" primitive_type) ) (cast_expression "(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((ulong)(param_1 + 6) & 0xfffffffffffffff8)" ( (binary_expression "(ulong)(param_1 + 6) & 0xfffffffffffffff8" (call_expression "(ulong)(param_1 + 6)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(param_1 + 6)" ( (binary_expression "param_1 + 6" identifier + number_literal) ))) & number_literal) ))))) )) + number_literal) >> number_literal) )))) ; (binary_expression "uVar5 != 0" identifier != number_literal) ; (assignment_expression "uVar5 = uVar5 - 1" identifier = (binary_expression "uVar5 - 1" identifier - number_literal)) ) (compound_statement "{\n      *puVar8 = 0;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n    }" { (expression_statement "*puVar8 = 0;" (assignment_expression "*puVar8 = 0" (pointer_expression "*puVar8" * identifier) = number_literal) ;) (expression_statement "puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;" (assignment_expression "puVar8 = puVar8 + (ulong)bVar10 * -2 + 1" identifier = (binary_expression "puVar8 + (ulong)bVar10 * -2 + 1" (binary_expression "puVar8 + (ulong)bVar10 * -2" identifier + (binary_expression "(ulong)bVar10 * -2" (cast_expression "(ulong)bVar10" ( (type_descriptor "ulong" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "param_1[2] = (uint)(((ulong)*param_1 + 0x3d) / 0x3e);" (assignment_expression "param_1[2] = (uint)(((ulong)*param_1 + 0x3d) / 0x3e)" (subscript_expression "param_1[2]" identifier [ number_literal ]) = (call_expression "(uint)(((ulong)*param_1 + 0x3d) / 0x3e)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(((ulong)*param_1 + 0x3d) / 0x3e)" ( (binary_expression "((ulong)*param_1 + 0x3d) / 0x3e" (parenthesized_expression "((ulong)*param_1 + 0x3d)" ( (binary_expression "(ulong)*param_1 + 0x3d" (binary_expression "(ulong)*param_1" (parenthesized_expression "(ulong)" ( identifier )) * identifier) + number_literal) )) / number_literal) )))) ;) (expression_statement "uVar6 = FUN_00123346(param_1,uVar2);" (assignment_expression "uVar6 = FUN_00123346(param_1,uVar2)" identifier = (call_expression "FUN_00123346(param_1,uVar2)" identifier (argument_list "(param_1,uVar2)" ( identifier , identifier )))) ;) (expression_statement "piVar7 = piVar3;" (assignment_expression "piVar7 = piVar3" identifier = identifier) ;) (do_statement "do {\n      if (*piVar7 != 0) {\n        uVar2 = FUN_00123346(param_1);\n        uVar6 = uVar6 | uVar2;\n      }\n      piVar7 = piVar7 + 1;\n    } while (piVar7 != piVar3 + 0x7c);" do (compound_statement "{\n      if (*piVar7 != 0) {\n        uVar2 = FUN_00123346(param_1);\n        uVar6 = uVar6 | uVar2;\n      }\n      piVar7 = piVar7 + 1;\n    }" { (if_statement "if (*piVar7 != 0) {\n        uVar2 = FUN_00123346(param_1);\n        uVar6 = uVar6 | uVar2;\n      }" if (parenthesized_expression "(*piVar7 != 0)" ( (binary_expression "*piVar7 != 0" (pointer_expression "*piVar7" * identifier) != number_literal) )) (compound_statement "{\n        uVar2 = FUN_00123346(param_1);\n        uVar6 = uVar6 | uVar2;\n      }" { (expression_statement "uVar2 = FUN_00123346(param_1);" (assignment_expression "uVar2 = FUN_00123346(param_1)" identifier = (call_expression "FUN_00123346(param_1)" identifier (argument_list "(param_1)" ( identifier )))) ;) (expression_statement "uVar6 = uVar6 | uVar2;" (assignment_expression "uVar6 = uVar6 | uVar2" identifier = (binary_expression "uVar6 | uVar2" identifier | identifier)) ;) })) (expression_statement "piVar7 = piVar7 + 1;" (assignment_expression "piVar7 = piVar7 + 1" identifier = (binary_expression "piVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(piVar7 != piVar3 + 0x7c)" ( (binary_expression "piVar7 != piVar3 + 0x7c" identifier != (binary_expression "piVar3 + 0x7c" identifier + number_literal)) )) ;) (expression_statement "FUN_00119825(0,piVar3);" (call_expression "FUN_00119825(0,piVar3)" identifier (argument_list "(0,piVar3)" ( number_literal , identifier ))) ;) (return_statement "return uVar6;" return identifier ;) })) (labeled_statement "LAB_001233b6:\n  param_1[1] = param_1[1] + 1;" statement_identifier : (expression_statement "param_1[1] = param_1[1] + 1;" (assignment_expression "param_1[1] = param_1[1] + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) = (binary_expression "param_1[1] + 1" (subscript_expression "param_1[1]" identifier [ number_literal ]) + number_literal)) ;)) (expression_statement "param_1[uVar5 + 4] = uVar2;" (assignment_expression "param_1[uVar5 + 4] = uVar2" (subscript_expression "param_1[uVar5 + 4]" identifier [ (binary_expression "uVar5 + 4" identifier + number_literal) ]) = identifier) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) < LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT >> LIT) )))) + LIT) )))) ;)) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) | (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression LIT << (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT) ))) ))))) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (while_statement while (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) / (cast_expression ( (type_descriptor TYPE) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT % IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression IDENT * LIT)) + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression IDENT * LIT)) + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression IDENT * LIT)) + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) < LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT % LIT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT % LIT) ))) + LIT) ]) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) < LIT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) == IDENT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) }) while (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) != LIT) )) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression LIT < (subscript_expression IDENT [ LIT ])) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( LIT , LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) - (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) - IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) )))) ;) (for_statement for ( (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) >> LIT) )))) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT - LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) )))) ;) (for_statement for ( (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) - (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) ))))) )) + LIT) >> LIT) )))) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT - LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( IDENT )) * IDENT) + LIT) )) / LIT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT | IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (binary_expression IDENT + LIT)) )) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , IDENT ))) ;) (return_statement return IDENT ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression (subscript_expression IDENT [ LIT ]) + LIT)) ;)) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) = IDENT) ;) (return_statement return LIT ;) })))
(function_definition "uint FUN_00123346(uint *param_1,int param_2)\n\n{\n  byte *pbVar1;\n  uint uVar2;\n  int *piVar3;\n  long lVar4;\n  ulong uVar5;\n  uint uVar6;\n  int *piVar7;\n  undefined8 *puVar8;\n  undefined8 *puVar9;\n  byte bVar10;\n  \n  bVar10 = 0;\n  if (param_1 == (uint *)0x0) {\n    return 0;\n  }\n  uVar6 = param_2 - 1;\n  if (*param_1 < 0xf81) {\nLAB_00123533:\n    pbVar1 = (byte *)((long)param_1 + (ulong)(uVar6 >> 3) + 0x10);\n    *pbVar1 = *pbVar1 | (byte)(1 << ((byte)uVar6 & 7));\n    return 0;\n  }\n  uVar2 = param_1[2];\n  while (uVar2 != 0) {\n    uVar5 = (ulong)uVar6 / (ulong)uVar2;\n    uVar6 = uVar6 % uVar2;\n    if (*(long *)(param_1 + uVar5 * 2 + 4) == 0) {\n      lVar4 = FUN_0011d296();\n      *(long *)(param_1 + uVar5 * 2 + 4) = lVar4;\n      if (lVar4 == 0) {\n        return 7;\n      }\n    }\n    param_1 = *(uint **)(param_1 + uVar5 * 2 + 4);\n    if (*param_1 < 0xf81) goto LAB_00123533;\n    uVar2 = param_1[2];\n  }\n  uVar2 = uVar6 + 1;\n  uVar5 = (ulong)(uVar6 % 0x7c);\n  if (param_1[(ulong)(uVar6 % 0x7c) + 4] == 0) {\n    if (param_1[1] < 0x7b) goto LAB_001233b6;\n  }\n  else {\n    do {\n      if (param_1[uVar5 + 4] == uVar2) {\n        return 0;\n      }\n      uVar6 = (int)uVar5 + 1;\n      if (0x7b < uVar6) {\n        uVar6 = 0;\n      }\n      uVar5 = (ulong)uVar6;\n    } while (param_1[uVar5 + 4] != 0);\n  }\n  if (0x3d < param_1[1]) {\n    piVar3 = (int *)FUN_001224ab(0,0x1f0);\n    if (piVar3 == (int *)0x0) {\n      return 7;\n    }\n    *(undefined8 *)piVar3 = *(undefined8 *)(param_1 + 4);\n    *(undefined8 *)(piVar3 + 0x7a) = *(undefined8 *)(param_1 + 0x7e);\n    lVar4 = (long)piVar3 - (long)((ulong)(piVar3 + 2) & 0xfffffffffffffff8);\n    puVar8 = (undefined8 *)((long)(param_1 + 4) - lVar4);\n    puVar9 = (undefined8 *)((ulong)(piVar3 + 2) & 0xfffffffffffffff8);\n    for (uVar5 = (ulong)((int)lVar4 + 0x1f0U >> 3); uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar9 = *puVar8;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n      puVar9 = puVar9 + (ulong)bVar10 * -2 + 1;\n    }\n    param_1[4] = 0;\n    param_1[5] = 0;\n    param_1[0x7e] = 0;\n    param_1[0x7f] = 0;\n    puVar8 = (undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8);\n    for (uVar5 = (ulong)(((int)(param_1 + 4) -\n                         (int)(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)) + 0x1f0U >>\n                        3); uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar8 = 0;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n    }\n    param_1[2] = (uint)(((ulong)*param_1 + 0x3d) / 0x3e);\n    uVar6 = FUN_00123346(param_1,uVar2);\n    piVar7 = piVar3;\n    do {\n      if (*piVar7 != 0) {\n        uVar2 = FUN_00123346(param_1);\n        uVar6 = uVar6 | uVar2;\n      }\n      piVar7 = piVar7 + 1;\n    } while (piVar7 != piVar3 + 0x7c);\n    FUN_00119825(0,piVar3);\n    return uVar6;\n  }\nLAB_001233b6:\n  param_1[1] = param_1[1] + 1;\n  param_1[uVar5 + 4] = uVar2;\n  return 0;\n}" (type_identifier "uint") (function_declarator "FUN_00123346(uint *param_1,int param_2)" (identifier "FUN_00123346") (parameter_list "(uint *param_1,int param_2)" (( "(") (parameter_declaration "uint *param_1" (type_identifier "uint") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  byte *pbVar1;\n  uint uVar2;\n  int *piVar3;\n  long lVar4;\n  ulong uVar5;\n  uint uVar6;\n  int *piVar7;\n  undefined8 *puVar8;\n  undefined8 *puVar9;\n  byte bVar10;\n  \n  bVar10 = 0;\n  if (param_1 == (uint *)0x0) {\n    return 0;\n  }\n  uVar6 = param_2 - 1;\n  if (*param_1 < 0xf81) {\nLAB_00123533:\n    pbVar1 = (byte *)((long)param_1 + (ulong)(uVar6 >> 3) + 0x10);\n    *pbVar1 = *pbVar1 | (byte)(1 << ((byte)uVar6 & 7));\n    return 0;\n  }\n  uVar2 = param_1[2];\n  while (uVar2 != 0) {\n    uVar5 = (ulong)uVar6 / (ulong)uVar2;\n    uVar6 = uVar6 % uVar2;\n    if (*(long *)(param_1 + uVar5 * 2 + 4) == 0) {\n      lVar4 = FUN_0011d296();\n      *(long *)(param_1 + uVar5 * 2 + 4) = lVar4;\n      if (lVar4 == 0) {\n        return 7;\n      }\n    }\n    param_1 = *(uint **)(param_1 + uVar5 * 2 + 4);\n    if (*param_1 < 0xf81) goto LAB_00123533;\n    uVar2 = param_1[2];\n  }\n  uVar2 = uVar6 + 1;\n  uVar5 = (ulong)(uVar6 % 0x7c);\n  if (param_1[(ulong)(uVar6 % 0x7c) + 4] == 0) {\n    if (param_1[1] < 0x7b) goto LAB_001233b6;\n  }\n  else {\n    do {\n      if (param_1[uVar5 + 4] == uVar2) {\n        return 0;\n      }\n      uVar6 = (int)uVar5 + 1;\n      if (0x7b < uVar6) {\n        uVar6 = 0;\n      }\n      uVar5 = (ulong)uVar6;\n    } while (param_1[uVar5 + 4] != 0);\n  }\n  if (0x3d < param_1[1]) {\n    piVar3 = (int *)FUN_001224ab(0,0x1f0);\n    if (piVar3 == (int *)0x0) {\n      return 7;\n    }\n    *(undefined8 *)piVar3 = *(undefined8 *)(param_1 + 4);\n    *(undefined8 *)(piVar3 + 0x7a) = *(undefined8 *)(param_1 + 0x7e);\n    lVar4 = (long)piVar3 - (long)((ulong)(piVar3 + 2) & 0xfffffffffffffff8);\n    puVar8 = (undefined8 *)((long)(param_1 + 4) - lVar4);\n    puVar9 = (undefined8 *)((ulong)(piVar3 + 2) & 0xfffffffffffffff8);\n    for (uVar5 = (ulong)((int)lVar4 + 0x1f0U >> 3); uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar9 = *puVar8;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n      puVar9 = puVar9 + (ulong)bVar10 * -2 + 1;\n    }\n    param_1[4] = 0;\n    param_1[5] = 0;\n    param_1[0x7e] = 0;\n    param_1[0x7f] = 0;\n    puVar8 = (undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8);\n    for (uVar5 = (ulong)(((int)(param_1 + 4) -\n                         (int)(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)) + 0x1f0U >>\n                        3); uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar8 = 0;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n    }\n    param_1[2] = (uint)(((ulong)*param_1 + 0x3d) / 0x3e);\n    uVar6 = FUN_00123346(param_1,uVar2);\n    piVar7 = piVar3;\n    do {\n      if (*piVar7 != 0) {\n        uVar2 = FUN_00123346(param_1);\n        uVar6 = uVar6 | uVar2;\n      }\n      piVar7 = piVar7 + 1;\n    } while (piVar7 != piVar3 + 0x7c);\n    FUN_00119825(0,piVar3);\n    return uVar6;\n  }\nLAB_001233b6:\n  param_1[1] = param_1[1] + 1;\n  param_1[uVar5 + 4] = uVar2;\n  return 0;\n}" ({ "{") (declaration "byte *pbVar1;" (type_identifier "byte") (pointer_declarator "*pbVar1" (* "*") (identifier "pbVar1")) (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int *piVar3;" (primitive_type "int") (pointer_declarator "*piVar3" (* "*") (identifier "piVar3")) (; ";")) (declaration "long lVar4;" (sized_type_specifier "long" (long "long")) (identifier "lVar4") (; ";")) (declaration "ulong uVar5;" (type_identifier "ulong") (identifier "uVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "int *piVar7;" (primitive_type "int") (pointer_declarator "*piVar7" (* "*") (identifier "piVar7")) (; ";")) (declaration "undefined8 *puVar8;" (type_identifier "undefined8") (pointer_declarator "*puVar8" (* "*") (identifier "puVar8")) (; ";")) (declaration "undefined8 *puVar9;" (type_identifier "undefined8") (pointer_declarator "*puVar9" (* "*") (identifier "puVar9")) (; ";")) (declaration "byte bVar10;" (type_identifier "byte") (identifier "bVar10") (; ";")) (expression_statement "bVar10 = 0;" (assignment_expression "bVar10 = 0" (identifier "bVar10") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_1 == (uint *)0x0) {\n    return 0;\n  }" (if "if") (parenthesized_expression "(param_1 == (uint *)0x0)" (( "(") (binary_expression "param_1 == (uint *)0x0" (identifier "param_1") (== "==") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    return 0;\n  }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar6 = param_2 - 1;" (assignment_expression "uVar6 = param_2 - 1" (identifier "uVar6") (= "=") (binary_expression "param_2 - 1" (identifier "param_2") (- "-") (number_literal "1"))) (; ";")) (if_statement "if (*param_1 < 0xf81) {\nLAB_00123533:\n    pbVar1 = (byte *)((long)param_1 + (ulong)(uVar6 >> 3) + 0x10);\n    *pbVar1 = *pbVar1 | (byte)(1 << ((byte)uVar6 & 7));\n    return 0;\n  }" (if "if") (parenthesized_expression "(*param_1 < 0xf81)" (( "(") (binary_expression "*param_1 < 0xf81" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (< "<") (number_literal "0xf81")) () ")")) (compound_statement "{\nLAB_00123533:\n    pbVar1 = (byte *)((long)param_1 + (ulong)(uVar6 >> 3) + 0x10);\n    *pbVar1 = *pbVar1 | (byte)(1 << ((byte)uVar6 & 7));\n    return 0;\n  }" ({ "{") (labeled_statement "LAB_00123533:\n    pbVar1 = (byte *)((long)param_1 + (ulong)(uVar6 >> 3) + 0x10);" (statement_identifier "LAB_00123533") (: ":") (expression_statement "pbVar1 = (byte *)((long)param_1 + (ulong)(uVar6 >> 3) + 0x10);" (assignment_expression "pbVar1 = (byte *)((long)param_1 + (ulong)(uVar6 >> 3) + 0x10)" (identifier "pbVar1") (= "=") (cast_expression "(byte *)((long)param_1 + (ulong)(uVar6 >> 3) + 0x10)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + (ulong)(uVar6 >> 3) + 0x10)" (( "(") (binary_expression "(long)param_1 + (ulong)(uVar6 >> 3) + 0x10" (binary_expression "(long)param_1 + (ulong)(uVar6 >> 3)" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (call_expression "(ulong)(uVar6 >> 3)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(uVar6 >> 3)" (( "(") (binary_expression "uVar6 >> 3" (identifier "uVar6") (>> ">>") (number_literal "3")) () ")")))) (+ "+") (number_literal "0x10")) () ")")))) (; ";"))) (expression_statement "*pbVar1 = *pbVar1 | (byte)(1 << ((byte)uVar6 & 7));" (assignment_expression "*pbVar1 = *pbVar1 | (byte)(1 << ((byte)uVar6 & 7))" (pointer_expression "*pbVar1" (* "*") (identifier "pbVar1")) (= "=") (binary_expression "*pbVar1 | (byte)(1 << ((byte)uVar6 & 7))" (pointer_expression "*pbVar1" (* "*") (identifier "pbVar1")) (| "|") (call_expression "(byte)(1 << ((byte)uVar6 & 7))" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(1 << ((byte)uVar6 & 7))" (( "(") (binary_expression "1 << ((byte)uVar6 & 7)" (number_literal "1") (<< "<<") (parenthesized_expression "((byte)uVar6 & 7)" (( "(") (binary_expression "(byte)uVar6 & 7" (cast_expression "(byte)uVar6" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "uVar6")) (& "&") (number_literal "7")) () ")"))) () ")"))))) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar2 = param_1[2];" (assignment_expression "uVar2 = param_1[2]" (identifier "uVar2") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (while_statement "while (uVar2 != 0) {\n    uVar5 = (ulong)uVar6 / (ulong)uVar2;\n    uVar6 = uVar6 % uVar2;\n    if (*(long *)(param_1 + uVar5 * 2 + 4) == 0) {\n      lVar4 = FUN_0011d296();\n      *(long *)(param_1 + uVar5 * 2 + 4) = lVar4;\n      if (lVar4 == 0) {\n        return 7;\n      }\n    }\n    param_1 = *(uint **)(param_1 + uVar5 * 2 + 4);\n    if (*param_1 < 0xf81) goto LAB_00123533;\n    uVar2 = param_1[2];\n  }" (while "while") (parenthesized_expression "(uVar2 != 0)" (( "(") (binary_expression "uVar2 != 0" (identifier "uVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar5 = (ulong)uVar6 / (ulong)uVar2;\n    uVar6 = uVar6 % uVar2;\n    if (*(long *)(param_1 + uVar5 * 2 + 4) == 0) {\n      lVar4 = FUN_0011d296();\n      *(long *)(param_1 + uVar5 * 2 + 4) = lVar4;\n      if (lVar4 == 0) {\n        return 7;\n      }\n    }\n    param_1 = *(uint **)(param_1 + uVar5 * 2 + 4);\n    if (*param_1 < 0xf81) goto LAB_00123533;\n    uVar2 = param_1[2];\n  }" ({ "{") (expression_statement "uVar5 = (ulong)uVar6 / (ulong)uVar2;" (assignment_expression "uVar5 = (ulong)uVar6 / (ulong)uVar2" (identifier "uVar5") (= "=") (binary_expression "(ulong)uVar6 / (ulong)uVar2" (cast_expression "(ulong)uVar6" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "uVar6")) (/ "/") (cast_expression "(ulong)uVar2" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "uVar2")))) (; ";")) (expression_statement "uVar6 = uVar6 % uVar2;" (assignment_expression "uVar6 = uVar6 % uVar2" (identifier "uVar6") (= "=") (binary_expression "uVar6 % uVar2" (identifier "uVar6") (% "%") (identifier "uVar2"))) (; ";")) (if_statement "if (*(long *)(param_1 + uVar5 * 2 + 4) == 0) {\n      lVar4 = FUN_0011d296();\n      *(long *)(param_1 + uVar5 * 2 + 4) = lVar4;\n      if (lVar4 == 0) {\n        return 7;\n      }\n    }" (if "if") (parenthesized_expression "(*(long *)(param_1 + uVar5 * 2 + 4) == 0)" (( "(") (binary_expression "*(long *)(param_1 + uVar5 * 2 + 4) == 0" (pointer_expression "*(long *)(param_1 + uVar5 * 2 + 4)" (* "*") (cast_expression "(long *)(param_1 + uVar5 * 2 + 4)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + uVar5 * 2 + 4)" (( "(") (binary_expression "param_1 + uVar5 * 2 + 4" (binary_expression "param_1 + uVar5 * 2" (identifier "param_1") (+ "+") (binary_expression "uVar5 * 2" (identifier "uVar5") (* "*") (number_literal "2"))) (+ "+") (number_literal "4")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      lVar4 = FUN_0011d296();\n      *(long *)(param_1 + uVar5 * 2 + 4) = lVar4;\n      if (lVar4 == 0) {\n        return 7;\n      }\n    }" ({ "{") (expression_statement "lVar4 = FUN_0011d296();" (assignment_expression "lVar4 = FUN_0011d296()" (identifier "lVar4") (= "=") (call_expression "FUN_0011d296()" (identifier "FUN_0011d296") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "*(long *)(param_1 + uVar5 * 2 + 4) = lVar4;" (assignment_expression "*(long *)(param_1 + uVar5 * 2 + 4) = lVar4" (pointer_expression "*(long *)(param_1 + uVar5 * 2 + 4)" (* "*") (cast_expression "(long *)(param_1 + uVar5 * 2 + 4)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + uVar5 * 2 + 4)" (( "(") (binary_expression "param_1 + uVar5 * 2 + 4" (binary_expression "param_1 + uVar5 * 2" (identifier "param_1") (+ "+") (binary_expression "uVar5 * 2" (identifier "uVar5") (* "*") (number_literal "2"))) (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "lVar4")) (; ";")) (if_statement "if (lVar4 == 0) {\n        return 7;\n      }" (if "if") (parenthesized_expression "(lVar4 == 0)" (( "(") (binary_expression "lVar4 == 0" (identifier "lVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        return 7;\n      }" ({ "{") (return_statement "return 7;" (return "return") (number_literal "7") (; ";")) (} "}"))) (} "}"))) (expression_statement "param_1 = *(uint **)(param_1 + uVar5 * 2 + 4);" (assignment_expression "param_1 = *(uint **)(param_1 + uVar5 * 2 + 4)" (identifier "param_1") (= "=") (pointer_expression "*(uint **)(param_1 + uVar5 * 2 + 4)" (* "*") (cast_expression "(uint **)(param_1 + uVar5 * 2 + 4)" (( "(") (type_descriptor "uint **" (type_identifier "uint") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + uVar5 * 2 + 4)" (( "(") (binary_expression "param_1 + uVar5 * 2 + 4" (binary_expression "param_1 + uVar5 * 2" (identifier "param_1") (+ "+") (binary_expression "uVar5 * 2" (identifier "uVar5") (* "*") (number_literal "2"))) (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if (*param_1 < 0xf81) goto LAB_00123533;" (if "if") (parenthesized_expression "(*param_1 < 0xf81)" (( "(") (binary_expression "*param_1 < 0xf81" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (< "<") (number_literal "0xf81")) () ")")) (goto_statement "goto LAB_00123533;" (goto "goto") (statement_identifier "LAB_00123533") (; ";"))) (expression_statement "uVar2 = param_1[2];" (assignment_expression "uVar2 = param_1[2]" (identifier "uVar2") (= "=") (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]"))) (; ";")) (} "}"))) (expression_statement "uVar2 = uVar6 + 1;" (assignment_expression "uVar2 = uVar6 + 1" (identifier "uVar2") (= "=") (binary_expression "uVar6 + 1" (identifier "uVar6") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar5 = (ulong)(uVar6 % 0x7c);" (assignment_expression "uVar5 = (ulong)(uVar6 % 0x7c)" (identifier "uVar5") (= "=") (call_expression "(ulong)(uVar6 % 0x7c)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(uVar6 % 0x7c)" (( "(") (binary_expression "uVar6 % 0x7c" (identifier "uVar6") (% "%") (number_literal "0x7c")) () ")")))) (; ";")) (if_statement "if (param_1[(ulong)(uVar6 % 0x7c) + 4] == 0) {\n    if (param_1[1] < 0x7b) goto LAB_001233b6;\n  }\n  else {\n    do {\n      if (param_1[uVar5 + 4] == uVar2) {\n        return 0;\n      }\n      uVar6 = (int)uVar5 + 1;\n      if (0x7b < uVar6) {\n        uVar6 = 0;\n      }\n      uVar5 = (ulong)uVar6;\n    } while (param_1[uVar5 + 4] != 0);\n  }" (if "if") (parenthesized_expression "(param_1[(ulong)(uVar6 % 0x7c) + 4] == 0)" (( "(") (binary_expression "param_1[(ulong)(uVar6 % 0x7c) + 4] == 0" (subscript_expression "param_1[(ulong)(uVar6 % 0x7c) + 4]" (identifier "param_1") ([ "[") (binary_expression "(ulong)(uVar6 % 0x7c) + 4" (call_expression "(ulong)(uVar6 % 0x7c)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(uVar6 % 0x7c)" (( "(") (binary_expression "uVar6 % 0x7c" (identifier "uVar6") (% "%") (number_literal "0x7c")) () ")"))) (+ "+") (number_literal "4")) (] "]")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if (param_1[1] < 0x7b) goto LAB_001233b6;\n  }" ({ "{") (if_statement "if (param_1[1] < 0x7b) goto LAB_001233b6;" (if "if") (parenthesized_expression "(param_1[1] < 0x7b)" (( "(") (binary_expression "param_1[1] < 0x7b" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (< "<") (number_literal "0x7b")) () ")")) (goto_statement "goto LAB_001233b6;" (goto "goto") (statement_identifier "LAB_001233b6") (; ";"))) (} "}")) (else_clause "else {\n    do {\n      if (param_1[uVar5 + 4] == uVar2) {\n        return 0;\n      }\n      uVar6 = (int)uVar5 + 1;\n      if (0x7b < uVar6) {\n        uVar6 = 0;\n      }\n      uVar5 = (ulong)uVar6;\n    } while (param_1[uVar5 + 4] != 0);\n  }" (else "else") (compound_statement "{\n    do {\n      if (param_1[uVar5 + 4] == uVar2) {\n        return 0;\n      }\n      uVar6 = (int)uVar5 + 1;\n      if (0x7b < uVar6) {\n        uVar6 = 0;\n      }\n      uVar5 = (ulong)uVar6;\n    } while (param_1[uVar5 + 4] != 0);\n  }" ({ "{") (do_statement "do {\n      if (param_1[uVar5 + 4] == uVar2) {\n        return 0;\n      }\n      uVar6 = (int)uVar5 + 1;\n      if (0x7b < uVar6) {\n        uVar6 = 0;\n      }\n      uVar5 = (ulong)uVar6;\n    } while (param_1[uVar5 + 4] != 0);" (do "do") (compound_statement "{\n      if (param_1[uVar5 + 4] == uVar2) {\n        return 0;\n      }\n      uVar6 = (int)uVar5 + 1;\n      if (0x7b < uVar6) {\n        uVar6 = 0;\n      }\n      uVar5 = (ulong)uVar6;\n    }" ({ "{") (if_statement "if (param_1[uVar5 + 4] == uVar2) {\n        return 0;\n      }" (if "if") (parenthesized_expression "(param_1[uVar5 + 4] == uVar2)" (( "(") (binary_expression "param_1[uVar5 + 4] == uVar2" (subscript_expression "param_1[uVar5 + 4]" (identifier "param_1") ([ "[") (binary_expression "uVar5 + 4" (identifier "uVar5") (+ "+") (number_literal "4")) (] "]")) (== "==") (identifier "uVar2")) () ")")) (compound_statement "{\n        return 0;\n      }" ({ "{") (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "uVar6 = (int)uVar5 + 1;" (assignment_expression "uVar6 = (int)uVar5 + 1" (identifier "uVar6") (= "=") (binary_expression "(int)uVar5 + 1" (cast_expression "(int)uVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar5")) (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (0x7b < uVar6) {\n        uVar6 = 0;\n      }" (if "if") (parenthesized_expression "(0x7b < uVar6)" (( "(") (binary_expression "0x7b < uVar6" (number_literal "0x7b") (< "<") (identifier "uVar6")) () ")")) (compound_statement "{\n        uVar6 = 0;\n      }" ({ "{") (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" (identifier "uVar6") (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "uVar5 = (ulong)uVar6;" (assignment_expression "uVar5 = (ulong)uVar6" (identifier "uVar5") (= "=") (cast_expression "(ulong)uVar6" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "uVar6"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_1[uVar5 + 4] != 0)" (( "(") (binary_expression "param_1[uVar5 + 4] != 0" (subscript_expression "param_1[uVar5 + 4]" (identifier "param_1") ([ "[") (binary_expression "uVar5 + 4" (identifier "uVar5") (+ "+") (number_literal "4")) (] "]")) (!= "!=") (number_literal "0")) () ")")) (; ";")) (} "}")))) (if_statement "if (0x3d < param_1[1]) {\n    piVar3 = (int *)FUN_001224ab(0,0x1f0);\n    if (piVar3 == (int *)0x0) {\n      return 7;\n    }\n    *(undefined8 *)piVar3 = *(undefined8 *)(param_1 + 4);\n    *(undefined8 *)(piVar3 + 0x7a) = *(undefined8 *)(param_1 + 0x7e);\n    lVar4 = (long)piVar3 - (long)((ulong)(piVar3 + 2) & 0xfffffffffffffff8);\n    puVar8 = (undefined8 *)((long)(param_1 + 4) - lVar4);\n    puVar9 = (undefined8 *)((ulong)(piVar3 + 2) & 0xfffffffffffffff8);\n    for (uVar5 = (ulong)((int)lVar4 + 0x1f0U >> 3); uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar9 = *puVar8;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n      puVar9 = puVar9 + (ulong)bVar10 * -2 + 1;\n    }\n    param_1[4] = 0;\n    param_1[5] = 0;\n    param_1[0x7e] = 0;\n    param_1[0x7f] = 0;\n    puVar8 = (undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8);\n    for (uVar5 = (ulong)(((int)(param_1 + 4) -\n                         (int)(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)) + 0x1f0U >>\n                        3); uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar8 = 0;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n    }\n    param_1[2] = (uint)(((ulong)*param_1 + 0x3d) / 0x3e);\n    uVar6 = FUN_00123346(param_1,uVar2);\n    piVar7 = piVar3;\n    do {\n      if (*piVar7 != 0) {\n        uVar2 = FUN_00123346(param_1);\n        uVar6 = uVar6 | uVar2;\n      }\n      piVar7 = piVar7 + 1;\n    } while (piVar7 != piVar3 + 0x7c);\n    FUN_00119825(0,piVar3);\n    return uVar6;\n  }" (if "if") (parenthesized_expression "(0x3d < param_1[1])" (( "(") (binary_expression "0x3d < param_1[1]" (number_literal "0x3d") (< "<") (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]"))) () ")")) (compound_statement "{\n    piVar3 = (int *)FUN_001224ab(0,0x1f0);\n    if (piVar3 == (int *)0x0) {\n      return 7;\n    }\n    *(undefined8 *)piVar3 = *(undefined8 *)(param_1 + 4);\n    *(undefined8 *)(piVar3 + 0x7a) = *(undefined8 *)(param_1 + 0x7e);\n    lVar4 = (long)piVar3 - (long)((ulong)(piVar3 + 2) & 0xfffffffffffffff8);\n    puVar8 = (undefined8 *)((long)(param_1 + 4) - lVar4);\n    puVar9 = (undefined8 *)((ulong)(piVar3 + 2) & 0xfffffffffffffff8);\n    for (uVar5 = (ulong)((int)lVar4 + 0x1f0U >> 3); uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar9 = *puVar8;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n      puVar9 = puVar9 + (ulong)bVar10 * -2 + 1;\n    }\n    param_1[4] = 0;\n    param_1[5] = 0;\n    param_1[0x7e] = 0;\n    param_1[0x7f] = 0;\n    puVar8 = (undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8);\n    for (uVar5 = (ulong)(((int)(param_1 + 4) -\n                         (int)(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)) + 0x1f0U >>\n                        3); uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar8 = 0;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n    }\n    param_1[2] = (uint)(((ulong)*param_1 + 0x3d) / 0x3e);\n    uVar6 = FUN_00123346(param_1,uVar2);\n    piVar7 = piVar3;\n    do {\n      if (*piVar7 != 0) {\n        uVar2 = FUN_00123346(param_1);\n        uVar6 = uVar6 | uVar2;\n      }\n      piVar7 = piVar7 + 1;\n    } while (piVar7 != piVar3 + 0x7c);\n    FUN_00119825(0,piVar3);\n    return uVar6;\n  }" ({ "{") (expression_statement "piVar3 = (int *)FUN_001224ab(0,0x1f0);" (assignment_expression "piVar3 = (int *)FUN_001224ab(0,0x1f0)" (identifier "piVar3") (= "=") (cast_expression "(int *)FUN_001224ab(0,0x1f0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_001224ab(0,0x1f0)" (identifier "FUN_001224ab") (argument_list "(0,0x1f0)" (( "(") (number_literal "0") (, ",") (number_literal "0x1f0") () ")"))))) (; ";")) (if_statement "if (piVar3 == (int *)0x0) {\n      return 7;\n    }" (if "if") (parenthesized_expression "(piVar3 == (int *)0x0)" (( "(") (binary_expression "piVar3 == (int *)0x0" (identifier "piVar3") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      return 7;\n    }" ({ "{") (return_statement "return 7;" (return "return") (number_literal "7") (; ";")) (} "}"))) (expression_statement "*(undefined8 *)piVar3 = *(undefined8 *)(param_1 + 4);" (assignment_expression "*(undefined8 *)piVar3 = *(undefined8 *)(param_1 + 4)" (pointer_expression "*(undefined8 *)piVar3" (* "*") (cast_expression "(undefined8 *)piVar3" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "piVar3"))) (= "=") (pointer_expression "*(undefined8 *)(param_1 + 4)" (* "*") (cast_expression "(undefined8 *)(param_1 + 4)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "*(undefined8 *)(piVar3 + 0x7a) = *(undefined8 *)(param_1 + 0x7e);" (assignment_expression "*(undefined8 *)(piVar3 + 0x7a) = *(undefined8 *)(param_1 + 0x7e)" (pointer_expression "*(undefined8 *)(piVar3 + 0x7a)" (* "*") (cast_expression "(undefined8 *)(piVar3 + 0x7a)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar3 + 0x7a)" (( "(") (binary_expression "piVar3 + 0x7a" (identifier "piVar3") (+ "+") (number_literal "0x7a")) () ")")))) (= "=") (pointer_expression "*(undefined8 *)(param_1 + 0x7e)" (* "*") (cast_expression "(undefined8 *)(param_1 + 0x7e)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x7e)" (( "(") (binary_expression "param_1 + 0x7e" (identifier "param_1") (+ "+") (number_literal "0x7e")) () ")"))))) (; ";")) (expression_statement "lVar4 = (long)piVar3 - (long)((ulong)(piVar3 + 2) & 0xfffffffffffffff8);" (assignment_expression "lVar4 = (long)piVar3 - (long)((ulong)(piVar3 + 2) & 0xfffffffffffffff8)" (identifier "lVar4") (= "=") (binary_expression "(long)piVar3 - (long)((ulong)(piVar3 + 2) & 0xfffffffffffffff8)" (cast_expression "(long)piVar3" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "piVar3")) (- "-") (cast_expression "(long)((ulong)(piVar3 + 2) & 0xfffffffffffffff8)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "((ulong)(piVar3 + 2) & 0xfffffffffffffff8)" (( "(") (binary_expression "(ulong)(piVar3 + 2) & 0xfffffffffffffff8" (call_expression "(ulong)(piVar3 + 2)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(piVar3 + 2)" (( "(") (binary_expression "piVar3 + 2" (identifier "piVar3") (+ "+") (number_literal "2")) () ")"))) (& "&") (number_literal "0xfffffffffffffff8")) () ")"))))) (; ";")) (expression_statement "puVar8 = (undefined8 *)((long)(param_1 + 4) - lVar4);" (assignment_expression "puVar8 = (undefined8 *)((long)(param_1 + 4) - lVar4)" (identifier "puVar8") (= "=") (cast_expression "(undefined8 *)((long)(param_1 + 4) - lVar4)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)(param_1 + 4) - lVar4)" (( "(") (binary_expression "(long)(param_1 + 4) - lVar4" (cast_expression "(long)(param_1 + 4)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))) (- "-") (identifier "lVar4")) () ")")))) (; ";")) (expression_statement "puVar9 = (undefined8 *)((ulong)(piVar3 + 2) & 0xfffffffffffffff8);" (assignment_expression "puVar9 = (undefined8 *)((ulong)(piVar3 + 2) & 0xfffffffffffffff8)" (identifier "puVar9") (= "=") (cast_expression "(undefined8 *)((ulong)(piVar3 + 2) & 0xfffffffffffffff8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((ulong)(piVar3 + 2) & 0xfffffffffffffff8)" (( "(") (binary_expression "(ulong)(piVar3 + 2) & 0xfffffffffffffff8" (call_expression "(ulong)(piVar3 + 2)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(piVar3 + 2)" (( "(") (binary_expression "piVar3 + 2" (identifier "piVar3") (+ "+") (number_literal "2")) () ")"))) (& "&") (number_literal "0xfffffffffffffff8")) () ")")))) (; ";")) (for_statement "for (uVar5 = (ulong)((int)lVar4 + 0x1f0U >> 3); uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar9 = *puVar8;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n      puVar9 = puVar9 + (ulong)bVar10 * -2 + 1;\n    }" (for "for") (( "(") (assignment_expression "uVar5 = (ulong)((int)lVar4 + 0x1f0U >> 3)" (identifier "uVar5") (= "=") (call_expression "(ulong)((int)lVar4 + 0x1f0U >> 3)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "((int)lVar4 + 0x1f0U >> 3)" (( "(") (binary_expression "(int)lVar4 + 0x1f0U >> 3" (binary_expression "(int)lVar4 + 0x1f0U" (cast_expression "(int)lVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "lVar4")) (+ "+") (number_literal "0x1f0U")) (>> ">>") (number_literal "3")) () ")")))) (; ";") (binary_expression "uVar5 != 0" (identifier "uVar5") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "uVar5 = uVar5 - 1" (identifier "uVar5") (= "=") (binary_expression "uVar5 - 1" (identifier "uVar5") (- "-") (number_literal "1"))) () ")") (compound_statement "{\n      *puVar9 = *puVar8;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n      puVar9 = puVar9 + (ulong)bVar10 * -2 + 1;\n    }" ({ "{") (expression_statement "*puVar9 = *puVar8;" (assignment_expression "*puVar9 = *puVar8" (pointer_expression "*puVar9" (* "*") (identifier "puVar9")) (= "=") (pointer_expression "*puVar8" (* "*") (identifier "puVar8"))) (; ";")) (expression_statement "puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;" (assignment_expression "puVar8 = puVar8 + (ulong)bVar10 * -2 + 1" (identifier "puVar8") (= "=") (binary_expression "puVar8 + (ulong)bVar10 * -2 + 1" (binary_expression "puVar8 + (ulong)bVar10 * -2" (identifier "puVar8") (+ "+") (binary_expression "(ulong)bVar10 * -2" (cast_expression "(ulong)bVar10" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar10")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar9 = puVar9 + (ulong)bVar10 * -2 + 1;" (assignment_expression "puVar9 = puVar9 + (ulong)bVar10 * -2 + 1" (identifier "puVar9") (= "=") (binary_expression "puVar9 + (ulong)bVar10 * -2 + 1" (binary_expression "puVar9 + (ulong)bVar10 * -2" (identifier "puVar9") (+ "+") (binary_expression "(ulong)bVar10 * -2" (cast_expression "(ulong)bVar10" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar10")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "param_1[4] = 0;" (assignment_expression "param_1[4] = 0" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[0x7e] = 0;" (assignment_expression "param_1[0x7e] = 0" (subscript_expression "param_1[0x7e]" (identifier "param_1") ([ "[") (number_literal "0x7e") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "param_1[0x7f] = 0;" (assignment_expression "param_1[0x7f] = 0" (subscript_expression "param_1[0x7f]" (identifier "param_1") ([ "[") (number_literal "0x7f") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar8 = (undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8);" (assignment_expression "puVar8 = (undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)" (identifier "puVar8") (= "=") (cast_expression "(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((ulong)(param_1 + 6) & 0xfffffffffffffff8)" (( "(") (binary_expression "(ulong)(param_1 + 6) & 0xfffffffffffffff8" (call_expression "(ulong)(param_1 + 6)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(param_1 + 6)" (( "(") (binary_expression "param_1 + 6" (identifier "param_1") (+ "+") (number_literal "6")) () ")"))) (& "&") (number_literal "0xfffffffffffffff8")) () ")")))) (; ";")) (for_statement "for (uVar5 = (ulong)(((int)(param_1 + 4) -\n                         (int)(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)) + 0x1f0U >>\n                        3); uVar5 != 0; uVar5 = uVar5 - 1) {\n      *puVar8 = 0;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n    }" (for "for") (( "(") (assignment_expression "uVar5 = (ulong)(((int)(param_1 + 4) -\n                         (int)(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)) + 0x1f0U >>\n                        3)" (identifier "uVar5") (= "=") (call_expression "(ulong)(((int)(param_1 + 4) -\n                         (int)(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)) + 0x1f0U >>\n                        3)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(((int)(param_1 + 4) -\n                         (int)(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)) + 0x1f0U >>\n                        3)" (( "(") (binary_expression "((int)(param_1 + 4) -\n                         (int)(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)) + 0x1f0U >>\n                        3" (binary_expression "((int)(param_1 + 4) -\n                         (int)(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)) + 0x1f0U" (parenthesized_expression "((int)(param_1 + 4) -\n                         (int)(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8))" (( "(") (binary_expression "(int)(param_1 + 4) -\n                         (int)(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)" (cast_expression "(int)(param_1 + 4)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))) (- "-") (cast_expression "(int)(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (cast_expression "(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((ulong)(param_1 + 6) & 0xfffffffffffffff8)" (( "(") (binary_expression "(ulong)(param_1 + 6) & 0xfffffffffffffff8" (call_expression "(ulong)(param_1 + 6)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(param_1 + 6)" (( "(") (binary_expression "param_1 + 6" (identifier "param_1") (+ "+") (number_literal "6")) () ")"))) (& "&") (number_literal "0xfffffffffffffff8")) () ")"))))) () ")")) (+ "+") (number_literal "0x1f0U")) (>> ">>") (number_literal "3")) () ")")))) (; ";") (binary_expression "uVar5 != 0" (identifier "uVar5") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "uVar5 = uVar5 - 1" (identifier "uVar5") (= "=") (binary_expression "uVar5 - 1" (identifier "uVar5") (- "-") (number_literal "1"))) () ")") (compound_statement "{\n      *puVar8 = 0;\n      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;\n    }" ({ "{") (expression_statement "*puVar8 = 0;" (assignment_expression "*puVar8 = 0" (pointer_expression "*puVar8" (* "*") (identifier "puVar8")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;" (assignment_expression "puVar8 = puVar8 + (ulong)bVar10 * -2 + 1" (identifier "puVar8") (= "=") (binary_expression "puVar8 + (ulong)bVar10 * -2 + 1" (binary_expression "puVar8 + (ulong)bVar10 * -2" (identifier "puVar8") (+ "+") (binary_expression "(ulong)bVar10 * -2" (cast_expression "(ulong)bVar10" (( "(") (type_descriptor "ulong" (type_identifier "ulong")) () ")") (identifier "bVar10")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "param_1[2] = (uint)(((ulong)*param_1 + 0x3d) / 0x3e);" (assignment_expression "param_1[2] = (uint)(((ulong)*param_1 + 0x3d) / 0x3e)" (subscript_expression "param_1[2]" (identifier "param_1") ([ "[") (number_literal "2") (] "]")) (= "=") (call_expression "(uint)(((ulong)*param_1 + 0x3d) / 0x3e)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(((ulong)*param_1 + 0x3d) / 0x3e)" (( "(") (binary_expression "((ulong)*param_1 + 0x3d) / 0x3e" (parenthesized_expression "((ulong)*param_1 + 0x3d)" (( "(") (binary_expression "(ulong)*param_1 + 0x3d" (binary_expression "(ulong)*param_1" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (* "*") (identifier "param_1")) (+ "+") (number_literal "0x3d")) () ")")) (/ "/") (number_literal "0x3e")) () ")")))) (; ";")) (expression_statement "uVar6 = FUN_00123346(param_1,uVar2);" (assignment_expression "uVar6 = FUN_00123346(param_1,uVar2)" (identifier "uVar6") (= "=") (call_expression "FUN_00123346(param_1,uVar2)" (identifier "FUN_00123346") (argument_list "(param_1,uVar2)" (( "(") (identifier "param_1") (, ",") (identifier "uVar2") () ")")))) (; ";")) (expression_statement "piVar7 = piVar3;" (assignment_expression "piVar7 = piVar3" (identifier "piVar7") (= "=") (identifier "piVar3")) (; ";")) (do_statement "do {\n      if (*piVar7 != 0) {\n        uVar2 = FUN_00123346(param_1);\n        uVar6 = uVar6 | uVar2;\n      }\n      piVar7 = piVar7 + 1;\n    } while (piVar7 != piVar3 + 0x7c);" (do "do") (compound_statement "{\n      if (*piVar7 != 0) {\n        uVar2 = FUN_00123346(param_1);\n        uVar6 = uVar6 | uVar2;\n      }\n      piVar7 = piVar7 + 1;\n    }" ({ "{") (if_statement "if (*piVar7 != 0) {\n        uVar2 = FUN_00123346(param_1);\n        uVar6 = uVar6 | uVar2;\n      }" (if "if") (parenthesized_expression "(*piVar7 != 0)" (( "(") (binary_expression "*piVar7 != 0" (pointer_expression "*piVar7" (* "*") (identifier "piVar7")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        uVar2 = FUN_00123346(param_1);\n        uVar6 = uVar6 | uVar2;\n      }" ({ "{") (expression_statement "uVar2 = FUN_00123346(param_1);" (assignment_expression "uVar2 = FUN_00123346(param_1)" (identifier "uVar2") (= "=") (call_expression "FUN_00123346(param_1)" (identifier "FUN_00123346") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")")))) (; ";")) (expression_statement "uVar6 = uVar6 | uVar2;" (assignment_expression "uVar6 = uVar6 | uVar2" (identifier "uVar6") (= "=") (binary_expression "uVar6 | uVar2" (identifier "uVar6") (| "|") (identifier "uVar2"))) (; ";")) (} "}"))) (expression_statement "piVar7 = piVar7 + 1;" (assignment_expression "piVar7 = piVar7 + 1" (identifier "piVar7") (= "=") (binary_expression "piVar7 + 1" (identifier "piVar7") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(piVar7 != piVar3 + 0x7c)" (( "(") (binary_expression "piVar7 != piVar3 + 0x7c" (identifier "piVar7") (!= "!=") (binary_expression "piVar3 + 0x7c" (identifier "piVar3") (+ "+") (number_literal "0x7c"))) () ")")) (; ";")) (expression_statement "FUN_00119825(0,piVar3);" (call_expression "FUN_00119825(0,piVar3)" (identifier "FUN_00119825") (argument_list "(0,piVar3)" (( "(") (number_literal "0") (, ",") (identifier "piVar3") () ")"))) (; ";")) (return_statement "return uVar6;" (return "return") (identifier "uVar6") (; ";")) (} "}"))) (labeled_statement "LAB_001233b6:\n  param_1[1] = param_1[1] + 1;" (statement_identifier "LAB_001233b6") (: ":") (expression_statement "param_1[1] = param_1[1] + 1;" (assignment_expression "param_1[1] = param_1[1] + 1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (= "=") (binary_expression "param_1[1] + 1" (subscript_expression "param_1[1]" (identifier "param_1") ([ "[") (number_literal "1") (] "]")) (+ "+") (number_literal "1"))) (; ";"))) (expression_statement "param_1[uVar5 + 4] = uVar2;" (assignment_expression "param_1[uVar5 + 4] = uVar2" (subscript_expression "param_1[uVar5 + 4]" (identifier "param_1") ([ "[") (binary_expression "uVar5 + 4" (identifier "uVar5") (+ "+") (number_literal "4")) (] "]")) (= "=") (identifier "uVar2")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

int function_1(type_1 *var_1,type_2 var_2)

{
  type_2 var_4;
  type_3 var_13;
  type_1 *var_6;
  type_2 *var_8;
  long var_9;
  type_4 var_10;
  type_3 var_3;
  type_2 *var_14;
  type_5 *var_12;
  type_5 *var_11;
  type_6 bVar10;
  
  bVar10 = 0;
  if (var_1 == (type_1 *)0x0) {
    return 0;
  }
  var_3 = var_2 - 1;
  if (var_1->iSize < 0xf81) {
LAB_00123533:
    (var_1->u).aBitmap[var_3 >> 3] = (var_1->u).aBitmap[var_3 >> 3] | (type_6)(1 << ((type_6)var_3 & 7));
    return 0;
  }
  var_4 = var_1->iDivisor;
  while (var_4 != 0) {
    var_13 = var_3 / var_4;
    var_3 = var_3 % var_4;
    if (*(long *)((long)&var_1->u + (type_4)var_13 * 8) == 0) {
      var_6 = var_5(var_4);
      *(type_1 **)((long)&var_1->u + (type_4)var_13 * 8) = var_6;
      if (var_6 == (type_1 *)0x0) {
        return 7;
      }
    }
    var_1 = *(type_1 **)((long)&var_1->u + (type_4)var_13 * 8);
    if (var_1->iSize < 0xf81) goto LAB_00123533;
    var_4 = var_1->iDivisor;
  }
  var_4 = var_3 + 1;
  var_3 = var_3 % 0x7c;
  if (*(int *)((long)&var_1->u + (type_4)var_3 * 4) == 0) {
    if (var_1->nSet < 0x7b) goto LAB_001233b6;
  }
  else {
    do {
      if (*(type_2 *)((long)&var_1->u + (type_4)var_3 * 4) == var_4) {
        return 0;
      }
      var_3 = var_3 + 1;
      if (0x7b < var_3) {
        var_3 = 0;
      }
    } while (*(int *)((long)&var_1->u + (type_4)var_3 * 4) != 0);
  }
  if (0x3d < var_1->nSet) {
    var_8 = (type_2 *)var_7((type_7 *)0x0,0x1f0);
    if (var_8 == (type_2 *)0x0) {
      return 7;
    }
    *(type_1 **)var_8 = (var_1->u).apSub[0];
    *(type_1 **)(var_8 + 0x7a) = (var_1->u).apSub[0x3d];
    var_9 = (long)var_8 - (long)((type_4)(var_8 + 2) & 0xfffffffffffffff8);
    var_11 = (type_5 *)((long)&var_1->u - var_9);
    var_12 = (type_5 *)((type_4)(var_8 + 2) & 0xfffffffffffffff8);
    for (var_10 = (type_4)((int)var_9 + 0x1f0U >> 3); var_10 != 0; var_10 = var_10 - 1) {
      *var_12 = *var_11;
      var_11 = var_11 + (type_4)bVar10 * -2 + 1;
      var_12 = var_12 + (type_4)bVar10 * -2 + 1;
    }
    (var_1->u).apSub[0] = (type_1 *)0x0;
    (var_1->u).apSub[0x3d] = (type_1 *)0x0;
    var_11 = (type_5 *)((type_4)((long)&var_1->u + 8U) & 0xfffffffffffffff8);
    var_10 = (type_4)(((int)&var_1->u - (int)var_11) + 0x1f0U >> 3);
    for (; var_10 != 0; var_10 = var_10 - 1) {
      *var_11 = 0;
      var_11 = var_11 + (type_4)bVar10 * -2 + 1;
    }
    var_1->iDivisor = (type_2)(((type_4)var_1->iSize + 0x3d) / 0x3e);
    var_3 = function_1(var_1,var_4);
    var_14 = var_8;
    do {
      if (*var_14 != 0) {
        var_13 = function_1(var_1,*var_14);
        var_3 = var_3 | var_13;
      }
      var_14 = var_14 + 1;
    } while (var_14 != var_8 + 0x7c);
    var_15((type_7 *)0x0,var_8);
    return var_3;
  }
LAB_001233b6:
  var_1->nSet = var_1->nSet + 1;
  *(type_2 *)((long)&var_1->u + (type_4)var_3 * 4) = var_4;
  return 0;
}


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

uint MASKED(uint *param_1,int param_2)

{
  byte *pbVar1;
  uint uVar2;
  int *piVar3;
  long lVar4;
  ulong uVar5;
  uint uVar6;
  int *piVar7;
  undefined8 *puVar8;
  undefined8 *puVar9;
  byte bVar10;
  
  bVar10 = 0;
  if (param_1 == (uint *)0x0) {
    return 0;
  }
  uVar6 = param_2 - 1;
  if (*param_1 < 0xf81) {
LAB_00123533:
    pbVar1 = (byte *)((long)param_1 + (ulong)(uVar6 >> 3) + 0x10);
    *pbVar1 = *pbVar1 | (byte)(1 << ((byte)uVar6 & 7));
    return 0;
  }
  uVar2 = param_1[2];
  while (uVar2 != 0) {
    uVar5 = (ulong)uVar6 / (ulong)uVar2;
    uVar6 = uVar6 % uVar2;
    if (*(long *)(param_1 + uVar5 * 2 + 4) == 0) {
      lVar4 = FUN_0011d296();
      *(long *)(param_1 + uVar5 * 2 + 4) = lVar4;
      if (lVar4 == 0) {
        return 7;
      }
    }
    param_1 = *(uint **)(param_1 + uVar5 * 2 + 4);
    if (*param_1 < 0xf81) goto LAB_00123533;
    uVar2 = param_1[2];
  }
  uVar2 = uVar6 + 1;
  uVar5 = (ulong)(uVar6 % 0x7c);
  if (param_1[(ulong)(uVar6 % 0x7c) + 4] == 0) {
    if (param_1[1] < 0x7b) goto LAB_001233b6;
  }
  else {
    do {
      if (param_1[uVar5 + 4] == uVar2) {
        return 0;
      }
      uVar6 = (int)uVar5 + 1;
      if (0x7b < uVar6) {
        uVar6 = 0;
      }
      uVar5 = (ulong)uVar6;
    } while (param_1[uVar5 + 4] != 0);
  }
  if (0x3d < param_1[1]) {
    piVar3 = (int *)FUN_001224ab(0,0x1f0);
    if (piVar3 == (int *)0x0) {
      return 7;
    }
    *(undefined8 *)piVar3 = *(undefined8 *)(param_1 + 4);
    *(undefined8 *)(piVar3 + 0x7a) = *(undefined8 *)(param_1 + 0x7e);
    lVar4 = (long)piVar3 - (long)((ulong)(piVar3 + 2) & 0xfffffffffffffff8);
    puVar8 = (undefined8 *)((long)(param_1 + 4) - lVar4);
    puVar9 = (undefined8 *)((ulong)(piVar3 + 2) & 0xfffffffffffffff8);
    for (uVar5 = (ulong)((int)lVar4 + 0x1f0U >> 3); uVar5 != 0; uVar5 = uVar5 - 1) {
      *puVar9 = *puVar8;
      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;
      puVar9 = puVar9 + (ulong)bVar10 * -2 + 1;
    }
    param_1[4] = 0;
    param_1[5] = 0;
    param_1[0x7e] = 0;
    param_1[0x7f] = 0;
    puVar8 = (undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8);
    for (uVar5 = (ulong)(((int)(param_1 + 4) -
                         (int)(undefined8 *)((ulong)(param_1 + 6) & 0xfffffffffffffff8)) + 0x1f0U >>
                        3); uVar5 != 0; uVar5 = uVar5 - 1) {
      *puVar8 = 0;
      puVar8 = puVar8 + (ulong)bVar10 * -2 + 1;
    }
    param_1[2] = (uint)(((ulong)*param_1 + 0x3d) / 0x3e);
    uVar6 = MASKED(param_1,uVar2);
    piVar7 = piVar3;
    do {
      if (*piVar7 != 0) {
        uVar2 = MASKED(param_1);
        uVar6 = uVar6 | uVar2;
      }
      piVar7 = piVar7 + 1;
    } while (piVar7 != piVar3 + 0x7c);
    FUN_00119825(0,piVar3);
    return uVar6;
  }
LAB_001233b6:
  param_1[1] = param_1[1] + 1;
  param_1[uVar5 + 4] = uVar2;
  return 0;
}

