
int accessPayload(BtCursor *pCur,u32 offset,u32 amt,uchar *pBuf,int eOp)

{
  undefined *puVar1;
  undefined *puVar2;
  undefined *puVar3;
  DbPage *pDVar4;
  Pgno PVar5;
  int iVar6;
  int iVar7;
  uchar *puVar8;
  Pgno *pPVar9;
  undefined4 uVar10;
  BtCursor *pCur_00;
  u8 *puVar11;
  uint uVar12;
  uint uVar13;
  uint uVar14;
  u32 uVar15;
  BtShared *pBVar16;
  int iVar17;
  u8 *puVar18;
  uint uVar19;
  MemPage *pMVar20;
  undefined *puVar21;
  int iVar22;
  Pgno nextPage;
  DbPage *pDbPage;
  BtCursor *pBStack_2c;
  
  puVar21 = PTR___stack_chk_guard_0015ca30;
  pMVar20 = pCur->pPage;
  pBStack_2c = *(BtCursor **)PTR___stack_chk_guard_0015ca30;
  pBVar16 = pCur->pBt;
  (*(code *)(PTR_LAB_0015c66c + -0xc70))();
  puVar18 = (pCur->info).pPayload;
  uVar12 = (uint)(pCur->info).nLocal;
  if (pBVar16->usableSize - uVar12 < (uint)((int)puVar18 - (int)pMVar20->aData)) {
    uVar10 = 0x108be;
  }
  else {
    if (offset < uVar12) {
      if (uVar12 < offset + amt) {
        uVar15 = uVar12 - offset;
        if (eOp != 0) goto LAB_000a7298;
LAB_000a7354:
        puVar8 = pBuf;
        puVar11 = puVar18 + offset;
      }
      else {
        uVar15 = amt;
        if (eOp == 0) goto LAB_000a7354;
LAB_000a7298:
        puVar8 = puVar18 + offset;
        iVar6 = sqlite3PagerWrite(pMVar20->pDbPage);
        puVar11 = pBuf;
        if (iVar6 != 0) goto LAB_000a7304;
      }
      amt = amt - uVar15;
      (*(code *)PTR_memcpy_0015ca34)(puVar8,puVar11,uVar15);
      pBuf = pBuf + uVar15;
      uVar12 = 0;
      if (amt == 0) goto LAB_000a72dc;
    }
    else {
      uVar12 = offset - uVar12;
      if (amt == 0) {
LAB_000a72dc:
        iVar6 = 0;
        goto LAB_000a7304;
      }
    }
    uVar13 = (uint)(pCur->info).nLocal;
    pPVar9 = pCur->aOverflow;
    uVar19 = pBVar16->usableSize - 4;
    nextPage = *(Pgno *)(puVar18 + uVar13);
    if ((pCur->curFlags & 4) == 0) {
      if (uVar19 == 0) {
        trap(7);
      }
      uVar13 = ((((pCur->info).nPayload - 1) + uVar19) - uVar13) / uVar19;
      if (pPVar9 == (Pgno *)0x0) {
LAB_000a7368:
        pPVar9 = (Pgno *)(*(code *)(PTR_LAB_0015c6dc + -0x2708))(pPVar9);
        if (pPVar9 == (Pgno *)0x0) {
          iVar6 = 7;
          goto LAB_000a7304;
        }
        pCur->aOverflow = pPVar9;
      }
      else {
        iVar6 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();
        pPVar9 = pCur->aOverflow;
        if (iVar6 < (int)(uVar13 << 2)) goto LAB_000a7368;
      }
      (*(code *)PTR_memset_0015c9b8)(pPVar9,0,uVar13 << 2);
      pCur->curFlags = pCur->curFlags | 4;
    }
    else {
      if (uVar19 == 0) {
        trap(7);
      }
      uVar14 = uVar12 / uVar19;
      uVar13 = uVar12 % uVar19;
      PVar5 = pPVar9[uVar14];
      if (pPVar9[uVar14] != 0) goto LAB_000a719c;
    }
    uVar14 = 0;
    if (nextPage != 0) {
      pPVar9 = pCur->aOverflow;
      uVar13 = uVar12;
      PVar5 = nextPage;
LAB_000a719c:
      nextPage = PVar5;
      puVar2 = PTR_LAB_0015c708;
      puVar1 = PTR_LAB_0015c66c;
      iVar7 = 2;
      iVar22 = uVar14 + 1;
      if (eOp != 0) {
        iVar7 = 0;
      }
      pPVar9[uVar14] = nextPage;
      puVar3 = PTR_LAB_0015c744;
      uVar12 = amt + uVar13;
      uVar15 = amt;
      if (uVar13 < uVar19) goto LAB_000a7220;
      do {
        pPVar9 = pCur->aOverflow;
        uVar13 = uVar13 - uVar19;
        iVar6 = iVar22;
        PVar5 = pPVar9[iVar22];
        if (pPVar9[iVar22] == 0) {
          iVar6 = (*(code *)(puVar3 + -0x6468))(pBVar16,nextPage,0,&nextPage);
          goto LAB_000a7268;
        }
        while( true ) {
          nextPage = PVar5;
          iVar22 = iVar6 + 1;
          pPVar9[iVar6] = nextPage;
          if (uVar19 <= uVar13) break;
          uVar12 = amt + uVar13;
          uVar15 = amt;
LAB_000a7220:
          amt = 0;
          if (uVar19 < uVar12) {
            amt = (uVar13 - uVar19) + uVar15;
            uVar15 = uVar19 - uVar13;
          }
          iVar6 = (*pBVar16->pPager->xGet)(pBVar16->pPager,nextPage,&pDbPage,iVar7);
          pDVar4 = pDbPage;
          if (iVar6 == 0) {
            iVar17 = (int)pDbPage->pData + uVar13 + 4;
                    /* WARNING: Load size is inaccurate */
            nextPage = *pDbPage->pData;
            if (eOp == 0) {
              (*(code *)PTR_memcpy_0015ca34)(pBuf,iVar17,uVar15);
              uVar13 = 0;
              (*(code *)(puVar1 + -0x138c))(pDVar4);
              iVar6 = 0;
            }
            else {
              iVar6 = (*(code *)(puVar2 + -0x30a4))(pDbPage);
              if (iVar6 == 0) {
                (*(code *)PTR_memcpy_0015ca34)(iVar17,pBuf,uVar15);
              }
              uVar13 = 0;
              if (pDbPage != (DbPage *)0x0) {
                (*(code *)(puVar1 + -0x138c))(pDbPage);
              }
            }
          }
          pBuf = pBuf + uVar15;
          if (amt == 0) goto LAB_000a7304;
LAB_000a7268:
          if (iVar6 != 0) goto LAB_000a7304;
          if (nextPage == 0) goto LAB_000a7494;
          pPVar9 = pCur->aOverflow;
          iVar6 = iVar22;
          PVar5 = nextPage;
        }
      } while( true );
    }
LAB_000a7494:
    uVar10 = 0x1094f;
  }
  iVar6 = (*(code *)(PTR_LAB_0015c744 + -0x6c90))(uVar10);
LAB_000a7304:
  if (pBStack_2c == *(BtCursor **)puVar21) {
    return iVar6;
  }
  pCur_00 = pBStack_2c;
  puVar21 = PTR___stack_chk_fail_0015ca14;
  (*(code *)PTR___stack_chk_fail_0015ca14)();
  (*(code *)(*(int *)(puVar21 + 0xb51b8) + -0xc70))();
  uVar12 = (pCur_00->info).nPayload;
  *(undefined4 *)&pCur_00->nKey = 0;
  *(uint *)((int)&pCur_00->nKey + 4) = uVar12;
  puVar8 = (uchar *)(*(code *)(*(int *)(puVar21 + 0xb5228) + -0x5370))(uVar12 + 0x11 < uVar12);
  if (puVar8 == (uchar *)0x0) {
    return 7;
  }
  iVar6 = accessPayload(pCur_00,0,(u32)pCur_00->nKey,puVar8,0);
  if (iVar6 == 0) {
    (**(code **)(puVar21 + 0xb5504))(puVar8 + (int)pCur_00->nKey,0,0x11);
    pCur_00->pKey = puVar8;
    return 0;
  }
  (**(code **)(puVar21 + 0xb5138))(puVar8);
  return iVar6;
}



int FUN_000a7054(int param_1,uint param_2,int param_3,int param_4,int param_5)

{
  undefined *puVar1;
  undefined *puVar2;
  undefined *puVar3;
  undefined4 uVar4;
  int iVar5;
  uint uVar6;
  int iVar7;
  uint uVar8;
  int *piVar9;
  int iVar10;
  int iVar11;
  int iVar12;
  undefined *puVar13;
  uint uVar14;
  int local_34;
  int local_30;
  int local_2c;
  
  puVar13 = PTR___stack_chk_guard_0015ca30;
  iVar12 = *(int *)(param_1 + 0x74);
  local_2c = *(int *)PTR___stack_chk_guard_0015ca30;
  piVar9 = *(int **)(param_1 + 0x14);
  (*(code *)(PTR_LAB_0015c66c + -0xc70))();
  iVar11 = *(int *)(param_1 + 0x28);
  uVar6 = (uint)*(ushort *)(param_1 + 0x30);
  if (piVar9[9] - uVar6 < (uint)(iVar11 - *(int *)(iVar12 + 0x38))) {
    uVar4 = 0x108be;
  }
  else {
    if (param_2 < uVar6) {
      if (uVar6 < param_2 + param_3) {
        iVar5 = uVar6 - param_2;
        if (param_5 != 0) goto LAB_000a7298;
LAB_000a7354:
        iVar7 = param_4;
        iVar10 = iVar11 + param_2;
      }
      else {
        iVar5 = param_3;
        if (param_5 == 0) goto LAB_000a7354;
LAB_000a7298:
        iVar7 = iVar11 + param_2;
        iVar12 = FUN_0009cf5c(*(undefined4 *)(iVar12 + 0x48));
        iVar10 = param_4;
        if (iVar12 != 0) goto LAB_000a7304;
      }
      param_3 = param_3 - iVar5;
      (*(code *)PTR_memcpy_0015ca34)(iVar7,iVar10,iVar5);
      param_4 = param_4 + iVar5;
      param_2 = 0;
      if (param_3 == 0) goto LAB_000a72dc;
    }
    else {
      param_2 = param_2 - uVar6;
      if (param_3 == 0) {
LAB_000a72dc:
        iVar12 = 0;
        goto LAB_000a7304;
      }
    }
    iVar12 = *(int *)(param_1 + 0xc);
    uVar6 = piVar9[9] - 4;
    local_34 = *(int *)(iVar11 + (uint)*(ushort *)(param_1 + 0x30));
    if ((*(byte *)(param_1 + 1) & 4) == 0) {
      if (uVar6 == 0) {
        trap(7);
      }
      uVar14 = ((*(int *)(param_1 + 0x2c) + -1 + uVar6) - (uint)*(ushort *)(param_1 + 0x30)) / uVar6
      ;
      if (iVar12 == 0) {
LAB_000a7368:
        iVar12 = (*(code *)(PTR_LAB_0015c6dc + -0x2708))(iVar12);
        if (iVar12 == 0) {
          iVar12 = 7;
          goto LAB_000a7304;
        }
        *(int *)(param_1 + 0xc) = iVar12;
      }
      else {
        iVar11 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();
        iVar12 = *(int *)(param_1 + 0xc);
        if (iVar11 < (int)(uVar14 << 2)) goto LAB_000a7368;
      }
      (*(code *)PTR_memset_0015c9b8)(iVar12,0,uVar14 << 2);
      *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) | 4;
    }
    else {
      if (uVar6 == 0) {
        trap(7);
      }
      uVar8 = param_2 / uVar6;
      uVar14 = param_2 % uVar6;
      iVar11 = *(int *)(iVar12 + uVar8 * 4);
      if (iVar11 != 0) goto LAB_000a719c;
    }
    uVar8 = 0;
    if (local_34 != 0) {
      iVar12 = *(int *)(param_1 + 0xc);
      uVar14 = param_2;
      iVar11 = local_34;
LAB_000a719c:
      local_34 = iVar11;
      puVar2 = PTR_DAT_0015c708;
      puVar1 = PTR_LAB_0015c66c;
      uVar4 = 2;
      iVar11 = uVar8 + 1;
      if (param_5 != 0) {
        uVar4 = 0;
      }
      iVar7 = iVar11 * 4;
      *(int *)(iVar12 + iVar7 + -4) = local_34;
      puVar3 = PTR_LAB_0015c744;
      uVar8 = param_3 + uVar14;
      iVar5 = param_3;
      if (uVar14 < uVar6) goto LAB_000a7220;
      do {
        iVar5 = *(int *)(param_1 + 0xc);
        uVar14 = uVar14 - uVar6;
        iVar12 = *(int *)(iVar5 + iVar7);
        if (*(int *)(iVar5 + iVar7) == 0) {
          iVar12 = (*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34);
          goto LAB_000a7268;
        }
        while( true ) {
          local_34 = iVar12;
          iVar11 = iVar11 + 1;
          iVar7 = iVar11 * 4;
          *(int *)(iVar5 + iVar7 + -4) = local_34;
          if (uVar6 <= uVar14) break;
          uVar8 = param_3 + uVar14;
          iVar5 = param_3;
LAB_000a7220:
          param_3 = 0;
          if (uVar6 < uVar8) {
            param_3 = (uVar14 - uVar6) + iVar5;
            iVar5 = uVar6 - uVar14;
          }
          iVar12 = (**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4);
          iVar7 = local_30;
          if (iVar12 == 0) {
            iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;
            local_34 = **(int **)(local_30 + 4);
            if (param_5 == 0) {
              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);
              uVar14 = 0;
              (*(code *)(puVar1 + -0x138c))(iVar7);
              iVar12 = 0;
            }
            else {
              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);
              if (iVar12 == 0) {
                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);
              }
              uVar14 = 0;
              if (local_30 != 0) {
                (*(code *)(puVar1 + -0x138c))(local_30);
              }
            }
          }
          param_4 = param_4 + iVar5;
          if (param_3 == 0) goto LAB_000a7304;
LAB_000a7268:
          if (iVar12 != 0) goto LAB_000a7304;
          if (local_34 == 0) goto LAB_000a7494;
          iVar5 = *(int *)(param_1 + 0xc);
          iVar12 = local_34;
        }
      } while( true );
    }
LAB_000a7494:
    uVar4 = 0x1094f;
  }
  iVar12 = (*(code *)(PTR_LAB_0015c744 + -0x6c90))(uVar4);
LAB_000a7304:
  if (local_2c == *(int *)puVar13) {
    return iVar12;
  }
  iVar11 = local_2c;
  puVar13 = PTR___stack_chk_fail_0015ca14;
  (*(code *)PTR___stack_chk_fail_0015ca14)();
  (*(code *)(*(int *)(puVar13 + 0xb51b8) + -0xc70))();
  uVar6 = *(uint *)(iVar11 + 0x2c);
  *(undefined4 *)(iVar11 + 0x38) = 0;
  *(uint *)(iVar11 + 0x3c) = uVar6;
  iVar12 = (*(code *)(*(int *)(puVar13 + 0xb5228) + -0x5370))(uVar6 + 0x11 < uVar6);
  if (iVar12 == 0) {
    return 7;
  }
  iVar5 = FUN_000a7054(iVar11,0,*(undefined4 *)(iVar11 + 0x3c),iVar12,0);
  if (iVar5 == 0) {
    (**(code **)(puVar13 + 0xb5504))(iVar12 + *(int *)(iVar11 + 0x3c),0,0x11);
    *(int *)(iVar11 + 0x10) = iVar12;
    return 0;
  }
  (**(code **)(puVar13 + 0xb5138))(iVar12);
  return iVar5;
}


lui gp,0xc
addiu gp,gp,-0x2aa4
addu gp,gp,t9
addiu sp,sp,-0x68
lw v0,-0x7b80(gp)
lw t9,-0x7f44(gp)
sw gp,0x10(sp)
sw s6,0x58(sp)
addiu t9,t9,-0xc70
sw s5,0x54(sp)
or s5,a1,zero
sw s4,0x50(sp)
or s4,a0,zero
sw s1,0x44(sp)
or s1,a3,zero
sw s0,0x40(sp)
or s0,a2,zero
sw ra,0x64(sp)
sw s8,0x60(sp)
sw s7,0x5c(sp)
sw s3,0x4c(sp)
sw s2,0x48(sp)
sw v0,0x18(sp)
lw s7,0x74(a0)
lw v0,0x0(v0)
lw s3,0x14(a0)
sw v0,0x3c(sp)
jalr t9
_nop
lw s6,0x28(s4)
lhu a2,0x30(s4)
lw v0,0x38(s7)
lw a3,0x24(s3)
subu v0,s6,v0
subu a3,a3,a2
sltu v0,a3,v0
bne v0,zero,0x000a72e4
_lw gp,0x10(sp)
sltu v0,s5,a2
bne v0,zero,0x000a7280
_addu v0,s5,s0
beq s0,zero,0x000a72dc
_subu s5,s5,a2
lhu a3,0x30(s4)
lbu a2,0x1(s4)
lw t2,0x24(s3)
addu v0,s6,a3
lw a0,0xc(s4)
andi a2,a2,0x4
addiu s6,t2,-0x4
lwl a1,0x0(v0)
lwr a1,0x3(v0)
bne a2,zero,0x000a7464
_sw a1,0x34(sp)
lw v0,0x2c(s4)
addiu v0,v0,-0x1
addu v0,v0,s6
subu v0,v0,a3
teq s6,zero
divu v0,s6
beq a0,zero,0x000a7368
_mflo s2
lw v0,-0x7fd8(gp)
lw t9,-0x4da0(v0)
jalr t9
_nop
sll a2,s2,0x2
lw gp,0x10(sp)
slt v0,v0,a2
bne v0,zero,0x000a7368
_lw a0,0xc(s4)
lw t9,-0x7bf8(gp)
jalr t9
_or a1,zero,zero
lbu v0,0x1(s4)
lw a1,0x34(sp)
lw gp,0x10(sp)
ori v0,v0,0x4
sb v0,0x1(s4)
beq a1,zero,0x000a7494
_or t1,zero,zero
lw a0,0xc(s4)
lw v1,0x78(sp)
li v0,0x2
lw s7,-0x7ea8(gp)
addiu s8,t1,0x1
movn v0,zero,v1
sll a2,s8,0x2
addu a0,a0,a2
sw v0,0x1c(sp)
lw v0,-0x7f44(gp)
sw a1,-0x4(a0)
addiu v0,v0,-0x138c
sw v0,0x24(sp)
addiu v0,s7,-0x30a4
sw v0,0x28(sp)
lw v0,-0x7e6c(gp)
sw v0,0x20(sp)
sltu v0,s5,s6
bne v0,zero,0x000a7220
_addu v0,s0,s5
lw a0,0xc(s4)
addu a2,a0,a2
lw v0,0x0(a2)
beq v0,zero,0x000a7408
_subu s5,s5,s6
addiu s8,s8,0x1
sw v0,0x34(sp)
or a1,v0,zero
sll a2,s8,0x2
sltu v0,s5,s6
addu a0,a0,a2
beq v0,zero,0x000a71e8
_sw a1,-0x4(a0)
addu v0,s0,s5
sltu v0,s6,v0
beq v0,zero,0x000a7238
_or s2,zero,zero
subu s2,s5,s6
addu s2,s2,s0
subu s0,s6,s5
lw v0,0x0(s3)
addiu a2,sp,0x38
lw a3,0x1c(sp)
lw t9,0xcc(v0)
jalr t9
_or a0,v0,zero
lw gp,0x10(sp)
beq v0,zero,0x000a7394
_or s7,v0,zero
beq s2,zero,0x000a7304
_addu s1,s1,s0
or s0,s2,zero
bne s7,zero,0x000a7304
_lw a1,0x34(sp)
beq a1,zero,0x000a7494
_addiu s8,s8,0x1
b 0x000a7208
_lw a0,0xc(s4)
sltu v0,a2,v0
bne v0,zero,0x000a7348
_lw v0,0x78(sp)
or s2,s0,zero
beq v0,zero,0x000a7354
_addu s5,s6,s5
lw t9,-0x7ea8(gp)
addiu t9,t9,-0x30a4
bal 0x0009cf5c
_lw a0,0x48(s7)
lw gp,0x10(sp)
bne v0,zero,0x000a7304
_or s7,v0,zero
lw t9,-0x7b7c(gp)
or a1,s1,zero
or a2,s2,zero
or a0,s5,zero
jalr t9
_subu s0,s0,s2
lw gp,0x10(sp)
addu s1,s1,s2
bne s0,zero,0x000a7100
_or s5,zero,zero
b 0x000a7304
_or s7,zero,zero
lui a0,0x1
addiu a0,a0,0x8be
lw t9,-0x7e6c(gp)
addiu t9,t9,-0x6c90
jalr t9
_nop
lw gp,0x10(sp)
or s7,v0,zero
lw v1,0x18(sp)
or v0,s7,zero
lw a0,0x3c(sp)
lw v1,0x0(v1)
bne a0,v1,0x000a74a8
_lw ra,0x64(sp)
lw s8,0x60(sp)
lw s7,0x5c(sp)
lw s6,0x58(sp)
lw s5,0x54(sp)
lw s4,0x50(sp)
lw s3,0x4c(sp)
lw s2,0x48(sp)
lw s1,0x44(sp)
lw s0,0x40(sp)
jr ra
_addiu sp,sp,0x68
subu s2,a2,s5
bne v0,zero,0x000a7298
_addu s5,s6,s5
lw t9,-0x7b7c(gp)
or a0,s1,zero
or a2,s2,zero
b 0x000a72c4
_or a1,s5,zero
lw t9,-0x7ed4(gp)
or a2,zero,zero
addiu t9,t9,-0x2708
jalr t9
_sll a3,s2,0x3
lw gp,0x10(sp)
beq v0,zero,0x000a74a0
_or a0,v0,zero
sll a2,s2,0x2
b 0x000a7170
_sw v0,0xc(s4)
lw t3,0x38(sp)
addiu v1,s5,0x4
lw v0,0x4(t3)
addu s5,v0,v1
lwl a0,0x0(v0)
lwr a0,0x3(v0)
lw v0,0x78(sp)
beq v0,zero,0x000a742c
_sw a0,0x34(sp)
lw t9,0x28(sp)
jalr t9
_or a0,t3,zero
lw gp,0x10(sp)
bne v0,zero,0x000a73e8
_or s7,v0,zero
lw t9,-0x7b7c(gp)
or a2,s0,zero
or a1,s1,zero
jalr t9
_or a0,s5,zero
lw gp,0x10(sp)
lw t3,0x38(sp)
beq t3,zero,0x000a725c
_or s5,zero,zero
lw t9,0x24(sp)
jalr t9
_or a0,t3,zero
b 0x000a725c
_lw gp,0x10(sp)
lw v0,0x20(sp)
addiu a3,sp,0x34
or a2,zero,zero
addiu t9,v0,-0x6468
jalr t9
_or a0,s3,zero
lw gp,0x10(sp)
b 0x000a7268
_or s7,v0,zero
lw t9,-0x7b7c(gp)
or a1,s5,zero
sw t3,0x2c(sp)
or a2,s0,zero
jalr t9
_or a0,s1,zero
or s5,zero,zero
lw t3,0x2c(sp)
lw t9,0x24(sp)
lw s7,0x78(sp)
jalr t9
_or a0,t3,zero
b 0x000a725c
_lw gp,0x10(sp)
teq s6,zero
divu s5,s6
mflo t1
sll v0,t1,0x2
addu v0,a0,v0
lw v0,0x0(v0)
beq v0,zero,0x000a7190
_mfhi a2
sw v0,0x34(sp)
or s5,a2,zero
b 0x000a719c
_or a1,v0,zero
lui a0,0x1
b 0x000a72ec
_addiu a0,a0,0x94f
b 0x000a7304
_li s7,0x7
lw t9,-0x7b9c(gp)
jalr t9
_nop
(translation_unit "int FUN_000a7054(int param_1,uint param_2,int param_3,int param_4,int param_5)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  uint uVar6;\n  int iVar7;\n  uint uVar8;\n  int *piVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  undefined *puVar13;\n  uint uVar14;\n  int local_34;\n  int local_30;\n  int local_2c;\n  \n  puVar13 = PTR___stack_chk_guard_0015ca30;\n  iVar12 = *(int *)(param_1 + 0x74);\n  local_2c = *(int *)PTR___stack_chk_guard_0015ca30;\n  piVar9 = *(int **)(param_1 + 0x14);\n  (*(code *)(PTR_LAB_0015c66c + -0xc70))();\n  iVar11 = *(int *)(param_1 + 0x28);\n  uVar6 = (uint)*(ushort *)(param_1 + 0x30);\n  if (piVar9[9] - uVar6 < (uint)(iVar11 - *(int *)(iVar12 + 0x38))) {\n    uVar4 = 0x108be;\n  }\n  else {\n    if (param_2 < uVar6) {\n      if (uVar6 < param_2 + param_3) {\n        iVar5 = uVar6 - param_2;\n        if (param_5 != 0) goto LAB_000a7298;\nLAB_000a7354:\n        iVar7 = param_4;\n        iVar10 = iVar11 + param_2;\n      }\n      else {\n        iVar5 = param_3;\n        if (param_5 == 0) goto LAB_000a7354;\nLAB_000a7298:\n        iVar7 = iVar11 + param_2;\n        iVar12 = FUN_0009cf5c(*(undefined4 *)(iVar12 + 0x48));\n        iVar10 = param_4;\n        if (iVar12 != 0) goto LAB_000a7304;\n      }\n      param_3 = param_3 - iVar5;\n      (*(code *)PTR_memcpy_0015ca34)(iVar7,iVar10,iVar5);\n      param_4 = param_4 + iVar5;\n      param_2 = 0;\n      if (param_3 == 0) goto LAB_000a72dc;\n    }\n    else {\n      param_2 = param_2 - uVar6;\n      if (param_3 == 0) {\nLAB_000a72dc:\n        iVar12 = 0;\n        goto LAB_000a7304;\n      }\n    }\n    iVar12 = *(int *)(param_1 + 0xc);\n    uVar6 = piVar9[9] - 4;\n    local_34 = *(int *)(iVar11 + (uint)*(ushort *)(param_1 + 0x30));\n    if ((*(byte *)(param_1 + 1) & 4) == 0) {\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar14 = ((*(int *)(param_1 + 0x2c) + -1 + uVar6) - (uint)*(ushort *)(param_1 + 0x30)) / uVar6\n      ;\n      if (iVar12 == 0) {\nLAB_000a7368:\n        iVar12 = (*(code *)(PTR_LAB_0015c6dc + -0x2708))(iVar12);\n        if (iVar12 == 0) {\n          iVar12 = 7;\n          goto LAB_000a7304;\n        }\n        *(int *)(param_1 + 0xc) = iVar12;\n      }\n      else {\n        iVar11 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();\n        iVar12 = *(int *)(param_1 + 0xc);\n        if (iVar11 < (int)(uVar14 << 2)) goto LAB_000a7368;\n      }\n      (*(code *)PTR_memset_0015c9b8)(iVar12,0,uVar14 << 2);\n      *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) | 4;\n    }\n    else {\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar8 = param_2 / uVar6;\n      uVar14 = param_2 % uVar6;\n      iVar11 = *(int *)(iVar12 + uVar8 * 4);\n      if (iVar11 != 0) goto LAB_000a719c;\n    }\n    uVar8 = 0;\n    if (local_34 != 0) {\n      iVar12 = *(int *)(param_1 + 0xc);\n      uVar14 = param_2;\n      iVar11 = local_34;\nLAB_000a719c:\n      local_34 = iVar11;\n      puVar2 = PTR_DAT_0015c708;\n      puVar1 = PTR_LAB_0015c66c;\n      uVar4 = 2;\n      iVar11 = uVar8 + 1;\n      if (param_5 != 0) {\n        uVar4 = 0;\n      }\n      iVar7 = iVar11 * 4;\n      *(int *)(iVar12 + iVar7 + -4) = local_34;\n      puVar3 = PTR_LAB_0015c744;\n      uVar8 = param_3 + uVar14;\n      iVar5 = param_3;\n      if (uVar14 < uVar6) goto LAB_000a7220;\n      do {\n        iVar5 = *(int *)(param_1 + 0xc);\n        uVar14 = uVar14 - uVar6;\n        iVar12 = *(int *)(iVar5 + iVar7);\n        if (*(int *)(iVar5 + iVar7) == 0) {\n          iVar12 = (*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34);\n          goto LAB_000a7268;\n        }\n        while( true ) {\n          local_34 = iVar12;\n          iVar11 = iVar11 + 1;\n          iVar7 = iVar11 * 4;\n          *(int *)(iVar5 + iVar7 + -4) = local_34;\n          if (uVar6 <= uVar14) break;\n          uVar8 = param_3 + uVar14;\n          iVar5 = param_3;\nLAB_000a7220:\n          param_3 = 0;\n          if (uVar6 < uVar8) {\n            param_3 = (uVar14 - uVar6) + iVar5;\n            iVar5 = uVar6 - uVar14;\n          }\n          iVar12 = (**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4);\n          iVar7 = local_30;\n          if (iVar12 == 0) {\n            iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;\n            local_34 = **(int **)(local_30 + 4);\n            if (param_5 == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }\n            else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }\n          }\n          param_4 = param_4 + iVar5;\n          if (param_3 == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar12 != 0) goto LAB_000a7304;\n          if (local_34 == 0) goto LAB_000a7494;\n          iVar5 = *(int *)(param_1 + 0xc);\n          iVar12 = local_34;\n        }\n      } while( true );\n    }\nLAB_000a7494:\n    uVar4 = 0x1094f;\n  }\n  iVar12 = (*(code *)(PTR_LAB_0015c744 + -0x6c90))(uVar4);\nLAB_000a7304:\n  if (local_2c == *(int *)puVar13) {\n    return iVar12;\n  }\n  iVar11 = local_2c;\n  puVar13 = PTR___stack_chk_fail_0015ca14;\n  (*(code *)PTR___stack_chk_fail_0015ca14)();\n  (*(code *)(*(int *)(puVar13 + 0xb51b8) + -0xc70))();\n  uVar6 = *(uint *)(iVar11 + 0x2c);\n  *(undefined4 *)(iVar11 + 0x38) = 0;\n  *(uint *)(iVar11 + 0x3c) = uVar6;\n  iVar12 = (*(code *)(*(int *)(puVar13 + 0xb5228) + -0x5370))(uVar6 + 0x11 < uVar6);\n  if (iVar12 == 0) {\n    return 7;\n  }\n  iVar5 = FUN_000a7054(iVar11,0,*(undefined4 *)(iVar11 + 0x3c),iVar12,0);\n  if (iVar5 == 0) {\n    (**(code **)(puVar13 + 0xb5504))(iVar12 + *(int *)(iVar11 + 0x3c),0,0x11);\n    *(int *)(iVar11 + 0x10) = iVar12;\n    return 0;\n  }\n  (**(code **)(puVar13 + 0xb5138))(iVar12);\n  return iVar5;\n}\n\n" (function_definition "int FUN_000a7054(int param_1,uint param_2,int param_3,int param_4,int param_5)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  uint uVar6;\n  int iVar7;\n  uint uVar8;\n  int *piVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  undefined *puVar13;\n  uint uVar14;\n  int local_34;\n  int local_30;\n  int local_2c;\n  \n  puVar13 = PTR___stack_chk_guard_0015ca30;\n  iVar12 = *(int *)(param_1 + 0x74);\n  local_2c = *(int *)PTR___stack_chk_guard_0015ca30;\n  piVar9 = *(int **)(param_1 + 0x14);\n  (*(code *)(PTR_LAB_0015c66c + -0xc70))();\n  iVar11 = *(int *)(param_1 + 0x28);\n  uVar6 = (uint)*(ushort *)(param_1 + 0x30);\n  if (piVar9[9] - uVar6 < (uint)(iVar11 - *(int *)(iVar12 + 0x38))) {\n    uVar4 = 0x108be;\n  }\n  else {\n    if (param_2 < uVar6) {\n      if (uVar6 < param_2 + param_3) {\n        iVar5 = uVar6 - param_2;\n        if (param_5 != 0) goto LAB_000a7298;\nLAB_000a7354:\n        iVar7 = param_4;\n        iVar10 = iVar11 + param_2;\n      }\n      else {\n        iVar5 = param_3;\n        if (param_5 == 0) goto LAB_000a7354;\nLAB_000a7298:\n        iVar7 = iVar11 + param_2;\n        iVar12 = FUN_0009cf5c(*(undefined4 *)(iVar12 + 0x48));\n        iVar10 = param_4;\n        if (iVar12 != 0) goto LAB_000a7304;\n      }\n      param_3 = param_3 - iVar5;\n      (*(code *)PTR_memcpy_0015ca34)(iVar7,iVar10,iVar5);\n      param_4 = param_4 + iVar5;\n      param_2 = 0;\n      if (param_3 == 0) goto LAB_000a72dc;\n    }\n    else {\n      param_2 = param_2 - uVar6;\n      if (param_3 == 0) {\nLAB_000a72dc:\n        iVar12 = 0;\n        goto LAB_000a7304;\n      }\n    }\n    iVar12 = *(int *)(param_1 + 0xc);\n    uVar6 = piVar9[9] - 4;\n    local_34 = *(int *)(iVar11 + (uint)*(ushort *)(param_1 + 0x30));\n    if ((*(byte *)(param_1 + 1) & 4) == 0) {\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar14 = ((*(int *)(param_1 + 0x2c) + -1 + uVar6) - (uint)*(ushort *)(param_1 + 0x30)) / uVar6\n      ;\n      if (iVar12 == 0) {\nLAB_000a7368:\n        iVar12 = (*(code *)(PTR_LAB_0015c6dc + -0x2708))(iVar12);\n        if (iVar12 == 0) {\n          iVar12 = 7;\n          goto LAB_000a7304;\n        }\n        *(int *)(param_1 + 0xc) = iVar12;\n      }\n      else {\n        iVar11 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();\n        iVar12 = *(int *)(param_1 + 0xc);\n        if (iVar11 < (int)(uVar14 << 2)) goto LAB_000a7368;\n      }\n      (*(code *)PTR_memset_0015c9b8)(iVar12,0,uVar14 << 2);\n      *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) | 4;\n    }\n    else {\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar8 = param_2 / uVar6;\n      uVar14 = param_2 % uVar6;\n      iVar11 = *(int *)(iVar12 + uVar8 * 4);\n      if (iVar11 != 0) goto LAB_000a719c;\n    }\n    uVar8 = 0;\n    if (local_34 != 0) {\n      iVar12 = *(int *)(param_1 + 0xc);\n      uVar14 = param_2;\n      iVar11 = local_34;\nLAB_000a719c:\n      local_34 = iVar11;\n      puVar2 = PTR_DAT_0015c708;\n      puVar1 = PTR_LAB_0015c66c;\n      uVar4 = 2;\n      iVar11 = uVar8 + 1;\n      if (param_5 != 0) {\n        uVar4 = 0;\n      }\n      iVar7 = iVar11 * 4;\n      *(int *)(iVar12 + iVar7 + -4) = local_34;\n      puVar3 = PTR_LAB_0015c744;\n      uVar8 = param_3 + uVar14;\n      iVar5 = param_3;\n      if (uVar14 < uVar6) goto LAB_000a7220;\n      do {\n        iVar5 = *(int *)(param_1 + 0xc);\n        uVar14 = uVar14 - uVar6;\n        iVar12 = *(int *)(iVar5 + iVar7);\n        if (*(int *)(iVar5 + iVar7) == 0) {\n          iVar12 = (*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34);\n          goto LAB_000a7268;\n        }\n        while( true ) {\n          local_34 = iVar12;\n          iVar11 = iVar11 + 1;\n          iVar7 = iVar11 * 4;\n          *(int *)(iVar5 + iVar7 + -4) = local_34;\n          if (uVar6 <= uVar14) break;\n          uVar8 = param_3 + uVar14;\n          iVar5 = param_3;\nLAB_000a7220:\n          param_3 = 0;\n          if (uVar6 < uVar8) {\n            param_3 = (uVar14 - uVar6) + iVar5;\n            iVar5 = uVar6 - uVar14;\n          }\n          iVar12 = (**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4);\n          iVar7 = local_30;\n          if (iVar12 == 0) {\n            iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;\n            local_34 = **(int **)(local_30 + 4);\n            if (param_5 == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }\n            else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }\n          }\n          param_4 = param_4 + iVar5;\n          if (param_3 == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar12 != 0) goto LAB_000a7304;\n          if (local_34 == 0) goto LAB_000a7494;\n          iVar5 = *(int *)(param_1 + 0xc);\n          iVar12 = local_34;\n        }\n      } while( true );\n    }\nLAB_000a7494:\n    uVar4 = 0x1094f;\n  }\n  iVar12 = (*(code *)(PTR_LAB_0015c744 + -0x6c90))(uVar4);\nLAB_000a7304:\n  if (local_2c == *(int *)puVar13) {\n    return iVar12;\n  }\n  iVar11 = local_2c;\n  puVar13 = PTR___stack_chk_fail_0015ca14;\n  (*(code *)PTR___stack_chk_fail_0015ca14)();\n  (*(code *)(*(int *)(puVar13 + 0xb51b8) + -0xc70))();\n  uVar6 = *(uint *)(iVar11 + 0x2c);\n  *(undefined4 *)(iVar11 + 0x38) = 0;\n  *(uint *)(iVar11 + 0x3c) = uVar6;\n  iVar12 = (*(code *)(*(int *)(puVar13 + 0xb5228) + -0x5370))(uVar6 + 0x11 < uVar6);\n  if (iVar12 == 0) {\n    return 7;\n  }\n  iVar5 = FUN_000a7054(iVar11,0,*(undefined4 *)(iVar11 + 0x3c),iVar12,0);\n  if (iVar5 == 0) {\n    (**(code **)(puVar13 + 0xb5504))(iVar12 + *(int *)(iVar11 + 0x3c),0,0x11);\n    *(int *)(iVar11 + 0x10) = iVar12;\n    return 0;\n  }\n  (**(code **)(puVar13 + 0xb5138))(iVar12);\n  return iVar5;\n}" primitive_type (function_declarator "FUN_000a7054(int param_1,uint param_2,int param_3,int param_4,int param_5)" identifier (parameter_list "(int param_1,uint param_2,int param_3,int param_4,int param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  uint uVar6;\n  int iVar7;\n  uint uVar8;\n  int *piVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  undefined *puVar13;\n  uint uVar14;\n  int local_34;\n  int local_30;\n  int local_2c;\n  \n  puVar13 = PTR___stack_chk_guard_0015ca30;\n  iVar12 = *(int *)(param_1 + 0x74);\n  local_2c = *(int *)PTR___stack_chk_guard_0015ca30;\n  piVar9 = *(int **)(param_1 + 0x14);\n  (*(code *)(PTR_LAB_0015c66c + -0xc70))();\n  iVar11 = *(int *)(param_1 + 0x28);\n  uVar6 = (uint)*(ushort *)(param_1 + 0x30);\n  if (piVar9[9] - uVar6 < (uint)(iVar11 - *(int *)(iVar12 + 0x38))) {\n    uVar4 = 0x108be;\n  }\n  else {\n    if (param_2 < uVar6) {\n      if (uVar6 < param_2 + param_3) {\n        iVar5 = uVar6 - param_2;\n        if (param_5 != 0) goto LAB_000a7298;\nLAB_000a7354:\n        iVar7 = param_4;\n        iVar10 = iVar11 + param_2;\n      }\n      else {\n        iVar5 = param_3;\n        if (param_5 == 0) goto LAB_000a7354;\nLAB_000a7298:\n        iVar7 = iVar11 + param_2;\n        iVar12 = FUN_0009cf5c(*(undefined4 *)(iVar12 + 0x48));\n        iVar10 = param_4;\n        if (iVar12 != 0) goto LAB_000a7304;\n      }\n      param_3 = param_3 - iVar5;\n      (*(code *)PTR_memcpy_0015ca34)(iVar7,iVar10,iVar5);\n      param_4 = param_4 + iVar5;\n      param_2 = 0;\n      if (param_3 == 0) goto LAB_000a72dc;\n    }\n    else {\n      param_2 = param_2 - uVar6;\n      if (param_3 == 0) {\nLAB_000a72dc:\n        iVar12 = 0;\n        goto LAB_000a7304;\n      }\n    }\n    iVar12 = *(int *)(param_1 + 0xc);\n    uVar6 = piVar9[9] - 4;\n    local_34 = *(int *)(iVar11 + (uint)*(ushort *)(param_1 + 0x30));\n    if ((*(byte *)(param_1 + 1) & 4) == 0) {\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar14 = ((*(int *)(param_1 + 0x2c) + -1 + uVar6) - (uint)*(ushort *)(param_1 + 0x30)) / uVar6\n      ;\n      if (iVar12 == 0) {\nLAB_000a7368:\n        iVar12 = (*(code *)(PTR_LAB_0015c6dc + -0x2708))(iVar12);\n        if (iVar12 == 0) {\n          iVar12 = 7;\n          goto LAB_000a7304;\n        }\n        *(int *)(param_1 + 0xc) = iVar12;\n      }\n      else {\n        iVar11 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();\n        iVar12 = *(int *)(param_1 + 0xc);\n        if (iVar11 < (int)(uVar14 << 2)) goto LAB_000a7368;\n      }\n      (*(code *)PTR_memset_0015c9b8)(iVar12,0,uVar14 << 2);\n      *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) | 4;\n    }\n    else {\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar8 = param_2 / uVar6;\n      uVar14 = param_2 % uVar6;\n      iVar11 = *(int *)(iVar12 + uVar8 * 4);\n      if (iVar11 != 0) goto LAB_000a719c;\n    }\n    uVar8 = 0;\n    if (local_34 != 0) {\n      iVar12 = *(int *)(param_1 + 0xc);\n      uVar14 = param_2;\n      iVar11 = local_34;\nLAB_000a719c:\n      local_34 = iVar11;\n      puVar2 = PTR_DAT_0015c708;\n      puVar1 = PTR_LAB_0015c66c;\n      uVar4 = 2;\n      iVar11 = uVar8 + 1;\n      if (param_5 != 0) {\n        uVar4 = 0;\n      }\n      iVar7 = iVar11 * 4;\n      *(int *)(iVar12 + iVar7 + -4) = local_34;\n      puVar3 = PTR_LAB_0015c744;\n      uVar8 = param_3 + uVar14;\n      iVar5 = param_3;\n      if (uVar14 < uVar6) goto LAB_000a7220;\n      do {\n        iVar5 = *(int *)(param_1 + 0xc);\n        uVar14 = uVar14 - uVar6;\n        iVar12 = *(int *)(iVar5 + iVar7);\n        if (*(int *)(iVar5 + iVar7) == 0) {\n          iVar12 = (*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34);\n          goto LAB_000a7268;\n        }\n        while( true ) {\n          local_34 = iVar12;\n          iVar11 = iVar11 + 1;\n          iVar7 = iVar11 * 4;\n          *(int *)(iVar5 + iVar7 + -4) = local_34;\n          if (uVar6 <= uVar14) break;\n          uVar8 = param_3 + uVar14;\n          iVar5 = param_3;\nLAB_000a7220:\n          param_3 = 0;\n          if (uVar6 < uVar8) {\n            param_3 = (uVar14 - uVar6) + iVar5;\n            iVar5 = uVar6 - uVar14;\n          }\n          iVar12 = (**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4);\n          iVar7 = local_30;\n          if (iVar12 == 0) {\n            iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;\n            local_34 = **(int **)(local_30 + 4);\n            if (param_5 == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }\n            else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }\n          }\n          param_4 = param_4 + iVar5;\n          if (param_3 == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar12 != 0) goto LAB_000a7304;\n          if (local_34 == 0) goto LAB_000a7494;\n          iVar5 = *(int *)(param_1 + 0xc);\n          iVar12 = local_34;\n        }\n      } while( true );\n    }\nLAB_000a7494:\n    uVar4 = 0x1094f;\n  }\n  iVar12 = (*(code *)(PTR_LAB_0015c744 + -0x6c90))(uVar4);\nLAB_000a7304:\n  if (local_2c == *(int *)puVar13) {\n    return iVar12;\n  }\n  iVar11 = local_2c;\n  puVar13 = PTR___stack_chk_fail_0015ca14;\n  (*(code *)PTR___stack_chk_fail_0015ca14)();\n  (*(code *)(*(int *)(puVar13 + 0xb51b8) + -0xc70))();\n  uVar6 = *(uint *)(iVar11 + 0x2c);\n  *(undefined4 *)(iVar11 + 0x38) = 0;\n  *(uint *)(iVar11 + 0x3c) = uVar6;\n  iVar12 = (*(code *)(*(int *)(puVar13 + 0xb5228) + -0x5370))(uVar6 + 0x11 < uVar6);\n  if (iVar12 == 0) {\n    return 7;\n  }\n  iVar5 = FUN_000a7054(iVar11,0,*(undefined4 *)(iVar11 + 0x3c),iVar12,0);\n  if (iVar5 == 0) {\n    (**(code **)(puVar13 + 0xb5504))(iVar12 + *(int *)(iVar11 + 0x3c),0,0x11);\n    *(int *)(iVar11 + 0x10) = iVar12;\n    return 0;\n  }\n  (**(code **)(puVar13 + 0xb5138))(iVar12);\n  return iVar5;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "int *piVar9;" primitive_type (pointer_declarator "*piVar9" * identifier) ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "undefined *puVar13;" type_identifier (pointer_declarator "*puVar13" * identifier) ;) (declaration "uint uVar14;" type_identifier identifier ;) (declaration "int local_34;" primitive_type identifier ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar13 = PTR___stack_chk_guard_0015ca30;" (assignment_expression "puVar13 = PTR___stack_chk_guard_0015ca30" identifier = identifier) ;) (expression_statement "iVar12 = *(int *)(param_1 + 0x74);" (assignment_expression "iVar12 = *(int *)(param_1 + 0x74)" identifier = (pointer_expression "*(int *)(param_1 + 0x74)" * (cast_expression "(int *)(param_1 + 0x74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) ))))) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_0015ca30;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_0015ca30" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0015ca30" * (cast_expression "(int *)PTR___stack_chk_guard_0015ca30" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "piVar9 = *(int **)(param_1 + 0x14);" (assignment_expression "piVar9 = *(int **)(param_1 + 0x14)" identifier = (pointer_expression "*(int **)(param_1 + 0x14)" * (cast_expression "(int **)(param_1 + 0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "(*(code *)(PTR_LAB_0015c66c + -0xc70))();" (call_expression "(*(code *)(PTR_LAB_0015c66c + -0xc70))()" (parenthesized_expression "(*(code *)(PTR_LAB_0015c66c + -0xc70))" ( (pointer_expression "*(code *)(PTR_LAB_0015c66c + -0xc70)" * (cast_expression "(code *)(PTR_LAB_0015c66c + -0xc70)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015c66c + -0xc70)" ( (binary_expression "PTR_LAB_0015c66c + -0xc70" identifier + number_literal) )))) )) (argument_list "()" ( ))) ;) (expression_statement "iVar11 = *(int *)(param_1 + 0x28);" (assignment_expression "iVar11 = *(int *)(param_1 + 0x28)" identifier = (pointer_expression "*(int *)(param_1 + 0x28)" * (cast_expression "(int *)(param_1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "uVar6 = (uint)*(ushort *)(param_1 + 0x30);" (assignment_expression "uVar6 = (uint)*(ushort *)(param_1 + 0x30)" identifier = (binary_expression "(uint)*(ushort *)(param_1 + 0x30)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(param_1 + 0x30)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) ;) (if_statement "if (piVar9[9] - uVar6 < (uint)(iVar11 - *(int *)(iVar12 + 0x38))) {\n    uVar4 = 0x108be;\n  }\n  else {\n    if (param_2 < uVar6) {\n      if (uVar6 < param_2 + param_3) {\n        iVar5 = uVar6 - param_2;\n        if (param_5 != 0) goto LAB_000a7298;\nLAB_000a7354:\n        iVar7 = param_4;\n        iVar10 = iVar11 + param_2;\n      }\n      else {\n        iVar5 = param_3;\n        if (param_5 == 0) goto LAB_000a7354;\nLAB_000a7298:\n        iVar7 = iVar11 + param_2;\n        iVar12 = FUN_0009cf5c(*(undefined4 *)(iVar12 + 0x48));\n        iVar10 = param_4;\n        if (iVar12 != 0) goto LAB_000a7304;\n      }\n      param_3 = param_3 - iVar5;\n      (*(code *)PTR_memcpy_0015ca34)(iVar7,iVar10,iVar5);\n      param_4 = param_4 + iVar5;\n      param_2 = 0;\n      if (param_3 == 0) goto LAB_000a72dc;\n    }\n    else {\n      param_2 = param_2 - uVar6;\n      if (param_3 == 0) {\nLAB_000a72dc:\n        iVar12 = 0;\n        goto LAB_000a7304;\n      }\n    }\n    iVar12 = *(int *)(param_1 + 0xc);\n    uVar6 = piVar9[9] - 4;\n    local_34 = *(int *)(iVar11 + (uint)*(ushort *)(param_1 + 0x30));\n    if ((*(byte *)(param_1 + 1) & 4) == 0) {\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar14 = ((*(int *)(param_1 + 0x2c) + -1 + uVar6) - (uint)*(ushort *)(param_1 + 0x30)) / uVar6\n      ;\n      if (iVar12 == 0) {\nLAB_000a7368:\n        iVar12 = (*(code *)(PTR_LAB_0015c6dc + -0x2708))(iVar12);\n        if (iVar12 == 0) {\n          iVar12 = 7;\n          goto LAB_000a7304;\n        }\n        *(int *)(param_1 + 0xc) = iVar12;\n      }\n      else {\n        iVar11 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();\n        iVar12 = *(int *)(param_1 + 0xc);\n        if (iVar11 < (int)(uVar14 << 2)) goto LAB_000a7368;\n      }\n      (*(code *)PTR_memset_0015c9b8)(iVar12,0,uVar14 << 2);\n      *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) | 4;\n    }\n    else {\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar8 = param_2 / uVar6;\n      uVar14 = param_2 % uVar6;\n      iVar11 = *(int *)(iVar12 + uVar8 * 4);\n      if (iVar11 != 0) goto LAB_000a719c;\n    }\n    uVar8 = 0;\n    if (local_34 != 0) {\n      iVar12 = *(int *)(param_1 + 0xc);\n      uVar14 = param_2;\n      iVar11 = local_34;\nLAB_000a719c:\n      local_34 = iVar11;\n      puVar2 = PTR_DAT_0015c708;\n      puVar1 = PTR_LAB_0015c66c;\n      uVar4 = 2;\n      iVar11 = uVar8 + 1;\n      if (param_5 != 0) {\n        uVar4 = 0;\n      }\n      iVar7 = iVar11 * 4;\n      *(int *)(iVar12 + iVar7 + -4) = local_34;\n      puVar3 = PTR_LAB_0015c744;\n      uVar8 = param_3 + uVar14;\n      iVar5 = param_3;\n      if (uVar14 < uVar6) goto LAB_000a7220;\n      do {\n        iVar5 = *(int *)(param_1 + 0xc);\n        uVar14 = uVar14 - uVar6;\n        iVar12 = *(int *)(iVar5 + iVar7);\n        if (*(int *)(iVar5 + iVar7) == 0) {\n          iVar12 = (*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34);\n          goto LAB_000a7268;\n        }\n        while( true ) {\n          local_34 = iVar12;\n          iVar11 = iVar11 + 1;\n          iVar7 = iVar11 * 4;\n          *(int *)(iVar5 + iVar7 + -4) = local_34;\n          if (uVar6 <= uVar14) break;\n          uVar8 = param_3 + uVar14;\n          iVar5 = param_3;\nLAB_000a7220:\n          param_3 = 0;\n          if (uVar6 < uVar8) {\n            param_3 = (uVar14 - uVar6) + iVar5;\n            iVar5 = uVar6 - uVar14;\n          }\n          iVar12 = (**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4);\n          iVar7 = local_30;\n          if (iVar12 == 0) {\n            iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;\n            local_34 = **(int **)(local_30 + 4);\n            if (param_5 == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }\n            else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }\n          }\n          param_4 = param_4 + iVar5;\n          if (param_3 == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar12 != 0) goto LAB_000a7304;\n          if (local_34 == 0) goto LAB_000a7494;\n          iVar5 = *(int *)(param_1 + 0xc);\n          iVar12 = local_34;\n        }\n      } while( true );\n    }\nLAB_000a7494:\n    uVar4 = 0x1094f;\n  }" if (parenthesized_expression "(piVar9[9] - uVar6 < (uint)(iVar11 - *(int *)(iVar12 + 0x38)))" ( (binary_expression "piVar9[9] - uVar6 < (uint)(iVar11 - *(int *)(iVar12 + 0x38))" (binary_expression "piVar9[9] - uVar6" (subscript_expression "piVar9[9]" identifier [ number_literal ]) - identifier) < (call_expression "(uint)(iVar11 - *(int *)(iVar12 + 0x38))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar11 - *(int *)(iVar12 + 0x38))" ( (binary_expression "iVar11 - *(int *)(iVar12 + 0x38)" identifier - (pointer_expression "*(int *)(iVar12 + 0x38)" * (cast_expression "(int *)(iVar12 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x38)" ( (binary_expression "iVar12 + 0x38" identifier + number_literal) ))))) )))) )) (compound_statement "{\n    uVar4 = 0x108be;\n  }" { (expression_statement "uVar4 = 0x108be;" (assignment_expression "uVar4 = 0x108be" identifier = number_literal) ;) }) (else_clause "else {\n    if (param_2 < uVar6) {\n      if (uVar6 < param_2 + param_3) {\n        iVar5 = uVar6 - param_2;\n        if (param_5 != 0) goto LAB_000a7298;\nLAB_000a7354:\n        iVar7 = param_4;\n        iVar10 = iVar11 + param_2;\n      }\n      else {\n        iVar5 = param_3;\n        if (param_5 == 0) goto LAB_000a7354;\nLAB_000a7298:\n        iVar7 = iVar11 + param_2;\n        iVar12 = FUN_0009cf5c(*(undefined4 *)(iVar12 + 0x48));\n        iVar10 = param_4;\n        if (iVar12 != 0) goto LAB_000a7304;\n      }\n      param_3 = param_3 - iVar5;\n      (*(code *)PTR_memcpy_0015ca34)(iVar7,iVar10,iVar5);\n      param_4 = param_4 + iVar5;\n      param_2 = 0;\n      if (param_3 == 0) goto LAB_000a72dc;\n    }\n    else {\n      param_2 = param_2 - uVar6;\n      if (param_3 == 0) {\nLAB_000a72dc:\n        iVar12 = 0;\n        goto LAB_000a7304;\n      }\n    }\n    iVar12 = *(int *)(param_1 + 0xc);\n    uVar6 = piVar9[9] - 4;\n    local_34 = *(int *)(iVar11 + (uint)*(ushort *)(param_1 + 0x30));\n    if ((*(byte *)(param_1 + 1) & 4) == 0) {\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar14 = ((*(int *)(param_1 + 0x2c) + -1 + uVar6) - (uint)*(ushort *)(param_1 + 0x30)) / uVar6\n      ;\n      if (iVar12 == 0) {\nLAB_000a7368:\n        iVar12 = (*(code *)(PTR_LAB_0015c6dc + -0x2708))(iVar12);\n        if (iVar12 == 0) {\n          iVar12 = 7;\n          goto LAB_000a7304;\n        }\n        *(int *)(param_1 + 0xc) = iVar12;\n      }\n      else {\n        iVar11 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();\n        iVar12 = *(int *)(param_1 + 0xc);\n        if (iVar11 < (int)(uVar14 << 2)) goto LAB_000a7368;\n      }\n      (*(code *)PTR_memset_0015c9b8)(iVar12,0,uVar14 << 2);\n      *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) | 4;\n    }\n    else {\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar8 = param_2 / uVar6;\n      uVar14 = param_2 % uVar6;\n      iVar11 = *(int *)(iVar12 + uVar8 * 4);\n      if (iVar11 != 0) goto LAB_000a719c;\n    }\n    uVar8 = 0;\n    if (local_34 != 0) {\n      iVar12 = *(int *)(param_1 + 0xc);\n      uVar14 = param_2;\n      iVar11 = local_34;\nLAB_000a719c:\n      local_34 = iVar11;\n      puVar2 = PTR_DAT_0015c708;\n      puVar1 = PTR_LAB_0015c66c;\n      uVar4 = 2;\n      iVar11 = uVar8 + 1;\n      if (param_5 != 0) {\n        uVar4 = 0;\n      }\n      iVar7 = iVar11 * 4;\n      *(int *)(iVar12 + iVar7 + -4) = local_34;\n      puVar3 = PTR_LAB_0015c744;\n      uVar8 = param_3 + uVar14;\n      iVar5 = param_3;\n      if (uVar14 < uVar6) goto LAB_000a7220;\n      do {\n        iVar5 = *(int *)(param_1 + 0xc);\n        uVar14 = uVar14 - uVar6;\n        iVar12 = *(int *)(iVar5 + iVar7);\n        if (*(int *)(iVar5 + iVar7) == 0) {\n          iVar12 = (*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34);\n          goto LAB_000a7268;\n        }\n        while( true ) {\n          local_34 = iVar12;\n          iVar11 = iVar11 + 1;\n          iVar7 = iVar11 * 4;\n          *(int *)(iVar5 + iVar7 + -4) = local_34;\n          if (uVar6 <= uVar14) break;\n          uVar8 = param_3 + uVar14;\n          iVar5 = param_3;\nLAB_000a7220:\n          param_3 = 0;\n          if (uVar6 < uVar8) {\n            param_3 = (uVar14 - uVar6) + iVar5;\n            iVar5 = uVar6 - uVar14;\n          }\n          iVar12 = (**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4);\n          iVar7 = local_30;\n          if (iVar12 == 0) {\n            iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;\n            local_34 = **(int **)(local_30 + 4);\n            if (param_5 == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }\n            else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }\n          }\n          param_4 = param_4 + iVar5;\n          if (param_3 == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar12 != 0) goto LAB_000a7304;\n          if (local_34 == 0) goto LAB_000a7494;\n          iVar5 = *(int *)(param_1 + 0xc);\n          iVar12 = local_34;\n        }\n      } while( true );\n    }\nLAB_000a7494:\n    uVar4 = 0x1094f;\n  }" else (compound_statement "{\n    if (param_2 < uVar6) {\n      if (uVar6 < param_2 + param_3) {\n        iVar5 = uVar6 - param_2;\n        if (param_5 != 0) goto LAB_000a7298;\nLAB_000a7354:\n        iVar7 = param_4;\n        iVar10 = iVar11 + param_2;\n      }\n      else {\n        iVar5 = param_3;\n        if (param_5 == 0) goto LAB_000a7354;\nLAB_000a7298:\n        iVar7 = iVar11 + param_2;\n        iVar12 = FUN_0009cf5c(*(undefined4 *)(iVar12 + 0x48));\n        iVar10 = param_4;\n        if (iVar12 != 0) goto LAB_000a7304;\n      }\n      param_3 = param_3 - iVar5;\n      (*(code *)PTR_memcpy_0015ca34)(iVar7,iVar10,iVar5);\n      param_4 = param_4 + iVar5;\n      param_2 = 0;\n      if (param_3 == 0) goto LAB_000a72dc;\n    }\n    else {\n      param_2 = param_2 - uVar6;\n      if (param_3 == 0) {\nLAB_000a72dc:\n        iVar12 = 0;\n        goto LAB_000a7304;\n      }\n    }\n    iVar12 = *(int *)(param_1 + 0xc);\n    uVar6 = piVar9[9] - 4;\n    local_34 = *(int *)(iVar11 + (uint)*(ushort *)(param_1 + 0x30));\n    if ((*(byte *)(param_1 + 1) & 4) == 0) {\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar14 = ((*(int *)(param_1 + 0x2c) + -1 + uVar6) - (uint)*(ushort *)(param_1 + 0x30)) / uVar6\n      ;\n      if (iVar12 == 0) {\nLAB_000a7368:\n        iVar12 = (*(code *)(PTR_LAB_0015c6dc + -0x2708))(iVar12);\n        if (iVar12 == 0) {\n          iVar12 = 7;\n          goto LAB_000a7304;\n        }\n        *(int *)(param_1 + 0xc) = iVar12;\n      }\n      else {\n        iVar11 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();\n        iVar12 = *(int *)(param_1 + 0xc);\n        if (iVar11 < (int)(uVar14 << 2)) goto LAB_000a7368;\n      }\n      (*(code *)PTR_memset_0015c9b8)(iVar12,0,uVar14 << 2);\n      *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) | 4;\n    }\n    else {\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar8 = param_2 / uVar6;\n      uVar14 = param_2 % uVar6;\n      iVar11 = *(int *)(iVar12 + uVar8 * 4);\n      if (iVar11 != 0) goto LAB_000a719c;\n    }\n    uVar8 = 0;\n    if (local_34 != 0) {\n      iVar12 = *(int *)(param_1 + 0xc);\n      uVar14 = param_2;\n      iVar11 = local_34;\nLAB_000a719c:\n      local_34 = iVar11;\n      puVar2 = PTR_DAT_0015c708;\n      puVar1 = PTR_LAB_0015c66c;\n      uVar4 = 2;\n      iVar11 = uVar8 + 1;\n      if (param_5 != 0) {\n        uVar4 = 0;\n      }\n      iVar7 = iVar11 * 4;\n      *(int *)(iVar12 + iVar7 + -4) = local_34;\n      puVar3 = PTR_LAB_0015c744;\n      uVar8 = param_3 + uVar14;\n      iVar5 = param_3;\n      if (uVar14 < uVar6) goto LAB_000a7220;\n      do {\n        iVar5 = *(int *)(param_1 + 0xc);\n        uVar14 = uVar14 - uVar6;\n        iVar12 = *(int *)(iVar5 + iVar7);\n        if (*(int *)(iVar5 + iVar7) == 0) {\n          iVar12 = (*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34);\n          goto LAB_000a7268;\n        }\n        while( true ) {\n          local_34 = iVar12;\n          iVar11 = iVar11 + 1;\n          iVar7 = iVar11 * 4;\n          *(int *)(iVar5 + iVar7 + -4) = local_34;\n          if (uVar6 <= uVar14) break;\n          uVar8 = param_3 + uVar14;\n          iVar5 = param_3;\nLAB_000a7220:\n          param_3 = 0;\n          if (uVar6 < uVar8) {\n            param_3 = (uVar14 - uVar6) + iVar5;\n            iVar5 = uVar6 - uVar14;\n          }\n          iVar12 = (**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4);\n          iVar7 = local_30;\n          if (iVar12 == 0) {\n            iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;\n            local_34 = **(int **)(local_30 + 4);\n            if (param_5 == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }\n            else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }\n          }\n          param_4 = param_4 + iVar5;\n          if (param_3 == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar12 != 0) goto LAB_000a7304;\n          if (local_34 == 0) goto LAB_000a7494;\n          iVar5 = *(int *)(param_1 + 0xc);\n          iVar12 = local_34;\n        }\n      } while( true );\n    }\nLAB_000a7494:\n    uVar4 = 0x1094f;\n  }" { (if_statement "if (param_2 < uVar6) {\n      if (uVar6 < param_2 + param_3) {\n        iVar5 = uVar6 - param_2;\n        if (param_5 != 0) goto LAB_000a7298;\nLAB_000a7354:\n        iVar7 = param_4;\n        iVar10 = iVar11 + param_2;\n      }\n      else {\n        iVar5 = param_3;\n        if (param_5 == 0) goto LAB_000a7354;\nLAB_000a7298:\n        iVar7 = iVar11 + param_2;\n        iVar12 = FUN_0009cf5c(*(undefined4 *)(iVar12 + 0x48));\n        iVar10 = param_4;\n        if (iVar12 != 0) goto LAB_000a7304;\n      }\n      param_3 = param_3 - iVar5;\n      (*(code *)PTR_memcpy_0015ca34)(iVar7,iVar10,iVar5);\n      param_4 = param_4 + iVar5;\n      param_2 = 0;\n      if (param_3 == 0) goto LAB_000a72dc;\n    }\n    else {\n      param_2 = param_2 - uVar6;\n      if (param_3 == 0) {\nLAB_000a72dc:\n        iVar12 = 0;\n        goto LAB_000a7304;\n      }\n    }" if (parenthesized_expression "(param_2 < uVar6)" ( (binary_expression "param_2 < uVar6" identifier < identifier) )) (compound_statement "{\n      if (uVar6 < param_2 + param_3) {\n        iVar5 = uVar6 - param_2;\n        if (param_5 != 0) goto LAB_000a7298;\nLAB_000a7354:\n        iVar7 = param_4;\n        iVar10 = iVar11 + param_2;\n      }\n      else {\n        iVar5 = param_3;\n        if (param_5 == 0) goto LAB_000a7354;\nLAB_000a7298:\n        iVar7 = iVar11 + param_2;\n        iVar12 = FUN_0009cf5c(*(undefined4 *)(iVar12 + 0x48));\n        iVar10 = param_4;\n        if (iVar12 != 0) goto LAB_000a7304;\n      }\n      param_3 = param_3 - iVar5;\n      (*(code *)PTR_memcpy_0015ca34)(iVar7,iVar10,iVar5);\n      param_4 = param_4 + iVar5;\n      param_2 = 0;\n      if (param_3 == 0) goto LAB_000a72dc;\n    }" { (if_statement "if (uVar6 < param_2 + param_3) {\n        iVar5 = uVar6 - param_2;\n        if (param_5 != 0) goto LAB_000a7298;\nLAB_000a7354:\n        iVar7 = param_4;\n        iVar10 = iVar11 + param_2;\n      }\n      else {\n        iVar5 = param_3;\n        if (param_5 == 0) goto LAB_000a7354;\nLAB_000a7298:\n        iVar7 = iVar11 + param_2;\n        iVar12 = FUN_0009cf5c(*(undefined4 *)(iVar12 + 0x48));\n        iVar10 = param_4;\n        if (iVar12 != 0) goto LAB_000a7304;\n      }" if (parenthesized_expression "(uVar6 < param_2 + param_3)" ( (binary_expression "uVar6 < param_2 + param_3" identifier < (binary_expression "param_2 + param_3" identifier + identifier)) )) (compound_statement "{\n        iVar5 = uVar6 - param_2;\n        if (param_5 != 0) goto LAB_000a7298;\nLAB_000a7354:\n        iVar7 = param_4;\n        iVar10 = iVar11 + param_2;\n      }" { (expression_statement "iVar5 = uVar6 - param_2;" (assignment_expression "iVar5 = uVar6 - param_2" identifier = (binary_expression "uVar6 - param_2" identifier - identifier)) ;) (if_statement "if (param_5 != 0) goto LAB_000a7298;" if (parenthesized_expression "(param_5 != 0)" ( (binary_expression "param_5 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000a7298;" goto statement_identifier ;)) (labeled_statement "LAB_000a7354:\n        iVar7 = param_4;" statement_identifier : (expression_statement "iVar7 = param_4;" (assignment_expression "iVar7 = param_4" identifier = identifier) ;)) (expression_statement "iVar10 = iVar11 + param_2;" (assignment_expression "iVar10 = iVar11 + param_2" identifier = (binary_expression "iVar11 + param_2" identifier + identifier)) ;) }) (else_clause "else {\n        iVar5 = param_3;\n        if (param_5 == 0) goto LAB_000a7354;\nLAB_000a7298:\n        iVar7 = iVar11 + param_2;\n        iVar12 = FUN_0009cf5c(*(undefined4 *)(iVar12 + 0x48));\n        iVar10 = param_4;\n        if (iVar12 != 0) goto LAB_000a7304;\n      }" else (compound_statement "{\n        iVar5 = param_3;\n        if (param_5 == 0) goto LAB_000a7354;\nLAB_000a7298:\n        iVar7 = iVar11 + param_2;\n        iVar12 = FUN_0009cf5c(*(undefined4 *)(iVar12 + 0x48));\n        iVar10 = param_4;\n        if (iVar12 != 0) goto LAB_000a7304;\n      }" { (expression_statement "iVar5 = param_3;" (assignment_expression "iVar5 = param_3" identifier = identifier) ;) (if_statement "if (param_5 == 0) goto LAB_000a7354;" if (parenthesized_expression "(param_5 == 0)" ( (binary_expression "param_5 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000a7354;" goto statement_identifier ;)) (labeled_statement "LAB_000a7298:\n        iVar7 = iVar11 + param_2;" statement_identifier : (expression_statement "iVar7 = iVar11 + param_2;" (assignment_expression "iVar7 = iVar11 + param_2" identifier = (binary_expression "iVar11 + param_2" identifier + identifier)) ;)) (expression_statement "iVar12 = FUN_0009cf5c(*(undefined4 *)(iVar12 + 0x48));" (assignment_expression "iVar12 = FUN_0009cf5c(*(undefined4 *)(iVar12 + 0x48))" identifier = (call_expression "FUN_0009cf5c(*(undefined4 *)(iVar12 + 0x48))" identifier (argument_list "(*(undefined4 *)(iVar12 + 0x48))" ( (pointer_expression "*(undefined4 *)(iVar12 + 0x48)" * (cast_expression "(undefined4 *)(iVar12 + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x48)" ( (binary_expression "iVar12 + 0x48" identifier + number_literal) )))) )))) ;) (expression_statement "iVar10 = param_4;" (assignment_expression "iVar10 = param_4" identifier = identifier) ;) (if_statement "if (iVar12 != 0) goto LAB_000a7304;" if (parenthesized_expression "(iVar12 != 0)" ( (binary_expression "iVar12 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000a7304;" goto statement_identifier ;)) }))) (expression_statement "param_3 = param_3 - iVar5;" (assignment_expression "param_3 = param_3 - iVar5" identifier = (binary_expression "param_3 - iVar5" identifier - identifier)) ;) (expression_statement "(*(code *)PTR_memcpy_0015ca34)(iVar7,iVar10,iVar5);" (call_expression "(*(code *)PTR_memcpy_0015ca34)(iVar7,iVar10,iVar5)" (parenthesized_expression "(*(code *)PTR_memcpy_0015ca34)" ( (pointer_expression "*(code *)PTR_memcpy_0015ca34" * (cast_expression "(code *)PTR_memcpy_0015ca34" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7,iVar10,iVar5)" ( identifier , identifier , identifier ))) ;) (expression_statement "param_4 = param_4 + iVar5;" (assignment_expression "param_4 = param_4 + iVar5" identifier = (binary_expression "param_4 + iVar5" identifier + identifier)) ;) (expression_statement "param_2 = 0;" (assignment_expression "param_2 = 0" identifier = number_literal) ;) (if_statement "if (param_3 == 0) goto LAB_000a72dc;" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000a72dc;" goto statement_identifier ;)) }) (else_clause "else {\n      param_2 = param_2 - uVar6;\n      if (param_3 == 0) {\nLAB_000a72dc:\n        iVar12 = 0;\n        goto LAB_000a7304;\n      }\n    }" else (compound_statement "{\n      param_2 = param_2 - uVar6;\n      if (param_3 == 0) {\nLAB_000a72dc:\n        iVar12 = 0;\n        goto LAB_000a7304;\n      }\n    }" { (expression_statement "param_2 = param_2 - uVar6;" (assignment_expression "param_2 = param_2 - uVar6" identifier = (binary_expression "param_2 - uVar6" identifier - identifier)) ;) (if_statement "if (param_3 == 0) {\nLAB_000a72dc:\n        iVar12 = 0;\n        goto LAB_000a7304;\n      }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_000a72dc:\n        iVar12 = 0;\n        goto LAB_000a7304;\n      }" { (labeled_statement "LAB_000a72dc:\n        iVar12 = 0;" statement_identifier : (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" identifier = number_literal) ;)) (goto_statement "goto LAB_000a7304;" goto statement_identifier ;) })) }))) (expression_statement "iVar12 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar12 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "uVar6 = piVar9[9] - 4;" (assignment_expression "uVar6 = piVar9[9] - 4" identifier = (binary_expression "piVar9[9] - 4" (subscript_expression "piVar9[9]" identifier [ number_literal ]) - number_literal)) ;) (expression_statement "local_34 = *(int *)(iVar11 + (uint)*(ushort *)(param_1 + 0x30));" (assignment_expression "local_34 = *(int *)(iVar11 + (uint)*(ushort *)(param_1 + 0x30))" identifier = (pointer_expression "*(int *)(iVar11 + (uint)*(ushort *)(param_1 + 0x30))" * (cast_expression "(int *)(iVar11 + (uint)*(ushort *)(param_1 + 0x30))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar11 + (uint)*(ushort *)(param_1 + 0x30))" ( (binary_expression "iVar11 + (uint)*(ushort *)(param_1 + 0x30)" identifier + (binary_expression "(uint)*(ushort *)(param_1 + 0x30)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(param_1 + 0x30)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) ))))) ;) (if_statement "if ((*(byte *)(param_1 + 1) & 4) == 0) {\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar14 = ((*(int *)(param_1 + 0x2c) + -1 + uVar6) - (uint)*(ushort *)(param_1 + 0x30)) / uVar6\n      ;\n      if (iVar12 == 0) {\nLAB_000a7368:\n        iVar12 = (*(code *)(PTR_LAB_0015c6dc + -0x2708))(iVar12);\n        if (iVar12 == 0) {\n          iVar12 = 7;\n          goto LAB_000a7304;\n        }\n        *(int *)(param_1 + 0xc) = iVar12;\n      }\n      else {\n        iVar11 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();\n        iVar12 = *(int *)(param_1 + 0xc);\n        if (iVar11 < (int)(uVar14 << 2)) goto LAB_000a7368;\n      }\n      (*(code *)PTR_memset_0015c9b8)(iVar12,0,uVar14 << 2);\n      *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) | 4;\n    }\n    else {\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar8 = param_2 / uVar6;\n      uVar14 = param_2 % uVar6;\n      iVar11 = *(int *)(iVar12 + uVar8 * 4);\n      if (iVar11 != 0) goto LAB_000a719c;\n    }" if (parenthesized_expression "((*(byte *)(param_1 + 1) & 4) == 0)" ( (binary_expression "(*(byte *)(param_1 + 1) & 4) == 0" (parenthesized_expression "(*(byte *)(param_1 + 1) & 4)" ( (binary_expression "*(byte *)(param_1 + 1) & 4" (pointer_expression "*(byte *)(param_1 + 1)" * (cast_expression "(byte *)(param_1 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar14 = ((*(int *)(param_1 + 0x2c) + -1 + uVar6) - (uint)*(ushort *)(param_1 + 0x30)) / uVar6\n      ;\n      if (iVar12 == 0) {\nLAB_000a7368:\n        iVar12 = (*(code *)(PTR_LAB_0015c6dc + -0x2708))(iVar12);\n        if (iVar12 == 0) {\n          iVar12 = 7;\n          goto LAB_000a7304;\n        }\n        *(int *)(param_1 + 0xc) = iVar12;\n      }\n      else {\n        iVar11 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();\n        iVar12 = *(int *)(param_1 + 0xc);\n        if (iVar11 < (int)(uVar14 << 2)) goto LAB_000a7368;\n      }\n      (*(code *)PTR_memset_0015c9b8)(iVar12,0,uVar14 << 2);\n      *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) | 4;\n    }" { (if_statement "if (uVar6 == 0) {\n        trap(7);\n      }" if (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) (compound_statement "{\n        trap(7);\n      }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) (expression_statement "uVar14 = ((*(int *)(param_1 + 0x2c) + -1 + uVar6) - (uint)*(ushort *)(param_1 + 0x30)) / uVar6\n      ;" (assignment_expression "uVar14 = ((*(int *)(param_1 + 0x2c) + -1 + uVar6) - (uint)*(ushort *)(param_1 + 0x30)) / uVar6" identifier = (binary_expression "((*(int *)(param_1 + 0x2c) + -1 + uVar6) - (uint)*(ushort *)(param_1 + 0x30)) / uVar6" (parenthesized_expression "((*(int *)(param_1 + 0x2c) + -1 + uVar6) - (uint)*(ushort *)(param_1 + 0x30))" ( (binary_expression "(*(int *)(param_1 + 0x2c) + -1 + uVar6) - (uint)*(ushort *)(param_1 + 0x30)" (parenthesized_expression "(*(int *)(param_1 + 0x2c) + -1 + uVar6)" ( (binary_expression "*(int *)(param_1 + 0x2c) + -1 + uVar6" (binary_expression "*(int *)(param_1 + 0x2c) + -1" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) + number_literal) + identifier) )) - (binary_expression "(uint)*(ushort *)(param_1 + 0x30)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(param_1 + 0x30)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) )) / identifier)) ;) (if_statement "if (iVar12 == 0) {\nLAB_000a7368:\n        iVar12 = (*(code *)(PTR_LAB_0015c6dc + -0x2708))(iVar12);\n        if (iVar12 == 0) {\n          iVar12 = 7;\n          goto LAB_000a7304;\n        }\n        *(int *)(param_1 + 0xc) = iVar12;\n      }\n      else {\n        iVar11 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();\n        iVar12 = *(int *)(param_1 + 0xc);\n        if (iVar11 < (int)(uVar14 << 2)) goto LAB_000a7368;\n      }" if (parenthesized_expression "(iVar12 == 0)" ( (binary_expression "iVar12 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_000a7368:\n        iVar12 = (*(code *)(PTR_LAB_0015c6dc + -0x2708))(iVar12);\n        if (iVar12 == 0) {\n          iVar12 = 7;\n          goto LAB_000a7304;\n        }\n        *(int *)(param_1 + 0xc) = iVar12;\n      }" { (labeled_statement "LAB_000a7368:\n        iVar12 = (*(code *)(PTR_LAB_0015c6dc + -0x2708))(iVar12);" statement_identifier : (expression_statement "iVar12 = (*(code *)(PTR_LAB_0015c6dc + -0x2708))(iVar12);" (assignment_expression "iVar12 = (*(code *)(PTR_LAB_0015c6dc + -0x2708))(iVar12)" identifier = (call_expression "(*(code *)(PTR_LAB_0015c6dc + -0x2708))(iVar12)" (parenthesized_expression "(*(code *)(PTR_LAB_0015c6dc + -0x2708))" ( (pointer_expression "*(code *)(PTR_LAB_0015c6dc + -0x2708)" * (cast_expression "(code *)(PTR_LAB_0015c6dc + -0x2708)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015c6dc + -0x2708)" ( (binary_expression "PTR_LAB_0015c6dc + -0x2708" identifier + number_literal) )))) )) (argument_list "(iVar12)" ( identifier )))) ;)) (if_statement "if (iVar12 == 0) {\n          iVar12 = 7;\n          goto LAB_000a7304;\n        }" if (parenthesized_expression "(iVar12 == 0)" ( (binary_expression "iVar12 == 0" identifier == number_literal) )) (compound_statement "{\n          iVar12 = 7;\n          goto LAB_000a7304;\n        }" { (expression_statement "iVar12 = 7;" (assignment_expression "iVar12 = 7" identifier = number_literal) ;) (goto_statement "goto LAB_000a7304;" goto statement_identifier ;) })) (expression_statement "*(int *)(param_1 + 0xc) = iVar12;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar12" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n        iVar11 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();\n        iVar12 = *(int *)(param_1 + 0xc);\n        if (iVar11 < (int)(uVar14 << 2)) goto LAB_000a7368;\n      }" else (compound_statement "{\n        iVar11 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();\n        iVar12 = *(int *)(param_1 + 0xc);\n        if (iVar11 < (int)(uVar14 << 2)) goto LAB_000a7368;\n      }" { (expression_statement "iVar11 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();" (assignment_expression "iVar11 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))()" identifier = (call_expression "(**(code **)(PTR_DAT_0015c5d8 + -0x4da0))()" (parenthesized_expression "(**(code **)(PTR_DAT_0015c5d8 + -0x4da0))" ( (pointer_expression "**(code **)(PTR_DAT_0015c5d8 + -0x4da0)" * (pointer_expression "*(code **)(PTR_DAT_0015c5d8 + -0x4da0)" * (cast_expression "(code **)(PTR_DAT_0015c5d8 + -0x4da0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_0015c5d8 + -0x4da0)" ( (binary_expression "PTR_DAT_0015c5d8 + -0x4da0" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (expression_statement "iVar12 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar12 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (iVar11 < (int)(uVar14 << 2)) goto LAB_000a7368;" if (parenthesized_expression "(iVar11 < (int)(uVar14 << 2))" ( (binary_expression "iVar11 < (int)(uVar14 << 2)" identifier < (cast_expression "(int)(uVar14 << 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar14 << 2)" ( (binary_expression "uVar14 << 2" identifier << number_literal) )))) )) (goto_statement "goto LAB_000a7368;" goto statement_identifier ;)) }))) (expression_statement "(*(code *)PTR_memset_0015c9b8)(iVar12,0,uVar14 << 2);" (call_expression "(*(code *)PTR_memset_0015c9b8)(iVar12,0,uVar14 << 2)" (parenthesized_expression "(*(code *)PTR_memset_0015c9b8)" ( (pointer_expression "*(code *)PTR_memset_0015c9b8" * (cast_expression "(code *)PTR_memset_0015c9b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar12,0,uVar14 << 2)" ( identifier , number_literal , (binary_expression "uVar14 << 2" identifier << number_literal) ))) ;) (expression_statement "*(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) | 4;" (assignment_expression "*(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) | 4" (pointer_expression "*(byte *)(param_1 + 1)" * (cast_expression "(byte *)(param_1 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) = (binary_expression "*(byte *)(param_1 + 1) | 4" (pointer_expression "*(byte *)(param_1 + 1)" * (cast_expression "(byte *)(param_1 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) | number_literal)) ;) }) (else_clause "else {\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar8 = param_2 / uVar6;\n      uVar14 = param_2 % uVar6;\n      iVar11 = *(int *)(iVar12 + uVar8 * 4);\n      if (iVar11 != 0) goto LAB_000a719c;\n    }" else (compound_statement "{\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar8 = param_2 / uVar6;\n      uVar14 = param_2 % uVar6;\n      iVar11 = *(int *)(iVar12 + uVar8 * 4);\n      if (iVar11 != 0) goto LAB_000a719c;\n    }" { (if_statement "if (uVar6 == 0) {\n        trap(7);\n      }" if (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) (compound_statement "{\n        trap(7);\n      }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) (expression_statement "uVar8 = param_2 / uVar6;" (assignment_expression "uVar8 = param_2 / uVar6" identifier = (binary_expression "param_2 / uVar6" identifier / identifier)) ;) (expression_statement "uVar14 = param_2 % uVar6;" (assignment_expression "uVar14 = param_2 % uVar6" identifier = (binary_expression "param_2 % uVar6" identifier % identifier)) ;) (expression_statement "iVar11 = *(int *)(iVar12 + uVar8 * 4);" (assignment_expression "iVar11 = *(int *)(iVar12 + uVar8 * 4)" identifier = (pointer_expression "*(int *)(iVar12 + uVar8 * 4)" * (cast_expression "(int *)(iVar12 + uVar8 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + uVar8 * 4)" ( (binary_expression "iVar12 + uVar8 * 4" identifier + (binary_expression "uVar8 * 4" identifier * number_literal)) ))))) ;) (if_statement "if (iVar11 != 0) goto LAB_000a719c;" if (parenthesized_expression "(iVar11 != 0)" ( (binary_expression "iVar11 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000a719c;" goto statement_identifier ;)) }))) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (if_statement "if (local_34 != 0) {\n      iVar12 = *(int *)(param_1 + 0xc);\n      uVar14 = param_2;\n      iVar11 = local_34;\nLAB_000a719c:\n      local_34 = iVar11;\n      puVar2 = PTR_DAT_0015c708;\n      puVar1 = PTR_LAB_0015c66c;\n      uVar4 = 2;\n      iVar11 = uVar8 + 1;\n      if (param_5 != 0) {\n        uVar4 = 0;\n      }\n      iVar7 = iVar11 * 4;\n      *(int *)(iVar12 + iVar7 + -4) = local_34;\n      puVar3 = PTR_LAB_0015c744;\n      uVar8 = param_3 + uVar14;\n      iVar5 = param_3;\n      if (uVar14 < uVar6) goto LAB_000a7220;\n      do {\n        iVar5 = *(int *)(param_1 + 0xc);\n        uVar14 = uVar14 - uVar6;\n        iVar12 = *(int *)(iVar5 + iVar7);\n        if (*(int *)(iVar5 + iVar7) == 0) {\n          iVar12 = (*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34);\n          goto LAB_000a7268;\n        }\n        while( true ) {\n          local_34 = iVar12;\n          iVar11 = iVar11 + 1;\n          iVar7 = iVar11 * 4;\n          *(int *)(iVar5 + iVar7 + -4) = local_34;\n          if (uVar6 <= uVar14) break;\n          uVar8 = param_3 + uVar14;\n          iVar5 = param_3;\nLAB_000a7220:\n          param_3 = 0;\n          if (uVar6 < uVar8) {\n            param_3 = (uVar14 - uVar6) + iVar5;\n            iVar5 = uVar6 - uVar14;\n          }\n          iVar12 = (**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4);\n          iVar7 = local_30;\n          if (iVar12 == 0) {\n            iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;\n            local_34 = **(int **)(local_30 + 4);\n            if (param_5 == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }\n            else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }\n          }\n          param_4 = param_4 + iVar5;\n          if (param_3 == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar12 != 0) goto LAB_000a7304;\n          if (local_34 == 0) goto LAB_000a7494;\n          iVar5 = *(int *)(param_1 + 0xc);\n          iVar12 = local_34;\n        }\n      } while( true );\n    }" if (parenthesized_expression "(local_34 != 0)" ( (binary_expression "local_34 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar12 = *(int *)(param_1 + 0xc);\n      uVar14 = param_2;\n      iVar11 = local_34;\nLAB_000a719c:\n      local_34 = iVar11;\n      puVar2 = PTR_DAT_0015c708;\n      puVar1 = PTR_LAB_0015c66c;\n      uVar4 = 2;\n      iVar11 = uVar8 + 1;\n      if (param_5 != 0) {\n        uVar4 = 0;\n      }\n      iVar7 = iVar11 * 4;\n      *(int *)(iVar12 + iVar7 + -4) = local_34;\n      puVar3 = PTR_LAB_0015c744;\n      uVar8 = param_3 + uVar14;\n      iVar5 = param_3;\n      if (uVar14 < uVar6) goto LAB_000a7220;\n      do {\n        iVar5 = *(int *)(param_1 + 0xc);\n        uVar14 = uVar14 - uVar6;\n        iVar12 = *(int *)(iVar5 + iVar7);\n        if (*(int *)(iVar5 + iVar7) == 0) {\n          iVar12 = (*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34);\n          goto LAB_000a7268;\n        }\n        while( true ) {\n          local_34 = iVar12;\n          iVar11 = iVar11 + 1;\n          iVar7 = iVar11 * 4;\n          *(int *)(iVar5 + iVar7 + -4) = local_34;\n          if (uVar6 <= uVar14) break;\n          uVar8 = param_3 + uVar14;\n          iVar5 = param_3;\nLAB_000a7220:\n          param_3 = 0;\n          if (uVar6 < uVar8) {\n            param_3 = (uVar14 - uVar6) + iVar5;\n            iVar5 = uVar6 - uVar14;\n          }\n          iVar12 = (**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4);\n          iVar7 = local_30;\n          if (iVar12 == 0) {\n            iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;\n            local_34 = **(int **)(local_30 + 4);\n            if (param_5 == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }\n            else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }\n          }\n          param_4 = param_4 + iVar5;\n          if (param_3 == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar12 != 0) goto LAB_000a7304;\n          if (local_34 == 0) goto LAB_000a7494;\n          iVar5 = *(int *)(param_1 + 0xc);\n          iVar12 = local_34;\n        }\n      } while( true );\n    }" { (expression_statement "iVar12 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar12 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "uVar14 = param_2;" (assignment_expression "uVar14 = param_2" identifier = identifier) ;) (expression_statement "iVar11 = local_34;" (assignment_expression "iVar11 = local_34" identifier = identifier) ;) (labeled_statement "LAB_000a719c:\n      local_34 = iVar11;" statement_identifier : (expression_statement "local_34 = iVar11;" (assignment_expression "local_34 = iVar11" identifier = identifier) ;)) (expression_statement "puVar2 = PTR_DAT_0015c708;" (assignment_expression "puVar2 = PTR_DAT_0015c708" identifier = identifier) ;) (expression_statement "puVar1 = PTR_LAB_0015c66c;" (assignment_expression "puVar1 = PTR_LAB_0015c66c" identifier = identifier) ;) (expression_statement "uVar4 = 2;" (assignment_expression "uVar4 = 2" identifier = number_literal) ;) (expression_statement "iVar11 = uVar8 + 1;" (assignment_expression "iVar11 = uVar8 + 1" identifier = (binary_expression "uVar8 + 1" identifier + number_literal)) ;) (if_statement "if (param_5 != 0) {\n        uVar4 = 0;\n      }" if (parenthesized_expression "(param_5 != 0)" ( (binary_expression "param_5 != 0" identifier != number_literal) )) (compound_statement "{\n        uVar4 = 0;\n      }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) })) (expression_statement "iVar7 = iVar11 * 4;" (assignment_expression "iVar7 = iVar11 * 4" identifier = (binary_expression "iVar11 * 4" identifier * number_literal)) ;) (expression_statement "*(int *)(iVar12 + iVar7 + -4) = local_34;" (assignment_expression "*(int *)(iVar12 + iVar7 + -4) = local_34" (pointer_expression "*(int *)(iVar12 + iVar7 + -4)" * (cast_expression "(int *)(iVar12 + iVar7 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + iVar7 + -4)" ( (binary_expression "iVar12 + iVar7 + -4" (binary_expression "iVar12 + iVar7" identifier + identifier) + number_literal) )))) = identifier) ;) (expression_statement "puVar3 = PTR_LAB_0015c744;" (assignment_expression "puVar3 = PTR_LAB_0015c744" identifier = identifier) ;) (expression_statement "uVar8 = param_3 + uVar14;" (assignment_expression "uVar8 = param_3 + uVar14" identifier = (binary_expression "param_3 + uVar14" identifier + identifier)) ;) (expression_statement "iVar5 = param_3;" (assignment_expression "iVar5 = param_3" identifier = identifier) ;) (if_statement "if (uVar14 < uVar6) goto LAB_000a7220;" if (parenthesized_expression "(uVar14 < uVar6)" ( (binary_expression "uVar14 < uVar6" identifier < identifier) )) (goto_statement "goto LAB_000a7220;" goto statement_identifier ;)) (do_statement "do {\n        iVar5 = *(int *)(param_1 + 0xc);\n        uVar14 = uVar14 - uVar6;\n        iVar12 = *(int *)(iVar5 + iVar7);\n        if (*(int *)(iVar5 + iVar7) == 0) {\n          iVar12 = (*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34);\n          goto LAB_000a7268;\n        }\n        while( true ) {\n          local_34 = iVar12;\n          iVar11 = iVar11 + 1;\n          iVar7 = iVar11 * 4;\n          *(int *)(iVar5 + iVar7 + -4) = local_34;\n          if (uVar6 <= uVar14) break;\n          uVar8 = param_3 + uVar14;\n          iVar5 = param_3;\nLAB_000a7220:\n          param_3 = 0;\n          if (uVar6 < uVar8) {\n            param_3 = (uVar14 - uVar6) + iVar5;\n            iVar5 = uVar6 - uVar14;\n          }\n          iVar12 = (**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4);\n          iVar7 = local_30;\n          if (iVar12 == 0) {\n            iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;\n            local_34 = **(int **)(local_30 + 4);\n            if (param_5 == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }\n            else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }\n          }\n          param_4 = param_4 + iVar5;\n          if (param_3 == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar12 != 0) goto LAB_000a7304;\n          if (local_34 == 0) goto LAB_000a7494;\n          iVar5 = *(int *)(param_1 + 0xc);\n          iVar12 = local_34;\n        }\n      } while( true );" do (compound_statement "{\n        iVar5 = *(int *)(param_1 + 0xc);\n        uVar14 = uVar14 - uVar6;\n        iVar12 = *(int *)(iVar5 + iVar7);\n        if (*(int *)(iVar5 + iVar7) == 0) {\n          iVar12 = (*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34);\n          goto LAB_000a7268;\n        }\n        while( true ) {\n          local_34 = iVar12;\n          iVar11 = iVar11 + 1;\n          iVar7 = iVar11 * 4;\n          *(int *)(iVar5 + iVar7 + -4) = local_34;\n          if (uVar6 <= uVar14) break;\n          uVar8 = param_3 + uVar14;\n          iVar5 = param_3;\nLAB_000a7220:\n          param_3 = 0;\n          if (uVar6 < uVar8) {\n            param_3 = (uVar14 - uVar6) + iVar5;\n            iVar5 = uVar6 - uVar14;\n          }\n          iVar12 = (**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4);\n          iVar7 = local_30;\n          if (iVar12 == 0) {\n            iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;\n            local_34 = **(int **)(local_30 + 4);\n            if (param_5 == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }\n            else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }\n          }\n          param_4 = param_4 + iVar5;\n          if (param_3 == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar12 != 0) goto LAB_000a7304;\n          if (local_34 == 0) goto LAB_000a7494;\n          iVar5 = *(int *)(param_1 + 0xc);\n          iVar12 = local_34;\n        }\n      }" { (expression_statement "iVar5 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar5 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "uVar14 = uVar14 - uVar6;" (assignment_expression "uVar14 = uVar14 - uVar6" identifier = (binary_expression "uVar14 - uVar6" identifier - identifier)) ;) (expression_statement "iVar12 = *(int *)(iVar5 + iVar7);" (assignment_expression "iVar12 = *(int *)(iVar5 + iVar7)" identifier = (pointer_expression "*(int *)(iVar5 + iVar7)" * (cast_expression "(int *)(iVar5 + iVar7)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + iVar7)" ( (binary_expression "iVar5 + iVar7" identifier + identifier) ))))) ;) (if_statement "if (*(int *)(iVar5 + iVar7) == 0) {\n          iVar12 = (*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34);\n          goto LAB_000a7268;\n        }" if (parenthesized_expression "(*(int *)(iVar5 + iVar7) == 0)" ( (binary_expression "*(int *)(iVar5 + iVar7) == 0" (pointer_expression "*(int *)(iVar5 + iVar7)" * (cast_expression "(int *)(iVar5 + iVar7)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + iVar7)" ( (binary_expression "iVar5 + iVar7" identifier + identifier) )))) == number_literal) )) (compound_statement "{\n          iVar12 = (*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34);\n          goto LAB_000a7268;\n        }" { (expression_statement "iVar12 = (*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34);" (assignment_expression "iVar12 = (*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34)" identifier = (call_expression "(*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34)" (parenthesized_expression "(*(code *)(puVar3 + -0x6468))" ( (pointer_expression "*(code *)(puVar3 + -0x6468)" * (cast_expression "(code *)(puVar3 + -0x6468)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + -0x6468)" ( (binary_expression "puVar3 + -0x6468" identifier + number_literal) )))) )) (argument_list "(piVar9,local_34,0,&local_34)" ( identifier , identifier , number_literal , (pointer_expression "&local_34" & identifier) )))) ;) (goto_statement "goto LAB_000a7268;" goto statement_identifier ;) })) (while_statement "while( true ) {\n          local_34 = iVar12;\n          iVar11 = iVar11 + 1;\n          iVar7 = iVar11 * 4;\n          *(int *)(iVar5 + iVar7 + -4) = local_34;\n          if (uVar6 <= uVar14) break;\n          uVar8 = param_3 + uVar14;\n          iVar5 = param_3;\nLAB_000a7220:\n          param_3 = 0;\n          if (uVar6 < uVar8) {\n            param_3 = (uVar14 - uVar6) + iVar5;\n            iVar5 = uVar6 - uVar14;\n          }\n          iVar12 = (**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4);\n          iVar7 = local_30;\n          if (iVar12 == 0) {\n            iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;\n            local_34 = **(int **)(local_30 + 4);\n            if (param_5 == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }\n            else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }\n          }\n          param_4 = param_4 + iVar5;\n          if (param_3 == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar12 != 0) goto LAB_000a7304;\n          if (local_34 == 0) goto LAB_000a7494;\n          iVar5 = *(int *)(param_1 + 0xc);\n          iVar12 = local_34;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          local_34 = iVar12;\n          iVar11 = iVar11 + 1;\n          iVar7 = iVar11 * 4;\n          *(int *)(iVar5 + iVar7 + -4) = local_34;\n          if (uVar6 <= uVar14) break;\n          uVar8 = param_3 + uVar14;\n          iVar5 = param_3;\nLAB_000a7220:\n          param_3 = 0;\n          if (uVar6 < uVar8) {\n            param_3 = (uVar14 - uVar6) + iVar5;\n            iVar5 = uVar6 - uVar14;\n          }\n          iVar12 = (**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4);\n          iVar7 = local_30;\n          if (iVar12 == 0) {\n            iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;\n            local_34 = **(int **)(local_30 + 4);\n            if (param_5 == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }\n            else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }\n          }\n          param_4 = param_4 + iVar5;\n          if (param_3 == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar12 != 0) goto LAB_000a7304;\n          if (local_34 == 0) goto LAB_000a7494;\n          iVar5 = *(int *)(param_1 + 0xc);\n          iVar12 = local_34;\n        }" { (expression_statement "local_34 = iVar12;" (assignment_expression "local_34 = iVar12" identifier = identifier) ;) (expression_statement "iVar11 = iVar11 + 1;" (assignment_expression "iVar11 = iVar11 + 1" identifier = (binary_expression "iVar11 + 1" identifier + number_literal)) ;) (expression_statement "iVar7 = iVar11 * 4;" (assignment_expression "iVar7 = iVar11 * 4" identifier = (binary_expression "iVar11 * 4" identifier * number_literal)) ;) (expression_statement "*(int *)(iVar5 + iVar7 + -4) = local_34;" (assignment_expression "*(int *)(iVar5 + iVar7 + -4) = local_34" (pointer_expression "*(int *)(iVar5 + iVar7 + -4)" * (cast_expression "(int *)(iVar5 + iVar7 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + iVar7 + -4)" ( (binary_expression "iVar5 + iVar7 + -4" (binary_expression "iVar5 + iVar7" identifier + identifier) + number_literal) )))) = identifier) ;) (if_statement "if (uVar6 <= uVar14) break;" if (parenthesized_expression "(uVar6 <= uVar14)" ( (binary_expression "uVar6 <= uVar14" identifier <= identifier) )) (break_statement "break;" break ;)) (expression_statement "uVar8 = param_3 + uVar14;" (assignment_expression "uVar8 = param_3 + uVar14" identifier = (binary_expression "param_3 + uVar14" identifier + identifier)) ;) (expression_statement "iVar5 = param_3;" (assignment_expression "iVar5 = param_3" identifier = identifier) ;) (labeled_statement "LAB_000a7220:\n          param_3 = 0;" statement_identifier : (expression_statement "param_3 = 0;" (assignment_expression "param_3 = 0" identifier = number_literal) ;)) (if_statement "if (uVar6 < uVar8) {\n            param_3 = (uVar14 - uVar6) + iVar5;\n            iVar5 = uVar6 - uVar14;\n          }" if (parenthesized_expression "(uVar6 < uVar8)" ( (binary_expression "uVar6 < uVar8" identifier < identifier) )) (compound_statement "{\n            param_3 = (uVar14 - uVar6) + iVar5;\n            iVar5 = uVar6 - uVar14;\n          }" { (expression_statement "param_3 = (uVar14 - uVar6) + iVar5;" (assignment_expression "param_3 = (uVar14 - uVar6) + iVar5" identifier = (binary_expression "(uVar14 - uVar6) + iVar5" (parenthesized_expression "(uVar14 - uVar6)" ( (binary_expression "uVar14 - uVar6" identifier - identifier) )) + identifier)) ;) (expression_statement "iVar5 = uVar6 - uVar14;" (assignment_expression "iVar5 = uVar6 - uVar14" identifier = (binary_expression "uVar6 - uVar14" identifier - identifier)) ;) })) (expression_statement "iVar12 = (**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4);" (assignment_expression "iVar12 = (**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4)" identifier = (call_expression "(**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4)" (parenthesized_expression "(**(code **)(*piVar9 + 0xcc))" ( (pointer_expression "**(code **)(*piVar9 + 0xcc)" * (pointer_expression "*(code **)(*piVar9 + 0xcc)" * (cast_expression "(code **)(*piVar9 + 0xcc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar9 + 0xcc)" ( (binary_expression "*piVar9 + 0xcc" (pointer_expression "*piVar9" * identifier) + number_literal) ))))) )) (argument_list "(*piVar9,local_34,&local_30,uVar4)" ( (pointer_expression "*piVar9" * identifier) , identifier , (pointer_expression "&local_30" & identifier) , identifier )))) ;) (expression_statement "iVar7 = local_30;" (assignment_expression "iVar7 = local_30" identifier = identifier) ;) (if_statement "if (iVar12 == 0) {\n            iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;\n            local_34 = **(int **)(local_30 + 4);\n            if (param_5 == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }\n            else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }\n          }" if (parenthesized_expression "(iVar12 == 0)" ( (binary_expression "iVar12 == 0" identifier == number_literal) )) (compound_statement "{\n            iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;\n            local_34 = **(int **)(local_30 + 4);\n            if (param_5 == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }\n            else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }\n          }" { (expression_statement "iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;" (assignment_expression "iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4" identifier = (binary_expression "(int)*(int **)(local_30 + 4) + uVar14 + 4" (binary_expression "(int)*(int **)(local_30 + 4) + uVar14" (cast_expression "(int)*(int **)(local_30 + 4)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(int **)(local_30 + 4)" * (cast_expression "(int **)(local_30 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(local_30 + 4)" ( (binary_expression "local_30 + 4" identifier + number_literal) ))))) + identifier) + number_literal)) ;) (expression_statement "local_34 = **(int **)(local_30 + 4);" (assignment_expression "local_34 = **(int **)(local_30 + 4)" identifier = (pointer_expression "**(int **)(local_30 + 4)" * (pointer_expression "*(int **)(local_30 + 4)" * (cast_expression "(int **)(local_30 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(local_30 + 4)" ( (binary_expression "local_30 + 4" identifier + number_literal) )))))) ;) (if_statement "if (param_5 == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }\n            else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }" if (parenthesized_expression "(param_5 == 0)" ( (binary_expression "param_5 == 0" identifier == number_literal) )) (compound_statement "{\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }" { (expression_statement "(*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);" (call_expression "(*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5)" (parenthesized_expression "(*(code *)PTR_memcpy_0015ca34)" ( (pointer_expression "*(code *)PTR_memcpy_0015ca34" * (cast_expression "(code *)PTR_memcpy_0015ca34" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_4,iVar10,iVar5)" ( identifier , identifier , identifier ))) ;) (expression_statement "uVar14 = 0;" (assignment_expression "uVar14 = 0" identifier = number_literal) ;) (expression_statement "(*(code *)(puVar1 + -0x138c))(iVar7);" (call_expression "(*(code *)(puVar1 + -0x138c))(iVar7)" (parenthesized_expression "(*(code *)(puVar1 + -0x138c))" ( (pointer_expression "*(code *)(puVar1 + -0x138c)" * (cast_expression "(code *)(puVar1 + -0x138c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0x138c)" ( (binary_expression "puVar1 + -0x138c" identifier + number_literal) )))) )) (argument_list "(iVar7)" ( identifier ))) ;) (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" identifier = number_literal) ;) }) (else_clause "else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }" else (compound_statement "{\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }" { (expression_statement "iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);" (assignment_expression "iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30)" identifier = (call_expression "(*(code *)(puVar2 + -0x30a4))(local_30)" (parenthesized_expression "(*(code *)(puVar2 + -0x30a4))" ( (pointer_expression "*(code *)(puVar2 + -0x30a4)" * (cast_expression "(code *)(puVar2 + -0x30a4)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x30a4)" ( (binary_expression "puVar2 + -0x30a4" identifier + number_literal) )))) )) (argument_list "(local_30)" ( identifier )))) ;) (if_statement "if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }" if (parenthesized_expression "(iVar12 == 0)" ( (binary_expression "iVar12 == 0" identifier == number_literal) )) (compound_statement "{\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }" { (expression_statement "(*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);" (call_expression "(*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5)" (parenthesized_expression "(*(code *)PTR_memcpy_0015ca34)" ( (pointer_expression "*(code *)PTR_memcpy_0015ca34" * (cast_expression "(code *)PTR_memcpy_0015ca34" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar10,param_4,iVar5)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "uVar14 = 0;" (assignment_expression "uVar14 = 0" identifier = number_literal) ;) (if_statement "if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }" if (parenthesized_expression "(local_30 != 0)" ( (binary_expression "local_30 != 0" identifier != number_literal) )) (compound_statement "{\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }" { (expression_statement "(*(code *)(puVar1 + -0x138c))(local_30);" (call_expression "(*(code *)(puVar1 + -0x138c))(local_30)" (parenthesized_expression "(*(code *)(puVar1 + -0x138c))" ( (pointer_expression "*(code *)(puVar1 + -0x138c)" * (cast_expression "(code *)(puVar1 + -0x138c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0x138c)" ( (binary_expression "puVar1 + -0x138c" identifier + number_literal) )))) )) (argument_list "(local_30)" ( identifier ))) ;) })) }))) })) (expression_statement "param_4 = param_4 + iVar5;" (assignment_expression "param_4 = param_4 + iVar5" identifier = (binary_expression "param_4 + iVar5" identifier + identifier)) ;) (if_statement "if (param_3 == 0) goto LAB_000a7304;" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000a7304;" goto statement_identifier ;)) (labeled_statement "LAB_000a7268:\n          if (iVar12 != 0) goto LAB_000a7304;" statement_identifier : (if_statement "if (iVar12 != 0) goto LAB_000a7304;" if (parenthesized_expression "(iVar12 != 0)" ( (binary_expression "iVar12 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000a7304;" goto statement_identifier ;))) (if_statement "if (local_34 == 0) goto LAB_000a7494;" if (parenthesized_expression "(local_34 == 0)" ( (binary_expression "local_34 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000a7494;" goto statement_identifier ;)) (expression_statement "iVar5 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar5 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "iVar12 = local_34;" (assignment_expression "iVar12 = local_34" identifier = identifier) ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })) (labeled_statement "LAB_000a7494:\n    uVar4 = 0x1094f;" statement_identifier : (expression_statement "uVar4 = 0x1094f;" (assignment_expression "uVar4 = 0x1094f" identifier = number_literal) ;)) }))) (expression_statement "iVar12 = (*(code *)(PTR_LAB_0015c744 + -0x6c90))(uVar4);" (assignment_expression "iVar12 = (*(code *)(PTR_LAB_0015c744 + -0x6c90))(uVar4)" identifier = (call_expression "(*(code *)(PTR_LAB_0015c744 + -0x6c90))(uVar4)" (parenthesized_expression "(*(code *)(PTR_LAB_0015c744 + -0x6c90))" ( (pointer_expression "*(code *)(PTR_LAB_0015c744 + -0x6c90)" * (cast_expression "(code *)(PTR_LAB_0015c744 + -0x6c90)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015c744 + -0x6c90)" ( (binary_expression "PTR_LAB_0015c744 + -0x6c90" identifier + number_literal) )))) )) (argument_list "(uVar4)" ( identifier )))) ;) (labeled_statement "LAB_000a7304:\n  if (local_2c == *(int *)puVar13) {\n    return iVar12;\n  }" statement_identifier : (if_statement "if (local_2c == *(int *)puVar13) {\n    return iVar12;\n  }" if (parenthesized_expression "(local_2c == *(int *)puVar13)" ( (binary_expression "local_2c == *(int *)puVar13" identifier == (pointer_expression "*(int *)puVar13" * (cast_expression "(int *)puVar13" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return iVar12;\n  }" { (return_statement "return iVar12;" return identifier ;) }))) (expression_statement "iVar11 = local_2c;" (assignment_expression "iVar11 = local_2c" identifier = identifier) ;) (expression_statement "puVar13 = PTR___stack_chk_fail_0015ca14;" (assignment_expression "puVar13 = PTR___stack_chk_fail_0015ca14" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0015ca14)();" (call_expression "(*(code *)PTR___stack_chk_fail_0015ca14)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0015ca14)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0015ca14" * (cast_expression "(code *)PTR___stack_chk_fail_0015ca14" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "(*(code *)(*(int *)(puVar13 + 0xb51b8) + -0xc70))();" (call_expression "(*(code *)(*(int *)(puVar13 + 0xb51b8) + -0xc70))()" (parenthesized_expression "(*(code *)(*(int *)(puVar13 + 0xb51b8) + -0xc70))" ( (pointer_expression "*(code *)(*(int *)(puVar13 + 0xb51b8) + -0xc70)" * (cast_expression "(code *)(*(int *)(puVar13 + 0xb51b8) + -0xc70)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar13 + 0xb51b8) + -0xc70)" ( (binary_expression "*(int *)(puVar13 + 0xb51b8) + -0xc70" (pointer_expression "*(int *)(puVar13 + 0xb51b8)" * (cast_expression "(int *)(puVar13 + 0xb51b8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar13 + 0xb51b8)" ( (binary_expression "puVar13 + 0xb51b8" identifier + number_literal) )))) + number_literal) )))) )) (argument_list "()" ( ))) ;) (expression_statement "uVar6 = *(uint *)(iVar11 + 0x2c);" (assignment_expression "uVar6 = *(uint *)(iVar11 + 0x2c)" identifier = (pointer_expression "*(uint *)(iVar11 + 0x2c)" * (cast_expression "(uint *)(iVar11 + 0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar11 + 0x2c)" ( (binary_expression "iVar11 + 0x2c" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar11 + 0x38) = 0;" (assignment_expression "*(undefined4 *)(iVar11 + 0x38) = 0" (pointer_expression "*(undefined4 *)(iVar11 + 0x38)" * (cast_expression "(undefined4 *)(iVar11 + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar11 + 0x38)" ( (binary_expression "iVar11 + 0x38" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(uint *)(iVar11 + 0x3c) = uVar6;" (assignment_expression "*(uint *)(iVar11 + 0x3c) = uVar6" (pointer_expression "*(uint *)(iVar11 + 0x3c)" * (cast_expression "(uint *)(iVar11 + 0x3c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar11 + 0x3c)" ( (binary_expression "iVar11 + 0x3c" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar12 = (*(code *)(*(int *)(puVar13 + 0xb5228) + -0x5370))(uVar6 + 0x11 < uVar6);" (assignment_expression "iVar12 = (*(code *)(*(int *)(puVar13 + 0xb5228) + -0x5370))(uVar6 + 0x11 < uVar6)" identifier = (call_expression "(*(code *)(*(int *)(puVar13 + 0xb5228) + -0x5370))(uVar6 + 0x11 < uVar6)" (parenthesized_expression "(*(code *)(*(int *)(puVar13 + 0xb5228) + -0x5370))" ( (pointer_expression "*(code *)(*(int *)(puVar13 + 0xb5228) + -0x5370)" * (cast_expression "(code *)(*(int *)(puVar13 + 0xb5228) + -0x5370)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar13 + 0xb5228) + -0x5370)" ( (binary_expression "*(int *)(puVar13 + 0xb5228) + -0x5370" (pointer_expression "*(int *)(puVar13 + 0xb5228)" * (cast_expression "(int *)(puVar13 + 0xb5228)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar13 + 0xb5228)" ( (binary_expression "puVar13 + 0xb5228" identifier + number_literal) )))) + number_literal) )))) )) (argument_list "(uVar6 + 0x11 < uVar6)" ( (binary_expression "uVar6 + 0x11 < uVar6" (binary_expression "uVar6 + 0x11" identifier + number_literal) < identifier) )))) ;) (if_statement "if (iVar12 == 0) {\n    return 7;\n  }" if (parenthesized_expression "(iVar12 == 0)" ( (binary_expression "iVar12 == 0" identifier == number_literal) )) (compound_statement "{\n    return 7;\n  }" { (return_statement "return 7;" return number_literal ;) })) (expression_statement "iVar5 = FUN_000a7054(iVar11,0,*(undefined4 *)(iVar11 + 0x3c),iVar12,0);" (assignment_expression "iVar5 = FUN_000a7054(iVar11,0,*(undefined4 *)(iVar11 + 0x3c),iVar12,0)" identifier = (call_expression "FUN_000a7054(iVar11,0,*(undefined4 *)(iVar11 + 0x3c),iVar12,0)" identifier (argument_list "(iVar11,0,*(undefined4 *)(iVar11 + 0x3c),iVar12,0)" ( identifier , number_literal , (pointer_expression "*(undefined4 *)(iVar11 + 0x3c)" * (cast_expression "(undefined4 *)(iVar11 + 0x3c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar11 + 0x3c)" ( (binary_expression "iVar11 + 0x3c" identifier + number_literal) )))) , identifier , number_literal )))) ;) (if_statement "if (iVar5 == 0) {\n    (**(code **)(puVar13 + 0xb5504))(iVar12 + *(int *)(iVar11 + 0x3c),0,0x11);\n    *(int *)(iVar11 + 0x10) = iVar12;\n    return 0;\n  }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    (**(code **)(puVar13 + 0xb5504))(iVar12 + *(int *)(iVar11 + 0x3c),0,0x11);\n    *(int *)(iVar11 + 0x10) = iVar12;\n    return 0;\n  }" { (expression_statement "(**(code **)(puVar13 + 0xb5504))(iVar12 + *(int *)(iVar11 + 0x3c),0,0x11);" (call_expression "(**(code **)(puVar13 + 0xb5504))(iVar12 + *(int *)(iVar11 + 0x3c),0,0x11)" (parenthesized_expression "(**(code **)(puVar13 + 0xb5504))" ( (pointer_expression "**(code **)(puVar13 + 0xb5504)" * (pointer_expression "*(code **)(puVar13 + 0xb5504)" * (cast_expression "(code **)(puVar13 + 0xb5504)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar13 + 0xb5504)" ( (binary_expression "puVar13 + 0xb5504" identifier + number_literal) ))))) )) (argument_list "(iVar12 + *(int *)(iVar11 + 0x3c),0,0x11)" ( (binary_expression "iVar12 + *(int *)(iVar11 + 0x3c)" identifier + (pointer_expression "*(int *)(iVar11 + 0x3c)" * (cast_expression "(int *)(iVar11 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar11 + 0x3c)" ( (binary_expression "iVar11 + 0x3c" identifier + number_literal) ))))) , number_literal , number_literal ))) ;) (expression_statement "*(int *)(iVar11 + 0x10) = iVar12;" (assignment_expression "*(int *)(iVar11 + 0x10) = iVar12" (pointer_expression "*(int *)(iVar11 + 0x10)" * (cast_expression "(int *)(iVar11 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar11 + 0x10)" ( (binary_expression "iVar11 + 0x10" identifier + number_literal) )))) = identifier) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "(**(code **)(puVar13 + 0xb5138))(iVar12);" (call_expression "(**(code **)(puVar13 + 0xb5138))(iVar12)" (parenthesized_expression "(**(code **)(puVar13 + 0xb5138))" ( (pointer_expression "**(code **)(puVar13 + 0xb5138)" * (pointer_expression "*(code **)(puVar13 + 0xb5138)" * (cast_expression "(code **)(puVar13 + 0xb5138)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar13 + 0xb5138)" ( (binary_expression "puVar13 + 0xb5138" identifier + number_literal) ))))) )) (argument_list "(iVar12)" ( identifier ))) ;) (return_statement "return iVar5;" return identifier ;) })))
(translation_unit "int accessPayload(BtCursor *pCur,u32 offset,u32 amt,uchar *pBuf,int eOp)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  DbPage *pDVar4;\n  Pgno PVar5;\n  int iVar6;\n  int iVar7;\n  uchar *puVar8;\n  Pgno *pPVar9;\n  undefined4 uVar10;\n  BtCursor *pCur_00;\n  u8 *puVar11;\n  uint uVar12;\n  uint uVar13;\n  uint uVar14;\n  u32 uVar15;\n  BtShared *pBVar16;\n  int iVar17;\n  u8 *puVar18;\n  uint uVar19;\n  MemPage *pMVar20;\n  undefined *puVar21;\n  int iVar22;\n  Pgno nextPage;\n  DbPage *pDbPage;\n  BtCursor *pBStack_2c;\n  \n  puVar21 = PTR___stack_chk_guard_0015ca30;\n  pMVar20 = pCur->pPage;\n  pBStack_2c = *(BtCursor **)PTR___stack_chk_guard_0015ca30;\n  pBVar16 = pCur->pBt;\n  (*(code *)(PTR_LAB_0015c66c + -0xc70))();\n  puVar18 = (pCur->info).pPayload;\n  uVar12 = (uint)(pCur->info).nLocal;\n  if (pBVar16->usableSize - uVar12 < (uint)((int)puVar18 - (int)pMVar20->aData)) {\n    uVar10 = 0x108be;\n  }\n  else {\n    if (offset < uVar12) {\n      if (uVar12 < offset + amt) {\n        uVar15 = uVar12 - offset;\n        if (eOp != 0) goto LAB_000a7298;\nLAB_000a7354:\n        puVar8 = pBuf;\n        puVar11 = puVar18 + offset;\n      }\n      else {\n        uVar15 = amt;\n        if (eOp == 0) goto LAB_000a7354;\nLAB_000a7298:\n        puVar8 = puVar18 + offset;\n        iVar6 = sqlite3PagerWrite(pMVar20->pDbPage);\n        puVar11 = pBuf;\n        if (iVar6 != 0) goto LAB_000a7304;\n      }\n      amt = amt - uVar15;\n      (*(code *)PTR_memcpy_0015ca34)(puVar8,puVar11,uVar15);\n      pBuf = pBuf + uVar15;\n      uVar12 = 0;\n      if (amt == 0) goto LAB_000a72dc;\n    }\n    else {\n      uVar12 = offset - uVar12;\n      if (amt == 0) {\nLAB_000a72dc:\n        iVar6 = 0;\n        goto LAB_000a7304;\n      }\n    }\n    uVar13 = (uint)(pCur->info).nLocal;\n    pPVar9 = pCur->aOverflow;\n    uVar19 = pBVar16->usableSize - 4;\n    nextPage = *(Pgno *)(puVar18 + uVar13);\n    if ((pCur->curFlags & 4) == 0) {\n      if (uVar19 == 0) {\n        trap(7);\n      }\n      uVar13 = ((((pCur->info).nPayload - 1) + uVar19) - uVar13) / uVar19;\n      if (pPVar9 == (Pgno *)0x0) {\nLAB_000a7368:\n        pPVar9 = (Pgno *)(*(code *)(PTR_LAB_0015c6dc + -0x2708))(pPVar9);\n        if (pPVar9 == (Pgno *)0x0) {\n          iVar6 = 7;\n          goto LAB_000a7304;\n        }\n        pCur->aOverflow = pPVar9;\n      }\n      else {\n        iVar6 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();\n        pPVar9 = pCur->aOverflow;\n        if (iVar6 < (int)(uVar13 << 2)) goto LAB_000a7368;\n      }\n      (*(code *)PTR_memset_0015c9b8)(pPVar9,0,uVar13 << 2);\n      pCur->curFlags = pCur->curFlags | 4;\n    }\n    else {\n      if (uVar19 == 0) {\n        trap(7);\n      }\n      uVar14 = uVar12 / uVar19;\n      uVar13 = uVar12 % uVar19;\n      PVar5 = pPVar9[uVar14];\n      if (pPVar9[uVar14] != 0) goto LAB_000a719c;\n    }\n    uVar14 = 0;\n    if (nextPage != 0) {\n      pPVar9 = pCur->aOverflow;\n      uVar13 = uVar12;\n      PVar5 = nextPage;\nLAB_000a719c:\n      nextPage = PVar5;\n      puVar2 = PTR_LAB_0015c708;\n      puVar1 = PTR_LAB_0015c66c;\n      iVar7 = 2;\n      iVar22 = uVar14 + 1;\n      if (eOp != 0) {\n        iVar7 = 0;\n      }\n      pPVar9[uVar14] = nextPage;\n      puVar3 = PTR_LAB_0015c744;\n      uVar12 = amt + uVar13;\n      uVar15 = amt;\n      if (uVar13 < uVar19) goto LAB_000a7220;\n      do {\n        pPVar9 = pCur->aOverflow;\n        uVar13 = uVar13 - uVar19;\n        iVar6 = iVar22;\n        PVar5 = pPVar9[iVar22];\n        if (pPVar9[iVar22] == 0) {\n          iVar6 = (*(code *)(puVar3 + -0x6468))(pBVar16,nextPage,0,&nextPage);\n          goto LAB_000a7268;\n        }\n        while( true ) {\n          nextPage = PVar5;\n          iVar22 = iVar6 + 1;\n          pPVar9[iVar6] = nextPage;\n          if (uVar19 <= uVar13) break;\n          uVar12 = amt + uVar13;\n          uVar15 = amt;\nLAB_000a7220:\n          amt = 0;\n          if (uVar19 < uVar12) {\n            amt = (uVar13 - uVar19) + uVar15;\n            uVar15 = uVar19 - uVar13;\n          }\n          iVar6 = (*pBVar16->pPager->xGet)(pBVar16->pPager,nextPage,&pDbPage,iVar7);\n          pDVar4 = pDbPage;\n          if (iVar6 == 0) {\n            iVar17 = (int)pDbPage->pData + uVar13 + 4;\n                    /* WARNING: Load size is inaccurate */\n            nextPage = *pDbPage->pData;\n            if (eOp == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(pBuf,iVar17,uVar15);\n              uVar13 = 0;\n              (*(code *)(puVar1 + -0x138c))(pDVar4);\n              iVar6 = 0;\n            }\n            else {\n              iVar6 = (*(code *)(puVar2 + -0x30a4))(pDbPage);\n              if (iVar6 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar17,pBuf,uVar15);\n              }\n              uVar13 = 0;\n              if (pDbPage != (DbPage *)0x0) {\n                (*(code *)(puVar1 + -0x138c))(pDbPage);\n              }\n            }\n          }\n          pBuf = pBuf + uVar15;\n          if (amt == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar6 != 0) goto LAB_000a7304;\n          if (nextPage == 0) goto LAB_000a7494;\n          pPVar9 = pCur->aOverflow;\n          iVar6 = iVar22;\n          PVar5 = nextPage;\n        }\n      } while( true );\n    }\nLAB_000a7494:\n    uVar10 = 0x1094f;\n  }\n  iVar6 = (*(code *)(PTR_LAB_0015c744 + -0x6c90))(uVar10);\nLAB_000a7304:\n  if (pBStack_2c == *(BtCursor **)puVar21) {\n    return iVar6;\n  }\n  pCur_00 = pBStack_2c;\n  puVar21 = PTR___stack_chk_fail_0015ca14;\n  (*(code *)PTR___stack_chk_fail_0015ca14)();\n  (*(code *)(*(int *)(puVar21 + 0xb51b8) + -0xc70))();\n  uVar12 = (pCur_00->info).nPayload;\n  *(undefined4 *)&pCur_00->nKey = 0;\n  *(uint *)((int)&pCur_00->nKey + 4) = uVar12;\n  puVar8 = (uchar *)(*(code *)(*(int *)(puVar21 + 0xb5228) + -0x5370))(uVar12 + 0x11 < uVar12);\n  if (puVar8 == (uchar *)0x0) {\n    return 7;\n  }\n  iVar6 = accessPayload(pCur_00,0,(u32)pCur_00->nKey,puVar8,0);\n  if (iVar6 == 0) {\n    (**(code **)(puVar21 + 0xb5504))(puVar8 + (int)pCur_00->nKey,0,0x11);\n    pCur_00->pKey = puVar8;\n    return 0;\n  }\n  (**(code **)(puVar21 + 0xb5138))(puVar8);\n  return iVar6;\n}\n\n" (function_definition "int accessPayload(BtCursor *pCur,u32 offset,u32 amt,uchar *pBuf,int eOp)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  DbPage *pDVar4;\n  Pgno PVar5;\n  int iVar6;\n  int iVar7;\n  uchar *puVar8;\n  Pgno *pPVar9;\n  undefined4 uVar10;\n  BtCursor *pCur_00;\n  u8 *puVar11;\n  uint uVar12;\n  uint uVar13;\n  uint uVar14;\n  u32 uVar15;\n  BtShared *pBVar16;\n  int iVar17;\n  u8 *puVar18;\n  uint uVar19;\n  MemPage *pMVar20;\n  undefined *puVar21;\n  int iVar22;\n  Pgno nextPage;\n  DbPage *pDbPage;\n  BtCursor *pBStack_2c;\n  \n  puVar21 = PTR___stack_chk_guard_0015ca30;\n  pMVar20 = pCur->pPage;\n  pBStack_2c = *(BtCursor **)PTR___stack_chk_guard_0015ca30;\n  pBVar16 = pCur->pBt;\n  (*(code *)(PTR_LAB_0015c66c + -0xc70))();\n  puVar18 = (pCur->info).pPayload;\n  uVar12 = (uint)(pCur->info).nLocal;\n  if (pBVar16->usableSize - uVar12 < (uint)((int)puVar18 - (int)pMVar20->aData)) {\n    uVar10 = 0x108be;\n  }\n  else {\n    if (offset < uVar12) {\n      if (uVar12 < offset + amt) {\n        uVar15 = uVar12 - offset;\n        if (eOp != 0) goto LAB_000a7298;\nLAB_000a7354:\n        puVar8 = pBuf;\n        puVar11 = puVar18 + offset;\n      }\n      else {\n        uVar15 = amt;\n        if (eOp == 0) goto LAB_000a7354;\nLAB_000a7298:\n        puVar8 = puVar18 + offset;\n        iVar6 = sqlite3PagerWrite(pMVar20->pDbPage);\n        puVar11 = pBuf;\n        if (iVar6 != 0) goto LAB_000a7304;\n      }\n      amt = amt - uVar15;\n      (*(code *)PTR_memcpy_0015ca34)(puVar8,puVar11,uVar15);\n      pBuf = pBuf + uVar15;\n      uVar12 = 0;\n      if (amt == 0) goto LAB_000a72dc;\n    }\n    else {\n      uVar12 = offset - uVar12;\n      if (amt == 0) {\nLAB_000a72dc:\n        iVar6 = 0;\n        goto LAB_000a7304;\n      }\n    }\n    uVar13 = (uint)(pCur->info).nLocal;\n    pPVar9 = pCur->aOverflow;\n    uVar19 = pBVar16->usableSize - 4;\n    nextPage = *(Pgno *)(puVar18 + uVar13);\n    if ((pCur->curFlags & 4) == 0) {\n      if (uVar19 == 0) {\n        trap(7);\n      }\n      uVar13 = ((((pCur->info).nPayload - 1) + uVar19) - uVar13) / uVar19;\n      if (pPVar9 == (Pgno *)0x0) {\nLAB_000a7368:\n        pPVar9 = (Pgno *)(*(code *)(PTR_LAB_0015c6dc + -0x2708))(pPVar9);\n        if (pPVar9 == (Pgno *)0x0) {\n          iVar6 = 7;\n          goto LAB_000a7304;\n        }\n        pCur->aOverflow = pPVar9;\n      }\n      else {\n        iVar6 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();\n        pPVar9 = pCur->aOverflow;\n        if (iVar6 < (int)(uVar13 << 2)) goto LAB_000a7368;\n      }\n      (*(code *)PTR_memset_0015c9b8)(pPVar9,0,uVar13 << 2);\n      pCur->curFlags = pCur->curFlags | 4;\n    }\n    else {\n      if (uVar19 == 0) {\n        trap(7);\n      }\n      uVar14 = uVar12 / uVar19;\n      uVar13 = uVar12 % uVar19;\n      PVar5 = pPVar9[uVar14];\n      if (pPVar9[uVar14] != 0) goto LAB_000a719c;\n    }\n    uVar14 = 0;\n    if (nextPage != 0) {\n      pPVar9 = pCur->aOverflow;\n      uVar13 = uVar12;\n      PVar5 = nextPage;\nLAB_000a719c:\n      nextPage = PVar5;\n      puVar2 = PTR_LAB_0015c708;\n      puVar1 = PTR_LAB_0015c66c;\n      iVar7 = 2;\n      iVar22 = uVar14 + 1;\n      if (eOp != 0) {\n        iVar7 = 0;\n      }\n      pPVar9[uVar14] = nextPage;\n      puVar3 = PTR_LAB_0015c744;\n      uVar12 = amt + uVar13;\n      uVar15 = amt;\n      if (uVar13 < uVar19) goto LAB_000a7220;\n      do {\n        pPVar9 = pCur->aOverflow;\n        uVar13 = uVar13 - uVar19;\n        iVar6 = iVar22;\n        PVar5 = pPVar9[iVar22];\n        if (pPVar9[iVar22] == 0) {\n          iVar6 = (*(code *)(puVar3 + -0x6468))(pBVar16,nextPage,0,&nextPage);\n          goto LAB_000a7268;\n        }\n        while( true ) {\n          nextPage = PVar5;\n          iVar22 = iVar6 + 1;\n          pPVar9[iVar6] = nextPage;\n          if (uVar19 <= uVar13) break;\n          uVar12 = amt + uVar13;\n          uVar15 = amt;\nLAB_000a7220:\n          amt = 0;\n          if (uVar19 < uVar12) {\n            amt = (uVar13 - uVar19) + uVar15;\n            uVar15 = uVar19 - uVar13;\n          }\n          iVar6 = (*pBVar16->pPager->xGet)(pBVar16->pPager,nextPage,&pDbPage,iVar7);\n          pDVar4 = pDbPage;\n          if (iVar6 == 0) {\n            iVar17 = (int)pDbPage->pData + uVar13 + 4;\n                    /* WARNING: Load size is inaccurate */\n            nextPage = *pDbPage->pData;\n            if (eOp == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(pBuf,iVar17,uVar15);\n              uVar13 = 0;\n              (*(code *)(puVar1 + -0x138c))(pDVar4);\n              iVar6 = 0;\n            }\n            else {\n              iVar6 = (*(code *)(puVar2 + -0x30a4))(pDbPage);\n              if (iVar6 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar17,pBuf,uVar15);\n              }\n              uVar13 = 0;\n              if (pDbPage != (DbPage *)0x0) {\n                (*(code *)(puVar1 + -0x138c))(pDbPage);\n              }\n            }\n          }\n          pBuf = pBuf + uVar15;\n          if (amt == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar6 != 0) goto LAB_000a7304;\n          if (nextPage == 0) goto LAB_000a7494;\n          pPVar9 = pCur->aOverflow;\n          iVar6 = iVar22;\n          PVar5 = nextPage;\n        }\n      } while( true );\n    }\nLAB_000a7494:\n    uVar10 = 0x1094f;\n  }\n  iVar6 = (*(code *)(PTR_LAB_0015c744 + -0x6c90))(uVar10);\nLAB_000a7304:\n  if (pBStack_2c == *(BtCursor **)puVar21) {\n    return iVar6;\n  }\n  pCur_00 = pBStack_2c;\n  puVar21 = PTR___stack_chk_fail_0015ca14;\n  (*(code *)PTR___stack_chk_fail_0015ca14)();\n  (*(code *)(*(int *)(puVar21 + 0xb51b8) + -0xc70))();\n  uVar12 = (pCur_00->info).nPayload;\n  *(undefined4 *)&pCur_00->nKey = 0;\n  *(uint *)((int)&pCur_00->nKey + 4) = uVar12;\n  puVar8 = (uchar *)(*(code *)(*(int *)(puVar21 + 0xb5228) + -0x5370))(uVar12 + 0x11 < uVar12);\n  if (puVar8 == (uchar *)0x0) {\n    return 7;\n  }\n  iVar6 = accessPayload(pCur_00,0,(u32)pCur_00->nKey,puVar8,0);\n  if (iVar6 == 0) {\n    (**(code **)(puVar21 + 0xb5504))(puVar8 + (int)pCur_00->nKey,0,0x11);\n    pCur_00->pKey = puVar8;\n    return 0;\n  }\n  (**(code **)(puVar21 + 0xb5138))(puVar8);\n  return iVar6;\n}" primitive_type (function_declarator "accessPayload(BtCursor *pCur,u32 offset,u32 amt,uchar *pBuf,int eOp)" identifier (parameter_list "(BtCursor *pCur,u32 offset,u32 amt,uchar *pBuf,int eOp)" ( (parameter_declaration "BtCursor *pCur" type_identifier (pointer_declarator "*pCur" * identifier)) , (parameter_declaration "u32 offset" type_identifier identifier) , (parameter_declaration "u32 amt" type_identifier identifier) , (parameter_declaration "uchar *pBuf" type_identifier (pointer_declarator "*pBuf" * identifier)) , (parameter_declaration "int eOp" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  DbPage *pDVar4;\n  Pgno PVar5;\n  int iVar6;\n  int iVar7;\n  uchar *puVar8;\n  Pgno *pPVar9;\n  undefined4 uVar10;\n  BtCursor *pCur_00;\n  u8 *puVar11;\n  uint uVar12;\n  uint uVar13;\n  uint uVar14;\n  u32 uVar15;\n  BtShared *pBVar16;\n  int iVar17;\n  u8 *puVar18;\n  uint uVar19;\n  MemPage *pMVar20;\n  undefined *puVar21;\n  int iVar22;\n  Pgno nextPage;\n  DbPage *pDbPage;\n  BtCursor *pBStack_2c;\n  \n  puVar21 = PTR___stack_chk_guard_0015ca30;\n  pMVar20 = pCur->pPage;\n  pBStack_2c = *(BtCursor **)PTR___stack_chk_guard_0015ca30;\n  pBVar16 = pCur->pBt;\n  (*(code *)(PTR_LAB_0015c66c + -0xc70))();\n  puVar18 = (pCur->info).pPayload;\n  uVar12 = (uint)(pCur->info).nLocal;\n  if (pBVar16->usableSize - uVar12 < (uint)((int)puVar18 - (int)pMVar20->aData)) {\n    uVar10 = 0x108be;\n  }\n  else {\n    if (offset < uVar12) {\n      if (uVar12 < offset + amt) {\n        uVar15 = uVar12 - offset;\n        if (eOp != 0) goto LAB_000a7298;\nLAB_000a7354:\n        puVar8 = pBuf;\n        puVar11 = puVar18 + offset;\n      }\n      else {\n        uVar15 = amt;\n        if (eOp == 0) goto LAB_000a7354;\nLAB_000a7298:\n        puVar8 = puVar18 + offset;\n        iVar6 = sqlite3PagerWrite(pMVar20->pDbPage);\n        puVar11 = pBuf;\n        if (iVar6 != 0) goto LAB_000a7304;\n      }\n      amt = amt - uVar15;\n      (*(code *)PTR_memcpy_0015ca34)(puVar8,puVar11,uVar15);\n      pBuf = pBuf + uVar15;\n      uVar12 = 0;\n      if (amt == 0) goto LAB_000a72dc;\n    }\n    else {\n      uVar12 = offset - uVar12;\n      if (amt == 0) {\nLAB_000a72dc:\n        iVar6 = 0;\n        goto LAB_000a7304;\n      }\n    }\n    uVar13 = (uint)(pCur->info).nLocal;\n    pPVar9 = pCur->aOverflow;\n    uVar19 = pBVar16->usableSize - 4;\n    nextPage = *(Pgno *)(puVar18 + uVar13);\n    if ((pCur->curFlags & 4) == 0) {\n      if (uVar19 == 0) {\n        trap(7);\n      }\n      uVar13 = ((((pCur->info).nPayload - 1) + uVar19) - uVar13) / uVar19;\n      if (pPVar9 == (Pgno *)0x0) {\nLAB_000a7368:\n        pPVar9 = (Pgno *)(*(code *)(PTR_LAB_0015c6dc + -0x2708))(pPVar9);\n        if (pPVar9 == (Pgno *)0x0) {\n          iVar6 = 7;\n          goto LAB_000a7304;\n        }\n        pCur->aOverflow = pPVar9;\n      }\n      else {\n        iVar6 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();\n        pPVar9 = pCur->aOverflow;\n        if (iVar6 < (int)(uVar13 << 2)) goto LAB_000a7368;\n      }\n      (*(code *)PTR_memset_0015c9b8)(pPVar9,0,uVar13 << 2);\n      pCur->curFlags = pCur->curFlags | 4;\n    }\n    else {\n      if (uVar19 == 0) {\n        trap(7);\n      }\n      uVar14 = uVar12 / uVar19;\n      uVar13 = uVar12 % uVar19;\n      PVar5 = pPVar9[uVar14];\n      if (pPVar9[uVar14] != 0) goto LAB_000a719c;\n    }\n    uVar14 = 0;\n    if (nextPage != 0) {\n      pPVar9 = pCur->aOverflow;\n      uVar13 = uVar12;\n      PVar5 = nextPage;\nLAB_000a719c:\n      nextPage = PVar5;\n      puVar2 = PTR_LAB_0015c708;\n      puVar1 = PTR_LAB_0015c66c;\n      iVar7 = 2;\n      iVar22 = uVar14 + 1;\n      if (eOp != 0) {\n        iVar7 = 0;\n      }\n      pPVar9[uVar14] = nextPage;\n      puVar3 = PTR_LAB_0015c744;\n      uVar12 = amt + uVar13;\n      uVar15 = amt;\n      if (uVar13 < uVar19) goto LAB_000a7220;\n      do {\n        pPVar9 = pCur->aOverflow;\n        uVar13 = uVar13 - uVar19;\n        iVar6 = iVar22;\n        PVar5 = pPVar9[iVar22];\n        if (pPVar9[iVar22] == 0) {\n          iVar6 = (*(code *)(puVar3 + -0x6468))(pBVar16,nextPage,0,&nextPage);\n          goto LAB_000a7268;\n        }\n        while( true ) {\n          nextPage = PVar5;\n          iVar22 = iVar6 + 1;\n          pPVar9[iVar6] = nextPage;\n          if (uVar19 <= uVar13) break;\n          uVar12 = amt + uVar13;\n          uVar15 = amt;\nLAB_000a7220:\n          amt = 0;\n          if (uVar19 < uVar12) {\n            amt = (uVar13 - uVar19) + uVar15;\n            uVar15 = uVar19 - uVar13;\n          }\n          iVar6 = (*pBVar16->pPager->xGet)(pBVar16->pPager,nextPage,&pDbPage,iVar7);\n          pDVar4 = pDbPage;\n          if (iVar6 == 0) {\n            iVar17 = (int)pDbPage->pData + uVar13 + 4;\n                    /* WARNING: Load size is inaccurate */\n            nextPage = *pDbPage->pData;\n            if (eOp == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(pBuf,iVar17,uVar15);\n              uVar13 = 0;\n              (*(code *)(puVar1 + -0x138c))(pDVar4);\n              iVar6 = 0;\n            }\n            else {\n              iVar6 = (*(code *)(puVar2 + -0x30a4))(pDbPage);\n              if (iVar6 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar17,pBuf,uVar15);\n              }\n              uVar13 = 0;\n              if (pDbPage != (DbPage *)0x0) {\n                (*(code *)(puVar1 + -0x138c))(pDbPage);\n              }\n            }\n          }\n          pBuf = pBuf + uVar15;\n          if (amt == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar6 != 0) goto LAB_000a7304;\n          if (nextPage == 0) goto LAB_000a7494;\n          pPVar9 = pCur->aOverflow;\n          iVar6 = iVar22;\n          PVar5 = nextPage;\n        }\n      } while( true );\n    }\nLAB_000a7494:\n    uVar10 = 0x1094f;\n  }\n  iVar6 = (*(code *)(PTR_LAB_0015c744 + -0x6c90))(uVar10);\nLAB_000a7304:\n  if (pBStack_2c == *(BtCursor **)puVar21) {\n    return iVar6;\n  }\n  pCur_00 = pBStack_2c;\n  puVar21 = PTR___stack_chk_fail_0015ca14;\n  (*(code *)PTR___stack_chk_fail_0015ca14)();\n  (*(code *)(*(int *)(puVar21 + 0xb51b8) + -0xc70))();\n  uVar12 = (pCur_00->info).nPayload;\n  *(undefined4 *)&pCur_00->nKey = 0;\n  *(uint *)((int)&pCur_00->nKey + 4) = uVar12;\n  puVar8 = (uchar *)(*(code *)(*(int *)(puVar21 + 0xb5228) + -0x5370))(uVar12 + 0x11 < uVar12);\n  if (puVar8 == (uchar *)0x0) {\n    return 7;\n  }\n  iVar6 = accessPayload(pCur_00,0,(u32)pCur_00->nKey,puVar8,0);\n  if (iVar6 == 0) {\n    (**(code **)(puVar21 + 0xb5504))(puVar8 + (int)pCur_00->nKey,0,0x11);\n    pCur_00->pKey = puVar8;\n    return 0;\n  }\n  (**(code **)(puVar21 + 0xb5138))(puVar8);\n  return iVar6;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "DbPage *pDVar4;" type_identifier (pointer_declarator "*pDVar4" * identifier) ;) (declaration "Pgno PVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "uchar *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "Pgno *pPVar9;" type_identifier (pointer_declarator "*pPVar9" * identifier) ;) (declaration "undefined4 uVar10;" type_identifier identifier ;) (declaration "BtCursor *pCur_00;" type_identifier (pointer_declarator "*pCur_00" * identifier) ;) (declaration "u8 *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "uint uVar12;" type_identifier identifier ;) (declaration "uint uVar13;" type_identifier identifier ;) (declaration "uint uVar14;" type_identifier identifier ;) (declaration "u32 uVar15;" type_identifier identifier ;) (declaration "BtShared *pBVar16;" type_identifier (pointer_declarator "*pBVar16" * identifier) ;) (declaration "int iVar17;" primitive_type identifier ;) (declaration "u8 *puVar18;" type_identifier (pointer_declarator "*puVar18" * identifier) ;) (declaration "uint uVar19;" type_identifier identifier ;) (declaration "MemPage *pMVar20;" type_identifier (pointer_declarator "*pMVar20" * identifier) ;) (declaration "undefined *puVar21;" type_identifier (pointer_declarator "*puVar21" * identifier) ;) (declaration "int iVar22;" primitive_type identifier ;) (declaration "Pgno nextPage;" type_identifier identifier ;) (declaration "DbPage *pDbPage;" type_identifier (pointer_declarator "*pDbPage" * identifier) ;) (declaration "BtCursor *pBStack_2c;" type_identifier (pointer_declarator "*pBStack_2c" * identifier) ;) (expression_statement "puVar21 = PTR___stack_chk_guard_0015ca30;" (assignment_expression "puVar21 = PTR___stack_chk_guard_0015ca30" identifier = identifier) ;) (expression_statement "pMVar20 = pCur->pPage;" (assignment_expression "pMVar20 = pCur->pPage" identifier = (field_expression "pCur->pPage" identifier -> field_identifier)) ;) (expression_statement "pBStack_2c = *(BtCursor **)PTR___stack_chk_guard_0015ca30;" (assignment_expression "pBStack_2c = *(BtCursor **)PTR___stack_chk_guard_0015ca30" identifier = (pointer_expression "*(BtCursor **)PTR___stack_chk_guard_0015ca30" * (cast_expression "(BtCursor **)PTR___stack_chk_guard_0015ca30" ( (type_descriptor "BtCursor **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "pBVar16 = pCur->pBt;" (assignment_expression "pBVar16 = pCur->pBt" identifier = (field_expression "pCur->pBt" identifier -> field_identifier)) ;) (expression_statement "(*(code *)(PTR_LAB_0015c66c + -0xc70))();" (call_expression "(*(code *)(PTR_LAB_0015c66c + -0xc70))()" (parenthesized_expression "(*(code *)(PTR_LAB_0015c66c + -0xc70))" ( (pointer_expression "*(code *)(PTR_LAB_0015c66c + -0xc70)" * (cast_expression "(code *)(PTR_LAB_0015c66c + -0xc70)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015c66c + -0xc70)" ( (binary_expression "PTR_LAB_0015c66c + -0xc70" identifier + number_literal) )))) )) (argument_list "()" ( ))) ;) (expression_statement "puVar18 = (pCur->info).pPayload;" (assignment_expression "puVar18 = (pCur->info).pPayload" identifier = (field_expression "(pCur->info).pPayload" (parenthesized_expression "(pCur->info)" ( (field_expression "pCur->info" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "uVar12 = (uint)(pCur->info).nLocal;" (assignment_expression "uVar12 = (uint)(pCur->info).nLocal" identifier = (field_expression "(uint)(pCur->info).nLocal" (call_expression "(uint)(pCur->info)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pCur->info)" ( (field_expression "pCur->info" identifier -> field_identifier) ))) . field_identifier)) ;) (if_statement "if (pBVar16->usableSize - uVar12 < (uint)((int)puVar18 - (int)pMVar20->aData)) {\n    uVar10 = 0x108be;\n  }\n  else {\n    if (offset < uVar12) {\n      if (uVar12 < offset + amt) {\n        uVar15 = uVar12 - offset;\n        if (eOp != 0) goto LAB_000a7298;\nLAB_000a7354:\n        puVar8 = pBuf;\n        puVar11 = puVar18 + offset;\n      }\n      else {\n        uVar15 = amt;\n        if (eOp == 0) goto LAB_000a7354;\nLAB_000a7298:\n        puVar8 = puVar18 + offset;\n        iVar6 = sqlite3PagerWrite(pMVar20->pDbPage);\n        puVar11 = pBuf;\n        if (iVar6 != 0) goto LAB_000a7304;\n      }\n      amt = amt - uVar15;\n      (*(code *)PTR_memcpy_0015ca34)(puVar8,puVar11,uVar15);\n      pBuf = pBuf + uVar15;\n      uVar12 = 0;\n      if (amt == 0) goto LAB_000a72dc;\n    }\n    else {\n      uVar12 = offset - uVar12;\n      if (amt == 0) {\nLAB_000a72dc:\n        iVar6 = 0;\n        goto LAB_000a7304;\n      }\n    }\n    uVar13 = (uint)(pCur->info).nLocal;\n    pPVar9 = pCur->aOverflow;\n    uVar19 = pBVar16->usableSize - 4;\n    nextPage = *(Pgno *)(puVar18 + uVar13);\n    if ((pCur->curFlags & 4) == 0) {\n      if (uVar19 == 0) {\n        trap(7);\n      }\n      uVar13 = ((((pCur->info).nPayload - 1) + uVar19) - uVar13) / uVar19;\n      if (pPVar9 == (Pgno *)0x0) {\nLAB_000a7368:\n        pPVar9 = (Pgno *)(*(code *)(PTR_LAB_0015c6dc + -0x2708))(pPVar9);\n        if (pPVar9 == (Pgno *)0x0) {\n          iVar6 = 7;\n          goto LAB_000a7304;\n        }\n        pCur->aOverflow = pPVar9;\n      }\n      else {\n        iVar6 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();\n        pPVar9 = pCur->aOverflow;\n        if (iVar6 < (int)(uVar13 << 2)) goto LAB_000a7368;\n      }\n      (*(code *)PTR_memset_0015c9b8)(pPVar9,0,uVar13 << 2);\n      pCur->curFlags = pCur->curFlags | 4;\n    }\n    else {\n      if (uVar19 == 0) {\n        trap(7);\n      }\n      uVar14 = uVar12 / uVar19;\n      uVar13 = uVar12 % uVar19;\n      PVar5 = pPVar9[uVar14];\n      if (pPVar9[uVar14] != 0) goto LAB_000a719c;\n    }\n    uVar14 = 0;\n    if (nextPage != 0) {\n      pPVar9 = pCur->aOverflow;\n      uVar13 = uVar12;\n      PVar5 = nextPage;\nLAB_000a719c:\n      nextPage = PVar5;\n      puVar2 = PTR_LAB_0015c708;\n      puVar1 = PTR_LAB_0015c66c;\n      iVar7 = 2;\n      iVar22 = uVar14 + 1;\n      if (eOp != 0) {\n        iVar7 = 0;\n      }\n      pPVar9[uVar14] = nextPage;\n      puVar3 = PTR_LAB_0015c744;\n      uVar12 = amt + uVar13;\n      uVar15 = amt;\n      if (uVar13 < uVar19) goto LAB_000a7220;\n      do {\n        pPVar9 = pCur->aOverflow;\n        uVar13 = uVar13 - uVar19;\n        iVar6 = iVar22;\n        PVar5 = pPVar9[iVar22];\n        if (pPVar9[iVar22] == 0) {\n          iVar6 = (*(code *)(puVar3 + -0x6468))(pBVar16,nextPage,0,&nextPage);\n          goto LAB_000a7268;\n        }\n        while( true ) {\n          nextPage = PVar5;\n          iVar22 = iVar6 + 1;\n          pPVar9[iVar6] = nextPage;\n          if (uVar19 <= uVar13) break;\n          uVar12 = amt + uVar13;\n          uVar15 = amt;\nLAB_000a7220:\n          amt = 0;\n          if (uVar19 < uVar12) {\n            amt = (uVar13 - uVar19) + uVar15;\n            uVar15 = uVar19 - uVar13;\n          }\n          iVar6 = (*pBVar16->pPager->xGet)(pBVar16->pPager,nextPage,&pDbPage,iVar7);\n          pDVar4 = pDbPage;\n          if (iVar6 == 0) {\n            iVar17 = (int)pDbPage->pData + uVar13 + 4;\n                    /* WARNING: Load size is inaccurate */\n            nextPage = *pDbPage->pData;\n            if (eOp == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(pBuf,iVar17,uVar15);\n              uVar13 = 0;\n              (*(code *)(puVar1 + -0x138c))(pDVar4);\n              iVar6 = 0;\n            }\n            else {\n              iVar6 = (*(code *)(puVar2 + -0x30a4))(pDbPage);\n              if (iVar6 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar17,pBuf,uVar15);\n              }\n              uVar13 = 0;\n              if (pDbPage != (DbPage *)0x0) {\n                (*(code *)(puVar1 + -0x138c))(pDbPage);\n              }\n            }\n          }\n          pBuf = pBuf + uVar15;\n          if (amt == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar6 != 0) goto LAB_000a7304;\n          if (nextPage == 0) goto LAB_000a7494;\n          pPVar9 = pCur->aOverflow;\n          iVar6 = iVar22;\n          PVar5 = nextPage;\n        }\n      } while( true );\n    }\nLAB_000a7494:\n    uVar10 = 0x1094f;\n  }" if (parenthesized_expression "(pBVar16->usableSize - uVar12 < (uint)((int)puVar18 - (int)pMVar20->aData))" ( (binary_expression "pBVar16->usableSize - uVar12 < (uint)((int)puVar18 - (int)pMVar20->aData)" (binary_expression "pBVar16->usableSize - uVar12" (field_expression "pBVar16->usableSize" identifier -> field_identifier) - identifier) < (call_expression "(uint)((int)puVar18 - (int)pMVar20->aData)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)puVar18 - (int)pMVar20->aData)" ( (binary_expression "(int)puVar18 - (int)pMVar20->aData" (cast_expression "(int)puVar18" ( (type_descriptor "int" primitive_type) ) identifier) - (cast_expression "(int)pMVar20->aData" ( (type_descriptor "int" primitive_type) ) (field_expression "pMVar20->aData" identifier -> field_identifier))) )))) )) (compound_statement "{\n    uVar10 = 0x108be;\n  }" { (expression_statement "uVar10 = 0x108be;" (assignment_expression "uVar10 = 0x108be" identifier = number_literal) ;) }) (else_clause "else {\n    if (offset < uVar12) {\n      if (uVar12 < offset + amt) {\n        uVar15 = uVar12 - offset;\n        if (eOp != 0) goto LAB_000a7298;\nLAB_000a7354:\n        puVar8 = pBuf;\n        puVar11 = puVar18 + offset;\n      }\n      else {\n        uVar15 = amt;\n        if (eOp == 0) goto LAB_000a7354;\nLAB_000a7298:\n        puVar8 = puVar18 + offset;\n        iVar6 = sqlite3PagerWrite(pMVar20->pDbPage);\n        puVar11 = pBuf;\n        if (iVar6 != 0) goto LAB_000a7304;\n      }\n      amt = amt - uVar15;\n      (*(code *)PTR_memcpy_0015ca34)(puVar8,puVar11,uVar15);\n      pBuf = pBuf + uVar15;\n      uVar12 = 0;\n      if (amt == 0) goto LAB_000a72dc;\n    }\n    else {\n      uVar12 = offset - uVar12;\n      if (amt == 0) {\nLAB_000a72dc:\n        iVar6 = 0;\n        goto LAB_000a7304;\n      }\n    }\n    uVar13 = (uint)(pCur->info).nLocal;\n    pPVar9 = pCur->aOverflow;\n    uVar19 = pBVar16->usableSize - 4;\n    nextPage = *(Pgno *)(puVar18 + uVar13);\n    if ((pCur->curFlags & 4) == 0) {\n      if (uVar19 == 0) {\n        trap(7);\n      }\n      uVar13 = ((((pCur->info).nPayload - 1) + uVar19) - uVar13) / uVar19;\n      if (pPVar9 == (Pgno *)0x0) {\nLAB_000a7368:\n        pPVar9 = (Pgno *)(*(code *)(PTR_LAB_0015c6dc + -0x2708))(pPVar9);\n        if (pPVar9 == (Pgno *)0x0) {\n          iVar6 = 7;\n          goto LAB_000a7304;\n        }\n        pCur->aOverflow = pPVar9;\n      }\n      else {\n        iVar6 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();\n        pPVar9 = pCur->aOverflow;\n        if (iVar6 < (int)(uVar13 << 2)) goto LAB_000a7368;\n      }\n      (*(code *)PTR_memset_0015c9b8)(pPVar9,0,uVar13 << 2);\n      pCur->curFlags = pCur->curFlags | 4;\n    }\n    else {\n      if (uVar19 == 0) {\n        trap(7);\n      }\n      uVar14 = uVar12 / uVar19;\n      uVar13 = uVar12 % uVar19;\n      PVar5 = pPVar9[uVar14];\n      if (pPVar9[uVar14] != 0) goto LAB_000a719c;\n    }\n    uVar14 = 0;\n    if (nextPage != 0) {\n      pPVar9 = pCur->aOverflow;\n      uVar13 = uVar12;\n      PVar5 = nextPage;\nLAB_000a719c:\n      nextPage = PVar5;\n      puVar2 = PTR_LAB_0015c708;\n      puVar1 = PTR_LAB_0015c66c;\n      iVar7 = 2;\n      iVar22 = uVar14 + 1;\n      if (eOp != 0) {\n        iVar7 = 0;\n      }\n      pPVar9[uVar14] = nextPage;\n      puVar3 = PTR_LAB_0015c744;\n      uVar12 = amt + uVar13;\n      uVar15 = amt;\n      if (uVar13 < uVar19) goto LAB_000a7220;\n      do {\n        pPVar9 = pCur->aOverflow;\n        uVar13 = uVar13 - uVar19;\n        iVar6 = iVar22;\n        PVar5 = pPVar9[iVar22];\n        if (pPVar9[iVar22] == 0) {\n          iVar6 = (*(code *)(puVar3 + -0x6468))(pBVar16,nextPage,0,&nextPage);\n          goto LAB_000a7268;\n        }\n        while( true ) {\n          nextPage = PVar5;\n          iVar22 = iVar6 + 1;\n          pPVar9[iVar6] = nextPage;\n          if (uVar19 <= uVar13) break;\n          uVar12 = amt + uVar13;\n          uVar15 = amt;\nLAB_000a7220:\n          amt = 0;\n          if (uVar19 < uVar12) {\n            amt = (uVar13 - uVar19) + uVar15;\n            uVar15 = uVar19 - uVar13;\n          }\n          iVar6 = (*pBVar16->pPager->xGet)(pBVar16->pPager,nextPage,&pDbPage,iVar7);\n          pDVar4 = pDbPage;\n          if (iVar6 == 0) {\n            iVar17 = (int)pDbPage->pData + uVar13 + 4;\n                    /* WARNING: Load size is inaccurate */\n            nextPage = *pDbPage->pData;\n            if (eOp == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(pBuf,iVar17,uVar15);\n              uVar13 = 0;\n              (*(code *)(puVar1 + -0x138c))(pDVar4);\n              iVar6 = 0;\n            }\n            else {\n              iVar6 = (*(code *)(puVar2 + -0x30a4))(pDbPage);\n              if (iVar6 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar17,pBuf,uVar15);\n              }\n              uVar13 = 0;\n              if (pDbPage != (DbPage *)0x0) {\n                (*(code *)(puVar1 + -0x138c))(pDbPage);\n              }\n            }\n          }\n          pBuf = pBuf + uVar15;\n          if (amt == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar6 != 0) goto LAB_000a7304;\n          if (nextPage == 0) goto LAB_000a7494;\n          pPVar9 = pCur->aOverflow;\n          iVar6 = iVar22;\n          PVar5 = nextPage;\n        }\n      } while( true );\n    }\nLAB_000a7494:\n    uVar10 = 0x1094f;\n  }" else (compound_statement "{\n    if (offset < uVar12) {\n      if (uVar12 < offset + amt) {\n        uVar15 = uVar12 - offset;\n        if (eOp != 0) goto LAB_000a7298;\nLAB_000a7354:\n        puVar8 = pBuf;\n        puVar11 = puVar18 + offset;\n      }\n      else {\n        uVar15 = amt;\n        if (eOp == 0) goto LAB_000a7354;\nLAB_000a7298:\n        puVar8 = puVar18 + offset;\n        iVar6 = sqlite3PagerWrite(pMVar20->pDbPage);\n        puVar11 = pBuf;\n        if (iVar6 != 0) goto LAB_000a7304;\n      }\n      amt = amt - uVar15;\n      (*(code *)PTR_memcpy_0015ca34)(puVar8,puVar11,uVar15);\n      pBuf = pBuf + uVar15;\n      uVar12 = 0;\n      if (amt == 0) goto LAB_000a72dc;\n    }\n    else {\n      uVar12 = offset - uVar12;\n      if (amt == 0) {\nLAB_000a72dc:\n        iVar6 = 0;\n        goto LAB_000a7304;\n      }\n    }\n    uVar13 = (uint)(pCur->info).nLocal;\n    pPVar9 = pCur->aOverflow;\n    uVar19 = pBVar16->usableSize - 4;\n    nextPage = *(Pgno *)(puVar18 + uVar13);\n    if ((pCur->curFlags & 4) == 0) {\n      if (uVar19 == 0) {\n        trap(7);\n      }\n      uVar13 = ((((pCur->info).nPayload - 1) + uVar19) - uVar13) / uVar19;\n      if (pPVar9 == (Pgno *)0x0) {\nLAB_000a7368:\n        pPVar9 = (Pgno *)(*(code *)(PTR_LAB_0015c6dc + -0x2708))(pPVar9);\n        if (pPVar9 == (Pgno *)0x0) {\n          iVar6 = 7;\n          goto LAB_000a7304;\n        }\n        pCur->aOverflow = pPVar9;\n      }\n      else {\n        iVar6 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();\n        pPVar9 = pCur->aOverflow;\n        if (iVar6 < (int)(uVar13 << 2)) goto LAB_000a7368;\n      }\n      (*(code *)PTR_memset_0015c9b8)(pPVar9,0,uVar13 << 2);\n      pCur->curFlags = pCur->curFlags | 4;\n    }\n    else {\n      if (uVar19 == 0) {\n        trap(7);\n      }\n      uVar14 = uVar12 / uVar19;\n      uVar13 = uVar12 % uVar19;\n      PVar5 = pPVar9[uVar14];\n      if (pPVar9[uVar14] != 0) goto LAB_000a719c;\n    }\n    uVar14 = 0;\n    if (nextPage != 0) {\n      pPVar9 = pCur->aOverflow;\n      uVar13 = uVar12;\n      PVar5 = nextPage;\nLAB_000a719c:\n      nextPage = PVar5;\n      puVar2 = PTR_LAB_0015c708;\n      puVar1 = PTR_LAB_0015c66c;\n      iVar7 = 2;\n      iVar22 = uVar14 + 1;\n      if (eOp != 0) {\n        iVar7 = 0;\n      }\n      pPVar9[uVar14] = nextPage;\n      puVar3 = PTR_LAB_0015c744;\n      uVar12 = amt + uVar13;\n      uVar15 = amt;\n      if (uVar13 < uVar19) goto LAB_000a7220;\n      do {\n        pPVar9 = pCur->aOverflow;\n        uVar13 = uVar13 - uVar19;\n        iVar6 = iVar22;\n        PVar5 = pPVar9[iVar22];\n        if (pPVar9[iVar22] == 0) {\n          iVar6 = (*(code *)(puVar3 + -0x6468))(pBVar16,nextPage,0,&nextPage);\n          goto LAB_000a7268;\n        }\n        while( true ) {\n          nextPage = PVar5;\n          iVar22 = iVar6 + 1;\n          pPVar9[iVar6] = nextPage;\n          if (uVar19 <= uVar13) break;\n          uVar12 = amt + uVar13;\n          uVar15 = amt;\nLAB_000a7220:\n          amt = 0;\n          if (uVar19 < uVar12) {\n            amt = (uVar13 - uVar19) + uVar15;\n            uVar15 = uVar19 - uVar13;\n          }\n          iVar6 = (*pBVar16->pPager->xGet)(pBVar16->pPager,nextPage,&pDbPage,iVar7);\n          pDVar4 = pDbPage;\n          if (iVar6 == 0) {\n            iVar17 = (int)pDbPage->pData + uVar13 + 4;\n                    /* WARNING: Load size is inaccurate */\n            nextPage = *pDbPage->pData;\n            if (eOp == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(pBuf,iVar17,uVar15);\n              uVar13 = 0;\n              (*(code *)(puVar1 + -0x138c))(pDVar4);\n              iVar6 = 0;\n            }\n            else {\n              iVar6 = (*(code *)(puVar2 + -0x30a4))(pDbPage);\n              if (iVar6 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar17,pBuf,uVar15);\n              }\n              uVar13 = 0;\n              if (pDbPage != (DbPage *)0x0) {\n                (*(code *)(puVar1 + -0x138c))(pDbPage);\n              }\n            }\n          }\n          pBuf = pBuf + uVar15;\n          if (amt == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar6 != 0) goto LAB_000a7304;\n          if (nextPage == 0) goto LAB_000a7494;\n          pPVar9 = pCur->aOverflow;\n          iVar6 = iVar22;\n          PVar5 = nextPage;\n        }\n      } while( true );\n    }\nLAB_000a7494:\n    uVar10 = 0x1094f;\n  }" { (if_statement "if (offset < uVar12) {\n      if (uVar12 < offset + amt) {\n        uVar15 = uVar12 - offset;\n        if (eOp != 0) goto LAB_000a7298;\nLAB_000a7354:\n        puVar8 = pBuf;\n        puVar11 = puVar18 + offset;\n      }\n      else {\n        uVar15 = amt;\n        if (eOp == 0) goto LAB_000a7354;\nLAB_000a7298:\n        puVar8 = puVar18 + offset;\n        iVar6 = sqlite3PagerWrite(pMVar20->pDbPage);\n        puVar11 = pBuf;\n        if (iVar6 != 0) goto LAB_000a7304;\n      }\n      amt = amt - uVar15;\n      (*(code *)PTR_memcpy_0015ca34)(puVar8,puVar11,uVar15);\n      pBuf = pBuf + uVar15;\n      uVar12 = 0;\n      if (amt == 0) goto LAB_000a72dc;\n    }\n    else {\n      uVar12 = offset - uVar12;\n      if (amt == 0) {\nLAB_000a72dc:\n        iVar6 = 0;\n        goto LAB_000a7304;\n      }\n    }" if (parenthesized_expression "(offset < uVar12)" ( (binary_expression "offset < uVar12" identifier < identifier) )) (compound_statement "{\n      if (uVar12 < offset + amt) {\n        uVar15 = uVar12 - offset;\n        if (eOp != 0) goto LAB_000a7298;\nLAB_000a7354:\n        puVar8 = pBuf;\n        puVar11 = puVar18 + offset;\n      }\n      else {\n        uVar15 = amt;\n        if (eOp == 0) goto LAB_000a7354;\nLAB_000a7298:\n        puVar8 = puVar18 + offset;\n        iVar6 = sqlite3PagerWrite(pMVar20->pDbPage);\n        puVar11 = pBuf;\n        if (iVar6 != 0) goto LAB_000a7304;\n      }\n      amt = amt - uVar15;\n      (*(code *)PTR_memcpy_0015ca34)(puVar8,puVar11,uVar15);\n      pBuf = pBuf + uVar15;\n      uVar12 = 0;\n      if (amt == 0) goto LAB_000a72dc;\n    }" { (if_statement "if (uVar12 < offset + amt) {\n        uVar15 = uVar12 - offset;\n        if (eOp != 0) goto LAB_000a7298;\nLAB_000a7354:\n        puVar8 = pBuf;\n        puVar11 = puVar18 + offset;\n      }\n      else {\n        uVar15 = amt;\n        if (eOp == 0) goto LAB_000a7354;\nLAB_000a7298:\n        puVar8 = puVar18 + offset;\n        iVar6 = sqlite3PagerWrite(pMVar20->pDbPage);\n        puVar11 = pBuf;\n        if (iVar6 != 0) goto LAB_000a7304;\n      }" if (parenthesized_expression "(uVar12 < offset + amt)" ( (binary_expression "uVar12 < offset + amt" identifier < (binary_expression "offset + amt" identifier + identifier)) )) (compound_statement "{\n        uVar15 = uVar12 - offset;\n        if (eOp != 0) goto LAB_000a7298;\nLAB_000a7354:\n        puVar8 = pBuf;\n        puVar11 = puVar18 + offset;\n      }" { (expression_statement "uVar15 = uVar12 - offset;" (assignment_expression "uVar15 = uVar12 - offset" identifier = (binary_expression "uVar12 - offset" identifier - identifier)) ;) (if_statement "if (eOp != 0) goto LAB_000a7298;" if (parenthesized_expression "(eOp != 0)" ( (binary_expression "eOp != 0" identifier != number_literal) )) (goto_statement "goto LAB_000a7298;" goto statement_identifier ;)) (labeled_statement "LAB_000a7354:\n        puVar8 = pBuf;" statement_identifier : (expression_statement "puVar8 = pBuf;" (assignment_expression "puVar8 = pBuf" identifier = identifier) ;)) (expression_statement "puVar11 = puVar18 + offset;" (assignment_expression "puVar11 = puVar18 + offset" identifier = (binary_expression "puVar18 + offset" identifier + identifier)) ;) }) (else_clause "else {\n        uVar15 = amt;\n        if (eOp == 0) goto LAB_000a7354;\nLAB_000a7298:\n        puVar8 = puVar18 + offset;\n        iVar6 = sqlite3PagerWrite(pMVar20->pDbPage);\n        puVar11 = pBuf;\n        if (iVar6 != 0) goto LAB_000a7304;\n      }" else (compound_statement "{\n        uVar15 = amt;\n        if (eOp == 0) goto LAB_000a7354;\nLAB_000a7298:\n        puVar8 = puVar18 + offset;\n        iVar6 = sqlite3PagerWrite(pMVar20->pDbPage);\n        puVar11 = pBuf;\n        if (iVar6 != 0) goto LAB_000a7304;\n      }" { (expression_statement "uVar15 = amt;" (assignment_expression "uVar15 = amt" identifier = identifier) ;) (if_statement "if (eOp == 0) goto LAB_000a7354;" if (parenthesized_expression "(eOp == 0)" ( (binary_expression "eOp == 0" identifier == number_literal) )) (goto_statement "goto LAB_000a7354;" goto statement_identifier ;)) (labeled_statement "LAB_000a7298:\n        puVar8 = puVar18 + offset;" statement_identifier : (expression_statement "puVar8 = puVar18 + offset;" (assignment_expression "puVar8 = puVar18 + offset" identifier = (binary_expression "puVar18 + offset" identifier + identifier)) ;)) (expression_statement "iVar6 = sqlite3PagerWrite(pMVar20->pDbPage);" (assignment_expression "iVar6 = sqlite3PagerWrite(pMVar20->pDbPage)" identifier = (call_expression "sqlite3PagerWrite(pMVar20->pDbPage)" identifier (argument_list "(pMVar20->pDbPage)" ( (field_expression "pMVar20->pDbPage" identifier -> field_identifier) )))) ;) (expression_statement "puVar11 = pBuf;" (assignment_expression "puVar11 = pBuf" identifier = identifier) ;) (if_statement "if (iVar6 != 0) goto LAB_000a7304;" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000a7304;" goto statement_identifier ;)) }))) (expression_statement "amt = amt - uVar15;" (assignment_expression "amt = amt - uVar15" identifier = (binary_expression "amt - uVar15" identifier - identifier)) ;) (expression_statement "(*(code *)PTR_memcpy_0015ca34)(puVar8,puVar11,uVar15);" (call_expression "(*(code *)PTR_memcpy_0015ca34)(puVar8,puVar11,uVar15)" (parenthesized_expression "(*(code *)PTR_memcpy_0015ca34)" ( (pointer_expression "*(code *)PTR_memcpy_0015ca34" * (cast_expression "(code *)PTR_memcpy_0015ca34" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar8,puVar11,uVar15)" ( identifier , identifier , identifier ))) ;) (expression_statement "pBuf = pBuf + uVar15;" (assignment_expression "pBuf = pBuf + uVar15" identifier = (binary_expression "pBuf + uVar15" identifier + identifier)) ;) (expression_statement "uVar12 = 0;" (assignment_expression "uVar12 = 0" identifier = number_literal) ;) (if_statement "if (amt == 0) goto LAB_000a72dc;" if (parenthesized_expression "(amt == 0)" ( (binary_expression "amt == 0" identifier == number_literal) )) (goto_statement "goto LAB_000a72dc;" goto statement_identifier ;)) }) (else_clause "else {\n      uVar12 = offset - uVar12;\n      if (amt == 0) {\nLAB_000a72dc:\n        iVar6 = 0;\n        goto LAB_000a7304;\n      }\n    }" else (compound_statement "{\n      uVar12 = offset - uVar12;\n      if (amt == 0) {\nLAB_000a72dc:\n        iVar6 = 0;\n        goto LAB_000a7304;\n      }\n    }" { (expression_statement "uVar12 = offset - uVar12;" (assignment_expression "uVar12 = offset - uVar12" identifier = (binary_expression "offset - uVar12" identifier - identifier)) ;) (if_statement "if (amt == 0) {\nLAB_000a72dc:\n        iVar6 = 0;\n        goto LAB_000a7304;\n      }" if (parenthesized_expression "(amt == 0)" ( (binary_expression "amt == 0" identifier == number_literal) )) (compound_statement "{\nLAB_000a72dc:\n        iVar6 = 0;\n        goto LAB_000a7304;\n      }" { (labeled_statement "LAB_000a72dc:\n        iVar6 = 0;" statement_identifier : (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;)) (goto_statement "goto LAB_000a7304;" goto statement_identifier ;) })) }))) (expression_statement "uVar13 = (uint)(pCur->info).nLocal;" (assignment_expression "uVar13 = (uint)(pCur->info).nLocal" identifier = (field_expression "(uint)(pCur->info).nLocal" (call_expression "(uint)(pCur->info)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pCur->info)" ( (field_expression "pCur->info" identifier -> field_identifier) ))) . field_identifier)) ;) (expression_statement "pPVar9 = pCur->aOverflow;" (assignment_expression "pPVar9 = pCur->aOverflow" identifier = (field_expression "pCur->aOverflow" identifier -> field_identifier)) ;) (expression_statement "uVar19 = pBVar16->usableSize - 4;" (assignment_expression "uVar19 = pBVar16->usableSize - 4" identifier = (binary_expression "pBVar16->usableSize - 4" (field_expression "pBVar16->usableSize" identifier -> field_identifier) - number_literal)) ;) (expression_statement "nextPage = *(Pgno *)(puVar18 + uVar13);" (assignment_expression "nextPage = *(Pgno *)(puVar18 + uVar13)" identifier = (pointer_expression "*(Pgno *)(puVar18 + uVar13)" * (cast_expression "(Pgno *)(puVar18 + uVar13)" ( (type_descriptor "Pgno *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar18 + uVar13)" ( (binary_expression "puVar18 + uVar13" identifier + identifier) ))))) ;) (if_statement "if ((pCur->curFlags & 4) == 0) {\n      if (uVar19 == 0) {\n        trap(7);\n      }\n      uVar13 = ((((pCur->info).nPayload - 1) + uVar19) - uVar13) / uVar19;\n      if (pPVar9 == (Pgno *)0x0) {\nLAB_000a7368:\n        pPVar9 = (Pgno *)(*(code *)(PTR_LAB_0015c6dc + -0x2708))(pPVar9);\n        if (pPVar9 == (Pgno *)0x0) {\n          iVar6 = 7;\n          goto LAB_000a7304;\n        }\n        pCur->aOverflow = pPVar9;\n      }\n      else {\n        iVar6 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();\n        pPVar9 = pCur->aOverflow;\n        if (iVar6 < (int)(uVar13 << 2)) goto LAB_000a7368;\n      }\n      (*(code *)PTR_memset_0015c9b8)(pPVar9,0,uVar13 << 2);\n      pCur->curFlags = pCur->curFlags | 4;\n    }\n    else {\n      if (uVar19 == 0) {\n        trap(7);\n      }\n      uVar14 = uVar12 / uVar19;\n      uVar13 = uVar12 % uVar19;\n      PVar5 = pPVar9[uVar14];\n      if (pPVar9[uVar14] != 0) goto LAB_000a719c;\n    }" if (parenthesized_expression "((pCur->curFlags & 4) == 0)" ( (binary_expression "(pCur->curFlags & 4) == 0" (parenthesized_expression "(pCur->curFlags & 4)" ( (binary_expression "pCur->curFlags & 4" (field_expression "pCur->curFlags" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n      if (uVar19 == 0) {\n        trap(7);\n      }\n      uVar13 = ((((pCur->info).nPayload - 1) + uVar19) - uVar13) / uVar19;\n      if (pPVar9 == (Pgno *)0x0) {\nLAB_000a7368:\n        pPVar9 = (Pgno *)(*(code *)(PTR_LAB_0015c6dc + -0x2708))(pPVar9);\n        if (pPVar9 == (Pgno *)0x0) {\n          iVar6 = 7;\n          goto LAB_000a7304;\n        }\n        pCur->aOverflow = pPVar9;\n      }\n      else {\n        iVar6 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();\n        pPVar9 = pCur->aOverflow;\n        if (iVar6 < (int)(uVar13 << 2)) goto LAB_000a7368;\n      }\n      (*(code *)PTR_memset_0015c9b8)(pPVar9,0,uVar13 << 2);\n      pCur->curFlags = pCur->curFlags | 4;\n    }" { (if_statement "if (uVar19 == 0) {\n        trap(7);\n      }" if (parenthesized_expression "(uVar19 == 0)" ( (binary_expression "uVar19 == 0" identifier == number_literal) )) (compound_statement "{\n        trap(7);\n      }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) (expression_statement "uVar13 = ((((pCur->info).nPayload - 1) + uVar19) - uVar13) / uVar19;" (assignment_expression "uVar13 = ((((pCur->info).nPayload - 1) + uVar19) - uVar13) / uVar19" identifier = (binary_expression "((((pCur->info).nPayload - 1) + uVar19) - uVar13) / uVar19" (parenthesized_expression "((((pCur->info).nPayload - 1) + uVar19) - uVar13)" ( (binary_expression "(((pCur->info).nPayload - 1) + uVar19) - uVar13" (parenthesized_expression "(((pCur->info).nPayload - 1) + uVar19)" ( (binary_expression "((pCur->info).nPayload - 1) + uVar19" (parenthesized_expression "((pCur->info).nPayload - 1)" ( (binary_expression "(pCur->info).nPayload - 1" (field_expression "(pCur->info).nPayload" (parenthesized_expression "(pCur->info)" ( (field_expression "pCur->info" identifier -> field_identifier) )) . field_identifier) - number_literal) )) + identifier) )) - identifier) )) / identifier)) ;) (if_statement "if (pPVar9 == (Pgno *)0x0) {\nLAB_000a7368:\n        pPVar9 = (Pgno *)(*(code *)(PTR_LAB_0015c6dc + -0x2708))(pPVar9);\n        if (pPVar9 == (Pgno *)0x0) {\n          iVar6 = 7;\n          goto LAB_000a7304;\n        }\n        pCur->aOverflow = pPVar9;\n      }\n      else {\n        iVar6 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();\n        pPVar9 = pCur->aOverflow;\n        if (iVar6 < (int)(uVar13 << 2)) goto LAB_000a7368;\n      }" if (parenthesized_expression "(pPVar9 == (Pgno *)0x0)" ( (binary_expression "pPVar9 == (Pgno *)0x0" identifier == (cast_expression "(Pgno *)0x0" ( (type_descriptor "Pgno *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\nLAB_000a7368:\n        pPVar9 = (Pgno *)(*(code *)(PTR_LAB_0015c6dc + -0x2708))(pPVar9);\n        if (pPVar9 == (Pgno *)0x0) {\n          iVar6 = 7;\n          goto LAB_000a7304;\n        }\n        pCur->aOverflow = pPVar9;\n      }" { (labeled_statement "LAB_000a7368:\n        pPVar9 = (Pgno *)(*(code *)(PTR_LAB_0015c6dc + -0x2708))(pPVar9);" statement_identifier : (expression_statement "pPVar9 = (Pgno *)(*(code *)(PTR_LAB_0015c6dc + -0x2708))(pPVar9);" (assignment_expression "pPVar9 = (Pgno *)(*(code *)(PTR_LAB_0015c6dc + -0x2708))(pPVar9)" identifier = (cast_expression "(Pgno *)(*(code *)(PTR_LAB_0015c6dc + -0x2708))(pPVar9)" ( (type_descriptor "Pgno *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)(PTR_LAB_0015c6dc + -0x2708))(pPVar9)" (parenthesized_expression "(*(code *)(PTR_LAB_0015c6dc + -0x2708))" ( (pointer_expression "*(code *)(PTR_LAB_0015c6dc + -0x2708)" * (cast_expression "(code *)(PTR_LAB_0015c6dc + -0x2708)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015c6dc + -0x2708)" ( (binary_expression "PTR_LAB_0015c6dc + -0x2708" identifier + number_literal) )))) )) (argument_list "(pPVar9)" ( identifier ))))) ;)) (if_statement "if (pPVar9 == (Pgno *)0x0) {\n          iVar6 = 7;\n          goto LAB_000a7304;\n        }" if (parenthesized_expression "(pPVar9 == (Pgno *)0x0)" ( (binary_expression "pPVar9 == (Pgno *)0x0" identifier == (cast_expression "(Pgno *)0x0" ( (type_descriptor "Pgno *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          iVar6 = 7;\n          goto LAB_000a7304;\n        }" { (expression_statement "iVar6 = 7;" (assignment_expression "iVar6 = 7" identifier = number_literal) ;) (goto_statement "goto LAB_000a7304;" goto statement_identifier ;) })) (expression_statement "pCur->aOverflow = pPVar9;" (assignment_expression "pCur->aOverflow = pPVar9" (field_expression "pCur->aOverflow" identifier -> field_identifier) = identifier) ;) }) (else_clause "else {\n        iVar6 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();\n        pPVar9 = pCur->aOverflow;\n        if (iVar6 < (int)(uVar13 << 2)) goto LAB_000a7368;\n      }" else (compound_statement "{\n        iVar6 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();\n        pPVar9 = pCur->aOverflow;\n        if (iVar6 < (int)(uVar13 << 2)) goto LAB_000a7368;\n      }" { (expression_statement "iVar6 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();" (assignment_expression "iVar6 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))()" identifier = (call_expression "(**(code **)(PTR_DAT_0015c5d8 + -0x4da0))()" (parenthesized_expression "(**(code **)(PTR_DAT_0015c5d8 + -0x4da0))" ( (pointer_expression "**(code **)(PTR_DAT_0015c5d8 + -0x4da0)" * (pointer_expression "*(code **)(PTR_DAT_0015c5d8 + -0x4da0)" * (cast_expression "(code **)(PTR_DAT_0015c5d8 + -0x4da0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_0015c5d8 + -0x4da0)" ( (binary_expression "PTR_DAT_0015c5d8 + -0x4da0" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (expression_statement "pPVar9 = pCur->aOverflow;" (assignment_expression "pPVar9 = pCur->aOverflow" identifier = (field_expression "pCur->aOverflow" identifier -> field_identifier)) ;) (if_statement "if (iVar6 < (int)(uVar13 << 2)) goto LAB_000a7368;" if (parenthesized_expression "(iVar6 < (int)(uVar13 << 2))" ( (binary_expression "iVar6 < (int)(uVar13 << 2)" identifier < (cast_expression "(int)(uVar13 << 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar13 << 2)" ( (binary_expression "uVar13 << 2" identifier << number_literal) )))) )) (goto_statement "goto LAB_000a7368;" goto statement_identifier ;)) }))) (expression_statement "(*(code *)PTR_memset_0015c9b8)(pPVar9,0,uVar13 << 2);" (call_expression "(*(code *)PTR_memset_0015c9b8)(pPVar9,0,uVar13 << 2)" (parenthesized_expression "(*(code *)PTR_memset_0015c9b8)" ( (pointer_expression "*(code *)PTR_memset_0015c9b8" * (cast_expression "(code *)PTR_memset_0015c9b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pPVar9,0,uVar13 << 2)" ( identifier , number_literal , (binary_expression "uVar13 << 2" identifier << number_literal) ))) ;) (expression_statement "pCur->curFlags = pCur->curFlags | 4;" (assignment_expression "pCur->curFlags = pCur->curFlags | 4" (field_expression "pCur->curFlags" identifier -> field_identifier) = (binary_expression "pCur->curFlags | 4" (field_expression "pCur->curFlags" identifier -> field_identifier) | number_literal)) ;) }) (else_clause "else {\n      if (uVar19 == 0) {\n        trap(7);\n      }\n      uVar14 = uVar12 / uVar19;\n      uVar13 = uVar12 % uVar19;\n      PVar5 = pPVar9[uVar14];\n      if (pPVar9[uVar14] != 0) goto LAB_000a719c;\n    }" else (compound_statement "{\n      if (uVar19 == 0) {\n        trap(7);\n      }\n      uVar14 = uVar12 / uVar19;\n      uVar13 = uVar12 % uVar19;\n      PVar5 = pPVar9[uVar14];\n      if (pPVar9[uVar14] != 0) goto LAB_000a719c;\n    }" { (if_statement "if (uVar19 == 0) {\n        trap(7);\n      }" if (parenthesized_expression "(uVar19 == 0)" ( (binary_expression "uVar19 == 0" identifier == number_literal) )) (compound_statement "{\n        trap(7);\n      }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) (expression_statement "uVar14 = uVar12 / uVar19;" (assignment_expression "uVar14 = uVar12 / uVar19" identifier = (binary_expression "uVar12 / uVar19" identifier / identifier)) ;) (expression_statement "uVar13 = uVar12 % uVar19;" (assignment_expression "uVar13 = uVar12 % uVar19" identifier = (binary_expression "uVar12 % uVar19" identifier % identifier)) ;) (expression_statement "PVar5 = pPVar9[uVar14];" (assignment_expression "PVar5 = pPVar9[uVar14]" identifier = (subscript_expression "pPVar9[uVar14]" identifier [ identifier ])) ;) (if_statement "if (pPVar9[uVar14] != 0) goto LAB_000a719c;" if (parenthesized_expression "(pPVar9[uVar14] != 0)" ( (binary_expression "pPVar9[uVar14] != 0" (subscript_expression "pPVar9[uVar14]" identifier [ identifier ]) != number_literal) )) (goto_statement "goto LAB_000a719c;" goto statement_identifier ;)) }))) (expression_statement "uVar14 = 0;" (assignment_expression "uVar14 = 0" identifier = number_literal) ;) (if_statement "if (nextPage != 0) {\n      pPVar9 = pCur->aOverflow;\n      uVar13 = uVar12;\n      PVar5 = nextPage;\nLAB_000a719c:\n      nextPage = PVar5;\n      puVar2 = PTR_LAB_0015c708;\n      puVar1 = PTR_LAB_0015c66c;\n      iVar7 = 2;\n      iVar22 = uVar14 + 1;\n      if (eOp != 0) {\n        iVar7 = 0;\n      }\n      pPVar9[uVar14] = nextPage;\n      puVar3 = PTR_LAB_0015c744;\n      uVar12 = amt + uVar13;\n      uVar15 = amt;\n      if (uVar13 < uVar19) goto LAB_000a7220;\n      do {\n        pPVar9 = pCur->aOverflow;\n        uVar13 = uVar13 - uVar19;\n        iVar6 = iVar22;\n        PVar5 = pPVar9[iVar22];\n        if (pPVar9[iVar22] == 0) {\n          iVar6 = (*(code *)(puVar3 + -0x6468))(pBVar16,nextPage,0,&nextPage);\n          goto LAB_000a7268;\n        }\n        while( true ) {\n          nextPage = PVar5;\n          iVar22 = iVar6 + 1;\n          pPVar9[iVar6] = nextPage;\n          if (uVar19 <= uVar13) break;\n          uVar12 = amt + uVar13;\n          uVar15 = amt;\nLAB_000a7220:\n          amt = 0;\n          if (uVar19 < uVar12) {\n            amt = (uVar13 - uVar19) + uVar15;\n            uVar15 = uVar19 - uVar13;\n          }\n          iVar6 = (*pBVar16->pPager->xGet)(pBVar16->pPager,nextPage,&pDbPage,iVar7);\n          pDVar4 = pDbPage;\n          if (iVar6 == 0) {\n            iVar17 = (int)pDbPage->pData + uVar13 + 4;\n                    /* WARNING: Load size is inaccurate */\n            nextPage = *pDbPage->pData;\n            if (eOp == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(pBuf,iVar17,uVar15);\n              uVar13 = 0;\n              (*(code *)(puVar1 + -0x138c))(pDVar4);\n              iVar6 = 0;\n            }\n            else {\n              iVar6 = (*(code *)(puVar2 + -0x30a4))(pDbPage);\n              if (iVar6 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar17,pBuf,uVar15);\n              }\n              uVar13 = 0;\n              if (pDbPage != (DbPage *)0x0) {\n                (*(code *)(puVar1 + -0x138c))(pDbPage);\n              }\n            }\n          }\n          pBuf = pBuf + uVar15;\n          if (amt == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar6 != 0) goto LAB_000a7304;\n          if (nextPage == 0) goto LAB_000a7494;\n          pPVar9 = pCur->aOverflow;\n          iVar6 = iVar22;\n          PVar5 = nextPage;\n        }\n      } while( true );\n    }" if (parenthesized_expression "(nextPage != 0)" ( (binary_expression "nextPage != 0" identifier != number_literal) )) (compound_statement "{\n      pPVar9 = pCur->aOverflow;\n      uVar13 = uVar12;\n      PVar5 = nextPage;\nLAB_000a719c:\n      nextPage = PVar5;\n      puVar2 = PTR_LAB_0015c708;\n      puVar1 = PTR_LAB_0015c66c;\n      iVar7 = 2;\n      iVar22 = uVar14 + 1;\n      if (eOp != 0) {\n        iVar7 = 0;\n      }\n      pPVar9[uVar14] = nextPage;\n      puVar3 = PTR_LAB_0015c744;\n      uVar12 = amt + uVar13;\n      uVar15 = amt;\n      if (uVar13 < uVar19) goto LAB_000a7220;\n      do {\n        pPVar9 = pCur->aOverflow;\n        uVar13 = uVar13 - uVar19;\n        iVar6 = iVar22;\n        PVar5 = pPVar9[iVar22];\n        if (pPVar9[iVar22] == 0) {\n          iVar6 = (*(code *)(puVar3 + -0x6468))(pBVar16,nextPage,0,&nextPage);\n          goto LAB_000a7268;\n        }\n        while( true ) {\n          nextPage = PVar5;\n          iVar22 = iVar6 + 1;\n          pPVar9[iVar6] = nextPage;\n          if (uVar19 <= uVar13) break;\n          uVar12 = amt + uVar13;\n          uVar15 = amt;\nLAB_000a7220:\n          amt = 0;\n          if (uVar19 < uVar12) {\n            amt = (uVar13 - uVar19) + uVar15;\n            uVar15 = uVar19 - uVar13;\n          }\n          iVar6 = (*pBVar16->pPager->xGet)(pBVar16->pPager,nextPage,&pDbPage,iVar7);\n          pDVar4 = pDbPage;\n          if (iVar6 == 0) {\n            iVar17 = (int)pDbPage->pData + uVar13 + 4;\n                    /* WARNING: Load size is inaccurate */\n            nextPage = *pDbPage->pData;\n            if (eOp == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(pBuf,iVar17,uVar15);\n              uVar13 = 0;\n              (*(code *)(puVar1 + -0x138c))(pDVar4);\n              iVar6 = 0;\n            }\n            else {\n              iVar6 = (*(code *)(puVar2 + -0x30a4))(pDbPage);\n              if (iVar6 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar17,pBuf,uVar15);\n              }\n              uVar13 = 0;\n              if (pDbPage != (DbPage *)0x0) {\n                (*(code *)(puVar1 + -0x138c))(pDbPage);\n              }\n            }\n          }\n          pBuf = pBuf + uVar15;\n          if (amt == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar6 != 0) goto LAB_000a7304;\n          if (nextPage == 0) goto LAB_000a7494;\n          pPVar9 = pCur->aOverflow;\n          iVar6 = iVar22;\n          PVar5 = nextPage;\n        }\n      } while( true );\n    }" { (expression_statement "pPVar9 = pCur->aOverflow;" (assignment_expression "pPVar9 = pCur->aOverflow" identifier = (field_expression "pCur->aOverflow" identifier -> field_identifier)) ;) (expression_statement "uVar13 = uVar12;" (assignment_expression "uVar13 = uVar12" identifier = identifier) ;) (expression_statement "PVar5 = nextPage;" (assignment_expression "PVar5 = nextPage" identifier = identifier) ;) (labeled_statement "LAB_000a719c:\n      nextPage = PVar5;" statement_identifier : (expression_statement "nextPage = PVar5;" (assignment_expression "nextPage = PVar5" identifier = identifier) ;)) (expression_statement "puVar2 = PTR_LAB_0015c708;" (assignment_expression "puVar2 = PTR_LAB_0015c708" identifier = identifier) ;) (expression_statement "puVar1 = PTR_LAB_0015c66c;" (assignment_expression "puVar1 = PTR_LAB_0015c66c" identifier = identifier) ;) (expression_statement "iVar7 = 2;" (assignment_expression "iVar7 = 2" identifier = number_literal) ;) (expression_statement "iVar22 = uVar14 + 1;" (assignment_expression "iVar22 = uVar14 + 1" identifier = (binary_expression "uVar14 + 1" identifier + number_literal)) ;) (if_statement "if (eOp != 0) {\n        iVar7 = 0;\n      }" if (parenthesized_expression "(eOp != 0)" ( (binary_expression "eOp != 0" identifier != number_literal) )) (compound_statement "{\n        iVar7 = 0;\n      }" { (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) })) (expression_statement "pPVar9[uVar14] = nextPage;" (assignment_expression "pPVar9[uVar14] = nextPage" (subscript_expression "pPVar9[uVar14]" identifier [ identifier ]) = identifier) ;) (expression_statement "puVar3 = PTR_LAB_0015c744;" (assignment_expression "puVar3 = PTR_LAB_0015c744" identifier = identifier) ;) (expression_statement "uVar12 = amt + uVar13;" (assignment_expression "uVar12 = amt + uVar13" identifier = (binary_expression "amt + uVar13" identifier + identifier)) ;) (expression_statement "uVar15 = amt;" (assignment_expression "uVar15 = amt" identifier = identifier) ;) (if_statement "if (uVar13 < uVar19) goto LAB_000a7220;" if (parenthesized_expression "(uVar13 < uVar19)" ( (binary_expression "uVar13 < uVar19" identifier < identifier) )) (goto_statement "goto LAB_000a7220;" goto statement_identifier ;)) (do_statement "do {\n        pPVar9 = pCur->aOverflow;\n        uVar13 = uVar13 - uVar19;\n        iVar6 = iVar22;\n        PVar5 = pPVar9[iVar22];\n        if (pPVar9[iVar22] == 0) {\n          iVar6 = (*(code *)(puVar3 + -0x6468))(pBVar16,nextPage,0,&nextPage);\n          goto LAB_000a7268;\n        }\n        while( true ) {\n          nextPage = PVar5;\n          iVar22 = iVar6 + 1;\n          pPVar9[iVar6] = nextPage;\n          if (uVar19 <= uVar13) break;\n          uVar12 = amt + uVar13;\n          uVar15 = amt;\nLAB_000a7220:\n          amt = 0;\n          if (uVar19 < uVar12) {\n            amt = (uVar13 - uVar19) + uVar15;\n            uVar15 = uVar19 - uVar13;\n          }\n          iVar6 = (*pBVar16->pPager->xGet)(pBVar16->pPager,nextPage,&pDbPage,iVar7);\n          pDVar4 = pDbPage;\n          if (iVar6 == 0) {\n            iVar17 = (int)pDbPage->pData + uVar13 + 4;\n                    /* WARNING: Load size is inaccurate */\n            nextPage = *pDbPage->pData;\n            if (eOp == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(pBuf,iVar17,uVar15);\n              uVar13 = 0;\n              (*(code *)(puVar1 + -0x138c))(pDVar4);\n              iVar6 = 0;\n            }\n            else {\n              iVar6 = (*(code *)(puVar2 + -0x30a4))(pDbPage);\n              if (iVar6 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar17,pBuf,uVar15);\n              }\n              uVar13 = 0;\n              if (pDbPage != (DbPage *)0x0) {\n                (*(code *)(puVar1 + -0x138c))(pDbPage);\n              }\n            }\n          }\n          pBuf = pBuf + uVar15;\n          if (amt == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar6 != 0) goto LAB_000a7304;\n          if (nextPage == 0) goto LAB_000a7494;\n          pPVar9 = pCur->aOverflow;\n          iVar6 = iVar22;\n          PVar5 = nextPage;\n        }\n      } while( true );" do (compound_statement "{\n        pPVar9 = pCur->aOverflow;\n        uVar13 = uVar13 - uVar19;\n        iVar6 = iVar22;\n        PVar5 = pPVar9[iVar22];\n        if (pPVar9[iVar22] == 0) {\n          iVar6 = (*(code *)(puVar3 + -0x6468))(pBVar16,nextPage,0,&nextPage);\n          goto LAB_000a7268;\n        }\n        while( true ) {\n          nextPage = PVar5;\n          iVar22 = iVar6 + 1;\n          pPVar9[iVar6] = nextPage;\n          if (uVar19 <= uVar13) break;\n          uVar12 = amt + uVar13;\n          uVar15 = amt;\nLAB_000a7220:\n          amt = 0;\n          if (uVar19 < uVar12) {\n            amt = (uVar13 - uVar19) + uVar15;\n            uVar15 = uVar19 - uVar13;\n          }\n          iVar6 = (*pBVar16->pPager->xGet)(pBVar16->pPager,nextPage,&pDbPage,iVar7);\n          pDVar4 = pDbPage;\n          if (iVar6 == 0) {\n            iVar17 = (int)pDbPage->pData + uVar13 + 4;\n                    /* WARNING: Load size is inaccurate */\n            nextPage = *pDbPage->pData;\n            if (eOp == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(pBuf,iVar17,uVar15);\n              uVar13 = 0;\n              (*(code *)(puVar1 + -0x138c))(pDVar4);\n              iVar6 = 0;\n            }\n            else {\n              iVar6 = (*(code *)(puVar2 + -0x30a4))(pDbPage);\n              if (iVar6 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar17,pBuf,uVar15);\n              }\n              uVar13 = 0;\n              if (pDbPage != (DbPage *)0x0) {\n                (*(code *)(puVar1 + -0x138c))(pDbPage);\n              }\n            }\n          }\n          pBuf = pBuf + uVar15;\n          if (amt == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar6 != 0) goto LAB_000a7304;\n          if (nextPage == 0) goto LAB_000a7494;\n          pPVar9 = pCur->aOverflow;\n          iVar6 = iVar22;\n          PVar5 = nextPage;\n        }\n      }" { (expression_statement "pPVar9 = pCur->aOverflow;" (assignment_expression "pPVar9 = pCur->aOverflow" identifier = (field_expression "pCur->aOverflow" identifier -> field_identifier)) ;) (expression_statement "uVar13 = uVar13 - uVar19;" (assignment_expression "uVar13 = uVar13 - uVar19" identifier = (binary_expression "uVar13 - uVar19" identifier - identifier)) ;) (expression_statement "iVar6 = iVar22;" (assignment_expression "iVar6 = iVar22" identifier = identifier) ;) (expression_statement "PVar5 = pPVar9[iVar22];" (assignment_expression "PVar5 = pPVar9[iVar22]" identifier = (subscript_expression "pPVar9[iVar22]" identifier [ identifier ])) ;) (if_statement "if (pPVar9[iVar22] == 0) {\n          iVar6 = (*(code *)(puVar3 + -0x6468))(pBVar16,nextPage,0,&nextPage);\n          goto LAB_000a7268;\n        }" if (parenthesized_expression "(pPVar9[iVar22] == 0)" ( (binary_expression "pPVar9[iVar22] == 0" (subscript_expression "pPVar9[iVar22]" identifier [ identifier ]) == number_literal) )) (compound_statement "{\n          iVar6 = (*(code *)(puVar3 + -0x6468))(pBVar16,nextPage,0,&nextPage);\n          goto LAB_000a7268;\n        }" { (expression_statement "iVar6 = (*(code *)(puVar3 + -0x6468))(pBVar16,nextPage,0,&nextPage);" (assignment_expression "iVar6 = (*(code *)(puVar3 + -0x6468))(pBVar16,nextPage,0,&nextPage)" identifier = (call_expression "(*(code *)(puVar3 + -0x6468))(pBVar16,nextPage,0,&nextPage)" (parenthesized_expression "(*(code *)(puVar3 + -0x6468))" ( (pointer_expression "*(code *)(puVar3 + -0x6468)" * (cast_expression "(code *)(puVar3 + -0x6468)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + -0x6468)" ( (binary_expression "puVar3 + -0x6468" identifier + number_literal) )))) )) (argument_list "(pBVar16,nextPage,0,&nextPage)" ( identifier , identifier , number_literal , (pointer_expression "&nextPage" & identifier) )))) ;) (goto_statement "goto LAB_000a7268;" goto statement_identifier ;) })) (while_statement "while( true ) {\n          nextPage = PVar5;\n          iVar22 = iVar6 + 1;\n          pPVar9[iVar6] = nextPage;\n          if (uVar19 <= uVar13) break;\n          uVar12 = amt + uVar13;\n          uVar15 = amt;\nLAB_000a7220:\n          amt = 0;\n          if (uVar19 < uVar12) {\n            amt = (uVar13 - uVar19) + uVar15;\n            uVar15 = uVar19 - uVar13;\n          }\n          iVar6 = (*pBVar16->pPager->xGet)(pBVar16->pPager,nextPage,&pDbPage,iVar7);\n          pDVar4 = pDbPage;\n          if (iVar6 == 0) {\n            iVar17 = (int)pDbPage->pData + uVar13 + 4;\n                    /* WARNING: Load size is inaccurate */\n            nextPage = *pDbPage->pData;\n            if (eOp == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(pBuf,iVar17,uVar15);\n              uVar13 = 0;\n              (*(code *)(puVar1 + -0x138c))(pDVar4);\n              iVar6 = 0;\n            }\n            else {\n              iVar6 = (*(code *)(puVar2 + -0x30a4))(pDbPage);\n              if (iVar6 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar17,pBuf,uVar15);\n              }\n              uVar13 = 0;\n              if (pDbPage != (DbPage *)0x0) {\n                (*(code *)(puVar1 + -0x138c))(pDbPage);\n              }\n            }\n          }\n          pBuf = pBuf + uVar15;\n          if (amt == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar6 != 0) goto LAB_000a7304;\n          if (nextPage == 0) goto LAB_000a7494;\n          pPVar9 = pCur->aOverflow;\n          iVar6 = iVar22;\n          PVar5 = nextPage;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          nextPage = PVar5;\n          iVar22 = iVar6 + 1;\n          pPVar9[iVar6] = nextPage;\n          if (uVar19 <= uVar13) break;\n          uVar12 = amt + uVar13;\n          uVar15 = amt;\nLAB_000a7220:\n          amt = 0;\n          if (uVar19 < uVar12) {\n            amt = (uVar13 - uVar19) + uVar15;\n            uVar15 = uVar19 - uVar13;\n          }\n          iVar6 = (*pBVar16->pPager->xGet)(pBVar16->pPager,nextPage,&pDbPage,iVar7);\n          pDVar4 = pDbPage;\n          if (iVar6 == 0) {\n            iVar17 = (int)pDbPage->pData + uVar13 + 4;\n                    /* WARNING: Load size is inaccurate */\n            nextPage = *pDbPage->pData;\n            if (eOp == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(pBuf,iVar17,uVar15);\n              uVar13 = 0;\n              (*(code *)(puVar1 + -0x138c))(pDVar4);\n              iVar6 = 0;\n            }\n            else {\n              iVar6 = (*(code *)(puVar2 + -0x30a4))(pDbPage);\n              if (iVar6 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar17,pBuf,uVar15);\n              }\n              uVar13 = 0;\n              if (pDbPage != (DbPage *)0x0) {\n                (*(code *)(puVar1 + -0x138c))(pDbPage);\n              }\n            }\n          }\n          pBuf = pBuf + uVar15;\n          if (amt == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar6 != 0) goto LAB_000a7304;\n          if (nextPage == 0) goto LAB_000a7494;\n          pPVar9 = pCur->aOverflow;\n          iVar6 = iVar22;\n          PVar5 = nextPage;\n        }" { (expression_statement "nextPage = PVar5;" (assignment_expression "nextPage = PVar5" identifier = identifier) ;) (expression_statement "iVar22 = iVar6 + 1;" (assignment_expression "iVar22 = iVar6 + 1" identifier = (binary_expression "iVar6 + 1" identifier + number_literal)) ;) (expression_statement "pPVar9[iVar6] = nextPage;" (assignment_expression "pPVar9[iVar6] = nextPage" (subscript_expression "pPVar9[iVar6]" identifier [ identifier ]) = identifier) ;) (if_statement "if (uVar19 <= uVar13) break;" if (parenthesized_expression "(uVar19 <= uVar13)" ( (binary_expression "uVar19 <= uVar13" identifier <= identifier) )) (break_statement "break;" break ;)) (expression_statement "uVar12 = amt + uVar13;" (assignment_expression "uVar12 = amt + uVar13" identifier = (binary_expression "amt + uVar13" identifier + identifier)) ;) (expression_statement "uVar15 = amt;" (assignment_expression "uVar15 = amt" identifier = identifier) ;) (labeled_statement "LAB_000a7220:\n          amt = 0;" statement_identifier : (expression_statement "amt = 0;" (assignment_expression "amt = 0" identifier = number_literal) ;)) (if_statement "if (uVar19 < uVar12) {\n            amt = (uVar13 - uVar19) + uVar15;\n            uVar15 = uVar19 - uVar13;\n          }" if (parenthesized_expression "(uVar19 < uVar12)" ( (binary_expression "uVar19 < uVar12" identifier < identifier) )) (compound_statement "{\n            amt = (uVar13 - uVar19) + uVar15;\n            uVar15 = uVar19 - uVar13;\n          }" { (expression_statement "amt = (uVar13 - uVar19) + uVar15;" (assignment_expression "amt = (uVar13 - uVar19) + uVar15" identifier = (binary_expression "(uVar13 - uVar19) + uVar15" (parenthesized_expression "(uVar13 - uVar19)" ( (binary_expression "uVar13 - uVar19" identifier - identifier) )) + identifier)) ;) (expression_statement "uVar15 = uVar19 - uVar13;" (assignment_expression "uVar15 = uVar19 - uVar13" identifier = (binary_expression "uVar19 - uVar13" identifier - identifier)) ;) })) (expression_statement "iVar6 = (*pBVar16->pPager->xGet)(pBVar16->pPager,nextPage,&pDbPage,iVar7);" (assignment_expression "iVar6 = (*pBVar16->pPager->xGet)(pBVar16->pPager,nextPage,&pDbPage,iVar7)" identifier = (call_expression "(*pBVar16->pPager->xGet)(pBVar16->pPager,nextPage,&pDbPage,iVar7)" (parenthesized_expression "(*pBVar16->pPager->xGet)" ( (pointer_expression "*pBVar16->pPager->xGet" * (field_expression "pBVar16->pPager->xGet" (field_expression "pBVar16->pPager" identifier -> field_identifier) -> field_identifier)) )) (argument_list "(pBVar16->pPager,nextPage,&pDbPage,iVar7)" ( (field_expression "pBVar16->pPager" identifier -> field_identifier) , identifier , (pointer_expression "&pDbPage" & identifier) , identifier )))) ;) (expression_statement "pDVar4 = pDbPage;" (assignment_expression "pDVar4 = pDbPage" identifier = identifier) ;) (if_statement "if (iVar6 == 0) {\n            iVar17 = (int)pDbPage->pData + uVar13 + 4;\n                    /* WARNING: Load size is inaccurate */\n            nextPage = *pDbPage->pData;\n            if (eOp == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(pBuf,iVar17,uVar15);\n              uVar13 = 0;\n              (*(code *)(puVar1 + -0x138c))(pDVar4);\n              iVar6 = 0;\n            }\n            else {\n              iVar6 = (*(code *)(puVar2 + -0x30a4))(pDbPage);\n              if (iVar6 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar17,pBuf,uVar15);\n              }\n              uVar13 = 0;\n              if (pDbPage != (DbPage *)0x0) {\n                (*(code *)(puVar1 + -0x138c))(pDbPage);\n              }\n            }\n          }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n            iVar17 = (int)pDbPage->pData + uVar13 + 4;\n                    /* WARNING: Load size is inaccurate */\n            nextPage = *pDbPage->pData;\n            if (eOp == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(pBuf,iVar17,uVar15);\n              uVar13 = 0;\n              (*(code *)(puVar1 + -0x138c))(pDVar4);\n              iVar6 = 0;\n            }\n            else {\n              iVar6 = (*(code *)(puVar2 + -0x30a4))(pDbPage);\n              if (iVar6 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar17,pBuf,uVar15);\n              }\n              uVar13 = 0;\n              if (pDbPage != (DbPage *)0x0) {\n                (*(code *)(puVar1 + -0x138c))(pDbPage);\n              }\n            }\n          }" { (expression_statement "iVar17 = (int)pDbPage->pData + uVar13 + 4;" (assignment_expression "iVar17 = (int)pDbPage->pData + uVar13 + 4" identifier = (binary_expression "(int)pDbPage->pData + uVar13 + 4" (binary_expression "(int)pDbPage->pData + uVar13" (cast_expression "(int)pDbPage->pData" ( (type_descriptor "int" primitive_type) ) (field_expression "pDbPage->pData" identifier -> field_identifier)) + identifier) + number_literal)) ;) comment (expression_statement "nextPage = *pDbPage->pData;" (assignment_expression "nextPage = *pDbPage->pData" identifier = (pointer_expression "*pDbPage->pData" * (field_expression "pDbPage->pData" identifier -> field_identifier))) ;) (if_statement "if (eOp == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(pBuf,iVar17,uVar15);\n              uVar13 = 0;\n              (*(code *)(puVar1 + -0x138c))(pDVar4);\n              iVar6 = 0;\n            }\n            else {\n              iVar6 = (*(code *)(puVar2 + -0x30a4))(pDbPage);\n              if (iVar6 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar17,pBuf,uVar15);\n              }\n              uVar13 = 0;\n              if (pDbPage != (DbPage *)0x0) {\n                (*(code *)(puVar1 + -0x138c))(pDbPage);\n              }\n            }" if (parenthesized_expression "(eOp == 0)" ( (binary_expression "eOp == 0" identifier == number_literal) )) (compound_statement "{\n              (*(code *)PTR_memcpy_0015ca34)(pBuf,iVar17,uVar15);\n              uVar13 = 0;\n              (*(code *)(puVar1 + -0x138c))(pDVar4);\n              iVar6 = 0;\n            }" { (expression_statement "(*(code *)PTR_memcpy_0015ca34)(pBuf,iVar17,uVar15);" (call_expression "(*(code *)PTR_memcpy_0015ca34)(pBuf,iVar17,uVar15)" (parenthesized_expression "(*(code *)PTR_memcpy_0015ca34)" ( (pointer_expression "*(code *)PTR_memcpy_0015ca34" * (cast_expression "(code *)PTR_memcpy_0015ca34" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pBuf,iVar17,uVar15)" ( identifier , identifier , identifier ))) ;) (expression_statement "uVar13 = 0;" (assignment_expression "uVar13 = 0" identifier = number_literal) ;) (expression_statement "(*(code *)(puVar1 + -0x138c))(pDVar4);" (call_expression "(*(code *)(puVar1 + -0x138c))(pDVar4)" (parenthesized_expression "(*(code *)(puVar1 + -0x138c))" ( (pointer_expression "*(code *)(puVar1 + -0x138c)" * (cast_expression "(code *)(puVar1 + -0x138c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0x138c)" ( (binary_expression "puVar1 + -0x138c" identifier + number_literal) )))) )) (argument_list "(pDVar4)" ( identifier ))) ;) (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) }) (else_clause "else {\n              iVar6 = (*(code *)(puVar2 + -0x30a4))(pDbPage);\n              if (iVar6 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar17,pBuf,uVar15);\n              }\n              uVar13 = 0;\n              if (pDbPage != (DbPage *)0x0) {\n                (*(code *)(puVar1 + -0x138c))(pDbPage);\n              }\n            }" else (compound_statement "{\n              iVar6 = (*(code *)(puVar2 + -0x30a4))(pDbPage);\n              if (iVar6 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar17,pBuf,uVar15);\n              }\n              uVar13 = 0;\n              if (pDbPage != (DbPage *)0x0) {\n                (*(code *)(puVar1 + -0x138c))(pDbPage);\n              }\n            }" { (expression_statement "iVar6 = (*(code *)(puVar2 + -0x30a4))(pDbPage);" (assignment_expression "iVar6 = (*(code *)(puVar2 + -0x30a4))(pDbPage)" identifier = (call_expression "(*(code *)(puVar2 + -0x30a4))(pDbPage)" (parenthesized_expression "(*(code *)(puVar2 + -0x30a4))" ( (pointer_expression "*(code *)(puVar2 + -0x30a4)" * (cast_expression "(code *)(puVar2 + -0x30a4)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x30a4)" ( (binary_expression "puVar2 + -0x30a4" identifier + number_literal) )))) )) (argument_list "(pDbPage)" ( identifier )))) ;) (if_statement "if (iVar6 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar17,pBuf,uVar15);\n              }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n                (*(code *)PTR_memcpy_0015ca34)(iVar17,pBuf,uVar15);\n              }" { (expression_statement "(*(code *)PTR_memcpy_0015ca34)(iVar17,pBuf,uVar15);" (call_expression "(*(code *)PTR_memcpy_0015ca34)(iVar17,pBuf,uVar15)" (parenthesized_expression "(*(code *)PTR_memcpy_0015ca34)" ( (pointer_expression "*(code *)PTR_memcpy_0015ca34" * (cast_expression "(code *)PTR_memcpy_0015ca34" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar17,pBuf,uVar15)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "uVar13 = 0;" (assignment_expression "uVar13 = 0" identifier = number_literal) ;) (if_statement "if (pDbPage != (DbPage *)0x0) {\n                (*(code *)(puVar1 + -0x138c))(pDbPage);\n              }" if (parenthesized_expression "(pDbPage != (DbPage *)0x0)" ( (binary_expression "pDbPage != (DbPage *)0x0" identifier != (cast_expression "(DbPage *)0x0" ( (type_descriptor "DbPage *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                (*(code *)(puVar1 + -0x138c))(pDbPage);\n              }" { (expression_statement "(*(code *)(puVar1 + -0x138c))(pDbPage);" (call_expression "(*(code *)(puVar1 + -0x138c))(pDbPage)" (parenthesized_expression "(*(code *)(puVar1 + -0x138c))" ( (pointer_expression "*(code *)(puVar1 + -0x138c)" * (cast_expression "(code *)(puVar1 + -0x138c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0x138c)" ( (binary_expression "puVar1 + -0x138c" identifier + number_literal) )))) )) (argument_list "(pDbPage)" ( identifier ))) ;) })) }))) })) (expression_statement "pBuf = pBuf + uVar15;" (assignment_expression "pBuf = pBuf + uVar15" identifier = (binary_expression "pBuf + uVar15" identifier + identifier)) ;) (if_statement "if (amt == 0) goto LAB_000a7304;" if (parenthesized_expression "(amt == 0)" ( (binary_expression "amt == 0" identifier == number_literal) )) (goto_statement "goto LAB_000a7304;" goto statement_identifier ;)) (labeled_statement "LAB_000a7268:\n          if (iVar6 != 0) goto LAB_000a7304;" statement_identifier : (if_statement "if (iVar6 != 0) goto LAB_000a7304;" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000a7304;" goto statement_identifier ;))) (if_statement "if (nextPage == 0) goto LAB_000a7494;" if (parenthesized_expression "(nextPage == 0)" ( (binary_expression "nextPage == 0" identifier == number_literal) )) (goto_statement "goto LAB_000a7494;" goto statement_identifier ;)) (expression_statement "pPVar9 = pCur->aOverflow;" (assignment_expression "pPVar9 = pCur->aOverflow" identifier = (field_expression "pCur->aOverflow" identifier -> field_identifier)) ;) (expression_statement "iVar6 = iVar22;" (assignment_expression "iVar6 = iVar22" identifier = identifier) ;) (expression_statement "PVar5 = nextPage;" (assignment_expression "PVar5 = nextPage" identifier = identifier) ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })) (labeled_statement "LAB_000a7494:\n    uVar10 = 0x1094f;" statement_identifier : (expression_statement "uVar10 = 0x1094f;" (assignment_expression "uVar10 = 0x1094f" identifier = number_literal) ;)) }))) (expression_statement "iVar6 = (*(code *)(PTR_LAB_0015c744 + -0x6c90))(uVar10);" (assignment_expression "iVar6 = (*(code *)(PTR_LAB_0015c744 + -0x6c90))(uVar10)" identifier = (call_expression "(*(code *)(PTR_LAB_0015c744 + -0x6c90))(uVar10)" (parenthesized_expression "(*(code *)(PTR_LAB_0015c744 + -0x6c90))" ( (pointer_expression "*(code *)(PTR_LAB_0015c744 + -0x6c90)" * (cast_expression "(code *)(PTR_LAB_0015c744 + -0x6c90)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015c744 + -0x6c90)" ( (binary_expression "PTR_LAB_0015c744 + -0x6c90" identifier + number_literal) )))) )) (argument_list "(uVar10)" ( identifier )))) ;) (labeled_statement "LAB_000a7304:\n  if (pBStack_2c == *(BtCursor **)puVar21) {\n    return iVar6;\n  }" statement_identifier : (if_statement "if (pBStack_2c == *(BtCursor **)puVar21) {\n    return iVar6;\n  }" if (parenthesized_expression "(pBStack_2c == *(BtCursor **)puVar21)" ( (binary_expression "pBStack_2c == *(BtCursor **)puVar21" identifier == (pointer_expression "*(BtCursor **)puVar21" * (cast_expression "(BtCursor **)puVar21" ( (type_descriptor "BtCursor **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return iVar6;\n  }" { (return_statement "return iVar6;" return identifier ;) }))) (expression_statement "pCur_00 = pBStack_2c;" (assignment_expression "pCur_00 = pBStack_2c" identifier = identifier) ;) (expression_statement "puVar21 = PTR___stack_chk_fail_0015ca14;" (assignment_expression "puVar21 = PTR___stack_chk_fail_0015ca14" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0015ca14)();" (call_expression "(*(code *)PTR___stack_chk_fail_0015ca14)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0015ca14)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0015ca14" * (cast_expression "(code *)PTR___stack_chk_fail_0015ca14" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "(*(code *)(*(int *)(puVar21 + 0xb51b8) + -0xc70))();" (call_expression "(*(code *)(*(int *)(puVar21 + 0xb51b8) + -0xc70))()" (parenthesized_expression "(*(code *)(*(int *)(puVar21 + 0xb51b8) + -0xc70))" ( (pointer_expression "*(code *)(*(int *)(puVar21 + 0xb51b8) + -0xc70)" * (cast_expression "(code *)(*(int *)(puVar21 + 0xb51b8) + -0xc70)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar21 + 0xb51b8) + -0xc70)" ( (binary_expression "*(int *)(puVar21 + 0xb51b8) + -0xc70" (pointer_expression "*(int *)(puVar21 + 0xb51b8)" * (cast_expression "(int *)(puVar21 + 0xb51b8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar21 + 0xb51b8)" ( (binary_expression "puVar21 + 0xb51b8" identifier + number_literal) )))) + number_literal) )))) )) (argument_list "()" ( ))) ;) (expression_statement "uVar12 = (pCur_00->info).nPayload;" (assignment_expression "uVar12 = (pCur_00->info).nPayload" identifier = (field_expression "(pCur_00->info).nPayload" (parenthesized_expression "(pCur_00->info)" ( (field_expression "pCur_00->info" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "*(undefined4 *)&pCur_00->nKey = 0;" (assignment_expression "*(undefined4 *)&pCur_00->nKey = 0" (pointer_expression "*(undefined4 *)&pCur_00->nKey" * (cast_expression "(undefined4 *)&pCur_00->nKey" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pCur_00->nKey" & (field_expression "pCur_00->nKey" identifier -> field_identifier)))) = number_literal) ;) (expression_statement "*(uint *)((int)&pCur_00->nKey + 4) = uVar12;" (assignment_expression "*(uint *)((int)&pCur_00->nKey + 4) = uVar12" (pointer_expression "*(uint *)((int)&pCur_00->nKey + 4)" * (cast_expression "(uint *)((int)&pCur_00->nKey + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)&pCur_00->nKey + 4)" ( (binary_expression "(int)&pCur_00->nKey + 4" (cast_expression "(int)&pCur_00->nKey" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&pCur_00->nKey" & (field_expression "pCur_00->nKey" identifier -> field_identifier))) + number_literal) )))) = identifier) ;) (expression_statement "puVar8 = (uchar *)(*(code *)(*(int *)(puVar21 + 0xb5228) + -0x5370))(uVar12 + 0x11 < uVar12);" (assignment_expression "puVar8 = (uchar *)(*(code *)(*(int *)(puVar21 + 0xb5228) + -0x5370))(uVar12 + 0x11 < uVar12)" identifier = (cast_expression "(uchar *)(*(code *)(*(int *)(puVar21 + 0xb5228) + -0x5370))(uVar12 + 0x11 < uVar12)" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)(*(int *)(puVar21 + 0xb5228) + -0x5370))(uVar12 + 0x11 < uVar12)" (parenthesized_expression "(*(code *)(*(int *)(puVar21 + 0xb5228) + -0x5370))" ( (pointer_expression "*(code *)(*(int *)(puVar21 + 0xb5228) + -0x5370)" * (cast_expression "(code *)(*(int *)(puVar21 + 0xb5228) + -0x5370)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar21 + 0xb5228) + -0x5370)" ( (binary_expression "*(int *)(puVar21 + 0xb5228) + -0x5370" (pointer_expression "*(int *)(puVar21 + 0xb5228)" * (cast_expression "(int *)(puVar21 + 0xb5228)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar21 + 0xb5228)" ( (binary_expression "puVar21 + 0xb5228" identifier + number_literal) )))) + number_literal) )))) )) (argument_list "(uVar12 + 0x11 < uVar12)" ( (binary_expression "uVar12 + 0x11 < uVar12" (binary_expression "uVar12 + 0x11" identifier + number_literal) < identifier) ))))) ;) (if_statement "if (puVar8 == (uchar *)0x0) {\n    return 7;\n  }" if (parenthesized_expression "(puVar8 == (uchar *)0x0)" ( (binary_expression "puVar8 == (uchar *)0x0" identifier == (cast_expression "(uchar *)0x0" ( (type_descriptor "uchar *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return 7;\n  }" { (return_statement "return 7;" return number_literal ;) })) (expression_statement "iVar6 = accessPayload(pCur_00,0,(u32)pCur_00->nKey,puVar8,0);" (assignment_expression "iVar6 = accessPayload(pCur_00,0,(u32)pCur_00->nKey,puVar8,0)" identifier = (call_expression "accessPayload(pCur_00,0,(u32)pCur_00->nKey,puVar8,0)" identifier (argument_list "(pCur_00,0,(u32)pCur_00->nKey,puVar8,0)" ( identifier , number_literal , (cast_expression "(u32)pCur_00->nKey" ( (type_descriptor "u32" type_identifier) ) (field_expression "pCur_00->nKey" identifier -> field_identifier)) , identifier , number_literal )))) ;) (if_statement "if (iVar6 == 0) {\n    (**(code **)(puVar21 + 0xb5504))(puVar8 + (int)pCur_00->nKey,0,0x11);\n    pCur_00->pKey = puVar8;\n    return 0;\n  }" if (parenthesized_expression "(iVar6 == 0)" ( (binary_expression "iVar6 == 0" identifier == number_literal) )) (compound_statement "{\n    (**(code **)(puVar21 + 0xb5504))(puVar8 + (int)pCur_00->nKey,0,0x11);\n    pCur_00->pKey = puVar8;\n    return 0;\n  }" { (expression_statement "(**(code **)(puVar21 + 0xb5504))(puVar8 + (int)pCur_00->nKey,0,0x11);" (call_expression "(**(code **)(puVar21 + 0xb5504))(puVar8 + (int)pCur_00->nKey,0,0x11)" (parenthesized_expression "(**(code **)(puVar21 + 0xb5504))" ( (pointer_expression "**(code **)(puVar21 + 0xb5504)" * (pointer_expression "*(code **)(puVar21 + 0xb5504)" * (cast_expression "(code **)(puVar21 + 0xb5504)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar21 + 0xb5504)" ( (binary_expression "puVar21 + 0xb5504" identifier + number_literal) ))))) )) (argument_list "(puVar8 + (int)pCur_00->nKey,0,0x11)" ( (binary_expression "puVar8 + (int)pCur_00->nKey" identifier + (cast_expression "(int)pCur_00->nKey" ( (type_descriptor "int" primitive_type) ) (field_expression "pCur_00->nKey" identifier -> field_identifier))) , number_literal , number_literal ))) ;) (expression_statement "pCur_00->pKey = puVar8;" (assignment_expression "pCur_00->pKey = puVar8" (field_expression "pCur_00->pKey" identifier -> field_identifier) = identifier) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "(**(code **)(puVar21 + 0xb5138))(puVar8);" (call_expression "(**(code **)(puVar21 + 0xb5138))(puVar8)" (parenthesized_expression "(**(code **)(puVar21 + 0xb5138))" ( (pointer_expression "**(code **)(puVar21 + 0xb5138)" * (pointer_expression "*(code **)(puVar21 + 0xb5138)" * (cast_expression "(code **)(puVar21 + 0xb5138)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar21 + 0xb5138)" ( (binary_expression "puVar21 + 0xb5138" identifier + number_literal) ))))) )) (argument_list "(puVar8)" ( identifier ))) ;) (return_statement "return iVar6;" return identifier ;) })))
(translation_unit "int FUN_000a7054(int param_1,uint param_2,int param_3,int param_4,int param_5)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  uint uVar6;\n  int iVar7;\n  uint uVar8;\n  int *piVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  undefined *puVar13;\n  uint uVar14;\n  int local_34;\n  int local_30;\n  int local_2c;\n  \n  puVar13 = PTR___stack_chk_guard_0015ca30;\n  iVar12 = *(int *)(param_1 + 0x74);\n  local_2c = *(int *)PTR___stack_chk_guard_0015ca30;\n  piVar9 = *(int **)(param_1 + 0x14);\n  (*(code *)(PTR_LAB_0015c66c + -0xc70))();\n  iVar11 = *(int *)(param_1 + 0x28);\n  uVar6 = (uint)*(ushort *)(param_1 + 0x30);\n  if (piVar9[9] - uVar6 < (uint)(iVar11 - *(int *)(iVar12 + 0x38))) {\n    uVar4 = 0x108be;\n  }\n  else {\n    if (param_2 < uVar6) {\n      if (uVar6 < param_2 + param_3) {\n        iVar5 = uVar6 - param_2;\n        if (param_5 != 0) goto LAB_000a7298;\nLAB_000a7354:\n        iVar7 = param_4;\n        iVar10 = iVar11 + param_2;\n      }\n      else {\n        iVar5 = param_3;\n        if (param_5 == 0) goto LAB_000a7354;\nLAB_000a7298:\n        iVar7 = iVar11 + param_2;\n        iVar12 = FUN_0009cf5c(*(undefined4 *)(iVar12 + 0x48));\n        iVar10 = param_4;\n        if (iVar12 != 0) goto LAB_000a7304;\n      }\n      param_3 = param_3 - iVar5;\n      (*(code *)PTR_memcpy_0015ca34)(iVar7,iVar10,iVar5);\n      param_4 = param_4 + iVar5;\n      param_2 = 0;\n      if (param_3 == 0) goto LAB_000a72dc;\n    }\n    else {\n      param_2 = param_2 - uVar6;\n      if (param_3 == 0) {\nLAB_000a72dc:\n        iVar12 = 0;\n        goto LAB_000a7304;\n      }\n    }\n    iVar12 = *(int *)(param_1 + 0xc);\n    uVar6 = piVar9[9] - 4;\n    local_34 = *(int *)(iVar11 + (uint)*(ushort *)(param_1 + 0x30));\n    if ((*(byte *)(param_1 + 1) & 4) == 0) {\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar14 = ((*(int *)(param_1 + 0x2c) + -1 + uVar6) - (uint)*(ushort *)(param_1 + 0x30)) / uVar6\n      ;\n      if (iVar12 == 0) {\nLAB_000a7368:\n        iVar12 = (*(code *)(PTR_LAB_0015c6dc + -0x2708))(iVar12);\n        if (iVar12 == 0) {\n          iVar12 = 7;\n          goto LAB_000a7304;\n        }\n        *(int *)(param_1 + 0xc) = iVar12;\n      }\n      else {\n        iVar11 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();\n        iVar12 = *(int *)(param_1 + 0xc);\n        if (iVar11 < (int)(uVar14 << 2)) goto LAB_000a7368;\n      }\n      (*(code *)PTR_memset_0015c9b8)(iVar12,0,uVar14 << 2);\n      *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) | 4;\n    }\n    else {\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar8 = param_2 / uVar6;\n      uVar14 = param_2 % uVar6;\n      iVar11 = *(int *)(iVar12 + uVar8 * 4);\n      if (iVar11 != 0) goto LAB_000a719c;\n    }\n    uVar8 = 0;\n    if (local_34 != 0) {\n      iVar12 = *(int *)(param_1 + 0xc);\n      uVar14 = param_2;\n      iVar11 = local_34;\nLAB_000a719c:\n      local_34 = iVar11;\n      puVar2 = PTR_DAT_0015c708;\n      puVar1 = PTR_LAB_0015c66c;\n      uVar4 = 2;\n      iVar11 = uVar8 + 1;\n      if (param_5 != 0) {\n        uVar4 = 0;\n      }\n      iVar7 = iVar11 * 4;\n      *(int *)(iVar12 + iVar7 + -4) = local_34;\n      puVar3 = PTR_LAB_0015c744;\n      uVar8 = param_3 + uVar14;\n      iVar5 = param_3;\n      if (uVar14 < uVar6) goto LAB_000a7220;\n      do {\n        iVar5 = *(int *)(param_1 + 0xc);\n        uVar14 = uVar14 - uVar6;\n        iVar12 = *(int *)(iVar5 + iVar7);\n        if (*(int *)(iVar5 + iVar7) == 0) {\n          iVar12 = (*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34);\n          goto LAB_000a7268;\n        }\n        while( true ) {\n          local_34 = iVar12;\n          iVar11 = iVar11 + 1;\n          iVar7 = iVar11 * 4;\n          *(int *)(iVar5 + iVar7 + -4) = local_34;\n          if (uVar6 <= uVar14) break;\n          uVar8 = param_3 + uVar14;\n          iVar5 = param_3;\nLAB_000a7220:\n          param_3 = 0;\n          if (uVar6 < uVar8) {\n            param_3 = (uVar14 - uVar6) + iVar5;\n            iVar5 = uVar6 - uVar14;\n          }\n          iVar12 = (**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4);\n          iVar7 = local_30;\n          if (iVar12 == 0) {\n            iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;\n            local_34 = **(int **)(local_30 + 4);\n            if (param_5 == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }\n            else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }\n          }\n          param_4 = param_4 + iVar5;\n          if (param_3 == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar12 != 0) goto LAB_000a7304;\n          if (local_34 == 0) goto LAB_000a7494;\n          iVar5 = *(int *)(param_1 + 0xc);\n          iVar12 = local_34;\n        }\n      } while( true );\n    }\nLAB_000a7494:\n    uVar4 = 0x1094f;\n  }\n  iVar12 = (*(code *)(PTR_LAB_0015c744 + -0x6c90))(uVar4);\nLAB_000a7304:\n  if (local_2c == *(int *)puVar13) {\n    return iVar12;\n  }\n  iVar11 = local_2c;\n  puVar13 = PTR___stack_chk_fail_0015ca14;\n  (*(code *)PTR___stack_chk_fail_0015ca14)();\n  (*(code *)(*(int *)(puVar13 + 0xb51b8) + -0xc70))();\n  uVar6 = *(uint *)(iVar11 + 0x2c);\n  *(undefined4 *)(iVar11 + 0x38) = 0;\n  *(uint *)(iVar11 + 0x3c) = uVar6;\n  iVar12 = (*(code *)(*(int *)(puVar13 + 0xb5228) + -0x5370))(uVar6 + 0x11 < uVar6);\n  if (iVar12 == 0) {\n    return 7;\n  }\n  iVar5 = FUN_000a7054(iVar11,0,*(undefined4 *)(iVar11 + 0x3c),iVar12,0);\n  if (iVar5 == 0) {\n    (**(code **)(puVar13 + 0xb5504))(iVar12 + *(int *)(iVar11 + 0x3c),0,0x11);\n    *(int *)(iVar11 + 0x10) = iVar12;\n    return 0;\n  }\n  (**(code **)(puVar13 + 0xb5138))(iVar12);\n  return iVar5;\n}\n\n" (function_definition "int FUN_000a7054(int param_1,uint param_2,int param_3,int param_4,int param_5)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  uint uVar6;\n  int iVar7;\n  uint uVar8;\n  int *piVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  undefined *puVar13;\n  uint uVar14;\n  int local_34;\n  int local_30;\n  int local_2c;\n  \n  puVar13 = PTR___stack_chk_guard_0015ca30;\n  iVar12 = *(int *)(param_1 + 0x74);\n  local_2c = *(int *)PTR___stack_chk_guard_0015ca30;\n  piVar9 = *(int **)(param_1 + 0x14);\n  (*(code *)(PTR_LAB_0015c66c + -0xc70))();\n  iVar11 = *(int *)(param_1 + 0x28);\n  uVar6 = (uint)*(ushort *)(param_1 + 0x30);\n  if (piVar9[9] - uVar6 < (uint)(iVar11 - *(int *)(iVar12 + 0x38))) {\n    uVar4 = 0x108be;\n  }\n  else {\n    if (param_2 < uVar6) {\n      if (uVar6 < param_2 + param_3) {\n        iVar5 = uVar6 - param_2;\n        if (param_5 != 0) goto LAB_000a7298;\nLAB_000a7354:\n        iVar7 = param_4;\n        iVar10 = iVar11 + param_2;\n      }\n      else {\n        iVar5 = param_3;\n        if (param_5 == 0) goto LAB_000a7354;\nLAB_000a7298:\n        iVar7 = iVar11 + param_2;\n        iVar12 = FUN_0009cf5c(*(undefined4 *)(iVar12 + 0x48));\n        iVar10 = param_4;\n        if (iVar12 != 0) goto LAB_000a7304;\n      }\n      param_3 = param_3 - iVar5;\n      (*(code *)PTR_memcpy_0015ca34)(iVar7,iVar10,iVar5);\n      param_4 = param_4 + iVar5;\n      param_2 = 0;\n      if (param_3 == 0) goto LAB_000a72dc;\n    }\n    else {\n      param_2 = param_2 - uVar6;\n      if (param_3 == 0) {\nLAB_000a72dc:\n        iVar12 = 0;\n        goto LAB_000a7304;\n      }\n    }\n    iVar12 = *(int *)(param_1 + 0xc);\n    uVar6 = piVar9[9] - 4;\n    local_34 = *(int *)(iVar11 + (uint)*(ushort *)(param_1 + 0x30));\n    if ((*(byte *)(param_1 + 1) & 4) == 0) {\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar14 = ((*(int *)(param_1 + 0x2c) + -1 + uVar6) - (uint)*(ushort *)(param_1 + 0x30)) / uVar6\n      ;\n      if (iVar12 == 0) {\nLAB_000a7368:\n        iVar12 = (*(code *)(PTR_LAB_0015c6dc + -0x2708))(iVar12);\n        if (iVar12 == 0) {\n          iVar12 = 7;\n          goto LAB_000a7304;\n        }\n        *(int *)(param_1 + 0xc) = iVar12;\n      }\n      else {\n        iVar11 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();\n        iVar12 = *(int *)(param_1 + 0xc);\n        if (iVar11 < (int)(uVar14 << 2)) goto LAB_000a7368;\n      }\n      (*(code *)PTR_memset_0015c9b8)(iVar12,0,uVar14 << 2);\n      *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) | 4;\n    }\n    else {\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar8 = param_2 / uVar6;\n      uVar14 = param_2 % uVar6;\n      iVar11 = *(int *)(iVar12 + uVar8 * 4);\n      if (iVar11 != 0) goto LAB_000a719c;\n    }\n    uVar8 = 0;\n    if (local_34 != 0) {\n      iVar12 = *(int *)(param_1 + 0xc);\n      uVar14 = param_2;\n      iVar11 = local_34;\nLAB_000a719c:\n      local_34 = iVar11;\n      puVar2 = PTR_DAT_0015c708;\n      puVar1 = PTR_LAB_0015c66c;\n      uVar4 = 2;\n      iVar11 = uVar8 + 1;\n      if (param_5 != 0) {\n        uVar4 = 0;\n      }\n      iVar7 = iVar11 * 4;\n      *(int *)(iVar12 + iVar7 + -4) = local_34;\n      puVar3 = PTR_LAB_0015c744;\n      uVar8 = param_3 + uVar14;\n      iVar5 = param_3;\n      if (uVar14 < uVar6) goto LAB_000a7220;\n      do {\n        iVar5 = *(int *)(param_1 + 0xc);\n        uVar14 = uVar14 - uVar6;\n        iVar12 = *(int *)(iVar5 + iVar7);\n        if (*(int *)(iVar5 + iVar7) == 0) {\n          iVar12 = (*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34);\n          goto LAB_000a7268;\n        }\n        while( true ) {\n          local_34 = iVar12;\n          iVar11 = iVar11 + 1;\n          iVar7 = iVar11 * 4;\n          *(int *)(iVar5 + iVar7 + -4) = local_34;\n          if (uVar6 <= uVar14) break;\n          uVar8 = param_3 + uVar14;\n          iVar5 = param_3;\nLAB_000a7220:\n          param_3 = 0;\n          if (uVar6 < uVar8) {\n            param_3 = (uVar14 - uVar6) + iVar5;\n            iVar5 = uVar6 - uVar14;\n          }\n          iVar12 = (**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4);\n          iVar7 = local_30;\n          if (iVar12 == 0) {\n            iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;\n            local_34 = **(int **)(local_30 + 4);\n            if (param_5 == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }\n            else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }\n          }\n          param_4 = param_4 + iVar5;\n          if (param_3 == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar12 != 0) goto LAB_000a7304;\n          if (local_34 == 0) goto LAB_000a7494;\n          iVar5 = *(int *)(param_1 + 0xc);\n          iVar12 = local_34;\n        }\n      } while( true );\n    }\nLAB_000a7494:\n    uVar4 = 0x1094f;\n  }\n  iVar12 = (*(code *)(PTR_LAB_0015c744 + -0x6c90))(uVar4);\nLAB_000a7304:\n  if (local_2c == *(int *)puVar13) {\n    return iVar12;\n  }\n  iVar11 = local_2c;\n  puVar13 = PTR___stack_chk_fail_0015ca14;\n  (*(code *)PTR___stack_chk_fail_0015ca14)();\n  (*(code *)(*(int *)(puVar13 + 0xb51b8) + -0xc70))();\n  uVar6 = *(uint *)(iVar11 + 0x2c);\n  *(undefined4 *)(iVar11 + 0x38) = 0;\n  *(uint *)(iVar11 + 0x3c) = uVar6;\n  iVar12 = (*(code *)(*(int *)(puVar13 + 0xb5228) + -0x5370))(uVar6 + 0x11 < uVar6);\n  if (iVar12 == 0) {\n    return 7;\n  }\n  iVar5 = FUN_000a7054(iVar11,0,*(undefined4 *)(iVar11 + 0x3c),iVar12,0);\n  if (iVar5 == 0) {\n    (**(code **)(puVar13 + 0xb5504))(iVar12 + *(int *)(iVar11 + 0x3c),0,0x11);\n    *(int *)(iVar11 + 0x10) = iVar12;\n    return 0;\n  }\n  (**(code **)(puVar13 + 0xb5138))(iVar12);\n  return iVar5;\n}" primitive_type (function_declarator "FUN_000a7054(int param_1,uint param_2,int param_3,int param_4,int param_5)" identifier (parameter_list "(int param_1,uint param_2,int param_3,int param_4,int param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "uint param_2" type_identifier identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  uint uVar6;\n  int iVar7;\n  uint uVar8;\n  int *piVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  undefined *puVar13;\n  uint uVar14;\n  int local_34;\n  int local_30;\n  int local_2c;\n  \n  puVar13 = PTR___stack_chk_guard_0015ca30;\n  iVar12 = *(int *)(param_1 + 0x74);\n  local_2c = *(int *)PTR___stack_chk_guard_0015ca30;\n  piVar9 = *(int **)(param_1 + 0x14);\n  (*(code *)(PTR_LAB_0015c66c + -0xc70))();\n  iVar11 = *(int *)(param_1 + 0x28);\n  uVar6 = (uint)*(ushort *)(param_1 + 0x30);\n  if (piVar9[9] - uVar6 < (uint)(iVar11 - *(int *)(iVar12 + 0x38))) {\n    uVar4 = 0x108be;\n  }\n  else {\n    if (param_2 < uVar6) {\n      if (uVar6 < param_2 + param_3) {\n        iVar5 = uVar6 - param_2;\n        if (param_5 != 0) goto LAB_000a7298;\nLAB_000a7354:\n        iVar7 = param_4;\n        iVar10 = iVar11 + param_2;\n      }\n      else {\n        iVar5 = param_3;\n        if (param_5 == 0) goto LAB_000a7354;\nLAB_000a7298:\n        iVar7 = iVar11 + param_2;\n        iVar12 = FUN_0009cf5c(*(undefined4 *)(iVar12 + 0x48));\n        iVar10 = param_4;\n        if (iVar12 != 0) goto LAB_000a7304;\n      }\n      param_3 = param_3 - iVar5;\n      (*(code *)PTR_memcpy_0015ca34)(iVar7,iVar10,iVar5);\n      param_4 = param_4 + iVar5;\n      param_2 = 0;\n      if (param_3 == 0) goto LAB_000a72dc;\n    }\n    else {\n      param_2 = param_2 - uVar6;\n      if (param_3 == 0) {\nLAB_000a72dc:\n        iVar12 = 0;\n        goto LAB_000a7304;\n      }\n    }\n    iVar12 = *(int *)(param_1 + 0xc);\n    uVar6 = piVar9[9] - 4;\n    local_34 = *(int *)(iVar11 + (uint)*(ushort *)(param_1 + 0x30));\n    if ((*(byte *)(param_1 + 1) & 4) == 0) {\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar14 = ((*(int *)(param_1 + 0x2c) + -1 + uVar6) - (uint)*(ushort *)(param_1 + 0x30)) / uVar6\n      ;\n      if (iVar12 == 0) {\nLAB_000a7368:\n        iVar12 = (*(code *)(PTR_LAB_0015c6dc + -0x2708))(iVar12);\n        if (iVar12 == 0) {\n          iVar12 = 7;\n          goto LAB_000a7304;\n        }\n        *(int *)(param_1 + 0xc) = iVar12;\n      }\n      else {\n        iVar11 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();\n        iVar12 = *(int *)(param_1 + 0xc);\n        if (iVar11 < (int)(uVar14 << 2)) goto LAB_000a7368;\n      }\n      (*(code *)PTR_memset_0015c9b8)(iVar12,0,uVar14 << 2);\n      *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) | 4;\n    }\n    else {\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar8 = param_2 / uVar6;\n      uVar14 = param_2 % uVar6;\n      iVar11 = *(int *)(iVar12 + uVar8 * 4);\n      if (iVar11 != 0) goto LAB_000a719c;\n    }\n    uVar8 = 0;\n    if (local_34 != 0) {\n      iVar12 = *(int *)(param_1 + 0xc);\n      uVar14 = param_2;\n      iVar11 = local_34;\nLAB_000a719c:\n      local_34 = iVar11;\n      puVar2 = PTR_DAT_0015c708;\n      puVar1 = PTR_LAB_0015c66c;\n      uVar4 = 2;\n      iVar11 = uVar8 + 1;\n      if (param_5 != 0) {\n        uVar4 = 0;\n      }\n      iVar7 = iVar11 * 4;\n      *(int *)(iVar12 + iVar7 + -4) = local_34;\n      puVar3 = PTR_LAB_0015c744;\n      uVar8 = param_3 + uVar14;\n      iVar5 = param_3;\n      if (uVar14 < uVar6) goto LAB_000a7220;\n      do {\n        iVar5 = *(int *)(param_1 + 0xc);\n        uVar14 = uVar14 - uVar6;\n        iVar12 = *(int *)(iVar5 + iVar7);\n        if (*(int *)(iVar5 + iVar7) == 0) {\n          iVar12 = (*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34);\n          goto LAB_000a7268;\n        }\n        while( true ) {\n          local_34 = iVar12;\n          iVar11 = iVar11 + 1;\n          iVar7 = iVar11 * 4;\n          *(int *)(iVar5 + iVar7 + -4) = local_34;\n          if (uVar6 <= uVar14) break;\n          uVar8 = param_3 + uVar14;\n          iVar5 = param_3;\nLAB_000a7220:\n          param_3 = 0;\n          if (uVar6 < uVar8) {\n            param_3 = (uVar14 - uVar6) + iVar5;\n            iVar5 = uVar6 - uVar14;\n          }\n          iVar12 = (**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4);\n          iVar7 = local_30;\n          if (iVar12 == 0) {\n            iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;\n            local_34 = **(int **)(local_30 + 4);\n            if (param_5 == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }\n            else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }\n          }\n          param_4 = param_4 + iVar5;\n          if (param_3 == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar12 != 0) goto LAB_000a7304;\n          if (local_34 == 0) goto LAB_000a7494;\n          iVar5 = *(int *)(param_1 + 0xc);\n          iVar12 = local_34;\n        }\n      } while( true );\n    }\nLAB_000a7494:\n    uVar4 = 0x1094f;\n  }\n  iVar12 = (*(code *)(PTR_LAB_0015c744 + -0x6c90))(uVar4);\nLAB_000a7304:\n  if (local_2c == *(int *)puVar13) {\n    return iVar12;\n  }\n  iVar11 = local_2c;\n  puVar13 = PTR___stack_chk_fail_0015ca14;\n  (*(code *)PTR___stack_chk_fail_0015ca14)();\n  (*(code *)(*(int *)(puVar13 + 0xb51b8) + -0xc70))();\n  uVar6 = *(uint *)(iVar11 + 0x2c);\n  *(undefined4 *)(iVar11 + 0x38) = 0;\n  *(uint *)(iVar11 + 0x3c) = uVar6;\n  iVar12 = (*(code *)(*(int *)(puVar13 + 0xb5228) + -0x5370))(uVar6 + 0x11 < uVar6);\n  if (iVar12 == 0) {\n    return 7;\n  }\n  iVar5 = FUN_000a7054(iVar11,0,*(undefined4 *)(iVar11 + 0x3c),iVar12,0);\n  if (iVar5 == 0) {\n    (**(code **)(puVar13 + 0xb5504))(iVar12 + *(int *)(iVar11 + 0x3c),0,0x11);\n    *(int *)(iVar11 + 0x10) = iVar12;\n    return 0;\n  }\n  (**(code **)(puVar13 + 0xb5138))(iVar12);\n  return iVar5;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "undefined4 uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "int *piVar9;" primitive_type (pointer_declarator "*piVar9" * identifier) ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "int iVar11;" primitive_type identifier ;) (declaration "int iVar12;" primitive_type identifier ;) (declaration "undefined *puVar13;" type_identifier (pointer_declarator "*puVar13" * identifier) ;) (declaration "uint uVar14;" type_identifier identifier ;) (declaration "int local_34;" primitive_type identifier ;) (declaration "int local_30;" primitive_type identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar13 = PTR___stack_chk_guard_0015ca30;" (assignment_expression "puVar13 = PTR___stack_chk_guard_0015ca30" identifier = identifier) ;) (expression_statement "iVar12 = *(int *)(param_1 + 0x74);" (assignment_expression "iVar12 = *(int *)(param_1 + 0x74)" identifier = (pointer_expression "*(int *)(param_1 + 0x74)" * (cast_expression "(int *)(param_1 + 0x74)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) ))))) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_0015ca30;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_0015ca30" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0015ca30" * (cast_expression "(int *)PTR___stack_chk_guard_0015ca30" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "piVar9 = *(int **)(param_1 + 0x14);" (assignment_expression "piVar9 = *(int **)(param_1 + 0x14)" identifier = (pointer_expression "*(int **)(param_1 + 0x14)" * (cast_expression "(int **)(param_1 + 0x14)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x14)" ( (binary_expression "param_1 + 0x14" identifier + number_literal) ))))) ;) (expression_statement "(*(code *)(PTR_LAB_0015c66c + -0xc70))();" (call_expression "(*(code *)(PTR_LAB_0015c66c + -0xc70))()" (parenthesized_expression "(*(code *)(PTR_LAB_0015c66c + -0xc70))" ( (pointer_expression "*(code *)(PTR_LAB_0015c66c + -0xc70)" * (cast_expression "(code *)(PTR_LAB_0015c66c + -0xc70)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015c66c + -0xc70)" ( (binary_expression "PTR_LAB_0015c66c + -0xc70" identifier + number_literal) )))) )) (argument_list "()" ( ))) ;) (expression_statement "iVar11 = *(int *)(param_1 + 0x28);" (assignment_expression "iVar11 = *(int *)(param_1 + 0x28)" identifier = (pointer_expression "*(int *)(param_1 + 0x28)" * (cast_expression "(int *)(param_1 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x28)" ( (binary_expression "param_1 + 0x28" identifier + number_literal) ))))) ;) (expression_statement "uVar6 = (uint)*(ushort *)(param_1 + 0x30);" (assignment_expression "uVar6 = (uint)*(ushort *)(param_1 + 0x30)" identifier = (binary_expression "(uint)*(ushort *)(param_1 + 0x30)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(param_1 + 0x30)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) ;) (if_statement "if (piVar9[9] - uVar6 < (uint)(iVar11 - *(int *)(iVar12 + 0x38))) {\n    uVar4 = 0x108be;\n  }\n  else {\n    if (param_2 < uVar6) {\n      if (uVar6 < param_2 + param_3) {\n        iVar5 = uVar6 - param_2;\n        if (param_5 != 0) goto LAB_000a7298;\nLAB_000a7354:\n        iVar7 = param_4;\n        iVar10 = iVar11 + param_2;\n      }\n      else {\n        iVar5 = param_3;\n        if (param_5 == 0) goto LAB_000a7354;\nLAB_000a7298:\n        iVar7 = iVar11 + param_2;\n        iVar12 = FUN_0009cf5c(*(undefined4 *)(iVar12 + 0x48));\n        iVar10 = param_4;\n        if (iVar12 != 0) goto LAB_000a7304;\n      }\n      param_3 = param_3 - iVar5;\n      (*(code *)PTR_memcpy_0015ca34)(iVar7,iVar10,iVar5);\n      param_4 = param_4 + iVar5;\n      param_2 = 0;\n      if (param_3 == 0) goto LAB_000a72dc;\n    }\n    else {\n      param_2 = param_2 - uVar6;\n      if (param_3 == 0) {\nLAB_000a72dc:\n        iVar12 = 0;\n        goto LAB_000a7304;\n      }\n    }\n    iVar12 = *(int *)(param_1 + 0xc);\n    uVar6 = piVar9[9] - 4;\n    local_34 = *(int *)(iVar11 + (uint)*(ushort *)(param_1 + 0x30));\n    if ((*(byte *)(param_1 + 1) & 4) == 0) {\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar14 = ((*(int *)(param_1 + 0x2c) + -1 + uVar6) - (uint)*(ushort *)(param_1 + 0x30)) / uVar6\n      ;\n      if (iVar12 == 0) {\nLAB_000a7368:\n        iVar12 = (*(code *)(PTR_LAB_0015c6dc + -0x2708))(iVar12);\n        if (iVar12 == 0) {\n          iVar12 = 7;\n          goto LAB_000a7304;\n        }\n        *(int *)(param_1 + 0xc) = iVar12;\n      }\n      else {\n        iVar11 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();\n        iVar12 = *(int *)(param_1 + 0xc);\n        if (iVar11 < (int)(uVar14 << 2)) goto LAB_000a7368;\n      }\n      (*(code *)PTR_memset_0015c9b8)(iVar12,0,uVar14 << 2);\n      *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) | 4;\n    }\n    else {\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar8 = param_2 / uVar6;\n      uVar14 = param_2 % uVar6;\n      iVar11 = *(int *)(iVar12 + uVar8 * 4);\n      if (iVar11 != 0) goto LAB_000a719c;\n    }\n    uVar8 = 0;\n    if (local_34 != 0) {\n      iVar12 = *(int *)(param_1 + 0xc);\n      uVar14 = param_2;\n      iVar11 = local_34;\nLAB_000a719c:\n      local_34 = iVar11;\n      puVar2 = PTR_DAT_0015c708;\n      puVar1 = PTR_LAB_0015c66c;\n      uVar4 = 2;\n      iVar11 = uVar8 + 1;\n      if (param_5 != 0) {\n        uVar4 = 0;\n      }\n      iVar7 = iVar11 * 4;\n      *(int *)(iVar12 + iVar7 + -4) = local_34;\n      puVar3 = PTR_LAB_0015c744;\n      uVar8 = param_3 + uVar14;\n      iVar5 = param_3;\n      if (uVar14 < uVar6) goto LAB_000a7220;\n      do {\n        iVar5 = *(int *)(param_1 + 0xc);\n        uVar14 = uVar14 - uVar6;\n        iVar12 = *(int *)(iVar5 + iVar7);\n        if (*(int *)(iVar5 + iVar7) == 0) {\n          iVar12 = (*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34);\n          goto LAB_000a7268;\n        }\n        while( true ) {\n          local_34 = iVar12;\n          iVar11 = iVar11 + 1;\n          iVar7 = iVar11 * 4;\n          *(int *)(iVar5 + iVar7 + -4) = local_34;\n          if (uVar6 <= uVar14) break;\n          uVar8 = param_3 + uVar14;\n          iVar5 = param_3;\nLAB_000a7220:\n          param_3 = 0;\n          if (uVar6 < uVar8) {\n            param_3 = (uVar14 - uVar6) + iVar5;\n            iVar5 = uVar6 - uVar14;\n          }\n          iVar12 = (**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4);\n          iVar7 = local_30;\n          if (iVar12 == 0) {\n            iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;\n            local_34 = **(int **)(local_30 + 4);\n            if (param_5 == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }\n            else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }\n          }\n          param_4 = param_4 + iVar5;\n          if (param_3 == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar12 != 0) goto LAB_000a7304;\n          if (local_34 == 0) goto LAB_000a7494;\n          iVar5 = *(int *)(param_1 + 0xc);\n          iVar12 = local_34;\n        }\n      } while( true );\n    }\nLAB_000a7494:\n    uVar4 = 0x1094f;\n  }" if (parenthesized_expression "(piVar9[9] - uVar6 < (uint)(iVar11 - *(int *)(iVar12 + 0x38)))" ( (binary_expression "piVar9[9] - uVar6 < (uint)(iVar11 - *(int *)(iVar12 + 0x38))" (binary_expression "piVar9[9] - uVar6" (subscript_expression "piVar9[9]" identifier [ number_literal ]) - identifier) < (call_expression "(uint)(iVar11 - *(int *)(iVar12 + 0x38))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(iVar11 - *(int *)(iVar12 + 0x38))" ( (binary_expression "iVar11 - *(int *)(iVar12 + 0x38)" identifier - (pointer_expression "*(int *)(iVar12 + 0x38)" * (cast_expression "(int *)(iVar12 + 0x38)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x38)" ( (binary_expression "iVar12 + 0x38" identifier + number_literal) ))))) )))) )) (compound_statement "{\n    uVar4 = 0x108be;\n  }" { (expression_statement "uVar4 = 0x108be;" (assignment_expression "uVar4 = 0x108be" identifier = number_literal) ;) }) (else_clause "else {\n    if (param_2 < uVar6) {\n      if (uVar6 < param_2 + param_3) {\n        iVar5 = uVar6 - param_2;\n        if (param_5 != 0) goto LAB_000a7298;\nLAB_000a7354:\n        iVar7 = param_4;\n        iVar10 = iVar11 + param_2;\n      }\n      else {\n        iVar5 = param_3;\n        if (param_5 == 0) goto LAB_000a7354;\nLAB_000a7298:\n        iVar7 = iVar11 + param_2;\n        iVar12 = FUN_0009cf5c(*(undefined4 *)(iVar12 + 0x48));\n        iVar10 = param_4;\n        if (iVar12 != 0) goto LAB_000a7304;\n      }\n      param_3 = param_3 - iVar5;\n      (*(code *)PTR_memcpy_0015ca34)(iVar7,iVar10,iVar5);\n      param_4 = param_4 + iVar5;\n      param_2 = 0;\n      if (param_3 == 0) goto LAB_000a72dc;\n    }\n    else {\n      param_2 = param_2 - uVar6;\n      if (param_3 == 0) {\nLAB_000a72dc:\n        iVar12 = 0;\n        goto LAB_000a7304;\n      }\n    }\n    iVar12 = *(int *)(param_1 + 0xc);\n    uVar6 = piVar9[9] - 4;\n    local_34 = *(int *)(iVar11 + (uint)*(ushort *)(param_1 + 0x30));\n    if ((*(byte *)(param_1 + 1) & 4) == 0) {\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar14 = ((*(int *)(param_1 + 0x2c) + -1 + uVar6) - (uint)*(ushort *)(param_1 + 0x30)) / uVar6\n      ;\n      if (iVar12 == 0) {\nLAB_000a7368:\n        iVar12 = (*(code *)(PTR_LAB_0015c6dc + -0x2708))(iVar12);\n        if (iVar12 == 0) {\n          iVar12 = 7;\n          goto LAB_000a7304;\n        }\n        *(int *)(param_1 + 0xc) = iVar12;\n      }\n      else {\n        iVar11 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();\n        iVar12 = *(int *)(param_1 + 0xc);\n        if (iVar11 < (int)(uVar14 << 2)) goto LAB_000a7368;\n      }\n      (*(code *)PTR_memset_0015c9b8)(iVar12,0,uVar14 << 2);\n      *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) | 4;\n    }\n    else {\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar8 = param_2 / uVar6;\n      uVar14 = param_2 % uVar6;\n      iVar11 = *(int *)(iVar12 + uVar8 * 4);\n      if (iVar11 != 0) goto LAB_000a719c;\n    }\n    uVar8 = 0;\n    if (local_34 != 0) {\n      iVar12 = *(int *)(param_1 + 0xc);\n      uVar14 = param_2;\n      iVar11 = local_34;\nLAB_000a719c:\n      local_34 = iVar11;\n      puVar2 = PTR_DAT_0015c708;\n      puVar1 = PTR_LAB_0015c66c;\n      uVar4 = 2;\n      iVar11 = uVar8 + 1;\n      if (param_5 != 0) {\n        uVar4 = 0;\n      }\n      iVar7 = iVar11 * 4;\n      *(int *)(iVar12 + iVar7 + -4) = local_34;\n      puVar3 = PTR_LAB_0015c744;\n      uVar8 = param_3 + uVar14;\n      iVar5 = param_3;\n      if (uVar14 < uVar6) goto LAB_000a7220;\n      do {\n        iVar5 = *(int *)(param_1 + 0xc);\n        uVar14 = uVar14 - uVar6;\n        iVar12 = *(int *)(iVar5 + iVar7);\n        if (*(int *)(iVar5 + iVar7) == 0) {\n          iVar12 = (*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34);\n          goto LAB_000a7268;\n        }\n        while( true ) {\n          local_34 = iVar12;\n          iVar11 = iVar11 + 1;\n          iVar7 = iVar11 * 4;\n          *(int *)(iVar5 + iVar7 + -4) = local_34;\n          if (uVar6 <= uVar14) break;\n          uVar8 = param_3 + uVar14;\n          iVar5 = param_3;\nLAB_000a7220:\n          param_3 = 0;\n          if (uVar6 < uVar8) {\n            param_3 = (uVar14 - uVar6) + iVar5;\n            iVar5 = uVar6 - uVar14;\n          }\n          iVar12 = (**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4);\n          iVar7 = local_30;\n          if (iVar12 == 0) {\n            iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;\n            local_34 = **(int **)(local_30 + 4);\n            if (param_5 == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }\n            else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }\n          }\n          param_4 = param_4 + iVar5;\n          if (param_3 == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar12 != 0) goto LAB_000a7304;\n          if (local_34 == 0) goto LAB_000a7494;\n          iVar5 = *(int *)(param_1 + 0xc);\n          iVar12 = local_34;\n        }\n      } while( true );\n    }\nLAB_000a7494:\n    uVar4 = 0x1094f;\n  }" else (compound_statement "{\n    if (param_2 < uVar6) {\n      if (uVar6 < param_2 + param_3) {\n        iVar5 = uVar6 - param_2;\n        if (param_5 != 0) goto LAB_000a7298;\nLAB_000a7354:\n        iVar7 = param_4;\n        iVar10 = iVar11 + param_2;\n      }\n      else {\n        iVar5 = param_3;\n        if (param_5 == 0) goto LAB_000a7354;\nLAB_000a7298:\n        iVar7 = iVar11 + param_2;\n        iVar12 = FUN_0009cf5c(*(undefined4 *)(iVar12 + 0x48));\n        iVar10 = param_4;\n        if (iVar12 != 0) goto LAB_000a7304;\n      }\n      param_3 = param_3 - iVar5;\n      (*(code *)PTR_memcpy_0015ca34)(iVar7,iVar10,iVar5);\n      param_4 = param_4 + iVar5;\n      param_2 = 0;\n      if (param_3 == 0) goto LAB_000a72dc;\n    }\n    else {\n      param_2 = param_2 - uVar6;\n      if (param_3 == 0) {\nLAB_000a72dc:\n        iVar12 = 0;\n        goto LAB_000a7304;\n      }\n    }\n    iVar12 = *(int *)(param_1 + 0xc);\n    uVar6 = piVar9[9] - 4;\n    local_34 = *(int *)(iVar11 + (uint)*(ushort *)(param_1 + 0x30));\n    if ((*(byte *)(param_1 + 1) & 4) == 0) {\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar14 = ((*(int *)(param_1 + 0x2c) + -1 + uVar6) - (uint)*(ushort *)(param_1 + 0x30)) / uVar6\n      ;\n      if (iVar12 == 0) {\nLAB_000a7368:\n        iVar12 = (*(code *)(PTR_LAB_0015c6dc + -0x2708))(iVar12);\n        if (iVar12 == 0) {\n          iVar12 = 7;\n          goto LAB_000a7304;\n        }\n        *(int *)(param_1 + 0xc) = iVar12;\n      }\n      else {\n        iVar11 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();\n        iVar12 = *(int *)(param_1 + 0xc);\n        if (iVar11 < (int)(uVar14 << 2)) goto LAB_000a7368;\n      }\n      (*(code *)PTR_memset_0015c9b8)(iVar12,0,uVar14 << 2);\n      *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) | 4;\n    }\n    else {\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar8 = param_2 / uVar6;\n      uVar14 = param_2 % uVar6;\n      iVar11 = *(int *)(iVar12 + uVar8 * 4);\n      if (iVar11 != 0) goto LAB_000a719c;\n    }\n    uVar8 = 0;\n    if (local_34 != 0) {\n      iVar12 = *(int *)(param_1 + 0xc);\n      uVar14 = param_2;\n      iVar11 = local_34;\nLAB_000a719c:\n      local_34 = iVar11;\n      puVar2 = PTR_DAT_0015c708;\n      puVar1 = PTR_LAB_0015c66c;\n      uVar4 = 2;\n      iVar11 = uVar8 + 1;\n      if (param_5 != 0) {\n        uVar4 = 0;\n      }\n      iVar7 = iVar11 * 4;\n      *(int *)(iVar12 + iVar7 + -4) = local_34;\n      puVar3 = PTR_LAB_0015c744;\n      uVar8 = param_3 + uVar14;\n      iVar5 = param_3;\n      if (uVar14 < uVar6) goto LAB_000a7220;\n      do {\n        iVar5 = *(int *)(param_1 + 0xc);\n        uVar14 = uVar14 - uVar6;\n        iVar12 = *(int *)(iVar5 + iVar7);\n        if (*(int *)(iVar5 + iVar7) == 0) {\n          iVar12 = (*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34);\n          goto LAB_000a7268;\n        }\n        while( true ) {\n          local_34 = iVar12;\n          iVar11 = iVar11 + 1;\n          iVar7 = iVar11 * 4;\n          *(int *)(iVar5 + iVar7 + -4) = local_34;\n          if (uVar6 <= uVar14) break;\n          uVar8 = param_3 + uVar14;\n          iVar5 = param_3;\nLAB_000a7220:\n          param_3 = 0;\n          if (uVar6 < uVar8) {\n            param_3 = (uVar14 - uVar6) + iVar5;\n            iVar5 = uVar6 - uVar14;\n          }\n          iVar12 = (**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4);\n          iVar7 = local_30;\n          if (iVar12 == 0) {\n            iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;\n            local_34 = **(int **)(local_30 + 4);\n            if (param_5 == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }\n            else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }\n          }\n          param_4 = param_4 + iVar5;\n          if (param_3 == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar12 != 0) goto LAB_000a7304;\n          if (local_34 == 0) goto LAB_000a7494;\n          iVar5 = *(int *)(param_1 + 0xc);\n          iVar12 = local_34;\n        }\n      } while( true );\n    }\nLAB_000a7494:\n    uVar4 = 0x1094f;\n  }" { (if_statement "if (param_2 < uVar6) {\n      if (uVar6 < param_2 + param_3) {\n        iVar5 = uVar6 - param_2;\n        if (param_5 != 0) goto LAB_000a7298;\nLAB_000a7354:\n        iVar7 = param_4;\n        iVar10 = iVar11 + param_2;\n      }\n      else {\n        iVar5 = param_3;\n        if (param_5 == 0) goto LAB_000a7354;\nLAB_000a7298:\n        iVar7 = iVar11 + param_2;\n        iVar12 = FUN_0009cf5c(*(undefined4 *)(iVar12 + 0x48));\n        iVar10 = param_4;\n        if (iVar12 != 0) goto LAB_000a7304;\n      }\n      param_3 = param_3 - iVar5;\n      (*(code *)PTR_memcpy_0015ca34)(iVar7,iVar10,iVar5);\n      param_4 = param_4 + iVar5;\n      param_2 = 0;\n      if (param_3 == 0) goto LAB_000a72dc;\n    }\n    else {\n      param_2 = param_2 - uVar6;\n      if (param_3 == 0) {\nLAB_000a72dc:\n        iVar12 = 0;\n        goto LAB_000a7304;\n      }\n    }" if (parenthesized_expression "(param_2 < uVar6)" ( (binary_expression "param_2 < uVar6" identifier < identifier) )) (compound_statement "{\n      if (uVar6 < param_2 + param_3) {\n        iVar5 = uVar6 - param_2;\n        if (param_5 != 0) goto LAB_000a7298;\nLAB_000a7354:\n        iVar7 = param_4;\n        iVar10 = iVar11 + param_2;\n      }\n      else {\n        iVar5 = param_3;\n        if (param_5 == 0) goto LAB_000a7354;\nLAB_000a7298:\n        iVar7 = iVar11 + param_2;\n        iVar12 = FUN_0009cf5c(*(undefined4 *)(iVar12 + 0x48));\n        iVar10 = param_4;\n        if (iVar12 != 0) goto LAB_000a7304;\n      }\n      param_3 = param_3 - iVar5;\n      (*(code *)PTR_memcpy_0015ca34)(iVar7,iVar10,iVar5);\n      param_4 = param_4 + iVar5;\n      param_2 = 0;\n      if (param_3 == 0) goto LAB_000a72dc;\n    }" { (if_statement "if (uVar6 < param_2 + param_3) {\n        iVar5 = uVar6 - param_2;\n        if (param_5 != 0) goto LAB_000a7298;\nLAB_000a7354:\n        iVar7 = param_4;\n        iVar10 = iVar11 + param_2;\n      }\n      else {\n        iVar5 = param_3;\n        if (param_5 == 0) goto LAB_000a7354;\nLAB_000a7298:\n        iVar7 = iVar11 + param_2;\n        iVar12 = FUN_0009cf5c(*(undefined4 *)(iVar12 + 0x48));\n        iVar10 = param_4;\n        if (iVar12 != 0) goto LAB_000a7304;\n      }" if (parenthesized_expression "(uVar6 < param_2 + param_3)" ( (binary_expression "uVar6 < param_2 + param_3" identifier < (binary_expression "param_2 + param_3" identifier + identifier)) )) (compound_statement "{\n        iVar5 = uVar6 - param_2;\n        if (param_5 != 0) goto LAB_000a7298;\nLAB_000a7354:\n        iVar7 = param_4;\n        iVar10 = iVar11 + param_2;\n      }" { (expression_statement "iVar5 = uVar6 - param_2;" (assignment_expression "iVar5 = uVar6 - param_2" identifier = (binary_expression "uVar6 - param_2" identifier - identifier)) ;) (if_statement "if (param_5 != 0) goto LAB_000a7298;" if (parenthesized_expression "(param_5 != 0)" ( (binary_expression "param_5 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000a7298;" goto statement_identifier ;)) (labeled_statement "LAB_000a7354:\n        iVar7 = param_4;" statement_identifier : (expression_statement "iVar7 = param_4;" (assignment_expression "iVar7 = param_4" identifier = identifier) ;)) (expression_statement "iVar10 = iVar11 + param_2;" (assignment_expression "iVar10 = iVar11 + param_2" identifier = (binary_expression "iVar11 + param_2" identifier + identifier)) ;) }) (else_clause "else {\n        iVar5 = param_3;\n        if (param_5 == 0) goto LAB_000a7354;\nLAB_000a7298:\n        iVar7 = iVar11 + param_2;\n        iVar12 = FUN_0009cf5c(*(undefined4 *)(iVar12 + 0x48));\n        iVar10 = param_4;\n        if (iVar12 != 0) goto LAB_000a7304;\n      }" else (compound_statement "{\n        iVar5 = param_3;\n        if (param_5 == 0) goto LAB_000a7354;\nLAB_000a7298:\n        iVar7 = iVar11 + param_2;\n        iVar12 = FUN_0009cf5c(*(undefined4 *)(iVar12 + 0x48));\n        iVar10 = param_4;\n        if (iVar12 != 0) goto LAB_000a7304;\n      }" { (expression_statement "iVar5 = param_3;" (assignment_expression "iVar5 = param_3" identifier = identifier) ;) (if_statement "if (param_5 == 0) goto LAB_000a7354;" if (parenthesized_expression "(param_5 == 0)" ( (binary_expression "param_5 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000a7354;" goto statement_identifier ;)) (labeled_statement "LAB_000a7298:\n        iVar7 = iVar11 + param_2;" statement_identifier : (expression_statement "iVar7 = iVar11 + param_2;" (assignment_expression "iVar7 = iVar11 + param_2" identifier = (binary_expression "iVar11 + param_2" identifier + identifier)) ;)) (expression_statement "iVar12 = FUN_0009cf5c(*(undefined4 *)(iVar12 + 0x48));" (assignment_expression "iVar12 = FUN_0009cf5c(*(undefined4 *)(iVar12 + 0x48))" identifier = (call_expression "FUN_0009cf5c(*(undefined4 *)(iVar12 + 0x48))" identifier (argument_list "(*(undefined4 *)(iVar12 + 0x48))" ( (pointer_expression "*(undefined4 *)(iVar12 + 0x48)" * (cast_expression "(undefined4 *)(iVar12 + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + 0x48)" ( (binary_expression "iVar12 + 0x48" identifier + number_literal) )))) )))) ;) (expression_statement "iVar10 = param_4;" (assignment_expression "iVar10 = param_4" identifier = identifier) ;) (if_statement "if (iVar12 != 0) goto LAB_000a7304;" if (parenthesized_expression "(iVar12 != 0)" ( (binary_expression "iVar12 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000a7304;" goto statement_identifier ;)) }))) (expression_statement "param_3 = param_3 - iVar5;" (assignment_expression "param_3 = param_3 - iVar5" identifier = (binary_expression "param_3 - iVar5" identifier - identifier)) ;) (expression_statement "(*(code *)PTR_memcpy_0015ca34)(iVar7,iVar10,iVar5);" (call_expression "(*(code *)PTR_memcpy_0015ca34)(iVar7,iVar10,iVar5)" (parenthesized_expression "(*(code *)PTR_memcpy_0015ca34)" ( (pointer_expression "*(code *)PTR_memcpy_0015ca34" * (cast_expression "(code *)PTR_memcpy_0015ca34" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7,iVar10,iVar5)" ( identifier , identifier , identifier ))) ;) (expression_statement "param_4 = param_4 + iVar5;" (assignment_expression "param_4 = param_4 + iVar5" identifier = (binary_expression "param_4 + iVar5" identifier + identifier)) ;) (expression_statement "param_2 = 0;" (assignment_expression "param_2 = 0" identifier = number_literal) ;) (if_statement "if (param_3 == 0) goto LAB_000a72dc;" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000a72dc;" goto statement_identifier ;)) }) (else_clause "else {\n      param_2 = param_2 - uVar6;\n      if (param_3 == 0) {\nLAB_000a72dc:\n        iVar12 = 0;\n        goto LAB_000a7304;\n      }\n    }" else (compound_statement "{\n      param_2 = param_2 - uVar6;\n      if (param_3 == 0) {\nLAB_000a72dc:\n        iVar12 = 0;\n        goto LAB_000a7304;\n      }\n    }" { (expression_statement "param_2 = param_2 - uVar6;" (assignment_expression "param_2 = param_2 - uVar6" identifier = (binary_expression "param_2 - uVar6" identifier - identifier)) ;) (if_statement "if (param_3 == 0) {\nLAB_000a72dc:\n        iVar12 = 0;\n        goto LAB_000a7304;\n      }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_000a72dc:\n        iVar12 = 0;\n        goto LAB_000a7304;\n      }" { (labeled_statement "LAB_000a72dc:\n        iVar12 = 0;" statement_identifier : (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" identifier = number_literal) ;)) (goto_statement "goto LAB_000a7304;" goto statement_identifier ;) })) }))) (expression_statement "iVar12 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar12 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "uVar6 = piVar9[9] - 4;" (assignment_expression "uVar6 = piVar9[9] - 4" identifier = (binary_expression "piVar9[9] - 4" (subscript_expression "piVar9[9]" identifier [ number_literal ]) - number_literal)) ;) (expression_statement "local_34 = *(int *)(iVar11 + (uint)*(ushort *)(param_1 + 0x30));" (assignment_expression "local_34 = *(int *)(iVar11 + (uint)*(ushort *)(param_1 + 0x30))" identifier = (pointer_expression "*(int *)(iVar11 + (uint)*(ushort *)(param_1 + 0x30))" * (cast_expression "(int *)(iVar11 + (uint)*(ushort *)(param_1 + 0x30))" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar11 + (uint)*(ushort *)(param_1 + 0x30))" ( (binary_expression "iVar11 + (uint)*(ushort *)(param_1 + 0x30)" identifier + (binary_expression "(uint)*(ushort *)(param_1 + 0x30)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(param_1 + 0x30)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) ))))) ;) (if_statement "if ((*(byte *)(param_1 + 1) & 4) == 0) {\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar14 = ((*(int *)(param_1 + 0x2c) + -1 + uVar6) - (uint)*(ushort *)(param_1 + 0x30)) / uVar6\n      ;\n      if (iVar12 == 0) {\nLAB_000a7368:\n        iVar12 = (*(code *)(PTR_LAB_0015c6dc + -0x2708))(iVar12);\n        if (iVar12 == 0) {\n          iVar12 = 7;\n          goto LAB_000a7304;\n        }\n        *(int *)(param_1 + 0xc) = iVar12;\n      }\n      else {\n        iVar11 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();\n        iVar12 = *(int *)(param_1 + 0xc);\n        if (iVar11 < (int)(uVar14 << 2)) goto LAB_000a7368;\n      }\n      (*(code *)PTR_memset_0015c9b8)(iVar12,0,uVar14 << 2);\n      *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) | 4;\n    }\n    else {\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar8 = param_2 / uVar6;\n      uVar14 = param_2 % uVar6;\n      iVar11 = *(int *)(iVar12 + uVar8 * 4);\n      if (iVar11 != 0) goto LAB_000a719c;\n    }" if (parenthesized_expression "((*(byte *)(param_1 + 1) & 4) == 0)" ( (binary_expression "(*(byte *)(param_1 + 1) & 4) == 0" (parenthesized_expression "(*(byte *)(param_1 + 1) & 4)" ( (binary_expression "*(byte *)(param_1 + 1) & 4" (pointer_expression "*(byte *)(param_1 + 1)" * (cast_expression "(byte *)(param_1 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar14 = ((*(int *)(param_1 + 0x2c) + -1 + uVar6) - (uint)*(ushort *)(param_1 + 0x30)) / uVar6\n      ;\n      if (iVar12 == 0) {\nLAB_000a7368:\n        iVar12 = (*(code *)(PTR_LAB_0015c6dc + -0x2708))(iVar12);\n        if (iVar12 == 0) {\n          iVar12 = 7;\n          goto LAB_000a7304;\n        }\n        *(int *)(param_1 + 0xc) = iVar12;\n      }\n      else {\n        iVar11 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();\n        iVar12 = *(int *)(param_1 + 0xc);\n        if (iVar11 < (int)(uVar14 << 2)) goto LAB_000a7368;\n      }\n      (*(code *)PTR_memset_0015c9b8)(iVar12,0,uVar14 << 2);\n      *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) | 4;\n    }" { (if_statement "if (uVar6 == 0) {\n        trap(7);\n      }" if (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) (compound_statement "{\n        trap(7);\n      }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) (expression_statement "uVar14 = ((*(int *)(param_1 + 0x2c) + -1 + uVar6) - (uint)*(ushort *)(param_1 + 0x30)) / uVar6\n      ;" (assignment_expression "uVar14 = ((*(int *)(param_1 + 0x2c) + -1 + uVar6) - (uint)*(ushort *)(param_1 + 0x30)) / uVar6" identifier = (binary_expression "((*(int *)(param_1 + 0x2c) + -1 + uVar6) - (uint)*(ushort *)(param_1 + 0x30)) / uVar6" (parenthesized_expression "((*(int *)(param_1 + 0x2c) + -1 + uVar6) - (uint)*(ushort *)(param_1 + 0x30))" ( (binary_expression "(*(int *)(param_1 + 0x2c) + -1 + uVar6) - (uint)*(ushort *)(param_1 + 0x30)" (parenthesized_expression "(*(int *)(param_1 + 0x2c) + -1 + uVar6)" ( (binary_expression "*(int *)(param_1 + 0x2c) + -1 + uVar6" (binary_expression "*(int *)(param_1 + 0x2c) + -1" (pointer_expression "*(int *)(param_1 + 0x2c)" * (cast_expression "(int *)(param_1 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x2c)" ( (binary_expression "param_1 + 0x2c" identifier + number_literal) )))) + number_literal) + identifier) )) - (binary_expression "(uint)*(ushort *)(param_1 + 0x30)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(ushort *)(param_1 + 0x30)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x30)" ( (binary_expression "param_1 + 0x30" identifier + number_literal) ))))) )) / identifier)) ;) (if_statement "if (iVar12 == 0) {\nLAB_000a7368:\n        iVar12 = (*(code *)(PTR_LAB_0015c6dc + -0x2708))(iVar12);\n        if (iVar12 == 0) {\n          iVar12 = 7;\n          goto LAB_000a7304;\n        }\n        *(int *)(param_1 + 0xc) = iVar12;\n      }\n      else {\n        iVar11 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();\n        iVar12 = *(int *)(param_1 + 0xc);\n        if (iVar11 < (int)(uVar14 << 2)) goto LAB_000a7368;\n      }" if (parenthesized_expression "(iVar12 == 0)" ( (binary_expression "iVar12 == 0" identifier == number_literal) )) (compound_statement "{\nLAB_000a7368:\n        iVar12 = (*(code *)(PTR_LAB_0015c6dc + -0x2708))(iVar12);\n        if (iVar12 == 0) {\n          iVar12 = 7;\n          goto LAB_000a7304;\n        }\n        *(int *)(param_1 + 0xc) = iVar12;\n      }" { (labeled_statement "LAB_000a7368:\n        iVar12 = (*(code *)(PTR_LAB_0015c6dc + -0x2708))(iVar12);" statement_identifier : (expression_statement "iVar12 = (*(code *)(PTR_LAB_0015c6dc + -0x2708))(iVar12);" (assignment_expression "iVar12 = (*(code *)(PTR_LAB_0015c6dc + -0x2708))(iVar12)" identifier = (call_expression "(*(code *)(PTR_LAB_0015c6dc + -0x2708))(iVar12)" (parenthesized_expression "(*(code *)(PTR_LAB_0015c6dc + -0x2708))" ( (pointer_expression "*(code *)(PTR_LAB_0015c6dc + -0x2708)" * (cast_expression "(code *)(PTR_LAB_0015c6dc + -0x2708)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015c6dc + -0x2708)" ( (binary_expression "PTR_LAB_0015c6dc + -0x2708" identifier + number_literal) )))) )) (argument_list "(iVar12)" ( identifier )))) ;)) (if_statement "if (iVar12 == 0) {\n          iVar12 = 7;\n          goto LAB_000a7304;\n        }" if (parenthesized_expression "(iVar12 == 0)" ( (binary_expression "iVar12 == 0" identifier == number_literal) )) (compound_statement "{\n          iVar12 = 7;\n          goto LAB_000a7304;\n        }" { (expression_statement "iVar12 = 7;" (assignment_expression "iVar12 = 7" identifier = number_literal) ;) (goto_statement "goto LAB_000a7304;" goto statement_identifier ;) })) (expression_statement "*(int *)(param_1 + 0xc) = iVar12;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar12" (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) )))) = identifier) ;) }) (else_clause "else {\n        iVar11 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();\n        iVar12 = *(int *)(param_1 + 0xc);\n        if (iVar11 < (int)(uVar14 << 2)) goto LAB_000a7368;\n      }" else (compound_statement "{\n        iVar11 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();\n        iVar12 = *(int *)(param_1 + 0xc);\n        if (iVar11 < (int)(uVar14 << 2)) goto LAB_000a7368;\n      }" { (expression_statement "iVar11 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();" (assignment_expression "iVar11 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))()" identifier = (call_expression "(**(code **)(PTR_DAT_0015c5d8 + -0x4da0))()" (parenthesized_expression "(**(code **)(PTR_DAT_0015c5d8 + -0x4da0))" ( (pointer_expression "**(code **)(PTR_DAT_0015c5d8 + -0x4da0)" * (pointer_expression "*(code **)(PTR_DAT_0015c5d8 + -0x4da0)" * (cast_expression "(code **)(PTR_DAT_0015c5d8 + -0x4da0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_0015c5d8 + -0x4da0)" ( (binary_expression "PTR_DAT_0015c5d8 + -0x4da0" identifier + number_literal) ))))) )) (argument_list "()" ( )))) ;) (expression_statement "iVar12 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar12 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (if_statement "if (iVar11 < (int)(uVar14 << 2)) goto LAB_000a7368;" if (parenthesized_expression "(iVar11 < (int)(uVar14 << 2))" ( (binary_expression "iVar11 < (int)(uVar14 << 2)" identifier < (cast_expression "(int)(uVar14 << 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar14 << 2)" ( (binary_expression "uVar14 << 2" identifier << number_literal) )))) )) (goto_statement "goto LAB_000a7368;" goto statement_identifier ;)) }))) (expression_statement "(*(code *)PTR_memset_0015c9b8)(iVar12,0,uVar14 << 2);" (call_expression "(*(code *)PTR_memset_0015c9b8)(iVar12,0,uVar14 << 2)" (parenthesized_expression "(*(code *)PTR_memset_0015c9b8)" ( (pointer_expression "*(code *)PTR_memset_0015c9b8" * (cast_expression "(code *)PTR_memset_0015c9b8" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar12,0,uVar14 << 2)" ( identifier , number_literal , (binary_expression "uVar14 << 2" identifier << number_literal) ))) ;) (expression_statement "*(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) | 4;" (assignment_expression "*(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) | 4" (pointer_expression "*(byte *)(param_1 + 1)" * (cast_expression "(byte *)(param_1 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) = (binary_expression "*(byte *)(param_1 + 1) | 4" (pointer_expression "*(byte *)(param_1 + 1)" * (cast_expression "(byte *)(param_1 + 1)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 1)" ( (binary_expression "param_1 + 1" identifier + number_literal) )))) | number_literal)) ;) }) (else_clause "else {\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar8 = param_2 / uVar6;\n      uVar14 = param_2 % uVar6;\n      iVar11 = *(int *)(iVar12 + uVar8 * 4);\n      if (iVar11 != 0) goto LAB_000a719c;\n    }" else (compound_statement "{\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar8 = param_2 / uVar6;\n      uVar14 = param_2 % uVar6;\n      iVar11 = *(int *)(iVar12 + uVar8 * 4);\n      if (iVar11 != 0) goto LAB_000a719c;\n    }" { (if_statement "if (uVar6 == 0) {\n        trap(7);\n      }" if (parenthesized_expression "(uVar6 == 0)" ( (binary_expression "uVar6 == 0" identifier == number_literal) )) (compound_statement "{\n        trap(7);\n      }" { (expression_statement "trap(7);" (call_expression "trap(7)" identifier (argument_list "(7)" ( number_literal ))) ;) })) (expression_statement "uVar8 = param_2 / uVar6;" (assignment_expression "uVar8 = param_2 / uVar6" identifier = (binary_expression "param_2 / uVar6" identifier / identifier)) ;) (expression_statement "uVar14 = param_2 % uVar6;" (assignment_expression "uVar14 = param_2 % uVar6" identifier = (binary_expression "param_2 % uVar6" identifier % identifier)) ;) (expression_statement "iVar11 = *(int *)(iVar12 + uVar8 * 4);" (assignment_expression "iVar11 = *(int *)(iVar12 + uVar8 * 4)" identifier = (pointer_expression "*(int *)(iVar12 + uVar8 * 4)" * (cast_expression "(int *)(iVar12 + uVar8 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + uVar8 * 4)" ( (binary_expression "iVar12 + uVar8 * 4" identifier + (binary_expression "uVar8 * 4" identifier * number_literal)) ))))) ;) (if_statement "if (iVar11 != 0) goto LAB_000a719c;" if (parenthesized_expression "(iVar11 != 0)" ( (binary_expression "iVar11 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000a719c;" goto statement_identifier ;)) }))) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (if_statement "if (local_34 != 0) {\n      iVar12 = *(int *)(param_1 + 0xc);\n      uVar14 = param_2;\n      iVar11 = local_34;\nLAB_000a719c:\n      local_34 = iVar11;\n      puVar2 = PTR_DAT_0015c708;\n      puVar1 = PTR_LAB_0015c66c;\n      uVar4 = 2;\n      iVar11 = uVar8 + 1;\n      if (param_5 != 0) {\n        uVar4 = 0;\n      }\n      iVar7 = iVar11 * 4;\n      *(int *)(iVar12 + iVar7 + -4) = local_34;\n      puVar3 = PTR_LAB_0015c744;\n      uVar8 = param_3 + uVar14;\n      iVar5 = param_3;\n      if (uVar14 < uVar6) goto LAB_000a7220;\n      do {\n        iVar5 = *(int *)(param_1 + 0xc);\n        uVar14 = uVar14 - uVar6;\n        iVar12 = *(int *)(iVar5 + iVar7);\n        if (*(int *)(iVar5 + iVar7) == 0) {\n          iVar12 = (*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34);\n          goto LAB_000a7268;\n        }\n        while( true ) {\n          local_34 = iVar12;\n          iVar11 = iVar11 + 1;\n          iVar7 = iVar11 * 4;\n          *(int *)(iVar5 + iVar7 + -4) = local_34;\n          if (uVar6 <= uVar14) break;\n          uVar8 = param_3 + uVar14;\n          iVar5 = param_3;\nLAB_000a7220:\n          param_3 = 0;\n          if (uVar6 < uVar8) {\n            param_3 = (uVar14 - uVar6) + iVar5;\n            iVar5 = uVar6 - uVar14;\n          }\n          iVar12 = (**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4);\n          iVar7 = local_30;\n          if (iVar12 == 0) {\n            iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;\n            local_34 = **(int **)(local_30 + 4);\n            if (param_5 == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }\n            else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }\n          }\n          param_4 = param_4 + iVar5;\n          if (param_3 == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar12 != 0) goto LAB_000a7304;\n          if (local_34 == 0) goto LAB_000a7494;\n          iVar5 = *(int *)(param_1 + 0xc);\n          iVar12 = local_34;\n        }\n      } while( true );\n    }" if (parenthesized_expression "(local_34 != 0)" ( (binary_expression "local_34 != 0" identifier != number_literal) )) (compound_statement "{\n      iVar12 = *(int *)(param_1 + 0xc);\n      uVar14 = param_2;\n      iVar11 = local_34;\nLAB_000a719c:\n      local_34 = iVar11;\n      puVar2 = PTR_DAT_0015c708;\n      puVar1 = PTR_LAB_0015c66c;\n      uVar4 = 2;\n      iVar11 = uVar8 + 1;\n      if (param_5 != 0) {\n        uVar4 = 0;\n      }\n      iVar7 = iVar11 * 4;\n      *(int *)(iVar12 + iVar7 + -4) = local_34;\n      puVar3 = PTR_LAB_0015c744;\n      uVar8 = param_3 + uVar14;\n      iVar5 = param_3;\n      if (uVar14 < uVar6) goto LAB_000a7220;\n      do {\n        iVar5 = *(int *)(param_1 + 0xc);\n        uVar14 = uVar14 - uVar6;\n        iVar12 = *(int *)(iVar5 + iVar7);\n        if (*(int *)(iVar5 + iVar7) == 0) {\n          iVar12 = (*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34);\n          goto LAB_000a7268;\n        }\n        while( true ) {\n          local_34 = iVar12;\n          iVar11 = iVar11 + 1;\n          iVar7 = iVar11 * 4;\n          *(int *)(iVar5 + iVar7 + -4) = local_34;\n          if (uVar6 <= uVar14) break;\n          uVar8 = param_3 + uVar14;\n          iVar5 = param_3;\nLAB_000a7220:\n          param_3 = 0;\n          if (uVar6 < uVar8) {\n            param_3 = (uVar14 - uVar6) + iVar5;\n            iVar5 = uVar6 - uVar14;\n          }\n          iVar12 = (**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4);\n          iVar7 = local_30;\n          if (iVar12 == 0) {\n            iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;\n            local_34 = **(int **)(local_30 + 4);\n            if (param_5 == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }\n            else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }\n          }\n          param_4 = param_4 + iVar5;\n          if (param_3 == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar12 != 0) goto LAB_000a7304;\n          if (local_34 == 0) goto LAB_000a7494;\n          iVar5 = *(int *)(param_1 + 0xc);\n          iVar12 = local_34;\n        }\n      } while( true );\n    }" { (expression_statement "iVar12 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar12 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "uVar14 = param_2;" (assignment_expression "uVar14 = param_2" identifier = identifier) ;) (expression_statement "iVar11 = local_34;" (assignment_expression "iVar11 = local_34" identifier = identifier) ;) (labeled_statement "LAB_000a719c:\n      local_34 = iVar11;" statement_identifier : (expression_statement "local_34 = iVar11;" (assignment_expression "local_34 = iVar11" identifier = identifier) ;)) (expression_statement "puVar2 = PTR_DAT_0015c708;" (assignment_expression "puVar2 = PTR_DAT_0015c708" identifier = identifier) ;) (expression_statement "puVar1 = PTR_LAB_0015c66c;" (assignment_expression "puVar1 = PTR_LAB_0015c66c" identifier = identifier) ;) (expression_statement "uVar4 = 2;" (assignment_expression "uVar4 = 2" identifier = number_literal) ;) (expression_statement "iVar11 = uVar8 + 1;" (assignment_expression "iVar11 = uVar8 + 1" identifier = (binary_expression "uVar8 + 1" identifier + number_literal)) ;) (if_statement "if (param_5 != 0) {\n        uVar4 = 0;\n      }" if (parenthesized_expression "(param_5 != 0)" ( (binary_expression "param_5 != 0" identifier != number_literal) )) (compound_statement "{\n        uVar4 = 0;\n      }" { (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) })) (expression_statement "iVar7 = iVar11 * 4;" (assignment_expression "iVar7 = iVar11 * 4" identifier = (binary_expression "iVar11 * 4" identifier * number_literal)) ;) (expression_statement "*(int *)(iVar12 + iVar7 + -4) = local_34;" (assignment_expression "*(int *)(iVar12 + iVar7 + -4) = local_34" (pointer_expression "*(int *)(iVar12 + iVar7 + -4)" * (cast_expression "(int *)(iVar12 + iVar7 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar12 + iVar7 + -4)" ( (binary_expression "iVar12 + iVar7 + -4" (binary_expression "iVar12 + iVar7" identifier + identifier) + number_literal) )))) = identifier) ;) (expression_statement "puVar3 = PTR_LAB_0015c744;" (assignment_expression "puVar3 = PTR_LAB_0015c744" identifier = identifier) ;) (expression_statement "uVar8 = param_3 + uVar14;" (assignment_expression "uVar8 = param_3 + uVar14" identifier = (binary_expression "param_3 + uVar14" identifier + identifier)) ;) (expression_statement "iVar5 = param_3;" (assignment_expression "iVar5 = param_3" identifier = identifier) ;) (if_statement "if (uVar14 < uVar6) goto LAB_000a7220;" if (parenthesized_expression "(uVar14 < uVar6)" ( (binary_expression "uVar14 < uVar6" identifier < identifier) )) (goto_statement "goto LAB_000a7220;" goto statement_identifier ;)) (do_statement "do {\n        iVar5 = *(int *)(param_1 + 0xc);\n        uVar14 = uVar14 - uVar6;\n        iVar12 = *(int *)(iVar5 + iVar7);\n        if (*(int *)(iVar5 + iVar7) == 0) {\n          iVar12 = (*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34);\n          goto LAB_000a7268;\n        }\n        while( true ) {\n          local_34 = iVar12;\n          iVar11 = iVar11 + 1;\n          iVar7 = iVar11 * 4;\n          *(int *)(iVar5 + iVar7 + -4) = local_34;\n          if (uVar6 <= uVar14) break;\n          uVar8 = param_3 + uVar14;\n          iVar5 = param_3;\nLAB_000a7220:\n          param_3 = 0;\n          if (uVar6 < uVar8) {\n            param_3 = (uVar14 - uVar6) + iVar5;\n            iVar5 = uVar6 - uVar14;\n          }\n          iVar12 = (**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4);\n          iVar7 = local_30;\n          if (iVar12 == 0) {\n            iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;\n            local_34 = **(int **)(local_30 + 4);\n            if (param_5 == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }\n            else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }\n          }\n          param_4 = param_4 + iVar5;\n          if (param_3 == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar12 != 0) goto LAB_000a7304;\n          if (local_34 == 0) goto LAB_000a7494;\n          iVar5 = *(int *)(param_1 + 0xc);\n          iVar12 = local_34;\n        }\n      } while( true );" do (compound_statement "{\n        iVar5 = *(int *)(param_1 + 0xc);\n        uVar14 = uVar14 - uVar6;\n        iVar12 = *(int *)(iVar5 + iVar7);\n        if (*(int *)(iVar5 + iVar7) == 0) {\n          iVar12 = (*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34);\n          goto LAB_000a7268;\n        }\n        while( true ) {\n          local_34 = iVar12;\n          iVar11 = iVar11 + 1;\n          iVar7 = iVar11 * 4;\n          *(int *)(iVar5 + iVar7 + -4) = local_34;\n          if (uVar6 <= uVar14) break;\n          uVar8 = param_3 + uVar14;\n          iVar5 = param_3;\nLAB_000a7220:\n          param_3 = 0;\n          if (uVar6 < uVar8) {\n            param_3 = (uVar14 - uVar6) + iVar5;\n            iVar5 = uVar6 - uVar14;\n          }\n          iVar12 = (**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4);\n          iVar7 = local_30;\n          if (iVar12 == 0) {\n            iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;\n            local_34 = **(int **)(local_30 + 4);\n            if (param_5 == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }\n            else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }\n          }\n          param_4 = param_4 + iVar5;\n          if (param_3 == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar12 != 0) goto LAB_000a7304;\n          if (local_34 == 0) goto LAB_000a7494;\n          iVar5 = *(int *)(param_1 + 0xc);\n          iVar12 = local_34;\n        }\n      }" { (expression_statement "iVar5 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar5 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "uVar14 = uVar14 - uVar6;" (assignment_expression "uVar14 = uVar14 - uVar6" identifier = (binary_expression "uVar14 - uVar6" identifier - identifier)) ;) (expression_statement "iVar12 = *(int *)(iVar5 + iVar7);" (assignment_expression "iVar12 = *(int *)(iVar5 + iVar7)" identifier = (pointer_expression "*(int *)(iVar5 + iVar7)" * (cast_expression "(int *)(iVar5 + iVar7)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + iVar7)" ( (binary_expression "iVar5 + iVar7" identifier + identifier) ))))) ;) (if_statement "if (*(int *)(iVar5 + iVar7) == 0) {\n          iVar12 = (*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34);\n          goto LAB_000a7268;\n        }" if (parenthesized_expression "(*(int *)(iVar5 + iVar7) == 0)" ( (binary_expression "*(int *)(iVar5 + iVar7) == 0" (pointer_expression "*(int *)(iVar5 + iVar7)" * (cast_expression "(int *)(iVar5 + iVar7)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + iVar7)" ( (binary_expression "iVar5 + iVar7" identifier + identifier) )))) == number_literal) )) (compound_statement "{\n          iVar12 = (*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34);\n          goto LAB_000a7268;\n        }" { (expression_statement "iVar12 = (*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34);" (assignment_expression "iVar12 = (*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34)" identifier = (call_expression "(*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34)" (parenthesized_expression "(*(code *)(puVar3 + -0x6468))" ( (pointer_expression "*(code *)(puVar3 + -0x6468)" * (cast_expression "(code *)(puVar3 + -0x6468)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar3 + -0x6468)" ( (binary_expression "puVar3 + -0x6468" identifier + number_literal) )))) )) (argument_list "(piVar9,local_34,0,&local_34)" ( identifier , identifier , number_literal , (pointer_expression "&local_34" & identifier) )))) ;) (goto_statement "goto LAB_000a7268;" goto statement_identifier ;) })) (while_statement "while( true ) {\n          local_34 = iVar12;\n          iVar11 = iVar11 + 1;\n          iVar7 = iVar11 * 4;\n          *(int *)(iVar5 + iVar7 + -4) = local_34;\n          if (uVar6 <= uVar14) break;\n          uVar8 = param_3 + uVar14;\n          iVar5 = param_3;\nLAB_000a7220:\n          param_3 = 0;\n          if (uVar6 < uVar8) {\n            param_3 = (uVar14 - uVar6) + iVar5;\n            iVar5 = uVar6 - uVar14;\n          }\n          iVar12 = (**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4);\n          iVar7 = local_30;\n          if (iVar12 == 0) {\n            iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;\n            local_34 = **(int **)(local_30 + 4);\n            if (param_5 == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }\n            else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }\n          }\n          param_4 = param_4 + iVar5;\n          if (param_3 == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar12 != 0) goto LAB_000a7304;\n          if (local_34 == 0) goto LAB_000a7494;\n          iVar5 = *(int *)(param_1 + 0xc);\n          iVar12 = local_34;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          local_34 = iVar12;\n          iVar11 = iVar11 + 1;\n          iVar7 = iVar11 * 4;\n          *(int *)(iVar5 + iVar7 + -4) = local_34;\n          if (uVar6 <= uVar14) break;\n          uVar8 = param_3 + uVar14;\n          iVar5 = param_3;\nLAB_000a7220:\n          param_3 = 0;\n          if (uVar6 < uVar8) {\n            param_3 = (uVar14 - uVar6) + iVar5;\n            iVar5 = uVar6 - uVar14;\n          }\n          iVar12 = (**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4);\n          iVar7 = local_30;\n          if (iVar12 == 0) {\n            iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;\n            local_34 = **(int **)(local_30 + 4);\n            if (param_5 == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }\n            else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }\n          }\n          param_4 = param_4 + iVar5;\n          if (param_3 == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar12 != 0) goto LAB_000a7304;\n          if (local_34 == 0) goto LAB_000a7494;\n          iVar5 = *(int *)(param_1 + 0xc);\n          iVar12 = local_34;\n        }" { (expression_statement "local_34 = iVar12;" (assignment_expression "local_34 = iVar12" identifier = identifier) ;) (expression_statement "iVar11 = iVar11 + 1;" (assignment_expression "iVar11 = iVar11 + 1" identifier = (binary_expression "iVar11 + 1" identifier + number_literal)) ;) (expression_statement "iVar7 = iVar11 * 4;" (assignment_expression "iVar7 = iVar11 * 4" identifier = (binary_expression "iVar11 * 4" identifier * number_literal)) ;) (expression_statement "*(int *)(iVar5 + iVar7 + -4) = local_34;" (assignment_expression "*(int *)(iVar5 + iVar7 + -4) = local_34" (pointer_expression "*(int *)(iVar5 + iVar7 + -4)" * (cast_expression "(int *)(iVar5 + iVar7 + -4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + iVar7 + -4)" ( (binary_expression "iVar5 + iVar7 + -4" (binary_expression "iVar5 + iVar7" identifier + identifier) + number_literal) )))) = identifier) ;) (if_statement "if (uVar6 <= uVar14) break;" if (parenthesized_expression "(uVar6 <= uVar14)" ( (binary_expression "uVar6 <= uVar14" identifier <= identifier) )) (break_statement "break;" break ;)) (expression_statement "uVar8 = param_3 + uVar14;" (assignment_expression "uVar8 = param_3 + uVar14" identifier = (binary_expression "param_3 + uVar14" identifier + identifier)) ;) (expression_statement "iVar5 = param_3;" (assignment_expression "iVar5 = param_3" identifier = identifier) ;) (labeled_statement "LAB_000a7220:\n          param_3 = 0;" statement_identifier : (expression_statement "param_3 = 0;" (assignment_expression "param_3 = 0" identifier = number_literal) ;)) (if_statement "if (uVar6 < uVar8) {\n            param_3 = (uVar14 - uVar6) + iVar5;\n            iVar5 = uVar6 - uVar14;\n          }" if (parenthesized_expression "(uVar6 < uVar8)" ( (binary_expression "uVar6 < uVar8" identifier < identifier) )) (compound_statement "{\n            param_3 = (uVar14 - uVar6) + iVar5;\n            iVar5 = uVar6 - uVar14;\n          }" { (expression_statement "param_3 = (uVar14 - uVar6) + iVar5;" (assignment_expression "param_3 = (uVar14 - uVar6) + iVar5" identifier = (binary_expression "(uVar14 - uVar6) + iVar5" (parenthesized_expression "(uVar14 - uVar6)" ( (binary_expression "uVar14 - uVar6" identifier - identifier) )) + identifier)) ;) (expression_statement "iVar5 = uVar6 - uVar14;" (assignment_expression "iVar5 = uVar6 - uVar14" identifier = (binary_expression "uVar6 - uVar14" identifier - identifier)) ;) })) (expression_statement "iVar12 = (**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4);" (assignment_expression "iVar12 = (**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4)" identifier = (call_expression "(**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4)" (parenthesized_expression "(**(code **)(*piVar9 + 0xcc))" ( (pointer_expression "**(code **)(*piVar9 + 0xcc)" * (pointer_expression "*(code **)(*piVar9 + 0xcc)" * (cast_expression "(code **)(*piVar9 + 0xcc)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*piVar9 + 0xcc)" ( (binary_expression "*piVar9 + 0xcc" (pointer_expression "*piVar9" * identifier) + number_literal) ))))) )) (argument_list "(*piVar9,local_34,&local_30,uVar4)" ( (pointer_expression "*piVar9" * identifier) , identifier , (pointer_expression "&local_30" & identifier) , identifier )))) ;) (expression_statement "iVar7 = local_30;" (assignment_expression "iVar7 = local_30" identifier = identifier) ;) (if_statement "if (iVar12 == 0) {\n            iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;\n            local_34 = **(int **)(local_30 + 4);\n            if (param_5 == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }\n            else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }\n          }" if (parenthesized_expression "(iVar12 == 0)" ( (binary_expression "iVar12 == 0" identifier == number_literal) )) (compound_statement "{\n            iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;\n            local_34 = **(int **)(local_30 + 4);\n            if (param_5 == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }\n            else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }\n          }" { (expression_statement "iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;" (assignment_expression "iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4" identifier = (binary_expression "(int)*(int **)(local_30 + 4) + uVar14 + 4" (binary_expression "(int)*(int **)(local_30 + 4) + uVar14" (cast_expression "(int)*(int **)(local_30 + 4)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(int **)(local_30 + 4)" * (cast_expression "(int **)(local_30 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(local_30 + 4)" ( (binary_expression "local_30 + 4" identifier + number_literal) ))))) + identifier) + number_literal)) ;) (expression_statement "local_34 = **(int **)(local_30 + 4);" (assignment_expression "local_34 = **(int **)(local_30 + 4)" identifier = (pointer_expression "**(int **)(local_30 + 4)" * (pointer_expression "*(int **)(local_30 + 4)" * (cast_expression "(int **)(local_30 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(local_30 + 4)" ( (binary_expression "local_30 + 4" identifier + number_literal) )))))) ;) (if_statement "if (param_5 == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }\n            else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }" if (parenthesized_expression "(param_5 == 0)" ( (binary_expression "param_5 == 0" identifier == number_literal) )) (compound_statement "{\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }" { (expression_statement "(*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);" (call_expression "(*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5)" (parenthesized_expression "(*(code *)PTR_memcpy_0015ca34)" ( (pointer_expression "*(code *)PTR_memcpy_0015ca34" * (cast_expression "(code *)PTR_memcpy_0015ca34" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(param_4,iVar10,iVar5)" ( identifier , identifier , identifier ))) ;) (expression_statement "uVar14 = 0;" (assignment_expression "uVar14 = 0" identifier = number_literal) ;) (expression_statement "(*(code *)(puVar1 + -0x138c))(iVar7);" (call_expression "(*(code *)(puVar1 + -0x138c))(iVar7)" (parenthesized_expression "(*(code *)(puVar1 + -0x138c))" ( (pointer_expression "*(code *)(puVar1 + -0x138c)" * (cast_expression "(code *)(puVar1 + -0x138c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0x138c)" ( (binary_expression "puVar1 + -0x138c" identifier + number_literal) )))) )) (argument_list "(iVar7)" ( identifier ))) ;) (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" identifier = number_literal) ;) }) (else_clause "else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }" else (compound_statement "{\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }" { (expression_statement "iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);" (assignment_expression "iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30)" identifier = (call_expression "(*(code *)(puVar2 + -0x30a4))(local_30)" (parenthesized_expression "(*(code *)(puVar2 + -0x30a4))" ( (pointer_expression "*(code *)(puVar2 + -0x30a4)" * (cast_expression "(code *)(puVar2 + -0x30a4)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + -0x30a4)" ( (binary_expression "puVar2 + -0x30a4" identifier + number_literal) )))) )) (argument_list "(local_30)" ( identifier )))) ;) (if_statement "if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }" if (parenthesized_expression "(iVar12 == 0)" ( (binary_expression "iVar12 == 0" identifier == number_literal) )) (compound_statement "{\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }" { (expression_statement "(*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);" (call_expression "(*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5)" (parenthesized_expression "(*(code *)PTR_memcpy_0015ca34)" ( (pointer_expression "*(code *)PTR_memcpy_0015ca34" * (cast_expression "(code *)PTR_memcpy_0015ca34" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar10,param_4,iVar5)" ( identifier , identifier , identifier ))) ;) })) (expression_statement "uVar14 = 0;" (assignment_expression "uVar14 = 0" identifier = number_literal) ;) (if_statement "if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }" if (parenthesized_expression "(local_30 != 0)" ( (binary_expression "local_30 != 0" identifier != number_literal) )) (compound_statement "{\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }" { (expression_statement "(*(code *)(puVar1 + -0x138c))(local_30);" (call_expression "(*(code *)(puVar1 + -0x138c))(local_30)" (parenthesized_expression "(*(code *)(puVar1 + -0x138c))" ( (pointer_expression "*(code *)(puVar1 + -0x138c)" * (cast_expression "(code *)(puVar1 + -0x138c)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + -0x138c)" ( (binary_expression "puVar1 + -0x138c" identifier + number_literal) )))) )) (argument_list "(local_30)" ( identifier ))) ;) })) }))) })) (expression_statement "param_4 = param_4 + iVar5;" (assignment_expression "param_4 = param_4 + iVar5" identifier = (binary_expression "param_4 + iVar5" identifier + identifier)) ;) (if_statement "if (param_3 == 0) goto LAB_000a7304;" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000a7304;" goto statement_identifier ;)) (labeled_statement "LAB_000a7268:\n          if (iVar12 != 0) goto LAB_000a7304;" statement_identifier : (if_statement "if (iVar12 != 0) goto LAB_000a7304;" if (parenthesized_expression "(iVar12 != 0)" ( (binary_expression "iVar12 != 0" identifier != number_literal) )) (goto_statement "goto LAB_000a7304;" goto statement_identifier ;))) (if_statement "if (local_34 == 0) goto LAB_000a7494;" if (parenthesized_expression "(local_34 == 0)" ( (binary_expression "local_34 == 0" identifier == number_literal) )) (goto_statement "goto LAB_000a7494;" goto statement_identifier ;)) (expression_statement "iVar5 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar5 = *(int *)(param_1 + 0xc)" identifier = (pointer_expression "*(int *)(param_1 + 0xc)" * (cast_expression "(int *)(param_1 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xc)" ( (binary_expression "param_1 + 0xc" identifier + number_literal) ))))) ;) (expression_statement "iVar12 = local_34;" (assignment_expression "iVar12 = local_34" identifier = identifier) ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })) (labeled_statement "LAB_000a7494:\n    uVar4 = 0x1094f;" statement_identifier : (expression_statement "uVar4 = 0x1094f;" (assignment_expression "uVar4 = 0x1094f" identifier = number_literal) ;)) }))) (expression_statement "iVar12 = (*(code *)(PTR_LAB_0015c744 + -0x6c90))(uVar4);" (assignment_expression "iVar12 = (*(code *)(PTR_LAB_0015c744 + -0x6c90))(uVar4)" identifier = (call_expression "(*(code *)(PTR_LAB_0015c744 + -0x6c90))(uVar4)" (parenthesized_expression "(*(code *)(PTR_LAB_0015c744 + -0x6c90))" ( (pointer_expression "*(code *)(PTR_LAB_0015c744 + -0x6c90)" * (cast_expression "(code *)(PTR_LAB_0015c744 + -0x6c90)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015c744 + -0x6c90)" ( (binary_expression "PTR_LAB_0015c744 + -0x6c90" identifier + number_literal) )))) )) (argument_list "(uVar4)" ( identifier )))) ;) (labeled_statement "LAB_000a7304:\n  if (local_2c == *(int *)puVar13) {\n    return iVar12;\n  }" statement_identifier : (if_statement "if (local_2c == *(int *)puVar13) {\n    return iVar12;\n  }" if (parenthesized_expression "(local_2c == *(int *)puVar13)" ( (binary_expression "local_2c == *(int *)puVar13" identifier == (pointer_expression "*(int *)puVar13" * (cast_expression "(int *)puVar13" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return iVar12;\n  }" { (return_statement "return iVar12;" return identifier ;) }))) (expression_statement "iVar11 = local_2c;" (assignment_expression "iVar11 = local_2c" identifier = identifier) ;) (expression_statement "puVar13 = PTR___stack_chk_fail_0015ca14;" (assignment_expression "puVar13 = PTR___stack_chk_fail_0015ca14" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0015ca14)();" (call_expression "(*(code *)PTR___stack_chk_fail_0015ca14)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0015ca14)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0015ca14" * (cast_expression "(code *)PTR___stack_chk_fail_0015ca14" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "(*(code *)(*(int *)(puVar13 + 0xb51b8) + -0xc70))();" (call_expression "(*(code *)(*(int *)(puVar13 + 0xb51b8) + -0xc70))()" (parenthesized_expression "(*(code *)(*(int *)(puVar13 + 0xb51b8) + -0xc70))" ( (pointer_expression "*(code *)(*(int *)(puVar13 + 0xb51b8) + -0xc70)" * (cast_expression "(code *)(*(int *)(puVar13 + 0xb51b8) + -0xc70)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar13 + 0xb51b8) + -0xc70)" ( (binary_expression "*(int *)(puVar13 + 0xb51b8) + -0xc70" (pointer_expression "*(int *)(puVar13 + 0xb51b8)" * (cast_expression "(int *)(puVar13 + 0xb51b8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar13 + 0xb51b8)" ( (binary_expression "puVar13 + 0xb51b8" identifier + number_literal) )))) + number_literal) )))) )) (argument_list "()" ( ))) ;) (expression_statement "uVar6 = *(uint *)(iVar11 + 0x2c);" (assignment_expression "uVar6 = *(uint *)(iVar11 + 0x2c)" identifier = (pointer_expression "*(uint *)(iVar11 + 0x2c)" * (cast_expression "(uint *)(iVar11 + 0x2c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar11 + 0x2c)" ( (binary_expression "iVar11 + 0x2c" identifier + number_literal) ))))) ;) (expression_statement "*(undefined4 *)(iVar11 + 0x38) = 0;" (assignment_expression "*(undefined4 *)(iVar11 + 0x38) = 0" (pointer_expression "*(undefined4 *)(iVar11 + 0x38)" * (cast_expression "(undefined4 *)(iVar11 + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar11 + 0x38)" ( (binary_expression "iVar11 + 0x38" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(uint *)(iVar11 + 0x3c) = uVar6;" (assignment_expression "*(uint *)(iVar11 + 0x3c) = uVar6" (pointer_expression "*(uint *)(iVar11 + 0x3c)" * (cast_expression "(uint *)(iVar11 + 0x3c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar11 + 0x3c)" ( (binary_expression "iVar11 + 0x3c" identifier + number_literal) )))) = identifier) ;) (expression_statement "iVar12 = (*(code *)(*(int *)(puVar13 + 0xb5228) + -0x5370))(uVar6 + 0x11 < uVar6);" (assignment_expression "iVar12 = (*(code *)(*(int *)(puVar13 + 0xb5228) + -0x5370))(uVar6 + 0x11 < uVar6)" identifier = (call_expression "(*(code *)(*(int *)(puVar13 + 0xb5228) + -0x5370))(uVar6 + 0x11 < uVar6)" (parenthesized_expression "(*(code *)(*(int *)(puVar13 + 0xb5228) + -0x5370))" ( (pointer_expression "*(code *)(*(int *)(puVar13 + 0xb5228) + -0x5370)" * (cast_expression "(code *)(*(int *)(puVar13 + 0xb5228) + -0x5370)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(puVar13 + 0xb5228) + -0x5370)" ( (binary_expression "*(int *)(puVar13 + 0xb5228) + -0x5370" (pointer_expression "*(int *)(puVar13 + 0xb5228)" * (cast_expression "(int *)(puVar13 + 0xb5228)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar13 + 0xb5228)" ( (binary_expression "puVar13 + 0xb5228" identifier + number_literal) )))) + number_literal) )))) )) (argument_list "(uVar6 + 0x11 < uVar6)" ( (binary_expression "uVar6 + 0x11 < uVar6" (binary_expression "uVar6 + 0x11" identifier + number_literal) < identifier) )))) ;) (if_statement "if (iVar12 == 0) {\n    return 7;\n  }" if (parenthesized_expression "(iVar12 == 0)" ( (binary_expression "iVar12 == 0" identifier == number_literal) )) (compound_statement "{\n    return 7;\n  }" { (return_statement "return 7;" return number_literal ;) })) (expression_statement "iVar5 = FUN_000a7054(iVar11,0,*(undefined4 *)(iVar11 + 0x3c),iVar12,0);" (assignment_expression "iVar5 = FUN_000a7054(iVar11,0,*(undefined4 *)(iVar11 + 0x3c),iVar12,0)" identifier = (call_expression "FUN_000a7054(iVar11,0,*(undefined4 *)(iVar11 + 0x3c),iVar12,0)" identifier (argument_list "(iVar11,0,*(undefined4 *)(iVar11 + 0x3c),iVar12,0)" ( identifier , number_literal , (pointer_expression "*(undefined4 *)(iVar11 + 0x3c)" * (cast_expression "(undefined4 *)(iVar11 + 0x3c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar11 + 0x3c)" ( (binary_expression "iVar11 + 0x3c" identifier + number_literal) )))) , identifier , number_literal )))) ;) (if_statement "if (iVar5 == 0) {\n    (**(code **)(puVar13 + 0xb5504))(iVar12 + *(int *)(iVar11 + 0x3c),0,0x11);\n    *(int *)(iVar11 + 0x10) = iVar12;\n    return 0;\n  }" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (compound_statement "{\n    (**(code **)(puVar13 + 0xb5504))(iVar12 + *(int *)(iVar11 + 0x3c),0,0x11);\n    *(int *)(iVar11 + 0x10) = iVar12;\n    return 0;\n  }" { (expression_statement "(**(code **)(puVar13 + 0xb5504))(iVar12 + *(int *)(iVar11 + 0x3c),0,0x11);" (call_expression "(**(code **)(puVar13 + 0xb5504))(iVar12 + *(int *)(iVar11 + 0x3c),0,0x11)" (parenthesized_expression "(**(code **)(puVar13 + 0xb5504))" ( (pointer_expression "**(code **)(puVar13 + 0xb5504)" * (pointer_expression "*(code **)(puVar13 + 0xb5504)" * (cast_expression "(code **)(puVar13 + 0xb5504)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar13 + 0xb5504)" ( (binary_expression "puVar13 + 0xb5504" identifier + number_literal) ))))) )) (argument_list "(iVar12 + *(int *)(iVar11 + 0x3c),0,0x11)" ( (binary_expression "iVar12 + *(int *)(iVar11 + 0x3c)" identifier + (pointer_expression "*(int *)(iVar11 + 0x3c)" * (cast_expression "(int *)(iVar11 + 0x3c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar11 + 0x3c)" ( (binary_expression "iVar11 + 0x3c" identifier + number_literal) ))))) , number_literal , number_literal ))) ;) (expression_statement "*(int *)(iVar11 + 0x10) = iVar12;" (assignment_expression "*(int *)(iVar11 + 0x10) = iVar12" (pointer_expression "*(int *)(iVar11 + 0x10)" * (cast_expression "(int *)(iVar11 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar11 + 0x10)" ( (binary_expression "iVar11 + 0x10" identifier + number_literal) )))) = identifier) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "(**(code **)(puVar13 + 0xb5138))(iVar12);" (call_expression "(**(code **)(puVar13 + 0xb5138))(iVar12)" (parenthesized_expression "(**(code **)(puVar13 + 0xb5138))" ( (pointer_expression "**(code **)(puVar13 + 0xb5138)" * (pointer_expression "*(code **)(puVar13 + 0xb5138)" * (cast_expression "(code **)(puVar13 + 0xb5138)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar13 + 0xb5138)" ( (binary_expression "puVar13 + 0xb5138" identifier + number_literal) ))))) )) (argument_list "(iVar12)" ( identifier ))) ;) (return_statement "return iVar5;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (subscript_expression IDENT [ LIT ]) - IDENT) < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < (binary_expression IDENT + IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;)) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (goto_statement goto statement_identifier ;) })) }))) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ LIT ]) - LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) + IDENT) )) - (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) / IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( IDENT )))) ;)) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (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 IDENT < (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT << LIT) )))) )) (goto_statement goto statement_identifier ;)) }))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , LIT , (binary_expression IDENT << LIT) ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( LIT ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT / IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT % IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;)) }))) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = IDENT) ;)) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (goto_statement goto statement_identifier ;)) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (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 + IDENT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( IDENT , IDENT , LIT , (pointer_expression & IDENT) )))) ;) (goto_statement goto statement_identifier ;) })) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT * LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + IDENT) + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( (binary_expression IDENT - IDENT) )) + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( (pointer_expression * IDENT) , IDENT , (pointer_expression & IDENT) , IDENT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + IDENT) + LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( IDENT ))) ;) })) }))) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (goto_statement goto statement_identifier ;))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) })) }) while (parenthesized_expression ( BOOL )) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) }))) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( IDENT )))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) )) (argument_list ( (binary_expression (binary_expression IDENT + LIT) < IDENT) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (binary_expression IDENT + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) , LIT , LIT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return LIT ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( IDENT ))) ;) (return_statement return IDENT ;) })))
(function_definition "int FUN_000a7054(int param_1,uint param_2,int param_3,int param_4,int param_5)\n\n{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  uint uVar6;\n  int iVar7;\n  uint uVar8;\n  int *piVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  undefined *puVar13;\n  uint uVar14;\n  int local_34;\n  int local_30;\n  int local_2c;\n  \n  puVar13 = PTR___stack_chk_guard_0015ca30;\n  iVar12 = *(int *)(param_1 + 0x74);\n  local_2c = *(int *)PTR___stack_chk_guard_0015ca30;\n  piVar9 = *(int **)(param_1 + 0x14);\n  (*(code *)(PTR_LAB_0015c66c + -0xc70))();\n  iVar11 = *(int *)(param_1 + 0x28);\n  uVar6 = (uint)*(ushort *)(param_1 + 0x30);\n  if (piVar9[9] - uVar6 < (uint)(iVar11 - *(int *)(iVar12 + 0x38))) {\n    uVar4 = 0x108be;\n  }\n  else {\n    if (param_2 < uVar6) {\n      if (uVar6 < param_2 + param_3) {\n        iVar5 = uVar6 - param_2;\n        if (param_5 != 0) goto LAB_000a7298;\nLAB_000a7354:\n        iVar7 = param_4;\n        iVar10 = iVar11 + param_2;\n      }\n      else {\n        iVar5 = param_3;\n        if (param_5 == 0) goto LAB_000a7354;\nLAB_000a7298:\n        iVar7 = iVar11 + param_2;\n        iVar12 = FUN_0009cf5c(*(undefined4 *)(iVar12 + 0x48));\n        iVar10 = param_4;\n        if (iVar12 != 0) goto LAB_000a7304;\n      }\n      param_3 = param_3 - iVar5;\n      (*(code *)PTR_memcpy_0015ca34)(iVar7,iVar10,iVar5);\n      param_4 = param_4 + iVar5;\n      param_2 = 0;\n      if (param_3 == 0) goto LAB_000a72dc;\n    }\n    else {\n      param_2 = param_2 - uVar6;\n      if (param_3 == 0) {\nLAB_000a72dc:\n        iVar12 = 0;\n        goto LAB_000a7304;\n      }\n    }\n    iVar12 = *(int *)(param_1 + 0xc);\n    uVar6 = piVar9[9] - 4;\n    local_34 = *(int *)(iVar11 + (uint)*(ushort *)(param_1 + 0x30));\n    if ((*(byte *)(param_1 + 1) & 4) == 0) {\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar14 = ((*(int *)(param_1 + 0x2c) + -1 + uVar6) - (uint)*(ushort *)(param_1 + 0x30)) / uVar6\n      ;\n      if (iVar12 == 0) {\nLAB_000a7368:\n        iVar12 = (*(code *)(PTR_LAB_0015c6dc + -0x2708))(iVar12);\n        if (iVar12 == 0) {\n          iVar12 = 7;\n          goto LAB_000a7304;\n        }\n        *(int *)(param_1 + 0xc) = iVar12;\n      }\n      else {\n        iVar11 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();\n        iVar12 = *(int *)(param_1 + 0xc);\n        if (iVar11 < (int)(uVar14 << 2)) goto LAB_000a7368;\n      }\n      (*(code *)PTR_memset_0015c9b8)(iVar12,0,uVar14 << 2);\n      *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) | 4;\n    }\n    else {\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar8 = param_2 / uVar6;\n      uVar14 = param_2 % uVar6;\n      iVar11 = *(int *)(iVar12 + uVar8 * 4);\n      if (iVar11 != 0) goto LAB_000a719c;\n    }\n    uVar8 = 0;\n    if (local_34 != 0) {\n      iVar12 = *(int *)(param_1 + 0xc);\n      uVar14 = param_2;\n      iVar11 = local_34;\nLAB_000a719c:\n      local_34 = iVar11;\n      puVar2 = PTR_DAT_0015c708;\n      puVar1 = PTR_LAB_0015c66c;\n      uVar4 = 2;\n      iVar11 = uVar8 + 1;\n      if (param_5 != 0) {\n        uVar4 = 0;\n      }\n      iVar7 = iVar11 * 4;\n      *(int *)(iVar12 + iVar7 + -4) = local_34;\n      puVar3 = PTR_LAB_0015c744;\n      uVar8 = param_3 + uVar14;\n      iVar5 = param_3;\n      if (uVar14 < uVar6) goto LAB_000a7220;\n      do {\n        iVar5 = *(int *)(param_1 + 0xc);\n        uVar14 = uVar14 - uVar6;\n        iVar12 = *(int *)(iVar5 + iVar7);\n        if (*(int *)(iVar5 + iVar7) == 0) {\n          iVar12 = (*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34);\n          goto LAB_000a7268;\n        }\n        while( true ) {\n          local_34 = iVar12;\n          iVar11 = iVar11 + 1;\n          iVar7 = iVar11 * 4;\n          *(int *)(iVar5 + iVar7 + -4) = local_34;\n          if (uVar6 <= uVar14) break;\n          uVar8 = param_3 + uVar14;\n          iVar5 = param_3;\nLAB_000a7220:\n          param_3 = 0;\n          if (uVar6 < uVar8) {\n            param_3 = (uVar14 - uVar6) + iVar5;\n            iVar5 = uVar6 - uVar14;\n          }\n          iVar12 = (**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4);\n          iVar7 = local_30;\n          if (iVar12 == 0) {\n            iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;\n            local_34 = **(int **)(local_30 + 4);\n            if (param_5 == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }\n            else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }\n          }\n          param_4 = param_4 + iVar5;\n          if (param_3 == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar12 != 0) goto LAB_000a7304;\n          if (local_34 == 0) goto LAB_000a7494;\n          iVar5 = *(int *)(param_1 + 0xc);\n          iVar12 = local_34;\n        }\n      } while( true );\n    }\nLAB_000a7494:\n    uVar4 = 0x1094f;\n  }\n  iVar12 = (*(code *)(PTR_LAB_0015c744 + -0x6c90))(uVar4);\nLAB_000a7304:\n  if (local_2c == *(int *)puVar13) {\n    return iVar12;\n  }\n  iVar11 = local_2c;\n  puVar13 = PTR___stack_chk_fail_0015ca14;\n  (*(code *)PTR___stack_chk_fail_0015ca14)();\n  (*(code *)(*(int *)(puVar13 + 0xb51b8) + -0xc70))();\n  uVar6 = *(uint *)(iVar11 + 0x2c);\n  *(undefined4 *)(iVar11 + 0x38) = 0;\n  *(uint *)(iVar11 + 0x3c) = uVar6;\n  iVar12 = (*(code *)(*(int *)(puVar13 + 0xb5228) + -0x5370))(uVar6 + 0x11 < uVar6);\n  if (iVar12 == 0) {\n    return 7;\n  }\n  iVar5 = FUN_000a7054(iVar11,0,*(undefined4 *)(iVar11 + 0x3c),iVar12,0);\n  if (iVar5 == 0) {\n    (**(code **)(puVar13 + 0xb5504))(iVar12 + *(int *)(iVar11 + 0x3c),0,0x11);\n    *(int *)(iVar11 + 0x10) = iVar12;\n    return 0;\n  }\n  (**(code **)(puVar13 + 0xb5138))(iVar12);\n  return iVar5;\n}" (primitive_type "int") (function_declarator "FUN_000a7054(int param_1,uint param_2,int param_3,int param_4,int param_5)" (identifier "FUN_000a7054") (parameter_list "(int param_1,uint param_2,int param_3,int param_4,int param_5)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "uint param_2" (type_identifier "uint") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  undefined *puVar2;\n  undefined *puVar3;\n  undefined4 uVar4;\n  int iVar5;\n  uint uVar6;\n  int iVar7;\n  uint uVar8;\n  int *piVar9;\n  int iVar10;\n  int iVar11;\n  int iVar12;\n  undefined *puVar13;\n  uint uVar14;\n  int local_34;\n  int local_30;\n  int local_2c;\n  \n  puVar13 = PTR___stack_chk_guard_0015ca30;\n  iVar12 = *(int *)(param_1 + 0x74);\n  local_2c = *(int *)PTR___stack_chk_guard_0015ca30;\n  piVar9 = *(int **)(param_1 + 0x14);\n  (*(code *)(PTR_LAB_0015c66c + -0xc70))();\n  iVar11 = *(int *)(param_1 + 0x28);\n  uVar6 = (uint)*(ushort *)(param_1 + 0x30);\n  if (piVar9[9] - uVar6 < (uint)(iVar11 - *(int *)(iVar12 + 0x38))) {\n    uVar4 = 0x108be;\n  }\n  else {\n    if (param_2 < uVar6) {\n      if (uVar6 < param_2 + param_3) {\n        iVar5 = uVar6 - param_2;\n        if (param_5 != 0) goto LAB_000a7298;\nLAB_000a7354:\n        iVar7 = param_4;\n        iVar10 = iVar11 + param_2;\n      }\n      else {\n        iVar5 = param_3;\n        if (param_5 == 0) goto LAB_000a7354;\nLAB_000a7298:\n        iVar7 = iVar11 + param_2;\n        iVar12 = FUN_0009cf5c(*(undefined4 *)(iVar12 + 0x48));\n        iVar10 = param_4;\n        if (iVar12 != 0) goto LAB_000a7304;\n      }\n      param_3 = param_3 - iVar5;\n      (*(code *)PTR_memcpy_0015ca34)(iVar7,iVar10,iVar5);\n      param_4 = param_4 + iVar5;\n      param_2 = 0;\n      if (param_3 == 0) goto LAB_000a72dc;\n    }\n    else {\n      param_2 = param_2 - uVar6;\n      if (param_3 == 0) {\nLAB_000a72dc:\n        iVar12 = 0;\n        goto LAB_000a7304;\n      }\n    }\n    iVar12 = *(int *)(param_1 + 0xc);\n    uVar6 = piVar9[9] - 4;\n    local_34 = *(int *)(iVar11 + (uint)*(ushort *)(param_1 + 0x30));\n    if ((*(byte *)(param_1 + 1) & 4) == 0) {\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar14 = ((*(int *)(param_1 + 0x2c) + -1 + uVar6) - (uint)*(ushort *)(param_1 + 0x30)) / uVar6\n      ;\n      if (iVar12 == 0) {\nLAB_000a7368:\n        iVar12 = (*(code *)(PTR_LAB_0015c6dc + -0x2708))(iVar12);\n        if (iVar12 == 0) {\n          iVar12 = 7;\n          goto LAB_000a7304;\n        }\n        *(int *)(param_1 + 0xc) = iVar12;\n      }\n      else {\n        iVar11 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();\n        iVar12 = *(int *)(param_1 + 0xc);\n        if (iVar11 < (int)(uVar14 << 2)) goto LAB_000a7368;\n      }\n      (*(code *)PTR_memset_0015c9b8)(iVar12,0,uVar14 << 2);\n      *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) | 4;\n    }\n    else {\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar8 = param_2 / uVar6;\n      uVar14 = param_2 % uVar6;\n      iVar11 = *(int *)(iVar12 + uVar8 * 4);\n      if (iVar11 != 0) goto LAB_000a719c;\n    }\n    uVar8 = 0;\n    if (local_34 != 0) {\n      iVar12 = *(int *)(param_1 + 0xc);\n      uVar14 = param_2;\n      iVar11 = local_34;\nLAB_000a719c:\n      local_34 = iVar11;\n      puVar2 = PTR_DAT_0015c708;\n      puVar1 = PTR_LAB_0015c66c;\n      uVar4 = 2;\n      iVar11 = uVar8 + 1;\n      if (param_5 != 0) {\n        uVar4 = 0;\n      }\n      iVar7 = iVar11 * 4;\n      *(int *)(iVar12 + iVar7 + -4) = local_34;\n      puVar3 = PTR_LAB_0015c744;\n      uVar8 = param_3 + uVar14;\n      iVar5 = param_3;\n      if (uVar14 < uVar6) goto LAB_000a7220;\n      do {\n        iVar5 = *(int *)(param_1 + 0xc);\n        uVar14 = uVar14 - uVar6;\n        iVar12 = *(int *)(iVar5 + iVar7);\n        if (*(int *)(iVar5 + iVar7) == 0) {\n          iVar12 = (*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34);\n          goto LAB_000a7268;\n        }\n        while( true ) {\n          local_34 = iVar12;\n          iVar11 = iVar11 + 1;\n          iVar7 = iVar11 * 4;\n          *(int *)(iVar5 + iVar7 + -4) = local_34;\n          if (uVar6 <= uVar14) break;\n          uVar8 = param_3 + uVar14;\n          iVar5 = param_3;\nLAB_000a7220:\n          param_3 = 0;\n          if (uVar6 < uVar8) {\n            param_3 = (uVar14 - uVar6) + iVar5;\n            iVar5 = uVar6 - uVar14;\n          }\n          iVar12 = (**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4);\n          iVar7 = local_30;\n          if (iVar12 == 0) {\n            iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;\n            local_34 = **(int **)(local_30 + 4);\n            if (param_5 == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }\n            else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }\n          }\n          param_4 = param_4 + iVar5;\n          if (param_3 == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar12 != 0) goto LAB_000a7304;\n          if (local_34 == 0) goto LAB_000a7494;\n          iVar5 = *(int *)(param_1 + 0xc);\n          iVar12 = local_34;\n        }\n      } while( true );\n    }\nLAB_000a7494:\n    uVar4 = 0x1094f;\n  }\n  iVar12 = (*(code *)(PTR_LAB_0015c744 + -0x6c90))(uVar4);\nLAB_000a7304:\n  if (local_2c == *(int *)puVar13) {\n    return iVar12;\n  }\n  iVar11 = local_2c;\n  puVar13 = PTR___stack_chk_fail_0015ca14;\n  (*(code *)PTR___stack_chk_fail_0015ca14)();\n  (*(code *)(*(int *)(puVar13 + 0xb51b8) + -0xc70))();\n  uVar6 = *(uint *)(iVar11 + 0x2c);\n  *(undefined4 *)(iVar11 + 0x38) = 0;\n  *(uint *)(iVar11 + 0x3c) = uVar6;\n  iVar12 = (*(code *)(*(int *)(puVar13 + 0xb5228) + -0x5370))(uVar6 + 0x11 < uVar6);\n  if (iVar12 == 0) {\n    return 7;\n  }\n  iVar5 = FUN_000a7054(iVar11,0,*(undefined4 *)(iVar11 + 0x3c),iVar12,0);\n  if (iVar5 == 0) {\n    (**(code **)(puVar13 + 0xb5504))(iVar12 + *(int *)(iVar11 + 0x3c),0,0x11);\n    *(int *)(iVar11 + 0x10) = iVar12;\n    return 0;\n  }\n  (**(code **)(puVar13 + 0xb5138))(iVar12);\n  return iVar5;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined *puVar2;" (type_identifier "undefined") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined *puVar3;" (type_identifier "undefined") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "undefined4 uVar4;" (type_identifier "undefined4") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (declaration "int *piVar9;" (primitive_type "int") (pointer_declarator "*piVar9" (* "*") (identifier "piVar9")) (; ";")) (declaration "int iVar10;" (primitive_type "int") (identifier "iVar10") (; ";")) (declaration "int iVar11;" (primitive_type "int") (identifier "iVar11") (; ";")) (declaration "int iVar12;" (primitive_type "int") (identifier "iVar12") (; ";")) (declaration "undefined *puVar13;" (type_identifier "undefined") (pointer_declarator "*puVar13" (* "*") (identifier "puVar13")) (; ";")) (declaration "uint uVar14;" (type_identifier "uint") (identifier "uVar14") (; ";")) (declaration "int local_34;" (primitive_type "int") (identifier "local_34") (; ";")) (declaration "int local_30;" (primitive_type "int") (identifier "local_30") (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (expression_statement "puVar13 = PTR___stack_chk_guard_0015ca30;" (assignment_expression "puVar13 = PTR___stack_chk_guard_0015ca30" (identifier "puVar13") (= "=") (identifier "PTR___stack_chk_guard_0015ca30")) (; ";")) (expression_statement "iVar12 = *(int *)(param_1 + 0x74);" (assignment_expression "iVar12 = *(int *)(param_1 + 0x74)" (identifier "iVar12") (= "=") (pointer_expression "*(int *)(param_1 + 0x74)" (* "*") (cast_expression "(int *)(param_1 + 0x74)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x74)" (( "(") (binary_expression "param_1 + 0x74" (identifier "param_1") (+ "+") (number_literal "0x74")) () ")"))))) (; ";")) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_0015ca30;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_0015ca30" (identifier "local_2c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_0015ca30" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_0015ca30" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_0015ca30")))) (; ";")) (expression_statement "piVar9 = *(int **)(param_1 + 0x14);" (assignment_expression "piVar9 = *(int **)(param_1 + 0x14)" (identifier "piVar9") (= "=") (pointer_expression "*(int **)(param_1 + 0x14)" (* "*") (cast_expression "(int **)(param_1 + 0x14)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x14)" (( "(") (binary_expression "param_1 + 0x14" (identifier "param_1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "(*(code *)(PTR_LAB_0015c66c + -0xc70))();" (call_expression "(*(code *)(PTR_LAB_0015c66c + -0xc70))()" (parenthesized_expression "(*(code *)(PTR_LAB_0015c66c + -0xc70))" (( "(") (pointer_expression "*(code *)(PTR_LAB_0015c66c + -0xc70)" (* "*") (cast_expression "(code *)(PTR_LAB_0015c66c + -0xc70)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_0015c66c + -0xc70)" (( "(") (binary_expression "PTR_LAB_0015c66c + -0xc70" (identifier "PTR_LAB_0015c66c") (+ "+") (number_literal "-0xc70")) () ")")))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar11 = *(int *)(param_1 + 0x28);" (assignment_expression "iVar11 = *(int *)(param_1 + 0x28)" (identifier "iVar11") (= "=") (pointer_expression "*(int *)(param_1 + 0x28)" (* "*") (cast_expression "(int *)(param_1 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x28)" (( "(") (binary_expression "param_1 + 0x28" (identifier "param_1") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "uVar6 = (uint)*(ushort *)(param_1 + 0x30);" (assignment_expression "uVar6 = (uint)*(ushort *)(param_1 + 0x30)" (identifier "uVar6") (= "=") (binary_expression "(uint)*(ushort *)(param_1 + 0x30)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(ushort *)(param_1 + 0x30)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (if_statement "if (piVar9[9] - uVar6 < (uint)(iVar11 - *(int *)(iVar12 + 0x38))) {\n    uVar4 = 0x108be;\n  }\n  else {\n    if (param_2 < uVar6) {\n      if (uVar6 < param_2 + param_3) {\n        iVar5 = uVar6 - param_2;\n        if (param_5 != 0) goto LAB_000a7298;\nLAB_000a7354:\n        iVar7 = param_4;\n        iVar10 = iVar11 + param_2;\n      }\n      else {\n        iVar5 = param_3;\n        if (param_5 == 0) goto LAB_000a7354;\nLAB_000a7298:\n        iVar7 = iVar11 + param_2;\n        iVar12 = FUN_0009cf5c(*(undefined4 *)(iVar12 + 0x48));\n        iVar10 = param_4;\n        if (iVar12 != 0) goto LAB_000a7304;\n      }\n      param_3 = param_3 - iVar5;\n      (*(code *)PTR_memcpy_0015ca34)(iVar7,iVar10,iVar5);\n      param_4 = param_4 + iVar5;\n      param_2 = 0;\n      if (param_3 == 0) goto LAB_000a72dc;\n    }\n    else {\n      param_2 = param_2 - uVar6;\n      if (param_3 == 0) {\nLAB_000a72dc:\n        iVar12 = 0;\n        goto LAB_000a7304;\n      }\n    }\n    iVar12 = *(int *)(param_1 + 0xc);\n    uVar6 = piVar9[9] - 4;\n    local_34 = *(int *)(iVar11 + (uint)*(ushort *)(param_1 + 0x30));\n    if ((*(byte *)(param_1 + 1) & 4) == 0) {\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar14 = ((*(int *)(param_1 + 0x2c) + -1 + uVar6) - (uint)*(ushort *)(param_1 + 0x30)) / uVar6\n      ;\n      if (iVar12 == 0) {\nLAB_000a7368:\n        iVar12 = (*(code *)(PTR_LAB_0015c6dc + -0x2708))(iVar12);\n        if (iVar12 == 0) {\n          iVar12 = 7;\n          goto LAB_000a7304;\n        }\n        *(int *)(param_1 + 0xc) = iVar12;\n      }\n      else {\n        iVar11 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();\n        iVar12 = *(int *)(param_1 + 0xc);\n        if (iVar11 < (int)(uVar14 << 2)) goto LAB_000a7368;\n      }\n      (*(code *)PTR_memset_0015c9b8)(iVar12,0,uVar14 << 2);\n      *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) | 4;\n    }\n    else {\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar8 = param_2 / uVar6;\n      uVar14 = param_2 % uVar6;\n      iVar11 = *(int *)(iVar12 + uVar8 * 4);\n      if (iVar11 != 0) goto LAB_000a719c;\n    }\n    uVar8 = 0;\n    if (local_34 != 0) {\n      iVar12 = *(int *)(param_1 + 0xc);\n      uVar14 = param_2;\n      iVar11 = local_34;\nLAB_000a719c:\n      local_34 = iVar11;\n      puVar2 = PTR_DAT_0015c708;\n      puVar1 = PTR_LAB_0015c66c;\n      uVar4 = 2;\n      iVar11 = uVar8 + 1;\n      if (param_5 != 0) {\n        uVar4 = 0;\n      }\n      iVar7 = iVar11 * 4;\n      *(int *)(iVar12 + iVar7 + -4) = local_34;\n      puVar3 = PTR_LAB_0015c744;\n      uVar8 = param_3 + uVar14;\n      iVar5 = param_3;\n      if (uVar14 < uVar6) goto LAB_000a7220;\n      do {\n        iVar5 = *(int *)(param_1 + 0xc);\n        uVar14 = uVar14 - uVar6;\n        iVar12 = *(int *)(iVar5 + iVar7);\n        if (*(int *)(iVar5 + iVar7) == 0) {\n          iVar12 = (*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34);\n          goto LAB_000a7268;\n        }\n        while( true ) {\n          local_34 = iVar12;\n          iVar11 = iVar11 + 1;\n          iVar7 = iVar11 * 4;\n          *(int *)(iVar5 + iVar7 + -4) = local_34;\n          if (uVar6 <= uVar14) break;\n          uVar8 = param_3 + uVar14;\n          iVar5 = param_3;\nLAB_000a7220:\n          param_3 = 0;\n          if (uVar6 < uVar8) {\n            param_3 = (uVar14 - uVar6) + iVar5;\n            iVar5 = uVar6 - uVar14;\n          }\n          iVar12 = (**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4);\n          iVar7 = local_30;\n          if (iVar12 == 0) {\n            iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;\n            local_34 = **(int **)(local_30 + 4);\n            if (param_5 == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }\n            else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }\n          }\n          param_4 = param_4 + iVar5;\n          if (param_3 == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar12 != 0) goto LAB_000a7304;\n          if (local_34 == 0) goto LAB_000a7494;\n          iVar5 = *(int *)(param_1 + 0xc);\n          iVar12 = local_34;\n        }\n      } while( true );\n    }\nLAB_000a7494:\n    uVar4 = 0x1094f;\n  }" (if "if") (parenthesized_expression "(piVar9[9] - uVar6 < (uint)(iVar11 - *(int *)(iVar12 + 0x38)))" (( "(") (binary_expression "piVar9[9] - uVar6 < (uint)(iVar11 - *(int *)(iVar12 + 0x38))" (binary_expression "piVar9[9] - uVar6" (subscript_expression "piVar9[9]" (identifier "piVar9") ([ "[") (number_literal "9") (] "]")) (- "-") (identifier "uVar6")) (< "<") (call_expression "(uint)(iVar11 - *(int *)(iVar12 + 0x38))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(iVar11 - *(int *)(iVar12 + 0x38))" (( "(") (binary_expression "iVar11 - *(int *)(iVar12 + 0x38)" (identifier "iVar11") (- "-") (pointer_expression "*(int *)(iVar12 + 0x38)" (* "*") (cast_expression "(int *)(iVar12 + 0x38)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar12 + 0x38)" (( "(") (binary_expression "iVar12 + 0x38" (identifier "iVar12") (+ "+") (number_literal "0x38")) () ")"))))) () ")")))) () ")")) (compound_statement "{\n    uVar4 = 0x108be;\n  }" ({ "{") (expression_statement "uVar4 = 0x108be;" (assignment_expression "uVar4 = 0x108be" (identifier "uVar4") (= "=") (number_literal "0x108be")) (; ";")) (} "}")) (else_clause "else {\n    if (param_2 < uVar6) {\n      if (uVar6 < param_2 + param_3) {\n        iVar5 = uVar6 - param_2;\n        if (param_5 != 0) goto LAB_000a7298;\nLAB_000a7354:\n        iVar7 = param_4;\n        iVar10 = iVar11 + param_2;\n      }\n      else {\n        iVar5 = param_3;\n        if (param_5 == 0) goto LAB_000a7354;\nLAB_000a7298:\n        iVar7 = iVar11 + param_2;\n        iVar12 = FUN_0009cf5c(*(undefined4 *)(iVar12 + 0x48));\n        iVar10 = param_4;\n        if (iVar12 != 0) goto LAB_000a7304;\n      }\n      param_3 = param_3 - iVar5;\n      (*(code *)PTR_memcpy_0015ca34)(iVar7,iVar10,iVar5);\n      param_4 = param_4 + iVar5;\n      param_2 = 0;\n      if (param_3 == 0) goto LAB_000a72dc;\n    }\n    else {\n      param_2 = param_2 - uVar6;\n      if (param_3 == 0) {\nLAB_000a72dc:\n        iVar12 = 0;\n        goto LAB_000a7304;\n      }\n    }\n    iVar12 = *(int *)(param_1 + 0xc);\n    uVar6 = piVar9[9] - 4;\n    local_34 = *(int *)(iVar11 + (uint)*(ushort *)(param_1 + 0x30));\n    if ((*(byte *)(param_1 + 1) & 4) == 0) {\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar14 = ((*(int *)(param_1 + 0x2c) + -1 + uVar6) - (uint)*(ushort *)(param_1 + 0x30)) / uVar6\n      ;\n      if (iVar12 == 0) {\nLAB_000a7368:\n        iVar12 = (*(code *)(PTR_LAB_0015c6dc + -0x2708))(iVar12);\n        if (iVar12 == 0) {\n          iVar12 = 7;\n          goto LAB_000a7304;\n        }\n        *(int *)(param_1 + 0xc) = iVar12;\n      }\n      else {\n        iVar11 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();\n        iVar12 = *(int *)(param_1 + 0xc);\n        if (iVar11 < (int)(uVar14 << 2)) goto LAB_000a7368;\n      }\n      (*(code *)PTR_memset_0015c9b8)(iVar12,0,uVar14 << 2);\n      *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) | 4;\n    }\n    else {\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar8 = param_2 / uVar6;\n      uVar14 = param_2 % uVar6;\n      iVar11 = *(int *)(iVar12 + uVar8 * 4);\n      if (iVar11 != 0) goto LAB_000a719c;\n    }\n    uVar8 = 0;\n    if (local_34 != 0) {\n      iVar12 = *(int *)(param_1 + 0xc);\n      uVar14 = param_2;\n      iVar11 = local_34;\nLAB_000a719c:\n      local_34 = iVar11;\n      puVar2 = PTR_DAT_0015c708;\n      puVar1 = PTR_LAB_0015c66c;\n      uVar4 = 2;\n      iVar11 = uVar8 + 1;\n      if (param_5 != 0) {\n        uVar4 = 0;\n      }\n      iVar7 = iVar11 * 4;\n      *(int *)(iVar12 + iVar7 + -4) = local_34;\n      puVar3 = PTR_LAB_0015c744;\n      uVar8 = param_3 + uVar14;\n      iVar5 = param_3;\n      if (uVar14 < uVar6) goto LAB_000a7220;\n      do {\n        iVar5 = *(int *)(param_1 + 0xc);\n        uVar14 = uVar14 - uVar6;\n        iVar12 = *(int *)(iVar5 + iVar7);\n        if (*(int *)(iVar5 + iVar7) == 0) {\n          iVar12 = (*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34);\n          goto LAB_000a7268;\n        }\n        while( true ) {\n          local_34 = iVar12;\n          iVar11 = iVar11 + 1;\n          iVar7 = iVar11 * 4;\n          *(int *)(iVar5 + iVar7 + -4) = local_34;\n          if (uVar6 <= uVar14) break;\n          uVar8 = param_3 + uVar14;\n          iVar5 = param_3;\nLAB_000a7220:\n          param_3 = 0;\n          if (uVar6 < uVar8) {\n            param_3 = (uVar14 - uVar6) + iVar5;\n            iVar5 = uVar6 - uVar14;\n          }\n          iVar12 = (**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4);\n          iVar7 = local_30;\n          if (iVar12 == 0) {\n            iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;\n            local_34 = **(int **)(local_30 + 4);\n            if (param_5 == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }\n            else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }\n          }\n          param_4 = param_4 + iVar5;\n          if (param_3 == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar12 != 0) goto LAB_000a7304;\n          if (local_34 == 0) goto LAB_000a7494;\n          iVar5 = *(int *)(param_1 + 0xc);\n          iVar12 = local_34;\n        }\n      } while( true );\n    }\nLAB_000a7494:\n    uVar4 = 0x1094f;\n  }" (else "else") (compound_statement "{\n    if (param_2 < uVar6) {\n      if (uVar6 < param_2 + param_3) {\n        iVar5 = uVar6 - param_2;\n        if (param_5 != 0) goto LAB_000a7298;\nLAB_000a7354:\n        iVar7 = param_4;\n        iVar10 = iVar11 + param_2;\n      }\n      else {\n        iVar5 = param_3;\n        if (param_5 == 0) goto LAB_000a7354;\nLAB_000a7298:\n        iVar7 = iVar11 + param_2;\n        iVar12 = FUN_0009cf5c(*(undefined4 *)(iVar12 + 0x48));\n        iVar10 = param_4;\n        if (iVar12 != 0) goto LAB_000a7304;\n      }\n      param_3 = param_3 - iVar5;\n      (*(code *)PTR_memcpy_0015ca34)(iVar7,iVar10,iVar5);\n      param_4 = param_4 + iVar5;\n      param_2 = 0;\n      if (param_3 == 0) goto LAB_000a72dc;\n    }\n    else {\n      param_2 = param_2 - uVar6;\n      if (param_3 == 0) {\nLAB_000a72dc:\n        iVar12 = 0;\n        goto LAB_000a7304;\n      }\n    }\n    iVar12 = *(int *)(param_1 + 0xc);\n    uVar6 = piVar9[9] - 4;\n    local_34 = *(int *)(iVar11 + (uint)*(ushort *)(param_1 + 0x30));\n    if ((*(byte *)(param_1 + 1) & 4) == 0) {\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar14 = ((*(int *)(param_1 + 0x2c) + -1 + uVar6) - (uint)*(ushort *)(param_1 + 0x30)) / uVar6\n      ;\n      if (iVar12 == 0) {\nLAB_000a7368:\n        iVar12 = (*(code *)(PTR_LAB_0015c6dc + -0x2708))(iVar12);\n        if (iVar12 == 0) {\n          iVar12 = 7;\n          goto LAB_000a7304;\n        }\n        *(int *)(param_1 + 0xc) = iVar12;\n      }\n      else {\n        iVar11 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();\n        iVar12 = *(int *)(param_1 + 0xc);\n        if (iVar11 < (int)(uVar14 << 2)) goto LAB_000a7368;\n      }\n      (*(code *)PTR_memset_0015c9b8)(iVar12,0,uVar14 << 2);\n      *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) | 4;\n    }\n    else {\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar8 = param_2 / uVar6;\n      uVar14 = param_2 % uVar6;\n      iVar11 = *(int *)(iVar12 + uVar8 * 4);\n      if (iVar11 != 0) goto LAB_000a719c;\n    }\n    uVar8 = 0;\n    if (local_34 != 0) {\n      iVar12 = *(int *)(param_1 + 0xc);\n      uVar14 = param_2;\n      iVar11 = local_34;\nLAB_000a719c:\n      local_34 = iVar11;\n      puVar2 = PTR_DAT_0015c708;\n      puVar1 = PTR_LAB_0015c66c;\n      uVar4 = 2;\n      iVar11 = uVar8 + 1;\n      if (param_5 != 0) {\n        uVar4 = 0;\n      }\n      iVar7 = iVar11 * 4;\n      *(int *)(iVar12 + iVar7 + -4) = local_34;\n      puVar3 = PTR_LAB_0015c744;\n      uVar8 = param_3 + uVar14;\n      iVar5 = param_3;\n      if (uVar14 < uVar6) goto LAB_000a7220;\n      do {\n        iVar5 = *(int *)(param_1 + 0xc);\n        uVar14 = uVar14 - uVar6;\n        iVar12 = *(int *)(iVar5 + iVar7);\n        if (*(int *)(iVar5 + iVar7) == 0) {\n          iVar12 = (*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34);\n          goto LAB_000a7268;\n        }\n        while( true ) {\n          local_34 = iVar12;\n          iVar11 = iVar11 + 1;\n          iVar7 = iVar11 * 4;\n          *(int *)(iVar5 + iVar7 + -4) = local_34;\n          if (uVar6 <= uVar14) break;\n          uVar8 = param_3 + uVar14;\n          iVar5 = param_3;\nLAB_000a7220:\n          param_3 = 0;\n          if (uVar6 < uVar8) {\n            param_3 = (uVar14 - uVar6) + iVar5;\n            iVar5 = uVar6 - uVar14;\n          }\n          iVar12 = (**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4);\n          iVar7 = local_30;\n          if (iVar12 == 0) {\n            iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;\n            local_34 = **(int **)(local_30 + 4);\n            if (param_5 == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }\n            else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }\n          }\n          param_4 = param_4 + iVar5;\n          if (param_3 == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar12 != 0) goto LAB_000a7304;\n          if (local_34 == 0) goto LAB_000a7494;\n          iVar5 = *(int *)(param_1 + 0xc);\n          iVar12 = local_34;\n        }\n      } while( true );\n    }\nLAB_000a7494:\n    uVar4 = 0x1094f;\n  }" ({ "{") (if_statement "if (param_2 < uVar6) {\n      if (uVar6 < param_2 + param_3) {\n        iVar5 = uVar6 - param_2;\n        if (param_5 != 0) goto LAB_000a7298;\nLAB_000a7354:\n        iVar7 = param_4;\n        iVar10 = iVar11 + param_2;\n      }\n      else {\n        iVar5 = param_3;\n        if (param_5 == 0) goto LAB_000a7354;\nLAB_000a7298:\n        iVar7 = iVar11 + param_2;\n        iVar12 = FUN_0009cf5c(*(undefined4 *)(iVar12 + 0x48));\n        iVar10 = param_4;\n        if (iVar12 != 0) goto LAB_000a7304;\n      }\n      param_3 = param_3 - iVar5;\n      (*(code *)PTR_memcpy_0015ca34)(iVar7,iVar10,iVar5);\n      param_4 = param_4 + iVar5;\n      param_2 = 0;\n      if (param_3 == 0) goto LAB_000a72dc;\n    }\n    else {\n      param_2 = param_2 - uVar6;\n      if (param_3 == 0) {\nLAB_000a72dc:\n        iVar12 = 0;\n        goto LAB_000a7304;\n      }\n    }" (if "if") (parenthesized_expression "(param_2 < uVar6)" (( "(") (binary_expression "param_2 < uVar6" (identifier "param_2") (< "<") (identifier "uVar6")) () ")")) (compound_statement "{\n      if (uVar6 < param_2 + param_3) {\n        iVar5 = uVar6 - param_2;\n        if (param_5 != 0) goto LAB_000a7298;\nLAB_000a7354:\n        iVar7 = param_4;\n        iVar10 = iVar11 + param_2;\n      }\n      else {\n        iVar5 = param_3;\n        if (param_5 == 0) goto LAB_000a7354;\nLAB_000a7298:\n        iVar7 = iVar11 + param_2;\n        iVar12 = FUN_0009cf5c(*(undefined4 *)(iVar12 + 0x48));\n        iVar10 = param_4;\n        if (iVar12 != 0) goto LAB_000a7304;\n      }\n      param_3 = param_3 - iVar5;\n      (*(code *)PTR_memcpy_0015ca34)(iVar7,iVar10,iVar5);\n      param_4 = param_4 + iVar5;\n      param_2 = 0;\n      if (param_3 == 0) goto LAB_000a72dc;\n    }" ({ "{") (if_statement "if (uVar6 < param_2 + param_3) {\n        iVar5 = uVar6 - param_2;\n        if (param_5 != 0) goto LAB_000a7298;\nLAB_000a7354:\n        iVar7 = param_4;\n        iVar10 = iVar11 + param_2;\n      }\n      else {\n        iVar5 = param_3;\n        if (param_5 == 0) goto LAB_000a7354;\nLAB_000a7298:\n        iVar7 = iVar11 + param_2;\n        iVar12 = FUN_0009cf5c(*(undefined4 *)(iVar12 + 0x48));\n        iVar10 = param_4;\n        if (iVar12 != 0) goto LAB_000a7304;\n      }" (if "if") (parenthesized_expression "(uVar6 < param_2 + param_3)" (( "(") (binary_expression "uVar6 < param_2 + param_3" (identifier "uVar6") (< "<") (binary_expression "param_2 + param_3" (identifier "param_2") (+ "+") (identifier "param_3"))) () ")")) (compound_statement "{\n        iVar5 = uVar6 - param_2;\n        if (param_5 != 0) goto LAB_000a7298;\nLAB_000a7354:\n        iVar7 = param_4;\n        iVar10 = iVar11 + param_2;\n      }" ({ "{") (expression_statement "iVar5 = uVar6 - param_2;" (assignment_expression "iVar5 = uVar6 - param_2" (identifier "iVar5") (= "=") (binary_expression "uVar6 - param_2" (identifier "uVar6") (- "-") (identifier "param_2"))) (; ";")) (if_statement "if (param_5 != 0) goto LAB_000a7298;" (if "if") (parenthesized_expression "(param_5 != 0)" (( "(") (binary_expression "param_5 != 0" (identifier "param_5") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_000a7298;" (goto "goto") (statement_identifier "LAB_000a7298") (; ";"))) (labeled_statement "LAB_000a7354:\n        iVar7 = param_4;" (statement_identifier "LAB_000a7354") (: ":") (expression_statement "iVar7 = param_4;" (assignment_expression "iVar7 = param_4" (identifier "iVar7") (= "=") (identifier "param_4")) (; ";"))) (expression_statement "iVar10 = iVar11 + param_2;" (assignment_expression "iVar10 = iVar11 + param_2" (identifier "iVar10") (= "=") (binary_expression "iVar11 + param_2" (identifier "iVar11") (+ "+") (identifier "param_2"))) (; ";")) (} "}")) (else_clause "else {\n        iVar5 = param_3;\n        if (param_5 == 0) goto LAB_000a7354;\nLAB_000a7298:\n        iVar7 = iVar11 + param_2;\n        iVar12 = FUN_0009cf5c(*(undefined4 *)(iVar12 + 0x48));\n        iVar10 = param_4;\n        if (iVar12 != 0) goto LAB_000a7304;\n      }" (else "else") (compound_statement "{\n        iVar5 = param_3;\n        if (param_5 == 0) goto LAB_000a7354;\nLAB_000a7298:\n        iVar7 = iVar11 + param_2;\n        iVar12 = FUN_0009cf5c(*(undefined4 *)(iVar12 + 0x48));\n        iVar10 = param_4;\n        if (iVar12 != 0) goto LAB_000a7304;\n      }" ({ "{") (expression_statement "iVar5 = param_3;" (assignment_expression "iVar5 = param_3" (identifier "iVar5") (= "=") (identifier "param_3")) (; ";")) (if_statement "if (param_5 == 0) goto LAB_000a7354;" (if "if") (parenthesized_expression "(param_5 == 0)" (( "(") (binary_expression "param_5 == 0" (identifier "param_5") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000a7354;" (goto "goto") (statement_identifier "LAB_000a7354") (; ";"))) (labeled_statement "LAB_000a7298:\n        iVar7 = iVar11 + param_2;" (statement_identifier "LAB_000a7298") (: ":") (expression_statement "iVar7 = iVar11 + param_2;" (assignment_expression "iVar7 = iVar11 + param_2" (identifier "iVar7") (= "=") (binary_expression "iVar11 + param_2" (identifier "iVar11") (+ "+") (identifier "param_2"))) (; ";"))) (expression_statement "iVar12 = FUN_0009cf5c(*(undefined4 *)(iVar12 + 0x48));" (assignment_expression "iVar12 = FUN_0009cf5c(*(undefined4 *)(iVar12 + 0x48))" (identifier "iVar12") (= "=") (call_expression "FUN_0009cf5c(*(undefined4 *)(iVar12 + 0x48))" (identifier "FUN_0009cf5c") (argument_list "(*(undefined4 *)(iVar12 + 0x48))" (( "(") (pointer_expression "*(undefined4 *)(iVar12 + 0x48)" (* "*") (cast_expression "(undefined4 *)(iVar12 + 0x48)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar12 + 0x48)" (( "(") (binary_expression "iVar12 + 0x48" (identifier "iVar12") (+ "+") (number_literal "0x48")) () ")")))) () ")")))) (; ";")) (expression_statement "iVar10 = param_4;" (assignment_expression "iVar10 = param_4" (identifier "iVar10") (= "=") (identifier "param_4")) (; ";")) (if_statement "if (iVar12 != 0) goto LAB_000a7304;" (if "if") (parenthesized_expression "(iVar12 != 0)" (( "(") (binary_expression "iVar12 != 0" (identifier "iVar12") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_000a7304;" (goto "goto") (statement_identifier "LAB_000a7304") (; ";"))) (} "}")))) (expression_statement "param_3 = param_3 - iVar5;" (assignment_expression "param_3 = param_3 - iVar5" (identifier "param_3") (= "=") (binary_expression "param_3 - iVar5" (identifier "param_3") (- "-") (identifier "iVar5"))) (; ";")) (expression_statement "(*(code *)PTR_memcpy_0015ca34)(iVar7,iVar10,iVar5);" (call_expression "(*(code *)PTR_memcpy_0015ca34)(iVar7,iVar10,iVar5)" (parenthesized_expression "(*(code *)PTR_memcpy_0015ca34)" (( "(") (pointer_expression "*(code *)PTR_memcpy_0015ca34" (* "*") (cast_expression "(code *)PTR_memcpy_0015ca34" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_0015ca34"))) () ")")) (argument_list "(iVar7,iVar10,iVar5)" (( "(") (identifier "iVar7") (, ",") (identifier "iVar10") (, ",") (identifier "iVar5") () ")"))) (; ";")) (expression_statement "param_4 = param_4 + iVar5;" (assignment_expression "param_4 = param_4 + iVar5" (identifier "param_4") (= "=") (binary_expression "param_4 + iVar5" (identifier "param_4") (+ "+") (identifier "iVar5"))) (; ";")) (expression_statement "param_2 = 0;" (assignment_expression "param_2 = 0" (identifier "param_2") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_3 == 0) goto LAB_000a72dc;" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000a72dc;" (goto "goto") (statement_identifier "LAB_000a72dc") (; ";"))) (} "}")) (else_clause "else {\n      param_2 = param_2 - uVar6;\n      if (param_3 == 0) {\nLAB_000a72dc:\n        iVar12 = 0;\n        goto LAB_000a7304;\n      }\n    }" (else "else") (compound_statement "{\n      param_2 = param_2 - uVar6;\n      if (param_3 == 0) {\nLAB_000a72dc:\n        iVar12 = 0;\n        goto LAB_000a7304;\n      }\n    }" ({ "{") (expression_statement "param_2 = param_2 - uVar6;" (assignment_expression "param_2 = param_2 - uVar6" (identifier "param_2") (= "=") (binary_expression "param_2 - uVar6" (identifier "param_2") (- "-") (identifier "uVar6"))) (; ";")) (if_statement "if (param_3 == 0) {\nLAB_000a72dc:\n        iVar12 = 0;\n        goto LAB_000a7304;\n      }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_000a72dc:\n        iVar12 = 0;\n        goto LAB_000a7304;\n      }" ({ "{") (labeled_statement "LAB_000a72dc:\n        iVar12 = 0;" (statement_identifier "LAB_000a72dc") (: ":") (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" (identifier "iVar12") (= "=") (number_literal "0")) (; ";"))) (goto_statement "goto LAB_000a7304;" (goto "goto") (statement_identifier "LAB_000a7304") (; ";")) (} "}"))) (} "}")))) (expression_statement "iVar12 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar12 = *(int *)(param_1 + 0xc)" (identifier "iVar12") (= "=") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "uVar6 = piVar9[9] - 4;" (assignment_expression "uVar6 = piVar9[9] - 4" (identifier "uVar6") (= "=") (binary_expression "piVar9[9] - 4" (subscript_expression "piVar9[9]" (identifier "piVar9") ([ "[") (number_literal "9") (] "]")) (- "-") (number_literal "4"))) (; ";")) (expression_statement "local_34 = *(int *)(iVar11 + (uint)*(ushort *)(param_1 + 0x30));" (assignment_expression "local_34 = *(int *)(iVar11 + (uint)*(ushort *)(param_1 + 0x30))" (identifier "local_34") (= "=") (pointer_expression "*(int *)(iVar11 + (uint)*(ushort *)(param_1 + 0x30))" (* "*") (cast_expression "(int *)(iVar11 + (uint)*(ushort *)(param_1 + 0x30))" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar11 + (uint)*(ushort *)(param_1 + 0x30))" (( "(") (binary_expression "iVar11 + (uint)*(ushort *)(param_1 + 0x30)" (identifier "iVar11") (+ "+") (binary_expression "(uint)*(ushort *)(param_1 + 0x30)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(ushort *)(param_1 + 0x30)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")"))))) () ")"))))) (; ";")) (if_statement "if ((*(byte *)(param_1 + 1) & 4) == 0) {\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar14 = ((*(int *)(param_1 + 0x2c) + -1 + uVar6) - (uint)*(ushort *)(param_1 + 0x30)) / uVar6\n      ;\n      if (iVar12 == 0) {\nLAB_000a7368:\n        iVar12 = (*(code *)(PTR_LAB_0015c6dc + -0x2708))(iVar12);\n        if (iVar12 == 0) {\n          iVar12 = 7;\n          goto LAB_000a7304;\n        }\n        *(int *)(param_1 + 0xc) = iVar12;\n      }\n      else {\n        iVar11 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();\n        iVar12 = *(int *)(param_1 + 0xc);\n        if (iVar11 < (int)(uVar14 << 2)) goto LAB_000a7368;\n      }\n      (*(code *)PTR_memset_0015c9b8)(iVar12,0,uVar14 << 2);\n      *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) | 4;\n    }\n    else {\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar8 = param_2 / uVar6;\n      uVar14 = param_2 % uVar6;\n      iVar11 = *(int *)(iVar12 + uVar8 * 4);\n      if (iVar11 != 0) goto LAB_000a719c;\n    }" (if "if") (parenthesized_expression "((*(byte *)(param_1 + 1) & 4) == 0)" (( "(") (binary_expression "(*(byte *)(param_1 + 1) & 4) == 0" (parenthesized_expression "(*(byte *)(param_1 + 1) & 4)" (( "(") (binary_expression "*(byte *)(param_1 + 1) & 4" (pointer_expression "*(byte *)(param_1 + 1)" (* "*") (cast_expression "(byte *)(param_1 + 1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")")))) (& "&") (number_literal "4")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar14 = ((*(int *)(param_1 + 0x2c) + -1 + uVar6) - (uint)*(ushort *)(param_1 + 0x30)) / uVar6\n      ;\n      if (iVar12 == 0) {\nLAB_000a7368:\n        iVar12 = (*(code *)(PTR_LAB_0015c6dc + -0x2708))(iVar12);\n        if (iVar12 == 0) {\n          iVar12 = 7;\n          goto LAB_000a7304;\n        }\n        *(int *)(param_1 + 0xc) = iVar12;\n      }\n      else {\n        iVar11 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();\n        iVar12 = *(int *)(param_1 + 0xc);\n        if (iVar11 < (int)(uVar14 << 2)) goto LAB_000a7368;\n      }\n      (*(code *)PTR_memset_0015c9b8)(iVar12,0,uVar14 << 2);\n      *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) | 4;\n    }" ({ "{") (if_statement "if (uVar6 == 0) {\n        trap(7);\n      }" (if "if") (parenthesized_expression "(uVar6 == 0)" (( "(") (binary_expression "uVar6 == 0" (identifier "uVar6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        trap(7);\n      }" ({ "{") (expression_statement "trap(7);" (call_expression "trap(7)" (identifier "trap") (argument_list "(7)" (( "(") (number_literal "7") () ")"))) (; ";")) (} "}"))) (expression_statement "uVar14 = ((*(int *)(param_1 + 0x2c) + -1 + uVar6) - (uint)*(ushort *)(param_1 + 0x30)) / uVar6\n      ;" (assignment_expression "uVar14 = ((*(int *)(param_1 + 0x2c) + -1 + uVar6) - (uint)*(ushort *)(param_1 + 0x30)) / uVar6" (identifier "uVar14") (= "=") (binary_expression "((*(int *)(param_1 + 0x2c) + -1 + uVar6) - (uint)*(ushort *)(param_1 + 0x30)) / uVar6" (parenthesized_expression "((*(int *)(param_1 + 0x2c) + -1 + uVar6) - (uint)*(ushort *)(param_1 + 0x30))" (( "(") (binary_expression "(*(int *)(param_1 + 0x2c) + -1 + uVar6) - (uint)*(ushort *)(param_1 + 0x30)" (parenthesized_expression "(*(int *)(param_1 + 0x2c) + -1 + uVar6)" (( "(") (binary_expression "*(int *)(param_1 + 0x2c) + -1 + uVar6" (binary_expression "*(int *)(param_1 + 0x2c) + -1" (pointer_expression "*(int *)(param_1 + 0x2c)" (* "*") (cast_expression "(int *)(param_1 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x2c)" (( "(") (binary_expression "param_1 + 0x2c" (identifier "param_1") (+ "+") (number_literal "0x2c")) () ")")))) (+ "+") (number_literal "-1")) (+ "+") (identifier "uVar6")) () ")")) (- "-") (binary_expression "(uint)*(ushort *)(param_1 + 0x30)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(ushort *)(param_1 + 0x30)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x30)" (( "(") (binary_expression "param_1 + 0x30" (identifier "param_1") (+ "+") (number_literal "0x30")) () ")"))))) () ")")) (/ "/") (identifier "uVar6"))) (; ";")) (if_statement "if (iVar12 == 0) {\nLAB_000a7368:\n        iVar12 = (*(code *)(PTR_LAB_0015c6dc + -0x2708))(iVar12);\n        if (iVar12 == 0) {\n          iVar12 = 7;\n          goto LAB_000a7304;\n        }\n        *(int *)(param_1 + 0xc) = iVar12;\n      }\n      else {\n        iVar11 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();\n        iVar12 = *(int *)(param_1 + 0xc);\n        if (iVar11 < (int)(uVar14 << 2)) goto LAB_000a7368;\n      }" (if "if") (parenthesized_expression "(iVar12 == 0)" (( "(") (binary_expression "iVar12 == 0" (identifier "iVar12") (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_000a7368:\n        iVar12 = (*(code *)(PTR_LAB_0015c6dc + -0x2708))(iVar12);\n        if (iVar12 == 0) {\n          iVar12 = 7;\n          goto LAB_000a7304;\n        }\n        *(int *)(param_1 + 0xc) = iVar12;\n      }" ({ "{") (labeled_statement "LAB_000a7368:\n        iVar12 = (*(code *)(PTR_LAB_0015c6dc + -0x2708))(iVar12);" (statement_identifier "LAB_000a7368") (: ":") (expression_statement "iVar12 = (*(code *)(PTR_LAB_0015c6dc + -0x2708))(iVar12);" (assignment_expression "iVar12 = (*(code *)(PTR_LAB_0015c6dc + -0x2708))(iVar12)" (identifier "iVar12") (= "=") (call_expression "(*(code *)(PTR_LAB_0015c6dc + -0x2708))(iVar12)" (parenthesized_expression "(*(code *)(PTR_LAB_0015c6dc + -0x2708))" (( "(") (pointer_expression "*(code *)(PTR_LAB_0015c6dc + -0x2708)" (* "*") (cast_expression "(code *)(PTR_LAB_0015c6dc + -0x2708)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_0015c6dc + -0x2708)" (( "(") (binary_expression "PTR_LAB_0015c6dc + -0x2708" (identifier "PTR_LAB_0015c6dc") (+ "+") (number_literal "-0x2708")) () ")")))) () ")")) (argument_list "(iVar12)" (( "(") (identifier "iVar12") () ")")))) (; ";"))) (if_statement "if (iVar12 == 0) {\n          iVar12 = 7;\n          goto LAB_000a7304;\n        }" (if "if") (parenthesized_expression "(iVar12 == 0)" (( "(") (binary_expression "iVar12 == 0" (identifier "iVar12") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          iVar12 = 7;\n          goto LAB_000a7304;\n        }" ({ "{") (expression_statement "iVar12 = 7;" (assignment_expression "iVar12 = 7" (identifier "iVar12") (= "=") (number_literal "7")) (; ";")) (goto_statement "goto LAB_000a7304;" (goto "goto") (statement_identifier "LAB_000a7304") (; ";")) (} "}"))) (expression_statement "*(int *)(param_1 + 0xc) = iVar12;" (assignment_expression "*(int *)(param_1 + 0xc) = iVar12" (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "iVar12")) (; ";")) (} "}")) (else_clause "else {\n        iVar11 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();\n        iVar12 = *(int *)(param_1 + 0xc);\n        if (iVar11 < (int)(uVar14 << 2)) goto LAB_000a7368;\n      }" (else "else") (compound_statement "{\n        iVar11 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();\n        iVar12 = *(int *)(param_1 + 0xc);\n        if (iVar11 < (int)(uVar14 << 2)) goto LAB_000a7368;\n      }" ({ "{") (expression_statement "iVar11 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();" (assignment_expression "iVar11 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))()" (identifier "iVar11") (= "=") (call_expression "(**(code **)(PTR_DAT_0015c5d8 + -0x4da0))()" (parenthesized_expression "(**(code **)(PTR_DAT_0015c5d8 + -0x4da0))" (( "(") (pointer_expression "**(code **)(PTR_DAT_0015c5d8 + -0x4da0)" (* "*") (pointer_expression "*(code **)(PTR_DAT_0015c5d8 + -0x4da0)" (* "*") (cast_expression "(code **)(PTR_DAT_0015c5d8 + -0x4da0)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(PTR_DAT_0015c5d8 + -0x4da0)" (( "(") (binary_expression "PTR_DAT_0015c5d8 + -0x4da0" (identifier "PTR_DAT_0015c5d8") (+ "+") (number_literal "-0x4da0")) () ")"))))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "iVar12 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar12 = *(int *)(param_1 + 0xc)" (identifier "iVar12") (= "=") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (if_statement "if (iVar11 < (int)(uVar14 << 2)) goto LAB_000a7368;" (if "if") (parenthesized_expression "(iVar11 < (int)(uVar14 << 2))" (( "(") (binary_expression "iVar11 < (int)(uVar14 << 2)" (identifier "iVar11") (< "<") (cast_expression "(int)(uVar14 << 2)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(uVar14 << 2)" (( "(") (binary_expression "uVar14 << 2" (identifier "uVar14") (<< "<<") (number_literal "2")) () ")")))) () ")")) (goto_statement "goto LAB_000a7368;" (goto "goto") (statement_identifier "LAB_000a7368") (; ";"))) (} "}")))) (expression_statement "(*(code *)PTR_memset_0015c9b8)(iVar12,0,uVar14 << 2);" (call_expression "(*(code *)PTR_memset_0015c9b8)(iVar12,0,uVar14 << 2)" (parenthesized_expression "(*(code *)PTR_memset_0015c9b8)" (( "(") (pointer_expression "*(code *)PTR_memset_0015c9b8" (* "*") (cast_expression "(code *)PTR_memset_0015c9b8" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memset_0015c9b8"))) () ")")) (argument_list "(iVar12,0,uVar14 << 2)" (( "(") (identifier "iVar12") (, ",") (number_literal "0") (, ",") (binary_expression "uVar14 << 2" (identifier "uVar14") (<< "<<") (number_literal "2")) () ")"))) (; ";")) (expression_statement "*(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) | 4;" (assignment_expression "*(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) | 4" (pointer_expression "*(byte *)(param_1 + 1)" (* "*") (cast_expression "(byte *)(param_1 + 1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")")))) (= "=") (binary_expression "*(byte *)(param_1 + 1) | 4" (pointer_expression "*(byte *)(param_1 + 1)" (* "*") (cast_expression "(byte *)(param_1 + 1)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 1)" (( "(") (binary_expression "param_1 + 1" (identifier "param_1") (+ "+") (number_literal "1")) () ")")))) (| "|") (number_literal "4"))) (; ";")) (} "}")) (else_clause "else {\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar8 = param_2 / uVar6;\n      uVar14 = param_2 % uVar6;\n      iVar11 = *(int *)(iVar12 + uVar8 * 4);\n      if (iVar11 != 0) goto LAB_000a719c;\n    }" (else "else") (compound_statement "{\n      if (uVar6 == 0) {\n        trap(7);\n      }\n      uVar8 = param_2 / uVar6;\n      uVar14 = param_2 % uVar6;\n      iVar11 = *(int *)(iVar12 + uVar8 * 4);\n      if (iVar11 != 0) goto LAB_000a719c;\n    }" ({ "{") (if_statement "if (uVar6 == 0) {\n        trap(7);\n      }" (if "if") (parenthesized_expression "(uVar6 == 0)" (( "(") (binary_expression "uVar6 == 0" (identifier "uVar6") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        trap(7);\n      }" ({ "{") (expression_statement "trap(7);" (call_expression "trap(7)" (identifier "trap") (argument_list "(7)" (( "(") (number_literal "7") () ")"))) (; ";")) (} "}"))) (expression_statement "uVar8 = param_2 / uVar6;" (assignment_expression "uVar8 = param_2 / uVar6" (identifier "uVar8") (= "=") (binary_expression "param_2 / uVar6" (identifier "param_2") (/ "/") (identifier "uVar6"))) (; ";")) (expression_statement "uVar14 = param_2 % uVar6;" (assignment_expression "uVar14 = param_2 % uVar6" (identifier "uVar14") (= "=") (binary_expression "param_2 % uVar6" (identifier "param_2") (% "%") (identifier "uVar6"))) (; ";")) (expression_statement "iVar11 = *(int *)(iVar12 + uVar8 * 4);" (assignment_expression "iVar11 = *(int *)(iVar12 + uVar8 * 4)" (identifier "iVar11") (= "=") (pointer_expression "*(int *)(iVar12 + uVar8 * 4)" (* "*") (cast_expression "(int *)(iVar12 + uVar8 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar12 + uVar8 * 4)" (( "(") (binary_expression "iVar12 + uVar8 * 4" (identifier "iVar12") (+ "+") (binary_expression "uVar8 * 4" (identifier "uVar8") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (if_statement "if (iVar11 != 0) goto LAB_000a719c;" (if "if") (parenthesized_expression "(iVar11 != 0)" (( "(") (binary_expression "iVar11 != 0" (identifier "iVar11") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_000a719c;" (goto "goto") (statement_identifier "LAB_000a719c") (; ";"))) (} "}")))) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" (identifier "uVar8") (= "=") (number_literal "0")) (; ";")) (if_statement "if (local_34 != 0) {\n      iVar12 = *(int *)(param_1 + 0xc);\n      uVar14 = param_2;\n      iVar11 = local_34;\nLAB_000a719c:\n      local_34 = iVar11;\n      puVar2 = PTR_DAT_0015c708;\n      puVar1 = PTR_LAB_0015c66c;\n      uVar4 = 2;\n      iVar11 = uVar8 + 1;\n      if (param_5 != 0) {\n        uVar4 = 0;\n      }\n      iVar7 = iVar11 * 4;\n      *(int *)(iVar12 + iVar7 + -4) = local_34;\n      puVar3 = PTR_LAB_0015c744;\n      uVar8 = param_3 + uVar14;\n      iVar5 = param_3;\n      if (uVar14 < uVar6) goto LAB_000a7220;\n      do {\n        iVar5 = *(int *)(param_1 + 0xc);\n        uVar14 = uVar14 - uVar6;\n        iVar12 = *(int *)(iVar5 + iVar7);\n        if (*(int *)(iVar5 + iVar7) == 0) {\n          iVar12 = (*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34);\n          goto LAB_000a7268;\n        }\n        while( true ) {\n          local_34 = iVar12;\n          iVar11 = iVar11 + 1;\n          iVar7 = iVar11 * 4;\n          *(int *)(iVar5 + iVar7 + -4) = local_34;\n          if (uVar6 <= uVar14) break;\n          uVar8 = param_3 + uVar14;\n          iVar5 = param_3;\nLAB_000a7220:\n          param_3 = 0;\n          if (uVar6 < uVar8) {\n            param_3 = (uVar14 - uVar6) + iVar5;\n            iVar5 = uVar6 - uVar14;\n          }\n          iVar12 = (**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4);\n          iVar7 = local_30;\n          if (iVar12 == 0) {\n            iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;\n            local_34 = **(int **)(local_30 + 4);\n            if (param_5 == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }\n            else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }\n          }\n          param_4 = param_4 + iVar5;\n          if (param_3 == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar12 != 0) goto LAB_000a7304;\n          if (local_34 == 0) goto LAB_000a7494;\n          iVar5 = *(int *)(param_1 + 0xc);\n          iVar12 = local_34;\n        }\n      } while( true );\n    }" (if "if") (parenthesized_expression "(local_34 != 0)" (( "(") (binary_expression "local_34 != 0" (identifier "local_34") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      iVar12 = *(int *)(param_1 + 0xc);\n      uVar14 = param_2;\n      iVar11 = local_34;\nLAB_000a719c:\n      local_34 = iVar11;\n      puVar2 = PTR_DAT_0015c708;\n      puVar1 = PTR_LAB_0015c66c;\n      uVar4 = 2;\n      iVar11 = uVar8 + 1;\n      if (param_5 != 0) {\n        uVar4 = 0;\n      }\n      iVar7 = iVar11 * 4;\n      *(int *)(iVar12 + iVar7 + -4) = local_34;\n      puVar3 = PTR_LAB_0015c744;\n      uVar8 = param_3 + uVar14;\n      iVar5 = param_3;\n      if (uVar14 < uVar6) goto LAB_000a7220;\n      do {\n        iVar5 = *(int *)(param_1 + 0xc);\n        uVar14 = uVar14 - uVar6;\n        iVar12 = *(int *)(iVar5 + iVar7);\n        if (*(int *)(iVar5 + iVar7) == 0) {\n          iVar12 = (*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34);\n          goto LAB_000a7268;\n        }\n        while( true ) {\n          local_34 = iVar12;\n          iVar11 = iVar11 + 1;\n          iVar7 = iVar11 * 4;\n          *(int *)(iVar5 + iVar7 + -4) = local_34;\n          if (uVar6 <= uVar14) break;\n          uVar8 = param_3 + uVar14;\n          iVar5 = param_3;\nLAB_000a7220:\n          param_3 = 0;\n          if (uVar6 < uVar8) {\n            param_3 = (uVar14 - uVar6) + iVar5;\n            iVar5 = uVar6 - uVar14;\n          }\n          iVar12 = (**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4);\n          iVar7 = local_30;\n          if (iVar12 == 0) {\n            iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;\n            local_34 = **(int **)(local_30 + 4);\n            if (param_5 == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }\n            else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }\n          }\n          param_4 = param_4 + iVar5;\n          if (param_3 == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar12 != 0) goto LAB_000a7304;\n          if (local_34 == 0) goto LAB_000a7494;\n          iVar5 = *(int *)(param_1 + 0xc);\n          iVar12 = local_34;\n        }\n      } while( true );\n    }" ({ "{") (expression_statement "iVar12 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar12 = *(int *)(param_1 + 0xc)" (identifier "iVar12") (= "=") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "uVar14 = param_2;" (assignment_expression "uVar14 = param_2" (identifier "uVar14") (= "=") (identifier "param_2")) (; ";")) (expression_statement "iVar11 = local_34;" (assignment_expression "iVar11 = local_34" (identifier "iVar11") (= "=") (identifier "local_34")) (; ";")) (labeled_statement "LAB_000a719c:\n      local_34 = iVar11;" (statement_identifier "LAB_000a719c") (: ":") (expression_statement "local_34 = iVar11;" (assignment_expression "local_34 = iVar11" (identifier "local_34") (= "=") (identifier "iVar11")) (; ";"))) (expression_statement "puVar2 = PTR_DAT_0015c708;" (assignment_expression "puVar2 = PTR_DAT_0015c708" (identifier "puVar2") (= "=") (identifier "PTR_DAT_0015c708")) (; ";")) (expression_statement "puVar1 = PTR_LAB_0015c66c;" (assignment_expression "puVar1 = PTR_LAB_0015c66c" (identifier "puVar1") (= "=") (identifier "PTR_LAB_0015c66c")) (; ";")) (expression_statement "uVar4 = 2;" (assignment_expression "uVar4 = 2" (identifier "uVar4") (= "=") (number_literal "2")) (; ";")) (expression_statement "iVar11 = uVar8 + 1;" (assignment_expression "iVar11 = uVar8 + 1" (identifier "iVar11") (= "=") (binary_expression "uVar8 + 1" (identifier "uVar8") (+ "+") (number_literal "1"))) (; ";")) (if_statement "if (param_5 != 0) {\n        uVar4 = 0;\n      }" (if "if") (parenthesized_expression "(param_5 != 0)" (( "(") (binary_expression "param_5 != 0" (identifier "param_5") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        uVar4 = 0;\n      }" ({ "{") (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "iVar7 = iVar11 * 4;" (assignment_expression "iVar7 = iVar11 * 4" (identifier "iVar7") (= "=") (binary_expression "iVar11 * 4" (identifier "iVar11") (* "*") (number_literal "4"))) (; ";")) (expression_statement "*(int *)(iVar12 + iVar7 + -4) = local_34;" (assignment_expression "*(int *)(iVar12 + iVar7 + -4) = local_34" (pointer_expression "*(int *)(iVar12 + iVar7 + -4)" (* "*") (cast_expression "(int *)(iVar12 + iVar7 + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar12 + iVar7 + -4)" (( "(") (binary_expression "iVar12 + iVar7 + -4" (binary_expression "iVar12 + iVar7" (identifier "iVar12") (+ "+") (identifier "iVar7")) (+ "+") (number_literal "-4")) () ")")))) (= "=") (identifier "local_34")) (; ";")) (expression_statement "puVar3 = PTR_LAB_0015c744;" (assignment_expression "puVar3 = PTR_LAB_0015c744" (identifier "puVar3") (= "=") (identifier "PTR_LAB_0015c744")) (; ";")) (expression_statement "uVar8 = param_3 + uVar14;" (assignment_expression "uVar8 = param_3 + uVar14" (identifier "uVar8") (= "=") (binary_expression "param_3 + uVar14" (identifier "param_3") (+ "+") (identifier "uVar14"))) (; ";")) (expression_statement "iVar5 = param_3;" (assignment_expression "iVar5 = param_3" (identifier "iVar5") (= "=") (identifier "param_3")) (; ";")) (if_statement "if (uVar14 < uVar6) goto LAB_000a7220;" (if "if") (parenthesized_expression "(uVar14 < uVar6)" (( "(") (binary_expression "uVar14 < uVar6" (identifier "uVar14") (< "<") (identifier "uVar6")) () ")")) (goto_statement "goto LAB_000a7220;" (goto "goto") (statement_identifier "LAB_000a7220") (; ";"))) (do_statement "do {\n        iVar5 = *(int *)(param_1 + 0xc);\n        uVar14 = uVar14 - uVar6;\n        iVar12 = *(int *)(iVar5 + iVar7);\n        if (*(int *)(iVar5 + iVar7) == 0) {\n          iVar12 = (*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34);\n          goto LAB_000a7268;\n        }\n        while( true ) {\n          local_34 = iVar12;\n          iVar11 = iVar11 + 1;\n          iVar7 = iVar11 * 4;\n          *(int *)(iVar5 + iVar7 + -4) = local_34;\n          if (uVar6 <= uVar14) break;\n          uVar8 = param_3 + uVar14;\n          iVar5 = param_3;\nLAB_000a7220:\n          param_3 = 0;\n          if (uVar6 < uVar8) {\n            param_3 = (uVar14 - uVar6) + iVar5;\n            iVar5 = uVar6 - uVar14;\n          }\n          iVar12 = (**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4);\n          iVar7 = local_30;\n          if (iVar12 == 0) {\n            iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;\n            local_34 = **(int **)(local_30 + 4);\n            if (param_5 == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }\n            else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }\n          }\n          param_4 = param_4 + iVar5;\n          if (param_3 == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar12 != 0) goto LAB_000a7304;\n          if (local_34 == 0) goto LAB_000a7494;\n          iVar5 = *(int *)(param_1 + 0xc);\n          iVar12 = local_34;\n        }\n      } while( true );" (do "do") (compound_statement "{\n        iVar5 = *(int *)(param_1 + 0xc);\n        uVar14 = uVar14 - uVar6;\n        iVar12 = *(int *)(iVar5 + iVar7);\n        if (*(int *)(iVar5 + iVar7) == 0) {\n          iVar12 = (*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34);\n          goto LAB_000a7268;\n        }\n        while( true ) {\n          local_34 = iVar12;\n          iVar11 = iVar11 + 1;\n          iVar7 = iVar11 * 4;\n          *(int *)(iVar5 + iVar7 + -4) = local_34;\n          if (uVar6 <= uVar14) break;\n          uVar8 = param_3 + uVar14;\n          iVar5 = param_3;\nLAB_000a7220:\n          param_3 = 0;\n          if (uVar6 < uVar8) {\n            param_3 = (uVar14 - uVar6) + iVar5;\n            iVar5 = uVar6 - uVar14;\n          }\n          iVar12 = (**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4);\n          iVar7 = local_30;\n          if (iVar12 == 0) {\n            iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;\n            local_34 = **(int **)(local_30 + 4);\n            if (param_5 == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }\n            else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }\n          }\n          param_4 = param_4 + iVar5;\n          if (param_3 == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar12 != 0) goto LAB_000a7304;\n          if (local_34 == 0) goto LAB_000a7494;\n          iVar5 = *(int *)(param_1 + 0xc);\n          iVar12 = local_34;\n        }\n      }" ({ "{") (expression_statement "iVar5 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar5 = *(int *)(param_1 + 0xc)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "uVar14 = uVar14 - uVar6;" (assignment_expression "uVar14 = uVar14 - uVar6" (identifier "uVar14") (= "=") (binary_expression "uVar14 - uVar6" (identifier "uVar14") (- "-") (identifier "uVar6"))) (; ";")) (expression_statement "iVar12 = *(int *)(iVar5 + iVar7);" (assignment_expression "iVar12 = *(int *)(iVar5 + iVar7)" (identifier "iVar12") (= "=") (pointer_expression "*(int *)(iVar5 + iVar7)" (* "*") (cast_expression "(int *)(iVar5 + iVar7)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + iVar7)" (( "(") (binary_expression "iVar5 + iVar7" (identifier "iVar5") (+ "+") (identifier "iVar7")) () ")"))))) (; ";")) (if_statement "if (*(int *)(iVar5 + iVar7) == 0) {\n          iVar12 = (*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34);\n          goto LAB_000a7268;\n        }" (if "if") (parenthesized_expression "(*(int *)(iVar5 + iVar7) == 0)" (( "(") (binary_expression "*(int *)(iVar5 + iVar7) == 0" (pointer_expression "*(int *)(iVar5 + iVar7)" (* "*") (cast_expression "(int *)(iVar5 + iVar7)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + iVar7)" (( "(") (binary_expression "iVar5 + iVar7" (identifier "iVar5") (+ "+") (identifier "iVar7")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          iVar12 = (*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34);\n          goto LAB_000a7268;\n        }" ({ "{") (expression_statement "iVar12 = (*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34);" (assignment_expression "iVar12 = (*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34)" (identifier "iVar12") (= "=") (call_expression "(*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34)" (parenthesized_expression "(*(code *)(puVar3 + -0x6468))" (( "(") (pointer_expression "*(code *)(puVar3 + -0x6468)" (* "*") (cast_expression "(code *)(puVar3 + -0x6468)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar3 + -0x6468)" (( "(") (binary_expression "puVar3 + -0x6468" (identifier "puVar3") (+ "+") (number_literal "-0x6468")) () ")")))) () ")")) (argument_list "(piVar9,local_34,0,&local_34)" (( "(") (identifier "piVar9") (, ",") (identifier "local_34") (, ",") (number_literal "0") (, ",") (pointer_expression "&local_34" (& "&") (identifier "local_34")) () ")")))) (; ";")) (goto_statement "goto LAB_000a7268;" (goto "goto") (statement_identifier "LAB_000a7268") (; ";")) (} "}"))) (while_statement "while( true ) {\n          local_34 = iVar12;\n          iVar11 = iVar11 + 1;\n          iVar7 = iVar11 * 4;\n          *(int *)(iVar5 + iVar7 + -4) = local_34;\n          if (uVar6 <= uVar14) break;\n          uVar8 = param_3 + uVar14;\n          iVar5 = param_3;\nLAB_000a7220:\n          param_3 = 0;\n          if (uVar6 < uVar8) {\n            param_3 = (uVar14 - uVar6) + iVar5;\n            iVar5 = uVar6 - uVar14;\n          }\n          iVar12 = (**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4);\n          iVar7 = local_30;\n          if (iVar12 == 0) {\n            iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;\n            local_34 = **(int **)(local_30 + 4);\n            if (param_5 == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }\n            else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }\n          }\n          param_4 = param_4 + iVar5;\n          if (param_3 == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar12 != 0) goto LAB_000a7304;\n          if (local_34 == 0) goto LAB_000a7494;\n          iVar5 = *(int *)(param_1 + 0xc);\n          iVar12 = local_34;\n        }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n          local_34 = iVar12;\n          iVar11 = iVar11 + 1;\n          iVar7 = iVar11 * 4;\n          *(int *)(iVar5 + iVar7 + -4) = local_34;\n          if (uVar6 <= uVar14) break;\n          uVar8 = param_3 + uVar14;\n          iVar5 = param_3;\nLAB_000a7220:\n          param_3 = 0;\n          if (uVar6 < uVar8) {\n            param_3 = (uVar14 - uVar6) + iVar5;\n            iVar5 = uVar6 - uVar14;\n          }\n          iVar12 = (**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4);\n          iVar7 = local_30;\n          if (iVar12 == 0) {\n            iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;\n            local_34 = **(int **)(local_30 + 4);\n            if (param_5 == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }\n            else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }\n          }\n          param_4 = param_4 + iVar5;\n          if (param_3 == 0) goto LAB_000a7304;\nLAB_000a7268:\n          if (iVar12 != 0) goto LAB_000a7304;\n          if (local_34 == 0) goto LAB_000a7494;\n          iVar5 = *(int *)(param_1 + 0xc);\n          iVar12 = local_34;\n        }" ({ "{") (expression_statement "local_34 = iVar12;" (assignment_expression "local_34 = iVar12" (identifier "local_34") (= "=") (identifier "iVar12")) (; ";")) (expression_statement "iVar11 = iVar11 + 1;" (assignment_expression "iVar11 = iVar11 + 1" (identifier "iVar11") (= "=") (binary_expression "iVar11 + 1" (identifier "iVar11") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar7 = iVar11 * 4;" (assignment_expression "iVar7 = iVar11 * 4" (identifier "iVar7") (= "=") (binary_expression "iVar11 * 4" (identifier "iVar11") (* "*") (number_literal "4"))) (; ";")) (expression_statement "*(int *)(iVar5 + iVar7 + -4) = local_34;" (assignment_expression "*(int *)(iVar5 + iVar7 + -4) = local_34" (pointer_expression "*(int *)(iVar5 + iVar7 + -4)" (* "*") (cast_expression "(int *)(iVar5 + iVar7 + -4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + iVar7 + -4)" (( "(") (binary_expression "iVar5 + iVar7 + -4" (binary_expression "iVar5 + iVar7" (identifier "iVar5") (+ "+") (identifier "iVar7")) (+ "+") (number_literal "-4")) () ")")))) (= "=") (identifier "local_34")) (; ";")) (if_statement "if (uVar6 <= uVar14) break;" (if "if") (parenthesized_expression "(uVar6 <= uVar14)" (( "(") (binary_expression "uVar6 <= uVar14" (identifier "uVar6") (<= "<=") (identifier "uVar14")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar8 = param_3 + uVar14;" (assignment_expression "uVar8 = param_3 + uVar14" (identifier "uVar8") (= "=") (binary_expression "param_3 + uVar14" (identifier "param_3") (+ "+") (identifier "uVar14"))) (; ";")) (expression_statement "iVar5 = param_3;" (assignment_expression "iVar5 = param_3" (identifier "iVar5") (= "=") (identifier "param_3")) (; ";")) (labeled_statement "LAB_000a7220:\n          param_3 = 0;" (statement_identifier "LAB_000a7220") (: ":") (expression_statement "param_3 = 0;" (assignment_expression "param_3 = 0" (identifier "param_3") (= "=") (number_literal "0")) (; ";"))) (if_statement "if (uVar6 < uVar8) {\n            param_3 = (uVar14 - uVar6) + iVar5;\n            iVar5 = uVar6 - uVar14;\n          }" (if "if") (parenthesized_expression "(uVar6 < uVar8)" (( "(") (binary_expression "uVar6 < uVar8" (identifier "uVar6") (< "<") (identifier "uVar8")) () ")")) (compound_statement "{\n            param_3 = (uVar14 - uVar6) + iVar5;\n            iVar5 = uVar6 - uVar14;\n          }" ({ "{") (expression_statement "param_3 = (uVar14 - uVar6) + iVar5;" (assignment_expression "param_3 = (uVar14 - uVar6) + iVar5" (identifier "param_3") (= "=") (binary_expression "(uVar14 - uVar6) + iVar5" (parenthesized_expression "(uVar14 - uVar6)" (( "(") (binary_expression "uVar14 - uVar6" (identifier "uVar14") (- "-") (identifier "uVar6")) () ")")) (+ "+") (identifier "iVar5"))) (; ";")) (expression_statement "iVar5 = uVar6 - uVar14;" (assignment_expression "iVar5 = uVar6 - uVar14" (identifier "iVar5") (= "=") (binary_expression "uVar6 - uVar14" (identifier "uVar6") (- "-") (identifier "uVar14"))) (; ";")) (} "}"))) (expression_statement "iVar12 = (**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4);" (assignment_expression "iVar12 = (**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4)" (identifier "iVar12") (= "=") (call_expression "(**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4)" (parenthesized_expression "(**(code **)(*piVar9 + 0xcc))" (( "(") (pointer_expression "**(code **)(*piVar9 + 0xcc)" (* "*") (pointer_expression "*(code **)(*piVar9 + 0xcc)" (* "*") (cast_expression "(code **)(*piVar9 + 0xcc)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*piVar9 + 0xcc)" (( "(") (binary_expression "*piVar9 + 0xcc" (pointer_expression "*piVar9" (* "*") (identifier "piVar9")) (+ "+") (number_literal "0xcc")) () ")"))))) () ")")) (argument_list "(*piVar9,local_34,&local_30,uVar4)" (( "(") (pointer_expression "*piVar9" (* "*") (identifier "piVar9")) (, ",") (identifier "local_34") (, ",") (pointer_expression "&local_30" (& "&") (identifier "local_30")) (, ",") (identifier "uVar4") () ")")))) (; ";")) (expression_statement "iVar7 = local_30;" (assignment_expression "iVar7 = local_30" (identifier "iVar7") (= "=") (identifier "local_30")) (; ";")) (if_statement "if (iVar12 == 0) {\n            iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;\n            local_34 = **(int **)(local_30 + 4);\n            if (param_5 == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }\n            else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }\n          }" (if "if") (parenthesized_expression "(iVar12 == 0)" (( "(") (binary_expression "iVar12 == 0" (identifier "iVar12") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;\n            local_34 = **(int **)(local_30 + 4);\n            if (param_5 == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }\n            else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }\n          }" ({ "{") (expression_statement "iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;" (assignment_expression "iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4" (identifier "iVar10") (= "=") (binary_expression "(int)*(int **)(local_30 + 4) + uVar14 + 4" (binary_expression "(int)*(int **)(local_30 + 4) + uVar14" (cast_expression "(int)*(int **)(local_30 + 4)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*(int **)(local_30 + 4)" (* "*") (cast_expression "(int **)(local_30 + 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(local_30 + 4)" (( "(") (binary_expression "local_30 + 4" (identifier "local_30") (+ "+") (number_literal "4")) () ")"))))) (+ "+") (identifier "uVar14")) (+ "+") (number_literal "4"))) (; ";")) (expression_statement "local_34 = **(int **)(local_30 + 4);" (assignment_expression "local_34 = **(int **)(local_30 + 4)" (identifier "local_34") (= "=") (pointer_expression "**(int **)(local_30 + 4)" (* "*") (pointer_expression "*(int **)(local_30 + 4)" (* "*") (cast_expression "(int **)(local_30 + 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(local_30 + 4)" (( "(") (binary_expression "local_30 + 4" (identifier "local_30") (+ "+") (number_literal "4")) () ")")))))) (; ";")) (if_statement "if (param_5 == 0) {\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }\n            else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }" (if "if") (parenthesized_expression "(param_5 == 0)" (( "(") (binary_expression "param_5 == 0" (identifier "param_5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);\n              uVar14 = 0;\n              (*(code *)(puVar1 + -0x138c))(iVar7);\n              iVar12 = 0;\n            }" ({ "{") (expression_statement "(*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);" (call_expression "(*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5)" (parenthesized_expression "(*(code *)PTR_memcpy_0015ca34)" (( "(") (pointer_expression "*(code *)PTR_memcpy_0015ca34" (* "*") (cast_expression "(code *)PTR_memcpy_0015ca34" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_0015ca34"))) () ")")) (argument_list "(param_4,iVar10,iVar5)" (( "(") (identifier "param_4") (, ",") (identifier "iVar10") (, ",") (identifier "iVar5") () ")"))) (; ";")) (expression_statement "uVar14 = 0;" (assignment_expression "uVar14 = 0" (identifier "uVar14") (= "=") (number_literal "0")) (; ";")) (expression_statement "(*(code *)(puVar1 + -0x138c))(iVar7);" (call_expression "(*(code *)(puVar1 + -0x138c))(iVar7)" (parenthesized_expression "(*(code *)(puVar1 + -0x138c))" (( "(") (pointer_expression "*(code *)(puVar1 + -0x138c)" (* "*") (cast_expression "(code *)(puVar1 + -0x138c)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + -0x138c)" (( "(") (binary_expression "puVar1 + -0x138c" (identifier "puVar1") (+ "+") (number_literal "-0x138c")) () ")")))) () ")")) (argument_list "(iVar7)" (( "(") (identifier "iVar7") () ")"))) (; ";")) (expression_statement "iVar12 = 0;" (assignment_expression "iVar12 = 0" (identifier "iVar12") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }" (else "else") (compound_statement "{\n              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);\n              if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }\n              uVar14 = 0;\n              if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }\n            }" ({ "{") (expression_statement "iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);" (assignment_expression "iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30)" (identifier "iVar12") (= "=") (call_expression "(*(code *)(puVar2 + -0x30a4))(local_30)" (parenthesized_expression "(*(code *)(puVar2 + -0x30a4))" (( "(") (pointer_expression "*(code *)(puVar2 + -0x30a4)" (* "*") (cast_expression "(code *)(puVar2 + -0x30a4)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + -0x30a4)" (( "(") (binary_expression "puVar2 + -0x30a4" (identifier "puVar2") (+ "+") (number_literal "-0x30a4")) () ")")))) () ")")) (argument_list "(local_30)" (( "(") (identifier "local_30") () ")")))) (; ";")) (if_statement "if (iVar12 == 0) {\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }" (if "if") (parenthesized_expression "(iVar12 == 0)" (( "(") (binary_expression "iVar12 == 0" (identifier "iVar12") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);\n              }" ({ "{") (expression_statement "(*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);" (call_expression "(*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5)" (parenthesized_expression "(*(code *)PTR_memcpy_0015ca34)" (( "(") (pointer_expression "*(code *)PTR_memcpy_0015ca34" (* "*") (cast_expression "(code *)PTR_memcpy_0015ca34" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_0015ca34"))) () ")")) (argument_list "(iVar10,param_4,iVar5)" (( "(") (identifier "iVar10") (, ",") (identifier "param_4") (, ",") (identifier "iVar5") () ")"))) (; ";")) (} "}"))) (expression_statement "uVar14 = 0;" (assignment_expression "uVar14 = 0" (identifier "uVar14") (= "=") (number_literal "0")) (; ";")) (if_statement "if (local_30 != 0) {\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }" (if "if") (parenthesized_expression "(local_30 != 0)" (( "(") (binary_expression "local_30 != 0" (identifier "local_30") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n                (*(code *)(puVar1 + -0x138c))(local_30);\n              }" ({ "{") (expression_statement "(*(code *)(puVar1 + -0x138c))(local_30);" (call_expression "(*(code *)(puVar1 + -0x138c))(local_30)" (parenthesized_expression "(*(code *)(puVar1 + -0x138c))" (( "(") (pointer_expression "*(code *)(puVar1 + -0x138c)" (* "*") (cast_expression "(code *)(puVar1 + -0x138c)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + -0x138c)" (( "(") (binary_expression "puVar1 + -0x138c" (identifier "puVar1") (+ "+") (number_literal "-0x138c")) () ")")))) () ")")) (argument_list "(local_30)" (( "(") (identifier "local_30") () ")"))) (; ";")) (} "}"))) (} "}")))) (} "}"))) (expression_statement "param_4 = param_4 + iVar5;" (assignment_expression "param_4 = param_4 + iVar5" (identifier "param_4") (= "=") (binary_expression "param_4 + iVar5" (identifier "param_4") (+ "+") (identifier "iVar5"))) (; ";")) (if_statement "if (param_3 == 0) goto LAB_000a7304;" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000a7304;" (goto "goto") (statement_identifier "LAB_000a7304") (; ";"))) (labeled_statement "LAB_000a7268:\n          if (iVar12 != 0) goto LAB_000a7304;" (statement_identifier "LAB_000a7268") (: ":") (if_statement "if (iVar12 != 0) goto LAB_000a7304;" (if "if") (parenthesized_expression "(iVar12 != 0)" (( "(") (binary_expression "iVar12 != 0" (identifier "iVar12") (!= "!=") (number_literal "0")) () ")")) (goto_statement "goto LAB_000a7304;" (goto "goto") (statement_identifier "LAB_000a7304") (; ";")))) (if_statement "if (local_34 == 0) goto LAB_000a7494;" (if "if") (parenthesized_expression "(local_34 == 0)" (( "(") (binary_expression "local_34 == 0" (identifier "local_34") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_000a7494;" (goto "goto") (statement_identifier "LAB_000a7494") (; ";"))) (expression_statement "iVar5 = *(int *)(param_1 + 0xc);" (assignment_expression "iVar5 = *(int *)(param_1 + 0xc)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(param_1 + 0xc)" (* "*") (cast_expression "(int *)(param_1 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xc)" (( "(") (binary_expression "param_1 + 0xc" (identifier "param_1") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (expression_statement "iVar12 = local_34;" (assignment_expression "iVar12 = local_34" (identifier "iVar12") (= "=") (identifier "local_34")) (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}"))) (labeled_statement "LAB_000a7494:\n    uVar4 = 0x1094f;" (statement_identifier "LAB_000a7494") (: ":") (expression_statement "uVar4 = 0x1094f;" (assignment_expression "uVar4 = 0x1094f" (identifier "uVar4") (= "=") (number_literal "0x1094f")) (; ";"))) (} "}")))) (expression_statement "iVar12 = (*(code *)(PTR_LAB_0015c744 + -0x6c90))(uVar4);" (assignment_expression "iVar12 = (*(code *)(PTR_LAB_0015c744 + -0x6c90))(uVar4)" (identifier "iVar12") (= "=") (call_expression "(*(code *)(PTR_LAB_0015c744 + -0x6c90))(uVar4)" (parenthesized_expression "(*(code *)(PTR_LAB_0015c744 + -0x6c90))" (( "(") (pointer_expression "*(code *)(PTR_LAB_0015c744 + -0x6c90)" (* "*") (cast_expression "(code *)(PTR_LAB_0015c744 + -0x6c90)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_0015c744 + -0x6c90)" (( "(") (binary_expression "PTR_LAB_0015c744 + -0x6c90" (identifier "PTR_LAB_0015c744") (+ "+") (number_literal "-0x6c90")) () ")")))) () ")")) (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")")))) (; ";")) (labeled_statement "LAB_000a7304:\n  if (local_2c == *(int *)puVar13) {\n    return iVar12;\n  }" (statement_identifier "LAB_000a7304") (: ":") (if_statement "if (local_2c == *(int *)puVar13) {\n    return iVar12;\n  }" (if "if") (parenthesized_expression "(local_2c == *(int *)puVar13)" (( "(") (binary_expression "local_2c == *(int *)puVar13" (identifier "local_2c") (== "==") (pointer_expression "*(int *)puVar13" (* "*") (cast_expression "(int *)puVar13" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar13")))) () ")")) (compound_statement "{\n    return iVar12;\n  }" ({ "{") (return_statement "return iVar12;" (return "return") (identifier "iVar12") (; ";")) (} "}")))) (expression_statement "iVar11 = local_2c;" (assignment_expression "iVar11 = local_2c" (identifier "iVar11") (= "=") (identifier "local_2c")) (; ";")) (expression_statement "puVar13 = PTR___stack_chk_fail_0015ca14;" (assignment_expression "puVar13 = PTR___stack_chk_fail_0015ca14" (identifier "puVar13") (= "=") (identifier "PTR___stack_chk_fail_0015ca14")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_0015ca14)();" (call_expression "(*(code *)PTR___stack_chk_fail_0015ca14)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0015ca14)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_0015ca14" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_0015ca14" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_0015ca14"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "(*(code *)(*(int *)(puVar13 + 0xb51b8) + -0xc70))();" (call_expression "(*(code *)(*(int *)(puVar13 + 0xb51b8) + -0xc70))()" (parenthesized_expression "(*(code *)(*(int *)(puVar13 + 0xb51b8) + -0xc70))" (( "(") (pointer_expression "*(code *)(*(int *)(puVar13 + 0xb51b8) + -0xc70)" (* "*") (cast_expression "(code *)(*(int *)(puVar13 + 0xb51b8) + -0xc70)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(puVar13 + 0xb51b8) + -0xc70)" (( "(") (binary_expression "*(int *)(puVar13 + 0xb51b8) + -0xc70" (pointer_expression "*(int *)(puVar13 + 0xb51b8)" (* "*") (cast_expression "(int *)(puVar13 + 0xb51b8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar13 + 0xb51b8)" (( "(") (binary_expression "puVar13 + 0xb51b8" (identifier "puVar13") (+ "+") (number_literal "0xb51b8")) () ")")))) (+ "+") (number_literal "-0xc70")) () ")")))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "uVar6 = *(uint *)(iVar11 + 0x2c);" (assignment_expression "uVar6 = *(uint *)(iVar11 + 0x2c)" (identifier "uVar6") (= "=") (pointer_expression "*(uint *)(iVar11 + 0x2c)" (* "*") (cast_expression "(uint *)(iVar11 + 0x2c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar11 + 0x2c)" (( "(") (binary_expression "iVar11 + 0x2c" (identifier "iVar11") (+ "+") (number_literal "0x2c")) () ")"))))) (; ";")) (expression_statement "*(undefined4 *)(iVar11 + 0x38) = 0;" (assignment_expression "*(undefined4 *)(iVar11 + 0x38) = 0" (pointer_expression "*(undefined4 *)(iVar11 + 0x38)" (* "*") (cast_expression "(undefined4 *)(iVar11 + 0x38)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar11 + 0x38)" (( "(") (binary_expression "iVar11 + 0x38" (identifier "iVar11") (+ "+") (number_literal "0x38")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(uint *)(iVar11 + 0x3c) = uVar6;" (assignment_expression "*(uint *)(iVar11 + 0x3c) = uVar6" (pointer_expression "*(uint *)(iVar11 + 0x3c)" (* "*") (cast_expression "(uint *)(iVar11 + 0x3c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar11 + 0x3c)" (( "(") (binary_expression "iVar11 + 0x3c" (identifier "iVar11") (+ "+") (number_literal "0x3c")) () ")")))) (= "=") (identifier "uVar6")) (; ";")) (expression_statement "iVar12 = (*(code *)(*(int *)(puVar13 + 0xb5228) + -0x5370))(uVar6 + 0x11 < uVar6);" (assignment_expression "iVar12 = (*(code *)(*(int *)(puVar13 + 0xb5228) + -0x5370))(uVar6 + 0x11 < uVar6)" (identifier "iVar12") (= "=") (call_expression "(*(code *)(*(int *)(puVar13 + 0xb5228) + -0x5370))(uVar6 + 0x11 < uVar6)" (parenthesized_expression "(*(code *)(*(int *)(puVar13 + 0xb5228) + -0x5370))" (( "(") (pointer_expression "*(code *)(*(int *)(puVar13 + 0xb5228) + -0x5370)" (* "*") (cast_expression "(code *)(*(int *)(puVar13 + 0xb5228) + -0x5370)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(puVar13 + 0xb5228) + -0x5370)" (( "(") (binary_expression "*(int *)(puVar13 + 0xb5228) + -0x5370" (pointer_expression "*(int *)(puVar13 + 0xb5228)" (* "*") (cast_expression "(int *)(puVar13 + 0xb5228)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar13 + 0xb5228)" (( "(") (binary_expression "puVar13 + 0xb5228" (identifier "puVar13") (+ "+") (number_literal "0xb5228")) () ")")))) (+ "+") (number_literal "-0x5370")) () ")")))) () ")")) (argument_list "(uVar6 + 0x11 < uVar6)" (( "(") (binary_expression "uVar6 + 0x11 < uVar6" (binary_expression "uVar6 + 0x11" (identifier "uVar6") (+ "+") (number_literal "0x11")) (< "<") (identifier "uVar6")) () ")")))) (; ";")) (if_statement "if (iVar12 == 0) {\n    return 7;\n  }" (if "if") (parenthesized_expression "(iVar12 == 0)" (( "(") (binary_expression "iVar12 == 0" (identifier "iVar12") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return 7;\n  }" ({ "{") (return_statement "return 7;" (return "return") (number_literal "7") (; ";")) (} "}"))) (expression_statement "iVar5 = FUN_000a7054(iVar11,0,*(undefined4 *)(iVar11 + 0x3c),iVar12,0);" (assignment_expression "iVar5 = FUN_000a7054(iVar11,0,*(undefined4 *)(iVar11 + 0x3c),iVar12,0)" (identifier "iVar5") (= "=") (call_expression "FUN_000a7054(iVar11,0,*(undefined4 *)(iVar11 + 0x3c),iVar12,0)" (identifier "FUN_000a7054") (argument_list "(iVar11,0,*(undefined4 *)(iVar11 + 0x3c),iVar12,0)" (( "(") (identifier "iVar11") (, ",") (number_literal "0") (, ",") (pointer_expression "*(undefined4 *)(iVar11 + 0x3c)" (* "*") (cast_expression "(undefined4 *)(iVar11 + 0x3c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar11 + 0x3c)" (( "(") (binary_expression "iVar11 + 0x3c" (identifier "iVar11") (+ "+") (number_literal "0x3c")) () ")")))) (, ",") (identifier "iVar12") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar5 == 0) {\n    (**(code **)(puVar13 + 0xb5504))(iVar12 + *(int *)(iVar11 + 0x3c),0,0x11);\n    *(int *)(iVar11 + 0x10) = iVar12;\n    return 0;\n  }" (if "if") (parenthesized_expression "(iVar5 == 0)" (( "(") (binary_expression "iVar5 == 0" (identifier "iVar5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    (**(code **)(puVar13 + 0xb5504))(iVar12 + *(int *)(iVar11 + 0x3c),0,0x11);\n    *(int *)(iVar11 + 0x10) = iVar12;\n    return 0;\n  }" ({ "{") (expression_statement "(**(code **)(puVar13 + 0xb5504))(iVar12 + *(int *)(iVar11 + 0x3c),0,0x11);" (call_expression "(**(code **)(puVar13 + 0xb5504))(iVar12 + *(int *)(iVar11 + 0x3c),0,0x11)" (parenthesized_expression "(**(code **)(puVar13 + 0xb5504))" (( "(") (pointer_expression "**(code **)(puVar13 + 0xb5504)" (* "*") (pointer_expression "*(code **)(puVar13 + 0xb5504)" (* "*") (cast_expression "(code **)(puVar13 + 0xb5504)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar13 + 0xb5504)" (( "(") (binary_expression "puVar13 + 0xb5504" (identifier "puVar13") (+ "+") (number_literal "0xb5504")) () ")"))))) () ")")) (argument_list "(iVar12 + *(int *)(iVar11 + 0x3c),0,0x11)" (( "(") (binary_expression "iVar12 + *(int *)(iVar11 + 0x3c)" (identifier "iVar12") (+ "+") (pointer_expression "*(int *)(iVar11 + 0x3c)" (* "*") (cast_expression "(int *)(iVar11 + 0x3c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar11 + 0x3c)" (( "(") (binary_expression "iVar11 + 0x3c" (identifier "iVar11") (+ "+") (number_literal "0x3c")) () ")"))))) (, ",") (number_literal "0") (, ",") (number_literal "0x11") () ")"))) (; ";")) (expression_statement "*(int *)(iVar11 + 0x10) = iVar12;" (assignment_expression "*(int *)(iVar11 + 0x10) = iVar12" (pointer_expression "*(int *)(iVar11 + 0x10)" (* "*") (cast_expression "(int *)(iVar11 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar11 + 0x10)" (( "(") (binary_expression "iVar11 + 0x10" (identifier "iVar11") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "iVar12")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "(**(code **)(puVar13 + 0xb5138))(iVar12);" (call_expression "(**(code **)(puVar13 + 0xb5138))(iVar12)" (parenthesized_expression "(**(code **)(puVar13 + 0xb5138))" (( "(") (pointer_expression "**(code **)(puVar13 + 0xb5138)" (* "*") (pointer_expression "*(code **)(puVar13 + 0xb5138)" (* "*") (cast_expression "(code **)(puVar13 + 0xb5138)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar13 + 0xb5138)" (( "(") (binary_expression "puVar13 + 0xb5138" (identifier "puVar13") (+ "+") (number_literal "0xb5138")) () ")"))))) () ")")) (argument_list "(iVar12)" (( "(") (identifier "iVar12") () ")"))) (; ";")) (return_statement "return iVar5;" (return "return") (identifier "iVar5") (; ";")) (} "}")))

int function_1(type_1 *pCur,type_2 var_3,type_2 var_4,type_3 *var_10,int var_5)

{
  type_4 *var_20;
  type_4 *var_21;
  type_4 *var_19;
  type_5 *pDVar4;
  type_6 PVar5;
  int var_8;
  int iVar7;
  type_3 *var_26;
  type_6 *var_14;
  type_7 uVar10;
  type_1 *pCur_00;
  type_8 *puVar11;
  type_9 var_2;
  type_9 var_11;
  type_9 var_18;
  type_2 var_9;
  type_10 *pBVar16;
  int iVar17;
  type_8 *var_6;
  type_9 var_12;
  type_11 *pMVar20;
  type_4 *var_25;
  int iVar22;
  type_6 var_17;
  type_5 *var_22;
  type_1 *var_24;
  
  var_25 = PTR___stack_chk_guard_0015ca30;
  pMVar20 = pCur->pPage;
  var_24 = *(type_1 **)PTR___stack_chk_guard_0015ca30;
  pBVar16 = pCur->pBt;
  (*(type_12 *)(var_1 + -0xc70))();
  var_6 = (pCur->info).pPayload;
  var_2 = (type_9)(pCur->info).nLocal;
  if (pBVar16->usableSize - var_2 < (type_9)((int)var_6 - (int)pMVar20->aData)) {
    uVar10 = 0x108be;
  }
  else {
    if (var_3 < var_2) {
      if (var_2 < var_3 + var_4) {
        var_9 = var_2 - var_3;
        if (var_5 != 0) goto LAB_000a7298;
LAB_000a7354:
        var_26 = var_10;
        puVar11 = var_6 + var_3;
      }
      else {
        var_9 = var_4;
        if (var_5 == 0) goto LAB_000a7354;
LAB_000a7298:
        var_26 = var_6 + var_3;
        var_8 = var_7(pMVar20->var_22);
        puVar11 = var_10;
        if (var_8 != 0) goto LAB_000a7304;
      }
      var_4 = var_4 - var_9;
      (*(type_12 *)PTR_memcpy_0015ca34)(var_26,puVar11,var_9);
      var_10 = var_10 + var_9;
      var_2 = 0;
      if (var_4 == 0) goto LAB_000a72dc;
    }
    else {
      var_2 = var_3 - var_2;
      if (var_4 == 0) {
LAB_000a72dc:
        var_8 = 0;
        goto LAB_000a7304;
      }
    }
    var_11 = (type_9)(pCur->info).nLocal;
    var_14 = pCur->aOverflow;
    var_12 = pBVar16->usableSize - 4;
    var_17 = *(type_6 *)(var_6 + var_11);
    if ((pCur->curFlags & 4) == 0) {
      if (var_12 == 0) {
        var_13(7);
      }
      var_11 = ((((pCur->info).nPayload - 1) + var_12) - var_11) / var_12;
      if (var_14 == (type_6 *)0x0) {
LAB_000a7368:
        var_14 = (type_6 *)(*(type_12 *)(var_15 + -0x2708))(var_14);
        if (var_14 == (type_6 *)0x0) {
          var_8 = 7;
          goto LAB_000a7304;
        }
        pCur->aOverflow = var_14;
      }
      else {
        var_8 = (**(type_12 **)(var_16 + -0x4da0))();
        var_14 = pCur->aOverflow;
        if (var_8 < (int)(var_11 << 2)) goto LAB_000a7368;
      }
      (*(type_12 *)PTR_memset_0015c9b8)(var_14,0,var_11 << 2);
      pCur->curFlags = pCur->curFlags | 4;
    }
    else {
      if (var_12 == 0) {
        var_13(7);
      }
      var_18 = var_2 / var_12;
      var_11 = var_2 % var_12;
      PVar5 = var_14[var_18];
      if (var_14[var_18] != 0) goto LAB_000a719c;
    }
    var_18 = 0;
    if (var_17 != 0) {
      var_14 = pCur->aOverflow;
      var_11 = var_2;
      PVar5 = var_17;
LAB_000a719c:
      var_17 = PVar5;
      var_21 = PTR_LAB_0015c708;
      var_20 = var_1;
      iVar7 = 2;
      iVar22 = var_18 + 1;
      if (var_5 != 0) {
        iVar7 = 0;
      }
      var_14[var_18] = var_17;
      var_19 = var_23;
      var_2 = var_4 + var_11;
      var_9 = var_4;
      if (var_11 < var_12) goto LAB_000a7220;
      do {
        var_14 = pCur->aOverflow;
        var_11 = var_11 - var_12;
        var_8 = iVar22;
        PVar5 = var_14[iVar22];
        if (var_14[iVar22] == 0) {
          var_8 = (*(type_12 *)(var_19 + -0x6468))(pBVar16,var_17,0,&var_17);
          goto LAB_000a7268;
        }
        while( true ) {
          var_17 = PVar5;
          iVar22 = var_8 + 1;
          var_14[var_8] = var_17;
          if (var_12 <= var_11) break;
          var_2 = var_4 + var_11;
          var_9 = var_4;
LAB_000a7220:
          var_4 = 0;
          if (var_12 < var_2) {
            var_4 = (var_11 - var_12) + var_9;
            var_9 = var_12 - var_11;
          }
          var_8 = (*pBVar16->pPager->xGet)(pBVar16->pPager,var_17,&var_22,iVar7);
          pDVar4 = var_22;
          if (var_8 == 0) {
            iVar17 = (int)var_22->pData + var_11 + 4;
                    /* WARNING: Load size is inaccurate */
            var_17 = *var_22->pData;
            if (var_5 == 0) {
              (*(type_12 *)PTR_memcpy_0015ca34)(var_10,iVar17,var_9);
              var_11 = 0;
              (*(type_12 *)(var_20 + -0x138c))(pDVar4);
              var_8 = 0;
            }
            else {
              var_8 = (*(type_12 *)(var_21 + -0x30a4))(var_22);
              if (var_8 == 0) {
                (*(type_12 *)PTR_memcpy_0015ca34)(iVar17,var_10,var_9);
              }
              var_11 = 0;
              if (var_22 != (type_5 *)0x0) {
                (*(type_12 *)(var_20 + -0x138c))(var_22);
              }
            }
          }
          var_10 = var_10 + var_9;
          if (var_4 == 0) goto LAB_000a7304;
LAB_000a7268:
          if (var_8 != 0) goto LAB_000a7304;
          if (var_17 == 0) goto LAB_000a7494;
          var_14 = pCur->aOverflow;
          var_8 = iVar22;
          PVar5 = var_17;
        }
      } while( true );
    }
LAB_000a7494:
    uVar10 = 0x1094f;
  }
  var_8 = (*(type_12 *)(var_23 + -0x6c90))(uVar10);
LAB_000a7304:
  if (var_24 == *(type_1 **)var_25) {
    return var_8;
  }
  pCur_00 = var_24;
  var_25 = PTR___stack_chk_fail_0015ca14;
  (*(type_12 *)PTR___stack_chk_fail_0015ca14)();
  (*(type_12 *)(*(int *)(var_25 + 0xb51b8) + -0xc70))();
  var_2 = (pCur_00->info).nPayload;
  *(type_7 *)&pCur_00->nKey = 0;
  *(type_9 *)((int)&pCur_00->nKey + 4) = var_2;
  var_26 = (type_3 *)(*(type_12 *)(*(int *)(var_25 + 0xb5228) + -0x5370))(var_2 + 0x11 < var_2);
  if (var_26 == (type_3 *)0x0) {
    return 7;
  }
  var_8 = function_1(pCur_00,0,(type_2)pCur_00->nKey,var_26,0);
  if (var_8 == 0) {
    (**(type_12 **)(var_25 + 0xb5504))(var_26 + (int)pCur_00->nKey,0,0x11);
    pCur_00->pKey = var_26;
    return 0;
  }
  (**(type_12 **)(var_25 + 0xb5138))(var_26);
  return var_8;
}


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

int MASKED(int param_1,uint param_2,int param_3,int param_4,int param_5)

{
  undefined *puVar1;
  undefined *puVar2;
  undefined *puVar3;
  undefined4 uVar4;
  int iVar5;
  uint uVar6;
  int iVar7;
  uint uVar8;
  int *piVar9;
  int iVar10;
  int iVar11;
  int iVar12;
  undefined *puVar13;
  uint uVar14;
  int local_34;
  int local_30;
  int local_2c;
  
  puVar13 = PTR___stack_chk_guard_0015ca30;
  iVar12 = *(int *)(param_1 + 0x74);
  local_2c = *(int *)PTR___stack_chk_guard_0015ca30;
  piVar9 = *(int **)(param_1 + 0x14);
  (*(code *)(PTR_LAB_0015c66c + -0xc70))();
  iVar11 = *(int *)(param_1 + 0x28);
  uVar6 = (uint)*(ushort *)(param_1 + 0x30);
  if (piVar9[9] - uVar6 < (uint)(iVar11 - *(int *)(iVar12 + 0x38))) {
    uVar4 = 0x108be;
  }
  else {
    if (param_2 < uVar6) {
      if (uVar6 < param_2 + param_3) {
        iVar5 = uVar6 - param_2;
        if (param_5 != 0) goto LAB_000a7298;
LAB_000a7354:
        iVar7 = param_4;
        iVar10 = iVar11 + param_2;
      }
      else {
        iVar5 = param_3;
        if (param_5 == 0) goto LAB_000a7354;
LAB_000a7298:
        iVar7 = iVar11 + param_2;
        iVar12 = FUN_0009cf5c(*(undefined4 *)(iVar12 + 0x48));
        iVar10 = param_4;
        if (iVar12 != 0) goto LAB_000a7304;
      }
      param_3 = param_3 - iVar5;
      (*(code *)PTR_memcpy_0015ca34)(iVar7,iVar10,iVar5);
      param_4 = param_4 + iVar5;
      param_2 = 0;
      if (param_3 == 0) goto LAB_000a72dc;
    }
    else {
      param_2 = param_2 - uVar6;
      if (param_3 == 0) {
LAB_000a72dc:
        iVar12 = 0;
        goto LAB_000a7304;
      }
    }
    iVar12 = *(int *)(param_1 + 0xc);
    uVar6 = piVar9[9] - 4;
    local_34 = *(int *)(iVar11 + (uint)*(ushort *)(param_1 + 0x30));
    if ((*(byte *)(param_1 + 1) & 4) == 0) {
      if (uVar6 == 0) {
        trap(7);
      }
      uVar14 = ((*(int *)(param_1 + 0x2c) + -1 + uVar6) - (uint)*(ushort *)(param_1 + 0x30)) / uVar6
      ;
      if (iVar12 == 0) {
LAB_000a7368:
        iVar12 = (*(code *)(PTR_LAB_0015c6dc + -0x2708))(iVar12);
        if (iVar12 == 0) {
          iVar12 = 7;
          goto LAB_000a7304;
        }
        *(int *)(param_1 + 0xc) = iVar12;
      }
      else {
        iVar11 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))();
        iVar12 = *(int *)(param_1 + 0xc);
        if (iVar11 < (int)(uVar14 << 2)) goto LAB_000a7368;
      }
      (*(code *)PTR_memset_0015c9b8)(iVar12,0,uVar14 << 2);
      *(byte *)(param_1 + 1) = *(byte *)(param_1 + 1) | 4;
    }
    else {
      if (uVar6 == 0) {
        trap(7);
      }
      uVar8 = param_2 / uVar6;
      uVar14 = param_2 % uVar6;
      iVar11 = *(int *)(iVar12 + uVar8 * 4);
      if (iVar11 != 0) goto LAB_000a719c;
    }
    uVar8 = 0;
    if (local_34 != 0) {
      iVar12 = *(int *)(param_1 + 0xc);
      uVar14 = param_2;
      iVar11 = local_34;
LAB_000a719c:
      local_34 = iVar11;
      puVar2 = PTR_DAT_0015c708;
      puVar1 = PTR_LAB_0015c66c;
      uVar4 = 2;
      iVar11 = uVar8 + 1;
      if (param_5 != 0) {
        uVar4 = 0;
      }
      iVar7 = iVar11 * 4;
      *(int *)(iVar12 + iVar7 + -4) = local_34;
      puVar3 = PTR_LAB_0015c744;
      uVar8 = param_3 + uVar14;
      iVar5 = param_3;
      if (uVar14 < uVar6) goto LAB_000a7220;
      do {
        iVar5 = *(int *)(param_1 + 0xc);
        uVar14 = uVar14 - uVar6;
        iVar12 = *(int *)(iVar5 + iVar7);
        if (*(int *)(iVar5 + iVar7) == 0) {
          iVar12 = (*(code *)(puVar3 + -0x6468))(piVar9,local_34,0,&local_34);
          goto LAB_000a7268;
        }
        while( true ) {
          local_34 = iVar12;
          iVar11 = iVar11 + 1;
          iVar7 = iVar11 * 4;
          *(int *)(iVar5 + iVar7 + -4) = local_34;
          if (uVar6 <= uVar14) break;
          uVar8 = param_3 + uVar14;
          iVar5 = param_3;
LAB_000a7220:
          param_3 = 0;
          if (uVar6 < uVar8) {
            param_3 = (uVar14 - uVar6) + iVar5;
            iVar5 = uVar6 - uVar14;
          }
          iVar12 = (**(code **)(*piVar9 + 0xcc))(*piVar9,local_34,&local_30,uVar4);
          iVar7 = local_30;
          if (iVar12 == 0) {
            iVar10 = (int)*(int **)(local_30 + 4) + uVar14 + 4;
            local_34 = **(int **)(local_30 + 4);
            if (param_5 == 0) {
              (*(code *)PTR_memcpy_0015ca34)(param_4,iVar10,iVar5);
              uVar14 = 0;
              (*(code *)(puVar1 + -0x138c))(iVar7);
              iVar12 = 0;
            }
            else {
              iVar12 = (*(code *)(puVar2 + -0x30a4))(local_30);
              if (iVar12 == 0) {
                (*(code *)PTR_memcpy_0015ca34)(iVar10,param_4,iVar5);
              }
              uVar14 = 0;
              if (local_30 != 0) {
                (*(code *)(puVar1 + -0x138c))(local_30);
              }
            }
          }
          param_4 = param_4 + iVar5;
          if (param_3 == 0) goto LAB_000a7304;
LAB_000a7268:
          if (iVar12 != 0) goto LAB_000a7304;
          if (local_34 == 0) goto LAB_000a7494;
          iVar5 = *(int *)(param_1 + 0xc);
          iVar12 = local_34;
        }
      } while( true );
    }
LAB_000a7494:
    uVar4 = 0x1094f;
  }
  iVar12 = (*(code *)(PTR_LAB_0015c744 + -0x6c90))(uVar4);
LAB_000a7304:
  if (local_2c == *(int *)puVar13) {
    return iVar12;
  }
  iVar11 = local_2c;
  puVar13 = PTR___stack_chk_fail_0015ca14;
  (*(code *)PTR___stack_chk_fail_0015ca14)();
  (*(code *)(*(int *)(puVar13 + 0xb51b8) + -0xc70))();
  uVar6 = *(uint *)(iVar11 + 0x2c);
  *(undefined4 *)(iVar11 + 0x38) = 0;
  *(uint *)(iVar11 + 0x3c) = uVar6;
  iVar12 = (*(code *)(*(int *)(puVar13 + 0xb5228) + -0x5370))(uVar6 + 0x11 < uVar6);
  if (iVar12 == 0) {
    return 7;
  }
  iVar5 = MASKED(iVar11,0,*(undefined4 *)(iVar11 + 0x3c),iVar12,0);
  if (iVar5 == 0) {
    (**(code **)(puVar13 + 0xb5504))(iVar12 + *(int *)(iVar11 + 0x3c),0,0x11);
    *(int *)(iVar11 + 0x10) = iVar12;
    return 0;
  }
  (**(code **)(puVar13 + 0xb5138))(iVar12);
  return iVar5;
}

