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

int sqlite3_test_control(int op,...)

{
  uchar uVar1;
  uchar uVar2;
  uchar uVar3;
  byte bVar4;
  void_function xBenignEnd;
  sqlite3PrngType *psVar5;
  Bitvec *p;
  int iVar6;
  int iVar7;
  int iVar8;
  uint uVar9;
  int iVar10;
  byte *pbVar11;
  int x_1;
  sqlite3PrngType *psVar12;
  sqlite3 *psVar13;
  sqlite3 *psVar14;
  int x_2;
  int in_GS_OFFSET;
  sqlite3 *in_stack_00000008;
  _func_void *in_stack_0000000c;
  byte in_stack_00000010;
  int in_stack_00000014;
  u64 in_stack_ffffffb4;
  void *local_3c;
  void *local_30;
  int i;
  int local_20;
  undefined4 uStack_14;
  
  psVar13 = (sqlite3 *)sqlite3PendingByte;
  uStack_14 = 0xeec89;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  switch(op) {
  case 5:
    psVar5 = &sqlite3SavedPrng;
    psVar12 = &sqlite3Prng;
    goto LAB_000eecfc;
  case 6:
    psVar5 = &sqlite3Prng;
    psVar12 = &sqlite3SavedPrng;
LAB_000eecfc:
    for (iVar8 = 0x40; iVar8 != 0; iVar8 = iVar8 + -1) {
      uVar1 = psVar12->i;
      uVar2 = psVar12->j;
      uVar3 = psVar12->s[0];
      psVar5->isInit = psVar12->isInit;
      psVar5->i = uVar1;
      psVar5->j = uVar2;
      psVar5->s[0] = uVar3;
      psVar12 = (sqlite3PrngType *)(psVar12->s + 1);
      psVar5 = (sqlite3PrngType *)(psVar5->s + 1);
    }
    uVar1 = psVar12->i;
    psVar5->isInit = psVar12->isInit;
    psVar5->i = uVar1;
    psVar5->j = psVar12->j;
_L55077:
    psVar13 = (sqlite3 *)0x0;
    break;
  case 7:
    psVar13 = (sqlite3 *)0x0;
    sqlite3_randomness(0,(void *)0x0);
    break;
  case 8:
    p = (Bitvec *)sqlite3MallocZero(in_stack_ffffffb4);
    if (p == (Bitvec *)0x0) {
      local_3c = sqlite3MallocZero(in_stack_ffffffb4);
      local_30 = sqlite3_malloc64(0x200);
    }
    else {
      p->iSize = (u32)in_stack_00000008;
      local_3c = sqlite3MallocZero(in_stack_ffffffb4);
      local_30 = sqlite3_malloc64(0x200);
      if ((local_3c != (void *)0x0) && (local_30 != (void *)0x0)) {
        iVar8 = 0;
        do {
          while( true ) {
            iVar7 = iVar8 * 4;
            uVar9 = *(uint *)(in_stack_0000000c + iVar8 * 4);
            if (uVar9 == 0) {
              iVar8 = sqlite3BitvecTest(p,(u32)((int)&in_stack_00000008->pVfs + 1));
              iVar7 = sqlite3BitvecTest(p,0);
              i = 1;
              psVar14 = (sqlite3 *)((p->iSize - (int)in_stack_00000008) + iVar8 + iVar7);
              psVar13 = psVar14;
              if ((int)in_stack_00000008 < 1) goto LAB_000ef06d;
              goto LAB_000ef13b;
            }
            if ((uVar9 < 6) && ((1 << ((byte)uVar9 & 0x1f) & 0x26U) != 0)) {
              iVar10 = *(int *)(in_stack_0000000c + iVar7 + 8);
              i = iVar10 + -1;
              *(int *)(in_stack_0000000c + iVar7 + 8) =
                   iVar10 + *(int *)(in_stack_0000000c + iVar7 + 0xc);
              iVar10 = 4;
            }
            else {
              sqlite3_randomness(4,&i);
              iVar10 = 2;
            }
            iVar6 = *(int *)(in_stack_0000000c + iVar7 + 4) + -1;
            *(int *)(in_stack_0000000c + iVar7 + 4) = iVar6;
            if (iVar6 < 1) {
              iVar8 = iVar10 + iVar8;
            }
            i = (int)((longlong)(ulonglong)(i & 0x7fffffff) % (longlong)(int)in_stack_00000008);
            pbVar11 = (byte *)((i + 1 >> 3) + (int)local_3c);
            bVar4 = (byte)(1 << ((byte)(i + 1) & 7));
            if ((uVar9 & 1) != 0) break;
            *pbVar11 = *pbVar11 & ~bVar4;
            sqlite3BitvecClear(p,i + 1,local_30);
          }
          *pbVar11 = *pbVar11 | bVar4;
        } while ((uVar9 == 5) || (iVar7 = sqlite3BitvecSet(p,i + 1), iVar7 == 0));
      }
    }
    psVar13 = (sqlite3 *)&DAT_ffffffff;
    goto LAB_000ef06d;
  case 9:
    psVar13 = (sqlite3 *)0x0;
    sqlite3Config.xTestCallback = (_func_int_int *)in_stack_00000008;
    if (in_stack_00000008 != (sqlite3 *)0x0) {
      psVar13 = (sqlite3 *)(*(code *)in_stack_00000008)(0);
    }
    break;
  case 10:
    psVar13 = (sqlite3 *)0x0;
    sqlite3Hooks.xBenignBegin = (_func_void *)in_stack_00000008;
    sqlite3Hooks.xBenignEnd = in_stack_0000000c;
    break;
  case 0xb:
    if (in_stack_00000008 != (sqlite3 *)0x0) {
      sqlite3PendingByte = (int)in_stack_00000008;
    }
    break;
  case 0xc:
    i = 0;
    psVar13 = (sqlite3 *)0x0;
    break;
  case 0xd:
    psVar13 = in_stack_00000008;
    break;
  case 0xe:
    sqlite3_mutex_enter(in_stack_00000008->mutex);
    sqlite3BtreeSetPageSize(in_stack_00000008->aDb->pBt,0,(int)in_stack_0000000c,0);
    sqlite3_mutex_leave(in_stack_00000008->mutex);
    psVar13 = (sqlite3 *)0x0;
    break;
  case 0xf:
    in_stack_00000008->dbOptFlags = (u16)in_stack_0000000c;
    psVar13 = (sqlite3 *)0x0;
    break;
  default:
    goto _L55077;
  case 0x11:
    sqlite3Config.bInternalFunctions = (int)in_stack_00000008;
    psVar13 = (sqlite3 *)0x0;
    break;
  case 0x12:
    sqlite3Config.bLocaltimeFault = (int)in_stack_00000008;
    psVar13 = (sqlite3 *)0x0;
    break;
  case 0x13:
    sqlite3Config.iOnceResetThreshold = (int)in_stack_00000008;
    psVar13 = (sqlite3 *)0x0;
    break;
  case 0x14:
    sqlite3Config.neverCorrupt = (int)in_stack_00000008;
    psVar13 = (sqlite3 *)0x0;
    break;
  case 0x16:
    psVar13 = (sqlite3 *)0x1e212;
    break;
  case 0x17:
    psVar13 = (sqlite3 *)(uint)(sqlite3Config.isInit == 0);
    break;
  case 0x18:
    in_stack_00000008->nMaxSorterMmap = (int)in_stack_0000000c;
    psVar13 = (sqlite3 *)0x0;
    break;
  case 0x19:
    sqlite3_mutex_enter(in_stack_00000008->mutex);
    iVar8 = sqlite3FindDbName(in_stack_00000008,(char *)in_stack_0000000c);
    (in_stack_00000008->init).iDb = (u8)iVar8;
    in_stack_00000010 = in_stack_00000010 & 1;
    (in_stack_00000008->init).busy = in_stack_00000010;
    (in_stack_00000008->init).field_0x6 =
         (in_stack_00000008->init).field_0x6 & 0xfd | in_stack_00000010 * '\x02';
    (in_stack_00000008->init).newTnum = in_stack_00000014;
    if ((0 < in_stack_00000014) && (in_stack_00000010 == 0)) {
      sqlite3ResetAllSchemasOfConnection(in_stack_00000008);
    }
    sqlite3_mutex_leave(in_stack_00000008->mutex);
    psVar13 = (sqlite3 *)0x0;
  }
LAB_000eecd0:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return (int)psVar13;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
  while (i = (int)psVar13 + 1, psVar13 = psVar14, i <= (int)in_stack_00000008) {
LAB_000ef13b:
    psVar13 = (sqlite3 *)i;
    uVar9 = sqlite3BitvecTest(p,i);
    if (uVar9 != ((int)(uint)*(byte *)((int)local_3c + ((int)psVar13 >> 3)) >> ((byte)psVar13 & 7) &
                 1U)) break;
  }
LAB_000ef06d:
  sqlite3_free(local_30);
  sqlite3_free(local_3c);
  sqlite3BitvecDestroy(p);
  goto LAB_000eecd0;
}



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

code * FUN_000eec80(undefined4 param_1,code *param_2,int param_3,byte param_4,int param_5)

{
  int *piVar1;
  byte bVar2;
  code cVar3;
  undefined4 *puVar4;
  int *piVar5;
  int iVar6;
  uint uVar7;
  int iVar8;
  byte *pbVar9;
  undefined4 *puVar10;
  code *pcVar11;
  code *pcVar12;
  int iVar13;
  int in_GS_OFFSET;
  int iStack_3c;
  int iStack_30;
  code *pcStack_24;
  int local_20;
  undefined4 uStack_14;
  
  pcVar11 = DAT_00149164;
  uStack_14 = 0xeec89;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  switch(param_1) {
  case 5:
    puVar4 = (undefined4 *)0x14a740;
    puVar10 = (undefined4 *)&DAT_0014a860;
    goto code_r0x000eecfc;
  case 6:
    puVar4 = (undefined4 *)&DAT_0014a860;
    puVar10 = (undefined4 *)0x14a740;
code_r0x000eecfc:
    for (iVar13 = 0x40; iVar13 != 0; iVar13 = iVar13 + -1) {
      *puVar4 = *puVar10;
      puVar10 = puVar10 + 1;
      puVar4 = puVar4 + 1;
    }
    *(undefined2 *)puVar4 = *(undefined2 *)puVar10;
    *(undefined1 *)((int)puVar4 + 2) = *(undefined1 *)((int)puVar10 + 2);
LAB_000eed12:
    pcVar11 = (code *)0x0;
    break;
  case 7:
    pcVar11 = (code *)0x0;
    FUN_00077d40(0,0);
    break;
  case 8:
    piVar5 = (int *)FUN_000249a0();
    if (piVar5 == (int *)0x0) {
      iStack_3c = FUN_000249a0();
      iStack_30 = FUN_0003f0c0(0x200,0,iStack_3c,iStack_3c);
    }
    else {
      *piVar5 = (int)param_2;
      iStack_3c = FUN_000249a0();
      iStack_30 = FUN_0003f0c0(0x200,0);
      if ((iStack_3c != 0) && (iStack_30 != 0)) {
        iVar13 = 0;
        do {
          while( true ) {
            iVar6 = iVar13 * 4;
            uVar7 = *(uint *)(param_3 + iVar13 * 4);
            if (uVar7 == 0) {
              iVar13 = FUN_00029980();
              iVar6 = FUN_00029980();
              pcStack_24 = (code *)0x1;
              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);
              pcVar11 = pcVar12;
              if ((int)param_2 < 1) goto code_r0x000ef06d;
              goto code_r0x000ef13b;
            }
            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {
              piVar1 = (int *)(param_3 + 8 + iVar6);
              iVar8 = *piVar1;
              pcStack_24 = (code *)(iVar8 + -1);
              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);
              iVar8 = 4;
            }
            else {
              FUN_00077d40(4,&pcStack_24);
              iVar8 = 2;
            }
            piVar1 = (int *)(param_3 + 4 + iVar6);
            iVar6 = *piVar1 + -1;
            *piVar1 = iVar6;
            if (iVar6 < 1) {
              iVar13 = iVar8 + iVar13;
            }
            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %
                                 (longlong)(int)param_2);
            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);
            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));
            if ((uVar7 & 1) != 0) break;
            *pbVar9 = *pbVar9 & ~bVar2;
            FUN_000211d0();
          }
          *pbVar9 = *pbVar9 | bVar2;
        } while ((uVar7 == 5) || (iVar6 = FUN_00037bb0(), iVar6 == 0));
      }
    }
    pcVar11 = (code *)&DAT_ffffffff;
    goto code_r0x000ef06d;
  case 9:
    pcVar11 = (code *)0x0;
    DAT_00149280 = param_2;
    if (param_2 != (code *)0x0) {
      pcVar11 = (code *)(*param_2)(0);
    }
    break;
  case 10:
    pcVar11 = (code *)0x0;
    DAT_0014a974 = param_2;
    DAT_0014a978 = param_3;
    break;
  case 0xb:
    if (param_2 != (code *)0x0) {
      DAT_00149164 = param_2;
    }
    break;
  case 0xc:
    pcStack_24 = (code *)0x0;
    pcVar11 = (code *)0x0;
    break;
  case 0xd:
    pcVar11 = param_2;
    break;
  case 0xe:
    FUN_000197c0(*(undefined4 *)(param_2 + 0xc));
    FUN_0003a660(0);
    FUN_000197f0(*(undefined4 *)(param_2 + 0xc));
    pcVar11 = (code *)0x0;
    break;
  case 0xf:
    *(short *)(param_2 + 0x48) = (short)param_3;
    pcVar11 = (code *)0x0;
    break;
  default:
    goto LAB_000eed12;
  case 0x11:
    DAT_00149288 = param_2;
    pcVar11 = (code *)0x0;
    break;
  case 0x12:
    DAT_00149284 = param_2;
    pcVar11 = (code *)0x0;
    break;
  case 0x13:
    pcRam0014928c = param_2;
    pcVar11 = (code *)0x0;
    break;
  case 0x14:
    pcRam0014919c = param_2;
    pcVar11 = (code *)0x0;
    break;
  case 0x16:
    pcVar11 = (code *)0x1e212;
    break;
  case 0x17:
    pcVar11 = (code *)(uint)(DAT_0014925c == 0);
    break;
  case 0x18:
    *(int *)(param_2 + 0x98) = param_3;
    pcVar11 = (code *)0x0;
    break;
  case 0x19:
    FUN_000197c0(*(undefined4 *)(param_2 + 0xc));
    cVar3 = (code)FUN_00027d70();
    param_2[0xa0] = cVar3;
    cVar3 = (code)(param_4 & 1);
    param_2[0xa1] = cVar3;
    param_2[0xa2] = (code)((byte)param_2[0xa2] & 0xfd | (char)cVar3 * '\x02');
    *(int *)(param_2 + 0x9c) = param_5;
    if ((0 < param_5) && (cVar3 == (code)0x0)) {
      FUN_00039e00();
    }
    FUN_000197f0(*(undefined4 *)(param_2 + 0xc));
    pcVar11 = (code *)0x0;
  }
LAB_000eecd0:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return pcVar11;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000f4bf0();
  while (pcStack_24 = pcVar11 + 1, pcVar11 = pcVar12, (int)pcStack_24 <= (int)param_2) {
code_r0x000ef13b:
    pcVar11 = pcStack_24;
    uVar7 = FUN_00029980();
    if (uVar7 != ((int)(uint)*(byte *)(iStack_3c + ((int)pcVar11 >> 3)) >> ((byte)pcVar11 & 7) & 1U)
       ) break;
  }
code_r0x000ef06d:
  FUN_00024cc0(iStack_30);
  FUN_00024cc0(iStack_3c);
  FUN_00025a40();
  goto LAB_000eecd0;
}


PUSH EBP
PUSH EDI
PUSH ESI
PUSH EBX
CALL 0x00014cf0
ADD EBX,0x5a24b
SUB ESP,0x3c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x2c],EAX
XOR EAX,EAX
MOV EAX,dword ptr [ESP + 0x50]
SUB EAX,0x5
CMP EAX,0x14
JA 0x000eed12
MOV ESI,dword ptr [EBX + EAX*0x4 + 0xfffb2d88]
LEA EDI,[ESP + 0x54]
ADD ESI,EBX
JMP ESI
MOV EBX,dword ptr [ESP + 0x2c]
XOR EBX,dword ptr GS:[0x14]
MOV EAX,ESI
JNZ 0x000ef171
ADD ESP,0x3c
POP EBX
POP ESI
POP EDI
POP EBP
RET
XOR ESI,ESI
JMP 0x000eecd0
CALL 0x000f4bf0
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\ncode * FUN_000eec80(undefined4 param_1,code *param_2,int param_3,byte param_4,int param_5)\n\n{\n  int *piVar1;\n  byte bVar2;\n  code cVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  int iVar6;\n  uint uVar7;\n  int iVar8;\n  byte *pbVar9;\n  undefined4 *puVar10;\n  code *pcVar11;\n  code *pcVar12;\n  int iVar13;\n  int in_GS_OFFSET;\n  int iStack_3c;\n  int iStack_30;\n  code *pcStack_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  pcVar11 = DAT_00149164;\n  uStack_14 = 0xeec89;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  switch(param_1) {\n  case 5:\n    puVar4 = (undefined4 *)0x14a740;\n    puVar10 = (undefined4 *)&DAT_0014a860;\n    goto code_r0x000eecfc;\n  case 6:\n    puVar4 = (undefined4 *)&DAT_0014a860;\n    puVar10 = (undefined4 *)0x14a740;\ncode_r0x000eecfc:\n    for (iVar13 = 0x40; iVar13 != 0; iVar13 = iVar13 + -1) {\n      *puVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      puVar4 = puVar4 + 1;\n    }\n    *(undefined2 *)puVar4 = *(undefined2 *)puVar10;\n    *(undefined1 *)((int)puVar4 + 2) = *(undefined1 *)((int)puVar10 + 2);\nLAB_000eed12:\n    pcVar11 = (code *)0x0;\n    break;\n  case 7:\n    pcVar11 = (code *)0x0;\n    FUN_00077d40(0,0);\n    break;\n  case 8:\n    piVar5 = (int *)FUN_000249a0();\n    if (piVar5 == (int *)0x0) {\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0,iStack_3c,iStack_3c);\n    }\n    else {\n      *piVar5 = (int)param_2;\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0);\n      if ((iStack_3c != 0) && (iStack_30 != 0)) {\n        iVar13 = 0;\n        do {\n          while( true ) {\n            iVar6 = iVar13 * 4;\n            uVar7 = *(uint *)(param_3 + iVar13 * 4);\n            if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }\n            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }\n            piVar1 = (int *)(param_3 + 4 + iVar6);\n            iVar6 = *piVar1 + -1;\n            *piVar1 = iVar6;\n            if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }\n            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);\n            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);\n            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));\n            if ((uVar7 & 1) != 0) break;\n            *pbVar9 = *pbVar9 & ~bVar2;\n            FUN_000211d0();\n          }\n          *pbVar9 = *pbVar9 | bVar2;\n        } while ((uVar7 == 5) || (iVar6 = FUN_00037bb0(), iVar6 == 0));\n      }\n    }\n    pcVar11 = (code *)&DAT_ffffffff;\n    goto code_r0x000ef06d;\n  case 9:\n    pcVar11 = (code *)0x0;\n    DAT_00149280 = param_2;\n    if (param_2 != (code *)0x0) {\n      pcVar11 = (code *)(*param_2)(0);\n    }\n    break;\n  case 10:\n    pcVar11 = (code *)0x0;\n    DAT_0014a974 = param_2;\n    DAT_0014a978 = param_3;\n    break;\n  case 0xb:\n    if (param_2 != (code *)0x0) {\n      DAT_00149164 = param_2;\n    }\n    break;\n  case 0xc:\n    pcStack_24 = (code *)0x0;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0xd:\n    pcVar11 = param_2;\n    break;\n  case 0xe:\n    FUN_000197c0(*(undefined4 *)(param_2 + 0xc));\n    FUN_0003a660(0);\n    FUN_000197f0(*(undefined4 *)(param_2 + 0xc));\n    pcVar11 = (code *)0x0;\n    break;\n  case 0xf:\n    *(short *)(param_2 + 0x48) = (short)param_3;\n    pcVar11 = (code *)0x0;\n    break;\n  default:\n    goto LAB_000eed12;\n  case 0x11:\n    DAT_00149288 = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x12:\n    DAT_00149284 = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x13:\n    pcRam0014928c = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x14:\n    pcRam0014919c = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x16:\n    pcVar11 = (code *)0x1e212;\n    break;\n  case 0x17:\n    pcVar11 = (code *)(uint)(DAT_0014925c == 0);\n    break;\n  case 0x18:\n    *(int *)(param_2 + 0x98) = param_3;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x19:\n    FUN_000197c0(*(undefined4 *)(param_2 + 0xc));\n    cVar3 = (code)FUN_00027d70();\n    param_2[0xa0] = cVar3;\n    cVar3 = (code)(param_4 & 1);\n    param_2[0xa1] = cVar3;\n    param_2[0xa2] = (code)((byte)param_2[0xa2] & 0xfd | (char)cVar3 * '\x02');\n    *(int *)(param_2 + 0x9c) = param_5;\n    if ((0 < param_5) && (cVar3 == (code)0x0)) {\n      FUN_00039e00();\n    }\n    FUN_000197f0(*(undefined4 *)(param_2 + 0xc));\n    pcVar11 = (code *)0x0;\n  }\nLAB_000eecd0:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar11;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000f4bf0();\n  while (pcStack_24 = pcVar11 + 1, pcVar11 = pcVar12, (int)pcStack_24 <= (int)param_2) {\ncode_r0x000ef13b:\n    pcVar11 = pcStack_24;\n    uVar7 = FUN_00029980();\n    if (uVar7 != ((int)(uint)*(byte *)(iStack_3c + ((int)pcVar11 >> 3)) >> ((byte)pcVar11 & 7) & 1U)\n       ) break;\n  }\ncode_r0x000ef06d:\n  FUN_00024cc0(iStack_30);\n  FUN_00024cc0(iStack_3c);\n  FUN_00025a40();\n  goto LAB_000eecd0;\n}\n\n" comment (function_definition "code * FUN_000eec80(undefined4 param_1,code *param_2,int param_3,byte param_4,int param_5)\n\n{\n  int *piVar1;\n  byte bVar2;\n  code cVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  int iVar6;\n  uint uVar7;\n  int iVar8;\n  byte *pbVar9;\n  undefined4 *puVar10;\n  code *pcVar11;\n  code *pcVar12;\n  int iVar13;\n  int in_GS_OFFSET;\n  int iStack_3c;\n  int iStack_30;\n  code *pcStack_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  pcVar11 = DAT_00149164;\n  uStack_14 = 0xeec89;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  switch(param_1) {\n  case 5:\n    puVar4 = (undefined4 *)0x14a740;\n    puVar10 = (undefined4 *)&DAT_0014a860;\n    goto code_r0x000eecfc;\n  case 6:\n    puVar4 = (undefined4 *)&DAT_0014a860;\n    puVar10 = (undefined4 *)0x14a740;\ncode_r0x000eecfc:\n    for (iVar13 = 0x40; iVar13 != 0; iVar13 = iVar13 + -1) {\n      *puVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      puVar4 = puVar4 + 1;\n    }\n    *(undefined2 *)puVar4 = *(undefined2 *)puVar10;\n    *(undefined1 *)((int)puVar4 + 2) = *(undefined1 *)((int)puVar10 + 2);\nLAB_000eed12:\n    pcVar11 = (code *)0x0;\n    break;\n  case 7:\n    pcVar11 = (code *)0x0;\n    FUN_00077d40(0,0);\n    break;\n  case 8:\n    piVar5 = (int *)FUN_000249a0();\n    if (piVar5 == (int *)0x0) {\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0,iStack_3c,iStack_3c);\n    }\n    else {\n      *piVar5 = (int)param_2;\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0);\n      if ((iStack_3c != 0) && (iStack_30 != 0)) {\n        iVar13 = 0;\n        do {\n          while( true ) {\n            iVar6 = iVar13 * 4;\n            uVar7 = *(uint *)(param_3 + iVar13 * 4);\n            if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }\n            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }\n            piVar1 = (int *)(param_3 + 4 + iVar6);\n            iVar6 = *piVar1 + -1;\n            *piVar1 = iVar6;\n            if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }\n            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);\n            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);\n            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));\n            if ((uVar7 & 1) != 0) break;\n            *pbVar9 = *pbVar9 & ~bVar2;\n            FUN_000211d0();\n          }\n          *pbVar9 = *pbVar9 | bVar2;\n        } while ((uVar7 == 5) || (iVar6 = FUN_00037bb0(), iVar6 == 0));\n      }\n    }\n    pcVar11 = (code *)&DAT_ffffffff;\n    goto code_r0x000ef06d;\n  case 9:\n    pcVar11 = (code *)0x0;\n    DAT_00149280 = param_2;\n    if (param_2 != (code *)0x0) {\n      pcVar11 = (code *)(*param_2)(0);\n    }\n    break;\n  case 10:\n    pcVar11 = (code *)0x0;\n    DAT_0014a974 = param_2;\n    DAT_0014a978 = param_3;\n    break;\n  case 0xb:\n    if (param_2 != (code *)0x0) {\n      DAT_00149164 = param_2;\n    }\n    break;\n  case 0xc:\n    pcStack_24 = (code *)0x0;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0xd:\n    pcVar11 = param_2;\n    break;\n  case 0xe:\n    FUN_000197c0(*(undefined4 *)(param_2 + 0xc));\n    FUN_0003a660(0);\n    FUN_000197f0(*(undefined4 *)(param_2 + 0xc));\n    pcVar11 = (code *)0x0;\n    break;\n  case 0xf:\n    *(short *)(param_2 + 0x48) = (short)param_3;\n    pcVar11 = (code *)0x0;\n    break;\n  default:\n    goto LAB_000eed12;\n  case 0x11:\n    DAT_00149288 = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x12:\n    DAT_00149284 = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x13:\n    pcRam0014928c = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x14:\n    pcRam0014919c = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x16:\n    pcVar11 = (code *)0x1e212;\n    break;\n  case 0x17:\n    pcVar11 = (code *)(uint)(DAT_0014925c == 0);\n    break;\n  case 0x18:\n    *(int *)(param_2 + 0x98) = param_3;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x19:\n    FUN_000197c0(*(undefined4 *)(param_2 + 0xc));\n    cVar3 = (code)FUN_00027d70();\n    param_2[0xa0] = cVar3;\n    cVar3 = (code)(param_4 & 1);\n    param_2[0xa1] = cVar3;\n    param_2[0xa2] = (code)((byte)param_2[0xa2] & 0xfd | (char)cVar3 * '\x02');\n    *(int *)(param_2 + 0x9c) = param_5;\n    if ((0 < param_5) && (cVar3 == (code)0x0)) {\n      FUN_00039e00();\n    }\n    FUN_000197f0(*(undefined4 *)(param_2 + 0xc));\n    pcVar11 = (code *)0x0;\n  }\nLAB_000eecd0:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar11;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000f4bf0();\n  while (pcStack_24 = pcVar11 + 1, pcVar11 = pcVar12, (int)pcStack_24 <= (int)param_2) {\ncode_r0x000ef13b:\n    pcVar11 = pcStack_24;\n    uVar7 = FUN_00029980();\n    if (uVar7 != ((int)(uint)*(byte *)(iStack_3c + ((int)pcVar11 >> 3)) >> ((byte)pcVar11 & 7) & 1U)\n       ) break;\n  }\ncode_r0x000ef06d:\n  FUN_00024cc0(iStack_30);\n  FUN_00024cc0(iStack_3c);\n  FUN_00025a40();\n  goto LAB_000eecd0;\n}" type_identifier (pointer_declarator "* FUN_000eec80(undefined4 param_1,code *param_2,int param_3,byte param_4,int param_5)" * (function_declarator "FUN_000eec80(undefined4 param_1,code *param_2,int param_3,byte param_4,int param_5)" identifier (parameter_list "(undefined4 param_1,code *param_2,int param_3,byte param_4,int param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "code *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "byte param_4" type_identifier identifier) , (parameter_declaration "int param_5" primitive_type identifier) )))) (compound_statement "{\n  int *piVar1;\n  byte bVar2;\n  code cVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  int iVar6;\n  uint uVar7;\n  int iVar8;\n  byte *pbVar9;\n  undefined4 *puVar10;\n  code *pcVar11;\n  code *pcVar12;\n  int iVar13;\n  int in_GS_OFFSET;\n  int iStack_3c;\n  int iStack_30;\n  code *pcStack_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  pcVar11 = DAT_00149164;\n  uStack_14 = 0xeec89;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  switch(param_1) {\n  case 5:\n    puVar4 = (undefined4 *)0x14a740;\n    puVar10 = (undefined4 *)&DAT_0014a860;\n    goto code_r0x000eecfc;\n  case 6:\n    puVar4 = (undefined4 *)&DAT_0014a860;\n    puVar10 = (undefined4 *)0x14a740;\ncode_r0x000eecfc:\n    for (iVar13 = 0x40; iVar13 != 0; iVar13 = iVar13 + -1) {\n      *puVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      puVar4 = puVar4 + 1;\n    }\n    *(undefined2 *)puVar4 = *(undefined2 *)puVar10;\n    *(undefined1 *)((int)puVar4 + 2) = *(undefined1 *)((int)puVar10 + 2);\nLAB_000eed12:\n    pcVar11 = (code *)0x0;\n    break;\n  case 7:\n    pcVar11 = (code *)0x0;\n    FUN_00077d40(0,0);\n    break;\n  case 8:\n    piVar5 = (int *)FUN_000249a0();\n    if (piVar5 == (int *)0x0) {\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0,iStack_3c,iStack_3c);\n    }\n    else {\n      *piVar5 = (int)param_2;\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0);\n      if ((iStack_3c != 0) && (iStack_30 != 0)) {\n        iVar13 = 0;\n        do {\n          while( true ) {\n            iVar6 = iVar13 * 4;\n            uVar7 = *(uint *)(param_3 + iVar13 * 4);\n            if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }\n            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }\n            piVar1 = (int *)(param_3 + 4 + iVar6);\n            iVar6 = *piVar1 + -1;\n            *piVar1 = iVar6;\n            if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }\n            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);\n            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);\n            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));\n            if ((uVar7 & 1) != 0) break;\n            *pbVar9 = *pbVar9 & ~bVar2;\n            FUN_000211d0();\n          }\n          *pbVar9 = *pbVar9 | bVar2;\n        } while ((uVar7 == 5) || (iVar6 = FUN_00037bb0(), iVar6 == 0));\n      }\n    }\n    pcVar11 = (code *)&DAT_ffffffff;\n    goto code_r0x000ef06d;\n  case 9:\n    pcVar11 = (code *)0x0;\n    DAT_00149280 = param_2;\n    if (param_2 != (code *)0x0) {\n      pcVar11 = (code *)(*param_2)(0);\n    }\n    break;\n  case 10:\n    pcVar11 = (code *)0x0;\n    DAT_0014a974 = param_2;\n    DAT_0014a978 = param_3;\n    break;\n  case 0xb:\n    if (param_2 != (code *)0x0) {\n      DAT_00149164 = param_2;\n    }\n    break;\n  case 0xc:\n    pcStack_24 = (code *)0x0;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0xd:\n    pcVar11 = param_2;\n    break;\n  case 0xe:\n    FUN_000197c0(*(undefined4 *)(param_2 + 0xc));\n    FUN_0003a660(0);\n    FUN_000197f0(*(undefined4 *)(param_2 + 0xc));\n    pcVar11 = (code *)0x0;\n    break;\n  case 0xf:\n    *(short *)(param_2 + 0x48) = (short)param_3;\n    pcVar11 = (code *)0x0;\n    break;\n  default:\n    goto LAB_000eed12;\n  case 0x11:\n    DAT_00149288 = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x12:\n    DAT_00149284 = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x13:\n    pcRam0014928c = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x14:\n    pcRam0014919c = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x16:\n    pcVar11 = (code *)0x1e212;\n    break;\n  case 0x17:\n    pcVar11 = (code *)(uint)(DAT_0014925c == 0);\n    break;\n  case 0x18:\n    *(int *)(param_2 + 0x98) = param_3;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x19:\n    FUN_000197c0(*(undefined4 *)(param_2 + 0xc));\n    cVar3 = (code)FUN_00027d70();\n    param_2[0xa0] = cVar3;\n    cVar3 = (code)(param_4 & 1);\n    param_2[0xa1] = cVar3;\n    param_2[0xa2] = (code)((byte)param_2[0xa2] & 0xfd | (char)cVar3 * '\x02');\n    *(int *)(param_2 + 0x9c) = param_5;\n    if ((0 < param_5) && (cVar3 == (code)0x0)) {\n      FUN_00039e00();\n    }\n    FUN_000197f0(*(undefined4 *)(param_2 + 0xc));\n    pcVar11 = (code *)0x0;\n  }\nLAB_000eecd0:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar11;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000f4bf0();\n  while (pcStack_24 = pcVar11 + 1, pcVar11 = pcVar12, (int)pcStack_24 <= (int)param_2) {\ncode_r0x000ef13b:\n    pcVar11 = pcStack_24;\n    uVar7 = FUN_00029980();\n    if (uVar7 != ((int)(uint)*(byte *)(iStack_3c + ((int)pcVar11 >> 3)) >> ((byte)pcVar11 & 7) & 1U)\n       ) break;\n  }\ncode_r0x000ef06d:\n  FUN_00024cc0(iStack_30);\n  FUN_00024cc0(iStack_3c);\n  FUN_00025a40();\n  goto LAB_000eecd0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "code cVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "byte *pbVar9;" type_identifier (pointer_declarator "*pbVar9" * identifier) ;) (declaration "undefined4 *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "code *pcVar11;" type_identifier (pointer_declarator "*pcVar11" * identifier) ;) (declaration "code *pcVar12;" type_identifier (pointer_declarator "*pcVar12" * identifier) ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int iStack_3c;" primitive_type identifier ;) (declaration "int iStack_30;" primitive_type identifier ;) (declaration "code *pcStack_24;" type_identifier (pointer_declarator "*pcStack_24" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "pcVar11 = DAT_00149164;" (assignment_expression "pcVar11 = DAT_00149164" identifier = identifier) ;) (expression_statement "uStack_14 = 0xeec89;" (assignment_expression "uStack_14 = 0xeec89" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (switch_statement "switch(param_1) {\n  case 5:\n    puVar4 = (undefined4 *)0x14a740;\n    puVar10 = (undefined4 *)&DAT_0014a860;\n    goto code_r0x000eecfc;\n  case 6:\n    puVar4 = (undefined4 *)&DAT_0014a860;\n    puVar10 = (undefined4 *)0x14a740;\ncode_r0x000eecfc:\n    for (iVar13 = 0x40; iVar13 != 0; iVar13 = iVar13 + -1) {\n      *puVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      puVar4 = puVar4 + 1;\n    }\n    *(undefined2 *)puVar4 = *(undefined2 *)puVar10;\n    *(undefined1 *)((int)puVar4 + 2) = *(undefined1 *)((int)puVar10 + 2);\nLAB_000eed12:\n    pcVar11 = (code *)0x0;\n    break;\n  case 7:\n    pcVar11 = (code *)0x0;\n    FUN_00077d40(0,0);\n    break;\n  case 8:\n    piVar5 = (int *)FUN_000249a0();\n    if (piVar5 == (int *)0x0) {\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0,iStack_3c,iStack_3c);\n    }\n    else {\n      *piVar5 = (int)param_2;\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0);\n      if ((iStack_3c != 0) && (iStack_30 != 0)) {\n        iVar13 = 0;\n        do {\n          while( true ) {\n            iVar6 = iVar13 * 4;\n            uVar7 = *(uint *)(param_3 + iVar13 * 4);\n            if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }\n            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }\n            piVar1 = (int *)(param_3 + 4 + iVar6);\n            iVar6 = *piVar1 + -1;\n            *piVar1 = iVar6;\n            if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }\n            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);\n            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);\n            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));\n            if ((uVar7 & 1) != 0) break;\n            *pbVar9 = *pbVar9 & ~bVar2;\n            FUN_000211d0();\n          }\n          *pbVar9 = *pbVar9 | bVar2;\n        } while ((uVar7 == 5) || (iVar6 = FUN_00037bb0(), iVar6 == 0));\n      }\n    }\n    pcVar11 = (code *)&DAT_ffffffff;\n    goto code_r0x000ef06d;\n  case 9:\n    pcVar11 = (code *)0x0;\n    DAT_00149280 = param_2;\n    if (param_2 != (code *)0x0) {\n      pcVar11 = (code *)(*param_2)(0);\n    }\n    break;\n  case 10:\n    pcVar11 = (code *)0x0;\n    DAT_0014a974 = param_2;\n    DAT_0014a978 = param_3;\n    break;\n  case 0xb:\n    if (param_2 != (code *)0x0) {\n      DAT_00149164 = param_2;\n    }\n    break;\n  case 0xc:\n    pcStack_24 = (code *)0x0;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0xd:\n    pcVar11 = param_2;\n    break;\n  case 0xe:\n    FUN_000197c0(*(undefined4 *)(param_2 + 0xc));\n    FUN_0003a660(0);\n    FUN_000197f0(*(undefined4 *)(param_2 + 0xc));\n    pcVar11 = (code *)0x0;\n    break;\n  case 0xf:\n    *(short *)(param_2 + 0x48) = (short)param_3;\n    pcVar11 = (code *)0x0;\n    break;\n  default:\n    goto LAB_000eed12;\n  case 0x11:\n    DAT_00149288 = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x12:\n    DAT_00149284 = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x13:\n    pcRam0014928c = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x14:\n    pcRam0014919c = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x16:\n    pcVar11 = (code *)0x1e212;\n    break;\n  case 0x17:\n    pcVar11 = (code *)(uint)(DAT_0014925c == 0);\n    break;\n  case 0x18:\n    *(int *)(param_2 + 0x98) = param_3;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x19:\n    FUN_000197c0(*(undefined4 *)(param_2 + 0xc));\n    cVar3 = (code)FUN_00027d70();\n    param_2[0xa0] = cVar3;\n    cVar3 = (code)(param_4 & 1);\n    param_2[0xa1] = cVar3;\n    param_2[0xa2] = (code)((byte)param_2[0xa2] & 0xfd | (char)cVar3 * '\x02');\n    *(int *)(param_2 + 0x9c) = param_5;\n    if ((0 < param_5) && (cVar3 == (code)0x0)) {\n      FUN_00039e00();\n    }\n    FUN_000197f0(*(undefined4 *)(param_2 + 0xc));\n    pcVar11 = (code *)0x0;\n  }" switch (parenthesized_expression "(param_1)" ( identifier )) (compound_statement "{\n  case 5:\n    puVar4 = (undefined4 *)0x14a740;\n    puVar10 = (undefined4 *)&DAT_0014a860;\n    goto code_r0x000eecfc;\n  case 6:\n    puVar4 = (undefined4 *)&DAT_0014a860;\n    puVar10 = (undefined4 *)0x14a740;\ncode_r0x000eecfc:\n    for (iVar13 = 0x40; iVar13 != 0; iVar13 = iVar13 + -1) {\n      *puVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      puVar4 = puVar4 + 1;\n    }\n    *(undefined2 *)puVar4 = *(undefined2 *)puVar10;\n    *(undefined1 *)((int)puVar4 + 2) = *(undefined1 *)((int)puVar10 + 2);\nLAB_000eed12:\n    pcVar11 = (code *)0x0;\n    break;\n  case 7:\n    pcVar11 = (code *)0x0;\n    FUN_00077d40(0,0);\n    break;\n  case 8:\n    piVar5 = (int *)FUN_000249a0();\n    if (piVar5 == (int *)0x0) {\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0,iStack_3c,iStack_3c);\n    }\n    else {\n      *piVar5 = (int)param_2;\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0);\n      if ((iStack_3c != 0) && (iStack_30 != 0)) {\n        iVar13 = 0;\n        do {\n          while( true ) {\n            iVar6 = iVar13 * 4;\n            uVar7 = *(uint *)(param_3 + iVar13 * 4);\n            if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }\n            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }\n            piVar1 = (int *)(param_3 + 4 + iVar6);\n            iVar6 = *piVar1 + -1;\n            *piVar1 = iVar6;\n            if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }\n            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);\n            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);\n            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));\n            if ((uVar7 & 1) != 0) break;\n            *pbVar9 = *pbVar9 & ~bVar2;\n            FUN_000211d0();\n          }\n          *pbVar9 = *pbVar9 | bVar2;\n        } while ((uVar7 == 5) || (iVar6 = FUN_00037bb0(), iVar6 == 0));\n      }\n    }\n    pcVar11 = (code *)&DAT_ffffffff;\n    goto code_r0x000ef06d;\n  case 9:\n    pcVar11 = (code *)0x0;\n    DAT_00149280 = param_2;\n    if (param_2 != (code *)0x0) {\n      pcVar11 = (code *)(*param_2)(0);\n    }\n    break;\n  case 10:\n    pcVar11 = (code *)0x0;\n    DAT_0014a974 = param_2;\n    DAT_0014a978 = param_3;\n    break;\n  case 0xb:\n    if (param_2 != (code *)0x0) {\n      DAT_00149164 = param_2;\n    }\n    break;\n  case 0xc:\n    pcStack_24 = (code *)0x0;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0xd:\n    pcVar11 = param_2;\n    break;\n  case 0xe:\n    FUN_000197c0(*(undefined4 *)(param_2 + 0xc));\n    FUN_0003a660(0);\n    FUN_000197f0(*(undefined4 *)(param_2 + 0xc));\n    pcVar11 = (code *)0x0;\n    break;\n  case 0xf:\n    *(short *)(param_2 + 0x48) = (short)param_3;\n    pcVar11 = (code *)0x0;\n    break;\n  default:\n    goto LAB_000eed12;\n  case 0x11:\n    DAT_00149288 = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x12:\n    DAT_00149284 = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x13:\n    pcRam0014928c = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x14:\n    pcRam0014919c = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x16:\n    pcVar11 = (code *)0x1e212;\n    break;\n  case 0x17:\n    pcVar11 = (code *)(uint)(DAT_0014925c == 0);\n    break;\n  case 0x18:\n    *(int *)(param_2 + 0x98) = param_3;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x19:\n    FUN_000197c0(*(undefined4 *)(param_2 + 0xc));\n    cVar3 = (code)FUN_00027d70();\n    param_2[0xa0] = cVar3;\n    cVar3 = (code)(param_4 & 1);\n    param_2[0xa1] = cVar3;\n    param_2[0xa2] = (code)((byte)param_2[0xa2] & 0xfd | (char)cVar3 * '\x02');\n    *(int *)(param_2 + 0x9c) = param_5;\n    if ((0 < param_5) && (cVar3 == (code)0x0)) {\n      FUN_00039e00();\n    }\n    FUN_000197f0(*(undefined4 *)(param_2 + 0xc));\n    pcVar11 = (code *)0x0;\n  }" { (case_statement "case 5:\n    puVar4 = (undefined4 *)0x14a740;\n    puVar10 = (undefined4 *)&DAT_0014a860;\n    goto code_r0x000eecfc;" case number_literal : (expression_statement "puVar4 = (undefined4 *)0x14a740;" (assignment_expression "puVar4 = (undefined4 *)0x14a740" identifier = (cast_expression "(undefined4 *)0x14a740" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "puVar10 = (undefined4 *)&DAT_0014a860;" (assignment_expression "puVar10 = (undefined4 *)&DAT_0014a860" identifier = (cast_expression "(undefined4 *)&DAT_0014a860" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0014a860" & identifier))) ;) (goto_statement "goto code_r0x000eecfc;" goto statement_identifier ;)) (case_statement "case 6:\n    puVar4 = (undefined4 *)&DAT_0014a860;\n    puVar10 = (undefined4 *)0x14a740;\ncode_r0x000eecfc:\n    for (iVar13 = 0x40; iVar13 != 0; iVar13 = iVar13 + -1) {\n      *puVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      puVar4 = puVar4 + 1;\n    }\n    *(undefined2 *)puVar4 = *(undefined2 *)puVar10;\n    *(undefined1 *)((int)puVar4 + 2) = *(undefined1 *)((int)puVar10 + 2);\nLAB_000eed12:\n    pcVar11 = (code *)0x0;\n    break;" case number_literal : (expression_statement "puVar4 = (undefined4 *)&DAT_0014a860;" (assignment_expression "puVar4 = (undefined4 *)&DAT_0014a860" identifier = (cast_expression "(undefined4 *)&DAT_0014a860" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0014a860" & identifier))) ;) (expression_statement "puVar10 = (undefined4 *)0x14a740;" (assignment_expression "puVar10 = (undefined4 *)0x14a740" identifier = (cast_expression "(undefined4 *)0x14a740" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "code_r0x000eecfc:\n    for (iVar13 = 0x40; iVar13 != 0; iVar13 = iVar13 + -1) {\n      *puVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      puVar4 = puVar4 + 1;\n    }" statement_identifier : (for_statement "for (iVar13 = 0x40; iVar13 != 0; iVar13 = iVar13 + -1) {\n      *puVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      puVar4 = puVar4 + 1;\n    }" for ( (assignment_expression "iVar13 = 0x40" identifier = number_literal) ; (binary_expression "iVar13 != 0" identifier != number_literal) ; (assignment_expression "iVar13 = iVar13 + -1" identifier = (binary_expression "iVar13 + -1" identifier + number_literal)) ) (compound_statement "{\n      *puVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      puVar4 = puVar4 + 1;\n    }" { (expression_statement "*puVar4 = *puVar10;" (assignment_expression "*puVar4 = *puVar10" (pointer_expression "*puVar4" * identifier) = (pointer_expression "*puVar10" * identifier)) ;) (expression_statement "puVar10 = puVar10 + 1;" (assignment_expression "puVar10 = puVar10 + 1" identifier = (binary_expression "puVar10 + 1" identifier + number_literal)) ;) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" identifier = (binary_expression "puVar4 + 1" identifier + number_literal)) ;) }))) (expression_statement "*(undefined2 *)puVar4 = *(undefined2 *)puVar10;" (assignment_expression "*(undefined2 *)puVar4 = *(undefined2 *)puVar10" (pointer_expression "*(undefined2 *)puVar4" * (cast_expression "(undefined2 *)puVar4" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (pointer_expression "*(undefined2 *)puVar10" * (cast_expression "(undefined2 *)puVar10" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(undefined1 *)((int)puVar4 + 2) = *(undefined1 *)((int)puVar10 + 2);" (assignment_expression "*(undefined1 *)((int)puVar4 + 2) = *(undefined1 *)((int)puVar10 + 2)" (pointer_expression "*(undefined1 *)((int)puVar4 + 2)" * (cast_expression "(undefined1 *)((int)puVar4 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar4 + 2)" ( (binary_expression "(int)puVar4 + 2" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (pointer_expression "*(undefined1 *)((int)puVar10 + 2)" * (cast_expression "(undefined1 *)((int)puVar10 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar10 + 2)" ( (binary_expression "(int)puVar10 + 2" (cast_expression "(int)puVar10" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (labeled_statement "LAB_000eed12:\n    pcVar11 = (code *)0x0;" statement_identifier : (expression_statement "pcVar11 = (code *)0x0;" (assignment_expression "pcVar11 = (code *)0x0" identifier = (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) (break_statement "break;" break ;)) (case_statement "case 7:\n    pcVar11 = (code *)0x0;\n    FUN_00077d40(0,0);\n    break;" case number_literal : (expression_statement "pcVar11 = (code *)0x0;" (assignment_expression "pcVar11 = (code *)0x0" identifier = (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "FUN_00077d40(0,0);" (call_expression "FUN_00077d40(0,0)" identifier (argument_list "(0,0)" ( number_literal , number_literal ))) ;) (break_statement "break;" break ;)) (case_statement "case 8:\n    piVar5 = (int *)FUN_000249a0();\n    if (piVar5 == (int *)0x0) {\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0,iStack_3c,iStack_3c);\n    }\n    else {\n      *piVar5 = (int)param_2;\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0);\n      if ((iStack_3c != 0) && (iStack_30 != 0)) {\n        iVar13 = 0;\n        do {\n          while( true ) {\n            iVar6 = iVar13 * 4;\n            uVar7 = *(uint *)(param_3 + iVar13 * 4);\n            if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }\n            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }\n            piVar1 = (int *)(param_3 + 4 + iVar6);\n            iVar6 = *piVar1 + -1;\n            *piVar1 = iVar6;\n            if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }\n            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);\n            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);\n            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));\n            if ((uVar7 & 1) != 0) break;\n            *pbVar9 = *pbVar9 & ~bVar2;\n            FUN_000211d0();\n          }\n          *pbVar9 = *pbVar9 | bVar2;\n        } while ((uVar7 == 5) || (iVar6 = FUN_00037bb0(), iVar6 == 0));\n      }\n    }\n    pcVar11 = (code *)&DAT_ffffffff;\n    goto code_r0x000ef06d;" case number_literal : (expression_statement "piVar5 = (int *)FUN_000249a0();" (assignment_expression "piVar5 = (int *)FUN_000249a0()" identifier = (cast_expression "(int *)FUN_000249a0()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000249a0()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (piVar5 == (int *)0x0) {\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0,iStack_3c,iStack_3c);\n    }\n    else {\n      *piVar5 = (int)param_2;\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0);\n      if ((iStack_3c != 0) && (iStack_30 != 0)) {\n        iVar13 = 0;\n        do {\n          while( true ) {\n            iVar6 = iVar13 * 4;\n            uVar7 = *(uint *)(param_3 + iVar13 * 4);\n            if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }\n            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }\n            piVar1 = (int *)(param_3 + 4 + iVar6);\n            iVar6 = *piVar1 + -1;\n            *piVar1 = iVar6;\n            if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }\n            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);\n            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);\n            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));\n            if ((uVar7 & 1) != 0) break;\n            *pbVar9 = *pbVar9 & ~bVar2;\n            FUN_000211d0();\n          }\n          *pbVar9 = *pbVar9 | bVar2;\n        } while ((uVar7 == 5) || (iVar6 = FUN_00037bb0(), iVar6 == 0));\n      }\n    }" if (parenthesized_expression "(piVar5 == (int *)0x0)" ( (binary_expression "piVar5 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0,iStack_3c,iStack_3c);\n    }" { (expression_statement "iStack_3c = FUN_000249a0();" (assignment_expression "iStack_3c = FUN_000249a0()" identifier = (call_expression "FUN_000249a0()" identifier (argument_list "()" ( )))) ;) (expression_statement "iStack_30 = FUN_0003f0c0(0x200,0,iStack_3c,iStack_3c);" (assignment_expression "iStack_30 = FUN_0003f0c0(0x200,0,iStack_3c,iStack_3c)" identifier = (call_expression "FUN_0003f0c0(0x200,0,iStack_3c,iStack_3c)" identifier (argument_list "(0x200,0,iStack_3c,iStack_3c)" ( number_literal , number_literal , identifier , identifier )))) ;) }) (else_clause "else {\n      *piVar5 = (int)param_2;\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0);\n      if ((iStack_3c != 0) && (iStack_30 != 0)) {\n        iVar13 = 0;\n        do {\n          while( true ) {\n            iVar6 = iVar13 * 4;\n            uVar7 = *(uint *)(param_3 + iVar13 * 4);\n            if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }\n            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }\n            piVar1 = (int *)(param_3 + 4 + iVar6);\n            iVar6 = *piVar1 + -1;\n            *piVar1 = iVar6;\n            if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }\n            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);\n            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);\n            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));\n            if ((uVar7 & 1) != 0) break;\n            *pbVar9 = *pbVar9 & ~bVar2;\n            FUN_000211d0();\n          }\n          *pbVar9 = *pbVar9 | bVar2;\n        } while ((uVar7 == 5) || (iVar6 = FUN_00037bb0(), iVar6 == 0));\n      }\n    }" else (compound_statement "{\n      *piVar5 = (int)param_2;\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0);\n      if ((iStack_3c != 0) && (iStack_30 != 0)) {\n        iVar13 = 0;\n        do {\n          while( true ) {\n            iVar6 = iVar13 * 4;\n            uVar7 = *(uint *)(param_3 + iVar13 * 4);\n            if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }\n            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }\n            piVar1 = (int *)(param_3 + 4 + iVar6);\n            iVar6 = *piVar1 + -1;\n            *piVar1 = iVar6;\n            if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }\n            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);\n            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);\n            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));\n            if ((uVar7 & 1) != 0) break;\n            *pbVar9 = *pbVar9 & ~bVar2;\n            FUN_000211d0();\n          }\n          *pbVar9 = *pbVar9 | bVar2;\n        } while ((uVar7 == 5) || (iVar6 = FUN_00037bb0(), iVar6 == 0));\n      }\n    }" { (expression_statement "*piVar5 = (int)param_2;" (assignment_expression "*piVar5 = (int)param_2" (pointer_expression "*piVar5" * identifier) = (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "iStack_3c = FUN_000249a0();" (assignment_expression "iStack_3c = FUN_000249a0()" identifier = (call_expression "FUN_000249a0()" identifier (argument_list "()" ( )))) ;) (expression_statement "iStack_30 = FUN_0003f0c0(0x200,0);" (assignment_expression "iStack_30 = FUN_0003f0c0(0x200,0)" identifier = (call_expression "FUN_0003f0c0(0x200,0)" identifier (argument_list "(0x200,0)" ( number_literal , number_literal )))) ;) (if_statement "if ((iStack_3c != 0) && (iStack_30 != 0)) {\n        iVar13 = 0;\n        do {\n          while( true ) {\n            iVar6 = iVar13 * 4;\n            uVar7 = *(uint *)(param_3 + iVar13 * 4);\n            if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }\n            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }\n            piVar1 = (int *)(param_3 + 4 + iVar6);\n            iVar6 = *piVar1 + -1;\n            *piVar1 = iVar6;\n            if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }\n            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);\n            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);\n            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));\n            if ((uVar7 & 1) != 0) break;\n            *pbVar9 = *pbVar9 & ~bVar2;\n            FUN_000211d0();\n          }\n          *pbVar9 = *pbVar9 | bVar2;\n        } while ((uVar7 == 5) || (iVar6 = FUN_00037bb0(), iVar6 == 0));\n      }" if (parenthesized_expression "((iStack_3c != 0) && (iStack_30 != 0))" ( (binary_expression "(iStack_3c != 0) && (iStack_30 != 0)" (parenthesized_expression "(iStack_3c != 0)" ( (binary_expression "iStack_3c != 0" identifier != number_literal) )) && (parenthesized_expression "(iStack_30 != 0)" ( (binary_expression "iStack_30 != 0" identifier != number_literal) ))) )) (compound_statement "{\n        iVar13 = 0;\n        do {\n          while( true ) {\n            iVar6 = iVar13 * 4;\n            uVar7 = *(uint *)(param_3 + iVar13 * 4);\n            if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }\n            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }\n            piVar1 = (int *)(param_3 + 4 + iVar6);\n            iVar6 = *piVar1 + -1;\n            *piVar1 = iVar6;\n            if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }\n            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);\n            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);\n            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));\n            if ((uVar7 & 1) != 0) break;\n            *pbVar9 = *pbVar9 & ~bVar2;\n            FUN_000211d0();\n          }\n          *pbVar9 = *pbVar9 | bVar2;\n        } while ((uVar7 == 5) || (iVar6 = FUN_00037bb0(), iVar6 == 0));\n      }" { (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" identifier = number_literal) ;) (do_statement "do {\n          while( true ) {\n            iVar6 = iVar13 * 4;\n            uVar7 = *(uint *)(param_3 + iVar13 * 4);\n            if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }\n            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }\n            piVar1 = (int *)(param_3 + 4 + iVar6);\n            iVar6 = *piVar1 + -1;\n            *piVar1 = iVar6;\n            if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }\n            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);\n            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);\n            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));\n            if ((uVar7 & 1) != 0) break;\n            *pbVar9 = *pbVar9 & ~bVar2;\n            FUN_000211d0();\n          }\n          *pbVar9 = *pbVar9 | bVar2;\n        } while ((uVar7 == 5) || (iVar6 = FUN_00037bb0(), iVar6 == 0));" do (compound_statement "{\n          while( true ) {\n            iVar6 = iVar13 * 4;\n            uVar7 = *(uint *)(param_3 + iVar13 * 4);\n            if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }\n            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }\n            piVar1 = (int *)(param_3 + 4 + iVar6);\n            iVar6 = *piVar1 + -1;\n            *piVar1 = iVar6;\n            if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }\n            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);\n            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);\n            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));\n            if ((uVar7 & 1) != 0) break;\n            *pbVar9 = *pbVar9 & ~bVar2;\n            FUN_000211d0();\n          }\n          *pbVar9 = *pbVar9 | bVar2;\n        }" { (while_statement "while( true ) {\n            iVar6 = iVar13 * 4;\n            uVar7 = *(uint *)(param_3 + iVar13 * 4);\n            if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }\n            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }\n            piVar1 = (int *)(param_3 + 4 + iVar6);\n            iVar6 = *piVar1 + -1;\n            *piVar1 = iVar6;\n            if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }\n            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);\n            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);\n            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));\n            if ((uVar7 & 1) != 0) break;\n            *pbVar9 = *pbVar9 & ~bVar2;\n            FUN_000211d0();\n          }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n            iVar6 = iVar13 * 4;\n            uVar7 = *(uint *)(param_3 + iVar13 * 4);\n            if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }\n            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }\n            piVar1 = (int *)(param_3 + 4 + iVar6);\n            iVar6 = *piVar1 + -1;\n            *piVar1 = iVar6;\n            if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }\n            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);\n            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);\n            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));\n            if ((uVar7 & 1) != 0) break;\n            *pbVar9 = *pbVar9 & ~bVar2;\n            FUN_000211d0();\n          }" { (expression_statement "iVar6 = iVar13 * 4;" (assignment_expression "iVar6 = iVar13 * 4" identifier = (binary_expression "iVar13 * 4" identifier * number_literal)) ;) (expression_statement "uVar7 = *(uint *)(param_3 + iVar13 * 4);" (assignment_expression "uVar7 = *(uint *)(param_3 + iVar13 * 4)" identifier = (pointer_expression "*(uint *)(param_3 + iVar13 * 4)" * (cast_expression "(uint *)(param_3 + iVar13 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + iVar13 * 4)" ( (binary_expression "param_3 + iVar13 * 4" identifier + (binary_expression "iVar13 * 4" identifier * number_literal)) ))))) ;) (if_statement "if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }" if (parenthesized_expression "(uVar7 == 0)" ( (binary_expression "uVar7 == 0" identifier == number_literal) )) (compound_statement "{\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }" { (expression_statement "iVar13 = FUN_00029980();" (assignment_expression "iVar13 = FUN_00029980()" identifier = (call_expression "FUN_00029980()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar6 = FUN_00029980();" (assignment_expression "iVar6 = FUN_00029980()" identifier = (call_expression "FUN_00029980()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcStack_24 = (code *)0x1;" (assignment_expression "pcStack_24 = (code *)0x1" identifier = (cast_expression "(code *)0x1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);" (assignment_expression "pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6)" identifier = (cast_expression "(code *)((*piVar5 - (int)param_2) + iVar13 + iVar6)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((*piVar5 - (int)param_2) + iVar13 + iVar6)" ( (binary_expression "(*piVar5 - (int)param_2) + iVar13 + iVar6" (binary_expression "(*piVar5 - (int)param_2) + iVar13" (parenthesized_expression "(*piVar5 - (int)param_2)" ( (binary_expression "*piVar5 - (int)param_2" (pointer_expression "*piVar5" * identifier) - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) )) + identifier) + identifier) )))) ;) (expression_statement "pcVar11 = pcVar12;" (assignment_expression "pcVar11 = pcVar12" identifier = identifier) ;) (if_statement "if ((int)param_2 < 1) goto code_r0x000ef06d;" if (parenthesized_expression "((int)param_2 < 1)" ( (binary_expression "(int)param_2 < 1" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (goto_statement "goto code_r0x000ef06d;" goto statement_identifier ;)) (goto_statement "goto code_r0x000ef13b;" goto statement_identifier ;) })) (if_statement "if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }" if (parenthesized_expression "((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0))" ( (binary_expression "(uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)" (parenthesized_expression "(uVar7 < 6)" ( (binary_expression "uVar7 < 6" identifier < number_literal) )) && (parenthesized_expression "((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)" ( (binary_expression "(1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0" (parenthesized_expression "(1 << ((byte)uVar7 & 0x1f) & 0x26U)" ( (binary_expression "1 << ((byte)uVar7 & 0x1f) & 0x26U" (binary_expression "1 << ((byte)uVar7 & 0x1f)" number_literal << (parenthesized_expression "((byte)uVar7 & 0x1f)" ( (binary_expression "(byte)uVar7 & 0x1f" (cast_expression "(byte)uVar7" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) ))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }" { (expression_statement "piVar1 = (int *)(param_3 + 8 + iVar6);" (assignment_expression "piVar1 = (int *)(param_3 + 8 + iVar6)" identifier = (cast_expression "(int *)(param_3 + 8 + iVar6)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 8 + iVar6)" ( (binary_expression "param_3 + 8 + iVar6" (binary_expression "param_3 + 8" identifier + number_literal) + identifier) )))) ;) (expression_statement "iVar8 = *piVar1;" (assignment_expression "iVar8 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "pcStack_24 = (code *)(iVar8 + -1);" (assignment_expression "pcStack_24 = (code *)(iVar8 + -1)" identifier = (cast_expression "(code *)(iVar8 + -1)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + -1)" ( (binary_expression "iVar8 + -1" identifier + number_literal) )))) ;) (expression_statement "*piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);" (assignment_expression "*piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6)" (pointer_expression "*piVar1" * identifier) = (binary_expression "iVar8 + *(int *)(param_3 + 0xc + iVar6)" identifier + (pointer_expression "*(int *)(param_3 + 0xc + iVar6)" * (cast_expression "(int *)(param_3 + 0xc + iVar6)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xc + iVar6)" ( (binary_expression "param_3 + 0xc + iVar6" (binary_expression "param_3 + 0xc" identifier + number_literal) + identifier) )))))) ;) (expression_statement "iVar8 = 4;" (assignment_expression "iVar8 = 4" identifier = number_literal) ;) }) (else_clause "else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }" else (compound_statement "{\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }" { (expression_statement "FUN_00077d40(4,&pcStack_24);" (call_expression "FUN_00077d40(4,&pcStack_24)" identifier (argument_list "(4,&pcStack_24)" ( number_literal , (pointer_expression "&pcStack_24" & identifier) ))) ;) (expression_statement "iVar8 = 2;" (assignment_expression "iVar8 = 2" identifier = number_literal) ;) }))) (expression_statement "piVar1 = (int *)(param_3 + 4 + iVar6);" (assignment_expression "piVar1 = (int *)(param_3 + 4 + iVar6)" identifier = (cast_expression "(int *)(param_3 + 4 + iVar6)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4 + iVar6)" ( (binary_expression "param_3 + 4 + iVar6" (binary_expression "param_3 + 4" identifier + number_literal) + identifier) )))) ;) (expression_statement "iVar6 = *piVar1 + -1;" (assignment_expression "iVar6 = *piVar1 + -1" identifier = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "*piVar1 = iVar6;" (assignment_expression "*piVar1 = iVar6" (pointer_expression "*piVar1" * identifier) = identifier) ;) (if_statement "if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }" if (parenthesized_expression "(iVar6 < 1)" ( (binary_expression "iVar6 < 1" identifier < number_literal) )) (compound_statement "{\n              iVar13 = iVar8 + iVar13;\n            }" { (expression_statement "iVar13 = iVar8 + iVar13;" (assignment_expression "iVar13 = iVar8 + iVar13" identifier = (binary_expression "iVar8 + iVar13" identifier + identifier)) ;) })) (expression_statement "pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);" (assignment_expression "pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2)" identifier = (cast_expression "(code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2)" ( (binary_expression "(longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2" (call_expression "(longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff)" (call_expression "(longlong)(ulonglong)" (parenthesized_expression "(longlong)" ( identifier )) (argument_list "(ulonglong)" ( identifier ))) (argument_list "((uint)pcStack_24 & 0x7fffffff)" ( (binary_expression "(uint)pcStack_24 & 0x7fffffff" (cast_expression "(uint)pcStack_24" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) ))) % (cast_expression "(longlong)(int)param_2" ( (type_descriptor "longlong" type_identifier) ) (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier))) )))) ;) (expression_statement "pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);" (assignment_expression "pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c)" identifier = (cast_expression "(byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(((int)(pcStack_24 + 1) >> 3) + iStack_3c)" ( (binary_expression "((int)(pcStack_24 + 1) >> 3) + iStack_3c" (parenthesized_expression "((int)(pcStack_24 + 1) >> 3)" ( (binary_expression "(int)(pcStack_24 + 1) >> 3" (cast_expression "(int)(pcStack_24 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pcStack_24 + 1)" ( (binary_expression "pcStack_24 + 1" identifier + number_literal) ))) >> number_literal) )) + identifier) )))) ;) (expression_statement "bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));" (assignment_expression "bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7))" identifier = (call_expression "(byte)(1 << ((byte)(pcStack_24 + 1) & 7))" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(1 << ((byte)(pcStack_24 + 1) & 7))" ( (binary_expression "1 << ((byte)(pcStack_24 + 1) & 7)" number_literal << (parenthesized_expression "((byte)(pcStack_24 + 1) & 7)" ( (binary_expression "(byte)(pcStack_24 + 1) & 7" (call_expression "(byte)(pcStack_24 + 1)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(pcStack_24 + 1)" ( (binary_expression "pcStack_24 + 1" identifier + number_literal) ))) & number_literal) ))) )))) ;) (if_statement "if ((uVar7 & 1) != 0) break;" if (parenthesized_expression "((uVar7 & 1) != 0)" ( (binary_expression "(uVar7 & 1) != 0" (parenthesized_expression "(uVar7 & 1)" ( (binary_expression "uVar7 & 1" identifier & number_literal) )) != number_literal) )) (break_statement "break;" break ;)) (expression_statement "*pbVar9 = *pbVar9 & ~bVar2;" (assignment_expression "*pbVar9 = *pbVar9 & ~bVar2" (pointer_expression "*pbVar9" * identifier) = (binary_expression "*pbVar9 & ~bVar2" (pointer_expression "*pbVar9" * identifier) & (unary_expression "~bVar2" ~ identifier))) ;) (expression_statement "FUN_000211d0();" (call_expression "FUN_000211d0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "*pbVar9 = *pbVar9 | bVar2;" (assignment_expression "*pbVar9 = *pbVar9 | bVar2" (pointer_expression "*pbVar9" * identifier) = (binary_expression "*pbVar9 | bVar2" (pointer_expression "*pbVar9" * identifier) | identifier)) ;) }) while (parenthesized_expression "((uVar7 == 5) || (iVar6 = FUN_00037bb0(), iVar6 == 0))" ( (binary_expression "(uVar7 == 5) || (iVar6 = FUN_00037bb0(), iVar6 == 0)" (parenthesized_expression "(uVar7 == 5)" ( (binary_expression "uVar7 == 5" identifier == number_literal) )) || (parenthesized_expression "(iVar6 = FUN_00037bb0(), iVar6 == 0)" ( (comma_expression "iVar6 = FUN_00037bb0(), iVar6 == 0" (assignment_expression "iVar6 = FUN_00037bb0()" identifier = (call_expression "FUN_00037bb0()" identifier (argument_list "()" ( )))) , (binary_expression "iVar6 == 0" identifier == number_literal)) ))) )) ;) })) }))) (expression_statement "pcVar11 = (code *)&DAT_ffffffff;" (assignment_expression "pcVar11 = (code *)&DAT_ffffffff" identifier = (cast_expression "(code *)&DAT_ffffffff" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_ffffffff" & identifier))) ;) (goto_statement "goto code_r0x000ef06d;" goto statement_identifier ;)) (case_statement "case 9:\n    pcVar11 = (code *)0x0;\n    DAT_00149280 = param_2;\n    if (param_2 != (code *)0x0) {\n      pcVar11 = (code *)(*param_2)(0);\n    }\n    break;" case number_literal : (expression_statement "pcVar11 = (code *)0x0;" (assignment_expression "pcVar11 = (code *)0x0" identifier = (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "DAT_00149280 = param_2;" (assignment_expression "DAT_00149280 = param_2" identifier = identifier) ;) (if_statement "if (param_2 != (code *)0x0) {\n      pcVar11 = (code *)(*param_2)(0);\n    }" if (parenthesized_expression "(param_2 != (code *)0x0)" ( (binary_expression "param_2 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pcVar11 = (code *)(*param_2)(0);\n    }" { (expression_statement "pcVar11 = (code *)(*param_2)(0);" (assignment_expression "pcVar11 = (code *)(*param_2)(0)" identifier = (cast_expression "(code *)(*param_2)(0)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*param_2)(0)" (parenthesized_expression "(*param_2)" ( (pointer_expression "*param_2" * identifier) )) (argument_list "(0)" ( number_literal ))))) ;) })) (break_statement "break;" break ;)) (case_statement "case 10:\n    pcVar11 = (code *)0x0;\n    DAT_0014a974 = param_2;\n    DAT_0014a978 = param_3;\n    break;" case number_literal : (expression_statement "pcVar11 = (code *)0x0;" (assignment_expression "pcVar11 = (code *)0x0" identifier = (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "DAT_0014a974 = param_2;" (assignment_expression "DAT_0014a974 = param_2" identifier = identifier) ;) (expression_statement "DAT_0014a978 = param_3;" (assignment_expression "DAT_0014a978 = param_3" identifier = identifier) ;) (break_statement "break;" break ;)) (case_statement "case 0xb:\n    if (param_2 != (code *)0x0) {\n      DAT_00149164 = param_2;\n    }\n    break;" case number_literal : (if_statement "if (param_2 != (code *)0x0) {\n      DAT_00149164 = param_2;\n    }" if (parenthesized_expression "(param_2 != (code *)0x0)" ( (binary_expression "param_2 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      DAT_00149164 = param_2;\n    }" { (expression_statement "DAT_00149164 = param_2;" (assignment_expression "DAT_00149164 = param_2" identifier = identifier) ;) })) (break_statement "break;" break ;)) (case_statement "case 0xc:\n    pcStack_24 = (code *)0x0;\n    pcVar11 = (code *)0x0;\n    break;" case number_literal : (expression_statement "pcStack_24 = (code *)0x0;" (assignment_expression "pcStack_24 = (code *)0x0" identifier = (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pcVar11 = (code *)0x0;" (assignment_expression "pcVar11 = (code *)0x0" identifier = (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 0xd:\n    pcVar11 = param_2;\n    break;" case number_literal : (expression_statement "pcVar11 = param_2;" (assignment_expression "pcVar11 = param_2" identifier = identifier) ;) (break_statement "break;" break ;)) (case_statement "case 0xe:\n    FUN_000197c0(*(undefined4 *)(param_2 + 0xc));\n    FUN_0003a660(0);\n    FUN_000197f0(*(undefined4 *)(param_2 + 0xc));\n    pcVar11 = (code *)0x0;\n    break;" case number_literal : (expression_statement "FUN_000197c0(*(undefined4 *)(param_2 + 0xc));" (call_expression "FUN_000197c0(*(undefined4 *)(param_2 + 0xc))" identifier (argument_list "(*(undefined4 *)(param_2 + 0xc))" ( (pointer_expression "*(undefined4 *)(param_2 + 0xc)" * (cast_expression "(undefined4 *)(param_2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_0003a660(0);" (call_expression "FUN_0003a660(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "FUN_000197f0(*(undefined4 *)(param_2 + 0xc));" (call_expression "FUN_000197f0(*(undefined4 *)(param_2 + 0xc))" identifier (argument_list "(*(undefined4 *)(param_2 + 0xc))" ( (pointer_expression "*(undefined4 *)(param_2 + 0xc)" * (cast_expression "(undefined4 *)(param_2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) ))) ;) (expression_statement "pcVar11 = (code *)0x0;" (assignment_expression "pcVar11 = (code *)0x0" identifier = (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 0xf:\n    *(short *)(param_2 + 0x48) = (short)param_3;\n    pcVar11 = (code *)0x0;\n    break;" case number_literal : (expression_statement "*(short *)(param_2 + 0x48) = (short)param_3;" (assignment_expression "*(short *)(param_2 + 0x48) = (short)param_3" (pointer_expression "*(short *)(param_2 + 0x48)" * (cast_expression "(short *)(param_2 + 0x48)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x48)" ( (binary_expression "param_2 + 0x48" identifier + number_literal) )))) = (cast_expression "(short)param_3" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) ;) (expression_statement "pcVar11 = (code *)0x0;" (assignment_expression "pcVar11 = (code *)0x0" identifier = (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (break_statement "break;" break ;)) (case_statement "default:\n    goto LAB_000eed12;" default : (goto_statement "goto LAB_000eed12;" goto statement_identifier ;)) (case_statement "case 0x11:\n    DAT_00149288 = param_2;\n    pcVar11 = (code *)0x0;\n    break;" case number_literal : (expression_statement "DAT_00149288 = param_2;" (assignment_expression "DAT_00149288 = param_2" identifier = identifier) ;) (expression_statement "pcVar11 = (code *)0x0;" (assignment_expression "pcVar11 = (code *)0x0" identifier = (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 0x12:\n    DAT_00149284 = param_2;\n    pcVar11 = (code *)0x0;\n    break;" case number_literal : (expression_statement "DAT_00149284 = param_2;" (assignment_expression "DAT_00149284 = param_2" identifier = identifier) ;) (expression_statement "pcVar11 = (code *)0x0;" (assignment_expression "pcVar11 = (code *)0x0" identifier = (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 0x13:\n    pcRam0014928c = param_2;\n    pcVar11 = (code *)0x0;\n    break;" case number_literal : (expression_statement "pcRam0014928c = param_2;" (assignment_expression "pcRam0014928c = param_2" identifier = identifier) ;) (expression_statement "pcVar11 = (code *)0x0;" (assignment_expression "pcVar11 = (code *)0x0" identifier = (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 0x14:\n    pcRam0014919c = param_2;\n    pcVar11 = (code *)0x0;\n    break;" case number_literal : (expression_statement "pcRam0014919c = param_2;" (assignment_expression "pcRam0014919c = param_2" identifier = identifier) ;) (expression_statement "pcVar11 = (code *)0x0;" (assignment_expression "pcVar11 = (code *)0x0" identifier = (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 0x16:\n    pcVar11 = (code *)0x1e212;\n    break;" case number_literal : (expression_statement "pcVar11 = (code *)0x1e212;" (assignment_expression "pcVar11 = (code *)0x1e212" identifier = (cast_expression "(code *)0x1e212" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 0x17:\n    pcVar11 = (code *)(uint)(DAT_0014925c == 0);\n    break;" case number_literal : (expression_statement "pcVar11 = (code *)(uint)(DAT_0014925c == 0);" (assignment_expression "pcVar11 = (code *)(uint)(DAT_0014925c == 0)" identifier = (cast_expression "(code *)(uint)(DAT_0014925c == 0)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(uint)(DAT_0014925c == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(DAT_0014925c == 0)" ( (binary_expression "DAT_0014925c == 0" identifier == number_literal) ))))) ;) (break_statement "break;" break ;)) (case_statement "case 0x18:\n    *(int *)(param_2 + 0x98) = param_3;\n    pcVar11 = (code *)0x0;\n    break;" case number_literal : (expression_statement "*(int *)(param_2 + 0x98) = param_3;" (assignment_expression "*(int *)(param_2 + 0x98) = param_3" (pointer_expression "*(int *)(param_2 + 0x98)" * (cast_expression "(int *)(param_2 + 0x98)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x98)" ( (binary_expression "param_2 + 0x98" identifier + number_literal) )))) = identifier) ;) (expression_statement "pcVar11 = (code *)0x0;" (assignment_expression "pcVar11 = (code *)0x0" identifier = (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 0x19:\n    FUN_000197c0(*(undefined4 *)(param_2 + 0xc));\n    cVar3 = (code)FUN_00027d70();\n    param_2[0xa0] = cVar3;\n    cVar3 = (code)(param_4 & 1);\n    param_2[0xa1] = cVar3;\n    param_2[0xa2] = (code)((byte)param_2[0xa2] & 0xfd | (char)cVar3 * '\x02');\n    *(int *)(param_2 + 0x9c) = param_5;\n    if ((0 < param_5) && (cVar3 == (code)0x0)) {\n      FUN_00039e00();\n    }\n    FUN_000197f0(*(undefined4 *)(param_2 + 0xc));\n    pcVar11 = (code *)0x0;" case number_literal : (expression_statement "FUN_000197c0(*(undefined4 *)(param_2 + 0xc));" (call_expression "FUN_000197c0(*(undefined4 *)(param_2 + 0xc))" identifier (argument_list "(*(undefined4 *)(param_2 + 0xc))" ( (pointer_expression "*(undefined4 *)(param_2 + 0xc)" * (cast_expression "(undefined4 *)(param_2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) ))) ;) (expression_statement "cVar3 = (code)FUN_00027d70();" (assignment_expression "cVar3 = (code)FUN_00027d70()" identifier = (cast_expression "(code)FUN_00027d70()" ( (type_descriptor "code" type_identifier) ) (call_expression "FUN_00027d70()" identifier (argument_list "()" ( ))))) ;) (expression_statement "param_2[0xa0] = cVar3;" (assignment_expression "param_2[0xa0] = cVar3" (subscript_expression "param_2[0xa0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "cVar3 = (code)(param_4 & 1);" (assignment_expression "cVar3 = (code)(param_4 & 1)" identifier = (call_expression "(code)(param_4 & 1)" (parenthesized_expression "(code)" ( identifier )) (argument_list "(param_4 & 1)" ( (binary_expression "param_4 & 1" identifier & number_literal) )))) ;) (expression_statement "param_2[0xa1] = cVar3;" (assignment_expression "param_2[0xa1] = cVar3" (subscript_expression "param_2[0xa1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[0xa2] = (code)((byte)param_2[0xa2] & 0xfd | (char)cVar3 * '\x02');" (assignment_expression "param_2[0xa2] = (code)((byte)param_2[0xa2] & 0xfd | (char)cVar3 * '\x02')" (subscript_expression "param_2[0xa2]" identifier [ number_literal ]) = (call_expression "(code)((byte)param_2[0xa2] & 0xfd | (char)cVar3 * '\x02')" (parenthesized_expression "(code)" ( identifier )) (argument_list "((byte)param_2[0xa2] & 0xfd | (char)cVar3 * '\x02')" ( (binary_expression "(byte)param_2[0xa2] & 0xfd | (char)cVar3 * '\x02'" (binary_expression "(byte)param_2[0xa2] & 0xfd" (cast_expression "(byte)param_2[0xa2]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "param_2[0xa2]" identifier [ number_literal ])) & number_literal) | (binary_expression "(char)cVar3 * '\x02'" (cast_expression "(char)cVar3" ( (type_descriptor "char" primitive_type) ) identifier) * (char_literal "'\x02'" ' escape_sequence '))) )))) ;) (expression_statement "*(int *)(param_2 + 0x9c) = param_5;" (assignment_expression "*(int *)(param_2 + 0x9c) = param_5" (pointer_expression "*(int *)(param_2 + 0x9c)" * (cast_expression "(int *)(param_2 + 0x9c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x9c)" ( (binary_expression "param_2 + 0x9c" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((0 < param_5) && (cVar3 == (code)0x0)) {\n      FUN_00039e00();\n    }" if (parenthesized_expression "((0 < param_5) && (cVar3 == (code)0x0))" ( (binary_expression "(0 < param_5) && (cVar3 == (code)0x0)" (parenthesized_expression "(0 < param_5)" ( (binary_expression "0 < param_5" number_literal < identifier) )) && (parenthesized_expression "(cVar3 == (code)0x0)" ( (binary_expression "cVar3 == (code)0x0" identifier == (cast_expression "(code)0x0" ( (type_descriptor "code" type_identifier) ) number_literal)) ))) )) (compound_statement "{\n      FUN_00039e00();\n    }" { (expression_statement "FUN_00039e00();" (call_expression "FUN_00039e00()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "FUN_000197f0(*(undefined4 *)(param_2 + 0xc));" (call_expression "FUN_000197f0(*(undefined4 *)(param_2 + 0xc))" identifier (argument_list "(*(undefined4 *)(param_2 + 0xc))" ( (pointer_expression "*(undefined4 *)(param_2 + 0xc)" * (cast_expression "(undefined4 *)(param_2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) ))) ;) (expression_statement "pcVar11 = (code *)0x0;" (assignment_expression "pcVar11 = (code *)0x0" identifier = (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) })) (labeled_statement "LAB_000eecd0:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar11;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar11;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return pcVar11;\n  }" { (return_statement "return pcVar11;" return identifier ;) }))) comment (expression_statement "FUN_000f4bf0();" (call_expression "FUN_000f4bf0()" identifier (argument_list "()" ( ))) ;) (while_statement "while (pcStack_24 = pcVar11 + 1, pcVar11 = pcVar12, (int)pcStack_24 <= (int)param_2) {\ncode_r0x000ef13b:\n    pcVar11 = pcStack_24;\n    uVar7 = FUN_00029980();\n    if (uVar7 != ((int)(uint)*(byte *)(iStack_3c + ((int)pcVar11 >> 3)) >> ((byte)pcVar11 & 7) & 1U)\n       ) break;\n  }" while (parenthesized_expression "(pcStack_24 = pcVar11 + 1, pcVar11 = pcVar12, (int)pcStack_24 <= (int)param_2)" ( (comma_expression "pcStack_24 = pcVar11 + 1, pcVar11 = pcVar12, (int)pcStack_24 <= (int)param_2" (assignment_expression "pcStack_24 = pcVar11 + 1" identifier = (binary_expression "pcVar11 + 1" identifier + number_literal)) , (comma_expression "pcVar11 = pcVar12, (int)pcStack_24 <= (int)param_2" (assignment_expression "pcVar11 = pcVar12" identifier = identifier) , (binary_expression "(int)pcStack_24 <= (int)param_2" (cast_expression "(int)pcStack_24" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)))) )) (compound_statement "{\ncode_r0x000ef13b:\n    pcVar11 = pcStack_24;\n    uVar7 = FUN_00029980();\n    if (uVar7 != ((int)(uint)*(byte *)(iStack_3c + ((int)pcVar11 >> 3)) >> ((byte)pcVar11 & 7) & 1U)\n       ) break;\n  }" { (labeled_statement "code_r0x000ef13b:\n    pcVar11 = pcStack_24;" statement_identifier : (expression_statement "pcVar11 = pcStack_24;" (assignment_expression "pcVar11 = pcStack_24" identifier = identifier) ;)) (expression_statement "uVar7 = FUN_00029980();" (assignment_expression "uVar7 = FUN_00029980()" identifier = (call_expression "FUN_00029980()" identifier (argument_list "()" ( )))) ;) (if_statement "if (uVar7 != ((int)(uint)*(byte *)(iStack_3c + ((int)pcVar11 >> 3)) >> ((byte)pcVar11 & 7) & 1U)\n       ) break;" if (parenthesized_expression "(uVar7 != ((int)(uint)*(byte *)(iStack_3c + ((int)pcVar11 >> 3)) >> ((byte)pcVar11 & 7) & 1U)\n       )" ( (binary_expression "uVar7 != ((int)(uint)*(byte *)(iStack_3c + ((int)pcVar11 >> 3)) >> ((byte)pcVar11 & 7) & 1U)" identifier != (parenthesized_expression "((int)(uint)*(byte *)(iStack_3c + ((int)pcVar11 >> 3)) >> ((byte)pcVar11 & 7) & 1U)" ( (binary_expression "(int)(uint)*(byte *)(iStack_3c + ((int)pcVar11 >> 3)) >> ((byte)pcVar11 & 7) & 1U" (binary_expression "(int)(uint)*(byte *)(iStack_3c + ((int)pcVar11 >> 3)) >> ((byte)pcVar11 & 7)" (binary_expression "(int)(uint)*(byte *)(iStack_3c + ((int)pcVar11 >> 3))" (cast_expression "(int)(uint)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uint)" ( identifier ))) * (cast_expression "(byte *)(iStack_3c + ((int)pcVar11 >> 3))" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iStack_3c + ((int)pcVar11 >> 3))" ( (binary_expression "iStack_3c + ((int)pcVar11 >> 3)" identifier + (parenthesized_expression "((int)pcVar11 >> 3)" ( (binary_expression "(int)pcVar11 >> 3" (cast_expression "(int)pcVar11" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) ))) )))) >> (parenthesized_expression "((byte)pcVar11 & 7)" ( (binary_expression "(byte)pcVar11 & 7" (cast_expression "(byte)pcVar11" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) ))) & number_literal) ))) )) (break_statement "break;" break ;)) })) (labeled_statement "code_r0x000ef06d:\n  FUN_00024cc0(iStack_30);" statement_identifier : (expression_statement "FUN_00024cc0(iStack_30);" (call_expression "FUN_00024cc0(iStack_30)" identifier (argument_list "(iStack_30)" ( identifier ))) ;)) (expression_statement "FUN_00024cc0(iStack_3c);" (call_expression "FUN_00024cc0(iStack_3c)" identifier (argument_list "(iStack_3c)" ( identifier ))) ;) (expression_statement "FUN_00025a40();" (call_expression "FUN_00025a40()" identifier (argument_list "()" ( ))) ;) (goto_statement "goto LAB_000eecd0;" goto statement_identifier ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint sqlite3_test_control(int op,...)\n\n{\n  uchar uVar1;\n  uchar uVar2;\n  uchar uVar3;\n  byte bVar4;\n  void_function xBenignEnd;\n  sqlite3PrngType *psVar5;\n  Bitvec *p;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  uint uVar9;\n  int iVar10;\n  byte *pbVar11;\n  int x_1;\n  sqlite3PrngType *psVar12;\n  sqlite3 *psVar13;\n  sqlite3 *psVar14;\n  int x_2;\n  int in_GS_OFFSET;\n  sqlite3 *in_stack_00000008;\n  _func_void *in_stack_0000000c;\n  byte in_stack_00000010;\n  int in_stack_00000014;\n  u64 in_stack_ffffffb4;\n  void *local_3c;\n  void *local_30;\n  int i;\n  int local_20;\n  undefined4 uStack_14;\n  \n  psVar13 = (sqlite3 *)sqlite3PendingByte;\n  uStack_14 = 0xeec89;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  switch(op) {\n  case 5:\n    psVar5 = &sqlite3SavedPrng;\n    psVar12 = &sqlite3Prng;\n    goto LAB_000eecfc;\n  case 6:\n    psVar5 = &sqlite3Prng;\n    psVar12 = &sqlite3SavedPrng;\nLAB_000eecfc:\n    for (iVar8 = 0x40; iVar8 != 0; iVar8 = iVar8 + -1) {\n      uVar1 = psVar12->i;\n      uVar2 = psVar12->j;\n      uVar3 = psVar12->s[0];\n      psVar5->isInit = psVar12->isInit;\n      psVar5->i = uVar1;\n      psVar5->j = uVar2;\n      psVar5->s[0] = uVar3;\n      psVar12 = (sqlite3PrngType *)(psVar12->s + 1);\n      psVar5 = (sqlite3PrngType *)(psVar5->s + 1);\n    }\n    uVar1 = psVar12->i;\n    psVar5->isInit = psVar12->isInit;\n    psVar5->i = uVar1;\n    psVar5->j = psVar12->j;\n_L55077:\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  case 7:\n    psVar13 = (sqlite3 *)0x0;\n    sqlite3_randomness(0,(void *)0x0);\n    break;\n  case 8:\n    p = (Bitvec *)sqlite3MallocZero(in_stack_ffffffb4);\n    if (p == (Bitvec *)0x0) {\n      local_3c = sqlite3MallocZero(in_stack_ffffffb4);\n      local_30 = sqlite3_malloc64(0x200);\n    }\n    else {\n      p->iSize = (u32)in_stack_00000008;\n      local_3c = sqlite3MallocZero(in_stack_ffffffb4);\n      local_30 = sqlite3_malloc64(0x200);\n      if ((local_3c != (void *)0x0) && (local_30 != (void *)0x0)) {\n        iVar8 = 0;\n        do {\n          while( true ) {\n            iVar7 = iVar8 * 4;\n            uVar9 = *(uint *)(in_stack_0000000c + iVar8 * 4);\n            if (uVar9 == 0) {\n              iVar8 = sqlite3BitvecTest(p,(u32)((int)&in_stack_00000008->pVfs + 1));\n              iVar7 = sqlite3BitvecTest(p,0);\n              i = 1;\n              psVar14 = (sqlite3 *)((p->iSize - (int)in_stack_00000008) + iVar8 + iVar7);\n              psVar13 = psVar14;\n              if ((int)in_stack_00000008 < 1) goto LAB_000ef06d;\n              goto LAB_000ef13b;\n            }\n            if ((uVar9 < 6) && ((1 << ((byte)uVar9 & 0x1f) & 0x26U) != 0)) {\n              iVar10 = *(int *)(in_stack_0000000c + iVar7 + 8);\n              i = iVar10 + -1;\n              *(int *)(in_stack_0000000c + iVar7 + 8) =\n                   iVar10 + *(int *)(in_stack_0000000c + iVar7 + 0xc);\n              iVar10 = 4;\n            }\n            else {\n              sqlite3_randomness(4,&i);\n              iVar10 = 2;\n            }\n            iVar6 = *(int *)(in_stack_0000000c + iVar7 + 4) + -1;\n            *(int *)(in_stack_0000000c + iVar7 + 4) = iVar6;\n            if (iVar6 < 1) {\n              iVar8 = iVar10 + iVar8;\n            }\n            i = (int)((longlong)(ulonglong)(i & 0x7fffffff) % (longlong)(int)in_stack_00000008);\n            pbVar11 = (byte *)((i + 1 >> 3) + (int)local_3c);\n            bVar4 = (byte)(1 << ((byte)(i + 1) & 7));\n            if ((uVar9 & 1) != 0) break;\n            *pbVar11 = *pbVar11 & ~bVar4;\n            sqlite3BitvecClear(p,i + 1,local_30);\n          }\n          *pbVar11 = *pbVar11 | bVar4;\n        } while ((uVar9 == 5) || (iVar7 = sqlite3BitvecSet(p,i + 1), iVar7 == 0));\n      }\n    }\n    psVar13 = (sqlite3 *)&DAT_ffffffff;\n    goto LAB_000ef06d;\n  case 9:\n    psVar13 = (sqlite3 *)0x0;\n    sqlite3Config.xTestCallback = (_func_int_int *)in_stack_00000008;\n    if (in_stack_00000008 != (sqlite3 *)0x0) {\n      psVar13 = (sqlite3 *)(*(code *)in_stack_00000008)(0);\n    }\n    break;\n  case 10:\n    psVar13 = (sqlite3 *)0x0;\n    sqlite3Hooks.xBenignBegin = (_func_void *)in_stack_00000008;\n    sqlite3Hooks.xBenignEnd = in_stack_0000000c;\n    break;\n  case 0xb:\n    if (in_stack_00000008 != (sqlite3 *)0x0) {\n      sqlite3PendingByte = (int)in_stack_00000008;\n    }\n    break;\n  case 0xc:\n    i = 0;\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  case 0xd:\n    psVar13 = in_stack_00000008;\n    break;\n  case 0xe:\n    sqlite3_mutex_enter(in_stack_00000008->mutex);\n    sqlite3BtreeSetPageSize(in_stack_00000008->aDb->pBt,0,(int)in_stack_0000000c,0);\n    sqlite3_mutex_leave(in_stack_00000008->mutex);\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  case 0xf:\n    in_stack_00000008->dbOptFlags = (u16)in_stack_0000000c;\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  default:\n    goto _L55077;\n  case 0x11:\n    sqlite3Config.bInternalFunctions = (int)in_stack_00000008;\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  case 0x12:\n    sqlite3Config.bLocaltimeFault = (int)in_stack_00000008;\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  case 0x13:\n    sqlite3Config.iOnceResetThreshold = (int)in_stack_00000008;\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  case 0x14:\n    sqlite3Config.neverCorrupt = (int)in_stack_00000008;\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  case 0x16:\n    psVar13 = (sqlite3 *)0x1e212;\n    break;\n  case 0x17:\n    psVar13 = (sqlite3 *)(uint)(sqlite3Config.isInit == 0);\n    break;\n  case 0x18:\n    in_stack_00000008->nMaxSorterMmap = (int)in_stack_0000000c;\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  case 0x19:\n    sqlite3_mutex_enter(in_stack_00000008->mutex);\n    iVar8 = sqlite3FindDbName(in_stack_00000008,(char *)in_stack_0000000c);\n    (in_stack_00000008->init).iDb = (u8)iVar8;\n    in_stack_00000010 = in_stack_00000010 & 1;\n    (in_stack_00000008->init).busy = in_stack_00000010;\n    (in_stack_00000008->init).field_0x6 =\n         (in_stack_00000008->init).field_0x6 & 0xfd | in_stack_00000010 * '\x02';\n    (in_stack_00000008->init).newTnum = in_stack_00000014;\n    if ((0 < in_stack_00000014) && (in_stack_00000010 == 0)) {\n      sqlite3ResetAllSchemasOfConnection(in_stack_00000008);\n    }\n    sqlite3_mutex_leave(in_stack_00000008->mutex);\n    psVar13 = (sqlite3 *)0x0;\n  }\nLAB_000eecd0:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return (int)psVar13;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n  while (i = (int)psVar13 + 1, psVar13 = psVar14, i <= (int)in_stack_00000008) {\nLAB_000ef13b:\n    psVar13 = (sqlite3 *)i;\n    uVar9 = sqlite3BitvecTest(p,i);\n    if (uVar9 != ((int)(uint)*(byte *)((int)local_3c + ((int)psVar13 >> 3)) >> ((byte)psVar13 & 7) &\n                 1U)) break;\n  }\nLAB_000ef06d:\n  sqlite3_free(local_30);\n  sqlite3_free(local_3c);\n  sqlite3BitvecDestroy(p);\n  goto LAB_000eecd0;\n}\n\n" comment (function_definition "int sqlite3_test_control(int op,...)\n\n{\n  uchar uVar1;\n  uchar uVar2;\n  uchar uVar3;\n  byte bVar4;\n  void_function xBenignEnd;\n  sqlite3PrngType *psVar5;\n  Bitvec *p;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  uint uVar9;\n  int iVar10;\n  byte *pbVar11;\n  int x_1;\n  sqlite3PrngType *psVar12;\n  sqlite3 *psVar13;\n  sqlite3 *psVar14;\n  int x_2;\n  int in_GS_OFFSET;\n  sqlite3 *in_stack_00000008;\n  _func_void *in_stack_0000000c;\n  byte in_stack_00000010;\n  int in_stack_00000014;\n  u64 in_stack_ffffffb4;\n  void *local_3c;\n  void *local_30;\n  int i;\n  int local_20;\n  undefined4 uStack_14;\n  \n  psVar13 = (sqlite3 *)sqlite3PendingByte;\n  uStack_14 = 0xeec89;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  switch(op) {\n  case 5:\n    psVar5 = &sqlite3SavedPrng;\n    psVar12 = &sqlite3Prng;\n    goto LAB_000eecfc;\n  case 6:\n    psVar5 = &sqlite3Prng;\n    psVar12 = &sqlite3SavedPrng;\nLAB_000eecfc:\n    for (iVar8 = 0x40; iVar8 != 0; iVar8 = iVar8 + -1) {\n      uVar1 = psVar12->i;\n      uVar2 = psVar12->j;\n      uVar3 = psVar12->s[0];\n      psVar5->isInit = psVar12->isInit;\n      psVar5->i = uVar1;\n      psVar5->j = uVar2;\n      psVar5->s[0] = uVar3;\n      psVar12 = (sqlite3PrngType *)(psVar12->s + 1);\n      psVar5 = (sqlite3PrngType *)(psVar5->s + 1);\n    }\n    uVar1 = psVar12->i;\n    psVar5->isInit = psVar12->isInit;\n    psVar5->i = uVar1;\n    psVar5->j = psVar12->j;\n_L55077:\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  case 7:\n    psVar13 = (sqlite3 *)0x0;\n    sqlite3_randomness(0,(void *)0x0);\n    break;\n  case 8:\n    p = (Bitvec *)sqlite3MallocZero(in_stack_ffffffb4);\n    if (p == (Bitvec *)0x0) {\n      local_3c = sqlite3MallocZero(in_stack_ffffffb4);\n      local_30 = sqlite3_malloc64(0x200);\n    }\n    else {\n      p->iSize = (u32)in_stack_00000008;\n      local_3c = sqlite3MallocZero(in_stack_ffffffb4);\n      local_30 = sqlite3_malloc64(0x200);\n      if ((local_3c != (void *)0x0) && (local_30 != (void *)0x0)) {\n        iVar8 = 0;\n        do {\n          while( true ) {\n            iVar7 = iVar8 * 4;\n            uVar9 = *(uint *)(in_stack_0000000c + iVar8 * 4);\n            if (uVar9 == 0) {\n              iVar8 = sqlite3BitvecTest(p,(u32)((int)&in_stack_00000008->pVfs + 1));\n              iVar7 = sqlite3BitvecTest(p,0);\n              i = 1;\n              psVar14 = (sqlite3 *)((p->iSize - (int)in_stack_00000008) + iVar8 + iVar7);\n              psVar13 = psVar14;\n              if ((int)in_stack_00000008 < 1) goto LAB_000ef06d;\n              goto LAB_000ef13b;\n            }\n            if ((uVar9 < 6) && ((1 << ((byte)uVar9 & 0x1f) & 0x26U) != 0)) {\n              iVar10 = *(int *)(in_stack_0000000c + iVar7 + 8);\n              i = iVar10 + -1;\n              *(int *)(in_stack_0000000c + iVar7 + 8) =\n                   iVar10 + *(int *)(in_stack_0000000c + iVar7 + 0xc);\n              iVar10 = 4;\n            }\n            else {\n              sqlite3_randomness(4,&i);\n              iVar10 = 2;\n            }\n            iVar6 = *(int *)(in_stack_0000000c + iVar7 + 4) + -1;\n            *(int *)(in_stack_0000000c + iVar7 + 4) = iVar6;\n            if (iVar6 < 1) {\n              iVar8 = iVar10 + iVar8;\n            }\n            i = (int)((longlong)(ulonglong)(i & 0x7fffffff) % (longlong)(int)in_stack_00000008);\n            pbVar11 = (byte *)((i + 1 >> 3) + (int)local_3c);\n            bVar4 = (byte)(1 << ((byte)(i + 1) & 7));\n            if ((uVar9 & 1) != 0) break;\n            *pbVar11 = *pbVar11 & ~bVar4;\n            sqlite3BitvecClear(p,i + 1,local_30);\n          }\n          *pbVar11 = *pbVar11 | bVar4;\n        } while ((uVar9 == 5) || (iVar7 = sqlite3BitvecSet(p,i + 1), iVar7 == 0));\n      }\n    }\n    psVar13 = (sqlite3 *)&DAT_ffffffff;\n    goto LAB_000ef06d;\n  case 9:\n    psVar13 = (sqlite3 *)0x0;\n    sqlite3Config.xTestCallback = (_func_int_int *)in_stack_00000008;\n    if (in_stack_00000008 != (sqlite3 *)0x0) {\n      psVar13 = (sqlite3 *)(*(code *)in_stack_00000008)(0);\n    }\n    break;\n  case 10:\n    psVar13 = (sqlite3 *)0x0;\n    sqlite3Hooks.xBenignBegin = (_func_void *)in_stack_00000008;\n    sqlite3Hooks.xBenignEnd = in_stack_0000000c;\n    break;\n  case 0xb:\n    if (in_stack_00000008 != (sqlite3 *)0x0) {\n      sqlite3PendingByte = (int)in_stack_00000008;\n    }\n    break;\n  case 0xc:\n    i = 0;\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  case 0xd:\n    psVar13 = in_stack_00000008;\n    break;\n  case 0xe:\n    sqlite3_mutex_enter(in_stack_00000008->mutex);\n    sqlite3BtreeSetPageSize(in_stack_00000008->aDb->pBt,0,(int)in_stack_0000000c,0);\n    sqlite3_mutex_leave(in_stack_00000008->mutex);\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  case 0xf:\n    in_stack_00000008->dbOptFlags = (u16)in_stack_0000000c;\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  default:\n    goto _L55077;\n  case 0x11:\n    sqlite3Config.bInternalFunctions = (int)in_stack_00000008;\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  case 0x12:\n    sqlite3Config.bLocaltimeFault = (int)in_stack_00000008;\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  case 0x13:\n    sqlite3Config.iOnceResetThreshold = (int)in_stack_00000008;\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  case 0x14:\n    sqlite3Config.neverCorrupt = (int)in_stack_00000008;\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  case 0x16:\n    psVar13 = (sqlite3 *)0x1e212;\n    break;\n  case 0x17:\n    psVar13 = (sqlite3 *)(uint)(sqlite3Config.isInit == 0);\n    break;\n  case 0x18:\n    in_stack_00000008->nMaxSorterMmap = (int)in_stack_0000000c;\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  case 0x19:\n    sqlite3_mutex_enter(in_stack_00000008->mutex);\n    iVar8 = sqlite3FindDbName(in_stack_00000008,(char *)in_stack_0000000c);\n    (in_stack_00000008->init).iDb = (u8)iVar8;\n    in_stack_00000010 = in_stack_00000010 & 1;\n    (in_stack_00000008->init).busy = in_stack_00000010;\n    (in_stack_00000008->init).field_0x6 =\n         (in_stack_00000008->init).field_0x6 & 0xfd | in_stack_00000010 * '\x02';\n    (in_stack_00000008->init).newTnum = in_stack_00000014;\n    if ((0 < in_stack_00000014) && (in_stack_00000010 == 0)) {\n      sqlite3ResetAllSchemasOfConnection(in_stack_00000008);\n    }\n    sqlite3_mutex_leave(in_stack_00000008->mutex);\n    psVar13 = (sqlite3 *)0x0;\n  }\nLAB_000eecd0:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return (int)psVar13;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n  while (i = (int)psVar13 + 1, psVar13 = psVar14, i <= (int)in_stack_00000008) {\nLAB_000ef13b:\n    psVar13 = (sqlite3 *)i;\n    uVar9 = sqlite3BitvecTest(p,i);\n    if (uVar9 != ((int)(uint)*(byte *)((int)local_3c + ((int)psVar13 >> 3)) >> ((byte)psVar13 & 7) &\n                 1U)) break;\n  }\nLAB_000ef06d:\n  sqlite3_free(local_30);\n  sqlite3_free(local_3c);\n  sqlite3BitvecDestroy(p);\n  goto LAB_000eecd0;\n}" primitive_type (function_declarator "sqlite3_test_control(int op,...)" identifier (parameter_list "(int op,...)" ( (parameter_declaration "int op" primitive_type identifier) , (variadic_parameter "..." ...) ))) (compound_statement "{\n  uchar uVar1;\n  uchar uVar2;\n  uchar uVar3;\n  byte bVar4;\n  void_function xBenignEnd;\n  sqlite3PrngType *psVar5;\n  Bitvec *p;\n  int iVar6;\n  int iVar7;\n  int iVar8;\n  uint uVar9;\n  int iVar10;\n  byte *pbVar11;\n  int x_1;\n  sqlite3PrngType *psVar12;\n  sqlite3 *psVar13;\n  sqlite3 *psVar14;\n  int x_2;\n  int in_GS_OFFSET;\n  sqlite3 *in_stack_00000008;\n  _func_void *in_stack_0000000c;\n  byte in_stack_00000010;\n  int in_stack_00000014;\n  u64 in_stack_ffffffb4;\n  void *local_3c;\n  void *local_30;\n  int i;\n  int local_20;\n  undefined4 uStack_14;\n  \n  psVar13 = (sqlite3 *)sqlite3PendingByte;\n  uStack_14 = 0xeec89;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  switch(op) {\n  case 5:\n    psVar5 = &sqlite3SavedPrng;\n    psVar12 = &sqlite3Prng;\n    goto LAB_000eecfc;\n  case 6:\n    psVar5 = &sqlite3Prng;\n    psVar12 = &sqlite3SavedPrng;\nLAB_000eecfc:\n    for (iVar8 = 0x40; iVar8 != 0; iVar8 = iVar8 + -1) {\n      uVar1 = psVar12->i;\n      uVar2 = psVar12->j;\n      uVar3 = psVar12->s[0];\n      psVar5->isInit = psVar12->isInit;\n      psVar5->i = uVar1;\n      psVar5->j = uVar2;\n      psVar5->s[0] = uVar3;\n      psVar12 = (sqlite3PrngType *)(psVar12->s + 1);\n      psVar5 = (sqlite3PrngType *)(psVar5->s + 1);\n    }\n    uVar1 = psVar12->i;\n    psVar5->isInit = psVar12->isInit;\n    psVar5->i = uVar1;\n    psVar5->j = psVar12->j;\n_L55077:\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  case 7:\n    psVar13 = (sqlite3 *)0x0;\n    sqlite3_randomness(0,(void *)0x0);\n    break;\n  case 8:\n    p = (Bitvec *)sqlite3MallocZero(in_stack_ffffffb4);\n    if (p == (Bitvec *)0x0) {\n      local_3c = sqlite3MallocZero(in_stack_ffffffb4);\n      local_30 = sqlite3_malloc64(0x200);\n    }\n    else {\n      p->iSize = (u32)in_stack_00000008;\n      local_3c = sqlite3MallocZero(in_stack_ffffffb4);\n      local_30 = sqlite3_malloc64(0x200);\n      if ((local_3c != (void *)0x0) && (local_30 != (void *)0x0)) {\n        iVar8 = 0;\n        do {\n          while( true ) {\n            iVar7 = iVar8 * 4;\n            uVar9 = *(uint *)(in_stack_0000000c + iVar8 * 4);\n            if (uVar9 == 0) {\n              iVar8 = sqlite3BitvecTest(p,(u32)((int)&in_stack_00000008->pVfs + 1));\n              iVar7 = sqlite3BitvecTest(p,0);\n              i = 1;\n              psVar14 = (sqlite3 *)((p->iSize - (int)in_stack_00000008) + iVar8 + iVar7);\n              psVar13 = psVar14;\n              if ((int)in_stack_00000008 < 1) goto LAB_000ef06d;\n              goto LAB_000ef13b;\n            }\n            if ((uVar9 < 6) && ((1 << ((byte)uVar9 & 0x1f) & 0x26U) != 0)) {\n              iVar10 = *(int *)(in_stack_0000000c + iVar7 + 8);\n              i = iVar10 + -1;\n              *(int *)(in_stack_0000000c + iVar7 + 8) =\n                   iVar10 + *(int *)(in_stack_0000000c + iVar7 + 0xc);\n              iVar10 = 4;\n            }\n            else {\n              sqlite3_randomness(4,&i);\n              iVar10 = 2;\n            }\n            iVar6 = *(int *)(in_stack_0000000c + iVar7 + 4) + -1;\n            *(int *)(in_stack_0000000c + iVar7 + 4) = iVar6;\n            if (iVar6 < 1) {\n              iVar8 = iVar10 + iVar8;\n            }\n            i = (int)((longlong)(ulonglong)(i & 0x7fffffff) % (longlong)(int)in_stack_00000008);\n            pbVar11 = (byte *)((i + 1 >> 3) + (int)local_3c);\n            bVar4 = (byte)(1 << ((byte)(i + 1) & 7));\n            if ((uVar9 & 1) != 0) break;\n            *pbVar11 = *pbVar11 & ~bVar4;\n            sqlite3BitvecClear(p,i + 1,local_30);\n          }\n          *pbVar11 = *pbVar11 | bVar4;\n        } while ((uVar9 == 5) || (iVar7 = sqlite3BitvecSet(p,i + 1), iVar7 == 0));\n      }\n    }\n    psVar13 = (sqlite3 *)&DAT_ffffffff;\n    goto LAB_000ef06d;\n  case 9:\n    psVar13 = (sqlite3 *)0x0;\n    sqlite3Config.xTestCallback = (_func_int_int *)in_stack_00000008;\n    if (in_stack_00000008 != (sqlite3 *)0x0) {\n      psVar13 = (sqlite3 *)(*(code *)in_stack_00000008)(0);\n    }\n    break;\n  case 10:\n    psVar13 = (sqlite3 *)0x0;\n    sqlite3Hooks.xBenignBegin = (_func_void *)in_stack_00000008;\n    sqlite3Hooks.xBenignEnd = in_stack_0000000c;\n    break;\n  case 0xb:\n    if (in_stack_00000008 != (sqlite3 *)0x0) {\n      sqlite3PendingByte = (int)in_stack_00000008;\n    }\n    break;\n  case 0xc:\n    i = 0;\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  case 0xd:\n    psVar13 = in_stack_00000008;\n    break;\n  case 0xe:\n    sqlite3_mutex_enter(in_stack_00000008->mutex);\n    sqlite3BtreeSetPageSize(in_stack_00000008->aDb->pBt,0,(int)in_stack_0000000c,0);\n    sqlite3_mutex_leave(in_stack_00000008->mutex);\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  case 0xf:\n    in_stack_00000008->dbOptFlags = (u16)in_stack_0000000c;\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  default:\n    goto _L55077;\n  case 0x11:\n    sqlite3Config.bInternalFunctions = (int)in_stack_00000008;\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  case 0x12:\n    sqlite3Config.bLocaltimeFault = (int)in_stack_00000008;\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  case 0x13:\n    sqlite3Config.iOnceResetThreshold = (int)in_stack_00000008;\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  case 0x14:\n    sqlite3Config.neverCorrupt = (int)in_stack_00000008;\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  case 0x16:\n    psVar13 = (sqlite3 *)0x1e212;\n    break;\n  case 0x17:\n    psVar13 = (sqlite3 *)(uint)(sqlite3Config.isInit == 0);\n    break;\n  case 0x18:\n    in_stack_00000008->nMaxSorterMmap = (int)in_stack_0000000c;\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  case 0x19:\n    sqlite3_mutex_enter(in_stack_00000008->mutex);\n    iVar8 = sqlite3FindDbName(in_stack_00000008,(char *)in_stack_0000000c);\n    (in_stack_00000008->init).iDb = (u8)iVar8;\n    in_stack_00000010 = in_stack_00000010 & 1;\n    (in_stack_00000008->init).busy = in_stack_00000010;\n    (in_stack_00000008->init).field_0x6 =\n         (in_stack_00000008->init).field_0x6 & 0xfd | in_stack_00000010 * '\x02';\n    (in_stack_00000008->init).newTnum = in_stack_00000014;\n    if ((0 < in_stack_00000014) && (in_stack_00000010 == 0)) {\n      sqlite3ResetAllSchemasOfConnection(in_stack_00000008);\n    }\n    sqlite3_mutex_leave(in_stack_00000008->mutex);\n    psVar13 = (sqlite3 *)0x0;\n  }\nLAB_000eecd0:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return (int)psVar13;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n  while (i = (int)psVar13 + 1, psVar13 = psVar14, i <= (int)in_stack_00000008) {\nLAB_000ef13b:\n    psVar13 = (sqlite3 *)i;\n    uVar9 = sqlite3BitvecTest(p,i);\n    if (uVar9 != ((int)(uint)*(byte *)((int)local_3c + ((int)psVar13 >> 3)) >> ((byte)psVar13 & 7) &\n                 1U)) break;\n  }\nLAB_000ef06d:\n  sqlite3_free(local_30);\n  sqlite3_free(local_3c);\n  sqlite3BitvecDestroy(p);\n  goto LAB_000eecd0;\n}" { (declaration "uchar uVar1;" type_identifier identifier ;) (declaration "uchar uVar2;" type_identifier identifier ;) (declaration "uchar uVar3;" type_identifier identifier ;) (declaration "byte bVar4;" type_identifier identifier ;) (declaration "void_function xBenignEnd;" type_identifier identifier ;) (declaration "sqlite3PrngType *psVar5;" type_identifier (pointer_declarator "*psVar5" * identifier) ;) (declaration "Bitvec *p;" type_identifier (pointer_declarator "*p" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "byte *pbVar11;" type_identifier (pointer_declarator "*pbVar11" * identifier) ;) (declaration "int x_1;" primitive_type identifier ;) (declaration "sqlite3PrngType *psVar12;" type_identifier (pointer_declarator "*psVar12" * identifier) ;) (declaration "sqlite3 *psVar13;" type_identifier (pointer_declarator "*psVar13" * identifier) ;) (declaration "sqlite3 *psVar14;" type_identifier (pointer_declarator "*psVar14" * identifier) ;) (declaration "int x_2;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "sqlite3 *in_stack_00000008;" type_identifier (pointer_declarator "*in_stack_00000008" * identifier) ;) (declaration "_func_void *in_stack_0000000c;" type_identifier (pointer_declarator "*in_stack_0000000c" * identifier) ;) (declaration "byte in_stack_00000010;" type_identifier identifier ;) (declaration "int in_stack_00000014;" primitive_type identifier ;) (declaration "u64 in_stack_ffffffb4;" type_identifier identifier ;) (declaration "void *local_3c;" primitive_type (pointer_declarator "*local_3c" * identifier) ;) (declaration "void *local_30;" primitive_type (pointer_declarator "*local_30" * identifier) ;) (declaration "int i;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "psVar13 = (sqlite3 *)sqlite3PendingByte;" (assignment_expression "psVar13 = (sqlite3 *)sqlite3PendingByte" identifier = (cast_expression "(sqlite3 *)sqlite3PendingByte" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "uStack_14 = 0xeec89;" (assignment_expression "uStack_14 = 0xeec89" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (switch_statement "switch(op) {\n  case 5:\n    psVar5 = &sqlite3SavedPrng;\n    psVar12 = &sqlite3Prng;\n    goto LAB_000eecfc;\n  case 6:\n    psVar5 = &sqlite3Prng;\n    psVar12 = &sqlite3SavedPrng;\nLAB_000eecfc:\n    for (iVar8 = 0x40; iVar8 != 0; iVar8 = iVar8 + -1) {\n      uVar1 = psVar12->i;\n      uVar2 = psVar12->j;\n      uVar3 = psVar12->s[0];\n      psVar5->isInit = psVar12->isInit;\n      psVar5->i = uVar1;\n      psVar5->j = uVar2;\n      psVar5->s[0] = uVar3;\n      psVar12 = (sqlite3PrngType *)(psVar12->s + 1);\n      psVar5 = (sqlite3PrngType *)(psVar5->s + 1);\n    }\n    uVar1 = psVar12->i;\n    psVar5->isInit = psVar12->isInit;\n    psVar5->i = uVar1;\n    psVar5->j = psVar12->j;\n_L55077:\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  case 7:\n    psVar13 = (sqlite3 *)0x0;\n    sqlite3_randomness(0,(void *)0x0);\n    break;\n  case 8:\n    p = (Bitvec *)sqlite3MallocZero(in_stack_ffffffb4);\n    if (p == (Bitvec *)0x0) {\n      local_3c = sqlite3MallocZero(in_stack_ffffffb4);\n      local_30 = sqlite3_malloc64(0x200);\n    }\n    else {\n      p->iSize = (u32)in_stack_00000008;\n      local_3c = sqlite3MallocZero(in_stack_ffffffb4);\n      local_30 = sqlite3_malloc64(0x200);\n      if ((local_3c != (void *)0x0) && (local_30 != (void *)0x0)) {\n        iVar8 = 0;\n        do {\n          while( true ) {\n            iVar7 = iVar8 * 4;\n            uVar9 = *(uint *)(in_stack_0000000c + iVar8 * 4);\n            if (uVar9 == 0) {\n              iVar8 = sqlite3BitvecTest(p,(u32)((int)&in_stack_00000008->pVfs + 1));\n              iVar7 = sqlite3BitvecTest(p,0);\n              i = 1;\n              psVar14 = (sqlite3 *)((p->iSize - (int)in_stack_00000008) + iVar8 + iVar7);\n              psVar13 = psVar14;\n              if ((int)in_stack_00000008 < 1) goto LAB_000ef06d;\n              goto LAB_000ef13b;\n            }\n            if ((uVar9 < 6) && ((1 << ((byte)uVar9 & 0x1f) & 0x26U) != 0)) {\n              iVar10 = *(int *)(in_stack_0000000c + iVar7 + 8);\n              i = iVar10 + -1;\n              *(int *)(in_stack_0000000c + iVar7 + 8) =\n                   iVar10 + *(int *)(in_stack_0000000c + iVar7 + 0xc);\n              iVar10 = 4;\n            }\n            else {\n              sqlite3_randomness(4,&i);\n              iVar10 = 2;\n            }\n            iVar6 = *(int *)(in_stack_0000000c + iVar7 + 4) + -1;\n            *(int *)(in_stack_0000000c + iVar7 + 4) = iVar6;\n            if (iVar6 < 1) {\n              iVar8 = iVar10 + iVar8;\n            }\n            i = (int)((longlong)(ulonglong)(i & 0x7fffffff) % (longlong)(int)in_stack_00000008);\n            pbVar11 = (byte *)((i + 1 >> 3) + (int)local_3c);\n            bVar4 = (byte)(1 << ((byte)(i + 1) & 7));\n            if ((uVar9 & 1) != 0) break;\n            *pbVar11 = *pbVar11 & ~bVar4;\n            sqlite3BitvecClear(p,i + 1,local_30);\n          }\n          *pbVar11 = *pbVar11 | bVar4;\n        } while ((uVar9 == 5) || (iVar7 = sqlite3BitvecSet(p,i + 1), iVar7 == 0));\n      }\n    }\n    psVar13 = (sqlite3 *)&DAT_ffffffff;\n    goto LAB_000ef06d;\n  case 9:\n    psVar13 = (sqlite3 *)0x0;\n    sqlite3Config.xTestCallback = (_func_int_int *)in_stack_00000008;\n    if (in_stack_00000008 != (sqlite3 *)0x0) {\n      psVar13 = (sqlite3 *)(*(code *)in_stack_00000008)(0);\n    }\n    break;\n  case 10:\n    psVar13 = (sqlite3 *)0x0;\n    sqlite3Hooks.xBenignBegin = (_func_void *)in_stack_00000008;\n    sqlite3Hooks.xBenignEnd = in_stack_0000000c;\n    break;\n  case 0xb:\n    if (in_stack_00000008 != (sqlite3 *)0x0) {\n      sqlite3PendingByte = (int)in_stack_00000008;\n    }\n    break;\n  case 0xc:\n    i = 0;\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  case 0xd:\n    psVar13 = in_stack_00000008;\n    break;\n  case 0xe:\n    sqlite3_mutex_enter(in_stack_00000008->mutex);\n    sqlite3BtreeSetPageSize(in_stack_00000008->aDb->pBt,0,(int)in_stack_0000000c,0);\n    sqlite3_mutex_leave(in_stack_00000008->mutex);\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  case 0xf:\n    in_stack_00000008->dbOptFlags = (u16)in_stack_0000000c;\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  default:\n    goto _L55077;\n  case 0x11:\n    sqlite3Config.bInternalFunctions = (int)in_stack_00000008;\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  case 0x12:\n    sqlite3Config.bLocaltimeFault = (int)in_stack_00000008;\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  case 0x13:\n    sqlite3Config.iOnceResetThreshold = (int)in_stack_00000008;\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  case 0x14:\n    sqlite3Config.neverCorrupt = (int)in_stack_00000008;\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  case 0x16:\n    psVar13 = (sqlite3 *)0x1e212;\n    break;\n  case 0x17:\n    psVar13 = (sqlite3 *)(uint)(sqlite3Config.isInit == 0);\n    break;\n  case 0x18:\n    in_stack_00000008->nMaxSorterMmap = (int)in_stack_0000000c;\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  case 0x19:\n    sqlite3_mutex_enter(in_stack_00000008->mutex);\n    iVar8 = sqlite3FindDbName(in_stack_00000008,(char *)in_stack_0000000c);\n    (in_stack_00000008->init).iDb = (u8)iVar8;\n    in_stack_00000010 = in_stack_00000010 & 1;\n    (in_stack_00000008->init).busy = in_stack_00000010;\n    (in_stack_00000008->init).field_0x6 =\n         (in_stack_00000008->init).field_0x6 & 0xfd | in_stack_00000010 * '\x02';\n    (in_stack_00000008->init).newTnum = in_stack_00000014;\n    if ((0 < in_stack_00000014) && (in_stack_00000010 == 0)) {\n      sqlite3ResetAllSchemasOfConnection(in_stack_00000008);\n    }\n    sqlite3_mutex_leave(in_stack_00000008->mutex);\n    psVar13 = (sqlite3 *)0x0;\n  }" switch (parenthesized_expression "(op)" ( identifier )) (compound_statement "{\n  case 5:\n    psVar5 = &sqlite3SavedPrng;\n    psVar12 = &sqlite3Prng;\n    goto LAB_000eecfc;\n  case 6:\n    psVar5 = &sqlite3Prng;\n    psVar12 = &sqlite3SavedPrng;\nLAB_000eecfc:\n    for (iVar8 = 0x40; iVar8 != 0; iVar8 = iVar8 + -1) {\n      uVar1 = psVar12->i;\n      uVar2 = psVar12->j;\n      uVar3 = psVar12->s[0];\n      psVar5->isInit = psVar12->isInit;\n      psVar5->i = uVar1;\n      psVar5->j = uVar2;\n      psVar5->s[0] = uVar3;\n      psVar12 = (sqlite3PrngType *)(psVar12->s + 1);\n      psVar5 = (sqlite3PrngType *)(psVar5->s + 1);\n    }\n    uVar1 = psVar12->i;\n    psVar5->isInit = psVar12->isInit;\n    psVar5->i = uVar1;\n    psVar5->j = psVar12->j;\n_L55077:\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  case 7:\n    psVar13 = (sqlite3 *)0x0;\n    sqlite3_randomness(0,(void *)0x0);\n    break;\n  case 8:\n    p = (Bitvec *)sqlite3MallocZero(in_stack_ffffffb4);\n    if (p == (Bitvec *)0x0) {\n      local_3c = sqlite3MallocZero(in_stack_ffffffb4);\n      local_30 = sqlite3_malloc64(0x200);\n    }\n    else {\n      p->iSize = (u32)in_stack_00000008;\n      local_3c = sqlite3MallocZero(in_stack_ffffffb4);\n      local_30 = sqlite3_malloc64(0x200);\n      if ((local_3c != (void *)0x0) && (local_30 != (void *)0x0)) {\n        iVar8 = 0;\n        do {\n          while( true ) {\n            iVar7 = iVar8 * 4;\n            uVar9 = *(uint *)(in_stack_0000000c + iVar8 * 4);\n            if (uVar9 == 0) {\n              iVar8 = sqlite3BitvecTest(p,(u32)((int)&in_stack_00000008->pVfs + 1));\n              iVar7 = sqlite3BitvecTest(p,0);\n              i = 1;\n              psVar14 = (sqlite3 *)((p->iSize - (int)in_stack_00000008) + iVar8 + iVar7);\n              psVar13 = psVar14;\n              if ((int)in_stack_00000008 < 1) goto LAB_000ef06d;\n              goto LAB_000ef13b;\n            }\n            if ((uVar9 < 6) && ((1 << ((byte)uVar9 & 0x1f) & 0x26U) != 0)) {\n              iVar10 = *(int *)(in_stack_0000000c + iVar7 + 8);\n              i = iVar10 + -1;\n              *(int *)(in_stack_0000000c + iVar7 + 8) =\n                   iVar10 + *(int *)(in_stack_0000000c + iVar7 + 0xc);\n              iVar10 = 4;\n            }\n            else {\n              sqlite3_randomness(4,&i);\n              iVar10 = 2;\n            }\n            iVar6 = *(int *)(in_stack_0000000c + iVar7 + 4) + -1;\n            *(int *)(in_stack_0000000c + iVar7 + 4) = iVar6;\n            if (iVar6 < 1) {\n              iVar8 = iVar10 + iVar8;\n            }\n            i = (int)((longlong)(ulonglong)(i & 0x7fffffff) % (longlong)(int)in_stack_00000008);\n            pbVar11 = (byte *)((i + 1 >> 3) + (int)local_3c);\n            bVar4 = (byte)(1 << ((byte)(i + 1) & 7));\n            if ((uVar9 & 1) != 0) break;\n            *pbVar11 = *pbVar11 & ~bVar4;\n            sqlite3BitvecClear(p,i + 1,local_30);\n          }\n          *pbVar11 = *pbVar11 | bVar4;\n        } while ((uVar9 == 5) || (iVar7 = sqlite3BitvecSet(p,i + 1), iVar7 == 0));\n      }\n    }\n    psVar13 = (sqlite3 *)&DAT_ffffffff;\n    goto LAB_000ef06d;\n  case 9:\n    psVar13 = (sqlite3 *)0x0;\n    sqlite3Config.xTestCallback = (_func_int_int *)in_stack_00000008;\n    if (in_stack_00000008 != (sqlite3 *)0x0) {\n      psVar13 = (sqlite3 *)(*(code *)in_stack_00000008)(0);\n    }\n    break;\n  case 10:\n    psVar13 = (sqlite3 *)0x0;\n    sqlite3Hooks.xBenignBegin = (_func_void *)in_stack_00000008;\n    sqlite3Hooks.xBenignEnd = in_stack_0000000c;\n    break;\n  case 0xb:\n    if (in_stack_00000008 != (sqlite3 *)0x0) {\n      sqlite3PendingByte = (int)in_stack_00000008;\n    }\n    break;\n  case 0xc:\n    i = 0;\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  case 0xd:\n    psVar13 = in_stack_00000008;\n    break;\n  case 0xe:\n    sqlite3_mutex_enter(in_stack_00000008->mutex);\n    sqlite3BtreeSetPageSize(in_stack_00000008->aDb->pBt,0,(int)in_stack_0000000c,0);\n    sqlite3_mutex_leave(in_stack_00000008->mutex);\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  case 0xf:\n    in_stack_00000008->dbOptFlags = (u16)in_stack_0000000c;\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  default:\n    goto _L55077;\n  case 0x11:\n    sqlite3Config.bInternalFunctions = (int)in_stack_00000008;\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  case 0x12:\n    sqlite3Config.bLocaltimeFault = (int)in_stack_00000008;\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  case 0x13:\n    sqlite3Config.iOnceResetThreshold = (int)in_stack_00000008;\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  case 0x14:\n    sqlite3Config.neverCorrupt = (int)in_stack_00000008;\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  case 0x16:\n    psVar13 = (sqlite3 *)0x1e212;\n    break;\n  case 0x17:\n    psVar13 = (sqlite3 *)(uint)(sqlite3Config.isInit == 0);\n    break;\n  case 0x18:\n    in_stack_00000008->nMaxSorterMmap = (int)in_stack_0000000c;\n    psVar13 = (sqlite3 *)0x0;\n    break;\n  case 0x19:\n    sqlite3_mutex_enter(in_stack_00000008->mutex);\n    iVar8 = sqlite3FindDbName(in_stack_00000008,(char *)in_stack_0000000c);\n    (in_stack_00000008->init).iDb = (u8)iVar8;\n    in_stack_00000010 = in_stack_00000010 & 1;\n    (in_stack_00000008->init).busy = in_stack_00000010;\n    (in_stack_00000008->init).field_0x6 =\n         (in_stack_00000008->init).field_0x6 & 0xfd | in_stack_00000010 * '\x02';\n    (in_stack_00000008->init).newTnum = in_stack_00000014;\n    if ((0 < in_stack_00000014) && (in_stack_00000010 == 0)) {\n      sqlite3ResetAllSchemasOfConnection(in_stack_00000008);\n    }\n    sqlite3_mutex_leave(in_stack_00000008->mutex);\n    psVar13 = (sqlite3 *)0x0;\n  }" { (case_statement "case 5:\n    psVar5 = &sqlite3SavedPrng;\n    psVar12 = &sqlite3Prng;\n    goto LAB_000eecfc;" case number_literal : (expression_statement "psVar5 = &sqlite3SavedPrng;" (assignment_expression "psVar5 = &sqlite3SavedPrng" identifier = (pointer_expression "&sqlite3SavedPrng" & identifier)) ;) (expression_statement "psVar12 = &sqlite3Prng;" (assignment_expression "psVar12 = &sqlite3Prng" identifier = (pointer_expression "&sqlite3Prng" & identifier)) ;) (goto_statement "goto LAB_000eecfc;" goto statement_identifier ;)) (case_statement "case 6:\n    psVar5 = &sqlite3Prng;\n    psVar12 = &sqlite3SavedPrng;\nLAB_000eecfc:\n    for (iVar8 = 0x40; iVar8 != 0; iVar8 = iVar8 + -1) {\n      uVar1 = psVar12->i;\n      uVar2 = psVar12->j;\n      uVar3 = psVar12->s[0];\n      psVar5->isInit = psVar12->isInit;\n      psVar5->i = uVar1;\n      psVar5->j = uVar2;\n      psVar5->s[0] = uVar3;\n      psVar12 = (sqlite3PrngType *)(psVar12->s + 1);\n      psVar5 = (sqlite3PrngType *)(psVar5->s + 1);\n    }\n    uVar1 = psVar12->i;\n    psVar5->isInit = psVar12->isInit;\n    psVar5->i = uVar1;\n    psVar5->j = psVar12->j;\n_L55077:\n    psVar13 = (sqlite3 *)0x0;\n    break;" case number_literal : (expression_statement "psVar5 = &sqlite3Prng;" (assignment_expression "psVar5 = &sqlite3Prng" identifier = (pointer_expression "&sqlite3Prng" & identifier)) ;) (expression_statement "psVar12 = &sqlite3SavedPrng;" (assignment_expression "psVar12 = &sqlite3SavedPrng" identifier = (pointer_expression "&sqlite3SavedPrng" & identifier)) ;) (labeled_statement "LAB_000eecfc:\n    for (iVar8 = 0x40; iVar8 != 0; iVar8 = iVar8 + -1) {\n      uVar1 = psVar12->i;\n      uVar2 = psVar12->j;\n      uVar3 = psVar12->s[0];\n      psVar5->isInit = psVar12->isInit;\n      psVar5->i = uVar1;\n      psVar5->j = uVar2;\n      psVar5->s[0] = uVar3;\n      psVar12 = (sqlite3PrngType *)(psVar12->s + 1);\n      psVar5 = (sqlite3PrngType *)(psVar5->s + 1);\n    }" statement_identifier : (for_statement "for (iVar8 = 0x40; iVar8 != 0; iVar8 = iVar8 + -1) {\n      uVar1 = psVar12->i;\n      uVar2 = psVar12->j;\n      uVar3 = psVar12->s[0];\n      psVar5->isInit = psVar12->isInit;\n      psVar5->i = uVar1;\n      psVar5->j = uVar2;\n      psVar5->s[0] = uVar3;\n      psVar12 = (sqlite3PrngType *)(psVar12->s + 1);\n      psVar5 = (sqlite3PrngType *)(psVar5->s + 1);\n    }" for ( (assignment_expression "iVar8 = 0x40" identifier = number_literal) ; (binary_expression "iVar8 != 0" identifier != number_literal) ; (assignment_expression "iVar8 = iVar8 + -1" identifier = (binary_expression "iVar8 + -1" identifier + number_literal)) ) (compound_statement "{\n      uVar1 = psVar12->i;\n      uVar2 = psVar12->j;\n      uVar3 = psVar12->s[0];\n      psVar5->isInit = psVar12->isInit;\n      psVar5->i = uVar1;\n      psVar5->j = uVar2;\n      psVar5->s[0] = uVar3;\n      psVar12 = (sqlite3PrngType *)(psVar12->s + 1);\n      psVar5 = (sqlite3PrngType *)(psVar5->s + 1);\n    }" { (expression_statement "uVar1 = psVar12->i;" (assignment_expression "uVar1 = psVar12->i" identifier = (field_expression "psVar12->i" identifier -> field_identifier)) ;) (expression_statement "uVar2 = psVar12->j;" (assignment_expression "uVar2 = psVar12->j" identifier = (field_expression "psVar12->j" identifier -> field_identifier)) ;) (expression_statement "uVar3 = psVar12->s[0];" (assignment_expression "uVar3 = psVar12->s[0]" identifier = (subscript_expression "psVar12->s[0]" (field_expression "psVar12->s" identifier -> field_identifier) [ number_literal ])) ;) (expression_statement "psVar5->isInit = psVar12->isInit;" (assignment_expression "psVar5->isInit = psVar12->isInit" (field_expression "psVar5->isInit" identifier -> field_identifier) = (field_expression "psVar12->isInit" identifier -> field_identifier)) ;) (expression_statement "psVar5->i = uVar1;" (assignment_expression "psVar5->i = uVar1" (field_expression "psVar5->i" identifier -> field_identifier) = identifier) ;) (expression_statement "psVar5->j = uVar2;" (assignment_expression "psVar5->j = uVar2" (field_expression "psVar5->j" identifier -> field_identifier) = identifier) ;) (expression_statement "psVar5->s[0] = uVar3;" (assignment_expression "psVar5->s[0] = uVar3" (subscript_expression "psVar5->s[0]" (field_expression "psVar5->s" identifier -> field_identifier) [ number_literal ]) = identifier) ;) (expression_statement "psVar12 = (sqlite3PrngType *)(psVar12->s + 1);" (assignment_expression "psVar12 = (sqlite3PrngType *)(psVar12->s + 1)" identifier = (cast_expression "(sqlite3PrngType *)(psVar12->s + 1)" ( (type_descriptor "sqlite3PrngType *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(psVar12->s + 1)" ( (binary_expression "psVar12->s + 1" (field_expression "psVar12->s" identifier -> field_identifier) + number_literal) )))) ;) (expression_statement "psVar5 = (sqlite3PrngType *)(psVar5->s + 1);" (assignment_expression "psVar5 = (sqlite3PrngType *)(psVar5->s + 1)" identifier = (cast_expression "(sqlite3PrngType *)(psVar5->s + 1)" ( (type_descriptor "sqlite3PrngType *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(psVar5->s + 1)" ( (binary_expression "psVar5->s + 1" (field_expression "psVar5->s" identifier -> field_identifier) + number_literal) )))) ;) }))) (expression_statement "uVar1 = psVar12->i;" (assignment_expression "uVar1 = psVar12->i" identifier = (field_expression "psVar12->i" identifier -> field_identifier)) ;) (expression_statement "psVar5->isInit = psVar12->isInit;" (assignment_expression "psVar5->isInit = psVar12->isInit" (field_expression "psVar5->isInit" identifier -> field_identifier) = (field_expression "psVar12->isInit" identifier -> field_identifier)) ;) (expression_statement "psVar5->i = uVar1;" (assignment_expression "psVar5->i = uVar1" (field_expression "psVar5->i" identifier -> field_identifier) = identifier) ;) (expression_statement "psVar5->j = psVar12->j;" (assignment_expression "psVar5->j = psVar12->j" (field_expression "psVar5->j" identifier -> field_identifier) = (field_expression "psVar12->j" identifier -> field_identifier)) ;) (labeled_statement "_L55077:\n    psVar13 = (sqlite3 *)0x0;" statement_identifier : (expression_statement "psVar13 = (sqlite3 *)0x0;" (assignment_expression "psVar13 = (sqlite3 *)0x0" identifier = (cast_expression "(sqlite3 *)0x0" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) (break_statement "break;" break ;)) (case_statement "case 7:\n    psVar13 = (sqlite3 *)0x0;\n    sqlite3_randomness(0,(void *)0x0);\n    break;" case number_literal : (expression_statement "psVar13 = (sqlite3 *)0x0;" (assignment_expression "psVar13 = (sqlite3 *)0x0" identifier = (cast_expression "(sqlite3 *)0x0" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "sqlite3_randomness(0,(void *)0x0);" (call_expression "sqlite3_randomness(0,(void *)0x0)" identifier (argument_list "(0,(void *)0x0)" ( number_literal , (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) (break_statement "break;" break ;)) (case_statement "case 8:\n    p = (Bitvec *)sqlite3MallocZero(in_stack_ffffffb4);\n    if (p == (Bitvec *)0x0) {\n      local_3c = sqlite3MallocZero(in_stack_ffffffb4);\n      local_30 = sqlite3_malloc64(0x200);\n    }\n    else {\n      p->iSize = (u32)in_stack_00000008;\n      local_3c = sqlite3MallocZero(in_stack_ffffffb4);\n      local_30 = sqlite3_malloc64(0x200);\n      if ((local_3c != (void *)0x0) && (local_30 != (void *)0x0)) {\n        iVar8 = 0;\n        do {\n          while( true ) {\n            iVar7 = iVar8 * 4;\n            uVar9 = *(uint *)(in_stack_0000000c + iVar8 * 4);\n            if (uVar9 == 0) {\n              iVar8 = sqlite3BitvecTest(p,(u32)((int)&in_stack_00000008->pVfs + 1));\n              iVar7 = sqlite3BitvecTest(p,0);\n              i = 1;\n              psVar14 = (sqlite3 *)((p->iSize - (int)in_stack_00000008) + iVar8 + iVar7);\n              psVar13 = psVar14;\n              if ((int)in_stack_00000008 < 1) goto LAB_000ef06d;\n              goto LAB_000ef13b;\n            }\n            if ((uVar9 < 6) && ((1 << ((byte)uVar9 & 0x1f) & 0x26U) != 0)) {\n              iVar10 = *(int *)(in_stack_0000000c + iVar7 + 8);\n              i = iVar10 + -1;\n              *(int *)(in_stack_0000000c + iVar7 + 8) =\n                   iVar10 + *(int *)(in_stack_0000000c + iVar7 + 0xc);\n              iVar10 = 4;\n            }\n            else {\n              sqlite3_randomness(4,&i);\n              iVar10 = 2;\n            }\n            iVar6 = *(int *)(in_stack_0000000c + iVar7 + 4) + -1;\n            *(int *)(in_stack_0000000c + iVar7 + 4) = iVar6;\n            if (iVar6 < 1) {\n              iVar8 = iVar10 + iVar8;\n            }\n            i = (int)((longlong)(ulonglong)(i & 0x7fffffff) % (longlong)(int)in_stack_00000008);\n            pbVar11 = (byte *)((i + 1 >> 3) + (int)local_3c);\n            bVar4 = (byte)(1 << ((byte)(i + 1) & 7));\n            if ((uVar9 & 1) != 0) break;\n            *pbVar11 = *pbVar11 & ~bVar4;\n            sqlite3BitvecClear(p,i + 1,local_30);\n          }\n          *pbVar11 = *pbVar11 | bVar4;\n        } while ((uVar9 == 5) || (iVar7 = sqlite3BitvecSet(p,i + 1), iVar7 == 0));\n      }\n    }\n    psVar13 = (sqlite3 *)&DAT_ffffffff;\n    goto LAB_000ef06d;" case number_literal : (expression_statement "p = (Bitvec *)sqlite3MallocZero(in_stack_ffffffb4);" (assignment_expression "p = (Bitvec *)sqlite3MallocZero(in_stack_ffffffb4)" identifier = (cast_expression "(Bitvec *)sqlite3MallocZero(in_stack_ffffffb4)" ( (type_descriptor "Bitvec *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3MallocZero(in_stack_ffffffb4)" identifier (argument_list "(in_stack_ffffffb4)" ( identifier ))))) ;) (if_statement "if (p == (Bitvec *)0x0) {\n      local_3c = sqlite3MallocZero(in_stack_ffffffb4);\n      local_30 = sqlite3_malloc64(0x200);\n    }\n    else {\n      p->iSize = (u32)in_stack_00000008;\n      local_3c = sqlite3MallocZero(in_stack_ffffffb4);\n      local_30 = sqlite3_malloc64(0x200);\n      if ((local_3c != (void *)0x0) && (local_30 != (void *)0x0)) {\n        iVar8 = 0;\n        do {\n          while( true ) {\n            iVar7 = iVar8 * 4;\n            uVar9 = *(uint *)(in_stack_0000000c + iVar8 * 4);\n            if (uVar9 == 0) {\n              iVar8 = sqlite3BitvecTest(p,(u32)((int)&in_stack_00000008->pVfs + 1));\n              iVar7 = sqlite3BitvecTest(p,0);\n              i = 1;\n              psVar14 = (sqlite3 *)((p->iSize - (int)in_stack_00000008) + iVar8 + iVar7);\n              psVar13 = psVar14;\n              if ((int)in_stack_00000008 < 1) goto LAB_000ef06d;\n              goto LAB_000ef13b;\n            }\n            if ((uVar9 < 6) && ((1 << ((byte)uVar9 & 0x1f) & 0x26U) != 0)) {\n              iVar10 = *(int *)(in_stack_0000000c + iVar7 + 8);\n              i = iVar10 + -1;\n              *(int *)(in_stack_0000000c + iVar7 + 8) =\n                   iVar10 + *(int *)(in_stack_0000000c + iVar7 + 0xc);\n              iVar10 = 4;\n            }\n            else {\n              sqlite3_randomness(4,&i);\n              iVar10 = 2;\n            }\n            iVar6 = *(int *)(in_stack_0000000c + iVar7 + 4) + -1;\n            *(int *)(in_stack_0000000c + iVar7 + 4) = iVar6;\n            if (iVar6 < 1) {\n              iVar8 = iVar10 + iVar8;\n            }\n            i = (int)((longlong)(ulonglong)(i & 0x7fffffff) % (longlong)(int)in_stack_00000008);\n            pbVar11 = (byte *)((i + 1 >> 3) + (int)local_3c);\n            bVar4 = (byte)(1 << ((byte)(i + 1) & 7));\n            if ((uVar9 & 1) != 0) break;\n            *pbVar11 = *pbVar11 & ~bVar4;\n            sqlite3BitvecClear(p,i + 1,local_30);\n          }\n          *pbVar11 = *pbVar11 | bVar4;\n        } while ((uVar9 == 5) || (iVar7 = sqlite3BitvecSet(p,i + 1), iVar7 == 0));\n      }\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      local_3c = sqlite3MallocZero(in_stack_ffffffb4);\n      local_30 = sqlite3_malloc64(0x200);\n    }" { (expression_statement "local_3c = sqlite3MallocZero(in_stack_ffffffb4);" (assignment_expression "local_3c = sqlite3MallocZero(in_stack_ffffffb4)" identifier = (call_expression "sqlite3MallocZero(in_stack_ffffffb4)" identifier (argument_list "(in_stack_ffffffb4)" ( identifier )))) ;) (expression_statement "local_30 = sqlite3_malloc64(0x200);" (assignment_expression "local_30 = sqlite3_malloc64(0x200)" identifier = (call_expression "sqlite3_malloc64(0x200)" identifier (argument_list "(0x200)" ( number_literal )))) ;) }) (else_clause "else {\n      p->iSize = (u32)in_stack_00000008;\n      local_3c = sqlite3MallocZero(in_stack_ffffffb4);\n      local_30 = sqlite3_malloc64(0x200);\n      if ((local_3c != (void *)0x0) && (local_30 != (void *)0x0)) {\n        iVar8 = 0;\n        do {\n          while( true ) {\n            iVar7 = iVar8 * 4;\n            uVar9 = *(uint *)(in_stack_0000000c + iVar8 * 4);\n            if (uVar9 == 0) {\n              iVar8 = sqlite3BitvecTest(p,(u32)((int)&in_stack_00000008->pVfs + 1));\n              iVar7 = sqlite3BitvecTest(p,0);\n              i = 1;\n              psVar14 = (sqlite3 *)((p->iSize - (int)in_stack_00000008) + iVar8 + iVar7);\n              psVar13 = psVar14;\n              if ((int)in_stack_00000008 < 1) goto LAB_000ef06d;\n              goto LAB_000ef13b;\n            }\n            if ((uVar9 < 6) && ((1 << ((byte)uVar9 & 0x1f) & 0x26U) != 0)) {\n              iVar10 = *(int *)(in_stack_0000000c + iVar7 + 8);\n              i = iVar10 + -1;\n              *(int *)(in_stack_0000000c + iVar7 + 8) =\n                   iVar10 + *(int *)(in_stack_0000000c + iVar7 + 0xc);\n              iVar10 = 4;\n            }\n            else {\n              sqlite3_randomness(4,&i);\n              iVar10 = 2;\n            }\n            iVar6 = *(int *)(in_stack_0000000c + iVar7 + 4) + -1;\n            *(int *)(in_stack_0000000c + iVar7 + 4) = iVar6;\n            if (iVar6 < 1) {\n              iVar8 = iVar10 + iVar8;\n            }\n            i = (int)((longlong)(ulonglong)(i & 0x7fffffff) % (longlong)(int)in_stack_00000008);\n            pbVar11 = (byte *)((i + 1 >> 3) + (int)local_3c);\n            bVar4 = (byte)(1 << ((byte)(i + 1) & 7));\n            if ((uVar9 & 1) != 0) break;\n            *pbVar11 = *pbVar11 & ~bVar4;\n            sqlite3BitvecClear(p,i + 1,local_30);\n          }\n          *pbVar11 = *pbVar11 | bVar4;\n        } while ((uVar9 == 5) || (iVar7 = sqlite3BitvecSet(p,i + 1), iVar7 == 0));\n      }\n    }" else (compound_statement "{\n      p->iSize = (u32)in_stack_00000008;\n      local_3c = sqlite3MallocZero(in_stack_ffffffb4);\n      local_30 = sqlite3_malloc64(0x200);\n      if ((local_3c != (void *)0x0) && (local_30 != (void *)0x0)) {\n        iVar8 = 0;\n        do {\n          while( true ) {\n            iVar7 = iVar8 * 4;\n            uVar9 = *(uint *)(in_stack_0000000c + iVar8 * 4);\n            if (uVar9 == 0) {\n              iVar8 = sqlite3BitvecTest(p,(u32)((int)&in_stack_00000008->pVfs + 1));\n              iVar7 = sqlite3BitvecTest(p,0);\n              i = 1;\n              psVar14 = (sqlite3 *)((p->iSize - (int)in_stack_00000008) + iVar8 + iVar7);\n              psVar13 = psVar14;\n              if ((int)in_stack_00000008 < 1) goto LAB_000ef06d;\n              goto LAB_000ef13b;\n            }\n            if ((uVar9 < 6) && ((1 << ((byte)uVar9 & 0x1f) & 0x26U) != 0)) {\n              iVar10 = *(int *)(in_stack_0000000c + iVar7 + 8);\n              i = iVar10 + -1;\n              *(int *)(in_stack_0000000c + iVar7 + 8) =\n                   iVar10 + *(int *)(in_stack_0000000c + iVar7 + 0xc);\n              iVar10 = 4;\n            }\n            else {\n              sqlite3_randomness(4,&i);\n              iVar10 = 2;\n            }\n            iVar6 = *(int *)(in_stack_0000000c + iVar7 + 4) + -1;\n            *(int *)(in_stack_0000000c + iVar7 + 4) = iVar6;\n            if (iVar6 < 1) {\n              iVar8 = iVar10 + iVar8;\n            }\n            i = (int)((longlong)(ulonglong)(i & 0x7fffffff) % (longlong)(int)in_stack_00000008);\n            pbVar11 = (byte *)((i + 1 >> 3) + (int)local_3c);\n            bVar4 = (byte)(1 << ((byte)(i + 1) & 7));\n            if ((uVar9 & 1) != 0) break;\n            *pbVar11 = *pbVar11 & ~bVar4;\n            sqlite3BitvecClear(p,i + 1,local_30);\n          }\n          *pbVar11 = *pbVar11 | bVar4;\n        } while ((uVar9 == 5) || (iVar7 = sqlite3BitvecSet(p,i + 1), iVar7 == 0));\n      }\n    }" { (expression_statement "p->iSize = (u32)in_stack_00000008;" (assignment_expression "p->iSize = (u32)in_stack_00000008" (field_expression "p->iSize" identifier -> field_identifier) = (cast_expression "(u32)in_stack_00000008" ( (type_descriptor "u32" type_identifier) ) identifier)) ;) (expression_statement "local_3c = sqlite3MallocZero(in_stack_ffffffb4);" (assignment_expression "local_3c = sqlite3MallocZero(in_stack_ffffffb4)" identifier = (call_expression "sqlite3MallocZero(in_stack_ffffffb4)" identifier (argument_list "(in_stack_ffffffb4)" ( identifier )))) ;) (expression_statement "local_30 = sqlite3_malloc64(0x200);" (assignment_expression "local_30 = sqlite3_malloc64(0x200)" identifier = (call_expression "sqlite3_malloc64(0x200)" identifier (argument_list "(0x200)" ( number_literal )))) ;) (if_statement "if ((local_3c != (void *)0x0) && (local_30 != (void *)0x0)) {\n        iVar8 = 0;\n        do {\n          while( true ) {\n            iVar7 = iVar8 * 4;\n            uVar9 = *(uint *)(in_stack_0000000c + iVar8 * 4);\n            if (uVar9 == 0) {\n              iVar8 = sqlite3BitvecTest(p,(u32)((int)&in_stack_00000008->pVfs + 1));\n              iVar7 = sqlite3BitvecTest(p,0);\n              i = 1;\n              psVar14 = (sqlite3 *)((p->iSize - (int)in_stack_00000008) + iVar8 + iVar7);\n              psVar13 = psVar14;\n              if ((int)in_stack_00000008 < 1) goto LAB_000ef06d;\n              goto LAB_000ef13b;\n            }\n            if ((uVar9 < 6) && ((1 << ((byte)uVar9 & 0x1f) & 0x26U) != 0)) {\n              iVar10 = *(int *)(in_stack_0000000c + iVar7 + 8);\n              i = iVar10 + -1;\n              *(int *)(in_stack_0000000c + iVar7 + 8) =\n                   iVar10 + *(int *)(in_stack_0000000c + iVar7 + 0xc);\n              iVar10 = 4;\n            }\n            else {\n              sqlite3_randomness(4,&i);\n              iVar10 = 2;\n            }\n            iVar6 = *(int *)(in_stack_0000000c + iVar7 + 4) + -1;\n            *(int *)(in_stack_0000000c + iVar7 + 4) = iVar6;\n            if (iVar6 < 1) {\n              iVar8 = iVar10 + iVar8;\n            }\n            i = (int)((longlong)(ulonglong)(i & 0x7fffffff) % (longlong)(int)in_stack_00000008);\n            pbVar11 = (byte *)((i + 1 >> 3) + (int)local_3c);\n            bVar4 = (byte)(1 << ((byte)(i + 1) & 7));\n            if ((uVar9 & 1) != 0) break;\n            *pbVar11 = *pbVar11 & ~bVar4;\n            sqlite3BitvecClear(p,i + 1,local_30);\n          }\n          *pbVar11 = *pbVar11 | bVar4;\n        } while ((uVar9 == 5) || (iVar7 = sqlite3BitvecSet(p,i + 1), iVar7 == 0));\n      }" if (parenthesized_expression "((local_3c != (void *)0x0) && (local_30 != (void *)0x0))" ( (binary_expression "(local_3c != (void *)0x0) && (local_30 != (void *)0x0)" (parenthesized_expression "(local_3c != (void *)0x0)" ( (binary_expression "local_3c != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(local_30 != (void *)0x0)" ( (binary_expression "local_30 != (void *)0x0" identifier != (cast_expression "(void *)0x0" ( (type_descriptor "void *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n        iVar8 = 0;\n        do {\n          while( true ) {\n            iVar7 = iVar8 * 4;\n            uVar9 = *(uint *)(in_stack_0000000c + iVar8 * 4);\n            if (uVar9 == 0) {\n              iVar8 = sqlite3BitvecTest(p,(u32)((int)&in_stack_00000008->pVfs + 1));\n              iVar7 = sqlite3BitvecTest(p,0);\n              i = 1;\n              psVar14 = (sqlite3 *)((p->iSize - (int)in_stack_00000008) + iVar8 + iVar7);\n              psVar13 = psVar14;\n              if ((int)in_stack_00000008 < 1) goto LAB_000ef06d;\n              goto LAB_000ef13b;\n            }\n            if ((uVar9 < 6) && ((1 << ((byte)uVar9 & 0x1f) & 0x26U) != 0)) {\n              iVar10 = *(int *)(in_stack_0000000c + iVar7 + 8);\n              i = iVar10 + -1;\n              *(int *)(in_stack_0000000c + iVar7 + 8) =\n                   iVar10 + *(int *)(in_stack_0000000c + iVar7 + 0xc);\n              iVar10 = 4;\n            }\n            else {\n              sqlite3_randomness(4,&i);\n              iVar10 = 2;\n            }\n            iVar6 = *(int *)(in_stack_0000000c + iVar7 + 4) + -1;\n            *(int *)(in_stack_0000000c + iVar7 + 4) = iVar6;\n            if (iVar6 < 1) {\n              iVar8 = iVar10 + iVar8;\n            }\n            i = (int)((longlong)(ulonglong)(i & 0x7fffffff) % (longlong)(int)in_stack_00000008);\n            pbVar11 = (byte *)((i + 1 >> 3) + (int)local_3c);\n            bVar4 = (byte)(1 << ((byte)(i + 1) & 7));\n            if ((uVar9 & 1) != 0) break;\n            *pbVar11 = *pbVar11 & ~bVar4;\n            sqlite3BitvecClear(p,i + 1,local_30);\n          }\n          *pbVar11 = *pbVar11 | bVar4;\n        } while ((uVar9 == 5) || (iVar7 = sqlite3BitvecSet(p,i + 1), iVar7 == 0));\n      }" { (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (do_statement "do {\n          while( true ) {\n            iVar7 = iVar8 * 4;\n            uVar9 = *(uint *)(in_stack_0000000c + iVar8 * 4);\n            if (uVar9 == 0) {\n              iVar8 = sqlite3BitvecTest(p,(u32)((int)&in_stack_00000008->pVfs + 1));\n              iVar7 = sqlite3BitvecTest(p,0);\n              i = 1;\n              psVar14 = (sqlite3 *)((p->iSize - (int)in_stack_00000008) + iVar8 + iVar7);\n              psVar13 = psVar14;\n              if ((int)in_stack_00000008 < 1) goto LAB_000ef06d;\n              goto LAB_000ef13b;\n            }\n            if ((uVar9 < 6) && ((1 << ((byte)uVar9 & 0x1f) & 0x26U) != 0)) {\n              iVar10 = *(int *)(in_stack_0000000c + iVar7 + 8);\n              i = iVar10 + -1;\n              *(int *)(in_stack_0000000c + iVar7 + 8) =\n                   iVar10 + *(int *)(in_stack_0000000c + iVar7 + 0xc);\n              iVar10 = 4;\n            }\n            else {\n              sqlite3_randomness(4,&i);\n              iVar10 = 2;\n            }\n            iVar6 = *(int *)(in_stack_0000000c + iVar7 + 4) + -1;\n            *(int *)(in_stack_0000000c + iVar7 + 4) = iVar6;\n            if (iVar6 < 1) {\n              iVar8 = iVar10 + iVar8;\n            }\n            i = (int)((longlong)(ulonglong)(i & 0x7fffffff) % (longlong)(int)in_stack_00000008);\n            pbVar11 = (byte *)((i + 1 >> 3) + (int)local_3c);\n            bVar4 = (byte)(1 << ((byte)(i + 1) & 7));\n            if ((uVar9 & 1) != 0) break;\n            *pbVar11 = *pbVar11 & ~bVar4;\n            sqlite3BitvecClear(p,i + 1,local_30);\n          }\n          *pbVar11 = *pbVar11 | bVar4;\n        } while ((uVar9 == 5) || (iVar7 = sqlite3BitvecSet(p,i + 1), iVar7 == 0));" do (compound_statement "{\n          while( true ) {\n            iVar7 = iVar8 * 4;\n            uVar9 = *(uint *)(in_stack_0000000c + iVar8 * 4);\n            if (uVar9 == 0) {\n              iVar8 = sqlite3BitvecTest(p,(u32)((int)&in_stack_00000008->pVfs + 1));\n              iVar7 = sqlite3BitvecTest(p,0);\n              i = 1;\n              psVar14 = (sqlite3 *)((p->iSize - (int)in_stack_00000008) + iVar8 + iVar7);\n              psVar13 = psVar14;\n              if ((int)in_stack_00000008 < 1) goto LAB_000ef06d;\n              goto LAB_000ef13b;\n            }\n            if ((uVar9 < 6) && ((1 << ((byte)uVar9 & 0x1f) & 0x26U) != 0)) {\n              iVar10 = *(int *)(in_stack_0000000c + iVar7 + 8);\n              i = iVar10 + -1;\n              *(int *)(in_stack_0000000c + iVar7 + 8) =\n                   iVar10 + *(int *)(in_stack_0000000c + iVar7 + 0xc);\n              iVar10 = 4;\n            }\n            else {\n              sqlite3_randomness(4,&i);\n              iVar10 = 2;\n            }\n            iVar6 = *(int *)(in_stack_0000000c + iVar7 + 4) + -1;\n            *(int *)(in_stack_0000000c + iVar7 + 4) = iVar6;\n            if (iVar6 < 1) {\n              iVar8 = iVar10 + iVar8;\n            }\n            i = (int)((longlong)(ulonglong)(i & 0x7fffffff) % (longlong)(int)in_stack_00000008);\n            pbVar11 = (byte *)((i + 1 >> 3) + (int)local_3c);\n            bVar4 = (byte)(1 << ((byte)(i + 1) & 7));\n            if ((uVar9 & 1) != 0) break;\n            *pbVar11 = *pbVar11 & ~bVar4;\n            sqlite3BitvecClear(p,i + 1,local_30);\n          }\n          *pbVar11 = *pbVar11 | bVar4;\n        }" { (while_statement "while( true ) {\n            iVar7 = iVar8 * 4;\n            uVar9 = *(uint *)(in_stack_0000000c + iVar8 * 4);\n            if (uVar9 == 0) {\n              iVar8 = sqlite3BitvecTest(p,(u32)((int)&in_stack_00000008->pVfs + 1));\n              iVar7 = sqlite3BitvecTest(p,0);\n              i = 1;\n              psVar14 = (sqlite3 *)((p->iSize - (int)in_stack_00000008) + iVar8 + iVar7);\n              psVar13 = psVar14;\n              if ((int)in_stack_00000008 < 1) goto LAB_000ef06d;\n              goto LAB_000ef13b;\n            }\n            if ((uVar9 < 6) && ((1 << ((byte)uVar9 & 0x1f) & 0x26U) != 0)) {\n              iVar10 = *(int *)(in_stack_0000000c + iVar7 + 8);\n              i = iVar10 + -1;\n              *(int *)(in_stack_0000000c + iVar7 + 8) =\n                   iVar10 + *(int *)(in_stack_0000000c + iVar7 + 0xc);\n              iVar10 = 4;\n            }\n            else {\n              sqlite3_randomness(4,&i);\n              iVar10 = 2;\n            }\n            iVar6 = *(int *)(in_stack_0000000c + iVar7 + 4) + -1;\n            *(int *)(in_stack_0000000c + iVar7 + 4) = iVar6;\n            if (iVar6 < 1) {\n              iVar8 = iVar10 + iVar8;\n            }\n            i = (int)((longlong)(ulonglong)(i & 0x7fffffff) % (longlong)(int)in_stack_00000008);\n            pbVar11 = (byte *)((i + 1 >> 3) + (int)local_3c);\n            bVar4 = (byte)(1 << ((byte)(i + 1) & 7));\n            if ((uVar9 & 1) != 0) break;\n            *pbVar11 = *pbVar11 & ~bVar4;\n            sqlite3BitvecClear(p,i + 1,local_30);\n          }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n            iVar7 = iVar8 * 4;\n            uVar9 = *(uint *)(in_stack_0000000c + iVar8 * 4);\n            if (uVar9 == 0) {\n              iVar8 = sqlite3BitvecTest(p,(u32)((int)&in_stack_00000008->pVfs + 1));\n              iVar7 = sqlite3BitvecTest(p,0);\n              i = 1;\n              psVar14 = (sqlite3 *)((p->iSize - (int)in_stack_00000008) + iVar8 + iVar7);\n              psVar13 = psVar14;\n              if ((int)in_stack_00000008 < 1) goto LAB_000ef06d;\n              goto LAB_000ef13b;\n            }\n            if ((uVar9 < 6) && ((1 << ((byte)uVar9 & 0x1f) & 0x26U) != 0)) {\n              iVar10 = *(int *)(in_stack_0000000c + iVar7 + 8);\n              i = iVar10 + -1;\n              *(int *)(in_stack_0000000c + iVar7 + 8) =\n                   iVar10 + *(int *)(in_stack_0000000c + iVar7 + 0xc);\n              iVar10 = 4;\n            }\n            else {\n              sqlite3_randomness(4,&i);\n              iVar10 = 2;\n            }\n            iVar6 = *(int *)(in_stack_0000000c + iVar7 + 4) + -1;\n            *(int *)(in_stack_0000000c + iVar7 + 4) = iVar6;\n            if (iVar6 < 1) {\n              iVar8 = iVar10 + iVar8;\n            }\n            i = (int)((longlong)(ulonglong)(i & 0x7fffffff) % (longlong)(int)in_stack_00000008);\n            pbVar11 = (byte *)((i + 1 >> 3) + (int)local_3c);\n            bVar4 = (byte)(1 << ((byte)(i + 1) & 7));\n            if ((uVar9 & 1) != 0) break;\n            *pbVar11 = *pbVar11 & ~bVar4;\n            sqlite3BitvecClear(p,i + 1,local_30);\n          }" { (expression_statement "iVar7 = iVar8 * 4;" (assignment_expression "iVar7 = iVar8 * 4" identifier = (binary_expression "iVar8 * 4" identifier * number_literal)) ;) (expression_statement "uVar9 = *(uint *)(in_stack_0000000c + iVar8 * 4);" (assignment_expression "uVar9 = *(uint *)(in_stack_0000000c + iVar8 * 4)" identifier = (pointer_expression "*(uint *)(in_stack_0000000c + iVar8 * 4)" * (cast_expression "(uint *)(in_stack_0000000c + iVar8 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_stack_0000000c + iVar8 * 4)" ( (binary_expression "in_stack_0000000c + iVar8 * 4" identifier + (binary_expression "iVar8 * 4" identifier * number_literal)) ))))) ;) (if_statement "if (uVar9 == 0) {\n              iVar8 = sqlite3BitvecTest(p,(u32)((int)&in_stack_00000008->pVfs + 1));\n              iVar7 = sqlite3BitvecTest(p,0);\n              i = 1;\n              psVar14 = (sqlite3 *)((p->iSize - (int)in_stack_00000008) + iVar8 + iVar7);\n              psVar13 = psVar14;\n              if ((int)in_stack_00000008 < 1) goto LAB_000ef06d;\n              goto LAB_000ef13b;\n            }" if (parenthesized_expression "(uVar9 == 0)" ( (binary_expression "uVar9 == 0" identifier == number_literal) )) (compound_statement "{\n              iVar8 = sqlite3BitvecTest(p,(u32)((int)&in_stack_00000008->pVfs + 1));\n              iVar7 = sqlite3BitvecTest(p,0);\n              i = 1;\n              psVar14 = (sqlite3 *)((p->iSize - (int)in_stack_00000008) + iVar8 + iVar7);\n              psVar13 = psVar14;\n              if ((int)in_stack_00000008 < 1) goto LAB_000ef06d;\n              goto LAB_000ef13b;\n            }" { (expression_statement "iVar8 = sqlite3BitvecTest(p,(u32)((int)&in_stack_00000008->pVfs + 1));" (assignment_expression "iVar8 = sqlite3BitvecTest(p,(u32)((int)&in_stack_00000008->pVfs + 1))" identifier = (call_expression "sqlite3BitvecTest(p,(u32)((int)&in_stack_00000008->pVfs + 1))" identifier (argument_list "(p,(u32)((int)&in_stack_00000008->pVfs + 1))" ( identifier , (call_expression "(u32)((int)&in_stack_00000008->pVfs + 1)" (parenthesized_expression "(u32)" ( identifier )) (argument_list "((int)&in_stack_00000008->pVfs + 1)" ( (binary_expression "(int)&in_stack_00000008->pVfs + 1" (cast_expression "(int)&in_stack_00000008->pVfs" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&in_stack_00000008->pVfs" & (field_expression "in_stack_00000008->pVfs" identifier -> field_identifier))) + number_literal) ))) )))) ;) (expression_statement "iVar7 = sqlite3BitvecTest(p,0);" (assignment_expression "iVar7 = sqlite3BitvecTest(p,0)" identifier = (call_expression "sqlite3BitvecTest(p,0)" identifier (argument_list "(p,0)" ( identifier , number_literal )))) ;) (expression_statement "i = 1;" (assignment_expression "i = 1" identifier = number_literal) ;) (expression_statement "psVar14 = (sqlite3 *)((p->iSize - (int)in_stack_00000008) + iVar8 + iVar7);" (assignment_expression "psVar14 = (sqlite3 *)((p->iSize - (int)in_stack_00000008) + iVar8 + iVar7)" identifier = (cast_expression "(sqlite3 *)((p->iSize - (int)in_stack_00000008) + iVar8 + iVar7)" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((p->iSize - (int)in_stack_00000008) + iVar8 + iVar7)" ( (binary_expression "(p->iSize - (int)in_stack_00000008) + iVar8 + iVar7" (binary_expression "(p->iSize - (int)in_stack_00000008) + iVar8" (parenthesized_expression "(p->iSize - (int)in_stack_00000008)" ( (binary_expression "p->iSize - (int)in_stack_00000008" (field_expression "p->iSize" identifier -> field_identifier) - (cast_expression "(int)in_stack_00000008" ( (type_descriptor "int" primitive_type) ) identifier)) )) + identifier) + identifier) )))) ;) (expression_statement "psVar13 = psVar14;" (assignment_expression "psVar13 = psVar14" identifier = identifier) ;) (if_statement "if ((int)in_stack_00000008 < 1) goto LAB_000ef06d;" if (parenthesized_expression "((int)in_stack_00000008 < 1)" ( (binary_expression "(int)in_stack_00000008 < 1" (cast_expression "(int)in_stack_00000008" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (goto_statement "goto LAB_000ef06d;" goto statement_identifier ;)) (goto_statement "goto LAB_000ef13b;" goto statement_identifier ;) })) (if_statement "if ((uVar9 < 6) && ((1 << ((byte)uVar9 & 0x1f) & 0x26U) != 0)) {\n              iVar10 = *(int *)(in_stack_0000000c + iVar7 + 8);\n              i = iVar10 + -1;\n              *(int *)(in_stack_0000000c + iVar7 + 8) =\n                   iVar10 + *(int *)(in_stack_0000000c + iVar7 + 0xc);\n              iVar10 = 4;\n            }\n            else {\n              sqlite3_randomness(4,&i);\n              iVar10 = 2;\n            }" if (parenthesized_expression "((uVar9 < 6) && ((1 << ((byte)uVar9 & 0x1f) & 0x26U) != 0))" ( (binary_expression "(uVar9 < 6) && ((1 << ((byte)uVar9 & 0x1f) & 0x26U) != 0)" (parenthesized_expression "(uVar9 < 6)" ( (binary_expression "uVar9 < 6" identifier < number_literal) )) && (parenthesized_expression "((1 << ((byte)uVar9 & 0x1f) & 0x26U) != 0)" ( (binary_expression "(1 << ((byte)uVar9 & 0x1f) & 0x26U) != 0" (parenthesized_expression "(1 << ((byte)uVar9 & 0x1f) & 0x26U)" ( (binary_expression "1 << ((byte)uVar9 & 0x1f) & 0x26U" (binary_expression "1 << ((byte)uVar9 & 0x1f)" number_literal << (parenthesized_expression "((byte)uVar9 & 0x1f)" ( (binary_expression "(byte)uVar9 & 0x1f" (cast_expression "(byte)uVar9" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) ))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n              iVar10 = *(int *)(in_stack_0000000c + iVar7 + 8);\n              i = iVar10 + -1;\n              *(int *)(in_stack_0000000c + iVar7 + 8) =\n                   iVar10 + *(int *)(in_stack_0000000c + iVar7 + 0xc);\n              iVar10 = 4;\n            }" { (expression_statement "iVar10 = *(int *)(in_stack_0000000c + iVar7 + 8);" (assignment_expression "iVar10 = *(int *)(in_stack_0000000c + iVar7 + 8)" identifier = (pointer_expression "*(int *)(in_stack_0000000c + iVar7 + 8)" * (cast_expression "(int *)(in_stack_0000000c + iVar7 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_stack_0000000c + iVar7 + 8)" ( (binary_expression "in_stack_0000000c + iVar7 + 8" (binary_expression "in_stack_0000000c + iVar7" identifier + identifier) + number_literal) ))))) ;) (expression_statement "i = iVar10 + -1;" (assignment_expression "i = iVar10 + -1" identifier = (binary_expression "iVar10 + -1" identifier + number_literal)) ;) (expression_statement "*(int *)(in_stack_0000000c + iVar7 + 8) =\n                   iVar10 + *(int *)(in_stack_0000000c + iVar7 + 0xc);" (assignment_expression "*(int *)(in_stack_0000000c + iVar7 + 8) =\n                   iVar10 + *(int *)(in_stack_0000000c + iVar7 + 0xc)" (pointer_expression "*(int *)(in_stack_0000000c + iVar7 + 8)" * (cast_expression "(int *)(in_stack_0000000c + iVar7 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_stack_0000000c + iVar7 + 8)" ( (binary_expression "in_stack_0000000c + iVar7 + 8" (binary_expression "in_stack_0000000c + iVar7" identifier + identifier) + number_literal) )))) = (binary_expression "iVar10 + *(int *)(in_stack_0000000c + iVar7 + 0xc)" identifier + (pointer_expression "*(int *)(in_stack_0000000c + iVar7 + 0xc)" * (cast_expression "(int *)(in_stack_0000000c + iVar7 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_stack_0000000c + iVar7 + 0xc)" ( (binary_expression "in_stack_0000000c + iVar7 + 0xc" (binary_expression "in_stack_0000000c + iVar7" identifier + identifier) + number_literal) )))))) ;) (expression_statement "iVar10 = 4;" (assignment_expression "iVar10 = 4" identifier = number_literal) ;) }) (else_clause "else {\n              sqlite3_randomness(4,&i);\n              iVar10 = 2;\n            }" else (compound_statement "{\n              sqlite3_randomness(4,&i);\n              iVar10 = 2;\n            }" { (expression_statement "sqlite3_randomness(4,&i);" (call_expression "sqlite3_randomness(4,&i)" identifier (argument_list "(4,&i)" ( number_literal , (pointer_expression "&i" & identifier) ))) ;) (expression_statement "iVar10 = 2;" (assignment_expression "iVar10 = 2" identifier = number_literal) ;) }))) (expression_statement "iVar6 = *(int *)(in_stack_0000000c + iVar7 + 4) + -1;" (assignment_expression "iVar6 = *(int *)(in_stack_0000000c + iVar7 + 4) + -1" identifier = (binary_expression "*(int *)(in_stack_0000000c + iVar7 + 4) + -1" (pointer_expression "*(int *)(in_stack_0000000c + iVar7 + 4)" * (cast_expression "(int *)(in_stack_0000000c + iVar7 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_stack_0000000c + iVar7 + 4)" ( (binary_expression "in_stack_0000000c + iVar7 + 4" (binary_expression "in_stack_0000000c + iVar7" identifier + identifier) + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)(in_stack_0000000c + iVar7 + 4) = iVar6;" (assignment_expression "*(int *)(in_stack_0000000c + iVar7 + 4) = iVar6" (pointer_expression "*(int *)(in_stack_0000000c + iVar7 + 4)" * (cast_expression "(int *)(in_stack_0000000c + iVar7 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_stack_0000000c + iVar7 + 4)" ( (binary_expression "in_stack_0000000c + iVar7 + 4" (binary_expression "in_stack_0000000c + iVar7" identifier + identifier) + number_literal) )))) = identifier) ;) (if_statement "if (iVar6 < 1) {\n              iVar8 = iVar10 + iVar8;\n            }" if (parenthesized_expression "(iVar6 < 1)" ( (binary_expression "iVar6 < 1" identifier < number_literal) )) (compound_statement "{\n              iVar8 = iVar10 + iVar8;\n            }" { (expression_statement "iVar8 = iVar10 + iVar8;" (assignment_expression "iVar8 = iVar10 + iVar8" identifier = (binary_expression "iVar10 + iVar8" identifier + identifier)) ;) })) (expression_statement "i = (int)((longlong)(ulonglong)(i & 0x7fffffff) % (longlong)(int)in_stack_00000008);" (assignment_expression "i = (int)((longlong)(ulonglong)(i & 0x7fffffff) % (longlong)(int)in_stack_00000008)" identifier = (cast_expression "(int)((longlong)(ulonglong)(i & 0x7fffffff) % (longlong)(int)in_stack_00000008)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((longlong)(ulonglong)(i & 0x7fffffff) % (longlong)(int)in_stack_00000008)" ( (binary_expression "(longlong)(ulonglong)(i & 0x7fffffff) % (longlong)(int)in_stack_00000008" (call_expression "(longlong)(ulonglong)(i & 0x7fffffff)" (call_expression "(longlong)(ulonglong)" (parenthesized_expression "(longlong)" ( identifier )) (argument_list "(ulonglong)" ( identifier ))) (argument_list "(i & 0x7fffffff)" ( (binary_expression "i & 0x7fffffff" identifier & number_literal) ))) % (cast_expression "(longlong)(int)in_stack_00000008" ( (type_descriptor "longlong" type_identifier) ) (cast_expression "(int)in_stack_00000008" ( (type_descriptor "int" primitive_type) ) identifier))) )))) ;) (expression_statement "pbVar11 = (byte *)((i + 1 >> 3) + (int)local_3c);" (assignment_expression "pbVar11 = (byte *)((i + 1 >> 3) + (int)local_3c)" identifier = (cast_expression "(byte *)((i + 1 >> 3) + (int)local_3c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((i + 1 >> 3) + (int)local_3c)" ( (binary_expression "(i + 1 >> 3) + (int)local_3c" (parenthesized_expression "(i + 1 >> 3)" ( (binary_expression "i + 1 >> 3" (binary_expression "i + 1" identifier + number_literal) >> number_literal) )) + (cast_expression "(int)local_3c" ( (type_descriptor "int" primitive_type) ) identifier)) )))) ;) (expression_statement "bVar4 = (byte)(1 << ((byte)(i + 1) & 7));" (assignment_expression "bVar4 = (byte)(1 << ((byte)(i + 1) & 7))" identifier = (call_expression "(byte)(1 << ((byte)(i + 1) & 7))" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(1 << ((byte)(i + 1) & 7))" ( (binary_expression "1 << ((byte)(i + 1) & 7)" number_literal << (parenthesized_expression "((byte)(i + 1) & 7)" ( (binary_expression "(byte)(i + 1) & 7" (call_expression "(byte)(i + 1)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(i + 1)" ( (binary_expression "i + 1" identifier + number_literal) ))) & number_literal) ))) )))) ;) (if_statement "if ((uVar9 & 1) != 0) break;" if (parenthesized_expression "((uVar9 & 1) != 0)" ( (binary_expression "(uVar9 & 1) != 0" (parenthesized_expression "(uVar9 & 1)" ( (binary_expression "uVar9 & 1" identifier & number_literal) )) != number_literal) )) (break_statement "break;" break ;)) (expression_statement "*pbVar11 = *pbVar11 & ~bVar4;" (assignment_expression "*pbVar11 = *pbVar11 & ~bVar4" (pointer_expression "*pbVar11" * identifier) = (binary_expression "*pbVar11 & ~bVar4" (pointer_expression "*pbVar11" * identifier) & (unary_expression "~bVar4" ~ identifier))) ;) (expression_statement "sqlite3BitvecClear(p,i + 1,local_30);" (call_expression "sqlite3BitvecClear(p,i + 1,local_30)" identifier (argument_list "(p,i + 1,local_30)" ( identifier , (binary_expression "i + 1" identifier + number_literal) , identifier ))) ;) })) (expression_statement "*pbVar11 = *pbVar11 | bVar4;" (assignment_expression "*pbVar11 = *pbVar11 | bVar4" (pointer_expression "*pbVar11" * identifier) = (binary_expression "*pbVar11 | bVar4" (pointer_expression "*pbVar11" * identifier) | identifier)) ;) }) while (parenthesized_expression "((uVar9 == 5) || (iVar7 = sqlite3BitvecSet(p,i + 1), iVar7 == 0))" ( (binary_expression "(uVar9 == 5) || (iVar7 = sqlite3BitvecSet(p,i + 1), iVar7 == 0)" (parenthesized_expression "(uVar9 == 5)" ( (binary_expression "uVar9 == 5" identifier == number_literal) )) || (parenthesized_expression "(iVar7 = sqlite3BitvecSet(p,i + 1), iVar7 == 0)" ( (comma_expression "iVar7 = sqlite3BitvecSet(p,i + 1), iVar7 == 0" (assignment_expression "iVar7 = sqlite3BitvecSet(p,i + 1)" identifier = (call_expression "sqlite3BitvecSet(p,i + 1)" identifier (argument_list "(p,i + 1)" ( identifier , (binary_expression "i + 1" identifier + number_literal) )))) , (binary_expression "iVar7 == 0" identifier == number_literal)) ))) )) ;) })) }))) (expression_statement "psVar13 = (sqlite3 *)&DAT_ffffffff;" (assignment_expression "psVar13 = (sqlite3 *)&DAT_ffffffff" identifier = (cast_expression "(sqlite3 *)&DAT_ffffffff" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_ffffffff" & identifier))) ;) (goto_statement "goto LAB_000ef06d;" goto statement_identifier ;)) (case_statement "case 9:\n    psVar13 = (sqlite3 *)0x0;\n    sqlite3Config.xTestCallback = (_func_int_int *)in_stack_00000008;\n    if (in_stack_00000008 != (sqlite3 *)0x0) {\n      psVar13 = (sqlite3 *)(*(code *)in_stack_00000008)(0);\n    }\n    break;" case number_literal : (expression_statement "psVar13 = (sqlite3 *)0x0;" (assignment_expression "psVar13 = (sqlite3 *)0x0" identifier = (cast_expression "(sqlite3 *)0x0" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "sqlite3Config.xTestCallback = (_func_int_int *)in_stack_00000008;" (assignment_expression "sqlite3Config.xTestCallback = (_func_int_int *)in_stack_00000008" (field_expression "sqlite3Config.xTestCallback" identifier . field_identifier) = (cast_expression "(_func_int_int *)in_stack_00000008" ( (type_descriptor "_func_int_int *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (in_stack_00000008 != (sqlite3 *)0x0) {\n      psVar13 = (sqlite3 *)(*(code *)in_stack_00000008)(0);\n    }" if (parenthesized_expression "(in_stack_00000008 != (sqlite3 *)0x0)" ( (binary_expression "in_stack_00000008 != (sqlite3 *)0x0" identifier != (cast_expression "(sqlite3 *)0x0" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      psVar13 = (sqlite3 *)(*(code *)in_stack_00000008)(0);\n    }" { (expression_statement "psVar13 = (sqlite3 *)(*(code *)in_stack_00000008)(0);" (assignment_expression "psVar13 = (sqlite3 *)(*(code *)in_stack_00000008)(0)" identifier = (cast_expression "(sqlite3 *)(*(code *)in_stack_00000008)(0)" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)in_stack_00000008)(0)" (parenthesized_expression "(*(code *)in_stack_00000008)" ( (pointer_expression "*(code *)in_stack_00000008" * (cast_expression "(code *)in_stack_00000008" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(0)" ( number_literal ))))) ;) })) (break_statement "break;" break ;)) (case_statement "case 10:\n    psVar13 = (sqlite3 *)0x0;\n    sqlite3Hooks.xBenignBegin = (_func_void *)in_stack_00000008;\n    sqlite3Hooks.xBenignEnd = in_stack_0000000c;\n    break;" case number_literal : (expression_statement "psVar13 = (sqlite3 *)0x0;" (assignment_expression "psVar13 = (sqlite3 *)0x0" identifier = (cast_expression "(sqlite3 *)0x0" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "sqlite3Hooks.xBenignBegin = (_func_void *)in_stack_00000008;" (assignment_expression "sqlite3Hooks.xBenignBegin = (_func_void *)in_stack_00000008" (field_expression "sqlite3Hooks.xBenignBegin" identifier . field_identifier) = (cast_expression "(_func_void *)in_stack_00000008" ( (type_descriptor "_func_void *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "sqlite3Hooks.xBenignEnd = in_stack_0000000c;" (assignment_expression "sqlite3Hooks.xBenignEnd = in_stack_0000000c" (field_expression "sqlite3Hooks.xBenignEnd" identifier . field_identifier) = identifier) ;) (break_statement "break;" break ;)) (case_statement "case 0xb:\n    if (in_stack_00000008 != (sqlite3 *)0x0) {\n      sqlite3PendingByte = (int)in_stack_00000008;\n    }\n    break;" case number_literal : (if_statement "if (in_stack_00000008 != (sqlite3 *)0x0) {\n      sqlite3PendingByte = (int)in_stack_00000008;\n    }" if (parenthesized_expression "(in_stack_00000008 != (sqlite3 *)0x0)" ( (binary_expression "in_stack_00000008 != (sqlite3 *)0x0" identifier != (cast_expression "(sqlite3 *)0x0" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      sqlite3PendingByte = (int)in_stack_00000008;\n    }" { (expression_statement "sqlite3PendingByte = (int)in_stack_00000008;" (assignment_expression "sqlite3PendingByte = (int)in_stack_00000008" identifier = (cast_expression "(int)in_stack_00000008" ( (type_descriptor "int" primitive_type) ) identifier)) ;) })) (break_statement "break;" break ;)) (case_statement "case 0xc:\n    i = 0;\n    psVar13 = (sqlite3 *)0x0;\n    break;" case number_literal : (expression_statement "i = 0;" (assignment_expression "i = 0" identifier = number_literal) ;) (expression_statement "psVar13 = (sqlite3 *)0x0;" (assignment_expression "psVar13 = (sqlite3 *)0x0" identifier = (cast_expression "(sqlite3 *)0x0" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 0xd:\n    psVar13 = in_stack_00000008;\n    break;" case number_literal : (expression_statement "psVar13 = in_stack_00000008;" (assignment_expression "psVar13 = in_stack_00000008" identifier = identifier) ;) (break_statement "break;" break ;)) (case_statement "case 0xe:\n    sqlite3_mutex_enter(in_stack_00000008->mutex);\n    sqlite3BtreeSetPageSize(in_stack_00000008->aDb->pBt,0,(int)in_stack_0000000c,0);\n    sqlite3_mutex_leave(in_stack_00000008->mutex);\n    psVar13 = (sqlite3 *)0x0;\n    break;" case number_literal : (expression_statement "sqlite3_mutex_enter(in_stack_00000008->mutex);" (call_expression "sqlite3_mutex_enter(in_stack_00000008->mutex)" identifier (argument_list "(in_stack_00000008->mutex)" ( (field_expression "in_stack_00000008->mutex" identifier -> field_identifier) ))) ;) (expression_statement "sqlite3BtreeSetPageSize(in_stack_00000008->aDb->pBt,0,(int)in_stack_0000000c,0);" (call_expression "sqlite3BtreeSetPageSize(in_stack_00000008->aDb->pBt,0,(int)in_stack_0000000c,0)" identifier (argument_list "(in_stack_00000008->aDb->pBt,0,(int)in_stack_0000000c,0)" ( (field_expression "in_stack_00000008->aDb->pBt" (field_expression "in_stack_00000008->aDb" identifier -> field_identifier) -> field_identifier) , number_literal , (cast_expression "(int)in_stack_0000000c" ( (type_descriptor "int" primitive_type) ) identifier) , number_literal ))) ;) (expression_statement "sqlite3_mutex_leave(in_stack_00000008->mutex);" (call_expression "sqlite3_mutex_leave(in_stack_00000008->mutex)" identifier (argument_list "(in_stack_00000008->mutex)" ( (field_expression "in_stack_00000008->mutex" identifier -> field_identifier) ))) ;) (expression_statement "psVar13 = (sqlite3 *)0x0;" (assignment_expression "psVar13 = (sqlite3 *)0x0" identifier = (cast_expression "(sqlite3 *)0x0" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 0xf:\n    in_stack_00000008->dbOptFlags = (u16)in_stack_0000000c;\n    psVar13 = (sqlite3 *)0x0;\n    break;" case number_literal : (expression_statement "in_stack_00000008->dbOptFlags = (u16)in_stack_0000000c;" (assignment_expression "in_stack_00000008->dbOptFlags = (u16)in_stack_0000000c" (field_expression "in_stack_00000008->dbOptFlags" identifier -> field_identifier) = (cast_expression "(u16)in_stack_0000000c" ( (type_descriptor "u16" type_identifier) ) identifier)) ;) (expression_statement "psVar13 = (sqlite3 *)0x0;" (assignment_expression "psVar13 = (sqlite3 *)0x0" identifier = (cast_expression "(sqlite3 *)0x0" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (break_statement "break;" break ;)) (case_statement "default:\n    goto _L55077;" default : (goto_statement "goto _L55077;" goto statement_identifier ;)) (case_statement "case 0x11:\n    sqlite3Config.bInternalFunctions = (int)in_stack_00000008;\n    psVar13 = (sqlite3 *)0x0;\n    break;" case number_literal : (expression_statement "sqlite3Config.bInternalFunctions = (int)in_stack_00000008;" (assignment_expression "sqlite3Config.bInternalFunctions = (int)in_stack_00000008" (field_expression "sqlite3Config.bInternalFunctions" identifier . field_identifier) = (cast_expression "(int)in_stack_00000008" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "psVar13 = (sqlite3 *)0x0;" (assignment_expression "psVar13 = (sqlite3 *)0x0" identifier = (cast_expression "(sqlite3 *)0x0" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 0x12:\n    sqlite3Config.bLocaltimeFault = (int)in_stack_00000008;\n    psVar13 = (sqlite3 *)0x0;\n    break;" case number_literal : (expression_statement "sqlite3Config.bLocaltimeFault = (int)in_stack_00000008;" (assignment_expression "sqlite3Config.bLocaltimeFault = (int)in_stack_00000008" (field_expression "sqlite3Config.bLocaltimeFault" identifier . field_identifier) = (cast_expression "(int)in_stack_00000008" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "psVar13 = (sqlite3 *)0x0;" (assignment_expression "psVar13 = (sqlite3 *)0x0" identifier = (cast_expression "(sqlite3 *)0x0" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 0x13:\n    sqlite3Config.iOnceResetThreshold = (int)in_stack_00000008;\n    psVar13 = (sqlite3 *)0x0;\n    break;" case number_literal : (expression_statement "sqlite3Config.iOnceResetThreshold = (int)in_stack_00000008;" (assignment_expression "sqlite3Config.iOnceResetThreshold = (int)in_stack_00000008" (field_expression "sqlite3Config.iOnceResetThreshold" identifier . field_identifier) = (cast_expression "(int)in_stack_00000008" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "psVar13 = (sqlite3 *)0x0;" (assignment_expression "psVar13 = (sqlite3 *)0x0" identifier = (cast_expression "(sqlite3 *)0x0" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 0x14:\n    sqlite3Config.neverCorrupt = (int)in_stack_00000008;\n    psVar13 = (sqlite3 *)0x0;\n    break;" case number_literal : (expression_statement "sqlite3Config.neverCorrupt = (int)in_stack_00000008;" (assignment_expression "sqlite3Config.neverCorrupt = (int)in_stack_00000008" (field_expression "sqlite3Config.neverCorrupt" identifier . field_identifier) = (cast_expression "(int)in_stack_00000008" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "psVar13 = (sqlite3 *)0x0;" (assignment_expression "psVar13 = (sqlite3 *)0x0" identifier = (cast_expression "(sqlite3 *)0x0" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 0x16:\n    psVar13 = (sqlite3 *)0x1e212;\n    break;" case number_literal : (expression_statement "psVar13 = (sqlite3 *)0x1e212;" (assignment_expression "psVar13 = (sqlite3 *)0x1e212" identifier = (cast_expression "(sqlite3 *)0x1e212" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 0x17:\n    psVar13 = (sqlite3 *)(uint)(sqlite3Config.isInit == 0);\n    break;" case number_literal : (expression_statement "psVar13 = (sqlite3 *)(uint)(sqlite3Config.isInit == 0);" (assignment_expression "psVar13 = (sqlite3 *)(uint)(sqlite3Config.isInit == 0)" identifier = (cast_expression "(sqlite3 *)(uint)(sqlite3Config.isInit == 0)" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(uint)(sqlite3Config.isInit == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(sqlite3Config.isInit == 0)" ( (binary_expression "sqlite3Config.isInit == 0" (field_expression "sqlite3Config.isInit" identifier . field_identifier) == number_literal) ))))) ;) (break_statement "break;" break ;)) (case_statement "case 0x18:\n    in_stack_00000008->nMaxSorterMmap = (int)in_stack_0000000c;\n    psVar13 = (sqlite3 *)0x0;\n    break;" case number_literal : (expression_statement "in_stack_00000008->nMaxSorterMmap = (int)in_stack_0000000c;" (assignment_expression "in_stack_00000008->nMaxSorterMmap = (int)in_stack_0000000c" (field_expression "in_stack_00000008->nMaxSorterMmap" identifier -> field_identifier) = (cast_expression "(int)in_stack_0000000c" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "psVar13 = (sqlite3 *)0x0;" (assignment_expression "psVar13 = (sqlite3 *)0x0" identifier = (cast_expression "(sqlite3 *)0x0" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 0x19:\n    sqlite3_mutex_enter(in_stack_00000008->mutex);\n    iVar8 = sqlite3FindDbName(in_stack_00000008,(char *)in_stack_0000000c);\n    (in_stack_00000008->init).iDb = (u8)iVar8;\n    in_stack_00000010 = in_stack_00000010 & 1;\n    (in_stack_00000008->init).busy = in_stack_00000010;\n    (in_stack_00000008->init).field_0x6 =\n         (in_stack_00000008->init).field_0x6 & 0xfd | in_stack_00000010 * '\x02';\n    (in_stack_00000008->init).newTnum = in_stack_00000014;\n    if ((0 < in_stack_00000014) && (in_stack_00000010 == 0)) {\n      sqlite3ResetAllSchemasOfConnection(in_stack_00000008);\n    }\n    sqlite3_mutex_leave(in_stack_00000008->mutex);\n    psVar13 = (sqlite3 *)0x0;" case number_literal : (expression_statement "sqlite3_mutex_enter(in_stack_00000008->mutex);" (call_expression "sqlite3_mutex_enter(in_stack_00000008->mutex)" identifier (argument_list "(in_stack_00000008->mutex)" ( (field_expression "in_stack_00000008->mutex" identifier -> field_identifier) ))) ;) (expression_statement "iVar8 = sqlite3FindDbName(in_stack_00000008,(char *)in_stack_0000000c);" (assignment_expression "iVar8 = sqlite3FindDbName(in_stack_00000008,(char *)in_stack_0000000c)" identifier = (call_expression "sqlite3FindDbName(in_stack_00000008,(char *)in_stack_0000000c)" identifier (argument_list "(in_stack_00000008,(char *)in_stack_0000000c)" ( identifier , (cast_expression "(char *)in_stack_0000000c" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (expression_statement "(in_stack_00000008->init).iDb = (u8)iVar8;" (assignment_expression "(in_stack_00000008->init).iDb = (u8)iVar8" (field_expression "(in_stack_00000008->init).iDb" (parenthesized_expression "(in_stack_00000008->init)" ( (field_expression "in_stack_00000008->init" identifier -> field_identifier) )) . field_identifier) = (cast_expression "(u8)iVar8" ( (type_descriptor "u8" type_identifier) ) identifier)) ;) (expression_statement "in_stack_00000010 = in_stack_00000010 & 1;" (assignment_expression "in_stack_00000010 = in_stack_00000010 & 1" identifier = (binary_expression "in_stack_00000010 & 1" identifier & number_literal)) ;) (expression_statement "(in_stack_00000008->init).busy = in_stack_00000010;" (assignment_expression "(in_stack_00000008->init).busy = in_stack_00000010" (field_expression "(in_stack_00000008->init).busy" (parenthesized_expression "(in_stack_00000008->init)" ( (field_expression "in_stack_00000008->init" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "(in_stack_00000008->init).field_0x6 =\n         (in_stack_00000008->init).field_0x6 & 0xfd | in_stack_00000010 * '\x02';" (assignment_expression "(in_stack_00000008->init).field_0x6 =\n         (in_stack_00000008->init).field_0x6 & 0xfd | in_stack_00000010 * '\x02'" (field_expression "(in_stack_00000008->init).field_0x6" (parenthesized_expression "(in_stack_00000008->init)" ( (field_expression "in_stack_00000008->init" identifier -> field_identifier) )) . field_identifier) = (binary_expression "(in_stack_00000008->init).field_0x6 & 0xfd | in_stack_00000010 * '\x02'" (binary_expression "(in_stack_00000008->init).field_0x6 & 0xfd" (field_expression "(in_stack_00000008->init).field_0x6" (parenthesized_expression "(in_stack_00000008->init)" ( (field_expression "in_stack_00000008->init" identifier -> field_identifier) )) . field_identifier) & number_literal) | (binary_expression "in_stack_00000010 * '\x02'" identifier * (char_literal "'\x02'" ' escape_sequence ')))) ;) (expression_statement "(in_stack_00000008->init).newTnum = in_stack_00000014;" (assignment_expression "(in_stack_00000008->init).newTnum = in_stack_00000014" (field_expression "(in_stack_00000008->init).newTnum" (parenthesized_expression "(in_stack_00000008->init)" ( (field_expression "in_stack_00000008->init" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (if_statement "if ((0 < in_stack_00000014) && (in_stack_00000010 == 0)) {\n      sqlite3ResetAllSchemasOfConnection(in_stack_00000008);\n    }" if (parenthesized_expression "((0 < in_stack_00000014) && (in_stack_00000010 == 0))" ( (binary_expression "(0 < in_stack_00000014) && (in_stack_00000010 == 0)" (parenthesized_expression "(0 < in_stack_00000014)" ( (binary_expression "0 < in_stack_00000014" number_literal < identifier) )) && (parenthesized_expression "(in_stack_00000010 == 0)" ( (binary_expression "in_stack_00000010 == 0" identifier == number_literal) ))) )) (compound_statement "{\n      sqlite3ResetAllSchemasOfConnection(in_stack_00000008);\n    }" { (expression_statement "sqlite3ResetAllSchemasOfConnection(in_stack_00000008);" (call_expression "sqlite3ResetAllSchemasOfConnection(in_stack_00000008)" identifier (argument_list "(in_stack_00000008)" ( identifier ))) ;) })) (expression_statement "sqlite3_mutex_leave(in_stack_00000008->mutex);" (call_expression "sqlite3_mutex_leave(in_stack_00000008->mutex)" identifier (argument_list "(in_stack_00000008->mutex)" ( (field_expression "in_stack_00000008->mutex" identifier -> field_identifier) ))) ;) (expression_statement "psVar13 = (sqlite3 *)0x0;" (assignment_expression "psVar13 = (sqlite3 *)0x0" identifier = (cast_expression "(sqlite3 *)0x0" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) })) (labeled_statement "LAB_000eecd0:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return (int)psVar13;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return (int)psVar13;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return (int)psVar13;\n  }" { (return_statement "return (int)psVar13;" return (cast_expression "(int)psVar13" ( (type_descriptor "int" primitive_type) ) identifier) ;) }))) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) (while_statement "while (i = (int)psVar13 + 1, psVar13 = psVar14, i <= (int)in_stack_00000008) {\nLAB_000ef13b:\n    psVar13 = (sqlite3 *)i;\n    uVar9 = sqlite3BitvecTest(p,i);\n    if (uVar9 != ((int)(uint)*(byte *)((int)local_3c + ((int)psVar13 >> 3)) >> ((byte)psVar13 & 7) &\n                 1U)) break;\n  }" while (parenthesized_expression "(i = (int)psVar13 + 1, psVar13 = psVar14, i <= (int)in_stack_00000008)" ( (comma_expression "i = (int)psVar13 + 1, psVar13 = psVar14, i <= (int)in_stack_00000008" (assignment_expression "i = (int)psVar13 + 1" identifier = (binary_expression "(int)psVar13 + 1" (cast_expression "(int)psVar13" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal)) , (comma_expression "psVar13 = psVar14, i <= (int)in_stack_00000008" (assignment_expression "psVar13 = psVar14" identifier = identifier) , (binary_expression "i <= (int)in_stack_00000008" identifier <= (cast_expression "(int)in_stack_00000008" ( (type_descriptor "int" primitive_type) ) identifier)))) )) (compound_statement "{\nLAB_000ef13b:\n    psVar13 = (sqlite3 *)i;\n    uVar9 = sqlite3BitvecTest(p,i);\n    if (uVar9 != ((int)(uint)*(byte *)((int)local_3c + ((int)psVar13 >> 3)) >> ((byte)psVar13 & 7) &\n                 1U)) break;\n  }" { (labeled_statement "LAB_000ef13b:\n    psVar13 = (sqlite3 *)i;" statement_identifier : (expression_statement "psVar13 = (sqlite3 *)i;" (assignment_expression "psVar13 = (sqlite3 *)i" identifier = (cast_expression "(sqlite3 *)i" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;)) (expression_statement "uVar9 = sqlite3BitvecTest(p,i);" (assignment_expression "uVar9 = sqlite3BitvecTest(p,i)" identifier = (call_expression "sqlite3BitvecTest(p,i)" identifier (argument_list "(p,i)" ( identifier , identifier )))) ;) (if_statement "if (uVar9 != ((int)(uint)*(byte *)((int)local_3c + ((int)psVar13 >> 3)) >> ((byte)psVar13 & 7) &\n                 1U)) break;" if (parenthesized_expression "(uVar9 != ((int)(uint)*(byte *)((int)local_3c + ((int)psVar13 >> 3)) >> ((byte)psVar13 & 7) &\n                 1U))" ( (binary_expression "uVar9 != ((int)(uint)*(byte *)((int)local_3c + ((int)psVar13 >> 3)) >> ((byte)psVar13 & 7) &\n                 1U)" identifier != (parenthesized_expression "((int)(uint)*(byte *)((int)local_3c + ((int)psVar13 >> 3)) >> ((byte)psVar13 & 7) &\n                 1U)" ( (binary_expression "(int)(uint)*(byte *)((int)local_3c + ((int)psVar13 >> 3)) >> ((byte)psVar13 & 7) &\n                 1U" (binary_expression "(int)(uint)*(byte *)((int)local_3c + ((int)psVar13 >> 3)) >> ((byte)psVar13 & 7)" (binary_expression "(int)(uint)*(byte *)((int)local_3c + ((int)psVar13 >> 3))" (cast_expression "(int)(uint)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uint)" ( identifier ))) * (cast_expression "(byte *)((int)local_3c + ((int)psVar13 >> 3))" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)local_3c + ((int)psVar13 >> 3))" ( (binary_expression "(int)local_3c + ((int)psVar13 >> 3)" (cast_expression "(int)local_3c" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "((int)psVar13 >> 3)" ( (binary_expression "(int)psVar13 >> 3" (cast_expression "(int)psVar13" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) ))) )))) >> (parenthesized_expression "((byte)psVar13 & 7)" ( (binary_expression "(byte)psVar13 & 7" (cast_expression "(byte)psVar13" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) ))) & number_literal) ))) )) (break_statement "break;" break ;)) })) (labeled_statement "LAB_000ef06d:\n  sqlite3_free(local_30);" statement_identifier : (expression_statement "sqlite3_free(local_30);" (call_expression "sqlite3_free(local_30)" identifier (argument_list "(local_30)" ( identifier ))) ;)) (expression_statement "sqlite3_free(local_3c);" (call_expression "sqlite3_free(local_3c)" identifier (argument_list "(local_3c)" ( identifier ))) ;) (expression_statement "sqlite3BitvecDestroy(p);" (call_expression "sqlite3BitvecDestroy(p)" identifier (argument_list "(p)" ( identifier ))) ;) (goto_statement "goto LAB_000eecd0;" goto statement_identifier ;) })))
(translation_unit "code * FUN_000eec80(undefined4 param_1,code *param_2,int param_3,byte param_4,int param_5)\n\n{\n  int *piVar1;\n  byte bVar2;\n  code cVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  int iVar6;\n  uint uVar7;\n  int iVar8;\n  byte *pbVar9;\n  undefined4 *puVar10;\n  code *pcVar11;\n  code *pcVar12;\n  int iVar13;\n  int in_GS_OFFSET;\n  int iStack_3c;\n  int iStack_30;\n  code *pcStack_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  pcVar11 = DAT_00149164;\n  uStack_14 = 0xeec89;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  switch(param_1) {\n  case 5:\n    puVar4 = (undefined4 *)0x14a740;\n    puVar10 = (undefined4 *)&DAT_0014a860;\n    goto code_r0x000eecfc;\n  case 6:\n    puVar4 = (undefined4 *)&DAT_0014a860;\n    puVar10 = (undefined4 *)0x14a740;\ncode_r0x000eecfc:\n    for (iVar13 = 0x40; iVar13 != 0; iVar13 = iVar13 + -1) {\n      *puVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      puVar4 = puVar4 + 1;\n    }\n    *(undefined2 *)puVar4 = *(undefined2 *)puVar10;\n    *(undefined1 *)((int)puVar4 + 2) = *(undefined1 *)((int)puVar10 + 2);\nLAB_000eed12:\n    pcVar11 = (code *)0x0;\n    break;\n  case 7:\n    pcVar11 = (code *)0x0;\n    FUN_00077d40(0,0);\n    break;\n  case 8:\n    piVar5 = (int *)FUN_000249a0();\n    if (piVar5 == (int *)0x0) {\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0,iStack_3c,iStack_3c);\n    }\n    else {\n      *piVar5 = (int)param_2;\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0);\n      if ((iStack_3c != 0) && (iStack_30 != 0)) {\n        iVar13 = 0;\n        do {\n          while( true ) {\n            iVar6 = iVar13 * 4;\n            uVar7 = *(uint *)(param_3 + iVar13 * 4);\n            if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }\n            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }\n            piVar1 = (int *)(param_3 + 4 + iVar6);\n            iVar6 = *piVar1 + -1;\n            *piVar1 = iVar6;\n            if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }\n            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);\n            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);\n            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));\n            if ((uVar7 & 1) != 0) break;\n            *pbVar9 = *pbVar9 & ~bVar2;\n            FUN_000211d0();\n          }\n          *pbVar9 = *pbVar9 | bVar2;\n        } while ((uVar7 == 5) || (iVar6 = FUN_00037bb0(), iVar6 == 0));\n      }\n    }\n    pcVar11 = (code *)&DAT_ffffffff;\n    goto code_r0x000ef06d;\n  case 9:\n    pcVar11 = (code *)0x0;\n    DAT_00149280 = param_2;\n    if (param_2 != (code *)0x0) {\n      pcVar11 = (code *)(*param_2)(0);\n    }\n    break;\n  case 10:\n    pcVar11 = (code *)0x0;\n    DAT_0014a974 = param_2;\n    DAT_0014a978 = param_3;\n    break;\n  case 0xb:\n    if (param_2 != (code *)0x0) {\n      DAT_00149164 = param_2;\n    }\n    break;\n  case 0xc:\n    pcStack_24 = (code *)0x0;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0xd:\n    pcVar11 = param_2;\n    break;\n  case 0xe:\n    FUN_000197c0(*(undefined4 *)(param_2 + 0xc));\n    FUN_0003a660(0);\n    FUN_000197f0(*(undefined4 *)(param_2 + 0xc));\n    pcVar11 = (code *)0x0;\n    break;\n  case 0xf:\n    *(short *)(param_2 + 0x48) = (short)param_3;\n    pcVar11 = (code *)0x0;\n    break;\n  default:\n    goto LAB_000eed12;\n  case 0x11:\n    DAT_00149288 = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x12:\n    DAT_00149284 = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x13:\n    pcRam0014928c = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x14:\n    pcRam0014919c = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x16:\n    pcVar11 = (code *)0x1e212;\n    break;\n  case 0x17:\n    pcVar11 = (code *)(uint)(DAT_0014925c == 0);\n    break;\n  case 0x18:\n    *(int *)(param_2 + 0x98) = param_3;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x19:\n    FUN_000197c0(*(undefined4 *)(param_2 + 0xc));\n    cVar3 = (code)FUN_00027d70();\n    param_2[0xa0] = cVar3;\n    cVar3 = (code)(param_4 & 1);\n    param_2[0xa1] = cVar3;\n    param_2[0xa2] = (code)((byte)param_2[0xa2] & 0xfd | (char)cVar3 * '\x02');\n    *(int *)(param_2 + 0x9c) = param_5;\n    if ((0 < param_5) && (cVar3 == (code)0x0)) {\n      FUN_00039e00();\n    }\n    FUN_000197f0(*(undefined4 *)(param_2 + 0xc));\n    pcVar11 = (code *)0x0;\n  }\nLAB_000eecd0:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar11;\n  }\n                    \n  FUN_000f4bf0();\n  while (pcStack_24 = pcVar11 + 1, pcVar11 = pcVar12, (int)pcStack_24 <= (int)param_2) {\ncode_r0x000ef13b:\n    pcVar11 = pcStack_24;\n    uVar7 = FUN_00029980();\n    if (uVar7 != ((int)(uint)*(byte *)(iStack_3c + ((int)pcVar11 >> 3)) >> ((byte)pcVar11 & 7) & 1U)\n       ) break;\n  }\ncode_r0x000ef06d:\n  FUN_00024cc0(iStack_30);\n  FUN_00024cc0(iStack_3c);\n  FUN_00025a40();\n  goto LAB_000eecd0;\n}\n\n" (function_definition "code * FUN_000eec80(undefined4 param_1,code *param_2,int param_3,byte param_4,int param_5)\n\n{\n  int *piVar1;\n  byte bVar2;\n  code cVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  int iVar6;\n  uint uVar7;\n  int iVar8;\n  byte *pbVar9;\n  undefined4 *puVar10;\n  code *pcVar11;\n  code *pcVar12;\n  int iVar13;\n  int in_GS_OFFSET;\n  int iStack_3c;\n  int iStack_30;\n  code *pcStack_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  pcVar11 = DAT_00149164;\n  uStack_14 = 0xeec89;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  switch(param_1) {\n  case 5:\n    puVar4 = (undefined4 *)0x14a740;\n    puVar10 = (undefined4 *)&DAT_0014a860;\n    goto code_r0x000eecfc;\n  case 6:\n    puVar4 = (undefined4 *)&DAT_0014a860;\n    puVar10 = (undefined4 *)0x14a740;\ncode_r0x000eecfc:\n    for (iVar13 = 0x40; iVar13 != 0; iVar13 = iVar13 + -1) {\n      *puVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      puVar4 = puVar4 + 1;\n    }\n    *(undefined2 *)puVar4 = *(undefined2 *)puVar10;\n    *(undefined1 *)((int)puVar4 + 2) = *(undefined1 *)((int)puVar10 + 2);\nLAB_000eed12:\n    pcVar11 = (code *)0x0;\n    break;\n  case 7:\n    pcVar11 = (code *)0x0;\n    FUN_00077d40(0,0);\n    break;\n  case 8:\n    piVar5 = (int *)FUN_000249a0();\n    if (piVar5 == (int *)0x0) {\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0,iStack_3c,iStack_3c);\n    }\n    else {\n      *piVar5 = (int)param_2;\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0);\n      if ((iStack_3c != 0) && (iStack_30 != 0)) {\n        iVar13 = 0;\n        do {\n          while( true ) {\n            iVar6 = iVar13 * 4;\n            uVar7 = *(uint *)(param_3 + iVar13 * 4);\n            if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }\n            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }\n            piVar1 = (int *)(param_3 + 4 + iVar6);\n            iVar6 = *piVar1 + -1;\n            *piVar1 = iVar6;\n            if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }\n            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);\n            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);\n            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));\n            if ((uVar7 & 1) != 0) break;\n            *pbVar9 = *pbVar9 & ~bVar2;\n            FUN_000211d0();\n          }\n          *pbVar9 = *pbVar9 | bVar2;\n        } while ((uVar7 == 5) || (iVar6 = FUN_00037bb0(), iVar6 == 0));\n      }\n    }\n    pcVar11 = (code *)&DAT_ffffffff;\n    goto code_r0x000ef06d;\n  case 9:\n    pcVar11 = (code *)0x0;\n    DAT_00149280 = param_2;\n    if (param_2 != (code *)0x0) {\n      pcVar11 = (code *)(*param_2)(0);\n    }\n    break;\n  case 10:\n    pcVar11 = (code *)0x0;\n    DAT_0014a974 = param_2;\n    DAT_0014a978 = param_3;\n    break;\n  case 0xb:\n    if (param_2 != (code *)0x0) {\n      DAT_00149164 = param_2;\n    }\n    break;\n  case 0xc:\n    pcStack_24 = (code *)0x0;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0xd:\n    pcVar11 = param_2;\n    break;\n  case 0xe:\n    FUN_000197c0(*(undefined4 *)(param_2 + 0xc));\n    FUN_0003a660(0);\n    FUN_000197f0(*(undefined4 *)(param_2 + 0xc));\n    pcVar11 = (code *)0x0;\n    break;\n  case 0xf:\n    *(short *)(param_2 + 0x48) = (short)param_3;\n    pcVar11 = (code *)0x0;\n    break;\n  default:\n    goto LAB_000eed12;\n  case 0x11:\n    DAT_00149288 = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x12:\n    DAT_00149284 = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x13:\n    pcRam0014928c = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x14:\n    pcRam0014919c = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x16:\n    pcVar11 = (code *)0x1e212;\n    break;\n  case 0x17:\n    pcVar11 = (code *)(uint)(DAT_0014925c == 0);\n    break;\n  case 0x18:\n    *(int *)(param_2 + 0x98) = param_3;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x19:\n    FUN_000197c0(*(undefined4 *)(param_2 + 0xc));\n    cVar3 = (code)FUN_00027d70();\n    param_2[0xa0] = cVar3;\n    cVar3 = (code)(param_4 & 1);\n    param_2[0xa1] = cVar3;\n    param_2[0xa2] = (code)((byte)param_2[0xa2] & 0xfd | (char)cVar3 * '\x02');\n    *(int *)(param_2 + 0x9c) = param_5;\n    if ((0 < param_5) && (cVar3 == (code)0x0)) {\n      FUN_00039e00();\n    }\n    FUN_000197f0(*(undefined4 *)(param_2 + 0xc));\n    pcVar11 = (code *)0x0;\n  }\nLAB_000eecd0:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar11;\n  }\n                    \n  FUN_000f4bf0();\n  while (pcStack_24 = pcVar11 + 1, pcVar11 = pcVar12, (int)pcStack_24 <= (int)param_2) {\ncode_r0x000ef13b:\n    pcVar11 = pcStack_24;\n    uVar7 = FUN_00029980();\n    if (uVar7 != ((int)(uint)*(byte *)(iStack_3c + ((int)pcVar11 >> 3)) >> ((byte)pcVar11 & 7) & 1U)\n       ) break;\n  }\ncode_r0x000ef06d:\n  FUN_00024cc0(iStack_30);\n  FUN_00024cc0(iStack_3c);\n  FUN_00025a40();\n  goto LAB_000eecd0;\n}" type_identifier (pointer_declarator "* FUN_000eec80(undefined4 param_1,code *param_2,int param_3,byte param_4,int param_5)" * (function_declarator "FUN_000eec80(undefined4 param_1,code *param_2,int param_3,byte param_4,int param_5)" identifier (parameter_list "(undefined4 param_1,code *param_2,int param_3,byte param_4,int param_5)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "code *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "byte param_4" type_identifier identifier) , (parameter_declaration "int param_5" primitive_type identifier) )))) (compound_statement "{\n  int *piVar1;\n  byte bVar2;\n  code cVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  int iVar6;\n  uint uVar7;\n  int iVar8;\n  byte *pbVar9;\n  undefined4 *puVar10;\n  code *pcVar11;\n  code *pcVar12;\n  int iVar13;\n  int in_GS_OFFSET;\n  int iStack_3c;\n  int iStack_30;\n  code *pcStack_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  pcVar11 = DAT_00149164;\n  uStack_14 = 0xeec89;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  switch(param_1) {\n  case 5:\n    puVar4 = (undefined4 *)0x14a740;\n    puVar10 = (undefined4 *)&DAT_0014a860;\n    goto code_r0x000eecfc;\n  case 6:\n    puVar4 = (undefined4 *)&DAT_0014a860;\n    puVar10 = (undefined4 *)0x14a740;\ncode_r0x000eecfc:\n    for (iVar13 = 0x40; iVar13 != 0; iVar13 = iVar13 + -1) {\n      *puVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      puVar4 = puVar4 + 1;\n    }\n    *(undefined2 *)puVar4 = *(undefined2 *)puVar10;\n    *(undefined1 *)((int)puVar4 + 2) = *(undefined1 *)((int)puVar10 + 2);\nLAB_000eed12:\n    pcVar11 = (code *)0x0;\n    break;\n  case 7:\n    pcVar11 = (code *)0x0;\n    FUN_00077d40(0,0);\n    break;\n  case 8:\n    piVar5 = (int *)FUN_000249a0();\n    if (piVar5 == (int *)0x0) {\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0,iStack_3c,iStack_3c);\n    }\n    else {\n      *piVar5 = (int)param_2;\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0);\n      if ((iStack_3c != 0) && (iStack_30 != 0)) {\n        iVar13 = 0;\n        do {\n          while( true ) {\n            iVar6 = iVar13 * 4;\n            uVar7 = *(uint *)(param_3 + iVar13 * 4);\n            if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }\n            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }\n            piVar1 = (int *)(param_3 + 4 + iVar6);\n            iVar6 = *piVar1 + -1;\n            *piVar1 = iVar6;\n            if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }\n            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);\n            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);\n            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));\n            if ((uVar7 & 1) != 0) break;\n            *pbVar9 = *pbVar9 & ~bVar2;\n            FUN_000211d0();\n          }\n          *pbVar9 = *pbVar9 | bVar2;\n        } while ((uVar7 == 5) || (iVar6 = FUN_00037bb0(), iVar6 == 0));\n      }\n    }\n    pcVar11 = (code *)&DAT_ffffffff;\n    goto code_r0x000ef06d;\n  case 9:\n    pcVar11 = (code *)0x0;\n    DAT_00149280 = param_2;\n    if (param_2 != (code *)0x0) {\n      pcVar11 = (code *)(*param_2)(0);\n    }\n    break;\n  case 10:\n    pcVar11 = (code *)0x0;\n    DAT_0014a974 = param_2;\n    DAT_0014a978 = param_3;\n    break;\n  case 0xb:\n    if (param_2 != (code *)0x0) {\n      DAT_00149164 = param_2;\n    }\n    break;\n  case 0xc:\n    pcStack_24 = (code *)0x0;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0xd:\n    pcVar11 = param_2;\n    break;\n  case 0xe:\n    FUN_000197c0(*(undefined4 *)(param_2 + 0xc));\n    FUN_0003a660(0);\n    FUN_000197f0(*(undefined4 *)(param_2 + 0xc));\n    pcVar11 = (code *)0x0;\n    break;\n  case 0xf:\n    *(short *)(param_2 + 0x48) = (short)param_3;\n    pcVar11 = (code *)0x0;\n    break;\n  default:\n    goto LAB_000eed12;\n  case 0x11:\n    DAT_00149288 = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x12:\n    DAT_00149284 = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x13:\n    pcRam0014928c = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x14:\n    pcRam0014919c = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x16:\n    pcVar11 = (code *)0x1e212;\n    break;\n  case 0x17:\n    pcVar11 = (code *)(uint)(DAT_0014925c == 0);\n    break;\n  case 0x18:\n    *(int *)(param_2 + 0x98) = param_3;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x19:\n    FUN_000197c0(*(undefined4 *)(param_2 + 0xc));\n    cVar3 = (code)FUN_00027d70();\n    param_2[0xa0] = cVar3;\n    cVar3 = (code)(param_4 & 1);\n    param_2[0xa1] = cVar3;\n    param_2[0xa2] = (code)((byte)param_2[0xa2] & 0xfd | (char)cVar3 * '\x02');\n    *(int *)(param_2 + 0x9c) = param_5;\n    if ((0 < param_5) && (cVar3 == (code)0x0)) {\n      FUN_00039e00();\n    }\n    FUN_000197f0(*(undefined4 *)(param_2 + 0xc));\n    pcVar11 = (code *)0x0;\n  }\nLAB_000eecd0:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar11;\n  }\n                    \n  FUN_000f4bf0();\n  while (pcStack_24 = pcVar11 + 1, pcVar11 = pcVar12, (int)pcStack_24 <= (int)param_2) {\ncode_r0x000ef13b:\n    pcVar11 = pcStack_24;\n    uVar7 = FUN_00029980();\n    if (uVar7 != ((int)(uint)*(byte *)(iStack_3c + ((int)pcVar11 >> 3)) >> ((byte)pcVar11 & 7) & 1U)\n       ) break;\n  }\ncode_r0x000ef06d:\n  FUN_00024cc0(iStack_30);\n  FUN_00024cc0(iStack_3c);\n  FUN_00025a40();\n  goto LAB_000eecd0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "byte bVar2;" type_identifier identifier ;) (declaration "code cVar3;" type_identifier identifier ;) (declaration "undefined4 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int *piVar5;" primitive_type (pointer_declarator "*piVar5" * identifier) ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "byte *pbVar9;" type_identifier (pointer_declarator "*pbVar9" * identifier) ;) (declaration "undefined4 *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (declaration "code *pcVar11;" type_identifier (pointer_declarator "*pcVar11" * identifier) ;) (declaration "code *pcVar12;" type_identifier (pointer_declarator "*pcVar12" * identifier) ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int iStack_3c;" primitive_type identifier ;) (declaration "int iStack_30;" primitive_type identifier ;) (declaration "code *pcStack_24;" type_identifier (pointer_declarator "*pcStack_24" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "pcVar11 = DAT_00149164;" (assignment_expression "pcVar11 = DAT_00149164" identifier = identifier) ;) (expression_statement "uStack_14 = 0xeec89;" (assignment_expression "uStack_14 = 0xeec89" identifier = number_literal) ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (switch_statement "switch(param_1) {\n  case 5:\n    puVar4 = (undefined4 *)0x14a740;\n    puVar10 = (undefined4 *)&DAT_0014a860;\n    goto code_r0x000eecfc;\n  case 6:\n    puVar4 = (undefined4 *)&DAT_0014a860;\n    puVar10 = (undefined4 *)0x14a740;\ncode_r0x000eecfc:\n    for (iVar13 = 0x40; iVar13 != 0; iVar13 = iVar13 + -1) {\n      *puVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      puVar4 = puVar4 + 1;\n    }\n    *(undefined2 *)puVar4 = *(undefined2 *)puVar10;\n    *(undefined1 *)((int)puVar4 + 2) = *(undefined1 *)((int)puVar10 + 2);\nLAB_000eed12:\n    pcVar11 = (code *)0x0;\n    break;\n  case 7:\n    pcVar11 = (code *)0x0;\n    FUN_00077d40(0,0);\n    break;\n  case 8:\n    piVar5 = (int *)FUN_000249a0();\n    if (piVar5 == (int *)0x0) {\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0,iStack_3c,iStack_3c);\n    }\n    else {\n      *piVar5 = (int)param_2;\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0);\n      if ((iStack_3c != 0) && (iStack_30 != 0)) {\n        iVar13 = 0;\n        do {\n          while( true ) {\n            iVar6 = iVar13 * 4;\n            uVar7 = *(uint *)(param_3 + iVar13 * 4);\n            if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }\n            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }\n            piVar1 = (int *)(param_3 + 4 + iVar6);\n            iVar6 = *piVar1 + -1;\n            *piVar1 = iVar6;\n            if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }\n            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);\n            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);\n            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));\n            if ((uVar7 & 1) != 0) break;\n            *pbVar9 = *pbVar9 & ~bVar2;\n            FUN_000211d0();\n          }\n          *pbVar9 = *pbVar9 | bVar2;\n        } while ((uVar7 == 5) || (iVar6 = FUN_00037bb0(), iVar6 == 0));\n      }\n    }\n    pcVar11 = (code *)&DAT_ffffffff;\n    goto code_r0x000ef06d;\n  case 9:\n    pcVar11 = (code *)0x0;\n    DAT_00149280 = param_2;\n    if (param_2 != (code *)0x0) {\n      pcVar11 = (code *)(*param_2)(0);\n    }\n    break;\n  case 10:\n    pcVar11 = (code *)0x0;\n    DAT_0014a974 = param_2;\n    DAT_0014a978 = param_3;\n    break;\n  case 0xb:\n    if (param_2 != (code *)0x0) {\n      DAT_00149164 = param_2;\n    }\n    break;\n  case 0xc:\n    pcStack_24 = (code *)0x0;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0xd:\n    pcVar11 = param_2;\n    break;\n  case 0xe:\n    FUN_000197c0(*(undefined4 *)(param_2 + 0xc));\n    FUN_0003a660(0);\n    FUN_000197f0(*(undefined4 *)(param_2 + 0xc));\n    pcVar11 = (code *)0x0;\n    break;\n  case 0xf:\n    *(short *)(param_2 + 0x48) = (short)param_3;\n    pcVar11 = (code *)0x0;\n    break;\n  default:\n    goto LAB_000eed12;\n  case 0x11:\n    DAT_00149288 = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x12:\n    DAT_00149284 = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x13:\n    pcRam0014928c = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x14:\n    pcRam0014919c = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x16:\n    pcVar11 = (code *)0x1e212;\n    break;\n  case 0x17:\n    pcVar11 = (code *)(uint)(DAT_0014925c == 0);\n    break;\n  case 0x18:\n    *(int *)(param_2 + 0x98) = param_3;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x19:\n    FUN_000197c0(*(undefined4 *)(param_2 + 0xc));\n    cVar3 = (code)FUN_00027d70();\n    param_2[0xa0] = cVar3;\n    cVar3 = (code)(param_4 & 1);\n    param_2[0xa1] = cVar3;\n    param_2[0xa2] = (code)((byte)param_2[0xa2] & 0xfd | (char)cVar3 * '\x02');\n    *(int *)(param_2 + 0x9c) = param_5;\n    if ((0 < param_5) && (cVar3 == (code)0x0)) {\n      FUN_00039e00();\n    }\n    FUN_000197f0(*(undefined4 *)(param_2 + 0xc));\n    pcVar11 = (code *)0x0;\n  }" switch (parenthesized_expression "(param_1)" ( identifier )) (compound_statement "{\n  case 5:\n    puVar4 = (undefined4 *)0x14a740;\n    puVar10 = (undefined4 *)&DAT_0014a860;\n    goto code_r0x000eecfc;\n  case 6:\n    puVar4 = (undefined4 *)&DAT_0014a860;\n    puVar10 = (undefined4 *)0x14a740;\ncode_r0x000eecfc:\n    for (iVar13 = 0x40; iVar13 != 0; iVar13 = iVar13 + -1) {\n      *puVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      puVar4 = puVar4 + 1;\n    }\n    *(undefined2 *)puVar4 = *(undefined2 *)puVar10;\n    *(undefined1 *)((int)puVar4 + 2) = *(undefined1 *)((int)puVar10 + 2);\nLAB_000eed12:\n    pcVar11 = (code *)0x0;\n    break;\n  case 7:\n    pcVar11 = (code *)0x0;\n    FUN_00077d40(0,0);\n    break;\n  case 8:\n    piVar5 = (int *)FUN_000249a0();\n    if (piVar5 == (int *)0x0) {\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0,iStack_3c,iStack_3c);\n    }\n    else {\n      *piVar5 = (int)param_2;\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0);\n      if ((iStack_3c != 0) && (iStack_30 != 0)) {\n        iVar13 = 0;\n        do {\n          while( true ) {\n            iVar6 = iVar13 * 4;\n            uVar7 = *(uint *)(param_3 + iVar13 * 4);\n            if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }\n            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }\n            piVar1 = (int *)(param_3 + 4 + iVar6);\n            iVar6 = *piVar1 + -1;\n            *piVar1 = iVar6;\n            if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }\n            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);\n            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);\n            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));\n            if ((uVar7 & 1) != 0) break;\n            *pbVar9 = *pbVar9 & ~bVar2;\n            FUN_000211d0();\n          }\n          *pbVar9 = *pbVar9 | bVar2;\n        } while ((uVar7 == 5) || (iVar6 = FUN_00037bb0(), iVar6 == 0));\n      }\n    }\n    pcVar11 = (code *)&DAT_ffffffff;\n    goto code_r0x000ef06d;\n  case 9:\n    pcVar11 = (code *)0x0;\n    DAT_00149280 = param_2;\n    if (param_2 != (code *)0x0) {\n      pcVar11 = (code *)(*param_2)(0);\n    }\n    break;\n  case 10:\n    pcVar11 = (code *)0x0;\n    DAT_0014a974 = param_2;\n    DAT_0014a978 = param_3;\n    break;\n  case 0xb:\n    if (param_2 != (code *)0x0) {\n      DAT_00149164 = param_2;\n    }\n    break;\n  case 0xc:\n    pcStack_24 = (code *)0x0;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0xd:\n    pcVar11 = param_2;\n    break;\n  case 0xe:\n    FUN_000197c0(*(undefined4 *)(param_2 + 0xc));\n    FUN_0003a660(0);\n    FUN_000197f0(*(undefined4 *)(param_2 + 0xc));\n    pcVar11 = (code *)0x0;\n    break;\n  case 0xf:\n    *(short *)(param_2 + 0x48) = (short)param_3;\n    pcVar11 = (code *)0x0;\n    break;\n  default:\n    goto LAB_000eed12;\n  case 0x11:\n    DAT_00149288 = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x12:\n    DAT_00149284 = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x13:\n    pcRam0014928c = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x14:\n    pcRam0014919c = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x16:\n    pcVar11 = (code *)0x1e212;\n    break;\n  case 0x17:\n    pcVar11 = (code *)(uint)(DAT_0014925c == 0);\n    break;\n  case 0x18:\n    *(int *)(param_2 + 0x98) = param_3;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x19:\n    FUN_000197c0(*(undefined4 *)(param_2 + 0xc));\n    cVar3 = (code)FUN_00027d70();\n    param_2[0xa0] = cVar3;\n    cVar3 = (code)(param_4 & 1);\n    param_2[0xa1] = cVar3;\n    param_2[0xa2] = (code)((byte)param_2[0xa2] & 0xfd | (char)cVar3 * '\x02');\n    *(int *)(param_2 + 0x9c) = param_5;\n    if ((0 < param_5) && (cVar3 == (code)0x0)) {\n      FUN_00039e00();\n    }\n    FUN_000197f0(*(undefined4 *)(param_2 + 0xc));\n    pcVar11 = (code *)0x0;\n  }" { (case_statement "case 5:\n    puVar4 = (undefined4 *)0x14a740;\n    puVar10 = (undefined4 *)&DAT_0014a860;\n    goto code_r0x000eecfc;" case number_literal : (expression_statement "puVar4 = (undefined4 *)0x14a740;" (assignment_expression "puVar4 = (undefined4 *)0x14a740" identifier = (cast_expression "(undefined4 *)0x14a740" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "puVar10 = (undefined4 *)&DAT_0014a860;" (assignment_expression "puVar10 = (undefined4 *)&DAT_0014a860" identifier = (cast_expression "(undefined4 *)&DAT_0014a860" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0014a860" & identifier))) ;) (goto_statement "goto code_r0x000eecfc;" goto statement_identifier ;)) (case_statement "case 6:\n    puVar4 = (undefined4 *)&DAT_0014a860;\n    puVar10 = (undefined4 *)0x14a740;\ncode_r0x000eecfc:\n    for (iVar13 = 0x40; iVar13 != 0; iVar13 = iVar13 + -1) {\n      *puVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      puVar4 = puVar4 + 1;\n    }\n    *(undefined2 *)puVar4 = *(undefined2 *)puVar10;\n    *(undefined1 *)((int)puVar4 + 2) = *(undefined1 *)((int)puVar10 + 2);\nLAB_000eed12:\n    pcVar11 = (code *)0x0;\n    break;" case number_literal : (expression_statement "puVar4 = (undefined4 *)&DAT_0014a860;" (assignment_expression "puVar4 = (undefined4 *)&DAT_0014a860" identifier = (cast_expression "(undefined4 *)&DAT_0014a860" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_0014a860" & identifier))) ;) (expression_statement "puVar10 = (undefined4 *)0x14a740;" (assignment_expression "puVar10 = (undefined4 *)0x14a740" identifier = (cast_expression "(undefined4 *)0x14a740" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "code_r0x000eecfc:\n    for (iVar13 = 0x40; iVar13 != 0; iVar13 = iVar13 + -1) {\n      *puVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      puVar4 = puVar4 + 1;\n    }" statement_identifier : (for_statement "for (iVar13 = 0x40; iVar13 != 0; iVar13 = iVar13 + -1) {\n      *puVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      puVar4 = puVar4 + 1;\n    }" for ( (assignment_expression "iVar13 = 0x40" identifier = number_literal) ; (binary_expression "iVar13 != 0" identifier != number_literal) ; (assignment_expression "iVar13 = iVar13 + -1" identifier = (binary_expression "iVar13 + -1" identifier + number_literal)) ) (compound_statement "{\n      *puVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      puVar4 = puVar4 + 1;\n    }" { (expression_statement "*puVar4 = *puVar10;" (assignment_expression "*puVar4 = *puVar10" (pointer_expression "*puVar4" * identifier) = (pointer_expression "*puVar10" * identifier)) ;) (expression_statement "puVar10 = puVar10 + 1;" (assignment_expression "puVar10 = puVar10 + 1" identifier = (binary_expression "puVar10 + 1" identifier + number_literal)) ;) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" identifier = (binary_expression "puVar4 + 1" identifier + number_literal)) ;) }))) (expression_statement "*(undefined2 *)puVar4 = *(undefined2 *)puVar10;" (assignment_expression "*(undefined2 *)puVar4 = *(undefined2 *)puVar10" (pointer_expression "*(undefined2 *)puVar4" * (cast_expression "(undefined2 *)puVar4" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) = (pointer_expression "*(undefined2 *)puVar10" * (cast_expression "(undefined2 *)puVar10" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "*(undefined1 *)((int)puVar4 + 2) = *(undefined1 *)((int)puVar10 + 2);" (assignment_expression "*(undefined1 *)((int)puVar4 + 2) = *(undefined1 *)((int)puVar10 + 2)" (pointer_expression "*(undefined1 *)((int)puVar4 + 2)" * (cast_expression "(undefined1 *)((int)puVar4 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar4 + 2)" ( (binary_expression "(int)puVar4 + 2" (cast_expression "(int)puVar4" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (pointer_expression "*(undefined1 *)((int)puVar10 + 2)" * (cast_expression "(undefined1 *)((int)puVar10 + 2)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)puVar10 + 2)" ( (binary_expression "(int)puVar10 + 2" (cast_expression "(int)puVar10" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) ))))) ;) (labeled_statement "LAB_000eed12:\n    pcVar11 = (code *)0x0;" statement_identifier : (expression_statement "pcVar11 = (code *)0x0;" (assignment_expression "pcVar11 = (code *)0x0" identifier = (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) (break_statement "break;" break ;)) (case_statement "case 7:\n    pcVar11 = (code *)0x0;\n    FUN_00077d40(0,0);\n    break;" case number_literal : (expression_statement "pcVar11 = (code *)0x0;" (assignment_expression "pcVar11 = (code *)0x0" identifier = (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "FUN_00077d40(0,0);" (call_expression "FUN_00077d40(0,0)" identifier (argument_list "(0,0)" ( number_literal , number_literal ))) ;) (break_statement "break;" break ;)) (case_statement "case 8:\n    piVar5 = (int *)FUN_000249a0();\n    if (piVar5 == (int *)0x0) {\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0,iStack_3c,iStack_3c);\n    }\n    else {\n      *piVar5 = (int)param_2;\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0);\n      if ((iStack_3c != 0) && (iStack_30 != 0)) {\n        iVar13 = 0;\n        do {\n          while( true ) {\n            iVar6 = iVar13 * 4;\n            uVar7 = *(uint *)(param_3 + iVar13 * 4);\n            if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }\n            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }\n            piVar1 = (int *)(param_3 + 4 + iVar6);\n            iVar6 = *piVar1 + -1;\n            *piVar1 = iVar6;\n            if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }\n            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);\n            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);\n            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));\n            if ((uVar7 & 1) != 0) break;\n            *pbVar9 = *pbVar9 & ~bVar2;\n            FUN_000211d0();\n          }\n          *pbVar9 = *pbVar9 | bVar2;\n        } while ((uVar7 == 5) || (iVar6 = FUN_00037bb0(), iVar6 == 0));\n      }\n    }\n    pcVar11 = (code *)&DAT_ffffffff;\n    goto code_r0x000ef06d;" case number_literal : (expression_statement "piVar5 = (int *)FUN_000249a0();" (assignment_expression "piVar5 = (int *)FUN_000249a0()" identifier = (cast_expression "(int *)FUN_000249a0()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000249a0()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (piVar5 == (int *)0x0) {\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0,iStack_3c,iStack_3c);\n    }\n    else {\n      *piVar5 = (int)param_2;\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0);\n      if ((iStack_3c != 0) && (iStack_30 != 0)) {\n        iVar13 = 0;\n        do {\n          while( true ) {\n            iVar6 = iVar13 * 4;\n            uVar7 = *(uint *)(param_3 + iVar13 * 4);\n            if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }\n            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }\n            piVar1 = (int *)(param_3 + 4 + iVar6);\n            iVar6 = *piVar1 + -1;\n            *piVar1 = iVar6;\n            if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }\n            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);\n            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);\n            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));\n            if ((uVar7 & 1) != 0) break;\n            *pbVar9 = *pbVar9 & ~bVar2;\n            FUN_000211d0();\n          }\n          *pbVar9 = *pbVar9 | bVar2;\n        } while ((uVar7 == 5) || (iVar6 = FUN_00037bb0(), iVar6 == 0));\n      }\n    }" if (parenthesized_expression "(piVar5 == (int *)0x0)" ( (binary_expression "piVar5 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0,iStack_3c,iStack_3c);\n    }" { (expression_statement "iStack_3c = FUN_000249a0();" (assignment_expression "iStack_3c = FUN_000249a0()" identifier = (call_expression "FUN_000249a0()" identifier (argument_list "()" ( )))) ;) (expression_statement "iStack_30 = FUN_0003f0c0(0x200,0,iStack_3c,iStack_3c);" (assignment_expression "iStack_30 = FUN_0003f0c0(0x200,0,iStack_3c,iStack_3c)" identifier = (call_expression "FUN_0003f0c0(0x200,0,iStack_3c,iStack_3c)" identifier (argument_list "(0x200,0,iStack_3c,iStack_3c)" ( number_literal , number_literal , identifier , identifier )))) ;) }) (else_clause "else {\n      *piVar5 = (int)param_2;\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0);\n      if ((iStack_3c != 0) && (iStack_30 != 0)) {\n        iVar13 = 0;\n        do {\n          while( true ) {\n            iVar6 = iVar13 * 4;\n            uVar7 = *(uint *)(param_3 + iVar13 * 4);\n            if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }\n            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }\n            piVar1 = (int *)(param_3 + 4 + iVar6);\n            iVar6 = *piVar1 + -1;\n            *piVar1 = iVar6;\n            if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }\n            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);\n            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);\n            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));\n            if ((uVar7 & 1) != 0) break;\n            *pbVar9 = *pbVar9 & ~bVar2;\n            FUN_000211d0();\n          }\n          *pbVar9 = *pbVar9 | bVar2;\n        } while ((uVar7 == 5) || (iVar6 = FUN_00037bb0(), iVar6 == 0));\n      }\n    }" else (compound_statement "{\n      *piVar5 = (int)param_2;\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0);\n      if ((iStack_3c != 0) && (iStack_30 != 0)) {\n        iVar13 = 0;\n        do {\n          while( true ) {\n            iVar6 = iVar13 * 4;\n            uVar7 = *(uint *)(param_3 + iVar13 * 4);\n            if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }\n            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }\n            piVar1 = (int *)(param_3 + 4 + iVar6);\n            iVar6 = *piVar1 + -1;\n            *piVar1 = iVar6;\n            if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }\n            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);\n            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);\n            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));\n            if ((uVar7 & 1) != 0) break;\n            *pbVar9 = *pbVar9 & ~bVar2;\n            FUN_000211d0();\n          }\n          *pbVar9 = *pbVar9 | bVar2;\n        } while ((uVar7 == 5) || (iVar6 = FUN_00037bb0(), iVar6 == 0));\n      }\n    }" { (expression_statement "*piVar5 = (int)param_2;" (assignment_expression "*piVar5 = (int)param_2" (pointer_expression "*piVar5" * identifier) = (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "iStack_3c = FUN_000249a0();" (assignment_expression "iStack_3c = FUN_000249a0()" identifier = (call_expression "FUN_000249a0()" identifier (argument_list "()" ( )))) ;) (expression_statement "iStack_30 = FUN_0003f0c0(0x200,0);" (assignment_expression "iStack_30 = FUN_0003f0c0(0x200,0)" identifier = (call_expression "FUN_0003f0c0(0x200,0)" identifier (argument_list "(0x200,0)" ( number_literal , number_literal )))) ;) (if_statement "if ((iStack_3c != 0) && (iStack_30 != 0)) {\n        iVar13 = 0;\n        do {\n          while( true ) {\n            iVar6 = iVar13 * 4;\n            uVar7 = *(uint *)(param_3 + iVar13 * 4);\n            if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }\n            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }\n            piVar1 = (int *)(param_3 + 4 + iVar6);\n            iVar6 = *piVar1 + -1;\n            *piVar1 = iVar6;\n            if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }\n            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);\n            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);\n            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));\n            if ((uVar7 & 1) != 0) break;\n            *pbVar9 = *pbVar9 & ~bVar2;\n            FUN_000211d0();\n          }\n          *pbVar9 = *pbVar9 | bVar2;\n        } while ((uVar7 == 5) || (iVar6 = FUN_00037bb0(), iVar6 == 0));\n      }" if (parenthesized_expression "((iStack_3c != 0) && (iStack_30 != 0))" ( (binary_expression "(iStack_3c != 0) && (iStack_30 != 0)" (parenthesized_expression "(iStack_3c != 0)" ( (binary_expression "iStack_3c != 0" identifier != number_literal) )) && (parenthesized_expression "(iStack_30 != 0)" ( (binary_expression "iStack_30 != 0" identifier != number_literal) ))) )) (compound_statement "{\n        iVar13 = 0;\n        do {\n          while( true ) {\n            iVar6 = iVar13 * 4;\n            uVar7 = *(uint *)(param_3 + iVar13 * 4);\n            if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }\n            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }\n            piVar1 = (int *)(param_3 + 4 + iVar6);\n            iVar6 = *piVar1 + -1;\n            *piVar1 = iVar6;\n            if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }\n            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);\n            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);\n            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));\n            if ((uVar7 & 1) != 0) break;\n            *pbVar9 = *pbVar9 & ~bVar2;\n            FUN_000211d0();\n          }\n          *pbVar9 = *pbVar9 | bVar2;\n        } while ((uVar7 == 5) || (iVar6 = FUN_00037bb0(), iVar6 == 0));\n      }" { (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" identifier = number_literal) ;) (do_statement "do {\n          while( true ) {\n            iVar6 = iVar13 * 4;\n            uVar7 = *(uint *)(param_3 + iVar13 * 4);\n            if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }\n            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }\n            piVar1 = (int *)(param_3 + 4 + iVar6);\n            iVar6 = *piVar1 + -1;\n            *piVar1 = iVar6;\n            if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }\n            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);\n            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);\n            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));\n            if ((uVar7 & 1) != 0) break;\n            *pbVar9 = *pbVar9 & ~bVar2;\n            FUN_000211d0();\n          }\n          *pbVar9 = *pbVar9 | bVar2;\n        } while ((uVar7 == 5) || (iVar6 = FUN_00037bb0(), iVar6 == 0));" do (compound_statement "{\n          while( true ) {\n            iVar6 = iVar13 * 4;\n            uVar7 = *(uint *)(param_3 + iVar13 * 4);\n            if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }\n            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }\n            piVar1 = (int *)(param_3 + 4 + iVar6);\n            iVar6 = *piVar1 + -1;\n            *piVar1 = iVar6;\n            if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }\n            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);\n            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);\n            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));\n            if ((uVar7 & 1) != 0) break;\n            *pbVar9 = *pbVar9 & ~bVar2;\n            FUN_000211d0();\n          }\n          *pbVar9 = *pbVar9 | bVar2;\n        }" { (while_statement "while( true ) {\n            iVar6 = iVar13 * 4;\n            uVar7 = *(uint *)(param_3 + iVar13 * 4);\n            if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }\n            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }\n            piVar1 = (int *)(param_3 + 4 + iVar6);\n            iVar6 = *piVar1 + -1;\n            *piVar1 = iVar6;\n            if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }\n            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);\n            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);\n            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));\n            if ((uVar7 & 1) != 0) break;\n            *pbVar9 = *pbVar9 & ~bVar2;\n            FUN_000211d0();\n          }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n            iVar6 = iVar13 * 4;\n            uVar7 = *(uint *)(param_3 + iVar13 * 4);\n            if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }\n            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }\n            piVar1 = (int *)(param_3 + 4 + iVar6);\n            iVar6 = *piVar1 + -1;\n            *piVar1 = iVar6;\n            if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }\n            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);\n            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);\n            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));\n            if ((uVar7 & 1) != 0) break;\n            *pbVar9 = *pbVar9 & ~bVar2;\n            FUN_000211d0();\n          }" { (expression_statement "iVar6 = iVar13 * 4;" (assignment_expression "iVar6 = iVar13 * 4" identifier = (binary_expression "iVar13 * 4" identifier * number_literal)) ;) (expression_statement "uVar7 = *(uint *)(param_3 + iVar13 * 4);" (assignment_expression "uVar7 = *(uint *)(param_3 + iVar13 * 4)" identifier = (pointer_expression "*(uint *)(param_3 + iVar13 * 4)" * (cast_expression "(uint *)(param_3 + iVar13 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + iVar13 * 4)" ( (binary_expression "param_3 + iVar13 * 4" identifier + (binary_expression "iVar13 * 4" identifier * number_literal)) ))))) ;) (if_statement "if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }" if (parenthesized_expression "(uVar7 == 0)" ( (binary_expression "uVar7 == 0" identifier == number_literal) )) (compound_statement "{\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }" { (expression_statement "iVar13 = FUN_00029980();" (assignment_expression "iVar13 = FUN_00029980()" identifier = (call_expression "FUN_00029980()" identifier (argument_list "()" ( )))) ;) (expression_statement "iVar6 = FUN_00029980();" (assignment_expression "iVar6 = FUN_00029980()" identifier = (call_expression "FUN_00029980()" identifier (argument_list "()" ( )))) ;) (expression_statement "pcStack_24 = (code *)0x1;" (assignment_expression "pcStack_24 = (code *)0x1" identifier = (cast_expression "(code *)0x1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);" (assignment_expression "pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6)" identifier = (cast_expression "(code *)((*piVar5 - (int)param_2) + iVar13 + iVar6)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((*piVar5 - (int)param_2) + iVar13 + iVar6)" ( (binary_expression "(*piVar5 - (int)param_2) + iVar13 + iVar6" (binary_expression "(*piVar5 - (int)param_2) + iVar13" (parenthesized_expression "(*piVar5 - (int)param_2)" ( (binary_expression "*piVar5 - (int)param_2" (pointer_expression "*piVar5" * identifier) - (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)) )) + identifier) + identifier) )))) ;) (expression_statement "pcVar11 = pcVar12;" (assignment_expression "pcVar11 = pcVar12" identifier = identifier) ;) (if_statement "if ((int)param_2 < 1) goto code_r0x000ef06d;" if (parenthesized_expression "((int)param_2 < 1)" ( (binary_expression "(int)param_2 < 1" (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (goto_statement "goto code_r0x000ef06d;" goto statement_identifier ;)) (goto_statement "goto code_r0x000ef13b;" goto statement_identifier ;) })) (if_statement "if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }" if (parenthesized_expression "((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0))" ( (binary_expression "(uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)" (parenthesized_expression "(uVar7 < 6)" ( (binary_expression "uVar7 < 6" identifier < number_literal) )) && (parenthesized_expression "((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)" ( (binary_expression "(1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0" (parenthesized_expression "(1 << ((byte)uVar7 & 0x1f) & 0x26U)" ( (binary_expression "1 << ((byte)uVar7 & 0x1f) & 0x26U" (binary_expression "1 << ((byte)uVar7 & 0x1f)" number_literal << (parenthesized_expression "((byte)uVar7 & 0x1f)" ( (binary_expression "(byte)uVar7 & 0x1f" (cast_expression "(byte)uVar7" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) ))) & number_literal) )) != number_literal) ))) )) (compound_statement "{\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }" { (expression_statement "piVar1 = (int *)(param_3 + 8 + iVar6);" (assignment_expression "piVar1 = (int *)(param_3 + 8 + iVar6)" identifier = (cast_expression "(int *)(param_3 + 8 + iVar6)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 8 + iVar6)" ( (binary_expression "param_3 + 8 + iVar6" (binary_expression "param_3 + 8" identifier + number_literal) + identifier) )))) ;) (expression_statement "iVar8 = *piVar1;" (assignment_expression "iVar8 = *piVar1" identifier = (pointer_expression "*piVar1" * identifier)) ;) (expression_statement "pcStack_24 = (code *)(iVar8 + -1);" (assignment_expression "pcStack_24 = (code *)(iVar8 + -1)" identifier = (cast_expression "(code *)(iVar8 + -1)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar8 + -1)" ( (binary_expression "iVar8 + -1" identifier + number_literal) )))) ;) (expression_statement "*piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);" (assignment_expression "*piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6)" (pointer_expression "*piVar1" * identifier) = (binary_expression "iVar8 + *(int *)(param_3 + 0xc + iVar6)" identifier + (pointer_expression "*(int *)(param_3 + 0xc + iVar6)" * (cast_expression "(int *)(param_3 + 0xc + iVar6)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 0xc + iVar6)" ( (binary_expression "param_3 + 0xc + iVar6" (binary_expression "param_3 + 0xc" identifier + number_literal) + identifier) )))))) ;) (expression_statement "iVar8 = 4;" (assignment_expression "iVar8 = 4" identifier = number_literal) ;) }) (else_clause "else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }" else (compound_statement "{\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }" { (expression_statement "FUN_00077d40(4,&pcStack_24);" (call_expression "FUN_00077d40(4,&pcStack_24)" identifier (argument_list "(4,&pcStack_24)" ( number_literal , (pointer_expression "&pcStack_24" & identifier) ))) ;) (expression_statement "iVar8 = 2;" (assignment_expression "iVar8 = 2" identifier = number_literal) ;) }))) (expression_statement "piVar1 = (int *)(param_3 + 4 + iVar6);" (assignment_expression "piVar1 = (int *)(param_3 + 4 + iVar6)" identifier = (cast_expression "(int *)(param_3 + 4 + iVar6)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + 4 + iVar6)" ( (binary_expression "param_3 + 4 + iVar6" (binary_expression "param_3 + 4" identifier + number_literal) + identifier) )))) ;) (expression_statement "iVar6 = *piVar1 + -1;" (assignment_expression "iVar6 = *piVar1 + -1" identifier = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) (expression_statement "*piVar1 = iVar6;" (assignment_expression "*piVar1 = iVar6" (pointer_expression "*piVar1" * identifier) = identifier) ;) (if_statement "if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }" if (parenthesized_expression "(iVar6 < 1)" ( (binary_expression "iVar6 < 1" identifier < number_literal) )) (compound_statement "{\n              iVar13 = iVar8 + iVar13;\n            }" { (expression_statement "iVar13 = iVar8 + iVar13;" (assignment_expression "iVar13 = iVar8 + iVar13" identifier = (binary_expression "iVar8 + iVar13" identifier + identifier)) ;) })) (expression_statement "pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);" (assignment_expression "pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2)" identifier = (cast_expression "(code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2)" ( (binary_expression "(longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2" (call_expression "(longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff)" (call_expression "(longlong)(ulonglong)" (parenthesized_expression "(longlong)" ( identifier )) (argument_list "(ulonglong)" ( identifier ))) (argument_list "((uint)pcStack_24 & 0x7fffffff)" ( (binary_expression "(uint)pcStack_24 & 0x7fffffff" (cast_expression "(uint)pcStack_24" ( (type_descriptor "uint" type_identifier) ) identifier) & number_literal) ))) % (cast_expression "(longlong)(int)param_2" ( (type_descriptor "longlong" type_identifier) ) (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier))) )))) ;) (expression_statement "pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);" (assignment_expression "pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c)" identifier = (cast_expression "(byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(((int)(pcStack_24 + 1) >> 3) + iStack_3c)" ( (binary_expression "((int)(pcStack_24 + 1) >> 3) + iStack_3c" (parenthesized_expression "((int)(pcStack_24 + 1) >> 3)" ( (binary_expression "(int)(pcStack_24 + 1) >> 3" (cast_expression "(int)(pcStack_24 + 1)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(pcStack_24 + 1)" ( (binary_expression "pcStack_24 + 1" identifier + number_literal) ))) >> number_literal) )) + identifier) )))) ;) (expression_statement "bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));" (assignment_expression "bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7))" identifier = (call_expression "(byte)(1 << ((byte)(pcStack_24 + 1) & 7))" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(1 << ((byte)(pcStack_24 + 1) & 7))" ( (binary_expression "1 << ((byte)(pcStack_24 + 1) & 7)" number_literal << (parenthesized_expression "((byte)(pcStack_24 + 1) & 7)" ( (binary_expression "(byte)(pcStack_24 + 1) & 7" (call_expression "(byte)(pcStack_24 + 1)" (parenthesized_expression "(byte)" ( identifier )) (argument_list "(pcStack_24 + 1)" ( (binary_expression "pcStack_24 + 1" identifier + number_literal) ))) & number_literal) ))) )))) ;) (if_statement "if ((uVar7 & 1) != 0) break;" if (parenthesized_expression "((uVar7 & 1) != 0)" ( (binary_expression "(uVar7 & 1) != 0" (parenthesized_expression "(uVar7 & 1)" ( (binary_expression "uVar7 & 1" identifier & number_literal) )) != number_literal) )) (break_statement "break;" break ;)) (expression_statement "*pbVar9 = *pbVar9 & ~bVar2;" (assignment_expression "*pbVar9 = *pbVar9 & ~bVar2" (pointer_expression "*pbVar9" * identifier) = (binary_expression "*pbVar9 & ~bVar2" (pointer_expression "*pbVar9" * identifier) & (unary_expression "~bVar2" ~ identifier))) ;) (expression_statement "FUN_000211d0();" (call_expression "FUN_000211d0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "*pbVar9 = *pbVar9 | bVar2;" (assignment_expression "*pbVar9 = *pbVar9 | bVar2" (pointer_expression "*pbVar9" * identifier) = (binary_expression "*pbVar9 | bVar2" (pointer_expression "*pbVar9" * identifier) | identifier)) ;) }) while (parenthesized_expression "((uVar7 == 5) || (iVar6 = FUN_00037bb0(), iVar6 == 0))" ( (binary_expression "(uVar7 == 5) || (iVar6 = FUN_00037bb0(), iVar6 == 0)" (parenthesized_expression "(uVar7 == 5)" ( (binary_expression "uVar7 == 5" identifier == number_literal) )) || (parenthesized_expression "(iVar6 = FUN_00037bb0(), iVar6 == 0)" ( (comma_expression "iVar6 = FUN_00037bb0(), iVar6 == 0" (assignment_expression "iVar6 = FUN_00037bb0()" identifier = (call_expression "FUN_00037bb0()" identifier (argument_list "()" ( )))) , (binary_expression "iVar6 == 0" identifier == number_literal)) ))) )) ;) })) }))) (expression_statement "pcVar11 = (code *)&DAT_ffffffff;" (assignment_expression "pcVar11 = (code *)&DAT_ffffffff" identifier = (cast_expression "(code *)&DAT_ffffffff" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_ffffffff" & identifier))) ;) (goto_statement "goto code_r0x000ef06d;" goto statement_identifier ;)) (case_statement "case 9:\n    pcVar11 = (code *)0x0;\n    DAT_00149280 = param_2;\n    if (param_2 != (code *)0x0) {\n      pcVar11 = (code *)(*param_2)(0);\n    }\n    break;" case number_literal : (expression_statement "pcVar11 = (code *)0x0;" (assignment_expression "pcVar11 = (code *)0x0" identifier = (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "DAT_00149280 = param_2;" (assignment_expression "DAT_00149280 = param_2" identifier = identifier) ;) (if_statement "if (param_2 != (code *)0x0) {\n      pcVar11 = (code *)(*param_2)(0);\n    }" if (parenthesized_expression "(param_2 != (code *)0x0)" ( (binary_expression "param_2 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pcVar11 = (code *)(*param_2)(0);\n    }" { (expression_statement "pcVar11 = (code *)(*param_2)(0);" (assignment_expression "pcVar11 = (code *)(*param_2)(0)" identifier = (cast_expression "(code *)(*param_2)(0)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*param_2)(0)" (parenthesized_expression "(*param_2)" ( (pointer_expression "*param_2" * identifier) )) (argument_list "(0)" ( number_literal ))))) ;) })) (break_statement "break;" break ;)) (case_statement "case 10:\n    pcVar11 = (code *)0x0;\n    DAT_0014a974 = param_2;\n    DAT_0014a978 = param_3;\n    break;" case number_literal : (expression_statement "pcVar11 = (code *)0x0;" (assignment_expression "pcVar11 = (code *)0x0" identifier = (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "DAT_0014a974 = param_2;" (assignment_expression "DAT_0014a974 = param_2" identifier = identifier) ;) (expression_statement "DAT_0014a978 = param_3;" (assignment_expression "DAT_0014a978 = param_3" identifier = identifier) ;) (break_statement "break;" break ;)) (case_statement "case 0xb:\n    if (param_2 != (code *)0x0) {\n      DAT_00149164 = param_2;\n    }\n    break;" case number_literal : (if_statement "if (param_2 != (code *)0x0) {\n      DAT_00149164 = param_2;\n    }" if (parenthesized_expression "(param_2 != (code *)0x0)" ( (binary_expression "param_2 != (code *)0x0" identifier != (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      DAT_00149164 = param_2;\n    }" { (expression_statement "DAT_00149164 = param_2;" (assignment_expression "DAT_00149164 = param_2" identifier = identifier) ;) })) (break_statement "break;" break ;)) (case_statement "case 0xc:\n    pcStack_24 = (code *)0x0;\n    pcVar11 = (code *)0x0;\n    break;" case number_literal : (expression_statement "pcStack_24 = (code *)0x0;" (assignment_expression "pcStack_24 = (code *)0x0" identifier = (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pcVar11 = (code *)0x0;" (assignment_expression "pcVar11 = (code *)0x0" identifier = (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 0xd:\n    pcVar11 = param_2;\n    break;" case number_literal : (expression_statement "pcVar11 = param_2;" (assignment_expression "pcVar11 = param_2" identifier = identifier) ;) (break_statement "break;" break ;)) (case_statement "case 0xe:\n    FUN_000197c0(*(undefined4 *)(param_2 + 0xc));\n    FUN_0003a660(0);\n    FUN_000197f0(*(undefined4 *)(param_2 + 0xc));\n    pcVar11 = (code *)0x0;\n    break;" case number_literal : (expression_statement "FUN_000197c0(*(undefined4 *)(param_2 + 0xc));" (call_expression "FUN_000197c0(*(undefined4 *)(param_2 + 0xc))" identifier (argument_list "(*(undefined4 *)(param_2 + 0xc))" ( (pointer_expression "*(undefined4 *)(param_2 + 0xc)" * (cast_expression "(undefined4 *)(param_2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) ))) ;) (expression_statement "FUN_0003a660(0);" (call_expression "FUN_0003a660(0)" identifier (argument_list "(0)" ( number_literal ))) ;) (expression_statement "FUN_000197f0(*(undefined4 *)(param_2 + 0xc));" (call_expression "FUN_000197f0(*(undefined4 *)(param_2 + 0xc))" identifier (argument_list "(*(undefined4 *)(param_2 + 0xc))" ( (pointer_expression "*(undefined4 *)(param_2 + 0xc)" * (cast_expression "(undefined4 *)(param_2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) ))) ;) (expression_statement "pcVar11 = (code *)0x0;" (assignment_expression "pcVar11 = (code *)0x0" identifier = (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 0xf:\n    *(short *)(param_2 + 0x48) = (short)param_3;\n    pcVar11 = (code *)0x0;\n    break;" case number_literal : (expression_statement "*(short *)(param_2 + 0x48) = (short)param_3;" (assignment_expression "*(short *)(param_2 + 0x48) = (short)param_3" (pointer_expression "*(short *)(param_2 + 0x48)" * (cast_expression "(short *)(param_2 + 0x48)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x48)" ( (binary_expression "param_2 + 0x48" identifier + number_literal) )))) = (cast_expression "(short)param_3" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) ;) (expression_statement "pcVar11 = (code *)0x0;" (assignment_expression "pcVar11 = (code *)0x0" identifier = (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (break_statement "break;" break ;)) (case_statement "default:\n    goto LAB_000eed12;" default : (goto_statement "goto LAB_000eed12;" goto statement_identifier ;)) (case_statement "case 0x11:\n    DAT_00149288 = param_2;\n    pcVar11 = (code *)0x0;\n    break;" case number_literal : (expression_statement "DAT_00149288 = param_2;" (assignment_expression "DAT_00149288 = param_2" identifier = identifier) ;) (expression_statement "pcVar11 = (code *)0x0;" (assignment_expression "pcVar11 = (code *)0x0" identifier = (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 0x12:\n    DAT_00149284 = param_2;\n    pcVar11 = (code *)0x0;\n    break;" case number_literal : (expression_statement "DAT_00149284 = param_2;" (assignment_expression "DAT_00149284 = param_2" identifier = identifier) ;) (expression_statement "pcVar11 = (code *)0x0;" (assignment_expression "pcVar11 = (code *)0x0" identifier = (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 0x13:\n    pcRam0014928c = param_2;\n    pcVar11 = (code *)0x0;\n    break;" case number_literal : (expression_statement "pcRam0014928c = param_2;" (assignment_expression "pcRam0014928c = param_2" identifier = identifier) ;) (expression_statement "pcVar11 = (code *)0x0;" (assignment_expression "pcVar11 = (code *)0x0" identifier = (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 0x14:\n    pcRam0014919c = param_2;\n    pcVar11 = (code *)0x0;\n    break;" case number_literal : (expression_statement "pcRam0014919c = param_2;" (assignment_expression "pcRam0014919c = param_2" identifier = identifier) ;) (expression_statement "pcVar11 = (code *)0x0;" (assignment_expression "pcVar11 = (code *)0x0" identifier = (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 0x16:\n    pcVar11 = (code *)0x1e212;\n    break;" case number_literal : (expression_statement "pcVar11 = (code *)0x1e212;" (assignment_expression "pcVar11 = (code *)0x1e212" identifier = (cast_expression "(code *)0x1e212" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 0x17:\n    pcVar11 = (code *)(uint)(DAT_0014925c == 0);\n    break;" case number_literal : (expression_statement "pcVar11 = (code *)(uint)(DAT_0014925c == 0);" (assignment_expression "pcVar11 = (code *)(uint)(DAT_0014925c == 0)" identifier = (cast_expression "(code *)(uint)(DAT_0014925c == 0)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(uint)(DAT_0014925c == 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(DAT_0014925c == 0)" ( (binary_expression "DAT_0014925c == 0" identifier == number_literal) ))))) ;) (break_statement "break;" break ;)) (case_statement "case 0x18:\n    *(int *)(param_2 + 0x98) = param_3;\n    pcVar11 = (code *)0x0;\n    break;" case number_literal : (expression_statement "*(int *)(param_2 + 0x98) = param_3;" (assignment_expression "*(int *)(param_2 + 0x98) = param_3" (pointer_expression "*(int *)(param_2 + 0x98)" * (cast_expression "(int *)(param_2 + 0x98)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x98)" ( (binary_expression "param_2 + 0x98" identifier + number_literal) )))) = identifier) ;) (expression_statement "pcVar11 = (code *)0x0;" (assignment_expression "pcVar11 = (code *)0x0" identifier = (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (break_statement "break;" break ;)) (case_statement "case 0x19:\n    FUN_000197c0(*(undefined4 *)(param_2 + 0xc));\n    cVar3 = (code)FUN_00027d70();\n    param_2[0xa0] = cVar3;\n    cVar3 = (code)(param_4 & 1);\n    param_2[0xa1] = cVar3;\n    param_2[0xa2] = (code)((byte)param_2[0xa2] & 0xfd | (char)cVar3 * '\x02');\n    *(int *)(param_2 + 0x9c) = param_5;\n    if ((0 < param_5) && (cVar3 == (code)0x0)) {\n      FUN_00039e00();\n    }\n    FUN_000197f0(*(undefined4 *)(param_2 + 0xc));\n    pcVar11 = (code *)0x0;" case number_literal : (expression_statement "FUN_000197c0(*(undefined4 *)(param_2 + 0xc));" (call_expression "FUN_000197c0(*(undefined4 *)(param_2 + 0xc))" identifier (argument_list "(*(undefined4 *)(param_2 + 0xc))" ( (pointer_expression "*(undefined4 *)(param_2 + 0xc)" * (cast_expression "(undefined4 *)(param_2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) ))) ;) (expression_statement "cVar3 = (code)FUN_00027d70();" (assignment_expression "cVar3 = (code)FUN_00027d70()" identifier = (cast_expression "(code)FUN_00027d70()" ( (type_descriptor "code" type_identifier) ) (call_expression "FUN_00027d70()" identifier (argument_list "()" ( ))))) ;) (expression_statement "param_2[0xa0] = cVar3;" (assignment_expression "param_2[0xa0] = cVar3" (subscript_expression "param_2[0xa0]" identifier [ number_literal ]) = identifier) ;) (expression_statement "cVar3 = (code)(param_4 & 1);" (assignment_expression "cVar3 = (code)(param_4 & 1)" identifier = (call_expression "(code)(param_4 & 1)" (parenthesized_expression "(code)" ( identifier )) (argument_list "(param_4 & 1)" ( (binary_expression "param_4 & 1" identifier & number_literal) )))) ;) (expression_statement "param_2[0xa1] = cVar3;" (assignment_expression "param_2[0xa1] = cVar3" (subscript_expression "param_2[0xa1]" identifier [ number_literal ]) = identifier) ;) (expression_statement "param_2[0xa2] = (code)((byte)param_2[0xa2] & 0xfd | (char)cVar3 * '\x02');" (assignment_expression "param_2[0xa2] = (code)((byte)param_2[0xa2] & 0xfd | (char)cVar3 * '\x02')" (subscript_expression "param_2[0xa2]" identifier [ number_literal ]) = (call_expression "(code)((byte)param_2[0xa2] & 0xfd | (char)cVar3 * '\x02')" (parenthesized_expression "(code)" ( identifier )) (argument_list "((byte)param_2[0xa2] & 0xfd | (char)cVar3 * '\x02')" ( (binary_expression "(byte)param_2[0xa2] & 0xfd | (char)cVar3 * '\x02'" (binary_expression "(byte)param_2[0xa2] & 0xfd" (cast_expression "(byte)param_2[0xa2]" ( (type_descriptor "byte" type_identifier) ) (subscript_expression "param_2[0xa2]" identifier [ number_literal ])) & number_literal) | (binary_expression "(char)cVar3 * '\x02'" (cast_expression "(char)cVar3" ( (type_descriptor "char" primitive_type) ) identifier) * (char_literal "'\x02'" ' escape_sequence '))) )))) ;) (expression_statement "*(int *)(param_2 + 0x9c) = param_5;" (assignment_expression "*(int *)(param_2 + 0x9c) = param_5" (pointer_expression "*(int *)(param_2 + 0x9c)" * (cast_expression "(int *)(param_2 + 0x9c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x9c)" ( (binary_expression "param_2 + 0x9c" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((0 < param_5) && (cVar3 == (code)0x0)) {\n      FUN_00039e00();\n    }" if (parenthesized_expression "((0 < param_5) && (cVar3 == (code)0x0))" ( (binary_expression "(0 < param_5) && (cVar3 == (code)0x0)" (parenthesized_expression "(0 < param_5)" ( (binary_expression "0 < param_5" number_literal < identifier) )) && (parenthesized_expression "(cVar3 == (code)0x0)" ( (binary_expression "cVar3 == (code)0x0" identifier == (cast_expression "(code)0x0" ( (type_descriptor "code" type_identifier) ) number_literal)) ))) )) (compound_statement "{\n      FUN_00039e00();\n    }" { (expression_statement "FUN_00039e00();" (call_expression "FUN_00039e00()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "FUN_000197f0(*(undefined4 *)(param_2 + 0xc));" (call_expression "FUN_000197f0(*(undefined4 *)(param_2 + 0xc))" identifier (argument_list "(*(undefined4 *)(param_2 + 0xc))" ( (pointer_expression "*(undefined4 *)(param_2 + 0xc)" * (cast_expression "(undefined4 *)(param_2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) )))) ))) ;) (expression_statement "pcVar11 = (code *)0x0;" (assignment_expression "pcVar11 = (code *)0x0" identifier = (cast_expression "(code *)0x0" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) })) (labeled_statement "LAB_000eecd0:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar11;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar11;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return pcVar11;\n  }" { (return_statement "return pcVar11;" return identifier ;) }))) (expression_statement "FUN_000f4bf0();" (call_expression "FUN_000f4bf0()" identifier (argument_list "()" ( ))) ;) (while_statement "while (pcStack_24 = pcVar11 + 1, pcVar11 = pcVar12, (int)pcStack_24 <= (int)param_2) {\ncode_r0x000ef13b:\n    pcVar11 = pcStack_24;\n    uVar7 = FUN_00029980();\n    if (uVar7 != ((int)(uint)*(byte *)(iStack_3c + ((int)pcVar11 >> 3)) >> ((byte)pcVar11 & 7) & 1U)\n       ) break;\n  }" while (parenthesized_expression "(pcStack_24 = pcVar11 + 1, pcVar11 = pcVar12, (int)pcStack_24 <= (int)param_2)" ( (comma_expression "pcStack_24 = pcVar11 + 1, pcVar11 = pcVar12, (int)pcStack_24 <= (int)param_2" (assignment_expression "pcStack_24 = pcVar11 + 1" identifier = (binary_expression "pcVar11 + 1" identifier + number_literal)) , (comma_expression "pcVar11 = pcVar12, (int)pcStack_24 <= (int)param_2" (assignment_expression "pcVar11 = pcVar12" identifier = identifier) , (binary_expression "(int)pcStack_24 <= (int)param_2" (cast_expression "(int)pcStack_24" ( (type_descriptor "int" primitive_type) ) identifier) <= (cast_expression "(int)param_2" ( (type_descriptor "int" primitive_type) ) identifier)))) )) (compound_statement "{\ncode_r0x000ef13b:\n    pcVar11 = pcStack_24;\n    uVar7 = FUN_00029980();\n    if (uVar7 != ((int)(uint)*(byte *)(iStack_3c + ((int)pcVar11 >> 3)) >> ((byte)pcVar11 & 7) & 1U)\n       ) break;\n  }" { (labeled_statement "code_r0x000ef13b:\n    pcVar11 = pcStack_24;" statement_identifier : (expression_statement "pcVar11 = pcStack_24;" (assignment_expression "pcVar11 = pcStack_24" identifier = identifier) ;)) (expression_statement "uVar7 = FUN_00029980();" (assignment_expression "uVar7 = FUN_00029980()" identifier = (call_expression "FUN_00029980()" identifier (argument_list "()" ( )))) ;) (if_statement "if (uVar7 != ((int)(uint)*(byte *)(iStack_3c + ((int)pcVar11 >> 3)) >> ((byte)pcVar11 & 7) & 1U)\n       ) break;" if (parenthesized_expression "(uVar7 != ((int)(uint)*(byte *)(iStack_3c + ((int)pcVar11 >> 3)) >> ((byte)pcVar11 & 7) & 1U)\n       )" ( (binary_expression "uVar7 != ((int)(uint)*(byte *)(iStack_3c + ((int)pcVar11 >> 3)) >> ((byte)pcVar11 & 7) & 1U)" identifier != (parenthesized_expression "((int)(uint)*(byte *)(iStack_3c + ((int)pcVar11 >> 3)) >> ((byte)pcVar11 & 7) & 1U)" ( (binary_expression "(int)(uint)*(byte *)(iStack_3c + ((int)pcVar11 >> 3)) >> ((byte)pcVar11 & 7) & 1U" (binary_expression "(int)(uint)*(byte *)(iStack_3c + ((int)pcVar11 >> 3)) >> ((byte)pcVar11 & 7)" (binary_expression "(int)(uint)*(byte *)(iStack_3c + ((int)pcVar11 >> 3))" (cast_expression "(int)(uint)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uint)" ( identifier ))) * (cast_expression "(byte *)(iStack_3c + ((int)pcVar11 >> 3))" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iStack_3c + ((int)pcVar11 >> 3))" ( (binary_expression "iStack_3c + ((int)pcVar11 >> 3)" identifier + (parenthesized_expression "((int)pcVar11 >> 3)" ( (binary_expression "(int)pcVar11 >> 3" (cast_expression "(int)pcVar11" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal) ))) )))) >> (parenthesized_expression "((byte)pcVar11 & 7)" ( (binary_expression "(byte)pcVar11 & 7" (cast_expression "(byte)pcVar11" ( (type_descriptor "byte" type_identifier) ) identifier) & number_literal) ))) & number_literal) ))) )) (break_statement "break;" break ;)) })) (labeled_statement "code_r0x000ef06d:\n  FUN_00024cc0(iStack_30);" statement_identifier : (expression_statement "FUN_00024cc0(iStack_30);" (call_expression "FUN_00024cc0(iStack_30)" identifier (argument_list "(iStack_30)" ( identifier ))) ;)) (expression_statement "FUN_00024cc0(iStack_3c);" (call_expression "FUN_00024cc0(iStack_3c)" identifier (argument_list "(iStack_3c)" ( identifier ))) ;) (expression_statement "FUN_00025a40();" (call_expression "FUN_00025a40()" identifier (argument_list "()" ( ))) ;) (goto_statement "goto LAB_000eecd0;" goto statement_identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (switch_statement switch (parenthesized_expression ( IDENT )) (compound_statement { (case_statement case LIT : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT))) ;) (goto_statement goto statement_identifier ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (labeled_statement statement_identifier : (for_statement for ( (assignment_expression IDENT = 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 IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + 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 *)) ) IDENT))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) ))))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;)) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (call_expression IDENT (argument_list ( LIT , LIT ))) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , LIT , IDENT , IDENT )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) - (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) + IDENT) + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (goto_statement goto statement_identifier ;)) (goto_statement goto statement_identifier ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) && (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression LIT << (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT) ))) & LIT) )) != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) )))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT , (pointer_expression & IDENT) ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (call_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( IDENT ))) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT) ))) % (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) IDENT))) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) >> LIT) )) + IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression LIT << (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) ))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (break_statement break ;)) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) & (unary_expression ~ IDENT))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (pointer_expression * IDENT) | IDENT)) ;) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) , (binary_expression IDENT == LIT)) ))) )) ;) })) }))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT))) ;) (goto_statement goto statement_identifier ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( LIT ))))) ;) })) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (break_statement break ;)) (case_statement case LIT : (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = IDENT) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (cast_expression ( (type_descriptor (sized_type_specifier short)) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (break_statement break ;)) (case_statement default : (goto_statement goto statement_identifier ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT == LIT) ))))) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (break_statement break ;)) (case_statement case LIT : (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT & LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) & LIT) | (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * (char_literal ' escape_sequence '))) )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < IDENT) )) && (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE) ) LIT)) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;)) })) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (while_statement while (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (binary_expression IDENT + LIT)) , (comma_expression (assignment_expression IDENT = IDENT) , (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) <= (cast_expression ( (type_descriptor TYPE) ) IDENT)))) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (parenthesized_expression ( (binary_expression (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( IDENT ))) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT) ))) )))) >> (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) & LIT) ))) & LIT) ))) )) (break_statement break ;)) })) (labeled_statement statement_identifier : (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;)) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (goto_statement goto statement_identifier ;) })))
(function_definition "code * FUN_000eec80(undefined4 param_1,code *param_2,int param_3,byte param_4,int param_5)\n\n{\n  int *piVar1;\n  byte bVar2;\n  code cVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  int iVar6;\n  uint uVar7;\n  int iVar8;\n  byte *pbVar9;\n  undefined4 *puVar10;\n  code *pcVar11;\n  code *pcVar12;\n  int iVar13;\n  int in_GS_OFFSET;\n  int iStack_3c;\n  int iStack_30;\n  code *pcStack_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  pcVar11 = DAT_00149164;\n  uStack_14 = 0xeec89;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  switch(param_1) {\n  case 5:\n    puVar4 = (undefined4 *)0x14a740;\n    puVar10 = (undefined4 *)&DAT_0014a860;\n    goto code_r0x000eecfc;\n  case 6:\n    puVar4 = (undefined4 *)&DAT_0014a860;\n    puVar10 = (undefined4 *)0x14a740;\ncode_r0x000eecfc:\n    for (iVar13 = 0x40; iVar13 != 0; iVar13 = iVar13 + -1) {\n      *puVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      puVar4 = puVar4 + 1;\n    }\n    *(undefined2 *)puVar4 = *(undefined2 *)puVar10;\n    *(undefined1 *)((int)puVar4 + 2) = *(undefined1 *)((int)puVar10 + 2);\nLAB_000eed12:\n    pcVar11 = (code *)0x0;\n    break;\n  case 7:\n    pcVar11 = (code *)0x0;\n    FUN_00077d40(0,0);\n    break;\n  case 8:\n    piVar5 = (int *)FUN_000249a0();\n    if (piVar5 == (int *)0x0) {\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0,iStack_3c,iStack_3c);\n    }\n    else {\n      *piVar5 = (int)param_2;\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0);\n      if ((iStack_3c != 0) && (iStack_30 != 0)) {\n        iVar13 = 0;\n        do {\n          while( true ) {\n            iVar6 = iVar13 * 4;\n            uVar7 = *(uint *)(param_3 + iVar13 * 4);\n            if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }\n            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }\n            piVar1 = (int *)(param_3 + 4 + iVar6);\n            iVar6 = *piVar1 + -1;\n            *piVar1 = iVar6;\n            if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }\n            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);\n            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);\n            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));\n            if ((uVar7 & 1) != 0) break;\n            *pbVar9 = *pbVar9 & ~bVar2;\n            FUN_000211d0();\n          }\n          *pbVar9 = *pbVar9 | bVar2;\n        } while ((uVar7 == 5) || (iVar6 = FUN_00037bb0(), iVar6 == 0));\n      }\n    }\n    pcVar11 = (code *)&DAT_ffffffff;\n    goto code_r0x000ef06d;\n  case 9:\n    pcVar11 = (code *)0x0;\n    DAT_00149280 = param_2;\n    if (param_2 != (code *)0x0) {\n      pcVar11 = (code *)(*param_2)(0);\n    }\n    break;\n  case 10:\n    pcVar11 = (code *)0x0;\n    DAT_0014a974 = param_2;\n    DAT_0014a978 = param_3;\n    break;\n  case 0xb:\n    if (param_2 != (code *)0x0) {\n      DAT_00149164 = param_2;\n    }\n    break;\n  case 0xc:\n    pcStack_24 = (code *)0x0;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0xd:\n    pcVar11 = param_2;\n    break;\n  case 0xe:\n    FUN_000197c0(*(undefined4 *)(param_2 + 0xc));\n    FUN_0003a660(0);\n    FUN_000197f0(*(undefined4 *)(param_2 + 0xc));\n    pcVar11 = (code *)0x0;\n    break;\n  case 0xf:\n    *(short *)(param_2 + 0x48) = (short)param_3;\n    pcVar11 = (code *)0x0;\n    break;\n  default:\n    goto LAB_000eed12;\n  case 0x11:\n    DAT_00149288 = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x12:\n    DAT_00149284 = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x13:\n    pcRam0014928c = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x14:\n    pcRam0014919c = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x16:\n    pcVar11 = (code *)0x1e212;\n    break;\n  case 0x17:\n    pcVar11 = (code *)(uint)(DAT_0014925c == 0);\n    break;\n  case 0x18:\n    *(int *)(param_2 + 0x98) = param_3;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x19:\n    FUN_000197c0(*(undefined4 *)(param_2 + 0xc));\n    cVar3 = (code)FUN_00027d70();\n    param_2[0xa0] = cVar3;\n    cVar3 = (code)(param_4 & 1);\n    param_2[0xa1] = cVar3;\n    param_2[0xa2] = (code)((byte)param_2[0xa2] & 0xfd | (char)cVar3 * '\x02');\n    *(int *)(param_2 + 0x9c) = param_5;\n    if ((0 < param_5) && (cVar3 == (code)0x0)) {\n      FUN_00039e00();\n    }\n    FUN_000197f0(*(undefined4 *)(param_2 + 0xc));\n    pcVar11 = (code *)0x0;\n  }\nLAB_000eecd0:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar11;\n  }\n                    \n  FUN_000f4bf0();\n  while (pcStack_24 = pcVar11 + 1, pcVar11 = pcVar12, (int)pcStack_24 <= (int)param_2) {\ncode_r0x000ef13b:\n    pcVar11 = pcStack_24;\n    uVar7 = FUN_00029980();\n    if (uVar7 != ((int)(uint)*(byte *)(iStack_3c + ((int)pcVar11 >> 3)) >> ((byte)pcVar11 & 7) & 1U)\n       ) break;\n  }\ncode_r0x000ef06d:\n  FUN_00024cc0(iStack_30);\n  FUN_00024cc0(iStack_3c);\n  FUN_00025a40();\n  goto LAB_000eecd0;\n}" (type_identifier "code") (pointer_declarator "* FUN_000eec80(undefined4 param_1,code *param_2,int param_3,byte param_4,int param_5)" (* "*") (function_declarator "FUN_000eec80(undefined4 param_1,code *param_2,int param_3,byte param_4,int param_5)" (identifier "FUN_000eec80") (parameter_list "(undefined4 param_1,code *param_2,int param_3,byte param_4,int param_5)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "code *param_2" (type_identifier "code") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "byte param_4" (type_identifier "byte") (identifier "param_4")) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) () ")")))) (compound_statement "{\n  int *piVar1;\n  byte bVar2;\n  code cVar3;\n  undefined4 *puVar4;\n  int *piVar5;\n  int iVar6;\n  uint uVar7;\n  int iVar8;\n  byte *pbVar9;\n  undefined4 *puVar10;\n  code *pcVar11;\n  code *pcVar12;\n  int iVar13;\n  int in_GS_OFFSET;\n  int iStack_3c;\n  int iStack_30;\n  code *pcStack_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  pcVar11 = DAT_00149164;\n  uStack_14 = 0xeec89;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  switch(param_1) {\n  case 5:\n    puVar4 = (undefined4 *)0x14a740;\n    puVar10 = (undefined4 *)&DAT_0014a860;\n    goto code_r0x000eecfc;\n  case 6:\n    puVar4 = (undefined4 *)&DAT_0014a860;\n    puVar10 = (undefined4 *)0x14a740;\ncode_r0x000eecfc:\n    for (iVar13 = 0x40; iVar13 != 0; iVar13 = iVar13 + -1) {\n      *puVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      puVar4 = puVar4 + 1;\n    }\n    *(undefined2 *)puVar4 = *(undefined2 *)puVar10;\n    *(undefined1 *)((int)puVar4 + 2) = *(undefined1 *)((int)puVar10 + 2);\nLAB_000eed12:\n    pcVar11 = (code *)0x0;\n    break;\n  case 7:\n    pcVar11 = (code *)0x0;\n    FUN_00077d40(0,0);\n    break;\n  case 8:\n    piVar5 = (int *)FUN_000249a0();\n    if (piVar5 == (int *)0x0) {\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0,iStack_3c,iStack_3c);\n    }\n    else {\n      *piVar5 = (int)param_2;\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0);\n      if ((iStack_3c != 0) && (iStack_30 != 0)) {\n        iVar13 = 0;\n        do {\n          while( true ) {\n            iVar6 = iVar13 * 4;\n            uVar7 = *(uint *)(param_3 + iVar13 * 4);\n            if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }\n            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }\n            piVar1 = (int *)(param_3 + 4 + iVar6);\n            iVar6 = *piVar1 + -1;\n            *piVar1 = iVar6;\n            if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }\n            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);\n            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);\n            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));\n            if ((uVar7 & 1) != 0) break;\n            *pbVar9 = *pbVar9 & ~bVar2;\n            FUN_000211d0();\n          }\n          *pbVar9 = *pbVar9 | bVar2;\n        } while ((uVar7 == 5) || (iVar6 = FUN_00037bb0(), iVar6 == 0));\n      }\n    }\n    pcVar11 = (code *)&DAT_ffffffff;\n    goto code_r0x000ef06d;\n  case 9:\n    pcVar11 = (code *)0x0;\n    DAT_00149280 = param_2;\n    if (param_2 != (code *)0x0) {\n      pcVar11 = (code *)(*param_2)(0);\n    }\n    break;\n  case 10:\n    pcVar11 = (code *)0x0;\n    DAT_0014a974 = param_2;\n    DAT_0014a978 = param_3;\n    break;\n  case 0xb:\n    if (param_2 != (code *)0x0) {\n      DAT_00149164 = param_2;\n    }\n    break;\n  case 0xc:\n    pcStack_24 = (code *)0x0;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0xd:\n    pcVar11 = param_2;\n    break;\n  case 0xe:\n    FUN_000197c0(*(undefined4 *)(param_2 + 0xc));\n    FUN_0003a660(0);\n    FUN_000197f0(*(undefined4 *)(param_2 + 0xc));\n    pcVar11 = (code *)0x0;\n    break;\n  case 0xf:\n    *(short *)(param_2 + 0x48) = (short)param_3;\n    pcVar11 = (code *)0x0;\n    break;\n  default:\n    goto LAB_000eed12;\n  case 0x11:\n    DAT_00149288 = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x12:\n    DAT_00149284 = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x13:\n    pcRam0014928c = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x14:\n    pcRam0014919c = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x16:\n    pcVar11 = (code *)0x1e212;\n    break;\n  case 0x17:\n    pcVar11 = (code *)(uint)(DAT_0014925c == 0);\n    break;\n  case 0x18:\n    *(int *)(param_2 + 0x98) = param_3;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x19:\n    FUN_000197c0(*(undefined4 *)(param_2 + 0xc));\n    cVar3 = (code)FUN_00027d70();\n    param_2[0xa0] = cVar3;\n    cVar3 = (code)(param_4 & 1);\n    param_2[0xa1] = cVar3;\n    param_2[0xa2] = (code)((byte)param_2[0xa2] & 0xfd | (char)cVar3 * '\x02');\n    *(int *)(param_2 + 0x9c) = param_5;\n    if ((0 < param_5) && (cVar3 == (code)0x0)) {\n      FUN_00039e00();\n    }\n    FUN_000197f0(*(undefined4 *)(param_2 + 0xc));\n    pcVar11 = (code *)0x0;\n  }\nLAB_000eecd0:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar11;\n  }\n                    \n  FUN_000f4bf0();\n  while (pcStack_24 = pcVar11 + 1, pcVar11 = pcVar12, (int)pcStack_24 <= (int)param_2) {\ncode_r0x000ef13b:\n    pcVar11 = pcStack_24;\n    uVar7 = FUN_00029980();\n    if (uVar7 != ((int)(uint)*(byte *)(iStack_3c + ((int)pcVar11 >> 3)) >> ((byte)pcVar11 & 7) & 1U)\n       ) break;\n  }\ncode_r0x000ef06d:\n  FUN_00024cc0(iStack_30);\n  FUN_00024cc0(iStack_3c);\n  FUN_00025a40();\n  goto LAB_000eecd0;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "byte bVar2;" (type_identifier "byte") (identifier "bVar2") (; ";")) (declaration "code cVar3;" (type_identifier "code") (identifier "cVar3") (; ";")) (declaration "undefined4 *puVar4;" (type_identifier "undefined4") (pointer_declarator "*puVar4" (* "*") (identifier "puVar4")) (; ";")) (declaration "int *piVar5;" (primitive_type "int") (pointer_declarator "*piVar5" (* "*") (identifier "piVar5")) (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (declaration "int iVar8;" (primitive_type "int") (identifier "iVar8") (; ";")) (declaration "byte *pbVar9;" (type_identifier "byte") (pointer_declarator "*pbVar9" (* "*") (identifier "pbVar9")) (; ";")) (declaration "undefined4 *puVar10;" (type_identifier "undefined4") (pointer_declarator "*puVar10" (* "*") (identifier "puVar10")) (; ";")) (declaration "code *pcVar11;" (type_identifier "code") (pointer_declarator "*pcVar11" (* "*") (identifier "pcVar11")) (; ";")) (declaration "code *pcVar12;" (type_identifier "code") (pointer_declarator "*pcVar12" (* "*") (identifier "pcVar12")) (; ";")) (declaration "int iVar13;" (primitive_type "int") (identifier "iVar13") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int iStack_3c;" (primitive_type "int") (identifier "iStack_3c") (; ";")) (declaration "int iStack_30;" (primitive_type "int") (identifier "iStack_30") (; ";")) (declaration "code *pcStack_24;" (type_identifier "code") (pointer_declarator "*pcStack_24" (* "*") (identifier "pcStack_24")) (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "pcVar11 = DAT_00149164;" (assignment_expression "pcVar11 = DAT_00149164" (identifier "pcVar11") (= "=") (identifier "DAT_00149164")) (; ";")) (expression_statement "uStack_14 = 0xeec89;" (assignment_expression "uStack_14 = 0xeec89" (identifier "uStack_14") (= "=") (number_literal "0xeec89")) (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (switch_statement "switch(param_1) {\n  case 5:\n    puVar4 = (undefined4 *)0x14a740;\n    puVar10 = (undefined4 *)&DAT_0014a860;\n    goto code_r0x000eecfc;\n  case 6:\n    puVar4 = (undefined4 *)&DAT_0014a860;\n    puVar10 = (undefined4 *)0x14a740;\ncode_r0x000eecfc:\n    for (iVar13 = 0x40; iVar13 != 0; iVar13 = iVar13 + -1) {\n      *puVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      puVar4 = puVar4 + 1;\n    }\n    *(undefined2 *)puVar4 = *(undefined2 *)puVar10;\n    *(undefined1 *)((int)puVar4 + 2) = *(undefined1 *)((int)puVar10 + 2);\nLAB_000eed12:\n    pcVar11 = (code *)0x0;\n    break;\n  case 7:\n    pcVar11 = (code *)0x0;\n    FUN_00077d40(0,0);\n    break;\n  case 8:\n    piVar5 = (int *)FUN_000249a0();\n    if (piVar5 == (int *)0x0) {\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0,iStack_3c,iStack_3c);\n    }\n    else {\n      *piVar5 = (int)param_2;\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0);\n      if ((iStack_3c != 0) && (iStack_30 != 0)) {\n        iVar13 = 0;\n        do {\n          while( true ) {\n            iVar6 = iVar13 * 4;\n            uVar7 = *(uint *)(param_3 + iVar13 * 4);\n            if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }\n            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }\n            piVar1 = (int *)(param_3 + 4 + iVar6);\n            iVar6 = *piVar1 + -1;\n            *piVar1 = iVar6;\n            if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }\n            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);\n            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);\n            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));\n            if ((uVar7 & 1) != 0) break;\n            *pbVar9 = *pbVar9 & ~bVar2;\n            FUN_000211d0();\n          }\n          *pbVar9 = *pbVar9 | bVar2;\n        } while ((uVar7 == 5) || (iVar6 = FUN_00037bb0(), iVar6 == 0));\n      }\n    }\n    pcVar11 = (code *)&DAT_ffffffff;\n    goto code_r0x000ef06d;\n  case 9:\n    pcVar11 = (code *)0x0;\n    DAT_00149280 = param_2;\n    if (param_2 != (code *)0x0) {\n      pcVar11 = (code *)(*param_2)(0);\n    }\n    break;\n  case 10:\n    pcVar11 = (code *)0x0;\n    DAT_0014a974 = param_2;\n    DAT_0014a978 = param_3;\n    break;\n  case 0xb:\n    if (param_2 != (code *)0x0) {\n      DAT_00149164 = param_2;\n    }\n    break;\n  case 0xc:\n    pcStack_24 = (code *)0x0;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0xd:\n    pcVar11 = param_2;\n    break;\n  case 0xe:\n    FUN_000197c0(*(undefined4 *)(param_2 + 0xc));\n    FUN_0003a660(0);\n    FUN_000197f0(*(undefined4 *)(param_2 + 0xc));\n    pcVar11 = (code *)0x0;\n    break;\n  case 0xf:\n    *(short *)(param_2 + 0x48) = (short)param_3;\n    pcVar11 = (code *)0x0;\n    break;\n  default:\n    goto LAB_000eed12;\n  case 0x11:\n    DAT_00149288 = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x12:\n    DAT_00149284 = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x13:\n    pcRam0014928c = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x14:\n    pcRam0014919c = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x16:\n    pcVar11 = (code *)0x1e212;\n    break;\n  case 0x17:\n    pcVar11 = (code *)(uint)(DAT_0014925c == 0);\n    break;\n  case 0x18:\n    *(int *)(param_2 + 0x98) = param_3;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x19:\n    FUN_000197c0(*(undefined4 *)(param_2 + 0xc));\n    cVar3 = (code)FUN_00027d70();\n    param_2[0xa0] = cVar3;\n    cVar3 = (code)(param_4 & 1);\n    param_2[0xa1] = cVar3;\n    param_2[0xa2] = (code)((byte)param_2[0xa2] & 0xfd | (char)cVar3 * '\x02');\n    *(int *)(param_2 + 0x9c) = param_5;\n    if ((0 < param_5) && (cVar3 == (code)0x0)) {\n      FUN_00039e00();\n    }\n    FUN_000197f0(*(undefined4 *)(param_2 + 0xc));\n    pcVar11 = (code *)0x0;\n  }" (switch "switch") (parenthesized_expression "(param_1)" (( "(") (identifier "param_1") () ")")) (compound_statement "{\n  case 5:\n    puVar4 = (undefined4 *)0x14a740;\n    puVar10 = (undefined4 *)&DAT_0014a860;\n    goto code_r0x000eecfc;\n  case 6:\n    puVar4 = (undefined4 *)&DAT_0014a860;\n    puVar10 = (undefined4 *)0x14a740;\ncode_r0x000eecfc:\n    for (iVar13 = 0x40; iVar13 != 0; iVar13 = iVar13 + -1) {\n      *puVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      puVar4 = puVar4 + 1;\n    }\n    *(undefined2 *)puVar4 = *(undefined2 *)puVar10;\n    *(undefined1 *)((int)puVar4 + 2) = *(undefined1 *)((int)puVar10 + 2);\nLAB_000eed12:\n    pcVar11 = (code *)0x0;\n    break;\n  case 7:\n    pcVar11 = (code *)0x0;\n    FUN_00077d40(0,0);\n    break;\n  case 8:\n    piVar5 = (int *)FUN_000249a0();\n    if (piVar5 == (int *)0x0) {\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0,iStack_3c,iStack_3c);\n    }\n    else {\n      *piVar5 = (int)param_2;\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0);\n      if ((iStack_3c != 0) && (iStack_30 != 0)) {\n        iVar13 = 0;\n        do {\n          while( true ) {\n            iVar6 = iVar13 * 4;\n            uVar7 = *(uint *)(param_3 + iVar13 * 4);\n            if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }\n            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }\n            piVar1 = (int *)(param_3 + 4 + iVar6);\n            iVar6 = *piVar1 + -1;\n            *piVar1 = iVar6;\n            if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }\n            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);\n            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);\n            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));\n            if ((uVar7 & 1) != 0) break;\n            *pbVar9 = *pbVar9 & ~bVar2;\n            FUN_000211d0();\n          }\n          *pbVar9 = *pbVar9 | bVar2;\n        } while ((uVar7 == 5) || (iVar6 = FUN_00037bb0(), iVar6 == 0));\n      }\n    }\n    pcVar11 = (code *)&DAT_ffffffff;\n    goto code_r0x000ef06d;\n  case 9:\n    pcVar11 = (code *)0x0;\n    DAT_00149280 = param_2;\n    if (param_2 != (code *)0x0) {\n      pcVar11 = (code *)(*param_2)(0);\n    }\n    break;\n  case 10:\n    pcVar11 = (code *)0x0;\n    DAT_0014a974 = param_2;\n    DAT_0014a978 = param_3;\n    break;\n  case 0xb:\n    if (param_2 != (code *)0x0) {\n      DAT_00149164 = param_2;\n    }\n    break;\n  case 0xc:\n    pcStack_24 = (code *)0x0;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0xd:\n    pcVar11 = param_2;\n    break;\n  case 0xe:\n    FUN_000197c0(*(undefined4 *)(param_2 + 0xc));\n    FUN_0003a660(0);\n    FUN_000197f0(*(undefined4 *)(param_2 + 0xc));\n    pcVar11 = (code *)0x0;\n    break;\n  case 0xf:\n    *(short *)(param_2 + 0x48) = (short)param_3;\n    pcVar11 = (code *)0x0;\n    break;\n  default:\n    goto LAB_000eed12;\n  case 0x11:\n    DAT_00149288 = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x12:\n    DAT_00149284 = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x13:\n    pcRam0014928c = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x14:\n    pcRam0014919c = param_2;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x16:\n    pcVar11 = (code *)0x1e212;\n    break;\n  case 0x17:\n    pcVar11 = (code *)(uint)(DAT_0014925c == 0);\n    break;\n  case 0x18:\n    *(int *)(param_2 + 0x98) = param_3;\n    pcVar11 = (code *)0x0;\n    break;\n  case 0x19:\n    FUN_000197c0(*(undefined4 *)(param_2 + 0xc));\n    cVar3 = (code)FUN_00027d70();\n    param_2[0xa0] = cVar3;\n    cVar3 = (code)(param_4 & 1);\n    param_2[0xa1] = cVar3;\n    param_2[0xa2] = (code)((byte)param_2[0xa2] & 0xfd | (char)cVar3 * '\x02');\n    *(int *)(param_2 + 0x9c) = param_5;\n    if ((0 < param_5) && (cVar3 == (code)0x0)) {\n      FUN_00039e00();\n    }\n    FUN_000197f0(*(undefined4 *)(param_2 + 0xc));\n    pcVar11 = (code *)0x0;\n  }" ({ "{") (case_statement "case 5:\n    puVar4 = (undefined4 *)0x14a740;\n    puVar10 = (undefined4 *)&DAT_0014a860;\n    goto code_r0x000eecfc;" (case "case") (number_literal "5") (: ":") (expression_statement "puVar4 = (undefined4 *)0x14a740;" (assignment_expression "puVar4 = (undefined4 *)0x14a740" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)0x14a740" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x14a740"))) (; ";")) (expression_statement "puVar10 = (undefined4 *)&DAT_0014a860;" (assignment_expression "puVar10 = (undefined4 *)&DAT_0014a860" (identifier "puVar10") (= "=") (cast_expression "(undefined4 *)&DAT_0014a860" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&DAT_0014a860" (& "&") (identifier "DAT_0014a860")))) (; ";")) (goto_statement "goto code_r0x000eecfc;" (goto "goto") (statement_identifier "code_r0x000eecfc") (; ";"))) (case_statement "case 6:\n    puVar4 = (undefined4 *)&DAT_0014a860;\n    puVar10 = (undefined4 *)0x14a740;\ncode_r0x000eecfc:\n    for (iVar13 = 0x40; iVar13 != 0; iVar13 = iVar13 + -1) {\n      *puVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      puVar4 = puVar4 + 1;\n    }\n    *(undefined2 *)puVar4 = *(undefined2 *)puVar10;\n    *(undefined1 *)((int)puVar4 + 2) = *(undefined1 *)((int)puVar10 + 2);\nLAB_000eed12:\n    pcVar11 = (code *)0x0;\n    break;" (case "case") (number_literal "6") (: ":") (expression_statement "puVar4 = (undefined4 *)&DAT_0014a860;" (assignment_expression "puVar4 = (undefined4 *)&DAT_0014a860" (identifier "puVar4") (= "=") (cast_expression "(undefined4 *)&DAT_0014a860" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&DAT_0014a860" (& "&") (identifier "DAT_0014a860")))) (; ";")) (expression_statement "puVar10 = (undefined4 *)0x14a740;" (assignment_expression "puVar10 = (undefined4 *)0x14a740" (identifier "puVar10") (= "=") (cast_expression "(undefined4 *)0x14a740" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x14a740"))) (; ";")) (labeled_statement "code_r0x000eecfc:\n    for (iVar13 = 0x40; iVar13 != 0; iVar13 = iVar13 + -1) {\n      *puVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      puVar4 = puVar4 + 1;\n    }" (statement_identifier "code_r0x000eecfc") (: ":") (for_statement "for (iVar13 = 0x40; iVar13 != 0; iVar13 = iVar13 + -1) {\n      *puVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      puVar4 = puVar4 + 1;\n    }" (for "for") (( "(") (assignment_expression "iVar13 = 0x40" (identifier "iVar13") (= "=") (number_literal "0x40")) (; ";") (binary_expression "iVar13 != 0" (identifier "iVar13") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "iVar13 = iVar13 + -1" (identifier "iVar13") (= "=") (binary_expression "iVar13 + -1" (identifier "iVar13") (+ "+") (number_literal "-1"))) () ")") (compound_statement "{\n      *puVar4 = *puVar10;\n      puVar10 = puVar10 + 1;\n      puVar4 = puVar4 + 1;\n    }" ({ "{") (expression_statement "*puVar4 = *puVar10;" (assignment_expression "*puVar4 = *puVar10" (pointer_expression "*puVar4" (* "*") (identifier "puVar4")) (= "=") (pointer_expression "*puVar10" (* "*") (identifier "puVar10"))) (; ";")) (expression_statement "puVar10 = puVar10 + 1;" (assignment_expression "puVar10 = puVar10 + 1" (identifier "puVar10") (= "=") (binary_expression "puVar10 + 1" (identifier "puVar10") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "puVar4 = puVar4 + 1;" (assignment_expression "puVar4 = puVar4 + 1" (identifier "puVar4") (= "=") (binary_expression "puVar4 + 1" (identifier "puVar4") (+ "+") (number_literal "1"))) (; ";")) (} "}")))) (expression_statement "*(undefined2 *)puVar4 = *(undefined2 *)puVar10;" (assignment_expression "*(undefined2 *)puVar4 = *(undefined2 *)puVar10" (pointer_expression "*(undefined2 *)puVar4" (* "*") (cast_expression "(undefined2 *)puVar4" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar4"))) (= "=") (pointer_expression "*(undefined2 *)puVar10" (* "*") (cast_expression "(undefined2 *)puVar10" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar10")))) (; ";")) (expression_statement "*(undefined1 *)((int)puVar4 + 2) = *(undefined1 *)((int)puVar10 + 2);" (assignment_expression "*(undefined1 *)((int)puVar4 + 2) = *(undefined1 *)((int)puVar10 + 2)" (pointer_expression "*(undefined1 *)((int)puVar4 + 2)" (* "*") (cast_expression "(undefined1 *)((int)puVar4 + 2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar4 + 2)" (( "(") (binary_expression "(int)puVar4 + 2" (cast_expression "(int)puVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar4")) (+ "+") (number_literal "2")) () ")")))) (= "=") (pointer_expression "*(undefined1 *)((int)puVar10 + 2)" (* "*") (cast_expression "(undefined1 *)((int)puVar10 + 2)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)puVar10 + 2)" (( "(") (binary_expression "(int)puVar10 + 2" (cast_expression "(int)puVar10" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "puVar10")) (+ "+") (number_literal "2")) () ")"))))) (; ";")) (labeled_statement "LAB_000eed12:\n    pcVar11 = (code *)0x0;" (statement_identifier "LAB_000eed12") (: ":") (expression_statement "pcVar11 = (code *)0x0;" (assignment_expression "pcVar11 = (code *)0x0" (identifier "pcVar11") (= "=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 7:\n    pcVar11 = (code *)0x0;\n    FUN_00077d40(0,0);\n    break;" (case "case") (number_literal "7") (: ":") (expression_statement "pcVar11 = (code *)0x0;" (assignment_expression "pcVar11 = (code *)0x0" (identifier "pcVar11") (= "=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "FUN_00077d40(0,0);" (call_expression "FUN_00077d40(0,0)" (identifier "FUN_00077d40") (argument_list "(0,0)" (( "(") (number_literal "0") (, ",") (number_literal "0") () ")"))) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 8:\n    piVar5 = (int *)FUN_000249a0();\n    if (piVar5 == (int *)0x0) {\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0,iStack_3c,iStack_3c);\n    }\n    else {\n      *piVar5 = (int)param_2;\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0);\n      if ((iStack_3c != 0) && (iStack_30 != 0)) {\n        iVar13 = 0;\n        do {\n          while( true ) {\n            iVar6 = iVar13 * 4;\n            uVar7 = *(uint *)(param_3 + iVar13 * 4);\n            if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }\n            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }\n            piVar1 = (int *)(param_3 + 4 + iVar6);\n            iVar6 = *piVar1 + -1;\n            *piVar1 = iVar6;\n            if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }\n            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);\n            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);\n            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));\n            if ((uVar7 & 1) != 0) break;\n            *pbVar9 = *pbVar9 & ~bVar2;\n            FUN_000211d0();\n          }\n          *pbVar9 = *pbVar9 | bVar2;\n        } while ((uVar7 == 5) || (iVar6 = FUN_00037bb0(), iVar6 == 0));\n      }\n    }\n    pcVar11 = (code *)&DAT_ffffffff;\n    goto code_r0x000ef06d;" (case "case") (number_literal "8") (: ":") (expression_statement "piVar5 = (int *)FUN_000249a0();" (assignment_expression "piVar5 = (int *)FUN_000249a0()" (identifier "piVar5") (= "=") (cast_expression "(int *)FUN_000249a0()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_000249a0()" (identifier "FUN_000249a0") (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (piVar5 == (int *)0x0) {\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0,iStack_3c,iStack_3c);\n    }\n    else {\n      *piVar5 = (int)param_2;\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0);\n      if ((iStack_3c != 0) && (iStack_30 != 0)) {\n        iVar13 = 0;\n        do {\n          while( true ) {\n            iVar6 = iVar13 * 4;\n            uVar7 = *(uint *)(param_3 + iVar13 * 4);\n            if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }\n            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }\n            piVar1 = (int *)(param_3 + 4 + iVar6);\n            iVar6 = *piVar1 + -1;\n            *piVar1 = iVar6;\n            if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }\n            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);\n            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);\n            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));\n            if ((uVar7 & 1) != 0) break;\n            *pbVar9 = *pbVar9 & ~bVar2;\n            FUN_000211d0();\n          }\n          *pbVar9 = *pbVar9 | bVar2;\n        } while ((uVar7 == 5) || (iVar6 = FUN_00037bb0(), iVar6 == 0));\n      }\n    }" (if "if") (parenthesized_expression "(piVar5 == (int *)0x0)" (( "(") (binary_expression "piVar5 == (int *)0x0" (identifier "piVar5") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0,iStack_3c,iStack_3c);\n    }" ({ "{") (expression_statement "iStack_3c = FUN_000249a0();" (assignment_expression "iStack_3c = FUN_000249a0()" (identifier "iStack_3c") (= "=") (call_expression "FUN_000249a0()" (identifier "FUN_000249a0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iStack_30 = FUN_0003f0c0(0x200,0,iStack_3c,iStack_3c);" (assignment_expression "iStack_30 = FUN_0003f0c0(0x200,0,iStack_3c,iStack_3c)" (identifier "iStack_30") (= "=") (call_expression "FUN_0003f0c0(0x200,0,iStack_3c,iStack_3c)" (identifier "FUN_0003f0c0") (argument_list "(0x200,0,iStack_3c,iStack_3c)" (( "(") (number_literal "0x200") (, ",") (number_literal "0") (, ",") (identifier "iStack_3c") (, ",") (identifier "iStack_3c") () ")")))) (; ";")) (} "}")) (else_clause "else {\n      *piVar5 = (int)param_2;\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0);\n      if ((iStack_3c != 0) && (iStack_30 != 0)) {\n        iVar13 = 0;\n        do {\n          while( true ) {\n            iVar6 = iVar13 * 4;\n            uVar7 = *(uint *)(param_3 + iVar13 * 4);\n            if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }\n            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }\n            piVar1 = (int *)(param_3 + 4 + iVar6);\n            iVar6 = *piVar1 + -1;\n            *piVar1 = iVar6;\n            if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }\n            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);\n            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);\n            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));\n            if ((uVar7 & 1) != 0) break;\n            *pbVar9 = *pbVar9 & ~bVar2;\n            FUN_000211d0();\n          }\n          *pbVar9 = *pbVar9 | bVar2;\n        } while ((uVar7 == 5) || (iVar6 = FUN_00037bb0(), iVar6 == 0));\n      }\n    }" (else "else") (compound_statement "{\n      *piVar5 = (int)param_2;\n      iStack_3c = FUN_000249a0();\n      iStack_30 = FUN_0003f0c0(0x200,0);\n      if ((iStack_3c != 0) && (iStack_30 != 0)) {\n        iVar13 = 0;\n        do {\n          while( true ) {\n            iVar6 = iVar13 * 4;\n            uVar7 = *(uint *)(param_3 + iVar13 * 4);\n            if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }\n            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }\n            piVar1 = (int *)(param_3 + 4 + iVar6);\n            iVar6 = *piVar1 + -1;\n            *piVar1 = iVar6;\n            if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }\n            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);\n            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);\n            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));\n            if ((uVar7 & 1) != 0) break;\n            *pbVar9 = *pbVar9 & ~bVar2;\n            FUN_000211d0();\n          }\n          *pbVar9 = *pbVar9 | bVar2;\n        } while ((uVar7 == 5) || (iVar6 = FUN_00037bb0(), iVar6 == 0));\n      }\n    }" ({ "{") (expression_statement "*piVar5 = (int)param_2;" (assignment_expression "*piVar5 = (int)param_2" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (= "=") (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2"))) (; ";")) (expression_statement "iStack_3c = FUN_000249a0();" (assignment_expression "iStack_3c = FUN_000249a0()" (identifier "iStack_3c") (= "=") (call_expression "FUN_000249a0()" (identifier "FUN_000249a0") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iStack_30 = FUN_0003f0c0(0x200,0);" (assignment_expression "iStack_30 = FUN_0003f0c0(0x200,0)" (identifier "iStack_30") (= "=") (call_expression "FUN_0003f0c0(0x200,0)" (identifier "FUN_0003f0c0") (argument_list "(0x200,0)" (( "(") (number_literal "0x200") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if ((iStack_3c != 0) && (iStack_30 != 0)) {\n        iVar13 = 0;\n        do {\n          while( true ) {\n            iVar6 = iVar13 * 4;\n            uVar7 = *(uint *)(param_3 + iVar13 * 4);\n            if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }\n            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }\n            piVar1 = (int *)(param_3 + 4 + iVar6);\n            iVar6 = *piVar1 + -1;\n            *piVar1 = iVar6;\n            if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }\n            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);\n            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);\n            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));\n            if ((uVar7 & 1) != 0) break;\n            *pbVar9 = *pbVar9 & ~bVar2;\n            FUN_000211d0();\n          }\n          *pbVar9 = *pbVar9 | bVar2;\n        } while ((uVar7 == 5) || (iVar6 = FUN_00037bb0(), iVar6 == 0));\n      }" (if "if") (parenthesized_expression "((iStack_3c != 0) && (iStack_30 != 0))" (( "(") (binary_expression "(iStack_3c != 0) && (iStack_30 != 0)" (parenthesized_expression "(iStack_3c != 0)" (( "(") (binary_expression "iStack_3c != 0" (identifier "iStack_3c") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iStack_30 != 0)" (( "(") (binary_expression "iStack_30 != 0" (identifier "iStack_30") (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n        iVar13 = 0;\n        do {\n          while( true ) {\n            iVar6 = iVar13 * 4;\n            uVar7 = *(uint *)(param_3 + iVar13 * 4);\n            if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }\n            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }\n            piVar1 = (int *)(param_3 + 4 + iVar6);\n            iVar6 = *piVar1 + -1;\n            *piVar1 = iVar6;\n            if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }\n            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);\n            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);\n            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));\n            if ((uVar7 & 1) != 0) break;\n            *pbVar9 = *pbVar9 & ~bVar2;\n            FUN_000211d0();\n          }\n          *pbVar9 = *pbVar9 | bVar2;\n        } while ((uVar7 == 5) || (iVar6 = FUN_00037bb0(), iVar6 == 0));\n      }" ({ "{") (expression_statement "iVar13 = 0;" (assignment_expression "iVar13 = 0" (identifier "iVar13") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n          while( true ) {\n            iVar6 = iVar13 * 4;\n            uVar7 = *(uint *)(param_3 + iVar13 * 4);\n            if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }\n            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }\n            piVar1 = (int *)(param_3 + 4 + iVar6);\n            iVar6 = *piVar1 + -1;\n            *piVar1 = iVar6;\n            if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }\n            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);\n            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);\n            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));\n            if ((uVar7 & 1) != 0) break;\n            *pbVar9 = *pbVar9 & ~bVar2;\n            FUN_000211d0();\n          }\n          *pbVar9 = *pbVar9 | bVar2;\n        } while ((uVar7 == 5) || (iVar6 = FUN_00037bb0(), iVar6 == 0));" (do "do") (compound_statement "{\n          while( true ) {\n            iVar6 = iVar13 * 4;\n            uVar7 = *(uint *)(param_3 + iVar13 * 4);\n            if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }\n            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }\n            piVar1 = (int *)(param_3 + 4 + iVar6);\n            iVar6 = *piVar1 + -1;\n            *piVar1 = iVar6;\n            if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }\n            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);\n            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);\n            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));\n            if ((uVar7 & 1) != 0) break;\n            *pbVar9 = *pbVar9 & ~bVar2;\n            FUN_000211d0();\n          }\n          *pbVar9 = *pbVar9 | bVar2;\n        }" ({ "{") (while_statement "while( true ) {\n            iVar6 = iVar13 * 4;\n            uVar7 = *(uint *)(param_3 + iVar13 * 4);\n            if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }\n            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }\n            piVar1 = (int *)(param_3 + 4 + iVar6);\n            iVar6 = *piVar1 + -1;\n            *piVar1 = iVar6;\n            if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }\n            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);\n            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);\n            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));\n            if ((uVar7 & 1) != 0) break;\n            *pbVar9 = *pbVar9 & ~bVar2;\n            FUN_000211d0();\n          }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n            iVar6 = iVar13 * 4;\n            uVar7 = *(uint *)(param_3 + iVar13 * 4);\n            if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }\n            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }\n            piVar1 = (int *)(param_3 + 4 + iVar6);\n            iVar6 = *piVar1 + -1;\n            *piVar1 = iVar6;\n            if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }\n            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);\n            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);\n            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));\n            if ((uVar7 & 1) != 0) break;\n            *pbVar9 = *pbVar9 & ~bVar2;\n            FUN_000211d0();\n          }" ({ "{") (expression_statement "iVar6 = iVar13 * 4;" (assignment_expression "iVar6 = iVar13 * 4" (identifier "iVar6") (= "=") (binary_expression "iVar13 * 4" (identifier "iVar13") (* "*") (number_literal "4"))) (; ";")) (expression_statement "uVar7 = *(uint *)(param_3 + iVar13 * 4);" (assignment_expression "uVar7 = *(uint *)(param_3 + iVar13 * 4)" (identifier "uVar7") (= "=") (pointer_expression "*(uint *)(param_3 + iVar13 * 4)" (* "*") (cast_expression "(uint *)(param_3 + iVar13 * 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + iVar13 * 4)" (( "(") (binary_expression "param_3 + iVar13 * 4" (identifier "param_3") (+ "+") (binary_expression "iVar13 * 4" (identifier "iVar13") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (if_statement "if (uVar7 == 0) {\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }" (if "if") (parenthesized_expression "(uVar7 == 0)" (( "(") (binary_expression "uVar7 == 0" (identifier "uVar7") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n              iVar13 = FUN_00029980();\n              iVar6 = FUN_00029980();\n              pcStack_24 = (code *)0x1;\n              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);\n              pcVar11 = pcVar12;\n              if ((int)param_2 < 1) goto code_r0x000ef06d;\n              goto code_r0x000ef13b;\n            }" ({ "{") (expression_statement "iVar13 = FUN_00029980();" (assignment_expression "iVar13 = FUN_00029980()" (identifier "iVar13") (= "=") (call_expression "FUN_00029980()" (identifier "FUN_00029980") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar6 = FUN_00029980();" (assignment_expression "iVar6 = FUN_00029980()" (identifier "iVar6") (= "=") (call_expression "FUN_00029980()" (identifier "FUN_00029980") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "pcStack_24 = (code *)0x1;" (assignment_expression "pcStack_24 = (code *)0x1" (identifier "pcStack_24") (= "=") (cast_expression "(code *)0x1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x1"))) (; ";")) (expression_statement "pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);" (assignment_expression "pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6)" (identifier "pcVar12") (= "=") (cast_expression "(code *)((*piVar5 - (int)param_2) + iVar13 + iVar6)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((*piVar5 - (int)param_2) + iVar13 + iVar6)" (( "(") (binary_expression "(*piVar5 - (int)param_2) + iVar13 + iVar6" (binary_expression "(*piVar5 - (int)param_2) + iVar13" (parenthesized_expression "(*piVar5 - (int)param_2)" (( "(") (binary_expression "*piVar5 - (int)param_2" (pointer_expression "*piVar5" (* "*") (identifier "piVar5")) (- "-") (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2"))) () ")")) (+ "+") (identifier "iVar13")) (+ "+") (identifier "iVar6")) () ")")))) (; ";")) (expression_statement "pcVar11 = pcVar12;" (assignment_expression "pcVar11 = pcVar12" (identifier "pcVar11") (= "=") (identifier "pcVar12")) (; ";")) (if_statement "if ((int)param_2 < 1) goto code_r0x000ef06d;" (if "if") (parenthesized_expression "((int)param_2 < 1)" (( "(") (binary_expression "(int)param_2 < 1" (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")) (< "<") (number_literal "1")) () ")")) (goto_statement "goto code_r0x000ef06d;" (goto "goto") (statement_identifier "code_r0x000ef06d") (; ";"))) (goto_statement "goto code_r0x000ef13b;" (goto "goto") (statement_identifier "code_r0x000ef13b") (; ";")) (} "}"))) (if_statement "if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }\n            else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }" (if "if") (parenthesized_expression "((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0))" (( "(") (binary_expression "(uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)" (parenthesized_expression "(uVar7 < 6)" (( "(") (binary_expression "uVar7 < 6" (identifier "uVar7") (< "<") (number_literal "6")) () ")")) (&& "&&") (parenthesized_expression "((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)" (( "(") (binary_expression "(1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0" (parenthesized_expression "(1 << ((byte)uVar7 & 0x1f) & 0x26U)" (( "(") (binary_expression "1 << ((byte)uVar7 & 0x1f) & 0x26U" (binary_expression "1 << ((byte)uVar7 & 0x1f)" (number_literal "1") (<< "<<") (parenthesized_expression "((byte)uVar7 & 0x1f)" (( "(") (binary_expression "(byte)uVar7 & 0x1f" (cast_expression "(byte)uVar7" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "uVar7")) (& "&") (number_literal "0x1f")) () ")"))) (& "&") (number_literal "0x26U")) () ")")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n              piVar1 = (int *)(param_3 + 8 + iVar6);\n              iVar8 = *piVar1;\n              pcStack_24 = (code *)(iVar8 + -1);\n              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);\n              iVar8 = 4;\n            }" ({ "{") (expression_statement "piVar1 = (int *)(param_3 + 8 + iVar6);" (assignment_expression "piVar1 = (int *)(param_3 + 8 + iVar6)" (identifier "piVar1") (= "=") (cast_expression "(int *)(param_3 + 8 + iVar6)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 8 + iVar6)" (( "(") (binary_expression "param_3 + 8 + iVar6" (binary_expression "param_3 + 8" (identifier "param_3") (+ "+") (number_literal "8")) (+ "+") (identifier "iVar6")) () ")")))) (; ";")) (expression_statement "iVar8 = *piVar1;" (assignment_expression "iVar8 = *piVar1" (identifier "iVar8") (= "=") (pointer_expression "*piVar1" (* "*") (identifier "piVar1"))) (; ";")) (expression_statement "pcStack_24 = (code *)(iVar8 + -1);" (assignment_expression "pcStack_24 = (code *)(iVar8 + -1)" (identifier "pcStack_24") (= "=") (cast_expression "(code *)(iVar8 + -1)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar8 + -1)" (( "(") (binary_expression "iVar8 + -1" (identifier "iVar8") (+ "+") (number_literal "-1")) () ")")))) (; ";")) (expression_statement "*piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);" (assignment_expression "*piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6)" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (binary_expression "iVar8 + *(int *)(param_3 + 0xc + iVar6)" (identifier "iVar8") (+ "+") (pointer_expression "*(int *)(param_3 + 0xc + iVar6)" (* "*") (cast_expression "(int *)(param_3 + 0xc + iVar6)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 0xc + iVar6)" (( "(") (binary_expression "param_3 + 0xc + iVar6" (binary_expression "param_3 + 0xc" (identifier "param_3") (+ "+") (number_literal "0xc")) (+ "+") (identifier "iVar6")) () ")")))))) (; ";")) (expression_statement "iVar8 = 4;" (assignment_expression "iVar8 = 4" (identifier "iVar8") (= "=") (number_literal "4")) (; ";")) (} "}")) (else_clause "else {\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }" (else "else") (compound_statement "{\n              FUN_00077d40(4,&pcStack_24);\n              iVar8 = 2;\n            }" ({ "{") (expression_statement "FUN_00077d40(4,&pcStack_24);" (call_expression "FUN_00077d40(4,&pcStack_24)" (identifier "FUN_00077d40") (argument_list "(4,&pcStack_24)" (( "(") (number_literal "4") (, ",") (pointer_expression "&pcStack_24" (& "&") (identifier "pcStack_24")) () ")"))) (; ";")) (expression_statement "iVar8 = 2;" (assignment_expression "iVar8 = 2" (identifier "iVar8") (= "=") (number_literal "2")) (; ";")) (} "}")))) (expression_statement "piVar1 = (int *)(param_3 + 4 + iVar6);" (assignment_expression "piVar1 = (int *)(param_3 + 4 + iVar6)" (identifier "piVar1") (= "=") (cast_expression "(int *)(param_3 + 4 + iVar6)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + 4 + iVar6)" (( "(") (binary_expression "param_3 + 4 + iVar6" (binary_expression "param_3 + 4" (identifier "param_3") (+ "+") (number_literal "4")) (+ "+") (identifier "iVar6")) () ")")))) (; ";")) (expression_statement "iVar6 = *piVar1 + -1;" (assignment_expression "iVar6 = *piVar1 + -1" (identifier "iVar6") (= "=") (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "-1"))) (; ";")) (expression_statement "*piVar1 = iVar6;" (assignment_expression "*piVar1 = iVar6" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (identifier "iVar6")) (; ";")) (if_statement "if (iVar6 < 1) {\n              iVar13 = iVar8 + iVar13;\n            }" (if "if") (parenthesized_expression "(iVar6 < 1)" (( "(") (binary_expression "iVar6 < 1" (identifier "iVar6") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n              iVar13 = iVar8 + iVar13;\n            }" ({ "{") (expression_statement "iVar13 = iVar8 + iVar13;" (assignment_expression "iVar13 = iVar8 + iVar13" (identifier "iVar13") (= "=") (binary_expression "iVar8 + iVar13" (identifier "iVar8") (+ "+") (identifier "iVar13"))) (; ";")) (} "}"))) (expression_statement "pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2);" (assignment_expression "pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2)" (identifier "pcStack_24") (= "=") (cast_expression "(code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2)" (( "(") (binary_expression "(longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %\n                                 (longlong)(int)param_2" (call_expression "(longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff)" (call_expression "(longlong)(ulonglong)" (parenthesized_expression "(longlong)" (( "(") (identifier "longlong") () ")")) (argument_list "(ulonglong)" (( "(") (identifier "ulonglong") () ")"))) (argument_list "((uint)pcStack_24 & 0x7fffffff)" (( "(") (binary_expression "(uint)pcStack_24 & 0x7fffffff" (cast_expression "(uint)pcStack_24" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "pcStack_24")) (& "&") (number_literal "0x7fffffff")) () ")"))) (% "%") (cast_expression "(longlong)(int)param_2" (( "(") (type_descriptor "longlong" (type_identifier "longlong")) () ")") (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2")))) () ")")))) (; ";")) (expression_statement "pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);" (assignment_expression "pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c)" (identifier "pbVar9") (= "=") (cast_expression "(byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(((int)(pcStack_24 + 1) >> 3) + iStack_3c)" (( "(") (binary_expression "((int)(pcStack_24 + 1) >> 3) + iStack_3c" (parenthesized_expression "((int)(pcStack_24 + 1) >> 3)" (( "(") (binary_expression "(int)(pcStack_24 + 1) >> 3" (cast_expression "(int)(pcStack_24 + 1)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(pcStack_24 + 1)" (( "(") (binary_expression "pcStack_24 + 1" (identifier "pcStack_24") (+ "+") (number_literal "1")) () ")"))) (>> ">>") (number_literal "3")) () ")")) (+ "+") (identifier "iStack_3c")) () ")")))) (; ";")) (expression_statement "bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));" (assignment_expression "bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7))" (identifier "bVar2") (= "=") (call_expression "(byte)(1 << ((byte)(pcStack_24 + 1) & 7))" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(1 << ((byte)(pcStack_24 + 1) & 7))" (( "(") (binary_expression "1 << ((byte)(pcStack_24 + 1) & 7)" (number_literal "1") (<< "<<") (parenthesized_expression "((byte)(pcStack_24 + 1) & 7)" (( "(") (binary_expression "(byte)(pcStack_24 + 1) & 7" (call_expression "(byte)(pcStack_24 + 1)" (parenthesized_expression "(byte)" (( "(") (identifier "byte") () ")")) (argument_list "(pcStack_24 + 1)" (( "(") (binary_expression "pcStack_24 + 1" (identifier "pcStack_24") (+ "+") (number_literal "1")) () ")"))) (& "&") (number_literal "7")) () ")"))) () ")")))) (; ";")) (if_statement "if ((uVar7 & 1) != 0) break;" (if "if") (parenthesized_expression "((uVar7 & 1) != 0)" (( "(") (binary_expression "(uVar7 & 1) != 0" (parenthesized_expression "(uVar7 & 1)" (( "(") (binary_expression "uVar7 & 1" (identifier "uVar7") (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "*pbVar9 = *pbVar9 & ~bVar2;" (assignment_expression "*pbVar9 = *pbVar9 & ~bVar2" (pointer_expression "*pbVar9" (* "*") (identifier "pbVar9")) (= "=") (binary_expression "*pbVar9 & ~bVar2" (pointer_expression "*pbVar9" (* "*") (identifier "pbVar9")) (& "&") (unary_expression "~bVar2" (~ "~") (identifier "bVar2")))) (; ";")) (expression_statement "FUN_000211d0();" (call_expression "FUN_000211d0()" (identifier "FUN_000211d0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "*pbVar9 = *pbVar9 | bVar2;" (assignment_expression "*pbVar9 = *pbVar9 | bVar2" (pointer_expression "*pbVar9" (* "*") (identifier "pbVar9")) (= "=") (binary_expression "*pbVar9 | bVar2" (pointer_expression "*pbVar9" (* "*") (identifier "pbVar9")) (| "|") (identifier "bVar2"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((uVar7 == 5) || (iVar6 = FUN_00037bb0(), iVar6 == 0))" (( "(") (binary_expression "(uVar7 == 5) || (iVar6 = FUN_00037bb0(), iVar6 == 0)" (parenthesized_expression "(uVar7 == 5)" (( "(") (binary_expression "uVar7 == 5" (identifier "uVar7") (== "==") (number_literal "5")) () ")")) (|| "||") (parenthesized_expression "(iVar6 = FUN_00037bb0(), iVar6 == 0)" (( "(") (comma_expression "iVar6 = FUN_00037bb0(), iVar6 == 0" (assignment_expression "iVar6 = FUN_00037bb0()" (identifier "iVar6") (= "=") (call_expression "FUN_00037bb0()" (identifier "FUN_00037bb0") (argument_list "()" (( "(") () ")")))) (, ",") (binary_expression "iVar6 == 0" (identifier "iVar6") (== "==") (number_literal "0"))) () ")"))) () ")")) (; ";")) (} "}"))) (} "}")))) (expression_statement "pcVar11 = (code *)&DAT_ffffffff;" (assignment_expression "pcVar11 = (code *)&DAT_ffffffff" (identifier "pcVar11") (= "=") (cast_expression "(code *)&DAT_ffffffff" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&DAT_ffffffff" (& "&") (identifier "DAT_ffffffff")))) (; ";")) (goto_statement "goto code_r0x000ef06d;" (goto "goto") (statement_identifier "code_r0x000ef06d") (; ";"))) (case_statement "case 9:\n    pcVar11 = (code *)0x0;\n    DAT_00149280 = param_2;\n    if (param_2 != (code *)0x0) {\n      pcVar11 = (code *)(*param_2)(0);\n    }\n    break;" (case "case") (number_literal "9") (: ":") (expression_statement "pcVar11 = (code *)0x0;" (assignment_expression "pcVar11 = (code *)0x0" (identifier "pcVar11") (= "=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "DAT_00149280 = param_2;" (assignment_expression "DAT_00149280 = param_2" (identifier "DAT_00149280") (= "=") (identifier "param_2")) (; ";")) (if_statement "if (param_2 != (code *)0x0) {\n      pcVar11 = (code *)(*param_2)(0);\n    }" (if "if") (parenthesized_expression "(param_2 != (code *)0x0)" (( "(") (binary_expression "param_2 != (code *)0x0" (identifier "param_2") (!= "!=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      pcVar11 = (code *)(*param_2)(0);\n    }" ({ "{") (expression_statement "pcVar11 = (code *)(*param_2)(0);" (assignment_expression "pcVar11 = (code *)(*param_2)(0)" (identifier "pcVar11") (= "=") (cast_expression "(code *)(*param_2)(0)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*param_2)(0)" (parenthesized_expression "(*param_2)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) () ")")) (argument_list "(0)" (( "(") (number_literal "0") () ")"))))) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 10:\n    pcVar11 = (code *)0x0;\n    DAT_0014a974 = param_2;\n    DAT_0014a978 = param_3;\n    break;" (case "case") (number_literal "10") (: ":") (expression_statement "pcVar11 = (code *)0x0;" (assignment_expression "pcVar11 = (code *)0x0" (identifier "pcVar11") (= "=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "DAT_0014a974 = param_2;" (assignment_expression "DAT_0014a974 = param_2" (identifier "DAT_0014a974") (= "=") (identifier "param_2")) (; ";")) (expression_statement "DAT_0014a978 = param_3;" (assignment_expression "DAT_0014a978 = param_3" (identifier "DAT_0014a978") (= "=") (identifier "param_3")) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0xb:\n    if (param_2 != (code *)0x0) {\n      DAT_00149164 = param_2;\n    }\n    break;" (case "case") (number_literal "0xb") (: ":") (if_statement "if (param_2 != (code *)0x0) {\n      DAT_00149164 = param_2;\n    }" (if "if") (parenthesized_expression "(param_2 != (code *)0x0)" (( "(") (binary_expression "param_2 != (code *)0x0" (identifier "param_2") (!= "!=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      DAT_00149164 = param_2;\n    }" ({ "{") (expression_statement "DAT_00149164 = param_2;" (assignment_expression "DAT_00149164 = param_2" (identifier "DAT_00149164") (= "=") (identifier "param_2")) (; ";")) (} "}"))) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0xc:\n    pcStack_24 = (code *)0x0;\n    pcVar11 = (code *)0x0;\n    break;" (case "case") (number_literal "0xc") (: ":") (expression_statement "pcStack_24 = (code *)0x0;" (assignment_expression "pcStack_24 = (code *)0x0" (identifier "pcStack_24") (= "=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "pcVar11 = (code *)0x0;" (assignment_expression "pcVar11 = (code *)0x0" (identifier "pcVar11") (= "=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0xd:\n    pcVar11 = param_2;\n    break;" (case "case") (number_literal "0xd") (: ":") (expression_statement "pcVar11 = param_2;" (assignment_expression "pcVar11 = param_2" (identifier "pcVar11") (= "=") (identifier "param_2")) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0xe:\n    FUN_000197c0(*(undefined4 *)(param_2 + 0xc));\n    FUN_0003a660(0);\n    FUN_000197f0(*(undefined4 *)(param_2 + 0xc));\n    pcVar11 = (code *)0x0;\n    break;" (case "case") (number_literal "0xe") (: ":") (expression_statement "FUN_000197c0(*(undefined4 *)(param_2 + 0xc));" (call_expression "FUN_000197c0(*(undefined4 *)(param_2 + 0xc))" (identifier "FUN_000197c0") (argument_list "(*(undefined4 *)(param_2 + 0xc))" (( "(") (pointer_expression "*(undefined4 *)(param_2 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (expression_statement "FUN_0003a660(0);" (call_expression "FUN_0003a660(0)" (identifier "FUN_0003a660") (argument_list "(0)" (( "(") (number_literal "0") () ")"))) (; ";")) (expression_statement "FUN_000197f0(*(undefined4 *)(param_2 + 0xc));" (call_expression "FUN_000197f0(*(undefined4 *)(param_2 + 0xc))" (identifier "FUN_000197f0") (argument_list "(*(undefined4 *)(param_2 + 0xc))" (( "(") (pointer_expression "*(undefined4 *)(param_2 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (expression_statement "pcVar11 = (code *)0x0;" (assignment_expression "pcVar11 = (code *)0x0" (identifier "pcVar11") (= "=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0xf:\n    *(short *)(param_2 + 0x48) = (short)param_3;\n    pcVar11 = (code *)0x0;\n    break;" (case "case") (number_literal "0xf") (: ":") (expression_statement "*(short *)(param_2 + 0x48) = (short)param_3;" (assignment_expression "*(short *)(param_2 + 0x48) = (short)param_3" (pointer_expression "*(short *)(param_2 + 0x48)" (* "*") (cast_expression "(short *)(param_2 + 0x48)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x48)" (( "(") (binary_expression "param_2 + 0x48" (identifier "param_2") (+ "+") (number_literal "0x48")) () ")")))) (= "=") (cast_expression "(short)param_3" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (identifier "param_3"))) (; ";")) (expression_statement "pcVar11 = (code *)0x0;" (assignment_expression "pcVar11 = (code *)0x0" (identifier "pcVar11") (= "=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "default:\n    goto LAB_000eed12;" (default "default") (: ":") (goto_statement "goto LAB_000eed12;" (goto "goto") (statement_identifier "LAB_000eed12") (; ";"))) (case_statement "case 0x11:\n    DAT_00149288 = param_2;\n    pcVar11 = (code *)0x0;\n    break;" (case "case") (number_literal "0x11") (: ":") (expression_statement "DAT_00149288 = param_2;" (assignment_expression "DAT_00149288 = param_2" (identifier "DAT_00149288") (= "=") (identifier "param_2")) (; ";")) (expression_statement "pcVar11 = (code *)0x0;" (assignment_expression "pcVar11 = (code *)0x0" (identifier "pcVar11") (= "=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x12:\n    DAT_00149284 = param_2;\n    pcVar11 = (code *)0x0;\n    break;" (case "case") (number_literal "0x12") (: ":") (expression_statement "DAT_00149284 = param_2;" (assignment_expression "DAT_00149284 = param_2" (identifier "DAT_00149284") (= "=") (identifier "param_2")) (; ";")) (expression_statement "pcVar11 = (code *)0x0;" (assignment_expression "pcVar11 = (code *)0x0" (identifier "pcVar11") (= "=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x13:\n    pcRam0014928c = param_2;\n    pcVar11 = (code *)0x0;\n    break;" (case "case") (number_literal "0x13") (: ":") (expression_statement "pcRam0014928c = param_2;" (assignment_expression "pcRam0014928c = param_2" (identifier "pcRam0014928c") (= "=") (identifier "param_2")) (; ";")) (expression_statement "pcVar11 = (code *)0x0;" (assignment_expression "pcVar11 = (code *)0x0" (identifier "pcVar11") (= "=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x14:\n    pcRam0014919c = param_2;\n    pcVar11 = (code *)0x0;\n    break;" (case "case") (number_literal "0x14") (: ":") (expression_statement "pcRam0014919c = param_2;" (assignment_expression "pcRam0014919c = param_2" (identifier "pcRam0014919c") (= "=") (identifier "param_2")) (; ";")) (expression_statement "pcVar11 = (code *)0x0;" (assignment_expression "pcVar11 = (code *)0x0" (identifier "pcVar11") (= "=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x16:\n    pcVar11 = (code *)0x1e212;\n    break;" (case "case") (number_literal "0x16") (: ":") (expression_statement "pcVar11 = (code *)0x1e212;" (assignment_expression "pcVar11 = (code *)0x1e212" (identifier "pcVar11") (= "=") (cast_expression "(code *)0x1e212" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x1e212"))) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x17:\n    pcVar11 = (code *)(uint)(DAT_0014925c == 0);\n    break;" (case "case") (number_literal "0x17") (: ":") (expression_statement "pcVar11 = (code *)(uint)(DAT_0014925c == 0);" (assignment_expression "pcVar11 = (code *)(uint)(DAT_0014925c == 0)" (identifier "pcVar11") (= "=") (cast_expression "(code *)(uint)(DAT_0014925c == 0)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(uint)(DAT_0014925c == 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(DAT_0014925c == 0)" (( "(") (binary_expression "DAT_0014925c == 0" (identifier "DAT_0014925c") (== "==") (number_literal "0")) () ")"))))) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x18:\n    *(int *)(param_2 + 0x98) = param_3;\n    pcVar11 = (code *)0x0;\n    break;" (case "case") (number_literal "0x18") (: ":") (expression_statement "*(int *)(param_2 + 0x98) = param_3;" (assignment_expression "*(int *)(param_2 + 0x98) = param_3" (pointer_expression "*(int *)(param_2 + 0x98)" (* "*") (cast_expression "(int *)(param_2 + 0x98)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x98)" (( "(") (binary_expression "param_2 + 0x98" (identifier "param_2") (+ "+") (number_literal "0x98")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (expression_statement "pcVar11 = (code *)0x0;" (assignment_expression "pcVar11 = (code *)0x0" (identifier "pcVar11") (= "=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (break_statement "break;" (break "break") (; ";"))) (case_statement "case 0x19:\n    FUN_000197c0(*(undefined4 *)(param_2 + 0xc));\n    cVar3 = (code)FUN_00027d70();\n    param_2[0xa0] = cVar3;\n    cVar3 = (code)(param_4 & 1);\n    param_2[0xa1] = cVar3;\n    param_2[0xa2] = (code)((byte)param_2[0xa2] & 0xfd | (char)cVar3 * '\x02');\n    *(int *)(param_2 + 0x9c) = param_5;\n    if ((0 < param_5) && (cVar3 == (code)0x0)) {\n      FUN_00039e00();\n    }\n    FUN_000197f0(*(undefined4 *)(param_2 + 0xc));\n    pcVar11 = (code *)0x0;" (case "case") (number_literal "0x19") (: ":") (expression_statement "FUN_000197c0(*(undefined4 *)(param_2 + 0xc));" (call_expression "FUN_000197c0(*(undefined4 *)(param_2 + 0xc))" (identifier "FUN_000197c0") (argument_list "(*(undefined4 *)(param_2 + 0xc))" (( "(") (pointer_expression "*(undefined4 *)(param_2 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (expression_statement "cVar3 = (code)FUN_00027d70();" (assignment_expression "cVar3 = (code)FUN_00027d70()" (identifier "cVar3") (= "=") (cast_expression "(code)FUN_00027d70()" (( "(") (type_descriptor "code" (type_identifier "code")) () ")") (call_expression "FUN_00027d70()" (identifier "FUN_00027d70") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "param_2[0xa0] = cVar3;" (assignment_expression "param_2[0xa0] = cVar3" (subscript_expression "param_2[0xa0]" (identifier "param_2") ([ "[") (number_literal "0xa0") (] "]")) (= "=") (identifier "cVar3")) (; ";")) (expression_statement "cVar3 = (code)(param_4 & 1);" (assignment_expression "cVar3 = (code)(param_4 & 1)" (identifier "cVar3") (= "=") (call_expression "(code)(param_4 & 1)" (parenthesized_expression "(code)" (( "(") (identifier "code") () ")")) (argument_list "(param_4 & 1)" (( "(") (binary_expression "param_4 & 1" (identifier "param_4") (& "&") (number_literal "1")) () ")")))) (; ";")) (expression_statement "param_2[0xa1] = cVar3;" (assignment_expression "param_2[0xa1] = cVar3" (subscript_expression "param_2[0xa1]" (identifier "param_2") ([ "[") (number_literal "0xa1") (] "]")) (= "=") (identifier "cVar3")) (; ";")) (expression_statement "param_2[0xa2] = (code)((byte)param_2[0xa2] & 0xfd | (char)cVar3 * '\x02');" (assignment_expression "param_2[0xa2] = (code)((byte)param_2[0xa2] & 0xfd | (char)cVar3 * '\x02')" (subscript_expression "param_2[0xa2]" (identifier "param_2") ([ "[") (number_literal "0xa2") (] "]")) (= "=") (call_expression "(code)((byte)param_2[0xa2] & 0xfd | (char)cVar3 * '\x02')" (parenthesized_expression "(code)" (( "(") (identifier "code") () ")")) (argument_list "((byte)param_2[0xa2] & 0xfd | (char)cVar3 * '\x02')" (( "(") (binary_expression "(byte)param_2[0xa2] & 0xfd | (char)cVar3 * '\x02'" (binary_expression "(byte)param_2[0xa2] & 0xfd" (cast_expression "(byte)param_2[0xa2]" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (subscript_expression "param_2[0xa2]" (identifier "param_2") ([ "[") (number_literal "0xa2") (] "]"))) (& "&") (number_literal "0xfd")) (| "|") (binary_expression "(char)cVar3 * '\x02'" (cast_expression "(char)cVar3" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "cVar3")) (* "*") (char_literal "'\x02'" (' "'") (escape_sequence "\x02") (' "'")))) () ")")))) (; ";")) (expression_statement "*(int *)(param_2 + 0x9c) = param_5;" (assignment_expression "*(int *)(param_2 + 0x9c) = param_5" (pointer_expression "*(int *)(param_2 + 0x9c)" (* "*") (cast_expression "(int *)(param_2 + 0x9c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x9c)" (( "(") (binary_expression "param_2 + 0x9c" (identifier "param_2") (+ "+") (number_literal "0x9c")) () ")")))) (= "=") (identifier "param_5")) (; ";")) (if_statement "if ((0 < param_5) && (cVar3 == (code)0x0)) {\n      FUN_00039e00();\n    }" (if "if") (parenthesized_expression "((0 < param_5) && (cVar3 == (code)0x0))" (( "(") (binary_expression "(0 < param_5) && (cVar3 == (code)0x0)" (parenthesized_expression "(0 < param_5)" (( "(") (binary_expression "0 < param_5" (number_literal "0") (< "<") (identifier "param_5")) () ")")) (&& "&&") (parenthesized_expression "(cVar3 == (code)0x0)" (( "(") (binary_expression "cVar3 == (code)0x0" (identifier "cVar3") (== "==") (cast_expression "(code)0x0" (( "(") (type_descriptor "code" (type_identifier "code")) () ")") (number_literal "0x0"))) () ")"))) () ")")) (compound_statement "{\n      FUN_00039e00();\n    }" ({ "{") (expression_statement "FUN_00039e00();" (call_expression "FUN_00039e00()" (identifier "FUN_00039e00") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_000197f0(*(undefined4 *)(param_2 + 0xc));" (call_expression "FUN_000197f0(*(undefined4 *)(param_2 + 0xc))" (identifier "FUN_000197f0") (argument_list "(*(undefined4 *)(param_2 + 0xc))" (( "(") (pointer_expression "*(undefined4 *)(param_2 + 0xc)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")")))) () ")"))) (; ";")) (expression_statement "pcVar11 = (code *)0x0;" (assignment_expression "pcVar11 = (code *)0x0" (identifier "pcVar11") (= "=") (cast_expression "(code *)0x0" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";"))) (} "}"))) (labeled_statement "LAB_000eecd0:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar11;\n  }" (statement_identifier "LAB_000eecd0") (: ":") (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return pcVar11;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return pcVar11;\n  }" ({ "{") (return_statement "return pcVar11;" (return "return") (identifier "pcVar11") (; ";")) (} "}")))) (expression_statement "FUN_000f4bf0();" (call_expression "FUN_000f4bf0()" (identifier "FUN_000f4bf0") (argument_list "()" (( "(") () ")"))) (; ";")) (while_statement "while (pcStack_24 = pcVar11 + 1, pcVar11 = pcVar12, (int)pcStack_24 <= (int)param_2) {\ncode_r0x000ef13b:\n    pcVar11 = pcStack_24;\n    uVar7 = FUN_00029980();\n    if (uVar7 != ((int)(uint)*(byte *)(iStack_3c + ((int)pcVar11 >> 3)) >> ((byte)pcVar11 & 7) & 1U)\n       ) break;\n  }" (while "while") (parenthesized_expression "(pcStack_24 = pcVar11 + 1, pcVar11 = pcVar12, (int)pcStack_24 <= (int)param_2)" (( "(") (comma_expression "pcStack_24 = pcVar11 + 1, pcVar11 = pcVar12, (int)pcStack_24 <= (int)param_2" (assignment_expression "pcStack_24 = pcVar11 + 1" (identifier "pcStack_24") (= "=") (binary_expression "pcVar11 + 1" (identifier "pcVar11") (+ "+") (number_literal "1"))) (, ",") (comma_expression "pcVar11 = pcVar12, (int)pcStack_24 <= (int)param_2" (assignment_expression "pcVar11 = pcVar12" (identifier "pcVar11") (= "=") (identifier "pcVar12")) (, ",") (binary_expression "(int)pcStack_24 <= (int)param_2" (cast_expression "(int)pcStack_24" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcStack_24")) (<= "<=") (cast_expression "(int)param_2" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_2"))))) () ")")) (compound_statement "{\ncode_r0x000ef13b:\n    pcVar11 = pcStack_24;\n    uVar7 = FUN_00029980();\n    if (uVar7 != ((int)(uint)*(byte *)(iStack_3c + ((int)pcVar11 >> 3)) >> ((byte)pcVar11 & 7) & 1U)\n       ) break;\n  }" ({ "{") (labeled_statement "code_r0x000ef13b:\n    pcVar11 = pcStack_24;" (statement_identifier "code_r0x000ef13b") (: ":") (expression_statement "pcVar11 = pcStack_24;" (assignment_expression "pcVar11 = pcStack_24" (identifier "pcVar11") (= "=") (identifier "pcStack_24")) (; ";"))) (expression_statement "uVar7 = FUN_00029980();" (assignment_expression "uVar7 = FUN_00029980()" (identifier "uVar7") (= "=") (call_expression "FUN_00029980()" (identifier "FUN_00029980") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (uVar7 != ((int)(uint)*(byte *)(iStack_3c + ((int)pcVar11 >> 3)) >> ((byte)pcVar11 & 7) & 1U)\n       ) break;" (if "if") (parenthesized_expression "(uVar7 != ((int)(uint)*(byte *)(iStack_3c + ((int)pcVar11 >> 3)) >> ((byte)pcVar11 & 7) & 1U)\n       )" (( "(") (binary_expression "uVar7 != ((int)(uint)*(byte *)(iStack_3c + ((int)pcVar11 >> 3)) >> ((byte)pcVar11 & 7) & 1U)" (identifier "uVar7") (!= "!=") (parenthesized_expression "((int)(uint)*(byte *)(iStack_3c + ((int)pcVar11 >> 3)) >> ((byte)pcVar11 & 7) & 1U)" (( "(") (binary_expression "(int)(uint)*(byte *)(iStack_3c + ((int)pcVar11 >> 3)) >> ((byte)pcVar11 & 7) & 1U" (binary_expression "(int)(uint)*(byte *)(iStack_3c + ((int)pcVar11 >> 3)) >> ((byte)pcVar11 & 7)" (binary_expression "(int)(uint)*(byte *)(iStack_3c + ((int)pcVar11 >> 3))" (cast_expression "(int)(uint)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")"))) (* "*") (cast_expression "(byte *)(iStack_3c + ((int)pcVar11 >> 3))" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iStack_3c + ((int)pcVar11 >> 3))" (( "(") (binary_expression "iStack_3c + ((int)pcVar11 >> 3)" (identifier "iStack_3c") (+ "+") (parenthesized_expression "((int)pcVar11 >> 3)" (( "(") (binary_expression "(int)pcVar11 >> 3" (cast_expression "(int)pcVar11" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "pcVar11")) (>> ">>") (number_literal "3")) () ")"))) () ")")))) (>> ">>") (parenthesized_expression "((byte)pcVar11 & 7)" (( "(") (binary_expression "(byte)pcVar11 & 7" (cast_expression "(byte)pcVar11" (( "(") (type_descriptor "byte" (type_identifier "byte")) () ")") (identifier "pcVar11")) (& "&") (number_literal "7")) () ")"))) (& "&") (number_literal "1U")) () ")"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (} "}"))) (labeled_statement "code_r0x000ef06d:\n  FUN_00024cc0(iStack_30);" (statement_identifier "code_r0x000ef06d") (: ":") (expression_statement "FUN_00024cc0(iStack_30);" (call_expression "FUN_00024cc0(iStack_30)" (identifier "FUN_00024cc0") (argument_list "(iStack_30)" (( "(") (identifier "iStack_30") () ")"))) (; ";"))) (expression_statement "FUN_00024cc0(iStack_3c);" (call_expression "FUN_00024cc0(iStack_3c)" (identifier "FUN_00024cc0") (argument_list "(iStack_3c)" (( "(") (identifier "iStack_3c") () ")"))) (; ";")) (expression_statement "FUN_00025a40();" (call_expression "FUN_00025a40()" (identifier "FUN_00025a40") (argument_list "()" (( "(") () ")"))) (; ";")) (goto_statement "goto LAB_000eecd0;" (goto "goto") (statement_identifier "LAB_000eecd0") (; ";")) (} "}")))

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

int function_1(int op,...)

{
  type_1 uVar1;
  type_1 uVar2;
  type_1 uVar3;
  type_2 var_17;
  type_3 xBenignEnd;
  type_4 *psVar5;
  type_5 *var_5;
  int var_14;
  int var_12;
  int var_2;
  type_6 var_10;
  int var_13;
  type_2 *pbVar11;
  int x_1;
  type_4 *psVar12;
  type_7 *psVar13;
  type_7 *psVar14;
  int x_2;
  int var_1;
  type_7 *var_19;
  type_8 *var_9;
  type_2 var_24;
  int var_25;
  type_9 in_stack_ffffffb4;
  void *var_7;
  void *var_8;
  int var_15;
  int var_27;
  type_10 uStack_14;
  
  psVar13 = (type_7 *)sqlite3PendingByte;
  uStack_14 = 0xeec89;
  var_27 = *(int *)(var_1 + 0x14);
  switch(op) {
  case 5:
    psVar5 = &sqlite3SavedPrng;
    psVar12 = &sqlite3Prng;
    goto LAB_000eecfc;
  case 6:
    psVar5 = &sqlite3Prng;
    psVar12 = &sqlite3SavedPrng;
LAB_000eecfc:
    for (var_2 = 0x40; var_2 != 0; var_2 = var_2 + -1) {
      uVar1 = psVar12->var_15;
      uVar2 = psVar12->j;
      uVar3 = psVar12->s[0];
      psVar5->isInit = psVar12->isInit;
      psVar5->var_15 = uVar1;
      psVar5->j = uVar2;
      psVar5->s[0] = uVar3;
      psVar12 = (type_4 *)(psVar12->s + 1);
      psVar5 = (type_4 *)(psVar5->s + 1);
    }
    uVar1 = psVar12->var_15;
    psVar5->isInit = psVar12->isInit;
    psVar5->var_15 = uVar1;
    psVar5->j = psVar12->j;
_L55077:
    psVar13 = (type_7 *)0x0;
    break;
  case 7:
    psVar13 = (type_7 *)0x0;
    var_3(0,(void *)0x0);
    break;
  case 8:
    var_5 = (type_5 *)var_4(in_stack_ffffffb4);
    if (var_5 == (type_5 *)0x0) {
      var_7 = var_4(in_stack_ffffffb4);
      var_8 = var_6(0x200);
    }
    else {
      var_5->iSize = (type_11)var_19;
      var_7 = var_4(in_stack_ffffffb4);
      var_8 = var_6(0x200);
      if ((var_7 != (void *)0x0) && (var_8 != (void *)0x0)) {
        var_2 = 0;
        do {
          while( true ) {
            var_12 = var_2 * 4;
            var_10 = *(type_6 *)(var_9 + var_2 * 4);
            if (var_10 == 0) {
              var_2 = var_11(var_5,(type_11)((int)&var_19->pVfs + 1));
              var_12 = var_11(var_5,0);
              var_15 = 1;
              psVar14 = (type_7 *)((var_5->iSize - (int)var_19) + var_2 + var_12);
              psVar13 = psVar14;
              if ((int)var_19 < 1) goto LAB_000ef06d;
              goto LAB_000ef13b;
            }
            if ((var_10 < 6) && ((1 << ((type_2)var_10 & 0x1f) & 0x26U) != 0)) {
              var_13 = *(int *)(var_9 + var_12 + 8);
              var_15 = var_13 + -1;
              *(int *)(var_9 + var_12 + 8) =
                   var_13 + *(int *)(var_9 + var_12 + 0xc);
              var_13 = 4;
            }
            else {
              var_3(4,&var_15);
              var_13 = 2;
            }
            var_14 = *(int *)(var_9 + var_12 + 4) + -1;
            *(int *)(var_9 + var_12 + 4) = var_14;
            if (var_14 < 1) {
              var_2 = var_13 + var_2;
            }
            var_15 = (int)((type_12)(ulonglong)(var_15 & 0x7fffffff) % (type_12)(int)var_19);
            pbVar11 = (type_2 *)((var_15 + 1 >> 3) + (int)var_7);
            var_17 = (type_2)(1 << ((type_2)(var_15 + 1) & 7));
            if ((var_10 & 1) != 0) break;
            *pbVar11 = *pbVar11 & ~var_17;
            var_16(var_5,var_15 + 1,var_8);
          }
          *pbVar11 = *pbVar11 | var_17;
        } while ((var_10 == 5) || (var_12 = var_18(var_5,var_15 + 1), var_12 == 0));
      }
    }
    psVar13 = (type_7 *)&DAT_ffffffff;
    goto LAB_000ef06d;
  case 9:
    psVar13 = (type_7 *)0x0;
    sqlite3Config.xTestCallback = (type_13 *)var_19;
    if (var_19 != (type_7 *)0x0) {
      psVar13 = (type_7 *)(*(type_14 *)var_19)(0);
    }
    break;
  case 10:
    psVar13 = (type_7 *)0x0;
    sqlite3Hooks.xBenignBegin = (type_8 *)var_19;
    sqlite3Hooks.xBenignEnd = var_9;
    break;
  case 0xb:
    if (var_19 != (type_7 *)0x0) {
      sqlite3PendingByte = (int)var_19;
    }
    break;
  case 0xc:
    var_15 = 0;
    psVar13 = (type_7 *)0x0;
    break;
  case 0xd:
    psVar13 = var_19;
    break;
  case 0xe:
    var_20(var_19->mutex);
    var_21(var_19->aDb->pBt,0,(int)var_9,0);
    var_22(var_19->mutex);
    psVar13 = (type_7 *)0x0;
    break;
  case 0xf:
    var_19->dbOptFlags = (type_15)var_9;
    psVar13 = (type_7 *)0x0;
    break;
  default:
    goto _L55077;
  case 0x11:
    sqlite3Config.bInternalFunctions = (int)var_19;
    psVar13 = (type_7 *)0x0;
    break;
  case 0x12:
    sqlite3Config.bLocaltimeFault = (int)var_19;
    psVar13 = (type_7 *)0x0;
    break;
  case 0x13:
    sqlite3Config.iOnceResetThreshold = (int)var_19;
    psVar13 = (type_7 *)0x0;
    break;
  case 0x14:
    sqlite3Config.neverCorrupt = (int)var_19;
    psVar13 = (type_7 *)0x0;
    break;
  case 0x16:
    psVar13 = (type_7 *)0x1e212;
    break;
  case 0x17:
    psVar13 = (type_7 *)(type_6)(sqlite3Config.isInit == 0);
    break;
  case 0x18:
    var_19->nMaxSorterMmap = (int)var_9;
    psVar13 = (type_7 *)0x0;
    break;
  case 0x19:
    var_20(var_19->mutex);
    var_2 = var_23(var_19,(char *)var_9);
    (var_19->init).iDb = (type_16)var_2;
    var_24 = var_24 & 1;
    (var_19->init).busy = var_24;
    (var_19->init).field_0x6 =
         (var_19->init).field_0x6 & 0xfd | var_24 * '\x02';
    (var_19->init).newTnum = var_25;
    if ((0 < var_25) && (var_24 == 0)) {
      var_26(var_19);
    }
    var_22(var_19->mutex);
    psVar13 = (type_7 *)0x0;
  }
LAB_000eecd0:
  if (var_27 == *(int *)(var_1 + 0x14)) {
    return (int)psVar13;
  }
                    /* WARNING: Subroutine does not return */
  var_28();
  while (var_15 = (int)psVar13 + 1, psVar13 = psVar14, var_15 <= (int)var_19) {
LAB_000ef13b:
    psVar13 = (type_7 *)var_15;
    var_10 = var_11(var_5,var_15);
    if (var_10 != ((int)(type_6)*(type_2 *)((int)var_7 + ((int)psVar13 >> 3)) >> ((type_2)psVar13 & 7) &
                 1U)) break;
  }
LAB_000ef06d:
  var_29(var_8);
  var_29(var_7);
  var_30(var_5);
  goto LAB_000eecd0;
}


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

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

code * MASKED(undefined4 param_1,code *param_2,int param_3,byte param_4,int param_5)

{
  int *piVar1;
  byte bVar2;
  code cVar3;
  undefined4 *puVar4;
  int *piVar5;
  int iVar6;
  uint uVar7;
  int iVar8;
  byte *pbVar9;
  undefined4 *puVar10;
  code *pcVar11;
  code *pcVar12;
  int iVar13;
  int in_GS_OFFSET;
  int iStack_3c;
  int iStack_30;
  code *pcStack_24;
  int local_20;
  undefined4 uStack_14;
  
  pcVar11 = DAT_00149164;
  uStack_14 = 0xeec89;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  switch(param_1) {
  case 5:
    puVar4 = (undefined4 *)0x14a740;
    puVar10 = (undefined4 *)&DAT_0014a860;
    goto code_r0x000eecfc;
  case 6:
    puVar4 = (undefined4 *)&DAT_0014a860;
    puVar10 = (undefined4 *)0x14a740;
code_r0x000eecfc:
    for (iVar13 = 0x40; iVar13 != 0; iVar13 = iVar13 + -1) {
      *puVar4 = *puVar10;
      puVar10 = puVar10 + 1;
      puVar4 = puVar4 + 1;
    }
    *(undefined2 *)puVar4 = *(undefined2 *)puVar10;
    *(undefined1 *)((int)puVar4 + 2) = *(undefined1 *)((int)puVar10 + 2);
LAB_000eed12:
    pcVar11 = (code *)0x0;
    break;
  case 7:
    pcVar11 = (code *)0x0;
    FUN_00077d40(0,0);
    break;
  case 8:
    piVar5 = (int *)FUN_000249a0();
    if (piVar5 == (int *)0x0) {
      iStack_3c = FUN_000249a0();
      iStack_30 = FUN_0003f0c0(0x200,0,iStack_3c,iStack_3c);
    }
    else {
      *piVar5 = (int)param_2;
      iStack_3c = FUN_000249a0();
      iStack_30 = FUN_0003f0c0(0x200,0);
      if ((iStack_3c != 0) && (iStack_30 != 0)) {
        iVar13 = 0;
        do {
          while( true ) {
            iVar6 = iVar13 * 4;
            uVar7 = *(uint *)(param_3 + iVar13 * 4);
            if (uVar7 == 0) {
              iVar13 = FUN_00029980();
              iVar6 = FUN_00029980();
              pcStack_24 = (code *)0x1;
              pcVar12 = (code *)((*piVar5 - (int)param_2) + iVar13 + iVar6);
              pcVar11 = pcVar12;
              if ((int)param_2 < 1) goto code_r0x000ef06d;
              goto code_r0x000ef13b;
            }
            if ((uVar7 < 6) && ((1 << ((byte)uVar7 & 0x1f) & 0x26U) != 0)) {
              piVar1 = (int *)(param_3 + 8 + iVar6);
              iVar8 = *piVar1;
              pcStack_24 = (code *)(iVar8 + -1);
              *piVar1 = iVar8 + *(int *)(param_3 + 0xc + iVar6);
              iVar8 = 4;
            }
            else {
              FUN_00077d40(4,&pcStack_24);
              iVar8 = 2;
            }
            piVar1 = (int *)(param_3 + 4 + iVar6);
            iVar6 = *piVar1 + -1;
            *piVar1 = iVar6;
            if (iVar6 < 1) {
              iVar13 = iVar8 + iVar13;
            }
            pcStack_24 = (code *)((longlong)(ulonglong)((uint)pcStack_24 & 0x7fffffff) %
                                 (longlong)(int)param_2);
            pbVar9 = (byte *)(((int)(pcStack_24 + 1) >> 3) + iStack_3c);
            bVar2 = (byte)(1 << ((byte)(pcStack_24 + 1) & 7));
            if ((uVar7 & 1) != 0) break;
            *pbVar9 = *pbVar9 & ~bVar2;
            FUN_000211d0();
          }
          *pbVar9 = *pbVar9 | bVar2;
        } while ((uVar7 == 5) || (iVar6 = FUN_00037bb0(), iVar6 == 0));
      }
    }
    pcVar11 = (code *)&DAT_ffffffff;
    goto code_r0x000ef06d;
  case 9:
    pcVar11 = (code *)0x0;
    DAT_00149280 = param_2;
    if (param_2 != (code *)0x0) {
      pcVar11 = (code *)(*param_2)(0);
    }
    break;
  case 10:
    pcVar11 = (code *)0x0;
    DAT_0014a974 = param_2;
    DAT_0014a978 = param_3;
    break;
  case 0xb:
    if (param_2 != (code *)0x0) {
      DAT_00149164 = param_2;
    }
    break;
  case 0xc:
    pcStack_24 = (code *)0x0;
    pcVar11 = (code *)0x0;
    break;
  case 0xd:
    pcVar11 = param_2;
    break;
  case 0xe:
    FUN_000197c0(*(undefined4 *)(param_2 + 0xc));
    FUN_0003a660(0);
    FUN_000197f0(*(undefined4 *)(param_2 + 0xc));
    pcVar11 = (code *)0x0;
    break;
  case 0xf:
    *(short *)(param_2 + 0x48) = (short)param_3;
    pcVar11 = (code *)0x0;
    break;
  default:
    goto LAB_000eed12;
  case 0x11:
    DAT_00149288 = param_2;
    pcVar11 = (code *)0x0;
    break;
  case 0x12:
    DAT_00149284 = param_2;
    pcVar11 = (code *)0x0;
    break;
  case 0x13:
    pcRam0014928c = param_2;
    pcVar11 = (code *)0x0;
    break;
  case 0x14:
    pcRam0014919c = param_2;
    pcVar11 = (code *)0x0;
    break;
  case 0x16:
    pcVar11 = (code *)0x1e212;
    break;
  case 0x17:
    pcVar11 = (code *)(uint)(DAT_0014925c == 0);
    break;
  case 0x18:
    *(int *)(param_2 + 0x98) = param_3;
    pcVar11 = (code *)0x0;
    break;
  case 0x19:
    FUN_000197c0(*(undefined4 *)(param_2 + 0xc));
    cVar3 = (code)FUN_00027d70();
    param_2[0xa0] = cVar3;
    cVar3 = (code)(param_4 & 1);
    param_2[0xa1] = cVar3;
    param_2[0xa2] = (code)((byte)param_2[0xa2] & 0xfd | (char)cVar3 * '\x02');
    *(int *)(param_2 + 0x9c) = param_5;
    if ((0 < param_5) && (cVar3 == (code)0x0)) {
      FUN_00039e00();
    }
    FUN_000197f0(*(undefined4 *)(param_2 + 0xc));
    pcVar11 = (code *)0x0;
  }
LAB_000eecd0:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return pcVar11;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000f4bf0();
  while (pcStack_24 = pcVar11 + 1, pcVar11 = pcVar12, (int)pcStack_24 <= (int)param_2) {
code_r0x000ef13b:
    pcVar11 = pcStack_24;
    uVar7 = FUN_00029980();
    if (uVar7 != ((int)(uint)*(byte *)(iStack_3c + ((int)pcVar11 >> 3)) >> ((byte)pcVar11 & 7) & 1U)
       ) break;
  }
code_r0x000ef06d:
  FUN_00024cc0(iStack_30);
  FUN_00024cc0(iStack_3c);
  FUN_00025a40();
  goto LAB_000eecd0;
}

