
/* WARNING: Function: __x86.get_pc_thunk.bp replaced with injection: get_pc_thunk.bp */

int __regparm3 getOverflowPage(BtShared *pBt,Pgno ovfl,MemPage **ppPage,Pgno *pPgnoNext)

{
  uint uVar1;
  int iVar2;
  uint uVar3;
  uint uVar4;
  int in_GS_OFFSET;
  u8 *in_stack_ffffffb8;
  Pgno *in_stack_ffffffbc;
  char cStack_29;
  MemPage *pPage;
  Pgno PStack_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x3e31d;
  pPage = (MemPage *)0x0;
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (pBt->autoVacuum == '\0') {
LAB_0003e37f:
    if (ppPage == (MemPage **)0x0) {
      iVar2 = btreeGetPage(pBt,ovfl,&pPage,2);
      if (iVar2 == 0) {
        uVar4 = *(uint *)pPage->aData;
        *pPgnoNext = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18
        ;
        sqlite3PagerUnrefNotNull(pPage->pDbPage);
        goto LAB_0003e3b7;
      }
      *pPgnoNext = 0;
LAB_0003e407:
      if (pPage != (MemPage *)0x0) {
        sqlite3PagerUnrefNotNull(pPage->pDbPage);
      }
      if (iVar2 == 0x65) {
        iVar2 = 0;
      }
      goto LAB_0003e3b7;
    }
    iVar2 = btreeGetPage(pBt,ovfl,&pPage,0);
    if (iVar2 == 0) {
      uVar4 = *(uint *)pPage->aData;
      *pPgnoNext = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;
      *ppPage = pPage;
      goto LAB_0003e3b7;
    }
    *pPgnoNext = 0;
    *ppPage = pPage;
  }
  else {
    uVar4 = ovfl + 1;
    uVar1 = (uint)sqlite3PendingByte / pBt->pageSize + 1;
    while( true ) {
      uVar3 = 0;
      if (1 < uVar4) {
        uVar3 = pBt->usableSize / 5 + 1;
        iVar2 = ((uVar4 - 2) / uVar3) * uVar3;
        uVar3 = iVar2 + 2;
        if (uVar3 == uVar1) {
          uVar3 = iVar2 + 3;
        }
      }
      if ((uVar4 != uVar3) && (uVar4 != uVar1)) break;
      uVar4 = uVar4 + 1;
    }
    if (pBt->nPage < uVar4) goto LAB_0003e37f;
    iVar2 = ptrmapGet(pBt,(Pgno)&PStack_24,in_stack_ffffffb8,in_stack_ffffffbc);
    if (iVar2 == 0) {
      if ((cStack_29 == '\x04') && (PStack_24 == ovfl)) {
        *pPgnoNext = uVar4;
        if (ppPage == (MemPage **)0x0) {
          if (pPage != (MemPage *)0x0) {
            sqlite3PagerUnrefNotNull(pPage->pDbPage);
          }
        }
        else {
          *ppPage = pPage;
        }
        goto LAB_0003e3b7;
      }
      goto LAB_0003e37f;
    }
    *pPgnoNext = 0;
    if (ppPage == (MemPage **)0x0) goto LAB_0003e407;
    *ppPage = pPage;
  }
  if (iVar2 == 0x65) {
    iVar2 = 0;
  }
LAB_0003e3b7:
  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail_local();
  }
  return iVar2;
}



/* WARNING: Removing unreachable block (ram,0x0003e40b) */
/* WARNING: Removing unreachable block (ram,0x0003e508) */

int __regparm3 FUN_0003e310(int param_1,undefined4 param_2,undefined4 *param_3,uint *param_4)

{
  uint uVar1;
  uint uVar2;
  int iVar3;
  uint extraout_EDX;
  uint uVar4;
  uint uVar5;
  int unaff_EBP;
  int in_GS_OFFSET;
  char local_29;
  uint local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x3e31d;
  FUN_000d0ab3();
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (*(char *)(param_1 + 0x11) == '\0') {
LAB_0003e37f:
    if (param_3 == (undefined4 *)0x0) {
      iVar3 = FUN_0001f6d0(2);
      if (iVar3 == 0) {
        uVar1 = *puRam00000038;
        *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;
        FUN_0001f280();
        goto LAB_0003e3b7;
      }
      *param_4 = 0;
LAB_0003e407:
      if (iVar3 == 0x65) {
        iVar3 = 0;
      }
      goto LAB_0003e3b7;
    }
    iVar3 = FUN_0001f6d0(0);
    if (iVar3 == 0) {
      uVar1 = *puRam00000038;
      *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;
      *param_3 = 0;
      goto LAB_0003e3b7;
    }
    *param_4 = 0;
    *param_3 = 0;
  }
  else {
    uVar1 = *(uint *)(&DAT_000c803b + unaff_EBP) / *(uint *)(param_1 + 0x24) + 1;
    uVar2 = extraout_EDX;
    do {
      uVar5 = uVar2 + 1;
      uVar4 = 0;
      if (1 < uVar5) {
        uVar4 = *(uint *)(param_1 + 0x28) / 5 + 1;
        iVar3 = ((uVar2 - 1) / uVar4) * uVar4;
        uVar4 = iVar3 + 2;
        if (uVar4 == uVar1) {
          uVar4 = iVar3 + 3;
        }
      }
      uVar2 = uVar5;
    } while ((uVar5 == uVar4) || (uVar5 == uVar1));
    if (*(uint *)(param_1 + 0x30) < uVar5) goto LAB_0003e37f;
    iVar3 = FUN_00039310(&local_24);
    if (iVar3 == 0) {
      if ((local_29 == '\x04') && (local_24 == extraout_EDX)) {
        *param_4 = uVar5;
        if (param_3 != (undefined4 *)0x0) {
          *param_3 = 0;
        }
        goto LAB_0003e3b7;
      }
      goto LAB_0003e37f;
    }
    *param_4 = 0;
    if (param_3 == (undefined4 *)0x0) goto LAB_0003e407;
    *param_3 = 0;
  }
  if (iVar3 == 0x65) {
    iVar3 = 0;
  }
LAB_0003e3b7:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar3;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000d1450();
}


PUSH EBP
PUSH EDI
MOV EDI,ECX
PUSH ESI
PUSH EBX
MOV ESI,EAX
CALL 0x000d0ab3
ADD EBP,0xc7ce3
SUB ESP,0x2c
MOV EAX,dword ptr [ESP + 0x40]
MOV dword ptr [ESP + 0xc],EDX
MOV dword ptr [ESP + 0x14],0x0
MOV dword ptr [ESP + 0x8],EAX
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0x1c],EAX
XOR EAX,EAX
CMP byte ptr [ESI + 0x11],0x0
JZ 0x0003e37f
MOV EAX,dword ptr [EBP + 0x358]
LEA EBX,[EDX + 0x1]
XOR EDX,EDX
DIV dword ptr [ESI + 0x24]
LEA ECX,[EAX + 0x1]
JMP 0x0003e363
ADD EBX,0x1
XOR EDX,EDX
CMP EBX,0x1
JA 0x0003e490
CMP EBX,EDX
JZ 0x0003e360
CMP EBX,ECX
JZ 0x0003e360
CMP EBX,dword ptr [ESI + 0x30]
JBE 0x0003e440
TEST EDI,EDI
JZ 0x0003e3d8
LEA ECX,[ESP + 0x14]
SUB ESP,0xc
MOV EAX,ESI
PUSH 0x0
MOV EDX,dword ptr [ESP + 0x1c]
CALL 0x0001f6d0
ADD ESP,0x10
TEST EAX,EAX
MOV EBP,EAX
JNZ 0x0003e420
MOV EDX,dword ptr [ESP + 0x14]
MOV ESI,dword ptr [ESP + 0x8]
MOV EAX,dword ptr [EDX + 0x38]
MOV EAX,dword ptr [EAX]
BSWAP EAX
MOV dword ptr [ESI],EAX
MOV dword ptr [EDI],EDX
MOV EDI,dword ptr [ESP + 0x1c]
XOR EDI,dword ptr GS:[0x14]
MOV EAX,EBP
JNZ 0x0003e4fb
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
LEA ECX,[ESP + 0x14]
SUB ESP,0xc
MOV EAX,ESI
PUSH 0x2
MOV EDX,dword ptr [ESP + 0x1c]
CALL 0x0001f6d0
ADD ESP,0x10
TEST EAX,EAX
MOV EBP,EAX
JZ 0x0003e4dd
MOV EAX,dword ptr [ESP + 0x8]
MOV dword ptr [EAX],0x0
MOV EAX,dword ptr [ESP + 0x14]
TEST EAX,EAX
JZ 0x0003e413
MOV EAX,dword ptr [EAX + 0x48]
CALL 0x0001f280
CMP EBP,0x65
MOV EAX,0x0
CMOVZ EBP,EAX
JMP 0x0003e3b7
MOV EAX,dword ptr [ESP + 0x8]
MOV dword ptr [EAX],0x0
MOV EAX,dword ptr [ESP + 0x14]
MOV dword ptr [EDI],EAX
CMP EBP,0x65
MOV EAX,0x0
CMOVZ EBP,EAX
JMP 0x0003e3b7
LEA ECX,[ESP + 0x13]
SUB ESP,0xc
MOV EDX,EBX
LEA EAX,[ESP + 0x24]
PUSH EAX
MOV EAX,ESI
CALL 0x00039310
ADD ESP,0x10
TEST EAX,EAX
MOV EBP,EAX
JNZ 0x0003e4c0
CMP byte ptr [ESP + 0x13],0x4
JNZ 0x0003e37f
MOV EAX,dword ptr [ESP + 0xc]
CMP dword ptr [ESP + 0x18],EAX
JNZ 0x0003e37f
MOV ESI,dword ptr [ESP + 0x8]
TEST EDI,EDI
MOV EAX,dword ptr [ESP + 0x14]
MOV dword ptr [ESI],EBX
JZ 0x0003e500
MOV dword ptr [EDI],EAX
JMP 0x0003e3b7
MOV EAX,0xcccccccd
MUL dword ptr [ESI + 0x28]
LEA EAX,[EBX + -0x2]
SHR EDX,0x2
LEA EBP,[EDX + 0x1]
XOR EDX,EDX
DIV EBP
IMUL EAX,EBP
LEA EDX,[EAX + 0x2]
ADD EAX,0x3
CMP EDX,ECX
CMOVZ EDX,EAX
JMP 0x0003e36e
MOV ESI,dword ptr [ESP + 0x8]
TEST EDI,EDI
MOV EAX,dword ptr [ESP + 0x14]
MOV dword ptr [ESI],0x0
JZ 0x0003e407
MOV dword ptr [EDI],EAX
JMP 0x0003e430
MOV EDX,dword ptr [ESP + 0x14]
MOV EDI,dword ptr [ESP + 0x8]
MOV EAX,dword ptr [EDX + 0x38]
MOV EAX,dword ptr [EAX]
BSWAP EAX
MOV dword ptr [EDI],EAX
MOV EAX,dword ptr [EDX + 0x48]
CALL 0x0001f280
JMP 0x0003e3b7
CALL 0x000d1450
TEST EAX,EAX
JZ 0x0003e3b7
MOV EAX,dword ptr [EAX + 0x48]
CALL 0x0001f280
JMP 0x0003e3b7
(translation_unit "/* WARNING: Removing unreachable block (ram,0x0003e40b) */\n/* WARNING: Removing unreachable block (ram,0x0003e508) */\n\nint __regparm3 FUN_0003e310(int param_1,undefined4 param_2,undefined4 *param_3,uint *param_4)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint extraout_EDX;\n  uint uVar4;\n  uint uVar5;\n  int unaff_EBP;\n  int in_GS_OFFSET;\n  char local_29;\n  uint local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3e31d;\n  FUN_000d0ab3();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(char *)(param_1 + 0x11) == '\0') {\nLAB_0003e37f:\n    if (param_3 == (undefined4 *)0x0) {\n      iVar3 = FUN_0001f6d0(2);\n      if (iVar3 == 0) {\n        uVar1 = *puRam00000038;\n        *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n        FUN_0001f280();\n        goto LAB_0003e3b7;\n      }\n      *param_4 = 0;\nLAB_0003e407:\n      if (iVar3 == 0x65) {\n        iVar3 = 0;\n      }\n      goto LAB_0003e3b7;\n    }\n    iVar3 = FUN_0001f6d0(0);\n    if (iVar3 == 0) {\n      uVar1 = *puRam00000038;\n      *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n      *param_3 = 0;\n      goto LAB_0003e3b7;\n    }\n    *param_4 = 0;\n    *param_3 = 0;\n  }\n  else {\n    uVar1 = *(uint *)(&DAT_000c803b + unaff_EBP) / *(uint *)(param_1 + 0x24) + 1;\n    uVar2 = extraout_EDX;\n    do {\n      uVar5 = uVar2 + 1;\n      uVar4 = 0;\n      if (1 < uVar5) {\n        uVar4 = *(uint *)(param_1 + 0x28) / 5 + 1;\n        iVar3 = ((uVar2 - 1) / uVar4) * uVar4;\n        uVar4 = iVar3 + 2;\n        if (uVar4 == uVar1) {\n          uVar4 = iVar3 + 3;\n        }\n      }\n      uVar2 = uVar5;\n    } while ((uVar5 == uVar4) || (uVar5 == uVar1));\n    if (*(uint *)(param_1 + 0x30) < uVar5) goto LAB_0003e37f;\n    iVar3 = FUN_00039310(&local_24);\n    if (iVar3 == 0) {\n      if ((local_29 == '\x04') && (local_24 == extraout_EDX)) {\n        *param_4 = uVar5;\n        if (param_3 != (undefined4 *)0x0) {\n          *param_3 = 0;\n        }\n        goto LAB_0003e3b7;\n      }\n      goto LAB_0003e37f;\n    }\n    *param_4 = 0;\n    if (param_3 == (undefined4 *)0x0) goto LAB_0003e407;\n    *param_3 = 0;\n  }\n  if (iVar3 == 0x65) {\n    iVar3 = 0;\n  }\nLAB_0003e3b7:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000d1450();\n}\n\n" comment comment (function_definition "int __regparm3 FUN_0003e310(int param_1,undefined4 param_2,undefined4 *param_3,uint *param_4)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint extraout_EDX;\n  uint uVar4;\n  uint uVar5;\n  int unaff_EBP;\n  int in_GS_OFFSET;\n  char local_29;\n  uint local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3e31d;\n  FUN_000d0ab3();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(char *)(param_1 + 0x11) == '\0') {\nLAB_0003e37f:\n    if (param_3 == (undefined4 *)0x0) {\n      iVar3 = FUN_0001f6d0(2);\n      if (iVar3 == 0) {\n        uVar1 = *puRam00000038;\n        *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n        FUN_0001f280();\n        goto LAB_0003e3b7;\n      }\n      *param_4 = 0;\nLAB_0003e407:\n      if (iVar3 == 0x65) {\n        iVar3 = 0;\n      }\n      goto LAB_0003e3b7;\n    }\n    iVar3 = FUN_0001f6d0(0);\n    if (iVar3 == 0) {\n      uVar1 = *puRam00000038;\n      *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n      *param_3 = 0;\n      goto LAB_0003e3b7;\n    }\n    *param_4 = 0;\n    *param_3 = 0;\n  }\n  else {\n    uVar1 = *(uint *)(&DAT_000c803b + unaff_EBP) / *(uint *)(param_1 + 0x24) + 1;\n    uVar2 = extraout_EDX;\n    do {\n      uVar5 = uVar2 + 1;\n      uVar4 = 0;\n      if (1 < uVar5) {\n        uVar4 = *(uint *)(param_1 + 0x28) / 5 + 1;\n        iVar3 = ((uVar2 - 1) / uVar4) * uVar4;\n        uVar4 = iVar3 + 2;\n        if (uVar4 == uVar1) {\n          uVar4 = iVar3 + 3;\n        }\n      }\n      uVar2 = uVar5;\n    } while ((uVar5 == uVar4) || (uVar5 == uVar1));\n    if (*(uint *)(param_1 + 0x30) < uVar5) goto LAB_0003e37f;\n    iVar3 = FUN_00039310(&local_24);\n    if (iVar3 == 0) {\n      if ((local_29 == '\x04') && (local_24 == extraout_EDX)) {\n        *param_4 = uVar5;\n        if (param_3 != (undefined4 *)0x0) {\n          *param_3 = 0;\n        }\n        goto LAB_0003e3b7;\n      }\n      goto LAB_0003e37f;\n    }\n    *param_4 = 0;\n    if (param_3 == (undefined4 *)0x0) goto LAB_0003e407;\n    *param_3 = 0;\n  }\n  if (iVar3 == 0x65) {\n    iVar3 = 0;\n  }\nLAB_0003e3b7:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000d1450();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0003e310(int param_1,undefined4 param_2,undefined4 *param_3,uint *param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 *param_3,uint *param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "uint *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint extraout_EDX;\n  uint uVar4;\n  uint uVar5;\n  int unaff_EBP;\n  int in_GS_OFFSET;\n  char local_29;\n  uint local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3e31d;\n  FUN_000d0ab3();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(char *)(param_1 + 0x11) == '\0') {\nLAB_0003e37f:\n    if (param_3 == (undefined4 *)0x0) {\n      iVar3 = FUN_0001f6d0(2);\n      if (iVar3 == 0) {\n        uVar1 = *puRam00000038;\n        *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n        FUN_0001f280();\n        goto LAB_0003e3b7;\n      }\n      *param_4 = 0;\nLAB_0003e407:\n      if (iVar3 == 0x65) {\n        iVar3 = 0;\n      }\n      goto LAB_0003e3b7;\n    }\n    iVar3 = FUN_0001f6d0(0);\n    if (iVar3 == 0) {\n      uVar1 = *puRam00000038;\n      *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n      *param_3 = 0;\n      goto LAB_0003e3b7;\n    }\n    *param_4 = 0;\n    *param_3 = 0;\n  }\n  else {\n    uVar1 = *(uint *)(&DAT_000c803b + unaff_EBP) / *(uint *)(param_1 + 0x24) + 1;\n    uVar2 = extraout_EDX;\n    do {\n      uVar5 = uVar2 + 1;\n      uVar4 = 0;\n      if (1 < uVar5) {\n        uVar4 = *(uint *)(param_1 + 0x28) / 5 + 1;\n        iVar3 = ((uVar2 - 1) / uVar4) * uVar4;\n        uVar4 = iVar3 + 2;\n        if (uVar4 == uVar1) {\n          uVar4 = iVar3 + 3;\n        }\n      }\n      uVar2 = uVar5;\n    } while ((uVar5 == uVar4) || (uVar5 == uVar1));\n    if (*(uint *)(param_1 + 0x30) < uVar5) goto LAB_0003e37f;\n    iVar3 = FUN_00039310(&local_24);\n    if (iVar3 == 0) {\n      if ((local_29 == '\x04') && (local_24 == extraout_EDX)) {\n        *param_4 = uVar5;\n        if (param_3 != (undefined4 *)0x0) {\n          *param_3 = 0;\n        }\n        goto LAB_0003e3b7;\n      }\n      goto LAB_0003e37f;\n    }\n    *param_4 = 0;\n    if (param_3 == (undefined4 *)0x0) goto LAB_0003e407;\n    *param_3 = 0;\n  }\n  if (iVar3 == 0x65) {\n    iVar3 = 0;\n  }\nLAB_0003e3b7:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000d1450();\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint extraout_EDX;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int unaff_EBP;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char local_29;" primitive_type identifier ;) (declaration "uint local_24;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x3e31d;" (assignment_expression "uStack_14 = 0x3e31d" identifier = number_literal) ;) (expression_statement "FUN_000d0ab3();" (call_expression "FUN_000d0ab3()" identifier (argument_list "()" ( ))) ;) (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) ))))) ;) (if_statement "if (*(char *)(param_1 + 0x11) == '\0') {\nLAB_0003e37f:\n    if (param_3 == (undefined4 *)0x0) {\n      iVar3 = FUN_0001f6d0(2);\n      if (iVar3 == 0) {\n        uVar1 = *puRam00000038;\n        *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n        FUN_0001f280();\n        goto LAB_0003e3b7;\n      }\n      *param_4 = 0;\nLAB_0003e407:\n      if (iVar3 == 0x65) {\n        iVar3 = 0;\n      }\n      goto LAB_0003e3b7;\n    }\n    iVar3 = FUN_0001f6d0(0);\n    if (iVar3 == 0) {\n      uVar1 = *puRam00000038;\n      *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n      *param_3 = 0;\n      goto LAB_0003e3b7;\n    }\n    *param_4 = 0;\n    *param_3 = 0;\n  }\n  else {\n    uVar1 = *(uint *)(&DAT_000c803b + unaff_EBP) / *(uint *)(param_1 + 0x24) + 1;\n    uVar2 = extraout_EDX;\n    do {\n      uVar5 = uVar2 + 1;\n      uVar4 = 0;\n      if (1 < uVar5) {\n        uVar4 = *(uint *)(param_1 + 0x28) / 5 + 1;\n        iVar3 = ((uVar2 - 1) / uVar4) * uVar4;\n        uVar4 = iVar3 + 2;\n        if (uVar4 == uVar1) {\n          uVar4 = iVar3 + 3;\n        }\n      }\n      uVar2 = uVar5;\n    } while ((uVar5 == uVar4) || (uVar5 == uVar1));\n    if (*(uint *)(param_1 + 0x30) < uVar5) goto LAB_0003e37f;\n    iVar3 = FUN_00039310(&local_24);\n    if (iVar3 == 0) {\n      if ((local_29 == '\x04') && (local_24 == extraout_EDX)) {\n        *param_4 = uVar5;\n        if (param_3 != (undefined4 *)0x0) {\n          *param_3 = 0;\n        }\n        goto LAB_0003e3b7;\n      }\n      goto LAB_0003e37f;\n    }\n    *param_4 = 0;\n    if (param_3 == (undefined4 *)0x0) goto LAB_0003e407;\n    *param_3 = 0;\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0x11) == '\0')" ( (binary_expression "*(char *)(param_1 + 0x11) == '\0'" (pointer_expression "*(char *)(param_1 + 0x11)" * (cast_expression "(char *)(param_1 + 0x11)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x11)" ( (binary_expression "param_1 + 0x11" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_0003e37f:\n    if (param_3 == (undefined4 *)0x0) {\n      iVar3 = FUN_0001f6d0(2);\n      if (iVar3 == 0) {\n        uVar1 = *puRam00000038;\n        *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n        FUN_0001f280();\n        goto LAB_0003e3b7;\n      }\n      *param_4 = 0;\nLAB_0003e407:\n      if (iVar3 == 0x65) {\n        iVar3 = 0;\n      }\n      goto LAB_0003e3b7;\n    }\n    iVar3 = FUN_0001f6d0(0);\n    if (iVar3 == 0) {\n      uVar1 = *puRam00000038;\n      *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n      *param_3 = 0;\n      goto LAB_0003e3b7;\n    }\n    *param_4 = 0;\n    *param_3 = 0;\n  }" { (labeled_statement "LAB_0003e37f:\n    if (param_3 == (undefined4 *)0x0) {\n      iVar3 = FUN_0001f6d0(2);\n      if (iVar3 == 0) {\n        uVar1 = *puRam00000038;\n        *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n        FUN_0001f280();\n        goto LAB_0003e3b7;\n      }\n      *param_4 = 0;\nLAB_0003e407:\n      if (iVar3 == 0x65) {\n        iVar3 = 0;\n      }\n      goto LAB_0003e3b7;\n    }" statement_identifier : (if_statement "if (param_3 == (undefined4 *)0x0) {\n      iVar3 = FUN_0001f6d0(2);\n      if (iVar3 == 0) {\n        uVar1 = *puRam00000038;\n        *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n        FUN_0001f280();\n        goto LAB_0003e3b7;\n      }\n      *param_4 = 0;\nLAB_0003e407:\n      if (iVar3 == 0x65) {\n        iVar3 = 0;\n      }\n      goto LAB_0003e3b7;\n    }" if (parenthesized_expression "(param_3 == (undefined4 *)0x0)" ( (binary_expression "param_3 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar3 = FUN_0001f6d0(2);\n      if (iVar3 == 0) {\n        uVar1 = *puRam00000038;\n        *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n        FUN_0001f280();\n        goto LAB_0003e3b7;\n      }\n      *param_4 = 0;\nLAB_0003e407:\n      if (iVar3 == 0x65) {\n        iVar3 = 0;\n      }\n      goto LAB_0003e3b7;\n    }" { (expression_statement "iVar3 = FUN_0001f6d0(2);" (assignment_expression "iVar3 = FUN_0001f6d0(2)" identifier = (call_expression "FUN_0001f6d0(2)" identifier (argument_list "(2)" ( number_literal )))) ;) (if_statement "if (iVar3 == 0) {\n        uVar1 = *puRam00000038;\n        *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n        FUN_0001f280();\n        goto LAB_0003e3b7;\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar1 = *puRam00000038;\n        *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n        FUN_0001f280();\n        goto LAB_0003e3b7;\n      }" { (expression_statement "uVar1 = *puRam00000038;" (assignment_expression "uVar1 = *puRam00000038" identifier = (pointer_expression "*puRam00000038" * identifier)) ;) (expression_statement "*param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;" (assignment_expression "*param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18" (pointer_expression "*param_4" * identifier) = (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8" (binary_expression "uVar1 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" ( (binary_expression "uVar1 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" ( (binary_expression "uVar1 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar1 << 0x18" identifier << number_literal))) ;) (expression_statement "FUN_0001f280();" (call_expression "FUN_0001f280()" identifier (argument_list "()" ( ))) ;) (goto_statement "goto LAB_0003e3b7;" goto statement_identifier ;) })) (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) (labeled_statement "LAB_0003e407:\n      if (iVar3 == 0x65) {\n        iVar3 = 0;\n      }" statement_identifier : (if_statement "if (iVar3 == 0x65) {\n        iVar3 = 0;\n      }" if (parenthesized_expression "(iVar3 == 0x65)" ( (binary_expression "iVar3 == 0x65" identifier == number_literal) )) (compound_statement "{\n        iVar3 = 0;\n      }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) }))) (goto_statement "goto LAB_0003e3b7;" goto statement_identifier ;) }))) (expression_statement "iVar3 = FUN_0001f6d0(0);" (assignment_expression "iVar3 = FUN_0001f6d0(0)" identifier = (call_expression "FUN_0001f6d0(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (if_statement "if (iVar3 == 0) {\n      uVar1 = *puRam00000038;\n      *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n      *param_3 = 0;\n      goto LAB_0003e3b7;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar1 = *puRam00000038;\n      *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n      *param_3 = 0;\n      goto LAB_0003e3b7;\n    }" { (expression_statement "uVar1 = *puRam00000038;" (assignment_expression "uVar1 = *puRam00000038" identifier = (pointer_expression "*puRam00000038" * identifier)) ;) (expression_statement "*param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;" (assignment_expression "*param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18" (pointer_expression "*param_4" * identifier) = (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8" (binary_expression "uVar1 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" ( (binary_expression "uVar1 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" ( (binary_expression "uVar1 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar1 << 0x18" identifier << number_literal))) ;) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) (goto_statement "goto LAB_0003e3b7;" goto statement_identifier ;) })) (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) }) (else_clause "else {\n    uVar1 = *(uint *)(&DAT_000c803b + unaff_EBP) / *(uint *)(param_1 + 0x24) + 1;\n    uVar2 = extraout_EDX;\n    do {\n      uVar5 = uVar2 + 1;\n      uVar4 = 0;\n      if (1 < uVar5) {\n        uVar4 = *(uint *)(param_1 + 0x28) / 5 + 1;\n        iVar3 = ((uVar2 - 1) / uVar4) * uVar4;\n        uVar4 = iVar3 + 2;\n        if (uVar4 == uVar1) {\n          uVar4 = iVar3 + 3;\n        }\n      }\n      uVar2 = uVar5;\n    } while ((uVar5 == uVar4) || (uVar5 == uVar1));\n    if (*(uint *)(param_1 + 0x30) < uVar5) goto LAB_0003e37f;\n    iVar3 = FUN_00039310(&local_24);\n    if (iVar3 == 0) {\n      if ((local_29 == '\x04') && (local_24 == extraout_EDX)) {\n        *param_4 = uVar5;\n        if (param_3 != (undefined4 *)0x0) {\n          *param_3 = 0;\n        }\n        goto LAB_0003e3b7;\n      }\n      goto LAB_0003e37f;\n    }\n    *param_4 = 0;\n    if (param_3 == (undefined4 *)0x0) goto LAB_0003e407;\n    *param_3 = 0;\n  }" else (compound_statement "{\n    uVar1 = *(uint *)(&DAT_000c803b + unaff_EBP) / *(uint *)(param_1 + 0x24) + 1;\n    uVar2 = extraout_EDX;\n    do {\n      uVar5 = uVar2 + 1;\n      uVar4 = 0;\n      if (1 < uVar5) {\n        uVar4 = *(uint *)(param_1 + 0x28) / 5 + 1;\n        iVar3 = ((uVar2 - 1) / uVar4) * uVar4;\n        uVar4 = iVar3 + 2;\n        if (uVar4 == uVar1) {\n          uVar4 = iVar3 + 3;\n        }\n      }\n      uVar2 = uVar5;\n    } while ((uVar5 == uVar4) || (uVar5 == uVar1));\n    if (*(uint *)(param_1 + 0x30) < uVar5) goto LAB_0003e37f;\n    iVar3 = FUN_00039310(&local_24);\n    if (iVar3 == 0) {\n      if ((local_29 == '\x04') && (local_24 == extraout_EDX)) {\n        *param_4 = uVar5;\n        if (param_3 != (undefined4 *)0x0) {\n          *param_3 = 0;\n        }\n        goto LAB_0003e3b7;\n      }\n      goto LAB_0003e37f;\n    }\n    *param_4 = 0;\n    if (param_3 == (undefined4 *)0x0) goto LAB_0003e407;\n    *param_3 = 0;\n  }" { (expression_statement "uVar1 = *(uint *)(&DAT_000c803b + unaff_EBP) / *(uint *)(param_1 + 0x24) + 1;" (assignment_expression "uVar1 = *(uint *)(&DAT_000c803b + unaff_EBP) / *(uint *)(param_1 + 0x24) + 1" identifier = (binary_expression "*(uint *)(&DAT_000c803b + unaff_EBP) / *(uint *)(param_1 + 0x24) + 1" (binary_expression "*(uint *)(&DAT_000c803b + unaff_EBP) / *(uint *)(param_1 + 0x24)" (pointer_expression "*(uint *)(&DAT_000c803b + unaff_EBP)" * (cast_expression "(uint *)(&DAT_000c803b + unaff_EBP)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_000c803b + unaff_EBP)" ( (binary_expression "&DAT_000c803b + unaff_EBP" (pointer_expression "&DAT_000c803b" & identifier) + identifier) )))) / (pointer_expression "*(uint *)(param_1 + 0x24)" * (cast_expression "(uint *)(param_1 + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) + number_literal)) ;) (expression_statement "uVar2 = extraout_EDX;" (assignment_expression "uVar2 = extraout_EDX" identifier = identifier) ;) (do_statement "do {\n      uVar5 = uVar2 + 1;\n      uVar4 = 0;\n      if (1 < uVar5) {\n        uVar4 = *(uint *)(param_1 + 0x28) / 5 + 1;\n        iVar3 = ((uVar2 - 1) / uVar4) * uVar4;\n        uVar4 = iVar3 + 2;\n        if (uVar4 == uVar1) {\n          uVar4 = iVar3 + 3;\n        }\n      }\n      uVar2 = uVar5;\n    } while ((uVar5 == uVar4) || (uVar5 == uVar1));" do (compound_statement "{\n      uVar5 = uVar2 + 1;\n      uVar4 = 0;\n      if (1 < uVar5) {\n        uVar4 = *(uint *)(param_1 + 0x28) / 5 + 1;\n        iVar3 = ((uVar2 - 1) / uVar4) * uVar4;\n        uVar4 = iVar3 + 2;\n        if (uVar4 == uVar1) {\n          uVar4 = iVar3 + 3;\n        }\n      }\n      uVar2 = uVar5;\n    }" { (expression_statement "uVar5 = uVar2 + 1;" (assignment_expression "uVar5 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (if_statement "if (1 < uVar5) {\n        uVar4 = *(uint *)(param_1 + 0x28) / 5 + 1;\n        iVar3 = ((uVar2 - 1) / uVar4) * uVar4;\n        uVar4 = iVar3 + 2;\n        if (uVar4 == uVar1) {\n          uVar4 = iVar3 + 3;\n        }\n      }" if (parenthesized_expression "(1 < uVar5)" ( (binary_expression "1 < uVar5" number_literal < identifier) )) (compound_statement "{\n        uVar4 = *(uint *)(param_1 + 0x28) / 5 + 1;\n        iVar3 = ((uVar2 - 1) / uVar4) * uVar4;\n        uVar4 = iVar3 + 2;\n        if (uVar4 == uVar1) {\n          uVar4 = iVar3 + 3;\n        }\n      }" { (expression_statement "uVar4 = *(uint *)(param_1 + 0x28) / 5 + 1;" (assignment_expression "uVar4 = *(uint *)(param_1 + 0x28) / 5 + 1" identifier = (binary_expression "*(uint *)(param_1 + 0x28) / 5 + 1" (binary_expression "*(uint *)(param_1 + 0x28) / 5" (pointer_expression "*(uint *)(param_1 + 0x28)" * (cast_expression "(uint *)(param_1 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) / number_literal) + number_literal)) ;) (expression_statement "iVar3 = ((uVar2 - 1) / uVar4) * uVar4;" (assignment_expression "iVar3 = ((uVar2 - 1) / uVar4) * uVar4" identifier = (binary_expression "((uVar2 - 1) / uVar4) * uVar4" (parenthesized_expression "((uVar2 - 1) / uVar4)" ( (binary_expression "(uVar2 - 1) / uVar4" (parenthesized_expression "(uVar2 - 1)" ( (binary_expression "uVar2 - 1" identifier - number_literal) )) / identifier) )) * identifier)) ;) (expression_statement "uVar4 = iVar3 + 2;" (assignment_expression "uVar4 = iVar3 + 2" identifier = (binary_expression "iVar3 + 2" identifier + number_literal)) ;) (if_statement "if (uVar4 == uVar1) {\n          uVar4 = iVar3 + 3;\n        }" if (parenthesized_expression "(uVar4 == uVar1)" ( (binary_expression "uVar4 == uVar1" identifier == identifier) )) (compound_statement "{\n          uVar4 = iVar3 + 3;\n        }" { (expression_statement "uVar4 = iVar3 + 3;" (assignment_expression "uVar4 = iVar3 + 3" identifier = (binary_expression "iVar3 + 3" identifier + number_literal)) ;) })) })) (expression_statement "uVar2 = uVar5;" (assignment_expression "uVar2 = uVar5" identifier = identifier) ;) }) while (parenthesized_expression "((uVar5 == uVar4) || (uVar5 == uVar1))" ( (binary_expression "(uVar5 == uVar4) || (uVar5 == uVar1)" (parenthesized_expression "(uVar5 == uVar4)" ( (binary_expression "uVar5 == uVar4" identifier == identifier) )) || (parenthesized_expression "(uVar5 == uVar1)" ( (binary_expression "uVar5 == uVar1" identifier == identifier) ))) )) ;) (if_statement "if (*(uint *)(param_1 + 0x30) < uVar5) goto LAB_0003e37f;" if (parenthesized_expression "(*(uint *)(param_1 + 0x30) < uVar5)" ( (binary_expression "*(uint *)(param_1 + 0x30) < uVar5" (pointer_expression "*(uint *)(param_1 + 0x30)" * (cast_expression "(uint *)(param_1 + 0x30)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) < identifier) )) (goto_statement "goto LAB_0003e37f;" goto statement_identifier ;)) (expression_statement "iVar3 = FUN_00039310(&local_24);" (assignment_expression "iVar3 = FUN_00039310(&local_24)" identifier = (call_expression "FUN_00039310(&local_24)" identifier (argument_list "(&local_24)" ( (pointer_expression "&local_24" & identifier) )))) ;) (if_statement "if (iVar3 == 0) {\n      if ((local_29 == '\x04') && (local_24 == extraout_EDX)) {\n        *param_4 = uVar5;\n        if (param_3 != (undefined4 *)0x0) {\n          *param_3 = 0;\n        }\n        goto LAB_0003e3b7;\n      }\n      goto LAB_0003e37f;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      if ((local_29 == '\x04') && (local_24 == extraout_EDX)) {\n        *param_4 = uVar5;\n        if (param_3 != (undefined4 *)0x0) {\n          *param_3 = 0;\n        }\n        goto LAB_0003e3b7;\n      }\n      goto LAB_0003e37f;\n    }" { (if_statement "if ((local_29 == '\x04') && (local_24 == extraout_EDX)) {\n        *param_4 = uVar5;\n        if (param_3 != (undefined4 *)0x0) {\n          *param_3 = 0;\n        }\n        goto LAB_0003e3b7;\n      }" if (parenthesized_expression "((local_29 == '\x04') && (local_24 == extraout_EDX))" ( (binary_expression "(local_29 == '\x04') && (local_24 == extraout_EDX)" (parenthesized_expression "(local_29 == '\x04')" ( (binary_expression "local_29 == '\x04'" identifier == (char_literal "'\x04'" ' escape_sequence ')) )) && (parenthesized_expression "(local_24 == extraout_EDX)" ( (binary_expression "local_24 == extraout_EDX" identifier == identifier) ))) )) (compound_statement "{\n        *param_4 = uVar5;\n        if (param_3 != (undefined4 *)0x0) {\n          *param_3 = 0;\n        }\n        goto LAB_0003e3b7;\n      }" { (expression_statement "*param_4 = uVar5;" (assignment_expression "*param_4 = uVar5" (pointer_expression "*param_4" * identifier) = identifier) ;) (if_statement "if (param_3 != (undefined4 *)0x0) {\n          *param_3 = 0;\n        }" if (parenthesized_expression "(param_3 != (undefined4 *)0x0)" ( (binary_expression "param_3 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          *param_3 = 0;\n        }" { (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) })) (goto_statement "goto LAB_0003e3b7;" goto statement_identifier ;) })) (goto_statement "goto LAB_0003e37f;" goto statement_identifier ;) })) (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) (if_statement "if (param_3 == (undefined4 *)0x0) goto LAB_0003e407;" if (parenthesized_expression "(param_3 == (undefined4 *)0x0)" ( (binary_expression "param_3 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0003e407;" goto statement_identifier ;)) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) }))) (if_statement "if (iVar3 == 0x65) {\n    iVar3 = 0;\n  }" if (parenthesized_expression "(iVar3 == 0x65)" ( (binary_expression "iVar3 == 0x65" identifier == number_literal) )) (compound_statement "{\n    iVar3 = 0;\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) })) (labeled_statement "LAB_0003e3b7:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar3;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar3;\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 iVar3;\n  }" { (return_statement "return iVar3;" return identifier ;) }))) comment (expression_statement "FUN_000d1450();" (call_expression "FUN_000d1450()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bp replaced with injection: get_pc_thunk.bp */\n\nint __regparm3 getOverflowPage(BtShared *pBt,Pgno ovfl,MemPage **ppPage,Pgno *pPgnoNext)\n\n{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  u8 *in_stack_ffffffb8;\n  Pgno *in_stack_ffffffbc;\n  char cStack_29;\n  MemPage *pPage;\n  Pgno PStack_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3e31d;\n  pPage = (MemPage *)0x0;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (pBt->autoVacuum == '\0') {\nLAB_0003e37f:\n    if (ppPage == (MemPage **)0x0) {\n      iVar2 = btreeGetPage(pBt,ovfl,&pPage,2);\n      if (iVar2 == 0) {\n        uVar4 = *(uint *)pPage->aData;\n        *pPgnoNext = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18\n        ;\n        sqlite3PagerUnrefNotNull(pPage->pDbPage);\n        goto LAB_0003e3b7;\n      }\n      *pPgnoNext = 0;\nLAB_0003e407:\n      if (pPage != (MemPage *)0x0) {\n        sqlite3PagerUnrefNotNull(pPage->pDbPage);\n      }\n      if (iVar2 == 0x65) {\n        iVar2 = 0;\n      }\n      goto LAB_0003e3b7;\n    }\n    iVar2 = btreeGetPage(pBt,ovfl,&pPage,0);\n    if (iVar2 == 0) {\n      uVar4 = *(uint *)pPage->aData;\n      *pPgnoNext = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;\n      *ppPage = pPage;\n      goto LAB_0003e3b7;\n    }\n    *pPgnoNext = 0;\n    *ppPage = pPage;\n  }\n  else {\n    uVar4 = ovfl + 1;\n    uVar1 = (uint)sqlite3PendingByte / pBt->pageSize + 1;\n    while( true ) {\n      uVar3 = 0;\n      if (1 < uVar4) {\n        uVar3 = pBt->usableSize / 5 + 1;\n        iVar2 = ((uVar4 - 2) / uVar3) * uVar3;\n        uVar3 = iVar2 + 2;\n        if (uVar3 == uVar1) {\n          uVar3 = iVar2 + 3;\n        }\n      }\n      if ((uVar4 != uVar3) && (uVar4 != uVar1)) break;\n      uVar4 = uVar4 + 1;\n    }\n    if (pBt->nPage < uVar4) goto LAB_0003e37f;\n    iVar2 = ptrmapGet(pBt,(Pgno)&PStack_24,in_stack_ffffffb8,in_stack_ffffffbc);\n    if (iVar2 == 0) {\n      if ((cStack_29 == '\x04') && (PStack_24 == ovfl)) {\n        *pPgnoNext = uVar4;\n        if (ppPage == (MemPage **)0x0) {\n          if (pPage != (MemPage *)0x0) {\n            sqlite3PagerUnrefNotNull(pPage->pDbPage);\n          }\n        }\n        else {\n          *ppPage = pPage;\n        }\n        goto LAB_0003e3b7;\n      }\n      goto LAB_0003e37f;\n    }\n    *pPgnoNext = 0;\n    if (ppPage == (MemPage **)0x0) goto LAB_0003e407;\n    *ppPage = pPage;\n  }\n  if (iVar2 == 0x65) {\n    iVar2 = 0;\n  }\nLAB_0003e3b7:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return iVar2;\n}\n\n" comment (function_definition "int __regparm3 getOverflowPage(BtShared *pBt,Pgno ovfl,MemPage **ppPage,Pgno *pPgnoNext)\n\n{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  u8 *in_stack_ffffffb8;\n  Pgno *in_stack_ffffffbc;\n  char cStack_29;\n  MemPage *pPage;\n  Pgno PStack_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3e31d;\n  pPage = (MemPage *)0x0;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (pBt->autoVacuum == '\0') {\nLAB_0003e37f:\n    if (ppPage == (MemPage **)0x0) {\n      iVar2 = btreeGetPage(pBt,ovfl,&pPage,2);\n      if (iVar2 == 0) {\n        uVar4 = *(uint *)pPage->aData;\n        *pPgnoNext = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18\n        ;\n        sqlite3PagerUnrefNotNull(pPage->pDbPage);\n        goto LAB_0003e3b7;\n      }\n      *pPgnoNext = 0;\nLAB_0003e407:\n      if (pPage != (MemPage *)0x0) {\n        sqlite3PagerUnrefNotNull(pPage->pDbPage);\n      }\n      if (iVar2 == 0x65) {\n        iVar2 = 0;\n      }\n      goto LAB_0003e3b7;\n    }\n    iVar2 = btreeGetPage(pBt,ovfl,&pPage,0);\n    if (iVar2 == 0) {\n      uVar4 = *(uint *)pPage->aData;\n      *pPgnoNext = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;\n      *ppPage = pPage;\n      goto LAB_0003e3b7;\n    }\n    *pPgnoNext = 0;\n    *ppPage = pPage;\n  }\n  else {\n    uVar4 = ovfl + 1;\n    uVar1 = (uint)sqlite3PendingByte / pBt->pageSize + 1;\n    while( true ) {\n      uVar3 = 0;\n      if (1 < uVar4) {\n        uVar3 = pBt->usableSize / 5 + 1;\n        iVar2 = ((uVar4 - 2) / uVar3) * uVar3;\n        uVar3 = iVar2 + 2;\n        if (uVar3 == uVar1) {\n          uVar3 = iVar2 + 3;\n        }\n      }\n      if ((uVar4 != uVar3) && (uVar4 != uVar1)) break;\n      uVar4 = uVar4 + 1;\n    }\n    if (pBt->nPage < uVar4) goto LAB_0003e37f;\n    iVar2 = ptrmapGet(pBt,(Pgno)&PStack_24,in_stack_ffffffb8,in_stack_ffffffbc);\n    if (iVar2 == 0) {\n      if ((cStack_29 == '\x04') && (PStack_24 == ovfl)) {\n        *pPgnoNext = uVar4;\n        if (ppPage == (MemPage **)0x0) {\n          if (pPage != (MemPage *)0x0) {\n            sqlite3PagerUnrefNotNull(pPage->pDbPage);\n          }\n        }\n        else {\n          *ppPage = pPage;\n        }\n        goto LAB_0003e3b7;\n      }\n      goto LAB_0003e37f;\n    }\n    *pPgnoNext = 0;\n    if (ppPage == (MemPage **)0x0) goto LAB_0003e407;\n    *ppPage = pPage;\n  }\n  if (iVar2 == 0x65) {\n    iVar2 = 0;\n  }\nLAB_0003e3b7:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return iVar2;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "getOverflowPage(BtShared *pBt,Pgno ovfl,MemPage **ppPage,Pgno *pPgnoNext)" identifier (parameter_list "(BtShared *pBt,Pgno ovfl,MemPage **ppPage,Pgno *pPgnoNext)" ( (parameter_declaration "BtShared *pBt" type_identifier (pointer_declarator "*pBt" * identifier)) , (parameter_declaration "Pgno ovfl" type_identifier identifier) , (parameter_declaration "MemPage **ppPage" type_identifier (pointer_declarator "**ppPage" * (pointer_declarator "*ppPage" * identifier))) , (parameter_declaration "Pgno *pPgnoNext" type_identifier (pointer_declarator "*pPgnoNext" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  int in_GS_OFFSET;\n  u8 *in_stack_ffffffb8;\n  Pgno *in_stack_ffffffbc;\n  char cStack_29;\n  MemPage *pPage;\n  Pgno PStack_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3e31d;\n  pPage = (MemPage *)0x0;\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (pBt->autoVacuum == '\0') {\nLAB_0003e37f:\n    if (ppPage == (MemPage **)0x0) {\n      iVar2 = btreeGetPage(pBt,ovfl,&pPage,2);\n      if (iVar2 == 0) {\n        uVar4 = *(uint *)pPage->aData;\n        *pPgnoNext = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18\n        ;\n        sqlite3PagerUnrefNotNull(pPage->pDbPage);\n        goto LAB_0003e3b7;\n      }\n      *pPgnoNext = 0;\nLAB_0003e407:\n      if (pPage != (MemPage *)0x0) {\n        sqlite3PagerUnrefNotNull(pPage->pDbPage);\n      }\n      if (iVar2 == 0x65) {\n        iVar2 = 0;\n      }\n      goto LAB_0003e3b7;\n    }\n    iVar2 = btreeGetPage(pBt,ovfl,&pPage,0);\n    if (iVar2 == 0) {\n      uVar4 = *(uint *)pPage->aData;\n      *pPgnoNext = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;\n      *ppPage = pPage;\n      goto LAB_0003e3b7;\n    }\n    *pPgnoNext = 0;\n    *ppPage = pPage;\n  }\n  else {\n    uVar4 = ovfl + 1;\n    uVar1 = (uint)sqlite3PendingByte / pBt->pageSize + 1;\n    while( true ) {\n      uVar3 = 0;\n      if (1 < uVar4) {\n        uVar3 = pBt->usableSize / 5 + 1;\n        iVar2 = ((uVar4 - 2) / uVar3) * uVar3;\n        uVar3 = iVar2 + 2;\n        if (uVar3 == uVar1) {\n          uVar3 = iVar2 + 3;\n        }\n      }\n      if ((uVar4 != uVar3) && (uVar4 != uVar1)) break;\n      uVar4 = uVar4 + 1;\n    }\n    if (pBt->nPage < uVar4) goto LAB_0003e37f;\n    iVar2 = ptrmapGet(pBt,(Pgno)&PStack_24,in_stack_ffffffb8,in_stack_ffffffbc);\n    if (iVar2 == 0) {\n      if ((cStack_29 == '\x04') && (PStack_24 == ovfl)) {\n        *pPgnoNext = uVar4;\n        if (ppPage == (MemPage **)0x0) {\n          if (pPage != (MemPage *)0x0) {\n            sqlite3PagerUnrefNotNull(pPage->pDbPage);\n          }\n        }\n        else {\n          *ppPage = pPage;\n        }\n        goto LAB_0003e3b7;\n      }\n      goto LAB_0003e37f;\n    }\n    *pPgnoNext = 0;\n    if (ppPage == (MemPage **)0x0) goto LAB_0003e407;\n    *ppPage = pPage;\n  }\n  if (iVar2 == 0x65) {\n    iVar2 = 0;\n  }\nLAB_0003e3b7:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }\n  return iVar2;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "u8 *in_stack_ffffffb8;" type_identifier (pointer_declarator "*in_stack_ffffffb8" * identifier) ;) (declaration "Pgno *in_stack_ffffffbc;" type_identifier (pointer_declarator "*in_stack_ffffffbc" * identifier) ;) (declaration "char cStack_29;" primitive_type identifier ;) (declaration "MemPage *pPage;" type_identifier (pointer_declarator "*pPage" * identifier) ;) (declaration "Pgno PStack_24;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x3e31d;" (assignment_expression "uStack_14 = 0x3e31d" identifier = number_literal) ;) (expression_statement "pPage = (MemPage *)0x0;" (assignment_expression "pPage = (MemPage *)0x0" identifier = (cast_expression "(MemPage *)0x0" ( (type_descriptor "MemPage *" type_identifier (abstract_pointer_declarator "*" *)) ) 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) ))))) ;) (if_statement "if (pBt->autoVacuum == '\0') {\nLAB_0003e37f:\n    if (ppPage == (MemPage **)0x0) {\n      iVar2 = btreeGetPage(pBt,ovfl,&pPage,2);\n      if (iVar2 == 0) {\n        uVar4 = *(uint *)pPage->aData;\n        *pPgnoNext = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18\n        ;\n        sqlite3PagerUnrefNotNull(pPage->pDbPage);\n        goto LAB_0003e3b7;\n      }\n      *pPgnoNext = 0;\nLAB_0003e407:\n      if (pPage != (MemPage *)0x0) {\n        sqlite3PagerUnrefNotNull(pPage->pDbPage);\n      }\n      if (iVar2 == 0x65) {\n        iVar2 = 0;\n      }\n      goto LAB_0003e3b7;\n    }\n    iVar2 = btreeGetPage(pBt,ovfl,&pPage,0);\n    if (iVar2 == 0) {\n      uVar4 = *(uint *)pPage->aData;\n      *pPgnoNext = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;\n      *ppPage = pPage;\n      goto LAB_0003e3b7;\n    }\n    *pPgnoNext = 0;\n    *ppPage = pPage;\n  }\n  else {\n    uVar4 = ovfl + 1;\n    uVar1 = (uint)sqlite3PendingByte / pBt->pageSize + 1;\n    while( true ) {\n      uVar3 = 0;\n      if (1 < uVar4) {\n        uVar3 = pBt->usableSize / 5 + 1;\n        iVar2 = ((uVar4 - 2) / uVar3) * uVar3;\n        uVar3 = iVar2 + 2;\n        if (uVar3 == uVar1) {\n          uVar3 = iVar2 + 3;\n        }\n      }\n      if ((uVar4 != uVar3) && (uVar4 != uVar1)) break;\n      uVar4 = uVar4 + 1;\n    }\n    if (pBt->nPage < uVar4) goto LAB_0003e37f;\n    iVar2 = ptrmapGet(pBt,(Pgno)&PStack_24,in_stack_ffffffb8,in_stack_ffffffbc);\n    if (iVar2 == 0) {\n      if ((cStack_29 == '\x04') && (PStack_24 == ovfl)) {\n        *pPgnoNext = uVar4;\n        if (ppPage == (MemPage **)0x0) {\n          if (pPage != (MemPage *)0x0) {\n            sqlite3PagerUnrefNotNull(pPage->pDbPage);\n          }\n        }\n        else {\n          *ppPage = pPage;\n        }\n        goto LAB_0003e3b7;\n      }\n      goto LAB_0003e37f;\n    }\n    *pPgnoNext = 0;\n    if (ppPage == (MemPage **)0x0) goto LAB_0003e407;\n    *ppPage = pPage;\n  }" if (parenthesized_expression "(pBt->autoVacuum == '\0')" ( (binary_expression "pBt->autoVacuum == '\0'" (field_expression "pBt->autoVacuum" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_0003e37f:\n    if (ppPage == (MemPage **)0x0) {\n      iVar2 = btreeGetPage(pBt,ovfl,&pPage,2);\n      if (iVar2 == 0) {\n        uVar4 = *(uint *)pPage->aData;\n        *pPgnoNext = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18\n        ;\n        sqlite3PagerUnrefNotNull(pPage->pDbPage);\n        goto LAB_0003e3b7;\n      }\n      *pPgnoNext = 0;\nLAB_0003e407:\n      if (pPage != (MemPage *)0x0) {\n        sqlite3PagerUnrefNotNull(pPage->pDbPage);\n      }\n      if (iVar2 == 0x65) {\n        iVar2 = 0;\n      }\n      goto LAB_0003e3b7;\n    }\n    iVar2 = btreeGetPage(pBt,ovfl,&pPage,0);\n    if (iVar2 == 0) {\n      uVar4 = *(uint *)pPage->aData;\n      *pPgnoNext = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;\n      *ppPage = pPage;\n      goto LAB_0003e3b7;\n    }\n    *pPgnoNext = 0;\n    *ppPage = pPage;\n  }" { (labeled_statement "LAB_0003e37f:\n    if (ppPage == (MemPage **)0x0) {\n      iVar2 = btreeGetPage(pBt,ovfl,&pPage,2);\n      if (iVar2 == 0) {\n        uVar4 = *(uint *)pPage->aData;\n        *pPgnoNext = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18\n        ;\n        sqlite3PagerUnrefNotNull(pPage->pDbPage);\n        goto LAB_0003e3b7;\n      }\n      *pPgnoNext = 0;\nLAB_0003e407:\n      if (pPage != (MemPage *)0x0) {\n        sqlite3PagerUnrefNotNull(pPage->pDbPage);\n      }\n      if (iVar2 == 0x65) {\n        iVar2 = 0;\n      }\n      goto LAB_0003e3b7;\n    }" statement_identifier : (if_statement "if (ppPage == (MemPage **)0x0) {\n      iVar2 = btreeGetPage(pBt,ovfl,&pPage,2);\n      if (iVar2 == 0) {\n        uVar4 = *(uint *)pPage->aData;\n        *pPgnoNext = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18\n        ;\n        sqlite3PagerUnrefNotNull(pPage->pDbPage);\n        goto LAB_0003e3b7;\n      }\n      *pPgnoNext = 0;\nLAB_0003e407:\n      if (pPage != (MemPage *)0x0) {\n        sqlite3PagerUnrefNotNull(pPage->pDbPage);\n      }\n      if (iVar2 == 0x65) {\n        iVar2 = 0;\n      }\n      goto LAB_0003e3b7;\n    }" if (parenthesized_expression "(ppPage == (MemPage **)0x0)" ( (binary_expression "ppPage == (MemPage **)0x0" identifier == (cast_expression "(MemPage **)0x0" ( (type_descriptor "MemPage **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n      iVar2 = btreeGetPage(pBt,ovfl,&pPage,2);\n      if (iVar2 == 0) {\n        uVar4 = *(uint *)pPage->aData;\n        *pPgnoNext = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18\n        ;\n        sqlite3PagerUnrefNotNull(pPage->pDbPage);\n        goto LAB_0003e3b7;\n      }\n      *pPgnoNext = 0;\nLAB_0003e407:\n      if (pPage != (MemPage *)0x0) {\n        sqlite3PagerUnrefNotNull(pPage->pDbPage);\n      }\n      if (iVar2 == 0x65) {\n        iVar2 = 0;\n      }\n      goto LAB_0003e3b7;\n    }" { (expression_statement "iVar2 = btreeGetPage(pBt,ovfl,&pPage,2);" (assignment_expression "iVar2 = btreeGetPage(pBt,ovfl,&pPage,2)" identifier = (call_expression "btreeGetPage(pBt,ovfl,&pPage,2)" identifier (argument_list "(pBt,ovfl,&pPage,2)" ( identifier , identifier , (pointer_expression "&pPage" & identifier) , number_literal )))) ;) (if_statement "if (iVar2 == 0) {\n        uVar4 = *(uint *)pPage->aData;\n        *pPgnoNext = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18\n        ;\n        sqlite3PagerUnrefNotNull(pPage->pDbPage);\n        goto LAB_0003e3b7;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar4 = *(uint *)pPage->aData;\n        *pPgnoNext = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18\n        ;\n        sqlite3PagerUnrefNotNull(pPage->pDbPage);\n        goto LAB_0003e3b7;\n      }" { (expression_statement "uVar4 = *(uint *)pPage->aData;" (assignment_expression "uVar4 = *(uint *)pPage->aData" identifier = (pointer_expression "*(uint *)pPage->aData" * (cast_expression "(uint *)pPage->aData" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pPage->aData" identifier -> field_identifier)))) ;) (expression_statement "*pPgnoNext = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18\n        ;" (assignment_expression "*pPgnoNext = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18" (pointer_expression "*pPgnoNext" * identifier) = (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18" (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8" (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8" (binary_expression "uVar4 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar4 & 0xff0000) >> 8" (parenthesized_expression "(uVar4 & 0xff0000)" ( (binary_expression "uVar4 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar4 & 0xff00) << 8" (parenthesized_expression "(uVar4 & 0xff00)" ( (binary_expression "uVar4 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar4 << 0x18" identifier << number_literal))) ;) (expression_statement "sqlite3PagerUnrefNotNull(pPage->pDbPage);" (call_expression "sqlite3PagerUnrefNotNull(pPage->pDbPage)" identifier (argument_list "(pPage->pDbPage)" ( (field_expression "pPage->pDbPage" identifier -> field_identifier) ))) ;) (goto_statement "goto LAB_0003e3b7;" goto statement_identifier ;) })) (expression_statement "*pPgnoNext = 0;" (assignment_expression "*pPgnoNext = 0" (pointer_expression "*pPgnoNext" * identifier) = number_literal) ;) (labeled_statement "LAB_0003e407:\n      if (pPage != (MemPage *)0x0) {\n        sqlite3PagerUnrefNotNull(pPage->pDbPage);\n      }" statement_identifier : (if_statement "if (pPage != (MemPage *)0x0) {\n        sqlite3PagerUnrefNotNull(pPage->pDbPage);\n      }" if (parenthesized_expression "(pPage != (MemPage *)0x0)" ( (binary_expression "pPage != (MemPage *)0x0" identifier != (cast_expression "(MemPage *)0x0" ( (type_descriptor "MemPage *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n        sqlite3PagerUnrefNotNull(pPage->pDbPage);\n      }" { (expression_statement "sqlite3PagerUnrefNotNull(pPage->pDbPage);" (call_expression "sqlite3PagerUnrefNotNull(pPage->pDbPage)" identifier (argument_list "(pPage->pDbPage)" ( (field_expression "pPage->pDbPage" identifier -> field_identifier) ))) ;) }))) (if_statement "if (iVar2 == 0x65) {\n        iVar2 = 0;\n      }" if (parenthesized_expression "(iVar2 == 0x65)" ( (binary_expression "iVar2 == 0x65" identifier == number_literal) )) (compound_statement "{\n        iVar2 = 0;\n      }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) })) (goto_statement "goto LAB_0003e3b7;" goto statement_identifier ;) }))) (expression_statement "iVar2 = btreeGetPage(pBt,ovfl,&pPage,0);" (assignment_expression "iVar2 = btreeGetPage(pBt,ovfl,&pPage,0)" identifier = (call_expression "btreeGetPage(pBt,ovfl,&pPage,0)" identifier (argument_list "(pBt,ovfl,&pPage,0)" ( identifier , identifier , (pointer_expression "&pPage" & identifier) , number_literal )))) ;) (if_statement "if (iVar2 == 0) {\n      uVar4 = *(uint *)pPage->aData;\n      *pPgnoNext = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;\n      *ppPage = pPage;\n      goto LAB_0003e3b7;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar4 = *(uint *)pPage->aData;\n      *pPgnoNext = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;\n      *ppPage = pPage;\n      goto LAB_0003e3b7;\n    }" { (expression_statement "uVar4 = *(uint *)pPage->aData;" (assignment_expression "uVar4 = *(uint *)pPage->aData" identifier = (pointer_expression "*(uint *)pPage->aData" * (cast_expression "(uint *)pPage->aData" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pPage->aData" identifier -> field_identifier)))) ;) (expression_statement "*pPgnoNext = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18;" (assignment_expression "*pPgnoNext = uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18" (pointer_expression "*pPgnoNext" * identifier) = (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8 | uVar4 << 0x18" (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8 | (uVar4 & 0xff00) << 8" (binary_expression "uVar4 >> 0x18 | (uVar4 & 0xff0000) >> 8" (binary_expression "uVar4 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar4 & 0xff0000) >> 8" (parenthesized_expression "(uVar4 & 0xff0000)" ( (binary_expression "uVar4 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar4 & 0xff00) << 8" (parenthesized_expression "(uVar4 & 0xff00)" ( (binary_expression "uVar4 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar4 << 0x18" identifier << number_literal))) ;) (expression_statement "*ppPage = pPage;" (assignment_expression "*ppPage = pPage" (pointer_expression "*ppPage" * identifier) = identifier) ;) (goto_statement "goto LAB_0003e3b7;" goto statement_identifier ;) })) (expression_statement "*pPgnoNext = 0;" (assignment_expression "*pPgnoNext = 0" (pointer_expression "*pPgnoNext" * identifier) = number_literal) ;) (expression_statement "*ppPage = pPage;" (assignment_expression "*ppPage = pPage" (pointer_expression "*ppPage" * identifier) = identifier) ;) }) (else_clause "else {\n    uVar4 = ovfl + 1;\n    uVar1 = (uint)sqlite3PendingByte / pBt->pageSize + 1;\n    while( true ) {\n      uVar3 = 0;\n      if (1 < uVar4) {\n        uVar3 = pBt->usableSize / 5 + 1;\n        iVar2 = ((uVar4 - 2) / uVar3) * uVar3;\n        uVar3 = iVar2 + 2;\n        if (uVar3 == uVar1) {\n          uVar3 = iVar2 + 3;\n        }\n      }\n      if ((uVar4 != uVar3) && (uVar4 != uVar1)) break;\n      uVar4 = uVar4 + 1;\n    }\n    if (pBt->nPage < uVar4) goto LAB_0003e37f;\n    iVar2 = ptrmapGet(pBt,(Pgno)&PStack_24,in_stack_ffffffb8,in_stack_ffffffbc);\n    if (iVar2 == 0) {\n      if ((cStack_29 == '\x04') && (PStack_24 == ovfl)) {\n        *pPgnoNext = uVar4;\n        if (ppPage == (MemPage **)0x0) {\n          if (pPage != (MemPage *)0x0) {\n            sqlite3PagerUnrefNotNull(pPage->pDbPage);\n          }\n        }\n        else {\n          *ppPage = pPage;\n        }\n        goto LAB_0003e3b7;\n      }\n      goto LAB_0003e37f;\n    }\n    *pPgnoNext = 0;\n    if (ppPage == (MemPage **)0x0) goto LAB_0003e407;\n    *ppPage = pPage;\n  }" else (compound_statement "{\n    uVar4 = ovfl + 1;\n    uVar1 = (uint)sqlite3PendingByte / pBt->pageSize + 1;\n    while( true ) {\n      uVar3 = 0;\n      if (1 < uVar4) {\n        uVar3 = pBt->usableSize / 5 + 1;\n        iVar2 = ((uVar4 - 2) / uVar3) * uVar3;\n        uVar3 = iVar2 + 2;\n        if (uVar3 == uVar1) {\n          uVar3 = iVar2 + 3;\n        }\n      }\n      if ((uVar4 != uVar3) && (uVar4 != uVar1)) break;\n      uVar4 = uVar4 + 1;\n    }\n    if (pBt->nPage < uVar4) goto LAB_0003e37f;\n    iVar2 = ptrmapGet(pBt,(Pgno)&PStack_24,in_stack_ffffffb8,in_stack_ffffffbc);\n    if (iVar2 == 0) {\n      if ((cStack_29 == '\x04') && (PStack_24 == ovfl)) {\n        *pPgnoNext = uVar4;\n        if (ppPage == (MemPage **)0x0) {\n          if (pPage != (MemPage *)0x0) {\n            sqlite3PagerUnrefNotNull(pPage->pDbPage);\n          }\n        }\n        else {\n          *ppPage = pPage;\n        }\n        goto LAB_0003e3b7;\n      }\n      goto LAB_0003e37f;\n    }\n    *pPgnoNext = 0;\n    if (ppPage == (MemPage **)0x0) goto LAB_0003e407;\n    *ppPage = pPage;\n  }" { (expression_statement "uVar4 = ovfl + 1;" (assignment_expression "uVar4 = ovfl + 1" identifier = (binary_expression "ovfl + 1" identifier + number_literal)) ;) (expression_statement "uVar1 = (uint)sqlite3PendingByte / pBt->pageSize + 1;" (assignment_expression "uVar1 = (uint)sqlite3PendingByte / pBt->pageSize + 1" identifier = (binary_expression "(uint)sqlite3PendingByte / pBt->pageSize + 1" (binary_expression "(uint)sqlite3PendingByte / pBt->pageSize" (cast_expression "(uint)sqlite3PendingByte" ( (type_descriptor "uint" type_identifier) ) identifier) / (field_expression "pBt->pageSize" identifier -> field_identifier)) + number_literal)) ;) (while_statement "while( true ) {\n      uVar3 = 0;\n      if (1 < uVar4) {\n        uVar3 = pBt->usableSize / 5 + 1;\n        iVar2 = ((uVar4 - 2) / uVar3) * uVar3;\n        uVar3 = iVar2 + 2;\n        if (uVar3 == uVar1) {\n          uVar3 = iVar2 + 3;\n        }\n      }\n      if ((uVar4 != uVar3) && (uVar4 != uVar1)) break;\n      uVar4 = uVar4 + 1;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      uVar3 = 0;\n      if (1 < uVar4) {\n        uVar3 = pBt->usableSize / 5 + 1;\n        iVar2 = ((uVar4 - 2) / uVar3) * uVar3;\n        uVar3 = iVar2 + 2;\n        if (uVar3 == uVar1) {\n          uVar3 = iVar2 + 3;\n        }\n      }\n      if ((uVar4 != uVar3) && (uVar4 != uVar1)) break;\n      uVar4 = uVar4 + 1;\n    }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (if_statement "if (1 < uVar4) {\n        uVar3 = pBt->usableSize / 5 + 1;\n        iVar2 = ((uVar4 - 2) / uVar3) * uVar3;\n        uVar3 = iVar2 + 2;\n        if (uVar3 == uVar1) {\n          uVar3 = iVar2 + 3;\n        }\n      }" if (parenthesized_expression "(1 < uVar4)" ( (binary_expression "1 < uVar4" number_literal < identifier) )) (compound_statement "{\n        uVar3 = pBt->usableSize / 5 + 1;\n        iVar2 = ((uVar4 - 2) / uVar3) * uVar3;\n        uVar3 = iVar2 + 2;\n        if (uVar3 == uVar1) {\n          uVar3 = iVar2 + 3;\n        }\n      }" { (expression_statement "uVar3 = pBt->usableSize / 5 + 1;" (assignment_expression "uVar3 = pBt->usableSize / 5 + 1" identifier = (binary_expression "pBt->usableSize / 5 + 1" (binary_expression "pBt->usableSize / 5" (field_expression "pBt->usableSize" identifier -> field_identifier) / number_literal) + number_literal)) ;) (expression_statement "iVar2 = ((uVar4 - 2) / uVar3) * uVar3;" (assignment_expression "iVar2 = ((uVar4 - 2) / uVar3) * uVar3" identifier = (binary_expression "((uVar4 - 2) / uVar3) * uVar3" (parenthesized_expression "((uVar4 - 2) / uVar3)" ( (binary_expression "(uVar4 - 2) / uVar3" (parenthesized_expression "(uVar4 - 2)" ( (binary_expression "uVar4 - 2" identifier - number_literal) )) / identifier) )) * identifier)) ;) (expression_statement "uVar3 = iVar2 + 2;" (assignment_expression "uVar3 = iVar2 + 2" identifier = (binary_expression "iVar2 + 2" identifier + number_literal)) ;) (if_statement "if (uVar3 == uVar1) {\n          uVar3 = iVar2 + 3;\n        }" if (parenthesized_expression "(uVar3 == uVar1)" ( (binary_expression "uVar3 == uVar1" identifier == identifier) )) (compound_statement "{\n          uVar3 = iVar2 + 3;\n        }" { (expression_statement "uVar3 = iVar2 + 3;" (assignment_expression "uVar3 = iVar2 + 3" identifier = (binary_expression "iVar2 + 3" identifier + number_literal)) ;) })) })) (if_statement "if ((uVar4 != uVar3) && (uVar4 != uVar1)) break;" if (parenthesized_expression "((uVar4 != uVar3) && (uVar4 != uVar1))" ( (binary_expression "(uVar4 != uVar3) && (uVar4 != uVar1)" (parenthesized_expression "(uVar4 != uVar3)" ( (binary_expression "uVar4 != uVar3" identifier != identifier) )) && (parenthesized_expression "(uVar4 != uVar1)" ( (binary_expression "uVar4 != uVar1" identifier != identifier) ))) )) (break_statement "break;" break ;)) (expression_statement "uVar4 = uVar4 + 1;" (assignment_expression "uVar4 = uVar4 + 1" identifier = (binary_expression "uVar4 + 1" identifier + number_literal)) ;) })) (if_statement "if (pBt->nPage < uVar4) goto LAB_0003e37f;" if (parenthesized_expression "(pBt->nPage < uVar4)" ( (binary_expression "pBt->nPage < uVar4" (field_expression "pBt->nPage" identifier -> field_identifier) < identifier) )) (goto_statement "goto LAB_0003e37f;" goto statement_identifier ;)) (expression_statement "iVar2 = ptrmapGet(pBt,(Pgno)&PStack_24,in_stack_ffffffb8,in_stack_ffffffbc);" (assignment_expression "iVar2 = ptrmapGet(pBt,(Pgno)&PStack_24,in_stack_ffffffb8,in_stack_ffffffbc)" identifier = (call_expression "ptrmapGet(pBt,(Pgno)&PStack_24,in_stack_ffffffb8,in_stack_ffffffbc)" identifier (argument_list "(pBt,(Pgno)&PStack_24,in_stack_ffffffb8,in_stack_ffffffbc)" ( identifier , (binary_expression "(Pgno)&PStack_24" (parenthesized_expression "(Pgno)" ( identifier )) & identifier) , identifier , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n      if ((cStack_29 == '\x04') && (PStack_24 == ovfl)) {\n        *pPgnoNext = uVar4;\n        if (ppPage == (MemPage **)0x0) {\n          if (pPage != (MemPage *)0x0) {\n            sqlite3PagerUnrefNotNull(pPage->pDbPage);\n          }\n        }\n        else {\n          *ppPage = pPage;\n        }\n        goto LAB_0003e3b7;\n      }\n      goto LAB_0003e37f;\n    }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n      if ((cStack_29 == '\x04') && (PStack_24 == ovfl)) {\n        *pPgnoNext = uVar4;\n        if (ppPage == (MemPage **)0x0) {\n          if (pPage != (MemPage *)0x0) {\n            sqlite3PagerUnrefNotNull(pPage->pDbPage);\n          }\n        }\n        else {\n          *ppPage = pPage;\n        }\n        goto LAB_0003e3b7;\n      }\n      goto LAB_0003e37f;\n    }" { (if_statement "if ((cStack_29 == '\x04') && (PStack_24 == ovfl)) {\n        *pPgnoNext = uVar4;\n        if (ppPage == (MemPage **)0x0) {\n          if (pPage != (MemPage *)0x0) {\n            sqlite3PagerUnrefNotNull(pPage->pDbPage);\n          }\n        }\n        else {\n          *ppPage = pPage;\n        }\n        goto LAB_0003e3b7;\n      }" if (parenthesized_expression "((cStack_29 == '\x04') && (PStack_24 == ovfl))" ( (binary_expression "(cStack_29 == '\x04') && (PStack_24 == ovfl)" (parenthesized_expression "(cStack_29 == '\x04')" ( (binary_expression "cStack_29 == '\x04'" identifier == (char_literal "'\x04'" ' escape_sequence ')) )) && (parenthesized_expression "(PStack_24 == ovfl)" ( (binary_expression "PStack_24 == ovfl" identifier == identifier) ))) )) (compound_statement "{\n        *pPgnoNext = uVar4;\n        if (ppPage == (MemPage **)0x0) {\n          if (pPage != (MemPage *)0x0) {\n            sqlite3PagerUnrefNotNull(pPage->pDbPage);\n          }\n        }\n        else {\n          *ppPage = pPage;\n        }\n        goto LAB_0003e3b7;\n      }" { (expression_statement "*pPgnoNext = uVar4;" (assignment_expression "*pPgnoNext = uVar4" (pointer_expression "*pPgnoNext" * identifier) = identifier) ;) (if_statement "if (ppPage == (MemPage **)0x0) {\n          if (pPage != (MemPage *)0x0) {\n            sqlite3PagerUnrefNotNull(pPage->pDbPage);\n          }\n        }\n        else {\n          *ppPage = pPage;\n        }" if (parenthesized_expression "(ppPage == (MemPage **)0x0)" ( (binary_expression "ppPage == (MemPage **)0x0" identifier == (cast_expression "(MemPage **)0x0" ( (type_descriptor "MemPage **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (compound_statement "{\n          if (pPage != (MemPage *)0x0) {\n            sqlite3PagerUnrefNotNull(pPage->pDbPage);\n          }\n        }" { (if_statement "if (pPage != (MemPage *)0x0) {\n            sqlite3PagerUnrefNotNull(pPage->pDbPage);\n          }" if (parenthesized_expression "(pPage != (MemPage *)0x0)" ( (binary_expression "pPage != (MemPage *)0x0" identifier != (cast_expression "(MemPage *)0x0" ( (type_descriptor "MemPage *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            sqlite3PagerUnrefNotNull(pPage->pDbPage);\n          }" { (expression_statement "sqlite3PagerUnrefNotNull(pPage->pDbPage);" (call_expression "sqlite3PagerUnrefNotNull(pPage->pDbPage)" identifier (argument_list "(pPage->pDbPage)" ( (field_expression "pPage->pDbPage" identifier -> field_identifier) ))) ;) })) }) (else_clause "else {\n          *ppPage = pPage;\n        }" else (compound_statement "{\n          *ppPage = pPage;\n        }" { (expression_statement "*ppPage = pPage;" (assignment_expression "*ppPage = pPage" (pointer_expression "*ppPage" * identifier) = identifier) ;) }))) (goto_statement "goto LAB_0003e3b7;" goto statement_identifier ;) })) (goto_statement "goto LAB_0003e37f;" goto statement_identifier ;) })) (expression_statement "*pPgnoNext = 0;" (assignment_expression "*pPgnoNext = 0" (pointer_expression "*pPgnoNext" * identifier) = number_literal) ;) (if_statement "if (ppPage == (MemPage **)0x0) goto LAB_0003e407;" if (parenthesized_expression "(ppPage == (MemPage **)0x0)" ( (binary_expression "ppPage == (MemPage **)0x0" identifier == (cast_expression "(MemPage **)0x0" ( (type_descriptor "MemPage **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal)) )) (goto_statement "goto LAB_0003e407;" goto statement_identifier ;)) (expression_statement "*ppPage = pPage;" (assignment_expression "*ppPage = pPage" (pointer_expression "*ppPage" * identifier) = identifier) ;) }))) (if_statement "if (iVar2 == 0x65) {\n    iVar2 = 0;\n  }" if (parenthesized_expression "(iVar2 == 0x65)" ( (binary_expression "iVar2 == 0x65" identifier == number_literal) )) (compound_statement "{\n    iVar2 = 0;\n  }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) })) (labeled_statement "LAB_0003e3b7:\n  if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" statement_identifier : (if_statement "if (local_20 != *(int *)(in_GS_OFFSET + 0x14)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" if (parenthesized_expression "(local_20 != *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 != *(int *)(in_GS_OFFSET + 0x14)" identifier != (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail_local();\n  }" { comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) }))) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "int __regparm3 FUN_0003e310(int param_1,undefined4 param_2,undefined4 *param_3,uint *param_4)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint extraout_EDX;\n  uint uVar4;\n  uint uVar5;\n  int unaff_EBP;\n  int in_GS_OFFSET;\n  char local_29;\n  uint local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3e31d;\n  FUN_000d0ab3();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(char *)(param_1 + 0x11) == '\0') {\nLAB_0003e37f:\n    if (param_3 == (undefined4 *)0x0) {\n      iVar3 = FUN_0001f6d0(2);\n      if (iVar3 == 0) {\n        uVar1 = *puRam00000038;\n        *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n        FUN_0001f280();\n        goto LAB_0003e3b7;\n      }\n      *param_4 = 0;\nLAB_0003e407:\n      if (iVar3 == 0x65) {\n        iVar3 = 0;\n      }\n      goto LAB_0003e3b7;\n    }\n    iVar3 = FUN_0001f6d0(0);\n    if (iVar3 == 0) {\n      uVar1 = *puRam00000038;\n      *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n      *param_3 = 0;\n      goto LAB_0003e3b7;\n    }\n    *param_4 = 0;\n    *param_3 = 0;\n  }\n  else {\n    uVar1 = *(uint *)(&DAT_000c803b + unaff_EBP) / *(uint *)(param_1 + 0x24) + 1;\n    uVar2 = extraout_EDX;\n    do {\n      uVar5 = uVar2 + 1;\n      uVar4 = 0;\n      if (1 < uVar5) {\n        uVar4 = *(uint *)(param_1 + 0x28) / 5 + 1;\n        iVar3 = ((uVar2 - 1) / uVar4) * uVar4;\n        uVar4 = iVar3 + 2;\n        if (uVar4 == uVar1) {\n          uVar4 = iVar3 + 3;\n        }\n      }\n      uVar2 = uVar5;\n    } while ((uVar5 == uVar4) || (uVar5 == uVar1));\n    if (*(uint *)(param_1 + 0x30) < uVar5) goto LAB_0003e37f;\n    iVar3 = FUN_00039310(&local_24);\n    if (iVar3 == 0) {\n      if ((local_29 == '\x04') && (local_24 == extraout_EDX)) {\n        *param_4 = uVar5;\n        if (param_3 != (undefined4 *)0x0) {\n          *param_3 = 0;\n        }\n        goto LAB_0003e3b7;\n      }\n      goto LAB_0003e37f;\n    }\n    *param_4 = 0;\n    if (param_3 == (undefined4 *)0x0) goto LAB_0003e407;\n    *param_3 = 0;\n  }\n  if (iVar3 == 0x65) {\n    iVar3 = 0;\n  }\nLAB_0003e3b7:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar3;\n  }\n                    \n  FUN_000d1450();\n}\n\n" (function_definition "int __regparm3 FUN_0003e310(int param_1,undefined4 param_2,undefined4 *param_3,uint *param_4)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint extraout_EDX;\n  uint uVar4;\n  uint uVar5;\n  int unaff_EBP;\n  int in_GS_OFFSET;\n  char local_29;\n  uint local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3e31d;\n  FUN_000d0ab3();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(char *)(param_1 + 0x11) == '\0') {\nLAB_0003e37f:\n    if (param_3 == (undefined4 *)0x0) {\n      iVar3 = FUN_0001f6d0(2);\n      if (iVar3 == 0) {\n        uVar1 = *puRam00000038;\n        *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n        FUN_0001f280();\n        goto LAB_0003e3b7;\n      }\n      *param_4 = 0;\nLAB_0003e407:\n      if (iVar3 == 0x65) {\n        iVar3 = 0;\n      }\n      goto LAB_0003e3b7;\n    }\n    iVar3 = FUN_0001f6d0(0);\n    if (iVar3 == 0) {\n      uVar1 = *puRam00000038;\n      *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n      *param_3 = 0;\n      goto LAB_0003e3b7;\n    }\n    *param_4 = 0;\n    *param_3 = 0;\n  }\n  else {\n    uVar1 = *(uint *)(&DAT_000c803b + unaff_EBP) / *(uint *)(param_1 + 0x24) + 1;\n    uVar2 = extraout_EDX;\n    do {\n      uVar5 = uVar2 + 1;\n      uVar4 = 0;\n      if (1 < uVar5) {\n        uVar4 = *(uint *)(param_1 + 0x28) / 5 + 1;\n        iVar3 = ((uVar2 - 1) / uVar4) * uVar4;\n        uVar4 = iVar3 + 2;\n        if (uVar4 == uVar1) {\n          uVar4 = iVar3 + 3;\n        }\n      }\n      uVar2 = uVar5;\n    } while ((uVar5 == uVar4) || (uVar5 == uVar1));\n    if (*(uint *)(param_1 + 0x30) < uVar5) goto LAB_0003e37f;\n    iVar3 = FUN_00039310(&local_24);\n    if (iVar3 == 0) {\n      if ((local_29 == '\x04') && (local_24 == extraout_EDX)) {\n        *param_4 = uVar5;\n        if (param_3 != (undefined4 *)0x0) {\n          *param_3 = 0;\n        }\n        goto LAB_0003e3b7;\n      }\n      goto LAB_0003e37f;\n    }\n    *param_4 = 0;\n    if (param_3 == (undefined4 *)0x0) goto LAB_0003e407;\n    *param_3 = 0;\n  }\n  if (iVar3 == 0x65) {\n    iVar3 = 0;\n  }\nLAB_0003e3b7:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar3;\n  }\n                    \n  FUN_000d1450();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0003e310(int param_1,undefined4 param_2,undefined4 *param_3,uint *param_4)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 *param_3,uint *param_4)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 *param_3" type_identifier (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "uint *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint extraout_EDX;\n  uint uVar4;\n  uint uVar5;\n  int unaff_EBP;\n  int in_GS_OFFSET;\n  char local_29;\n  uint local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3e31d;\n  FUN_000d0ab3();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(char *)(param_1 + 0x11) == '\0') {\nLAB_0003e37f:\n    if (param_3 == (undefined4 *)0x0) {\n      iVar3 = FUN_0001f6d0(2);\n      if (iVar3 == 0) {\n        uVar1 = *puRam00000038;\n        *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n        FUN_0001f280();\n        goto LAB_0003e3b7;\n      }\n      *param_4 = 0;\nLAB_0003e407:\n      if (iVar3 == 0x65) {\n        iVar3 = 0;\n      }\n      goto LAB_0003e3b7;\n    }\n    iVar3 = FUN_0001f6d0(0);\n    if (iVar3 == 0) {\n      uVar1 = *puRam00000038;\n      *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n      *param_3 = 0;\n      goto LAB_0003e3b7;\n    }\n    *param_4 = 0;\n    *param_3 = 0;\n  }\n  else {\n    uVar1 = *(uint *)(&DAT_000c803b + unaff_EBP) / *(uint *)(param_1 + 0x24) + 1;\n    uVar2 = extraout_EDX;\n    do {\n      uVar5 = uVar2 + 1;\n      uVar4 = 0;\n      if (1 < uVar5) {\n        uVar4 = *(uint *)(param_1 + 0x28) / 5 + 1;\n        iVar3 = ((uVar2 - 1) / uVar4) * uVar4;\n        uVar4 = iVar3 + 2;\n        if (uVar4 == uVar1) {\n          uVar4 = iVar3 + 3;\n        }\n      }\n      uVar2 = uVar5;\n    } while ((uVar5 == uVar4) || (uVar5 == uVar1));\n    if (*(uint *)(param_1 + 0x30) < uVar5) goto LAB_0003e37f;\n    iVar3 = FUN_00039310(&local_24);\n    if (iVar3 == 0) {\n      if ((local_29 == '\x04') && (local_24 == extraout_EDX)) {\n        *param_4 = uVar5;\n        if (param_3 != (undefined4 *)0x0) {\n          *param_3 = 0;\n        }\n        goto LAB_0003e3b7;\n      }\n      goto LAB_0003e37f;\n    }\n    *param_4 = 0;\n    if (param_3 == (undefined4 *)0x0) goto LAB_0003e407;\n    *param_3 = 0;\n  }\n  if (iVar3 == 0x65) {\n    iVar3 = 0;\n  }\nLAB_0003e3b7:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar3;\n  }\n                    \n  FUN_000d1450();\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "uint extraout_EDX;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int unaff_EBP;" primitive_type identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "char local_29;" primitive_type identifier ;) (declaration "uint local_24;" type_identifier identifier ;) (declaration "int local_20;" primitive_type identifier ;) (declaration "undefined4 uStack_14;" type_identifier identifier ;) (expression_statement "uStack_14 = 0x3e31d;" (assignment_expression "uStack_14 = 0x3e31d" identifier = number_literal) ;) (expression_statement "FUN_000d0ab3();" (call_expression "FUN_000d0ab3()" identifier (argument_list "()" ( ))) ;) (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) ))))) ;) (if_statement "if (*(char *)(param_1 + 0x11) == '\0') {\nLAB_0003e37f:\n    if (param_3 == (undefined4 *)0x0) {\n      iVar3 = FUN_0001f6d0(2);\n      if (iVar3 == 0) {\n        uVar1 = *puRam00000038;\n        *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n        FUN_0001f280();\n        goto LAB_0003e3b7;\n      }\n      *param_4 = 0;\nLAB_0003e407:\n      if (iVar3 == 0x65) {\n        iVar3 = 0;\n      }\n      goto LAB_0003e3b7;\n    }\n    iVar3 = FUN_0001f6d0(0);\n    if (iVar3 == 0) {\n      uVar1 = *puRam00000038;\n      *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n      *param_3 = 0;\n      goto LAB_0003e3b7;\n    }\n    *param_4 = 0;\n    *param_3 = 0;\n  }\n  else {\n    uVar1 = *(uint *)(&DAT_000c803b + unaff_EBP) / *(uint *)(param_1 + 0x24) + 1;\n    uVar2 = extraout_EDX;\n    do {\n      uVar5 = uVar2 + 1;\n      uVar4 = 0;\n      if (1 < uVar5) {\n        uVar4 = *(uint *)(param_1 + 0x28) / 5 + 1;\n        iVar3 = ((uVar2 - 1) / uVar4) * uVar4;\n        uVar4 = iVar3 + 2;\n        if (uVar4 == uVar1) {\n          uVar4 = iVar3 + 3;\n        }\n      }\n      uVar2 = uVar5;\n    } while ((uVar5 == uVar4) || (uVar5 == uVar1));\n    if (*(uint *)(param_1 + 0x30) < uVar5) goto LAB_0003e37f;\n    iVar3 = FUN_00039310(&local_24);\n    if (iVar3 == 0) {\n      if ((local_29 == '\x04') && (local_24 == extraout_EDX)) {\n        *param_4 = uVar5;\n        if (param_3 != (undefined4 *)0x0) {\n          *param_3 = 0;\n        }\n        goto LAB_0003e3b7;\n      }\n      goto LAB_0003e37f;\n    }\n    *param_4 = 0;\n    if (param_3 == (undefined4 *)0x0) goto LAB_0003e407;\n    *param_3 = 0;\n  }" if (parenthesized_expression "(*(char *)(param_1 + 0x11) == '\0')" ( (binary_expression "*(char *)(param_1 + 0x11) == '\0'" (pointer_expression "*(char *)(param_1 + 0x11)" * (cast_expression "(char *)(param_1 + 0x11)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x11)" ( (binary_expression "param_1 + 0x11" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\nLAB_0003e37f:\n    if (param_3 == (undefined4 *)0x0) {\n      iVar3 = FUN_0001f6d0(2);\n      if (iVar3 == 0) {\n        uVar1 = *puRam00000038;\n        *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n        FUN_0001f280();\n        goto LAB_0003e3b7;\n      }\n      *param_4 = 0;\nLAB_0003e407:\n      if (iVar3 == 0x65) {\n        iVar3 = 0;\n      }\n      goto LAB_0003e3b7;\n    }\n    iVar3 = FUN_0001f6d0(0);\n    if (iVar3 == 0) {\n      uVar1 = *puRam00000038;\n      *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n      *param_3 = 0;\n      goto LAB_0003e3b7;\n    }\n    *param_4 = 0;\n    *param_3 = 0;\n  }" { (labeled_statement "LAB_0003e37f:\n    if (param_3 == (undefined4 *)0x0) {\n      iVar3 = FUN_0001f6d0(2);\n      if (iVar3 == 0) {\n        uVar1 = *puRam00000038;\n        *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n        FUN_0001f280();\n        goto LAB_0003e3b7;\n      }\n      *param_4 = 0;\nLAB_0003e407:\n      if (iVar3 == 0x65) {\n        iVar3 = 0;\n      }\n      goto LAB_0003e3b7;\n    }" statement_identifier : (if_statement "if (param_3 == (undefined4 *)0x0) {\n      iVar3 = FUN_0001f6d0(2);\n      if (iVar3 == 0) {\n        uVar1 = *puRam00000038;\n        *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n        FUN_0001f280();\n        goto LAB_0003e3b7;\n      }\n      *param_4 = 0;\nLAB_0003e407:\n      if (iVar3 == 0x65) {\n        iVar3 = 0;\n      }\n      goto LAB_0003e3b7;\n    }" if (parenthesized_expression "(param_3 == (undefined4 *)0x0)" ( (binary_expression "param_3 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar3 = FUN_0001f6d0(2);\n      if (iVar3 == 0) {\n        uVar1 = *puRam00000038;\n        *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n        FUN_0001f280();\n        goto LAB_0003e3b7;\n      }\n      *param_4 = 0;\nLAB_0003e407:\n      if (iVar3 == 0x65) {\n        iVar3 = 0;\n      }\n      goto LAB_0003e3b7;\n    }" { (expression_statement "iVar3 = FUN_0001f6d0(2);" (assignment_expression "iVar3 = FUN_0001f6d0(2)" identifier = (call_expression "FUN_0001f6d0(2)" identifier (argument_list "(2)" ( number_literal )))) ;) (if_statement "if (iVar3 == 0) {\n        uVar1 = *puRam00000038;\n        *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n        FUN_0001f280();\n        goto LAB_0003e3b7;\n      }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n        uVar1 = *puRam00000038;\n        *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n        FUN_0001f280();\n        goto LAB_0003e3b7;\n      }" { (expression_statement "uVar1 = *puRam00000038;" (assignment_expression "uVar1 = *puRam00000038" identifier = (pointer_expression "*puRam00000038" * identifier)) ;) (expression_statement "*param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;" (assignment_expression "*param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18" (pointer_expression "*param_4" * identifier) = (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8" (binary_expression "uVar1 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" ( (binary_expression "uVar1 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" ( (binary_expression "uVar1 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar1 << 0x18" identifier << number_literal))) ;) (expression_statement "FUN_0001f280();" (call_expression "FUN_0001f280()" identifier (argument_list "()" ( ))) ;) (goto_statement "goto LAB_0003e3b7;" goto statement_identifier ;) })) (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) (labeled_statement "LAB_0003e407:\n      if (iVar3 == 0x65) {\n        iVar3 = 0;\n      }" statement_identifier : (if_statement "if (iVar3 == 0x65) {\n        iVar3 = 0;\n      }" if (parenthesized_expression "(iVar3 == 0x65)" ( (binary_expression "iVar3 == 0x65" identifier == number_literal) )) (compound_statement "{\n        iVar3 = 0;\n      }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) }))) (goto_statement "goto LAB_0003e3b7;" goto statement_identifier ;) }))) (expression_statement "iVar3 = FUN_0001f6d0(0);" (assignment_expression "iVar3 = FUN_0001f6d0(0)" identifier = (call_expression "FUN_0001f6d0(0)" identifier (argument_list "(0)" ( number_literal )))) ;) (if_statement "if (iVar3 == 0) {\n      uVar1 = *puRam00000038;\n      *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n      *param_3 = 0;\n      goto LAB_0003e3b7;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar1 = *puRam00000038;\n      *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n      *param_3 = 0;\n      goto LAB_0003e3b7;\n    }" { (expression_statement "uVar1 = *puRam00000038;" (assignment_expression "uVar1 = *puRam00000038" identifier = (pointer_expression "*puRam00000038" * identifier)) ;) (expression_statement "*param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;" (assignment_expression "*param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18" (pointer_expression "*param_4" * identifier) = (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8" (binary_expression "uVar1 >> 0x18" identifier >> number_literal) | (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" ( (binary_expression "uVar1 & 0xff0000" identifier & number_literal) )) >> number_literal)) | (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" ( (binary_expression "uVar1 & 0xff00" identifier & number_literal) )) << number_literal)) | (binary_expression "uVar1 << 0x18" identifier << number_literal))) ;) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) (goto_statement "goto LAB_0003e3b7;" goto statement_identifier ;) })) (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) }) (else_clause "else {\n    uVar1 = *(uint *)(&DAT_000c803b + unaff_EBP) / *(uint *)(param_1 + 0x24) + 1;\n    uVar2 = extraout_EDX;\n    do {\n      uVar5 = uVar2 + 1;\n      uVar4 = 0;\n      if (1 < uVar5) {\n        uVar4 = *(uint *)(param_1 + 0x28) / 5 + 1;\n        iVar3 = ((uVar2 - 1) / uVar4) * uVar4;\n        uVar4 = iVar3 + 2;\n        if (uVar4 == uVar1) {\n          uVar4 = iVar3 + 3;\n        }\n      }\n      uVar2 = uVar5;\n    } while ((uVar5 == uVar4) || (uVar5 == uVar1));\n    if (*(uint *)(param_1 + 0x30) < uVar5) goto LAB_0003e37f;\n    iVar3 = FUN_00039310(&local_24);\n    if (iVar3 == 0) {\n      if ((local_29 == '\x04') && (local_24 == extraout_EDX)) {\n        *param_4 = uVar5;\n        if (param_3 != (undefined4 *)0x0) {\n          *param_3 = 0;\n        }\n        goto LAB_0003e3b7;\n      }\n      goto LAB_0003e37f;\n    }\n    *param_4 = 0;\n    if (param_3 == (undefined4 *)0x0) goto LAB_0003e407;\n    *param_3 = 0;\n  }" else (compound_statement "{\n    uVar1 = *(uint *)(&DAT_000c803b + unaff_EBP) / *(uint *)(param_1 + 0x24) + 1;\n    uVar2 = extraout_EDX;\n    do {\n      uVar5 = uVar2 + 1;\n      uVar4 = 0;\n      if (1 < uVar5) {\n        uVar4 = *(uint *)(param_1 + 0x28) / 5 + 1;\n        iVar3 = ((uVar2 - 1) / uVar4) * uVar4;\n        uVar4 = iVar3 + 2;\n        if (uVar4 == uVar1) {\n          uVar4 = iVar3 + 3;\n        }\n      }\n      uVar2 = uVar5;\n    } while ((uVar5 == uVar4) || (uVar5 == uVar1));\n    if (*(uint *)(param_1 + 0x30) < uVar5) goto LAB_0003e37f;\n    iVar3 = FUN_00039310(&local_24);\n    if (iVar3 == 0) {\n      if ((local_29 == '\x04') && (local_24 == extraout_EDX)) {\n        *param_4 = uVar5;\n        if (param_3 != (undefined4 *)0x0) {\n          *param_3 = 0;\n        }\n        goto LAB_0003e3b7;\n      }\n      goto LAB_0003e37f;\n    }\n    *param_4 = 0;\n    if (param_3 == (undefined4 *)0x0) goto LAB_0003e407;\n    *param_3 = 0;\n  }" { (expression_statement "uVar1 = *(uint *)(&DAT_000c803b + unaff_EBP) / *(uint *)(param_1 + 0x24) + 1;" (assignment_expression "uVar1 = *(uint *)(&DAT_000c803b + unaff_EBP) / *(uint *)(param_1 + 0x24) + 1" identifier = (binary_expression "*(uint *)(&DAT_000c803b + unaff_EBP) / *(uint *)(param_1 + 0x24) + 1" (binary_expression "*(uint *)(&DAT_000c803b + unaff_EBP) / *(uint *)(param_1 + 0x24)" (pointer_expression "*(uint *)(&DAT_000c803b + unaff_EBP)" * (cast_expression "(uint *)(&DAT_000c803b + unaff_EBP)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(&DAT_000c803b + unaff_EBP)" ( (binary_expression "&DAT_000c803b + unaff_EBP" (pointer_expression "&DAT_000c803b" & identifier) + identifier) )))) / (pointer_expression "*(uint *)(param_1 + 0x24)" * (cast_expression "(uint *)(param_1 + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x24)" ( (binary_expression "param_1 + 0x24" identifier + number_literal) ))))) + number_literal)) ;) (expression_statement "uVar2 = extraout_EDX;" (assignment_expression "uVar2 = extraout_EDX" identifier = identifier) ;) (do_statement "do {\n      uVar5 = uVar2 + 1;\n      uVar4 = 0;\n      if (1 < uVar5) {\n        uVar4 = *(uint *)(param_1 + 0x28) / 5 + 1;\n        iVar3 = ((uVar2 - 1) / uVar4) * uVar4;\n        uVar4 = iVar3 + 2;\n        if (uVar4 == uVar1) {\n          uVar4 = iVar3 + 3;\n        }\n      }\n      uVar2 = uVar5;\n    } while ((uVar5 == uVar4) || (uVar5 == uVar1));" do (compound_statement "{\n      uVar5 = uVar2 + 1;\n      uVar4 = 0;\n      if (1 < uVar5) {\n        uVar4 = *(uint *)(param_1 + 0x28) / 5 + 1;\n        iVar3 = ((uVar2 - 1) / uVar4) * uVar4;\n        uVar4 = iVar3 + 2;\n        if (uVar4 == uVar1) {\n          uVar4 = iVar3 + 3;\n        }\n      }\n      uVar2 = uVar5;\n    }" { (expression_statement "uVar5 = uVar2 + 1;" (assignment_expression "uVar5 = uVar2 + 1" identifier = (binary_expression "uVar2 + 1" identifier + number_literal)) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) (if_statement "if (1 < uVar5) {\n        uVar4 = *(uint *)(param_1 + 0x28) / 5 + 1;\n        iVar3 = ((uVar2 - 1) / uVar4) * uVar4;\n        uVar4 = iVar3 + 2;\n        if (uVar4 == uVar1) {\n          uVar4 = iVar3 + 3;\n        }\n      }" if (parenthesized_expression "(1 < uVar5)" ( (binary_expression "1 < uVar5" number_literal < identifier) )) (compound_statement "{\n        uVar4 = *(uint *)(param_1 + 0x28) / 5 + 1;\n        iVar3 = ((uVar2 - 1) / uVar4) * uVar4;\n        uVar4 = iVar3 + 2;\n        if (uVar4 == uVar1) {\n          uVar4 = iVar3 + 3;\n        }\n      }" { (expression_statement "uVar4 = *(uint *)(param_1 + 0x28) / 5 + 1;" (assignment_expression "uVar4 = *(uint *)(param_1 + 0x28) / 5 + 1" identifier = (binary_expression "*(uint *)(param_1 + 0x28) / 5 + 1" (binary_expression "*(uint *)(param_1 + 0x28) / 5" (pointer_expression "*(uint *)(param_1 + 0x28)" * (cast_expression "(uint *)(param_1 + 0x28)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) )))) / number_literal) + number_literal)) ;) (expression_statement "iVar3 = ((uVar2 - 1) / uVar4) * uVar4;" (assignment_expression "iVar3 = ((uVar2 - 1) / uVar4) * uVar4" identifier = (binary_expression "((uVar2 - 1) / uVar4) * uVar4" (parenthesized_expression "((uVar2 - 1) / uVar4)" ( (binary_expression "(uVar2 - 1) / uVar4" (parenthesized_expression "(uVar2 - 1)" ( (binary_expression "uVar2 - 1" identifier - number_literal) )) / identifier) )) * identifier)) ;) (expression_statement "uVar4 = iVar3 + 2;" (assignment_expression "uVar4 = iVar3 + 2" identifier = (binary_expression "iVar3 + 2" identifier + number_literal)) ;) (if_statement "if (uVar4 == uVar1) {\n          uVar4 = iVar3 + 3;\n        }" if (parenthesized_expression "(uVar4 == uVar1)" ( (binary_expression "uVar4 == uVar1" identifier == identifier) )) (compound_statement "{\n          uVar4 = iVar3 + 3;\n        }" { (expression_statement "uVar4 = iVar3 + 3;" (assignment_expression "uVar4 = iVar3 + 3" identifier = (binary_expression "iVar3 + 3" identifier + number_literal)) ;) })) })) (expression_statement "uVar2 = uVar5;" (assignment_expression "uVar2 = uVar5" identifier = identifier) ;) }) while (parenthesized_expression "((uVar5 == uVar4) || (uVar5 == uVar1))" ( (binary_expression "(uVar5 == uVar4) || (uVar5 == uVar1)" (parenthesized_expression "(uVar5 == uVar4)" ( (binary_expression "uVar5 == uVar4" identifier == identifier) )) || (parenthesized_expression "(uVar5 == uVar1)" ( (binary_expression "uVar5 == uVar1" identifier == identifier) ))) )) ;) (if_statement "if (*(uint *)(param_1 + 0x30) < uVar5) goto LAB_0003e37f;" if (parenthesized_expression "(*(uint *)(param_1 + 0x30) < uVar5)" ( (binary_expression "*(uint *)(param_1 + 0x30) < uVar5" (pointer_expression "*(uint *)(param_1 + 0x30)" * (cast_expression "(uint *)(param_1 + 0x30)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) )))) < identifier) )) (goto_statement "goto LAB_0003e37f;" goto statement_identifier ;)) (expression_statement "iVar3 = FUN_00039310(&local_24);" (assignment_expression "iVar3 = FUN_00039310(&local_24)" identifier = (call_expression "FUN_00039310(&local_24)" identifier (argument_list "(&local_24)" ( (pointer_expression "&local_24" & identifier) )))) ;) (if_statement "if (iVar3 == 0) {\n      if ((local_29 == '\x04') && (local_24 == extraout_EDX)) {\n        *param_4 = uVar5;\n        if (param_3 != (undefined4 *)0x0) {\n          *param_3 = 0;\n        }\n        goto LAB_0003e3b7;\n      }\n      goto LAB_0003e37f;\n    }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n      if ((local_29 == '\x04') && (local_24 == extraout_EDX)) {\n        *param_4 = uVar5;\n        if (param_3 != (undefined4 *)0x0) {\n          *param_3 = 0;\n        }\n        goto LAB_0003e3b7;\n      }\n      goto LAB_0003e37f;\n    }" { (if_statement "if ((local_29 == '\x04') && (local_24 == extraout_EDX)) {\n        *param_4 = uVar5;\n        if (param_3 != (undefined4 *)0x0) {\n          *param_3 = 0;\n        }\n        goto LAB_0003e3b7;\n      }" if (parenthesized_expression "((local_29 == '\x04') && (local_24 == extraout_EDX))" ( (binary_expression "(local_29 == '\x04') && (local_24 == extraout_EDX)" (parenthesized_expression "(local_29 == '\x04')" ( (binary_expression "local_29 == '\x04'" identifier == (char_literal "'\x04'" ' escape_sequence ')) )) && (parenthesized_expression "(local_24 == extraout_EDX)" ( (binary_expression "local_24 == extraout_EDX" identifier == identifier) ))) )) (compound_statement "{\n        *param_4 = uVar5;\n        if (param_3 != (undefined4 *)0x0) {\n          *param_3 = 0;\n        }\n        goto LAB_0003e3b7;\n      }" { (expression_statement "*param_4 = uVar5;" (assignment_expression "*param_4 = uVar5" (pointer_expression "*param_4" * identifier) = identifier) ;) (if_statement "if (param_3 != (undefined4 *)0x0) {\n          *param_3 = 0;\n        }" if (parenthesized_expression "(param_3 != (undefined4 *)0x0)" ( (binary_expression "param_3 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          *param_3 = 0;\n        }" { (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) })) (goto_statement "goto LAB_0003e3b7;" goto statement_identifier ;) })) (goto_statement "goto LAB_0003e37f;" goto statement_identifier ;) })) (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" * identifier) = number_literal) ;) (if_statement "if (param_3 == (undefined4 *)0x0) goto LAB_0003e407;" if (parenthesized_expression "(param_3 == (undefined4 *)0x0)" ( (binary_expression "param_3 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0003e407;" goto statement_identifier ;)) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" * identifier) = number_literal) ;) }))) (if_statement "if (iVar3 == 0x65) {\n    iVar3 = 0;\n  }" if (parenthesized_expression "(iVar3 == 0x65)" ( (binary_expression "iVar3 == 0x65" identifier == number_literal) )) (compound_statement "{\n    iVar3 = 0;\n  }" { (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" identifier = number_literal) ;) })) (labeled_statement "LAB_0003e3b7:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar3;\n  }" statement_identifier : (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar3;\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 iVar3;\n  }" { (return_statement "return iVar3;" return identifier ;) }))) (expression_statement "FUN_000d1450();" (call_expression "FUN_000d1450()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT << LIT))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) (goto_statement goto statement_identifier ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression (binary_expression (binary_expression (binary_expression IDENT >> LIT) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) >> LIT)) | (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) << LIT)) | (binary_expression IDENT << LIT))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression & IDENT) + IDENT) )))) / (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) / LIT) + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT - LIT) )) / IDENT) )) * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) })) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == IDENT) )) || (parenthesized_expression ( (binary_expression IDENT == IDENT) ))) )) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < IDENT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression & IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (binary_expression IDENT == IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) })) (goto_statement goto statement_identifier ;) })) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = 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 ( ))) ;) })))
(function_definition "int __regparm3 FUN_0003e310(int param_1,undefined4 param_2,undefined4 *param_3,uint *param_4)\n\n{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint extraout_EDX;\n  uint uVar4;\n  uint uVar5;\n  int unaff_EBP;\n  int in_GS_OFFSET;\n  char local_29;\n  uint local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3e31d;\n  FUN_000d0ab3();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(char *)(param_1 + 0x11) == '\0') {\nLAB_0003e37f:\n    if (param_3 == (undefined4 *)0x0) {\n      iVar3 = FUN_0001f6d0(2);\n      if (iVar3 == 0) {\n        uVar1 = *puRam00000038;\n        *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n        FUN_0001f280();\n        goto LAB_0003e3b7;\n      }\n      *param_4 = 0;\nLAB_0003e407:\n      if (iVar3 == 0x65) {\n        iVar3 = 0;\n      }\n      goto LAB_0003e3b7;\n    }\n    iVar3 = FUN_0001f6d0(0);\n    if (iVar3 == 0) {\n      uVar1 = *puRam00000038;\n      *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n      *param_3 = 0;\n      goto LAB_0003e3b7;\n    }\n    *param_4 = 0;\n    *param_3 = 0;\n  }\n  else {\n    uVar1 = *(uint *)(&DAT_000c803b + unaff_EBP) / *(uint *)(param_1 + 0x24) + 1;\n    uVar2 = extraout_EDX;\n    do {\n      uVar5 = uVar2 + 1;\n      uVar4 = 0;\n      if (1 < uVar5) {\n        uVar4 = *(uint *)(param_1 + 0x28) / 5 + 1;\n        iVar3 = ((uVar2 - 1) / uVar4) * uVar4;\n        uVar4 = iVar3 + 2;\n        if (uVar4 == uVar1) {\n          uVar4 = iVar3 + 3;\n        }\n      }\n      uVar2 = uVar5;\n    } while ((uVar5 == uVar4) || (uVar5 == uVar1));\n    if (*(uint *)(param_1 + 0x30) < uVar5) goto LAB_0003e37f;\n    iVar3 = FUN_00039310(&local_24);\n    if (iVar3 == 0) {\n      if ((local_29 == '\x04') && (local_24 == extraout_EDX)) {\n        *param_4 = uVar5;\n        if (param_3 != (undefined4 *)0x0) {\n          *param_3 = 0;\n        }\n        goto LAB_0003e3b7;\n      }\n      goto LAB_0003e37f;\n    }\n    *param_4 = 0;\n    if (param_3 == (undefined4 *)0x0) goto LAB_0003e407;\n    *param_3 = 0;\n  }\n  if (iVar3 == 0x65) {\n    iVar3 = 0;\n  }\nLAB_0003e3b7:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar3;\n  }\n                    \n  FUN_000d1450();\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0003e310(int param_1,undefined4 param_2,undefined4 *param_3,uint *param_4)" (identifier "FUN_0003e310") (parameter_list "(int param_1,undefined4 param_2,undefined4 *param_3,uint *param_4)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 *param_3" (type_identifier "undefined4") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "uint *param_4" (type_identifier "uint") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  uint uVar1;\n  uint uVar2;\n  int iVar3;\n  uint extraout_EDX;\n  uint uVar4;\n  uint uVar5;\n  int unaff_EBP;\n  int in_GS_OFFSET;\n  char local_29;\n  uint local_24;\n  int local_20;\n  undefined4 uStack_14;\n  \n  uStack_14 = 0x3e31d;\n  FUN_000d0ab3();\n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  if (*(char *)(param_1 + 0x11) == '\0') {\nLAB_0003e37f:\n    if (param_3 == (undefined4 *)0x0) {\n      iVar3 = FUN_0001f6d0(2);\n      if (iVar3 == 0) {\n        uVar1 = *puRam00000038;\n        *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n        FUN_0001f280();\n        goto LAB_0003e3b7;\n      }\n      *param_4 = 0;\nLAB_0003e407:\n      if (iVar3 == 0x65) {\n        iVar3 = 0;\n      }\n      goto LAB_0003e3b7;\n    }\n    iVar3 = FUN_0001f6d0(0);\n    if (iVar3 == 0) {\n      uVar1 = *puRam00000038;\n      *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n      *param_3 = 0;\n      goto LAB_0003e3b7;\n    }\n    *param_4 = 0;\n    *param_3 = 0;\n  }\n  else {\n    uVar1 = *(uint *)(&DAT_000c803b + unaff_EBP) / *(uint *)(param_1 + 0x24) + 1;\n    uVar2 = extraout_EDX;\n    do {\n      uVar5 = uVar2 + 1;\n      uVar4 = 0;\n      if (1 < uVar5) {\n        uVar4 = *(uint *)(param_1 + 0x28) / 5 + 1;\n        iVar3 = ((uVar2 - 1) / uVar4) * uVar4;\n        uVar4 = iVar3 + 2;\n        if (uVar4 == uVar1) {\n          uVar4 = iVar3 + 3;\n        }\n      }\n      uVar2 = uVar5;\n    } while ((uVar5 == uVar4) || (uVar5 == uVar1));\n    if (*(uint *)(param_1 + 0x30) < uVar5) goto LAB_0003e37f;\n    iVar3 = FUN_00039310(&local_24);\n    if (iVar3 == 0) {\n      if ((local_29 == '\x04') && (local_24 == extraout_EDX)) {\n        *param_4 = uVar5;\n        if (param_3 != (undefined4 *)0x0) {\n          *param_3 = 0;\n        }\n        goto LAB_0003e3b7;\n      }\n      goto LAB_0003e37f;\n    }\n    *param_4 = 0;\n    if (param_3 == (undefined4 *)0x0) goto LAB_0003e407;\n    *param_3 = 0;\n  }\n  if (iVar3 == 0x65) {\n    iVar3 = 0;\n  }\nLAB_0003e3b7:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar3;\n  }\n                    \n  FUN_000d1450();\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (declaration "uint uVar2;" (type_identifier "uint") (identifier "uVar2") (; ";")) (declaration "int iVar3;" (primitive_type "int") (identifier "iVar3") (; ";")) (declaration "uint extraout_EDX;" (type_identifier "uint") (identifier "extraout_EDX") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "int unaff_EBP;" (primitive_type "int") (identifier "unaff_EBP") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "char local_29;" (primitive_type "char") (identifier "local_29") (; ";")) (declaration "uint local_24;" (type_identifier "uint") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (declaration "undefined4 uStack_14;" (type_identifier "undefined4") (identifier "uStack_14") (; ";")) (expression_statement "uStack_14 = 0x3e31d;" (assignment_expression "uStack_14 = 0x3e31d" (identifier "uStack_14") (= "=") (number_literal "0x3e31d")) (; ";")) (expression_statement "FUN_000d0ab3();" (call_expression "FUN_000d0ab3()" (identifier "FUN_000d0ab3") (argument_list "()" (( "(") () ")"))) (; ";")) (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")) () ")"))))) (; ";")) (if_statement "if (*(char *)(param_1 + 0x11) == '\0') {\nLAB_0003e37f:\n    if (param_3 == (undefined4 *)0x0) {\n      iVar3 = FUN_0001f6d0(2);\n      if (iVar3 == 0) {\n        uVar1 = *puRam00000038;\n        *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n        FUN_0001f280();\n        goto LAB_0003e3b7;\n      }\n      *param_4 = 0;\nLAB_0003e407:\n      if (iVar3 == 0x65) {\n        iVar3 = 0;\n      }\n      goto LAB_0003e3b7;\n    }\n    iVar3 = FUN_0001f6d0(0);\n    if (iVar3 == 0) {\n      uVar1 = *puRam00000038;\n      *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n      *param_3 = 0;\n      goto LAB_0003e3b7;\n    }\n    *param_4 = 0;\n    *param_3 = 0;\n  }\n  else {\n    uVar1 = *(uint *)(&DAT_000c803b + unaff_EBP) / *(uint *)(param_1 + 0x24) + 1;\n    uVar2 = extraout_EDX;\n    do {\n      uVar5 = uVar2 + 1;\n      uVar4 = 0;\n      if (1 < uVar5) {\n        uVar4 = *(uint *)(param_1 + 0x28) / 5 + 1;\n        iVar3 = ((uVar2 - 1) / uVar4) * uVar4;\n        uVar4 = iVar3 + 2;\n        if (uVar4 == uVar1) {\n          uVar4 = iVar3 + 3;\n        }\n      }\n      uVar2 = uVar5;\n    } while ((uVar5 == uVar4) || (uVar5 == uVar1));\n    if (*(uint *)(param_1 + 0x30) < uVar5) goto LAB_0003e37f;\n    iVar3 = FUN_00039310(&local_24);\n    if (iVar3 == 0) {\n      if ((local_29 == '\x04') && (local_24 == extraout_EDX)) {\n        *param_4 = uVar5;\n        if (param_3 != (undefined4 *)0x0) {\n          *param_3 = 0;\n        }\n        goto LAB_0003e3b7;\n      }\n      goto LAB_0003e37f;\n    }\n    *param_4 = 0;\n    if (param_3 == (undefined4 *)0x0) goto LAB_0003e407;\n    *param_3 = 0;\n  }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0x11) == '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0x11) == '\0'" (pointer_expression "*(char *)(param_1 + 0x11)" (* "*") (cast_expression "(char *)(param_1 + 0x11)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x11)" (( "(") (binary_expression "param_1 + 0x11" (identifier "param_1") (+ "+") (number_literal "0x11")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\nLAB_0003e37f:\n    if (param_3 == (undefined4 *)0x0) {\n      iVar3 = FUN_0001f6d0(2);\n      if (iVar3 == 0) {\n        uVar1 = *puRam00000038;\n        *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n        FUN_0001f280();\n        goto LAB_0003e3b7;\n      }\n      *param_4 = 0;\nLAB_0003e407:\n      if (iVar3 == 0x65) {\n        iVar3 = 0;\n      }\n      goto LAB_0003e3b7;\n    }\n    iVar3 = FUN_0001f6d0(0);\n    if (iVar3 == 0) {\n      uVar1 = *puRam00000038;\n      *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n      *param_3 = 0;\n      goto LAB_0003e3b7;\n    }\n    *param_4 = 0;\n    *param_3 = 0;\n  }" ({ "{") (labeled_statement "LAB_0003e37f:\n    if (param_3 == (undefined4 *)0x0) {\n      iVar3 = FUN_0001f6d0(2);\n      if (iVar3 == 0) {\n        uVar1 = *puRam00000038;\n        *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n        FUN_0001f280();\n        goto LAB_0003e3b7;\n      }\n      *param_4 = 0;\nLAB_0003e407:\n      if (iVar3 == 0x65) {\n        iVar3 = 0;\n      }\n      goto LAB_0003e3b7;\n    }" (statement_identifier "LAB_0003e37f") (: ":") (if_statement "if (param_3 == (undefined4 *)0x0) {\n      iVar3 = FUN_0001f6d0(2);\n      if (iVar3 == 0) {\n        uVar1 = *puRam00000038;\n        *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n        FUN_0001f280();\n        goto LAB_0003e3b7;\n      }\n      *param_4 = 0;\nLAB_0003e407:\n      if (iVar3 == 0x65) {\n        iVar3 = 0;\n      }\n      goto LAB_0003e3b7;\n    }" (if "if") (parenthesized_expression "(param_3 == (undefined4 *)0x0)" (( "(") (binary_expression "param_3 == (undefined4 *)0x0" (identifier "param_3") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      iVar3 = FUN_0001f6d0(2);\n      if (iVar3 == 0) {\n        uVar1 = *puRam00000038;\n        *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n        FUN_0001f280();\n        goto LAB_0003e3b7;\n      }\n      *param_4 = 0;\nLAB_0003e407:\n      if (iVar3 == 0x65) {\n        iVar3 = 0;\n      }\n      goto LAB_0003e3b7;\n    }" ({ "{") (expression_statement "iVar3 = FUN_0001f6d0(2);" (assignment_expression "iVar3 = FUN_0001f6d0(2)" (identifier "iVar3") (= "=") (call_expression "FUN_0001f6d0(2)" (identifier "FUN_0001f6d0") (argument_list "(2)" (( "(") (number_literal "2") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n        uVar1 = *puRam00000038;\n        *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n        FUN_0001f280();\n        goto LAB_0003e3b7;\n      }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        uVar1 = *puRam00000038;\n        *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n        FUN_0001f280();\n        goto LAB_0003e3b7;\n      }" ({ "{") (expression_statement "uVar1 = *puRam00000038;" (assignment_expression "uVar1 = *puRam00000038" (identifier "uVar1") (= "=") (pointer_expression "*puRam00000038" (* "*") (identifier "puRam00000038"))) (; ";")) (expression_statement "*param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;" (assignment_expression "*param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8" (binary_expression "uVar1 >> 0x18" (identifier "uVar1") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" (( "(") (binary_expression "uVar1 & 0xff0000" (identifier "uVar1") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" (( "(") (binary_expression "uVar1 & 0xff00" (identifier "uVar1") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "uVar1 << 0x18" (identifier "uVar1") (<< "<<") (number_literal "0x18")))) (; ";")) (expression_statement "FUN_0001f280();" (call_expression "FUN_0001f280()" (identifier "FUN_0001f280") (argument_list "()" (( "(") () ")"))) (; ";")) (goto_statement "goto LAB_0003e3b7;" (goto "goto") (statement_identifier "LAB_0003e3b7") (; ";")) (} "}"))) (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_0003e407:\n      if (iVar3 == 0x65) {\n        iVar3 = 0;\n      }" (statement_identifier "LAB_0003e407") (: ":") (if_statement "if (iVar3 == 0x65) {\n        iVar3 = 0;\n      }" (if "if") (parenthesized_expression "(iVar3 == 0x65)" (( "(") (binary_expression "iVar3 == 0x65" (identifier "iVar3") (== "==") (number_literal "0x65")) () ")")) (compound_statement "{\n        iVar3 = 0;\n      }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (} "}")))) (goto_statement "goto LAB_0003e3b7;" (goto "goto") (statement_identifier "LAB_0003e3b7") (; ";")) (} "}")))) (expression_statement "iVar3 = FUN_0001f6d0(0);" (assignment_expression "iVar3 = FUN_0001f6d0(0)" (identifier "iVar3") (= "=") (call_expression "FUN_0001f6d0(0)" (identifier "FUN_0001f6d0") (argument_list "(0)" (( "(") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n      uVar1 = *puRam00000038;\n      *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n      *param_3 = 0;\n      goto LAB_0003e3b7;\n    }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar1 = *puRam00000038;\n      *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;\n      *param_3 = 0;\n      goto LAB_0003e3b7;\n    }" ({ "{") (expression_statement "uVar1 = *puRam00000038;" (assignment_expression "uVar1 = *puRam00000038" (identifier "uVar1") (= "=") (pointer_expression "*puRam00000038" (* "*") (identifier "puRam00000038"))) (; ";")) (expression_statement "*param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;" (assignment_expression "*param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8" (binary_expression "uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8" (binary_expression "uVar1 >> 0x18" (identifier "uVar1") (>> ">>") (number_literal "0x18")) (| "|") (binary_expression "(uVar1 & 0xff0000) >> 8" (parenthesized_expression "(uVar1 & 0xff0000)" (( "(") (binary_expression "uVar1 & 0xff0000" (identifier "uVar1") (& "&") (number_literal "0xff0000")) () ")")) (>> ">>") (number_literal "8"))) (| "|") (binary_expression "(uVar1 & 0xff00) << 8" (parenthesized_expression "(uVar1 & 0xff00)" (( "(") (binary_expression "uVar1 & 0xff00" (identifier "uVar1") (& "&") (number_literal "0xff00")) () ")")) (<< "<<") (number_literal "8"))) (| "|") (binary_expression "uVar1 << 0x18" (identifier "uVar1") (<< "<<") (number_literal "0x18")))) (; ";")) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "0")) (; ";")) (goto_statement "goto LAB_0003e3b7;" (goto "goto") (statement_identifier "LAB_0003e3b7") (; ";")) (} "}"))) (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n    uVar1 = *(uint *)(&DAT_000c803b + unaff_EBP) / *(uint *)(param_1 + 0x24) + 1;\n    uVar2 = extraout_EDX;\n    do {\n      uVar5 = uVar2 + 1;\n      uVar4 = 0;\n      if (1 < uVar5) {\n        uVar4 = *(uint *)(param_1 + 0x28) / 5 + 1;\n        iVar3 = ((uVar2 - 1) / uVar4) * uVar4;\n        uVar4 = iVar3 + 2;\n        if (uVar4 == uVar1) {\n          uVar4 = iVar3 + 3;\n        }\n      }\n      uVar2 = uVar5;\n    } while ((uVar5 == uVar4) || (uVar5 == uVar1));\n    if (*(uint *)(param_1 + 0x30) < uVar5) goto LAB_0003e37f;\n    iVar3 = FUN_00039310(&local_24);\n    if (iVar3 == 0) {\n      if ((local_29 == '\x04') && (local_24 == extraout_EDX)) {\n        *param_4 = uVar5;\n        if (param_3 != (undefined4 *)0x0) {\n          *param_3 = 0;\n        }\n        goto LAB_0003e3b7;\n      }\n      goto LAB_0003e37f;\n    }\n    *param_4 = 0;\n    if (param_3 == (undefined4 *)0x0) goto LAB_0003e407;\n    *param_3 = 0;\n  }" (else "else") (compound_statement "{\n    uVar1 = *(uint *)(&DAT_000c803b + unaff_EBP) / *(uint *)(param_1 + 0x24) + 1;\n    uVar2 = extraout_EDX;\n    do {\n      uVar5 = uVar2 + 1;\n      uVar4 = 0;\n      if (1 < uVar5) {\n        uVar4 = *(uint *)(param_1 + 0x28) / 5 + 1;\n        iVar3 = ((uVar2 - 1) / uVar4) * uVar4;\n        uVar4 = iVar3 + 2;\n        if (uVar4 == uVar1) {\n          uVar4 = iVar3 + 3;\n        }\n      }\n      uVar2 = uVar5;\n    } while ((uVar5 == uVar4) || (uVar5 == uVar1));\n    if (*(uint *)(param_1 + 0x30) < uVar5) goto LAB_0003e37f;\n    iVar3 = FUN_00039310(&local_24);\n    if (iVar3 == 0) {\n      if ((local_29 == '\x04') && (local_24 == extraout_EDX)) {\n        *param_4 = uVar5;\n        if (param_3 != (undefined4 *)0x0) {\n          *param_3 = 0;\n        }\n        goto LAB_0003e3b7;\n      }\n      goto LAB_0003e37f;\n    }\n    *param_4 = 0;\n    if (param_3 == (undefined4 *)0x0) goto LAB_0003e407;\n    *param_3 = 0;\n  }" ({ "{") (expression_statement "uVar1 = *(uint *)(&DAT_000c803b + unaff_EBP) / *(uint *)(param_1 + 0x24) + 1;" (assignment_expression "uVar1 = *(uint *)(&DAT_000c803b + unaff_EBP) / *(uint *)(param_1 + 0x24) + 1" (identifier "uVar1") (= "=") (binary_expression "*(uint *)(&DAT_000c803b + unaff_EBP) / *(uint *)(param_1 + 0x24) + 1" (binary_expression "*(uint *)(&DAT_000c803b + unaff_EBP) / *(uint *)(param_1 + 0x24)" (pointer_expression "*(uint *)(&DAT_000c803b + unaff_EBP)" (* "*") (cast_expression "(uint *)(&DAT_000c803b + unaff_EBP)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(&DAT_000c803b + unaff_EBP)" (( "(") (binary_expression "&DAT_000c803b + unaff_EBP" (pointer_expression "&DAT_000c803b" (& "&") (identifier "DAT_000c803b")) (+ "+") (identifier "unaff_EBP")) () ")")))) (/ "/") (pointer_expression "*(uint *)(param_1 + 0x24)" (* "*") (cast_expression "(uint *)(param_1 + 0x24)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x24)" (( "(") (binary_expression "param_1 + 0x24" (identifier "param_1") (+ "+") (number_literal "0x24")) () ")"))))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar2 = extraout_EDX;" (assignment_expression "uVar2 = extraout_EDX" (identifier "uVar2") (= "=") (identifier "extraout_EDX")) (; ";")) (do_statement "do {\n      uVar5 = uVar2 + 1;\n      uVar4 = 0;\n      if (1 < uVar5) {\n        uVar4 = *(uint *)(param_1 + 0x28) / 5 + 1;\n        iVar3 = ((uVar2 - 1) / uVar4) * uVar4;\n        uVar4 = iVar3 + 2;\n        if (uVar4 == uVar1) {\n          uVar4 = iVar3 + 3;\n        }\n      }\n      uVar2 = uVar5;\n    } while ((uVar5 == uVar4) || (uVar5 == uVar1));" (do "do") (compound_statement "{\n      uVar5 = uVar2 + 1;\n      uVar4 = 0;\n      if (1 < uVar5) {\n        uVar4 = *(uint *)(param_1 + 0x28) / 5 + 1;\n        iVar3 = ((uVar2 - 1) / uVar4) * uVar4;\n        uVar4 = iVar3 + 2;\n        if (uVar4 == uVar1) {\n          uVar4 = iVar3 + 3;\n        }\n      }\n      uVar2 = uVar5;\n    }" ({ "{") (expression_statement "uVar5 = uVar2 + 1;" (assignment_expression "uVar5 = uVar2 + 1" (identifier "uVar5") (= "=") (binary_expression "uVar2 + 1" (identifier "uVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (if_statement "if (1 < uVar5) {\n        uVar4 = *(uint *)(param_1 + 0x28) / 5 + 1;\n        iVar3 = ((uVar2 - 1) / uVar4) * uVar4;\n        uVar4 = iVar3 + 2;\n        if (uVar4 == uVar1) {\n          uVar4 = iVar3 + 3;\n        }\n      }" (if "if") (parenthesized_expression "(1 < uVar5)" (( "(") (binary_expression "1 < uVar5" (number_literal "1") (< "<") (identifier "uVar5")) () ")")) (compound_statement "{\n        uVar4 = *(uint *)(param_1 + 0x28) / 5 + 1;\n        iVar3 = ((uVar2 - 1) / uVar4) * uVar4;\n        uVar4 = iVar3 + 2;\n        if (uVar4 == uVar1) {\n          uVar4 = iVar3 + 3;\n        }\n      }" ({ "{") (expression_statement "uVar4 = *(uint *)(param_1 + 0x28) / 5 + 1;" (assignment_expression "uVar4 = *(uint *)(param_1 + 0x28) / 5 + 1" (identifier "uVar4") (= "=") (binary_expression "*(uint *)(param_1 + 0x28) / 5 + 1" (binary_expression "*(uint *)(param_1 + 0x28) / 5" (pointer_expression "*(uint *)(param_1 + 0x28)" (* "*") (cast_expression "(uint *)(param_1 + 0x28)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")")))) (/ "/") (number_literal "5")) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar3 = ((uVar2 - 1) / uVar4) * uVar4;" (assignment_expression "iVar3 = ((uVar2 - 1) / uVar4) * uVar4" (identifier "iVar3") (= "=") (binary_expression "((uVar2 - 1) / uVar4) * uVar4" (parenthesized_expression "((uVar2 - 1) / uVar4)" (( "(") (binary_expression "(uVar2 - 1) / uVar4" (parenthesized_expression "(uVar2 - 1)" (( "(") (binary_expression "uVar2 - 1" (identifier "uVar2") (- "-") (number_literal "1")) () ")")) (/ "/") (identifier "uVar4")) () ")")) (* "*") (identifier "uVar4"))) (; ";")) (expression_statement "uVar4 = iVar3 + 2;" (assignment_expression "uVar4 = iVar3 + 2" (identifier "uVar4") (= "=") (binary_expression "iVar3 + 2" (identifier "iVar3") (+ "+") (number_literal "2"))) (; ";")) (if_statement "if (uVar4 == uVar1) {\n          uVar4 = iVar3 + 3;\n        }" (if "if") (parenthesized_expression "(uVar4 == uVar1)" (( "(") (binary_expression "uVar4 == uVar1" (identifier "uVar4") (== "==") (identifier "uVar1")) () ")")) (compound_statement "{\n          uVar4 = iVar3 + 3;\n        }" ({ "{") (expression_statement "uVar4 = iVar3 + 3;" (assignment_expression "uVar4 = iVar3 + 3" (identifier "uVar4") (= "=") (binary_expression "iVar3 + 3" (identifier "iVar3") (+ "+") (number_literal "3"))) (; ";")) (} "}"))) (} "}"))) (expression_statement "uVar2 = uVar5;" (assignment_expression "uVar2 = uVar5" (identifier "uVar2") (= "=") (identifier "uVar5")) (; ";")) (} "}")) (while "while") (parenthesized_expression "((uVar5 == uVar4) || (uVar5 == uVar1))" (( "(") (binary_expression "(uVar5 == uVar4) || (uVar5 == uVar1)" (parenthesized_expression "(uVar5 == uVar4)" (( "(") (binary_expression "uVar5 == uVar4" (identifier "uVar5") (== "==") (identifier "uVar4")) () ")")) (|| "||") (parenthesized_expression "(uVar5 == uVar1)" (( "(") (binary_expression "uVar5 == uVar1" (identifier "uVar5") (== "==") (identifier "uVar1")) () ")"))) () ")")) (; ";")) (if_statement "if (*(uint *)(param_1 + 0x30) < uVar5) goto LAB_0003e37f;" (if "if") (parenthesized_expression "(*(uint *)(param_1 + 0x30) < uVar5)" (( "(") (binary_expression "*(uint *)(param_1 + 0x30) < uVar5" (pointer_expression "*(uint *)(param_1 + 0x30)" (* "*") (cast_expression "(uint *)(param_1 + 0x30)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")")))) (< "<") (identifier "uVar5")) () ")")) (goto_statement "goto LAB_0003e37f;" (goto "goto") (statement_identifier "LAB_0003e37f") (; ";"))) (expression_statement "iVar3 = FUN_00039310(&local_24);" (assignment_expression "iVar3 = FUN_00039310(&local_24)" (identifier "iVar3") (= "=") (call_expression "FUN_00039310(&local_24)" (identifier "FUN_00039310") (argument_list "(&local_24)" (( "(") (pointer_expression "&local_24" (& "&") (identifier "local_24")) () ")")))) (; ";")) (if_statement "if (iVar3 == 0) {\n      if ((local_29 == '\x04') && (local_24 == extraout_EDX)) {\n        *param_4 = uVar5;\n        if (param_3 != (undefined4 *)0x0) {\n          *param_3 = 0;\n        }\n        goto LAB_0003e3b7;\n      }\n      goto LAB_0003e37f;\n    }" (if "if") (parenthesized_expression "(iVar3 == 0)" (( "(") (binary_expression "iVar3 == 0" (identifier "iVar3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if ((local_29 == '\x04') && (local_24 == extraout_EDX)) {\n        *param_4 = uVar5;\n        if (param_3 != (undefined4 *)0x0) {\n          *param_3 = 0;\n        }\n        goto LAB_0003e3b7;\n      }\n      goto LAB_0003e37f;\n    }" ({ "{") (if_statement "if ((local_29 == '\x04') && (local_24 == extraout_EDX)) {\n        *param_4 = uVar5;\n        if (param_3 != (undefined4 *)0x0) {\n          *param_3 = 0;\n        }\n        goto LAB_0003e3b7;\n      }" (if "if") (parenthesized_expression "((local_29 == '\x04') && (local_24 == extraout_EDX))" (( "(") (binary_expression "(local_29 == '\x04') && (local_24 == extraout_EDX)" (parenthesized_expression "(local_29 == '\x04')" (( "(") (binary_expression "local_29 == '\x04'" (identifier "local_29") (== "==") (char_literal "'\x04'" (' "'") (escape_sequence "\x04") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(local_24 == extraout_EDX)" (( "(") (binary_expression "local_24 == extraout_EDX" (identifier "local_24") (== "==") (identifier "extraout_EDX")) () ")"))) () ")")) (compound_statement "{\n        *param_4 = uVar5;\n        if (param_3 != (undefined4 *)0x0) {\n          *param_3 = 0;\n        }\n        goto LAB_0003e3b7;\n      }" ({ "{") (expression_statement "*param_4 = uVar5;" (assignment_expression "*param_4 = uVar5" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (identifier "uVar5")) (; ";")) (if_statement "if (param_3 != (undefined4 *)0x0) {\n          *param_3 = 0;\n        }" (if "if") (parenthesized_expression "(param_3 != (undefined4 *)0x0)" (( "(") (binary_expression "param_3 != (undefined4 *)0x0" (identifier "param_3") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n          *param_3 = 0;\n        }" ({ "{") (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "0")) (; ";")) (} "}"))) (goto_statement "goto LAB_0003e3b7;" (goto "goto") (statement_identifier "LAB_0003e3b7") (; ";")) (} "}"))) (goto_statement "goto LAB_0003e37f;" (goto "goto") (statement_identifier "LAB_0003e37f") (; ";")) (} "}"))) (expression_statement "*param_4 = 0;" (assignment_expression "*param_4 = 0" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_3 == (undefined4 *)0x0) goto LAB_0003e407;" (if "if") (parenthesized_expression "(param_3 == (undefined4 *)0x0)" (( "(") (binary_expression "param_3 == (undefined4 *)0x0" (identifier "param_3") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_0003e407;" (goto "goto") (statement_identifier "LAB_0003e407") (; ";"))) (expression_statement "*param_3 = 0;" (assignment_expression "*param_3 = 0" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (number_literal "0")) (; ";")) (} "}")))) (if_statement "if (iVar3 == 0x65) {\n    iVar3 = 0;\n  }" (if "if") (parenthesized_expression "(iVar3 == 0x65)" (( "(") (binary_expression "iVar3 == 0x65" (identifier "iVar3") (== "==") (number_literal "0x65")) () ")")) (compound_statement "{\n    iVar3 = 0;\n  }" ({ "{") (expression_statement "iVar3 = 0;" (assignment_expression "iVar3 = 0" (identifier "iVar3") (= "=") (number_literal "0")) (; ";")) (} "}"))) (labeled_statement "LAB_0003e3b7:\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar3;\n  }" (statement_identifier "LAB_0003e3b7") (: ":") (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar3;\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 iVar3;\n  }" ({ "{") (return_statement "return iVar3;" (return "return") (identifier "iVar3") (; ";")) (} "}")))) (expression_statement "FUN_000d1450();" (call_expression "FUN_000d1450()" (identifier "FUN_000d1450") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bp replaced with injection: get_pc_thunk.bp */

int __regparm3 function_1(type_1 *pBt,type_2 var_8,type_3 **var_2,type_2 *pPgnoNext)

{
  type_4 var_10;
  int var_4;
  type_4 var_9;
  type_4 var_5;
  int var_1;
  type_5 *in_stack_ffffffb8;
  type_2 *in_stack_ffffffbc;
  char var_13;
  type_3 *var_7;
  type_2 var_12;
  int var_14;
  type_6 uStack_14;
  
  uStack_14 = 0x3e31d;
  var_7 = (type_3 *)0x0;
  var_14 = *(int *)(var_1 + 0x14);
  if (pBt->autoVacuum == '\0') {
LAB_0003e37f:
    if (var_2 == (type_3 **)0x0) {
      var_4 = var_3(pBt,var_8,&var_7,2);
      if (var_4 == 0) {
        var_5 = *(type_4 *)var_7->aData;
        *pPgnoNext = var_5 >> 0x18 | (var_5 & 0xff0000) >> 8 | (var_5 & 0xff00) << 8 | var_5 << 0x18
        ;
        var_6(var_7->pDbPage);
        goto LAB_0003e3b7;
      }
      *pPgnoNext = 0;
LAB_0003e407:
      if (var_7 != (type_3 *)0x0) {
        var_6(var_7->pDbPage);
      }
      if (var_4 == 0x65) {
        var_4 = 0;
      }
      goto LAB_0003e3b7;
    }
    var_4 = var_3(pBt,var_8,&var_7,0);
    if (var_4 == 0) {
      var_5 = *(type_4 *)var_7->aData;
      *pPgnoNext = var_5 >> 0x18 | (var_5 & 0xff0000) >> 8 | (var_5 & 0xff00) << 8 | var_5 << 0x18;
      *var_2 = var_7;
      goto LAB_0003e3b7;
    }
    *pPgnoNext = 0;
    *var_2 = var_7;
  }
  else {
    var_5 = var_8 + 1;
    var_10 = (type_4)sqlite3PendingByte / pBt->pageSize + 1;
    while( true ) {
      var_9 = 0;
      if (1 < var_5) {
        var_9 = pBt->usableSize / 5 + 1;
        var_4 = ((var_5 - 2) / var_9) * var_9;
        var_9 = var_4 + 2;
        if (var_9 == var_10) {
          var_9 = var_4 + 3;
        }
      }
      if ((var_5 != var_9) && (var_5 != var_10)) break;
      var_5 = var_5 + 1;
    }
    if (pBt->nPage < var_5) goto LAB_0003e37f;
    var_4 = var_11(pBt,(type_2)&var_12,in_stack_ffffffb8,in_stack_ffffffbc);
    if (var_4 == 0) {
      if ((var_13 == '\x04') && (var_12 == var_8)) {
        *pPgnoNext = var_5;
        if (var_2 == (type_3 **)0x0) {
          if (var_7 != (type_3 *)0x0) {
            var_6(var_7->pDbPage);
          }
        }
        else {
          *var_2 = var_7;
        }
        goto LAB_0003e3b7;
      }
      goto LAB_0003e37f;
    }
    *pPgnoNext = 0;
    if (var_2 == (type_3 **)0x0) goto LAB_0003e407;
    *var_2 = var_7;
  }
  if (var_4 == 0x65) {
    var_4 = 0;
  }
LAB_0003e3b7:
  if (var_14 != *(int *)(var_1 + 0x14)) {
                    /* WARNING: Subroutine does not return */
    var_15();
  }
  return var_4;
}


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

/* WARNING: Removing unreachable block (ram,0x0003e40b) */
/* WARNING: Removing unreachable block (ram,0x0003e508) */

int __regparm3 MASKED(int param_1,undefined4 param_2,undefined4 *param_3,uint *param_4)

{
  uint uVar1;
  uint uVar2;
  int iVar3;
  uint extraout_EDX;
  uint uVar4;
  uint uVar5;
  int unaff_EBP;
  int in_GS_OFFSET;
  char local_29;
  uint local_24;
  int local_20;
  undefined4 uStack_14;
  
  uStack_14 = 0x3e31d;
  FUN_000d0ab3();
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  if (*(char *)(param_1 + 0x11) == '\0') {
LAB_0003e37f:
    if (param_3 == (undefined4 *)0x0) {
      iVar3 = FUN_0001f6d0(2);
      if (iVar3 == 0) {
        uVar1 = *puRam00000038;
        *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;
        FUN_0001f280();
        goto LAB_0003e3b7;
      }
      *param_4 = 0;
LAB_0003e407:
      if (iVar3 == 0x65) {
        iVar3 = 0;
      }
      goto LAB_0003e3b7;
    }
    iVar3 = FUN_0001f6d0(0);
    if (iVar3 == 0) {
      uVar1 = *puRam00000038;
      *param_4 = uVar1 >> 0x18 | (uVar1 & 0xff0000) >> 8 | (uVar1 & 0xff00) << 8 | uVar1 << 0x18;
      *param_3 = 0;
      goto LAB_0003e3b7;
    }
    *param_4 = 0;
    *param_3 = 0;
  }
  else {
    uVar1 = *(uint *)(&DAT_000c803b + unaff_EBP) / *(uint *)(param_1 + 0x24) + 1;
    uVar2 = extraout_EDX;
    do {
      uVar5 = uVar2 + 1;
      uVar4 = 0;
      if (1 < uVar5) {
        uVar4 = *(uint *)(param_1 + 0x28) / 5 + 1;
        iVar3 = ((uVar2 - 1) / uVar4) * uVar4;
        uVar4 = iVar3 + 2;
        if (uVar4 == uVar1) {
          uVar4 = iVar3 + 3;
        }
      }
      uVar2 = uVar5;
    } while ((uVar5 == uVar4) || (uVar5 == uVar1));
    if (*(uint *)(param_1 + 0x30) < uVar5) goto LAB_0003e37f;
    iVar3 = FUN_00039310(&local_24);
    if (iVar3 == 0) {
      if ((local_29 == '\x04') && (local_24 == extraout_EDX)) {
        *param_4 = uVar5;
        if (param_3 != (undefined4 *)0x0) {
          *param_3 = 0;
        }
        goto LAB_0003e3b7;
      }
      goto LAB_0003e37f;
    }
    *param_4 = 0;
    if (param_3 == (undefined4 *)0x0) goto LAB_0003e407;
    *param_3 = 0;
  }
  if (iVar3 == 0x65) {
    iVar3 = 0;
  }
LAB_0003e3b7:
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar3;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000d1450();
}

