
void fts3UpdateDocTotals(int *pRC,Fts3Table *p,u32 *aSzIns,u32 *aSzDel,int nChng)

{
  int iVar1;
  int iVar2;
  uint uVar3;
  int iVar4;
  int iVar5;
  uint *p_00;
  long lVar6;
  void *pvVar7;
  uint *puVar8;
  int iVar9;
  long lVar10;
  long in_FS_OFFSET;
  sqlite3_stmt *pStmt;
  sqlite3_int64 x;
  long local_40;
  
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  if (*pRC == 0) {
    iVar4 = p->nColumn;
    iVar1 = iVar4 + 2;
    lVar10 = (long)iVar1;
    p_00 = (uint *)sqlite3_malloc64(lVar10 * 0xe);
    if (p_00 == (uint *)0x0) {
      *pRC = 7;
    }
    else {
      iVar2 = fts3SqlStmt(p,0x16,&pStmt,(sqlite3_value **)0x0);
      if (iVar2 == 0) {
        sqlite3_bind_int(pStmt,1,0);
        iVar2 = sqlite3_step(pStmt);
        if (iVar2 == 100) {
          iVar5 = sqlite3_column_bytes(pStmt,0);
          pvVar7 = sqlite3_column_blob(pStmt,0);
          iVar2 = iVar5;
          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)((long)pvVar7 + (long)iVar5 + -1))) &&
              (0 < iVar1)) && (0 < iVar5)) {
            lVar6 = 1;
            iVar9 = 0;
            do {
              iVar2 = sqlite3Fts3GetVarint((char *)((long)iVar9 + (long)pvVar7),&x);
              iVar9 = iVar9 + iVar2;
              p_00[lVar6 + -1] = (uint)x;
              iVar2 = (int)lVar6;
              lVar6 = lVar6 + 1;
            } while (iVar2 < iVar1 && iVar9 < iVar5);
          }
          if (iVar2 < iVar1) {
            puVar8 = p_00 + iVar2;
            do {
              *puVar8 = 0;
              puVar8 = puVar8 + 1;
            } while (puVar8 != p_00 + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);
          }
        }
        else {
          memset(p_00,0,lVar10 * 4);
        }
        iVar2 = sqlite3_reset(pStmt);
        if (iVar2 == 0) {
          if ((-1 < nChng) || (uVar3 = 0, (uint)-nChng <= *p_00)) {
            uVar3 = nChng + *p_00;
          }
          *p_00 = uVar3;
          lVar6 = 0;
          if (-1 < p->nColumn) {
            do {
              uVar3 = (p_00[lVar6 + 1] + aSzIns[lVar6]) - aSzDel[lVar6];
              if (p_00[lVar6 + 1] + aSzIns[lVar6] < aSzDel[lVar6]) {
                uVar3 = 0;
              }
              p_00[lVar6 + 1] = uVar3;
              lVar6 = lVar6 + 1;
            } while ((int)lVar6 <= p->nColumn);
          }
          iVar2 = 0;
          if (0 < iVar1) {
            iVar2 = 0;
            puVar8 = p_00;
            do {
              iVar1 = sqlite3Fts3PutVarint
                                ((char *)((long)iVar2 + (long)(p_00 + lVar10)),(ulong)*puVar8);
              iVar2 = iVar2 + iVar1;
              puVar8 = puVar8 + 1;
            } while (p_00 + (ulong)(iVar4 + 1) + 1 != puVar8);
          }
          iVar4 = fts3SqlStmt(p,0x17,&pStmt,(sqlite3_value **)0x0);
          if (iVar4 == 0) {
            sqlite3_bind_int(pStmt,1,0);
            sqlite3_bind_blob(pStmt,2,p_00 + lVar10,iVar2,(_func_void_void_ptr *)0x0);
            sqlite3_step(pStmt);
            iVar4 = sqlite3_reset(pStmt);
            *pRC = iVar4;
            sqlite3_bind_null(pStmt,2);
            sqlite3_free(p_00);
          }
          else {
            sqlite3_free(p_00);
            *pRC = iVar4;
          }
        }
        else {
          sqlite3_free(p_00);
          *pRC = iVar2;
        }
      }
      else {
        sqlite3_free(p_00);
        *pRC = iVar2;
      }
    }
  }
  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return;
}



void FUN_001cadff(int *param_1,long param_2,long param_3,long param_4,int param_5)

{
  int iVar1;
  int iVar2;
  uint uVar3;
  int iVar4;
  int iVar5;
  uint *__s;
  long lVar6;
  uint *puVar7;
  uint uVar8;
  uint uVar9;
  int iVar10;
  long lVar11;
  long lVar12;
  long in_FS_OFFSET;
  undefined8 local_50;
  undefined1 local_48 [8];
  long local_40;
  
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  if (*param_1 == 0) {
    iVar4 = *(int *)(param_2 + 0x30);
    iVar1 = iVar4 + 2;
    lVar11 = (long)iVar1;
    __s = (uint *)FUN_0014bbac(lVar11 * 0xe,0);
    if (__s == (uint *)0x0) {
      *param_1 = 7;
    }
    else {
      iVar2 = FUN_001bfdf9(param_2,0x16,&local_50,0);
      if (iVar2 == 0) {
        FUN_0015b4b1(local_50,1,0);
        iVar2 = FUN_001ab5c0(local_50);
        if (iVar2 == 100) {
          iVar5 = FUN_00156893(local_50,0);
          lVar6 = FUN_00156af8(local_50,0);
          iVar2 = iVar5;
          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&
              (0 < iVar1)) && (0 < iVar5)) {
            lVar12 = 1;
            iVar10 = 0;
            do {
              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);
              iVar10 = iVar10 + iVar2;
              __s[lVar12 + -1] = local_48._0_4_;
              iVar2 = (int)lVar12;
              lVar12 = lVar12 + 1;
            } while (iVar2 < iVar1 && iVar10 < iVar5);
          }
          if (iVar2 < iVar1) {
            puVar7 = __s + iVar2;
            do {
              *puVar7 = 0;
              puVar7 = puVar7 + 1;
            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);
          }
        }
        else {
          memset(__s,0,lVar11 * 4);
        }
        iVar2 = FUN_00190b14(local_50);
        if (iVar2 == 0) {
          if ((-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s)) {
            uVar3 = param_5 + *__s;
          }
          *__s = uVar3;
          lVar6 = 0;
          if (-1 < *(int *)(param_2 + 0x30)) {
            do {
              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);
              uVar3 = *(uint *)(param_4 + lVar6 * 4);
              uVar8 = uVar9 - uVar3;
              if (uVar9 < uVar3) {
                uVar8 = 0;
              }
              __s[lVar6 + 1] = uVar8;
              lVar6 = lVar6 + 1;
            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));
          }
          iVar2 = 0;
          if (0 < iVar1) {
            iVar2 = 0;
            puVar7 = __s;
            do {
              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);
              iVar2 = iVar2 + iVar1;
              puVar7 = puVar7 + 1;
            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);
          }
          iVar4 = FUN_001bfdf9(param_2,0x17,&local_50,0);
          if (iVar4 == 0) {
            FUN_0015b4b1(local_50,1,0);
            FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);
            FUN_001ab5c0(local_50);
            iVar4 = FUN_00190b14(local_50);
            *param_1 = iVar4;
            FUN_0015b4c2(local_50,2);
            FUN_00141303(__s);
          }
          else {
            FUN_00141303(__s);
            *param_1 = iVar4;
          }
        }
        else {
          FUN_00141303(__s);
          *param_1 = iVar2;
        }
      }
      else {
        FUN_00141303(__s);
        *param_1 = iVar2;
      }
    }
  }
  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return;
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x68
MOV qword ptr [RSP + 0x8],RDI
MOV R13,RSI
MOV dword ptr [RSP + 0x14],R8D
MOV RSI,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0x58],RSI
XOR ESI,ESI
CMP dword ptr [RDI],0x0
JZ 0x001cae52
MOV RAX,qword ptr [RSP + 0x58]
XOR RAX,qword ptr FS:[0x28]
JNZ 0x001cb16f
ADD RSP,0x68
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
MOV RBX,RDX
MOV R15,RCX
MOV EAX,dword ptr [R13 + 0x30]
MOV dword ptr [RSP + 0x1c],EAX
ADD EAX,0x2
MOV dword ptr [RSP + 0x18],EAX
MOVSXD R14,EAX
LEA RDI,[R14*0x8]
SUB RDI,R14
ADD RDI,RDI
CALL 0x0014bbac
MOV RBP,RAX
TEST RAX,RAX
JZ 0x001cb00d
LEA RDX,[RSP + 0x48]
MOV ECX,0x0
MOV ESI,0x16
MOV RDI,R13
CALL 0x001bfdf9
MOV R12D,EAX
TEST EAX,EAX
JNZ 0x001cb01d
LEA RAX,[R14*0x4]
MOV qword ptr [RSP + 0x20],RAX
MOV EDX,0x0
MOV ESI,0x1
MOV RDI,qword ptr [RSP + 0x48]
CALL 0x0015b4b1
MOV RDI,qword ptr [RSP + 0x48]
CALL 0x001ab5c0
CMP EAX,0x64
JZ 0x001cb032
MOV RDX,qword ptr [RSP + 0x20]
MOV ESI,0x0
MOV RDI,RBP
CALL 0x0010e060
MOV RDI,qword ptr [RSP + 0x48]
CALL 0x00190b14
MOV R12D,EAX
TEST EAX,EAX
JNZ 0x001cb12f
MOV EAX,dword ptr [RSP + 0x14]
TEST EAX,EAX
JS 0x001cb144
MOV EAX,dword ptr [RSP + 0x14]
ADD EAX,dword ptr [RBP]
MOV dword ptr [RBP],EAX
MOV EAX,0x0
MOV EDI,0x0
CMP dword ptr [R13 + 0x30],0x0
JS 0x001caf4f
MOV EDX,dword ptr [RBP + RAX*0x4 + 0x4]
ADD EDX,dword ptr [RBX + RAX*0x4]
MOV ESI,dword ptr [R15 + RAX*0x4]
MOV ECX,EDX
SUB ECX,ESI
CMP EDX,ESI
CMOVC ECX,EDI
MOV dword ptr [RBP + RAX*0x4 + 0x4],ECX
ADD RAX,0x1
CMP dword ptr [R13 + 0x30],EAX
JGE 0x001caf2d
MOV R14,qword ptr [RSP + 0x20]
ADD R14,RBP
CMP dword ptr [RSP + 0x18],0x0
JLE 0x001caf86
MOV RBX,RBP
MOV EAX,dword ptr [RSP + 0x1c]
LEA EAX,[RAX + 0x1]
LEA R15,[RBP + RAX*0x4 + 0x4]
MOV ESI,dword ptr [RBX]
MOVSXD RDI,R12D
ADD RDI,R14
CALL 0x00131bae
ADD R12D,EAX
ADD RBX,0x4
CMP R15,RBX
JNZ 0x001caf6d
LEA RDX,[RSP + 0x48]
MOV ECX,0x0
MOV ESI,0x17
MOV RDI,R13
CALL 0x001bfdf9
MOV EBX,EAX
TEST EAX,EAX
JNZ 0x001cb15b
MOV EDX,0x0
MOV ESI,0x1
MOV RDI,qword ptr [RSP + 0x48]
CALL 0x0015b4b1
MOV R8D,0x0
MOV ECX,R12D
MOV RDX,R14
MOV ESI,0x2
MOV RDI,qword ptr [RSP + 0x48]
CALL 0x0015b334
MOV RDI,qword ptr [RSP + 0x48]
CALL 0x001ab5c0
MOV RDI,qword ptr [RSP + 0x48]
CALL 0x00190b14
MOV RBX,qword ptr [RSP + 0x8]
MOV dword ptr [RBX],EAX
MOV ESI,0x2
MOV RDI,qword ptr [RSP + 0x48]
CALL 0x0015b4c2
MOV RDI,RBP
CALL 0x00141303
JMP 0x001cae2f
MOV RAX,qword ptr [RSP + 0x8]
MOV dword ptr [RAX],0x7
JMP 0x001cae2f
MOV RDI,RBP
CALL 0x00141303
MOV RAX,qword ptr [RSP + 0x8]
MOV dword ptr [RAX],R12D
JMP 0x001cae2f
MOV ESI,0x0
MOV RDI,qword ptr [RSP + 0x48]
CALL 0x00156893
MOV R14D,EAX
MOV ESI,0x0
MOV RDI,qword ptr [RSP + 0x48]
CALL 0x00156af8
MOV RCX,RAX
TEST R14D,R14D
JZ 0x001cb0ec
MOVSXD RAX,R14D
CMP byte ptr [RCX + RAX*0x1 + -0x1],0x0
JS 0x001cb125
CMP dword ptr [RSP + 0x18],0x0
JLE 0x001cb12a
MOV EAX,R14D
TEST R14D,R14D
JLE 0x001cb12a
MOV R14D,0x1
LEA RSI,[RSP + 0x50]
MOV qword ptr [RSP + 0x28],R13
MOV R13,RCX
MOV qword ptr [RSP + 0x30],RBX
MOV EBX,EAX
MOV qword ptr [RSP + 0x38],R15
MOV R15,RSI
MOVSXD RDI,R12D
ADD RDI,R13
MOV RSI,R15
CALL 0x00131bd6
ADD R12D,EAX
MOV RAX,qword ptr [RSP + 0x50]
MOV dword ptr [RBP + R14*0x4 + -0x4],EAX
MOV ECX,R14D
CMP dword ptr [RSP + 0x18],R14D
SETG DL
CMP EBX,R12D
SETG AL
ADD R14,0x1
TEST DL,AL
JNZ 0x001cb0a6
MOV R13,qword ptr [RSP + 0x28]
MOV RBX,qword ptr [RSP + 0x30]
MOV R15,qword ptr [RSP + 0x38]
MOV R14D,ECX
CMP dword ptr [RSP + 0x18],R14D
JLE 0x001caef1
MOVSXD RCX,R14D
LEA RAX,[RBP + RCX*0x4]
MOV EDX,dword ptr [RSP + 0x1c]
ADD EDX,0x1
SUB EDX,R14D
ADD RDX,RCX
LEA RDX,[RBP + RDX*0x4 + 0x4]
MOV dword ptr [RAX],0x0
ADD RAX,0x4
CMP RAX,RDX
JNZ 0x001cb111
JMP 0x001caef1
MOV R14D,R12D
JMP 0x001cb0ec
MOV R14D,R12D
JMP 0x001cb0ec
MOV RDI,RBP
CALL 0x00141303
MOV RAX,qword ptr [RSP + 0x8]
MOV dword ptr [RAX],R12D
JMP 0x001cae2f
MOV EDX,EAX
NEG EDX
MOV EAX,0x0
CMP dword ptr [RBP],EDX
JC 0x001caf19
JMP 0x001caf12
MOV RDI,RBP
CALL 0x00141303
MOV RAX,qword ptr [RSP + 0x8]
MOV dword ptr [RAX],EBX
JMP 0x001cae2f
CALL 0x0010e4d0
(translation_unit "void FUN_001cadff(int *param_1,long param_2,long param_3,long param_4,int param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  uint *__s;\n  long lVar6;\n  uint *puVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  long lVar11;\n  long lVar12;\n  long in_FS_OFFSET;\n  undefined8 local_50;\n  undefined1 local_48 [8];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*param_1 == 0) {\n    iVar4 = *(int *)(param_2 + 0x30);\n    iVar1 = iVar4 + 2;\n    lVar11 = (long)iVar1;\n    __s = (uint *)FUN_0014bbac(lVar11 * 0xe,0);\n    if (__s == (uint *)0x0) {\n      *param_1 = 7;\n    }\n    else {\n      iVar2 = FUN_001bfdf9(param_2,0x16,&local_50,0);\n      if (iVar2 == 0) {\n        FUN_0015b4b1(local_50,1,0);\n        iVar2 = FUN_001ab5c0(local_50);\n        if (iVar2 == 100) {\n          iVar5 = FUN_00156893(local_50,0);\n          lVar6 = FUN_00156af8(local_50,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar12 = 1;\n            iVar10 = 0;\n            do {\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            } while (iVar2 < iVar1 && iVar10 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar7 = __s + iVar2;\n            do {\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }\n        else {\n          memset(__s,0,lVar11 * 4);\n        }\n        iVar2 = FUN_00190b14(local_50);\n        if (iVar2 == 0) {\n          if ((-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s)) {\n            uVar3 = param_5 + *__s;\n          }\n          *__s = uVar3;\n          lVar6 = 0;\n          if (-1 < *(int *)(param_2 + 0x30)) {\n            do {\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar7 = __s;\n            do {\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);\n          }\n          iVar4 = FUN_001bfdf9(param_2,0x17,&local_50,0);\n          if (iVar4 == 0) {\n            FUN_0015b4b1(local_50,1,0);\n            FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);\n            FUN_001ab5c0(local_50);\n            iVar4 = FUN_00190b14(local_50);\n            *param_1 = iVar4;\n            FUN_0015b4c2(local_50,2);\n            FUN_00141303(__s);\n          }\n          else {\n            FUN_00141303(__s);\n            *param_1 = iVar4;\n          }\n        }\n        else {\n          FUN_00141303(__s);\n          *param_1 = iVar2;\n        }\n      }\n      else {\n        FUN_00141303(__s);\n        *param_1 = iVar2;\n      }\n    }\n  }\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return;\n}\n\n" (function_definition "void FUN_001cadff(int *param_1,long param_2,long param_3,long param_4,int param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  uint *__s;\n  long lVar6;\n  uint *puVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  long lVar11;\n  long lVar12;\n  long in_FS_OFFSET;\n  undefined8 local_50;\n  undefined1 local_48 [8];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*param_1 == 0) {\n    iVar4 = *(int *)(param_2 + 0x30);\n    iVar1 = iVar4 + 2;\n    lVar11 = (long)iVar1;\n    __s = (uint *)FUN_0014bbac(lVar11 * 0xe,0);\n    if (__s == (uint *)0x0) {\n      *param_1 = 7;\n    }\n    else {\n      iVar2 = FUN_001bfdf9(param_2,0x16,&local_50,0);\n      if (iVar2 == 0) {\n        FUN_0015b4b1(local_50,1,0);\n        iVar2 = FUN_001ab5c0(local_50);\n        if (iVar2 == 100) {\n          iVar5 = FUN_00156893(local_50,0);\n          lVar6 = FUN_00156af8(local_50,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar12 = 1;\n            iVar10 = 0;\n            do {\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            } while (iVar2 < iVar1 && iVar10 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar7 = __s + iVar2;\n            do {\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }\n        else {\n          memset(__s,0,lVar11 * 4);\n        }\n        iVar2 = FUN_00190b14(local_50);\n        if (iVar2 == 0) {\n          if ((-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s)) {\n            uVar3 = param_5 + *__s;\n          }\n          *__s = uVar3;\n          lVar6 = 0;\n          if (-1 < *(int *)(param_2 + 0x30)) {\n            do {\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar7 = __s;\n            do {\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);\n          }\n          iVar4 = FUN_001bfdf9(param_2,0x17,&local_50,0);\n          if (iVar4 == 0) {\n            FUN_0015b4b1(local_50,1,0);\n            FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);\n            FUN_001ab5c0(local_50);\n            iVar4 = FUN_00190b14(local_50);\n            *param_1 = iVar4;\n            FUN_0015b4c2(local_50,2);\n            FUN_00141303(__s);\n          }\n          else {\n            FUN_00141303(__s);\n            *param_1 = iVar4;\n          }\n        }\n        else {\n          FUN_00141303(__s);\n          *param_1 = iVar2;\n        }\n      }\n      else {\n        FUN_00141303(__s);\n        *param_1 = iVar2;\n      }\n    }\n  }\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return;\n}" primitive_type (function_declarator "FUN_001cadff(int *param_1,long param_2,long param_3,long param_4,int param_5)" identifier (parameter_list "(int *param_1,long param_2,long param_3,long param_4,int param_5)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_4" (sized_type_specifier "long" long) identifier) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  uint *__s;\n  long lVar6;\n  uint *puVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  long lVar11;\n  long lVar12;\n  long in_FS_OFFSET;\n  undefined8 local_50;\n  undefined1 local_48 [8];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*param_1 == 0) {\n    iVar4 = *(int *)(param_2 + 0x30);\n    iVar1 = iVar4 + 2;\n    lVar11 = (long)iVar1;\n    __s = (uint *)FUN_0014bbac(lVar11 * 0xe,0);\n    if (__s == (uint *)0x0) {\n      *param_1 = 7;\n    }\n    else {\n      iVar2 = FUN_001bfdf9(param_2,0x16,&local_50,0);\n      if (iVar2 == 0) {\n        FUN_0015b4b1(local_50,1,0);\n        iVar2 = FUN_001ab5c0(local_50);\n        if (iVar2 == 100) {\n          iVar5 = FUN_00156893(local_50,0);\n          lVar6 = FUN_00156af8(local_50,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar12 = 1;\n            iVar10 = 0;\n            do {\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            } while (iVar2 < iVar1 && iVar10 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar7 = __s + iVar2;\n            do {\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }\n        else {\n          memset(__s,0,lVar11 * 4);\n        }\n        iVar2 = FUN_00190b14(local_50);\n        if (iVar2 == 0) {\n          if ((-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s)) {\n            uVar3 = param_5 + *__s;\n          }\n          *__s = uVar3;\n          lVar6 = 0;\n          if (-1 < *(int *)(param_2 + 0x30)) {\n            do {\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar7 = __s;\n            do {\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);\n          }\n          iVar4 = FUN_001bfdf9(param_2,0x17,&local_50,0);\n          if (iVar4 == 0) {\n            FUN_0015b4b1(local_50,1,0);\n            FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);\n            FUN_001ab5c0(local_50);\n            iVar4 = FUN_00190b14(local_50);\n            *param_1 = iVar4;\n            FUN_0015b4c2(local_50,2);\n            FUN_00141303(__s);\n          }\n          else {\n            FUN_00141303(__s);\n            *param_1 = iVar4;\n          }\n        }\n        else {\n          FUN_00141303(__s);\n          *param_1 = iVar2;\n        }\n      }\n      else {\n        FUN_00141303(__s);\n        *param_1 = iVar2;\n      }\n    }\n  }\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint *__s;" type_identifier (pointer_declarator "*__s" * identifier) ;) (declaration "long lVar6;" (sized_type_specifier "long" long) identifier ;) (declaration "uint *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "long lVar11;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar12;" (sized_type_specifier "long" long) identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 local_50;" type_identifier identifier ;) (declaration "undefined1 local_48 [8];" type_identifier (array_declarator "local_48 [8]" identifier [ number_literal ]) ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (*param_1 == 0) {\n    iVar4 = *(int *)(param_2 + 0x30);\n    iVar1 = iVar4 + 2;\n    lVar11 = (long)iVar1;\n    __s = (uint *)FUN_0014bbac(lVar11 * 0xe,0);\n    if (__s == (uint *)0x0) {\n      *param_1 = 7;\n    }\n    else {\n      iVar2 = FUN_001bfdf9(param_2,0x16,&local_50,0);\n      if (iVar2 == 0) {\n        FUN_0015b4b1(local_50,1,0);\n        iVar2 = FUN_001ab5c0(local_50);\n        if (iVar2 == 100) {\n          iVar5 = FUN_00156893(local_50,0);\n          lVar6 = FUN_00156af8(local_50,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar12 = 1;\n            iVar10 = 0;\n            do {\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            } while (iVar2 < iVar1 && iVar10 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar7 = __s + iVar2;\n            do {\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }\n        else {\n          memset(__s,0,lVar11 * 4);\n        }\n        iVar2 = FUN_00190b14(local_50);\n        if (iVar2 == 0) {\n          if ((-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s)) {\n            uVar3 = param_5 + *__s;\n          }\n          *__s = uVar3;\n          lVar6 = 0;\n          if (-1 < *(int *)(param_2 + 0x30)) {\n            do {\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar7 = __s;\n            do {\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);\n          }\n          iVar4 = FUN_001bfdf9(param_2,0x17,&local_50,0);\n          if (iVar4 == 0) {\n            FUN_0015b4b1(local_50,1,0);\n            FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);\n            FUN_001ab5c0(local_50);\n            iVar4 = FUN_00190b14(local_50);\n            *param_1 = iVar4;\n            FUN_0015b4c2(local_50,2);\n            FUN_00141303(__s);\n          }\n          else {\n            FUN_00141303(__s);\n            *param_1 = iVar4;\n          }\n        }\n        else {\n          FUN_00141303(__s);\n          *param_1 = iVar2;\n        }\n      }\n      else {\n        FUN_00141303(__s);\n        *param_1 = iVar2;\n      }\n    }\n  }" if (parenthesized_expression "(*param_1 == 0)" ( (binary_expression "*param_1 == 0" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n    iVar4 = *(int *)(param_2 + 0x30);\n    iVar1 = iVar4 + 2;\n    lVar11 = (long)iVar1;\n    __s = (uint *)FUN_0014bbac(lVar11 * 0xe,0);\n    if (__s == (uint *)0x0) {\n      *param_1 = 7;\n    }\n    else {\n      iVar2 = FUN_001bfdf9(param_2,0x16,&local_50,0);\n      if (iVar2 == 0) {\n        FUN_0015b4b1(local_50,1,0);\n        iVar2 = FUN_001ab5c0(local_50);\n        if (iVar2 == 100) {\n          iVar5 = FUN_00156893(local_50,0);\n          lVar6 = FUN_00156af8(local_50,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar12 = 1;\n            iVar10 = 0;\n            do {\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            } while (iVar2 < iVar1 && iVar10 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar7 = __s + iVar2;\n            do {\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }\n        else {\n          memset(__s,0,lVar11 * 4);\n        }\n        iVar2 = FUN_00190b14(local_50);\n        if (iVar2 == 0) {\n          if ((-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s)) {\n            uVar3 = param_5 + *__s;\n          }\n          *__s = uVar3;\n          lVar6 = 0;\n          if (-1 < *(int *)(param_2 + 0x30)) {\n            do {\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar7 = __s;\n            do {\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);\n          }\n          iVar4 = FUN_001bfdf9(param_2,0x17,&local_50,0);\n          if (iVar4 == 0) {\n            FUN_0015b4b1(local_50,1,0);\n            FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);\n            FUN_001ab5c0(local_50);\n            iVar4 = FUN_00190b14(local_50);\n            *param_1 = iVar4;\n            FUN_0015b4c2(local_50,2);\n            FUN_00141303(__s);\n          }\n          else {\n            FUN_00141303(__s);\n            *param_1 = iVar4;\n          }\n        }\n        else {\n          FUN_00141303(__s);\n          *param_1 = iVar2;\n        }\n      }\n      else {\n        FUN_00141303(__s);\n        *param_1 = iVar2;\n      }\n    }\n  }" { (expression_statement "iVar4 = *(int *)(param_2 + 0x30);" (assignment_expression "iVar4 = *(int *)(param_2 + 0x30)" identifier = (pointer_expression "*(int *)(param_2 + 0x30)" * (cast_expression "(int *)(param_2 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = iVar4 + 2;" (assignment_expression "iVar1 = iVar4 + 2" identifier = (binary_expression "iVar4 + 2" identifier + number_literal)) ;) (expression_statement "lVar11 = (long)iVar1;" (assignment_expression "lVar11 = (long)iVar1" identifier = (cast_expression "(long)iVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (expression_statement "__s = (uint *)FUN_0014bbac(lVar11 * 0xe,0);" (assignment_expression "__s = (uint *)FUN_0014bbac(lVar11 * 0xe,0)" identifier = (cast_expression "(uint *)FUN_0014bbac(lVar11 * 0xe,0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0014bbac(lVar11 * 0xe,0)" identifier (argument_list "(lVar11 * 0xe,0)" ( (binary_expression "lVar11 * 0xe" identifier * number_literal) , number_literal ))))) ;) (if_statement "if (__s == (uint *)0x0) {\n      *param_1 = 7;\n    }\n    else {\n      iVar2 = FUN_001bfdf9(param_2,0x16,&local_50,0);\n      if (iVar2 == 0) {\n        FUN_0015b4b1(local_50,1,0);\n        iVar2 = FUN_001ab5c0(local_50);\n        if (iVar2 == 100) {\n          iVar5 = FUN_00156893(local_50,0);\n          lVar6 = FUN_00156af8(local_50,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar12 = 1;\n            iVar10 = 0;\n            do {\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            } while (iVar2 < iVar1 && iVar10 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar7 = __s + iVar2;\n            do {\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }\n        else {\n          memset(__s,0,lVar11 * 4);\n        }\n        iVar2 = FUN_00190b14(local_50);\n        if (iVar2 == 0) {\n          if ((-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s)) {\n            uVar3 = param_5 + *__s;\n          }\n          *__s = uVar3;\n          lVar6 = 0;\n          if (-1 < *(int *)(param_2 + 0x30)) {\n            do {\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar7 = __s;\n            do {\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);\n          }\n          iVar4 = FUN_001bfdf9(param_2,0x17,&local_50,0);\n          if (iVar4 == 0) {\n            FUN_0015b4b1(local_50,1,0);\n            FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);\n            FUN_001ab5c0(local_50);\n            iVar4 = FUN_00190b14(local_50);\n            *param_1 = iVar4;\n            FUN_0015b4c2(local_50,2);\n            FUN_00141303(__s);\n          }\n          else {\n            FUN_00141303(__s);\n            *param_1 = iVar4;\n          }\n        }\n        else {\n          FUN_00141303(__s);\n          *param_1 = iVar2;\n        }\n      }\n      else {\n        FUN_00141303(__s);\n        *param_1 = iVar2;\n      }\n    }" if (parenthesized_expression "(__s == (uint *)0x0)" ( (binary_expression "__s == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *param_1 = 7;\n    }" { (expression_statement "*param_1 = 7;" (assignment_expression "*param_1 = 7" (pointer_expression "*param_1" * identifier) = number_literal) ;) }) (else_clause "else {\n      iVar2 = FUN_001bfdf9(param_2,0x16,&local_50,0);\n      if (iVar2 == 0) {\n        FUN_0015b4b1(local_50,1,0);\n        iVar2 = FUN_001ab5c0(local_50);\n        if (iVar2 == 100) {\n          iVar5 = FUN_00156893(local_50,0);\n          lVar6 = FUN_00156af8(local_50,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar12 = 1;\n            iVar10 = 0;\n            do {\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            } while (iVar2 < iVar1 && iVar10 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar7 = __s + iVar2;\n            do {\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }\n        else {\n          memset(__s,0,lVar11 * 4);\n        }\n        iVar2 = FUN_00190b14(local_50);\n        if (iVar2 == 0) {\n          if ((-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s)) {\n            uVar3 = param_5 + *__s;\n          }\n          *__s = uVar3;\n          lVar6 = 0;\n          if (-1 < *(int *)(param_2 + 0x30)) {\n            do {\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar7 = __s;\n            do {\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);\n          }\n          iVar4 = FUN_001bfdf9(param_2,0x17,&local_50,0);\n          if (iVar4 == 0) {\n            FUN_0015b4b1(local_50,1,0);\n            FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);\n            FUN_001ab5c0(local_50);\n            iVar4 = FUN_00190b14(local_50);\n            *param_1 = iVar4;\n            FUN_0015b4c2(local_50,2);\n            FUN_00141303(__s);\n          }\n          else {\n            FUN_00141303(__s);\n            *param_1 = iVar4;\n          }\n        }\n        else {\n          FUN_00141303(__s);\n          *param_1 = iVar2;\n        }\n      }\n      else {\n        FUN_00141303(__s);\n        *param_1 = iVar2;\n      }\n    }" else (compound_statement "{\n      iVar2 = FUN_001bfdf9(param_2,0x16,&local_50,0);\n      if (iVar2 == 0) {\n        FUN_0015b4b1(local_50,1,0);\n        iVar2 = FUN_001ab5c0(local_50);\n        if (iVar2 == 100) {\n          iVar5 = FUN_00156893(local_50,0);\n          lVar6 = FUN_00156af8(local_50,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar12 = 1;\n            iVar10 = 0;\n            do {\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            } while (iVar2 < iVar1 && iVar10 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar7 = __s + iVar2;\n            do {\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }\n        else {\n          memset(__s,0,lVar11 * 4);\n        }\n        iVar2 = FUN_00190b14(local_50);\n        if (iVar2 == 0) {\n          if ((-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s)) {\n            uVar3 = param_5 + *__s;\n          }\n          *__s = uVar3;\n          lVar6 = 0;\n          if (-1 < *(int *)(param_2 + 0x30)) {\n            do {\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar7 = __s;\n            do {\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);\n          }\n          iVar4 = FUN_001bfdf9(param_2,0x17,&local_50,0);\n          if (iVar4 == 0) {\n            FUN_0015b4b1(local_50,1,0);\n            FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);\n            FUN_001ab5c0(local_50);\n            iVar4 = FUN_00190b14(local_50);\n            *param_1 = iVar4;\n            FUN_0015b4c2(local_50,2);\n            FUN_00141303(__s);\n          }\n          else {\n            FUN_00141303(__s);\n            *param_1 = iVar4;\n          }\n        }\n        else {\n          FUN_00141303(__s);\n          *param_1 = iVar2;\n        }\n      }\n      else {\n        FUN_00141303(__s);\n        *param_1 = iVar2;\n      }\n    }" { (expression_statement "iVar2 = FUN_001bfdf9(param_2,0x16,&local_50,0);" (assignment_expression "iVar2 = FUN_001bfdf9(param_2,0x16,&local_50,0)" identifier = (call_expression "FUN_001bfdf9(param_2,0x16,&local_50,0)" identifier (argument_list "(param_2,0x16,&local_50,0)" ( identifier , number_literal , (pointer_expression "&local_50" & identifier) , number_literal )))) ;) (if_statement "if (iVar2 == 0) {\n        FUN_0015b4b1(local_50,1,0);\n        iVar2 = FUN_001ab5c0(local_50);\n        if (iVar2 == 100) {\n          iVar5 = FUN_00156893(local_50,0);\n          lVar6 = FUN_00156af8(local_50,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar12 = 1;\n            iVar10 = 0;\n            do {\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            } while (iVar2 < iVar1 && iVar10 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar7 = __s + iVar2;\n            do {\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }\n        else {\n          memset(__s,0,lVar11 * 4);\n        }\n        iVar2 = FUN_00190b14(local_50);\n        if (iVar2 == 0) {\n          if ((-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s)) {\n            uVar3 = param_5 + *__s;\n          }\n          *__s = uVar3;\n          lVar6 = 0;\n          if (-1 < *(int *)(param_2 + 0x30)) {\n            do {\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar7 = __s;\n            do {\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);\n          }\n          iVar4 = FUN_001bfdf9(param_2,0x17,&local_50,0);\n          if (iVar4 == 0) {\n            FUN_0015b4b1(local_50,1,0);\n            FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);\n            FUN_001ab5c0(local_50);\n            iVar4 = FUN_00190b14(local_50);\n            *param_1 = iVar4;\n            FUN_0015b4c2(local_50,2);\n            FUN_00141303(__s);\n          }\n          else {\n            FUN_00141303(__s);\n            *param_1 = iVar4;\n          }\n        }\n        else {\n          FUN_00141303(__s);\n          *param_1 = iVar2;\n        }\n      }\n      else {\n        FUN_00141303(__s);\n        *param_1 = iVar2;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        FUN_0015b4b1(local_50,1,0);\n        iVar2 = FUN_001ab5c0(local_50);\n        if (iVar2 == 100) {\n          iVar5 = FUN_00156893(local_50,0);\n          lVar6 = FUN_00156af8(local_50,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar12 = 1;\n            iVar10 = 0;\n            do {\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            } while (iVar2 < iVar1 && iVar10 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar7 = __s + iVar2;\n            do {\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }\n        else {\n          memset(__s,0,lVar11 * 4);\n        }\n        iVar2 = FUN_00190b14(local_50);\n        if (iVar2 == 0) {\n          if ((-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s)) {\n            uVar3 = param_5 + *__s;\n          }\n          *__s = uVar3;\n          lVar6 = 0;\n          if (-1 < *(int *)(param_2 + 0x30)) {\n            do {\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar7 = __s;\n            do {\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);\n          }\n          iVar4 = FUN_001bfdf9(param_2,0x17,&local_50,0);\n          if (iVar4 == 0) {\n            FUN_0015b4b1(local_50,1,0);\n            FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);\n            FUN_001ab5c0(local_50);\n            iVar4 = FUN_00190b14(local_50);\n            *param_1 = iVar4;\n            FUN_0015b4c2(local_50,2);\n            FUN_00141303(__s);\n          }\n          else {\n            FUN_00141303(__s);\n            *param_1 = iVar4;\n          }\n        }\n        else {\n          FUN_00141303(__s);\n          *param_1 = iVar2;\n        }\n      }" { (expression_statement "FUN_0015b4b1(local_50,1,0);" (call_expression "FUN_0015b4b1(local_50,1,0)" identifier (argument_list "(local_50,1,0)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "iVar2 = FUN_001ab5c0(local_50);" (assignment_expression "iVar2 = FUN_001ab5c0(local_50)" identifier = (call_expression "FUN_001ab5c0(local_50)" identifier (argument_list "(local_50)" ( identifier )))) ;) (if_statement "if (iVar2 == 100) {\n          iVar5 = FUN_00156893(local_50,0);\n          lVar6 = FUN_00156af8(local_50,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar12 = 1;\n            iVar10 = 0;\n            do {\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            } while (iVar2 < iVar1 && iVar10 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar7 = __s + iVar2;\n            do {\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }\n        else {\n          memset(__s,0,lVar11 * 4);\n        }" if (parenthesized_expression "(iVar2 == 100)" ( (binary_expression "iVar2 == 100" identifier == number_literal) )) (compound_statement "{\n          iVar5 = FUN_00156893(local_50,0);\n          lVar6 = FUN_00156af8(local_50,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar12 = 1;\n            iVar10 = 0;\n            do {\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            } while (iVar2 < iVar1 && iVar10 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar7 = __s + iVar2;\n            do {\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }" { (expression_statement "iVar5 = FUN_00156893(local_50,0);" (assignment_expression "iVar5 = FUN_00156893(local_50,0)" identifier = (call_expression "FUN_00156893(local_50,0)" identifier (argument_list "(local_50,0)" ( identifier , number_literal )))) ;) (expression_statement "lVar6 = FUN_00156af8(local_50,0);" (assignment_expression "lVar6 = FUN_00156af8(local_50,0)" identifier = (call_expression "FUN_00156af8(local_50,0)" identifier (argument_list "(local_50,0)" ( identifier , number_literal )))) ;) (expression_statement "iVar2 = iVar5;" (assignment_expression "iVar2 = iVar5" identifier = identifier) ;) (if_statement "if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar12 = 1;\n            iVar10 = 0;\n            do {\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            } while (iVar2 < iVar1 && iVar10 < iVar5);\n          }" if (parenthesized_expression "((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)) && (0 < iVar5))" ( (binary_expression "(((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)) && (0 < iVar5)" (parenthesized_expression "(((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1))" ( (binary_expression "((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)" (parenthesized_expression "((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5)))" ( (binary_expression "(iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))" (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))" ( (comma_expression "iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5)" (assignment_expression "iVar2 = 0" identifier = number_literal) , (binary_expression "-1 < *(char *)(lVar6 + -1 + (long)iVar5)" number_literal < (pointer_expression "*(char *)(lVar6 + -1 + (long)iVar5)" * (cast_expression "(char *)(lVar6 + -1 + (long)iVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + -1 + (long)iVar5)" ( (binary_expression "lVar6 + -1 + (long)iVar5" (binary_expression "lVar6 + -1" identifier + number_literal) + (cast_expression "(long)iVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) )))))) ))) )) && (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) ))) )) && (parenthesized_expression "(0 < iVar5)" ( (binary_expression "0 < iVar5" number_literal < identifier) ))) )) (compound_statement "{\n            lVar12 = 1;\n            iVar10 = 0;\n            do {\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            } while (iVar2 < iVar1 && iVar10 < iVar5);\n          }" { (expression_statement "lVar12 = 1;" (assignment_expression "lVar12 = 1" identifier = number_literal) ;) (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" identifier = number_literal) ;) (do_statement "do {\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            } while (iVar2 < iVar1 && iVar10 < iVar5);" do (compound_statement "{\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            }" { (expression_statement "iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);" (assignment_expression "iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48)" identifier = (call_expression "FUN_00131bd6(iVar10 + lVar6,local_48)" identifier (argument_list "(iVar10 + lVar6,local_48)" ( (binary_expression "iVar10 + lVar6" identifier + identifier) , identifier )))) ;) (expression_statement "iVar10 = iVar10 + iVar2;" (assignment_expression "iVar10 = iVar10 + iVar2" identifier = (binary_expression "iVar10 + iVar2" identifier + identifier)) ;) (expression_statement "__s[lVar12 + -1] = local_48._0_4_;" (assignment_expression "__s[lVar12 + -1] = local_48._0_4_" (subscript_expression "__s[lVar12 + -1]" identifier [ (binary_expression "lVar12 + -1" identifier + number_literal) ]) = (field_expression "local_48._0_4_" identifier . field_identifier)) ;) (expression_statement "iVar2 = (int)lVar12;" (assignment_expression "iVar2 = (int)lVar12" identifier = (cast_expression "(int)lVar12" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "lVar12 = lVar12 + 1;" (assignment_expression "lVar12 = lVar12 + 1" identifier = (binary_expression "lVar12 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 < iVar1 && iVar10 < iVar5)" ( (binary_expression "iVar2 < iVar1 && iVar10 < iVar5" (binary_expression "iVar2 < iVar1" identifier < identifier) && (binary_expression "iVar10 < iVar5" identifier < identifier)) )) ;) })) (if_statement "if (iVar2 < iVar1) {\n            puVar7 = __s + iVar2;\n            do {\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }" if (parenthesized_expression "(iVar2 < iVar1)" ( (binary_expression "iVar2 < iVar1" identifier < identifier) )) (compound_statement "{\n            puVar7 = __s + iVar2;\n            do {\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }" { (expression_statement "puVar7 = __s + iVar2;" (assignment_expression "puVar7 = __s + iVar2" identifier = (binary_expression "__s + iVar2" identifier + identifier)) ;) (do_statement "do {\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);" do (compound_statement "{\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            }" { (expression_statement "*puVar7 = 0;" (assignment_expression "*puVar7 = 0" (pointer_expression "*puVar7" * identifier) = number_literal) ;) (expression_statement "puVar7 = puVar7 + 1;" (assignment_expression "puVar7 = puVar7 + 1" identifier = (binary_expression "puVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1)" ( (binary_expression "puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1" identifier != (binary_expression "__s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1" (binary_expression "__s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2" (binary_expression "__s + (ulong)(uint)((iVar4 + 1) - iVar2)" identifier + (call_expression "(ulong)(uint)((iVar4 + 1) - iVar2)" (call_expression "(ulong)(uint)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(uint)" ( identifier ))) (argument_list "((iVar4 + 1) - iVar2)" ( (binary_expression "(iVar4 + 1) - iVar2" (parenthesized_expression "(iVar4 + 1)" ( (binary_expression "iVar4 + 1" identifier + number_literal) )) - identifier) )))) + (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) + number_literal)) )) ;) })) }) (else_clause "else {\n          memset(__s,0,lVar11 * 4);\n        }" else (compound_statement "{\n          memset(__s,0,lVar11 * 4);\n        }" { (expression_statement "memset(__s,0,lVar11 * 4);" (call_expression "memset(__s,0,lVar11 * 4)" identifier (argument_list "(__s,0,lVar11 * 4)" ( identifier , number_literal , (binary_expression "lVar11 * 4" identifier * number_literal) ))) ;) }))) (expression_statement "iVar2 = FUN_00190b14(local_50);" (assignment_expression "iVar2 = FUN_00190b14(local_50)" identifier = (call_expression "FUN_00190b14(local_50)" identifier (argument_list "(local_50)" ( identifier )))) ;) (if_statement "if (iVar2 == 0) {\n          if ((-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s)) {\n            uVar3 = param_5 + *__s;\n          }\n          *__s = uVar3;\n          lVar6 = 0;\n          if (-1 < *(int *)(param_2 + 0x30)) {\n            do {\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar7 = __s;\n            do {\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);\n          }\n          iVar4 = FUN_001bfdf9(param_2,0x17,&local_50,0);\n          if (iVar4 == 0) {\n            FUN_0015b4b1(local_50,1,0);\n            FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);\n            FUN_001ab5c0(local_50);\n            iVar4 = FUN_00190b14(local_50);\n            *param_1 = iVar4;\n            FUN_0015b4c2(local_50,2);\n            FUN_00141303(__s);\n          }\n          else {\n            FUN_00141303(__s);\n            *param_1 = iVar4;\n          }\n        }\n        else {\n          FUN_00141303(__s);\n          *param_1 = iVar2;\n        }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n          if ((-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s)) {\n            uVar3 = param_5 + *__s;\n          }\n          *__s = uVar3;\n          lVar6 = 0;\n          if (-1 < *(int *)(param_2 + 0x30)) {\n            do {\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar7 = __s;\n            do {\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);\n          }\n          iVar4 = FUN_001bfdf9(param_2,0x17,&local_50,0);\n          if (iVar4 == 0) {\n            FUN_0015b4b1(local_50,1,0);\n            FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);\n            FUN_001ab5c0(local_50);\n            iVar4 = FUN_00190b14(local_50);\n            *param_1 = iVar4;\n            FUN_0015b4c2(local_50,2);\n            FUN_00141303(__s);\n          }\n          else {\n            FUN_00141303(__s);\n            *param_1 = iVar4;\n          }\n        }" { (if_statement "if ((-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s)) {\n            uVar3 = param_5 + *__s;\n          }" if (parenthesized_expression "((-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s))" ( (binary_expression "(-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s)" (parenthesized_expression "(-1 < param_5)" ( (binary_expression "-1 < param_5" number_literal < identifier) )) || (parenthesized_expression "(uVar3 = 0, (uint)-param_5 <= *__s)" ( (comma_expression "uVar3 = 0, (uint)-param_5 <= *__s" (assignment_expression "uVar3 = 0" identifier = number_literal) , (binary_expression "(uint)-param_5 <= *__s" (binary_expression "(uint)-param_5" (parenthesized_expression "(uint)" ( identifier )) - identifier) <= (pointer_expression "*__s" * identifier))) ))) )) (compound_statement "{\n            uVar3 = param_5 + *__s;\n          }" { (expression_statement "uVar3 = param_5 + *__s;" (assignment_expression "uVar3 = param_5 + *__s" identifier = (binary_expression "param_5 + *__s" identifier + (pointer_expression "*__s" * identifier))) ;) })) (expression_statement "*__s = uVar3;" (assignment_expression "*__s = uVar3" (pointer_expression "*__s" * identifier) = identifier) ;) (expression_statement "lVar6 = 0;" (assignment_expression "lVar6 = 0" identifier = number_literal) ;) (if_statement "if (-1 < *(int *)(param_2 + 0x30)) {\n            do {\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));\n          }" if (parenthesized_expression "(-1 < *(int *)(param_2 + 0x30))" ( (binary_expression "-1 < *(int *)(param_2 + 0x30)" number_literal < (pointer_expression "*(int *)(param_2 + 0x30)" * (cast_expression "(int *)(param_2 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) ))))) )) (compound_statement "{\n            do {\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));\n          }" { (do_statement "do {\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));" do (compound_statement "{\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            }" { (expression_statement "uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);" (assignment_expression "uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4)" identifier = (binary_expression "__s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4)" (subscript_expression "__s[lVar6 + 1]" identifier [ (binary_expression "lVar6 + 1" identifier + number_literal) ]) + (pointer_expression "*(int *)(param_3 + lVar6 * 4)" * (cast_expression "(int *)(param_3 + lVar6 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + lVar6 * 4)" ( (binary_expression "param_3 + lVar6 * 4" identifier + (binary_expression "lVar6 * 4" identifier * number_literal)) )))))) ;) (expression_statement "uVar3 = *(uint *)(param_4 + lVar6 * 4);" (assignment_expression "uVar3 = *(uint *)(param_4 + lVar6 * 4)" identifier = (pointer_expression "*(uint *)(param_4 + lVar6 * 4)" * (cast_expression "(uint *)(param_4 + lVar6 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + lVar6 * 4)" ( (binary_expression "param_4 + lVar6 * 4" identifier + (binary_expression "lVar6 * 4" identifier * number_literal)) ))))) ;) (expression_statement "uVar8 = uVar9 - uVar3;" (assignment_expression "uVar8 = uVar9 - uVar3" identifier = (binary_expression "uVar9 - uVar3" identifier - identifier)) ;) (if_statement "if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }" if (parenthesized_expression "(uVar9 < uVar3)" ( (binary_expression "uVar9 < uVar3" identifier < identifier) )) (compound_statement "{\n                uVar8 = 0;\n              }" { (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) })) (expression_statement "__s[lVar6 + 1] = uVar8;" (assignment_expression "__s[lVar6 + 1] = uVar8" (subscript_expression "__s[lVar6 + 1]" identifier [ (binary_expression "lVar6 + 1" identifier + number_literal) ]) = identifier) ;) (expression_statement "lVar6 = lVar6 + 1;" (assignment_expression "lVar6 = lVar6 + 1" identifier = (binary_expression "lVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((int)lVar6 <= *(int *)(param_2 + 0x30))" ( (binary_expression "(int)lVar6 <= *(int *)(param_2 + 0x30)" (cast_expression "(int)lVar6" ( (type_descriptor "int" primitive_type) ) identifier) <= (pointer_expression "*(int *)(param_2 + 0x30)" * (cast_expression "(int *)(param_2 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) ))))) )) ;) })) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (if_statement "if (0 < iVar1) {\n            iVar2 = 0;\n            puVar7 = __s;\n            do {\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);\n          }" if (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) )) (compound_statement "{\n            iVar2 = 0;\n            puVar7 = __s;\n            do {\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);\n          }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "puVar7 = __s;" (assignment_expression "puVar7 = __s" identifier = identifier) ;) (do_statement "do {\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);" do (compound_statement "{\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            }" { (expression_statement "iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);" (assignment_expression "iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7)" identifier = (call_expression "FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7)" identifier (argument_list "((long)iVar2 + (long)(__s + lVar11),*puVar7)" ( (binary_expression "(long)iVar2 + (long)(__s + lVar11)" (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (cast_expression "(long)(__s + lVar11)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(__s + lVar11)" ( (binary_expression "__s + lVar11" identifier + identifier) )))) , (pointer_expression "*puVar7" * identifier) )))) ;) (expression_statement "iVar2 = iVar2 + iVar1;" (assignment_expression "iVar2 = iVar2 + iVar1" identifier = (binary_expression "iVar2 + iVar1" identifier + identifier)) ;) (expression_statement "puVar7 = puVar7 + 1;" (assignment_expression "puVar7 = puVar7 + 1" identifier = (binary_expression "puVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(__s + (ulong)(iVar4 + 1) + 1 != puVar7)" ( (binary_expression "__s + (ulong)(iVar4 + 1) + 1 != puVar7" (binary_expression "__s + (ulong)(iVar4 + 1) + 1" (binary_expression "__s + (ulong)(iVar4 + 1)" identifier + (call_expression "(ulong)(iVar4 + 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(iVar4 + 1)" ( (binary_expression "iVar4 + 1" identifier + number_literal) )))) + number_literal) != identifier) )) ;) })) (expression_statement "iVar4 = FUN_001bfdf9(param_2,0x17,&local_50,0);" (assignment_expression "iVar4 = FUN_001bfdf9(param_2,0x17,&local_50,0)" identifier = (call_expression "FUN_001bfdf9(param_2,0x17,&local_50,0)" identifier (argument_list "(param_2,0x17,&local_50,0)" ( identifier , number_literal , (pointer_expression "&local_50" & identifier) , number_literal )))) ;) (if_statement "if (iVar4 == 0) {\n            FUN_0015b4b1(local_50,1,0);\n            FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);\n            FUN_001ab5c0(local_50);\n            iVar4 = FUN_00190b14(local_50);\n            *param_1 = iVar4;\n            FUN_0015b4c2(local_50,2);\n            FUN_00141303(__s);\n          }\n          else {\n            FUN_00141303(__s);\n            *param_1 = iVar4;\n          }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n            FUN_0015b4b1(local_50,1,0);\n            FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);\n            FUN_001ab5c0(local_50);\n            iVar4 = FUN_00190b14(local_50);\n            *param_1 = iVar4;\n            FUN_0015b4c2(local_50,2);\n            FUN_00141303(__s);\n          }" { (expression_statement "FUN_0015b4b1(local_50,1,0);" (call_expression "FUN_0015b4b1(local_50,1,0)" identifier (argument_list "(local_50,1,0)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);" (call_expression "FUN_0015b334(local_50,2,__s + lVar11,iVar2,0)" identifier (argument_list "(local_50,2,__s + lVar11,iVar2,0)" ( identifier , number_literal , (binary_expression "__s + lVar11" identifier + identifier) , identifier , number_literal ))) ;) (expression_statement "FUN_001ab5c0(local_50);" (call_expression "FUN_001ab5c0(local_50)" identifier (argument_list "(local_50)" ( identifier ))) ;) (expression_statement "iVar4 = FUN_00190b14(local_50);" (assignment_expression "iVar4 = FUN_00190b14(local_50)" identifier = (call_expression "FUN_00190b14(local_50)" identifier (argument_list "(local_50)" ( identifier )))) ;) (expression_statement "*param_1 = iVar4;" (assignment_expression "*param_1 = iVar4" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "FUN_0015b4c2(local_50,2);" (call_expression "FUN_0015b4c2(local_50,2)" identifier (argument_list "(local_50,2)" ( identifier , number_literal ))) ;) (expression_statement "FUN_00141303(__s);" (call_expression "FUN_00141303(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) }) (else_clause "else {\n            FUN_00141303(__s);\n            *param_1 = iVar4;\n          }" else (compound_statement "{\n            FUN_00141303(__s);\n            *param_1 = iVar4;\n          }" { (expression_statement "FUN_00141303(__s);" (call_expression "FUN_00141303(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (expression_statement "*param_1 = iVar4;" (assignment_expression "*param_1 = iVar4" (pointer_expression "*param_1" * identifier) = identifier) ;) }))) }) (else_clause "else {\n          FUN_00141303(__s);\n          *param_1 = iVar2;\n        }" else (compound_statement "{\n          FUN_00141303(__s);\n          *param_1 = iVar2;\n        }" { (expression_statement "FUN_00141303(__s);" (call_expression "FUN_00141303(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) }))) }) (else_clause "else {\n        FUN_00141303(__s);\n        *param_1 = iVar2;\n      }" else (compound_statement "{\n        FUN_00141303(__s);\n        *param_1 = iVar2;\n      }" { (expression_statement "FUN_00141303(__s);" (call_expression "FUN_00141303(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) }))) }))) })) (if_statement "if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" if (parenthesized_expression "(local_40 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" { comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void fts3UpdateDocTotals(int *pRC,Fts3Table *p,u32 *aSzIns,u32 *aSzDel,int nChng)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  uint *p_00;\n  long lVar6;\n  void *pvVar7;\n  uint *puVar8;\n  int iVar9;\n  long lVar10;\n  long in_FS_OFFSET;\n  sqlite3_stmt *pStmt;\n  sqlite3_int64 x;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*pRC == 0) {\n    iVar4 = p->nColumn;\n    iVar1 = iVar4 + 2;\n    lVar10 = (long)iVar1;\n    p_00 = (uint *)sqlite3_malloc64(lVar10 * 0xe);\n    if (p_00 == (uint *)0x0) {\n      *pRC = 7;\n    }\n    else {\n      iVar2 = fts3SqlStmt(p,0x16,&pStmt,(sqlite3_value **)0x0);\n      if (iVar2 == 0) {\n        sqlite3_bind_int(pStmt,1,0);\n        iVar2 = sqlite3_step(pStmt);\n        if (iVar2 == 100) {\n          iVar5 = sqlite3_column_bytes(pStmt,0);\n          pvVar7 = sqlite3_column_blob(pStmt,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)((long)pvVar7 + (long)iVar5 + -1))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar6 = 1;\n            iVar9 = 0;\n            do {\n              iVar2 = sqlite3Fts3GetVarint((char *)((long)iVar9 + (long)pvVar7),&x);\n              iVar9 = iVar9 + iVar2;\n              p_00[lVar6 + -1] = (uint)x;\n              iVar2 = (int)lVar6;\n              lVar6 = lVar6 + 1;\n            } while (iVar2 < iVar1 && iVar9 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar8 = p_00 + iVar2;\n            do {\n              *puVar8 = 0;\n              puVar8 = puVar8 + 1;\n            } while (puVar8 != p_00 + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }\n        else {\n          memset(p_00,0,lVar10 * 4);\n        }\n        iVar2 = sqlite3_reset(pStmt);\n        if (iVar2 == 0) {\n          if ((-1 < nChng) || (uVar3 = 0, (uint)-nChng <= *p_00)) {\n            uVar3 = nChng + *p_00;\n          }\n          *p_00 = uVar3;\n          lVar6 = 0;\n          if (-1 < p->nColumn) {\n            do {\n              uVar3 = (p_00[lVar6 + 1] + aSzIns[lVar6]) - aSzDel[lVar6];\n              if (p_00[lVar6 + 1] + aSzIns[lVar6] < aSzDel[lVar6]) {\n                uVar3 = 0;\n              }\n              p_00[lVar6 + 1] = uVar3;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= p->nColumn);\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar8 = p_00;\n            do {\n              iVar1 = sqlite3Fts3PutVarint\n                                ((char *)((long)iVar2 + (long)(p_00 + lVar10)),(ulong)*puVar8);\n              iVar2 = iVar2 + iVar1;\n              puVar8 = puVar8 + 1;\n            } while (p_00 + (ulong)(iVar4 + 1) + 1 != puVar8);\n          }\n          iVar4 = fts3SqlStmt(p,0x17,&pStmt,(sqlite3_value **)0x0);\n          if (iVar4 == 0) {\n            sqlite3_bind_int(pStmt,1,0);\n            sqlite3_bind_blob(pStmt,2,p_00 + lVar10,iVar2,(_func_void_void_ptr *)0x0);\n            sqlite3_step(pStmt);\n            iVar4 = sqlite3_reset(pStmt);\n            *pRC = iVar4;\n            sqlite3_bind_null(pStmt,2);\n            sqlite3_free(p_00);\n          }\n          else {\n            sqlite3_free(p_00);\n            *pRC = iVar4;\n          }\n        }\n        else {\n          sqlite3_free(p_00);\n          *pRC = iVar2;\n        }\n      }\n      else {\n        sqlite3_free(p_00);\n        *pRC = iVar2;\n      }\n    }\n  }\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return;\n}\n\n" (function_definition "void fts3UpdateDocTotals(int *pRC,Fts3Table *p,u32 *aSzIns,u32 *aSzDel,int nChng)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  uint *p_00;\n  long lVar6;\n  void *pvVar7;\n  uint *puVar8;\n  int iVar9;\n  long lVar10;\n  long in_FS_OFFSET;\n  sqlite3_stmt *pStmt;\n  sqlite3_int64 x;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*pRC == 0) {\n    iVar4 = p->nColumn;\n    iVar1 = iVar4 + 2;\n    lVar10 = (long)iVar1;\n    p_00 = (uint *)sqlite3_malloc64(lVar10 * 0xe);\n    if (p_00 == (uint *)0x0) {\n      *pRC = 7;\n    }\n    else {\n      iVar2 = fts3SqlStmt(p,0x16,&pStmt,(sqlite3_value **)0x0);\n      if (iVar2 == 0) {\n        sqlite3_bind_int(pStmt,1,0);\n        iVar2 = sqlite3_step(pStmt);\n        if (iVar2 == 100) {\n          iVar5 = sqlite3_column_bytes(pStmt,0);\n          pvVar7 = sqlite3_column_blob(pStmt,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)((long)pvVar7 + (long)iVar5 + -1))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar6 = 1;\n            iVar9 = 0;\n            do {\n              iVar2 = sqlite3Fts3GetVarint((char *)((long)iVar9 + (long)pvVar7),&x);\n              iVar9 = iVar9 + iVar2;\n              p_00[lVar6 + -1] = (uint)x;\n              iVar2 = (int)lVar6;\n              lVar6 = lVar6 + 1;\n            } while (iVar2 < iVar1 && iVar9 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar8 = p_00 + iVar2;\n            do {\n              *puVar8 = 0;\n              puVar8 = puVar8 + 1;\n            } while (puVar8 != p_00 + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }\n        else {\n          memset(p_00,0,lVar10 * 4);\n        }\n        iVar2 = sqlite3_reset(pStmt);\n        if (iVar2 == 0) {\n          if ((-1 < nChng) || (uVar3 = 0, (uint)-nChng <= *p_00)) {\n            uVar3 = nChng + *p_00;\n          }\n          *p_00 = uVar3;\n          lVar6 = 0;\n          if (-1 < p->nColumn) {\n            do {\n              uVar3 = (p_00[lVar6 + 1] + aSzIns[lVar6]) - aSzDel[lVar6];\n              if (p_00[lVar6 + 1] + aSzIns[lVar6] < aSzDel[lVar6]) {\n                uVar3 = 0;\n              }\n              p_00[lVar6 + 1] = uVar3;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= p->nColumn);\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar8 = p_00;\n            do {\n              iVar1 = sqlite3Fts3PutVarint\n                                ((char *)((long)iVar2 + (long)(p_00 + lVar10)),(ulong)*puVar8);\n              iVar2 = iVar2 + iVar1;\n              puVar8 = puVar8 + 1;\n            } while (p_00 + (ulong)(iVar4 + 1) + 1 != puVar8);\n          }\n          iVar4 = fts3SqlStmt(p,0x17,&pStmt,(sqlite3_value **)0x0);\n          if (iVar4 == 0) {\n            sqlite3_bind_int(pStmt,1,0);\n            sqlite3_bind_blob(pStmt,2,p_00 + lVar10,iVar2,(_func_void_void_ptr *)0x0);\n            sqlite3_step(pStmt);\n            iVar4 = sqlite3_reset(pStmt);\n            *pRC = iVar4;\n            sqlite3_bind_null(pStmt,2);\n            sqlite3_free(p_00);\n          }\n          else {\n            sqlite3_free(p_00);\n            *pRC = iVar4;\n          }\n        }\n        else {\n          sqlite3_free(p_00);\n          *pRC = iVar2;\n        }\n      }\n      else {\n        sqlite3_free(p_00);\n        *pRC = iVar2;\n      }\n    }\n  }\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return;\n}" primitive_type (function_declarator "fts3UpdateDocTotals(int *pRC,Fts3Table *p,u32 *aSzIns,u32 *aSzDel,int nChng)" identifier (parameter_list "(int *pRC,Fts3Table *p,u32 *aSzIns,u32 *aSzDel,int nChng)" ( (parameter_declaration "int *pRC" primitive_type (pointer_declarator "*pRC" * identifier)) , (parameter_declaration "Fts3Table *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "u32 *aSzIns" type_identifier (pointer_declarator "*aSzIns" * identifier)) , (parameter_declaration "u32 *aSzDel" type_identifier (pointer_declarator "*aSzDel" * identifier)) , (parameter_declaration "int nChng" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  uint *p_00;\n  long lVar6;\n  void *pvVar7;\n  uint *puVar8;\n  int iVar9;\n  long lVar10;\n  long in_FS_OFFSET;\n  sqlite3_stmt *pStmt;\n  sqlite3_int64 x;\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*pRC == 0) {\n    iVar4 = p->nColumn;\n    iVar1 = iVar4 + 2;\n    lVar10 = (long)iVar1;\n    p_00 = (uint *)sqlite3_malloc64(lVar10 * 0xe);\n    if (p_00 == (uint *)0x0) {\n      *pRC = 7;\n    }\n    else {\n      iVar2 = fts3SqlStmt(p,0x16,&pStmt,(sqlite3_value **)0x0);\n      if (iVar2 == 0) {\n        sqlite3_bind_int(pStmt,1,0);\n        iVar2 = sqlite3_step(pStmt);\n        if (iVar2 == 100) {\n          iVar5 = sqlite3_column_bytes(pStmt,0);\n          pvVar7 = sqlite3_column_blob(pStmt,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)((long)pvVar7 + (long)iVar5 + -1))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar6 = 1;\n            iVar9 = 0;\n            do {\n              iVar2 = sqlite3Fts3GetVarint((char *)((long)iVar9 + (long)pvVar7),&x);\n              iVar9 = iVar9 + iVar2;\n              p_00[lVar6 + -1] = (uint)x;\n              iVar2 = (int)lVar6;\n              lVar6 = lVar6 + 1;\n            } while (iVar2 < iVar1 && iVar9 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar8 = p_00 + iVar2;\n            do {\n              *puVar8 = 0;\n              puVar8 = puVar8 + 1;\n            } while (puVar8 != p_00 + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }\n        else {\n          memset(p_00,0,lVar10 * 4);\n        }\n        iVar2 = sqlite3_reset(pStmt);\n        if (iVar2 == 0) {\n          if ((-1 < nChng) || (uVar3 = 0, (uint)-nChng <= *p_00)) {\n            uVar3 = nChng + *p_00;\n          }\n          *p_00 = uVar3;\n          lVar6 = 0;\n          if (-1 < p->nColumn) {\n            do {\n              uVar3 = (p_00[lVar6 + 1] + aSzIns[lVar6]) - aSzDel[lVar6];\n              if (p_00[lVar6 + 1] + aSzIns[lVar6] < aSzDel[lVar6]) {\n                uVar3 = 0;\n              }\n              p_00[lVar6 + 1] = uVar3;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= p->nColumn);\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar8 = p_00;\n            do {\n              iVar1 = sqlite3Fts3PutVarint\n                                ((char *)((long)iVar2 + (long)(p_00 + lVar10)),(ulong)*puVar8);\n              iVar2 = iVar2 + iVar1;\n              puVar8 = puVar8 + 1;\n            } while (p_00 + (ulong)(iVar4 + 1) + 1 != puVar8);\n          }\n          iVar4 = fts3SqlStmt(p,0x17,&pStmt,(sqlite3_value **)0x0);\n          if (iVar4 == 0) {\n            sqlite3_bind_int(pStmt,1,0);\n            sqlite3_bind_blob(pStmt,2,p_00 + lVar10,iVar2,(_func_void_void_ptr *)0x0);\n            sqlite3_step(pStmt);\n            iVar4 = sqlite3_reset(pStmt);\n            *pRC = iVar4;\n            sqlite3_bind_null(pStmt,2);\n            sqlite3_free(p_00);\n          }\n          else {\n            sqlite3_free(p_00);\n            *pRC = iVar4;\n          }\n        }\n        else {\n          sqlite3_free(p_00);\n          *pRC = iVar2;\n        }\n      }\n      else {\n        sqlite3_free(p_00);\n        *pRC = iVar2;\n      }\n    }\n  }\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint *p_00;" type_identifier (pointer_declarator "*p_00" * identifier) ;) (declaration "long lVar6;" (sized_type_specifier "long" long) identifier ;) (declaration "void *pvVar7;" primitive_type (pointer_declarator "*pvVar7" * identifier) ;) (declaration "uint *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "long lVar10;" (sized_type_specifier "long" long) identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "sqlite3_stmt *pStmt;" type_identifier (pointer_declarator "*pStmt" * identifier) ;) (declaration "sqlite3_int64 x;" type_identifier identifier ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (*pRC == 0) {\n    iVar4 = p->nColumn;\n    iVar1 = iVar4 + 2;\n    lVar10 = (long)iVar1;\n    p_00 = (uint *)sqlite3_malloc64(lVar10 * 0xe);\n    if (p_00 == (uint *)0x0) {\n      *pRC = 7;\n    }\n    else {\n      iVar2 = fts3SqlStmt(p,0x16,&pStmt,(sqlite3_value **)0x0);\n      if (iVar2 == 0) {\n        sqlite3_bind_int(pStmt,1,0);\n        iVar2 = sqlite3_step(pStmt);\n        if (iVar2 == 100) {\n          iVar5 = sqlite3_column_bytes(pStmt,0);\n          pvVar7 = sqlite3_column_blob(pStmt,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)((long)pvVar7 + (long)iVar5 + -1))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar6 = 1;\n            iVar9 = 0;\n            do {\n              iVar2 = sqlite3Fts3GetVarint((char *)((long)iVar9 + (long)pvVar7),&x);\n              iVar9 = iVar9 + iVar2;\n              p_00[lVar6 + -1] = (uint)x;\n              iVar2 = (int)lVar6;\n              lVar6 = lVar6 + 1;\n            } while (iVar2 < iVar1 && iVar9 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar8 = p_00 + iVar2;\n            do {\n              *puVar8 = 0;\n              puVar8 = puVar8 + 1;\n            } while (puVar8 != p_00 + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }\n        else {\n          memset(p_00,0,lVar10 * 4);\n        }\n        iVar2 = sqlite3_reset(pStmt);\n        if (iVar2 == 0) {\n          if ((-1 < nChng) || (uVar3 = 0, (uint)-nChng <= *p_00)) {\n            uVar3 = nChng + *p_00;\n          }\n          *p_00 = uVar3;\n          lVar6 = 0;\n          if (-1 < p->nColumn) {\n            do {\n              uVar3 = (p_00[lVar6 + 1] + aSzIns[lVar6]) - aSzDel[lVar6];\n              if (p_00[lVar6 + 1] + aSzIns[lVar6] < aSzDel[lVar6]) {\n                uVar3 = 0;\n              }\n              p_00[lVar6 + 1] = uVar3;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= p->nColumn);\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar8 = p_00;\n            do {\n              iVar1 = sqlite3Fts3PutVarint\n                                ((char *)((long)iVar2 + (long)(p_00 + lVar10)),(ulong)*puVar8);\n              iVar2 = iVar2 + iVar1;\n              puVar8 = puVar8 + 1;\n            } while (p_00 + (ulong)(iVar4 + 1) + 1 != puVar8);\n          }\n          iVar4 = fts3SqlStmt(p,0x17,&pStmt,(sqlite3_value **)0x0);\n          if (iVar4 == 0) {\n            sqlite3_bind_int(pStmt,1,0);\n            sqlite3_bind_blob(pStmt,2,p_00 + lVar10,iVar2,(_func_void_void_ptr *)0x0);\n            sqlite3_step(pStmt);\n            iVar4 = sqlite3_reset(pStmt);\n            *pRC = iVar4;\n            sqlite3_bind_null(pStmt,2);\n            sqlite3_free(p_00);\n          }\n          else {\n            sqlite3_free(p_00);\n            *pRC = iVar4;\n          }\n        }\n        else {\n          sqlite3_free(p_00);\n          *pRC = iVar2;\n        }\n      }\n      else {\n        sqlite3_free(p_00);\n        *pRC = iVar2;\n      }\n    }\n  }" if (parenthesized_expression "(*pRC == 0)" ( (binary_expression "*pRC == 0" (pointer_expression "*pRC" * identifier) == number_literal) )) (compound_statement "{\n    iVar4 = p->nColumn;\n    iVar1 = iVar4 + 2;\n    lVar10 = (long)iVar1;\n    p_00 = (uint *)sqlite3_malloc64(lVar10 * 0xe);\n    if (p_00 == (uint *)0x0) {\n      *pRC = 7;\n    }\n    else {\n      iVar2 = fts3SqlStmt(p,0x16,&pStmt,(sqlite3_value **)0x0);\n      if (iVar2 == 0) {\n        sqlite3_bind_int(pStmt,1,0);\n        iVar2 = sqlite3_step(pStmt);\n        if (iVar2 == 100) {\n          iVar5 = sqlite3_column_bytes(pStmt,0);\n          pvVar7 = sqlite3_column_blob(pStmt,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)((long)pvVar7 + (long)iVar5 + -1))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar6 = 1;\n            iVar9 = 0;\n            do {\n              iVar2 = sqlite3Fts3GetVarint((char *)((long)iVar9 + (long)pvVar7),&x);\n              iVar9 = iVar9 + iVar2;\n              p_00[lVar6 + -1] = (uint)x;\n              iVar2 = (int)lVar6;\n              lVar6 = lVar6 + 1;\n            } while (iVar2 < iVar1 && iVar9 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar8 = p_00 + iVar2;\n            do {\n              *puVar8 = 0;\n              puVar8 = puVar8 + 1;\n            } while (puVar8 != p_00 + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }\n        else {\n          memset(p_00,0,lVar10 * 4);\n        }\n        iVar2 = sqlite3_reset(pStmt);\n        if (iVar2 == 0) {\n          if ((-1 < nChng) || (uVar3 = 0, (uint)-nChng <= *p_00)) {\n            uVar3 = nChng + *p_00;\n          }\n          *p_00 = uVar3;\n          lVar6 = 0;\n          if (-1 < p->nColumn) {\n            do {\n              uVar3 = (p_00[lVar6 + 1] + aSzIns[lVar6]) - aSzDel[lVar6];\n              if (p_00[lVar6 + 1] + aSzIns[lVar6] < aSzDel[lVar6]) {\n                uVar3 = 0;\n              }\n              p_00[lVar6 + 1] = uVar3;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= p->nColumn);\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar8 = p_00;\n            do {\n              iVar1 = sqlite3Fts3PutVarint\n                                ((char *)((long)iVar2 + (long)(p_00 + lVar10)),(ulong)*puVar8);\n              iVar2 = iVar2 + iVar1;\n              puVar8 = puVar8 + 1;\n            } while (p_00 + (ulong)(iVar4 + 1) + 1 != puVar8);\n          }\n          iVar4 = fts3SqlStmt(p,0x17,&pStmt,(sqlite3_value **)0x0);\n          if (iVar4 == 0) {\n            sqlite3_bind_int(pStmt,1,0);\n            sqlite3_bind_blob(pStmt,2,p_00 + lVar10,iVar2,(_func_void_void_ptr *)0x0);\n            sqlite3_step(pStmt);\n            iVar4 = sqlite3_reset(pStmt);\n            *pRC = iVar4;\n            sqlite3_bind_null(pStmt,2);\n            sqlite3_free(p_00);\n          }\n          else {\n            sqlite3_free(p_00);\n            *pRC = iVar4;\n          }\n        }\n        else {\n          sqlite3_free(p_00);\n          *pRC = iVar2;\n        }\n      }\n      else {\n        sqlite3_free(p_00);\n        *pRC = iVar2;\n      }\n    }\n  }" { (expression_statement "iVar4 = p->nColumn;" (assignment_expression "iVar4 = p->nColumn" identifier = (field_expression "p->nColumn" identifier -> field_identifier)) ;) (expression_statement "iVar1 = iVar4 + 2;" (assignment_expression "iVar1 = iVar4 + 2" identifier = (binary_expression "iVar4 + 2" identifier + number_literal)) ;) (expression_statement "lVar10 = (long)iVar1;" (assignment_expression "lVar10 = (long)iVar1" identifier = (cast_expression "(long)iVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (expression_statement "p_00 = (uint *)sqlite3_malloc64(lVar10 * 0xe);" (assignment_expression "p_00 = (uint *)sqlite3_malloc64(lVar10 * 0xe)" identifier = (cast_expression "(uint *)sqlite3_malloc64(lVar10 * 0xe)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3_malloc64(lVar10 * 0xe)" identifier (argument_list "(lVar10 * 0xe)" ( (binary_expression "lVar10 * 0xe" identifier * number_literal) ))))) ;) (if_statement "if (p_00 == (uint *)0x0) {\n      *pRC = 7;\n    }\n    else {\n      iVar2 = fts3SqlStmt(p,0x16,&pStmt,(sqlite3_value **)0x0);\n      if (iVar2 == 0) {\n        sqlite3_bind_int(pStmt,1,0);\n        iVar2 = sqlite3_step(pStmt);\n        if (iVar2 == 100) {\n          iVar5 = sqlite3_column_bytes(pStmt,0);\n          pvVar7 = sqlite3_column_blob(pStmt,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)((long)pvVar7 + (long)iVar5 + -1))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar6 = 1;\n            iVar9 = 0;\n            do {\n              iVar2 = sqlite3Fts3GetVarint((char *)((long)iVar9 + (long)pvVar7),&x);\n              iVar9 = iVar9 + iVar2;\n              p_00[lVar6 + -1] = (uint)x;\n              iVar2 = (int)lVar6;\n              lVar6 = lVar6 + 1;\n            } while (iVar2 < iVar1 && iVar9 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar8 = p_00 + iVar2;\n            do {\n              *puVar8 = 0;\n              puVar8 = puVar8 + 1;\n            } while (puVar8 != p_00 + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }\n        else {\n          memset(p_00,0,lVar10 * 4);\n        }\n        iVar2 = sqlite3_reset(pStmt);\n        if (iVar2 == 0) {\n          if ((-1 < nChng) || (uVar3 = 0, (uint)-nChng <= *p_00)) {\n            uVar3 = nChng + *p_00;\n          }\n          *p_00 = uVar3;\n          lVar6 = 0;\n          if (-1 < p->nColumn) {\n            do {\n              uVar3 = (p_00[lVar6 + 1] + aSzIns[lVar6]) - aSzDel[lVar6];\n              if (p_00[lVar6 + 1] + aSzIns[lVar6] < aSzDel[lVar6]) {\n                uVar3 = 0;\n              }\n              p_00[lVar6 + 1] = uVar3;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= p->nColumn);\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar8 = p_00;\n            do {\n              iVar1 = sqlite3Fts3PutVarint\n                                ((char *)((long)iVar2 + (long)(p_00 + lVar10)),(ulong)*puVar8);\n              iVar2 = iVar2 + iVar1;\n              puVar8 = puVar8 + 1;\n            } while (p_00 + (ulong)(iVar4 + 1) + 1 != puVar8);\n          }\n          iVar4 = fts3SqlStmt(p,0x17,&pStmt,(sqlite3_value **)0x0);\n          if (iVar4 == 0) {\n            sqlite3_bind_int(pStmt,1,0);\n            sqlite3_bind_blob(pStmt,2,p_00 + lVar10,iVar2,(_func_void_void_ptr *)0x0);\n            sqlite3_step(pStmt);\n            iVar4 = sqlite3_reset(pStmt);\n            *pRC = iVar4;\n            sqlite3_bind_null(pStmt,2);\n            sqlite3_free(p_00);\n          }\n          else {\n            sqlite3_free(p_00);\n            *pRC = iVar4;\n          }\n        }\n        else {\n          sqlite3_free(p_00);\n          *pRC = iVar2;\n        }\n      }\n      else {\n        sqlite3_free(p_00);\n        *pRC = iVar2;\n      }\n    }" if (parenthesized_expression "(p_00 == (uint *)0x0)" ( (binary_expression "p_00 == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *pRC = 7;\n    }" { (expression_statement "*pRC = 7;" (assignment_expression "*pRC = 7" (pointer_expression "*pRC" * identifier) = number_literal) ;) }) (else_clause "else {\n      iVar2 = fts3SqlStmt(p,0x16,&pStmt,(sqlite3_value **)0x0);\n      if (iVar2 == 0) {\n        sqlite3_bind_int(pStmt,1,0);\n        iVar2 = sqlite3_step(pStmt);\n        if (iVar2 == 100) {\n          iVar5 = sqlite3_column_bytes(pStmt,0);\n          pvVar7 = sqlite3_column_blob(pStmt,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)((long)pvVar7 + (long)iVar5 + -1))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar6 = 1;\n            iVar9 = 0;\n            do {\n              iVar2 = sqlite3Fts3GetVarint((char *)((long)iVar9 + (long)pvVar7),&x);\n              iVar9 = iVar9 + iVar2;\n              p_00[lVar6 + -1] = (uint)x;\n              iVar2 = (int)lVar6;\n              lVar6 = lVar6 + 1;\n            } while (iVar2 < iVar1 && iVar9 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar8 = p_00 + iVar2;\n            do {\n              *puVar8 = 0;\n              puVar8 = puVar8 + 1;\n            } while (puVar8 != p_00 + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }\n        else {\n          memset(p_00,0,lVar10 * 4);\n        }\n        iVar2 = sqlite3_reset(pStmt);\n        if (iVar2 == 0) {\n          if ((-1 < nChng) || (uVar3 = 0, (uint)-nChng <= *p_00)) {\n            uVar3 = nChng + *p_00;\n          }\n          *p_00 = uVar3;\n          lVar6 = 0;\n          if (-1 < p->nColumn) {\n            do {\n              uVar3 = (p_00[lVar6 + 1] + aSzIns[lVar6]) - aSzDel[lVar6];\n              if (p_00[lVar6 + 1] + aSzIns[lVar6] < aSzDel[lVar6]) {\n                uVar3 = 0;\n              }\n              p_00[lVar6 + 1] = uVar3;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= p->nColumn);\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar8 = p_00;\n            do {\n              iVar1 = sqlite3Fts3PutVarint\n                                ((char *)((long)iVar2 + (long)(p_00 + lVar10)),(ulong)*puVar8);\n              iVar2 = iVar2 + iVar1;\n              puVar8 = puVar8 + 1;\n            } while (p_00 + (ulong)(iVar4 + 1) + 1 != puVar8);\n          }\n          iVar4 = fts3SqlStmt(p,0x17,&pStmt,(sqlite3_value **)0x0);\n          if (iVar4 == 0) {\n            sqlite3_bind_int(pStmt,1,0);\n            sqlite3_bind_blob(pStmt,2,p_00 + lVar10,iVar2,(_func_void_void_ptr *)0x0);\n            sqlite3_step(pStmt);\n            iVar4 = sqlite3_reset(pStmt);\n            *pRC = iVar4;\n            sqlite3_bind_null(pStmt,2);\n            sqlite3_free(p_00);\n          }\n          else {\n            sqlite3_free(p_00);\n            *pRC = iVar4;\n          }\n        }\n        else {\n          sqlite3_free(p_00);\n          *pRC = iVar2;\n        }\n      }\n      else {\n        sqlite3_free(p_00);\n        *pRC = iVar2;\n      }\n    }" else (compound_statement "{\n      iVar2 = fts3SqlStmt(p,0x16,&pStmt,(sqlite3_value **)0x0);\n      if (iVar2 == 0) {\n        sqlite3_bind_int(pStmt,1,0);\n        iVar2 = sqlite3_step(pStmt);\n        if (iVar2 == 100) {\n          iVar5 = sqlite3_column_bytes(pStmt,0);\n          pvVar7 = sqlite3_column_blob(pStmt,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)((long)pvVar7 + (long)iVar5 + -1))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar6 = 1;\n            iVar9 = 0;\n            do {\n              iVar2 = sqlite3Fts3GetVarint((char *)((long)iVar9 + (long)pvVar7),&x);\n              iVar9 = iVar9 + iVar2;\n              p_00[lVar6 + -1] = (uint)x;\n              iVar2 = (int)lVar6;\n              lVar6 = lVar6 + 1;\n            } while (iVar2 < iVar1 && iVar9 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar8 = p_00 + iVar2;\n            do {\n              *puVar8 = 0;\n              puVar8 = puVar8 + 1;\n            } while (puVar8 != p_00 + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }\n        else {\n          memset(p_00,0,lVar10 * 4);\n        }\n        iVar2 = sqlite3_reset(pStmt);\n        if (iVar2 == 0) {\n          if ((-1 < nChng) || (uVar3 = 0, (uint)-nChng <= *p_00)) {\n            uVar3 = nChng + *p_00;\n          }\n          *p_00 = uVar3;\n          lVar6 = 0;\n          if (-1 < p->nColumn) {\n            do {\n              uVar3 = (p_00[lVar6 + 1] + aSzIns[lVar6]) - aSzDel[lVar6];\n              if (p_00[lVar6 + 1] + aSzIns[lVar6] < aSzDel[lVar6]) {\n                uVar3 = 0;\n              }\n              p_00[lVar6 + 1] = uVar3;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= p->nColumn);\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar8 = p_00;\n            do {\n              iVar1 = sqlite3Fts3PutVarint\n                                ((char *)((long)iVar2 + (long)(p_00 + lVar10)),(ulong)*puVar8);\n              iVar2 = iVar2 + iVar1;\n              puVar8 = puVar8 + 1;\n            } while (p_00 + (ulong)(iVar4 + 1) + 1 != puVar8);\n          }\n          iVar4 = fts3SqlStmt(p,0x17,&pStmt,(sqlite3_value **)0x0);\n          if (iVar4 == 0) {\n            sqlite3_bind_int(pStmt,1,0);\n            sqlite3_bind_blob(pStmt,2,p_00 + lVar10,iVar2,(_func_void_void_ptr *)0x0);\n            sqlite3_step(pStmt);\n            iVar4 = sqlite3_reset(pStmt);\n            *pRC = iVar4;\n            sqlite3_bind_null(pStmt,2);\n            sqlite3_free(p_00);\n          }\n          else {\n            sqlite3_free(p_00);\n            *pRC = iVar4;\n          }\n        }\n        else {\n          sqlite3_free(p_00);\n          *pRC = iVar2;\n        }\n      }\n      else {\n        sqlite3_free(p_00);\n        *pRC = iVar2;\n      }\n    }" { (expression_statement "iVar2 = fts3SqlStmt(p,0x16,&pStmt,(sqlite3_value **)0x0);" (assignment_expression "iVar2 = fts3SqlStmt(p,0x16,&pStmt,(sqlite3_value **)0x0)" identifier = (call_expression "fts3SqlStmt(p,0x16,&pStmt,(sqlite3_value **)0x0)" identifier (argument_list "(p,0x16,&pStmt,(sqlite3_value **)0x0)" ( identifier , number_literal , (pointer_expression "&pStmt" & identifier) , (cast_expression "(sqlite3_value **)0x0" ( (type_descriptor "sqlite3_value **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal) )))) ;) (if_statement "if (iVar2 == 0) {\n        sqlite3_bind_int(pStmt,1,0);\n        iVar2 = sqlite3_step(pStmt);\n        if (iVar2 == 100) {\n          iVar5 = sqlite3_column_bytes(pStmt,0);\n          pvVar7 = sqlite3_column_blob(pStmt,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)((long)pvVar7 + (long)iVar5 + -1))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar6 = 1;\n            iVar9 = 0;\n            do {\n              iVar2 = sqlite3Fts3GetVarint((char *)((long)iVar9 + (long)pvVar7),&x);\n              iVar9 = iVar9 + iVar2;\n              p_00[lVar6 + -1] = (uint)x;\n              iVar2 = (int)lVar6;\n              lVar6 = lVar6 + 1;\n            } while (iVar2 < iVar1 && iVar9 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar8 = p_00 + iVar2;\n            do {\n              *puVar8 = 0;\n              puVar8 = puVar8 + 1;\n            } while (puVar8 != p_00 + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }\n        else {\n          memset(p_00,0,lVar10 * 4);\n        }\n        iVar2 = sqlite3_reset(pStmt);\n        if (iVar2 == 0) {\n          if ((-1 < nChng) || (uVar3 = 0, (uint)-nChng <= *p_00)) {\n            uVar3 = nChng + *p_00;\n          }\n          *p_00 = uVar3;\n          lVar6 = 0;\n          if (-1 < p->nColumn) {\n            do {\n              uVar3 = (p_00[lVar6 + 1] + aSzIns[lVar6]) - aSzDel[lVar6];\n              if (p_00[lVar6 + 1] + aSzIns[lVar6] < aSzDel[lVar6]) {\n                uVar3 = 0;\n              }\n              p_00[lVar6 + 1] = uVar3;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= p->nColumn);\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar8 = p_00;\n            do {\n              iVar1 = sqlite3Fts3PutVarint\n                                ((char *)((long)iVar2 + (long)(p_00 + lVar10)),(ulong)*puVar8);\n              iVar2 = iVar2 + iVar1;\n              puVar8 = puVar8 + 1;\n            } while (p_00 + (ulong)(iVar4 + 1) + 1 != puVar8);\n          }\n          iVar4 = fts3SqlStmt(p,0x17,&pStmt,(sqlite3_value **)0x0);\n          if (iVar4 == 0) {\n            sqlite3_bind_int(pStmt,1,0);\n            sqlite3_bind_blob(pStmt,2,p_00 + lVar10,iVar2,(_func_void_void_ptr *)0x0);\n            sqlite3_step(pStmt);\n            iVar4 = sqlite3_reset(pStmt);\n            *pRC = iVar4;\n            sqlite3_bind_null(pStmt,2);\n            sqlite3_free(p_00);\n          }\n          else {\n            sqlite3_free(p_00);\n            *pRC = iVar4;\n          }\n        }\n        else {\n          sqlite3_free(p_00);\n          *pRC = iVar2;\n        }\n      }\n      else {\n        sqlite3_free(p_00);\n        *pRC = iVar2;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        sqlite3_bind_int(pStmt,1,0);\n        iVar2 = sqlite3_step(pStmt);\n        if (iVar2 == 100) {\n          iVar5 = sqlite3_column_bytes(pStmt,0);\n          pvVar7 = sqlite3_column_blob(pStmt,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)((long)pvVar7 + (long)iVar5 + -1))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar6 = 1;\n            iVar9 = 0;\n            do {\n              iVar2 = sqlite3Fts3GetVarint((char *)((long)iVar9 + (long)pvVar7),&x);\n              iVar9 = iVar9 + iVar2;\n              p_00[lVar6 + -1] = (uint)x;\n              iVar2 = (int)lVar6;\n              lVar6 = lVar6 + 1;\n            } while (iVar2 < iVar1 && iVar9 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar8 = p_00 + iVar2;\n            do {\n              *puVar8 = 0;\n              puVar8 = puVar8 + 1;\n            } while (puVar8 != p_00 + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }\n        else {\n          memset(p_00,0,lVar10 * 4);\n        }\n        iVar2 = sqlite3_reset(pStmt);\n        if (iVar2 == 0) {\n          if ((-1 < nChng) || (uVar3 = 0, (uint)-nChng <= *p_00)) {\n            uVar3 = nChng + *p_00;\n          }\n          *p_00 = uVar3;\n          lVar6 = 0;\n          if (-1 < p->nColumn) {\n            do {\n              uVar3 = (p_00[lVar6 + 1] + aSzIns[lVar6]) - aSzDel[lVar6];\n              if (p_00[lVar6 + 1] + aSzIns[lVar6] < aSzDel[lVar6]) {\n                uVar3 = 0;\n              }\n              p_00[lVar6 + 1] = uVar3;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= p->nColumn);\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar8 = p_00;\n            do {\n              iVar1 = sqlite3Fts3PutVarint\n                                ((char *)((long)iVar2 + (long)(p_00 + lVar10)),(ulong)*puVar8);\n              iVar2 = iVar2 + iVar1;\n              puVar8 = puVar8 + 1;\n            } while (p_00 + (ulong)(iVar4 + 1) + 1 != puVar8);\n          }\n          iVar4 = fts3SqlStmt(p,0x17,&pStmt,(sqlite3_value **)0x0);\n          if (iVar4 == 0) {\n            sqlite3_bind_int(pStmt,1,0);\n            sqlite3_bind_blob(pStmt,2,p_00 + lVar10,iVar2,(_func_void_void_ptr *)0x0);\n            sqlite3_step(pStmt);\n            iVar4 = sqlite3_reset(pStmt);\n            *pRC = iVar4;\n            sqlite3_bind_null(pStmt,2);\n            sqlite3_free(p_00);\n          }\n          else {\n            sqlite3_free(p_00);\n            *pRC = iVar4;\n          }\n        }\n        else {\n          sqlite3_free(p_00);\n          *pRC = iVar2;\n        }\n      }" { (expression_statement "sqlite3_bind_int(pStmt,1,0);" (call_expression "sqlite3_bind_int(pStmt,1,0)" identifier (argument_list "(pStmt,1,0)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "iVar2 = sqlite3_step(pStmt);" (assignment_expression "iVar2 = sqlite3_step(pStmt)" identifier = (call_expression "sqlite3_step(pStmt)" identifier (argument_list "(pStmt)" ( identifier )))) ;) (if_statement "if (iVar2 == 100) {\n          iVar5 = sqlite3_column_bytes(pStmt,0);\n          pvVar7 = sqlite3_column_blob(pStmt,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)((long)pvVar7 + (long)iVar5 + -1))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar6 = 1;\n            iVar9 = 0;\n            do {\n              iVar2 = sqlite3Fts3GetVarint((char *)((long)iVar9 + (long)pvVar7),&x);\n              iVar9 = iVar9 + iVar2;\n              p_00[lVar6 + -1] = (uint)x;\n              iVar2 = (int)lVar6;\n              lVar6 = lVar6 + 1;\n            } while (iVar2 < iVar1 && iVar9 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar8 = p_00 + iVar2;\n            do {\n              *puVar8 = 0;\n              puVar8 = puVar8 + 1;\n            } while (puVar8 != p_00 + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }\n        else {\n          memset(p_00,0,lVar10 * 4);\n        }" if (parenthesized_expression "(iVar2 == 100)" ( (binary_expression "iVar2 == 100" identifier == number_literal) )) (compound_statement "{\n          iVar5 = sqlite3_column_bytes(pStmt,0);\n          pvVar7 = sqlite3_column_blob(pStmt,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)((long)pvVar7 + (long)iVar5 + -1))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar6 = 1;\n            iVar9 = 0;\n            do {\n              iVar2 = sqlite3Fts3GetVarint((char *)((long)iVar9 + (long)pvVar7),&x);\n              iVar9 = iVar9 + iVar2;\n              p_00[lVar6 + -1] = (uint)x;\n              iVar2 = (int)lVar6;\n              lVar6 = lVar6 + 1;\n            } while (iVar2 < iVar1 && iVar9 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar8 = p_00 + iVar2;\n            do {\n              *puVar8 = 0;\n              puVar8 = puVar8 + 1;\n            } while (puVar8 != p_00 + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }" { (expression_statement "iVar5 = sqlite3_column_bytes(pStmt,0);" (assignment_expression "iVar5 = sqlite3_column_bytes(pStmt,0)" identifier = (call_expression "sqlite3_column_bytes(pStmt,0)" identifier (argument_list "(pStmt,0)" ( identifier , number_literal )))) ;) (expression_statement "pvVar7 = sqlite3_column_blob(pStmt,0);" (assignment_expression "pvVar7 = sqlite3_column_blob(pStmt,0)" identifier = (call_expression "sqlite3_column_blob(pStmt,0)" identifier (argument_list "(pStmt,0)" ( identifier , number_literal )))) ;) (expression_statement "iVar2 = iVar5;" (assignment_expression "iVar2 = iVar5" identifier = identifier) ;) (if_statement "if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)((long)pvVar7 + (long)iVar5 + -1))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar6 = 1;\n            iVar9 = 0;\n            do {\n              iVar2 = sqlite3Fts3GetVarint((char *)((long)iVar9 + (long)pvVar7),&x);\n              iVar9 = iVar9 + iVar2;\n              p_00[lVar6 + -1] = (uint)x;\n              iVar2 = (int)lVar6;\n              lVar6 = lVar6 + 1;\n            } while (iVar2 < iVar1 && iVar9 < iVar5);\n          }" if (parenthesized_expression "((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)((long)pvVar7 + (long)iVar5 + -1))) &&\n              (0 < iVar1)) && (0 < iVar5))" ( (binary_expression "(((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)((long)pvVar7 + (long)iVar5 + -1))) &&\n              (0 < iVar1)) && (0 < iVar5)" (parenthesized_expression "(((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)((long)pvVar7 + (long)iVar5 + -1))) &&\n              (0 < iVar1))" ( (binary_expression "((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)((long)pvVar7 + (long)iVar5 + -1))) &&\n              (0 < iVar1)" (parenthesized_expression "((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)((long)pvVar7 + (long)iVar5 + -1)))" ( (binary_expression "(iVar5 != 0) && (iVar2 = 0, -1 < *(char *)((long)pvVar7 + (long)iVar5 + -1))" (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar2 = 0, -1 < *(char *)((long)pvVar7 + (long)iVar5 + -1))" ( (comma_expression "iVar2 = 0, -1 < *(char *)((long)pvVar7 + (long)iVar5 + -1)" (assignment_expression "iVar2 = 0" identifier = number_literal) , (binary_expression "-1 < *(char *)((long)pvVar7 + (long)iVar5 + -1)" number_literal < (pointer_expression "*(char *)((long)pvVar7 + (long)iVar5 + -1)" * (cast_expression "(char *)((long)pvVar7 + (long)iVar5 + -1)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)pvVar7 + (long)iVar5 + -1)" ( (binary_expression "(long)pvVar7 + (long)iVar5 + -1" (binary_expression "(long)pvVar7 + (long)iVar5" (cast_expression "(long)pvVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (cast_expression "(long)iVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) + number_literal) )))))) ))) )) && (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) ))) )) && (parenthesized_expression "(0 < iVar5)" ( (binary_expression "0 < iVar5" number_literal < identifier) ))) )) (compound_statement "{\n            lVar6 = 1;\n            iVar9 = 0;\n            do {\n              iVar2 = sqlite3Fts3GetVarint((char *)((long)iVar9 + (long)pvVar7),&x);\n              iVar9 = iVar9 + iVar2;\n              p_00[lVar6 + -1] = (uint)x;\n              iVar2 = (int)lVar6;\n              lVar6 = lVar6 + 1;\n            } while (iVar2 < iVar1 && iVar9 < iVar5);\n          }" { (expression_statement "lVar6 = 1;" (assignment_expression "lVar6 = 1" identifier = number_literal) ;) (expression_statement "iVar9 = 0;" (assignment_expression "iVar9 = 0" identifier = number_literal) ;) (do_statement "do {\n              iVar2 = sqlite3Fts3GetVarint((char *)((long)iVar9 + (long)pvVar7),&x);\n              iVar9 = iVar9 + iVar2;\n              p_00[lVar6 + -1] = (uint)x;\n              iVar2 = (int)lVar6;\n              lVar6 = lVar6 + 1;\n            } while (iVar2 < iVar1 && iVar9 < iVar5);" do (compound_statement "{\n              iVar2 = sqlite3Fts3GetVarint((char *)((long)iVar9 + (long)pvVar7),&x);\n              iVar9 = iVar9 + iVar2;\n              p_00[lVar6 + -1] = (uint)x;\n              iVar2 = (int)lVar6;\n              lVar6 = lVar6 + 1;\n            }" { (expression_statement "iVar2 = sqlite3Fts3GetVarint((char *)((long)iVar9 + (long)pvVar7),&x);" (assignment_expression "iVar2 = sqlite3Fts3GetVarint((char *)((long)iVar9 + (long)pvVar7),&x)" identifier = (call_expression "sqlite3Fts3GetVarint((char *)((long)iVar9 + (long)pvVar7),&x)" identifier (argument_list "((char *)((long)iVar9 + (long)pvVar7),&x)" ( (cast_expression "(char *)((long)iVar9 + (long)pvVar7)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)iVar9 + (long)pvVar7)" ( (binary_expression "(long)iVar9 + (long)pvVar7" (cast_expression "(long)iVar9" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (cast_expression "(long)pvVar7" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ))) , (pointer_expression "&x" & identifier) )))) ;) (expression_statement "iVar9 = iVar9 + iVar2;" (assignment_expression "iVar9 = iVar9 + iVar2" identifier = (binary_expression "iVar9 + iVar2" identifier + identifier)) ;) (expression_statement "p_00[lVar6 + -1] = (uint)x;" (assignment_expression "p_00[lVar6 + -1] = (uint)x" (subscript_expression "p_00[lVar6 + -1]" identifier [ (binary_expression "lVar6 + -1" identifier + number_literal) ]) = (cast_expression "(uint)x" ( (type_descriptor "uint" type_identifier) ) identifier)) ;) (expression_statement "iVar2 = (int)lVar6;" (assignment_expression "iVar2 = (int)lVar6" identifier = (cast_expression "(int)lVar6" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "lVar6 = lVar6 + 1;" (assignment_expression "lVar6 = lVar6 + 1" identifier = (binary_expression "lVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 < iVar1 && iVar9 < iVar5)" ( (binary_expression "iVar2 < iVar1 && iVar9 < iVar5" (binary_expression "iVar2 < iVar1" identifier < identifier) && (binary_expression "iVar9 < iVar5" identifier < identifier)) )) ;) })) (if_statement "if (iVar2 < iVar1) {\n            puVar8 = p_00 + iVar2;\n            do {\n              *puVar8 = 0;\n              puVar8 = puVar8 + 1;\n            } while (puVar8 != p_00 + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }" if (parenthesized_expression "(iVar2 < iVar1)" ( (binary_expression "iVar2 < iVar1" identifier < identifier) )) (compound_statement "{\n            puVar8 = p_00 + iVar2;\n            do {\n              *puVar8 = 0;\n              puVar8 = puVar8 + 1;\n            } while (puVar8 != p_00 + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }" { (expression_statement "puVar8 = p_00 + iVar2;" (assignment_expression "puVar8 = p_00 + iVar2" identifier = (binary_expression "p_00 + iVar2" identifier + identifier)) ;) (do_statement "do {\n              *puVar8 = 0;\n              puVar8 = puVar8 + 1;\n            } while (puVar8 != p_00 + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);" do (compound_statement "{\n              *puVar8 = 0;\n              puVar8 = puVar8 + 1;\n            }" { (expression_statement "*puVar8 = 0;" (assignment_expression "*puVar8 = 0" (pointer_expression "*puVar8" * identifier) = number_literal) ;) (expression_statement "puVar8 = puVar8 + 1;" (assignment_expression "puVar8 = puVar8 + 1" identifier = (binary_expression "puVar8 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar8 != p_00 + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1)" ( (binary_expression "puVar8 != p_00 + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1" identifier != (binary_expression "p_00 + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1" (binary_expression "p_00 + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2" (binary_expression "p_00 + (ulong)(uint)((iVar4 + 1) - iVar2)" identifier + (call_expression "(ulong)(uint)((iVar4 + 1) - iVar2)" (call_expression "(ulong)(uint)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(uint)" ( identifier ))) (argument_list "((iVar4 + 1) - iVar2)" ( (binary_expression "(iVar4 + 1) - iVar2" (parenthesized_expression "(iVar4 + 1)" ( (binary_expression "iVar4 + 1" identifier + number_literal) )) - identifier) )))) + (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) + number_literal)) )) ;) })) }) (else_clause "else {\n          memset(p_00,0,lVar10 * 4);\n        }" else (compound_statement "{\n          memset(p_00,0,lVar10 * 4);\n        }" { (expression_statement "memset(p_00,0,lVar10 * 4);" (call_expression "memset(p_00,0,lVar10 * 4)" identifier (argument_list "(p_00,0,lVar10 * 4)" ( identifier , number_literal , (binary_expression "lVar10 * 4" identifier * number_literal) ))) ;) }))) (expression_statement "iVar2 = sqlite3_reset(pStmt);" (assignment_expression "iVar2 = sqlite3_reset(pStmt)" identifier = (call_expression "sqlite3_reset(pStmt)" identifier (argument_list "(pStmt)" ( identifier )))) ;) (if_statement "if (iVar2 == 0) {\n          if ((-1 < nChng) || (uVar3 = 0, (uint)-nChng <= *p_00)) {\n            uVar3 = nChng + *p_00;\n          }\n          *p_00 = uVar3;\n          lVar6 = 0;\n          if (-1 < p->nColumn) {\n            do {\n              uVar3 = (p_00[lVar6 + 1] + aSzIns[lVar6]) - aSzDel[lVar6];\n              if (p_00[lVar6 + 1] + aSzIns[lVar6] < aSzDel[lVar6]) {\n                uVar3 = 0;\n              }\n              p_00[lVar6 + 1] = uVar3;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= p->nColumn);\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar8 = p_00;\n            do {\n              iVar1 = sqlite3Fts3PutVarint\n                                ((char *)((long)iVar2 + (long)(p_00 + lVar10)),(ulong)*puVar8);\n              iVar2 = iVar2 + iVar1;\n              puVar8 = puVar8 + 1;\n            } while (p_00 + (ulong)(iVar4 + 1) + 1 != puVar8);\n          }\n          iVar4 = fts3SqlStmt(p,0x17,&pStmt,(sqlite3_value **)0x0);\n          if (iVar4 == 0) {\n            sqlite3_bind_int(pStmt,1,0);\n            sqlite3_bind_blob(pStmt,2,p_00 + lVar10,iVar2,(_func_void_void_ptr *)0x0);\n            sqlite3_step(pStmt);\n            iVar4 = sqlite3_reset(pStmt);\n            *pRC = iVar4;\n            sqlite3_bind_null(pStmt,2);\n            sqlite3_free(p_00);\n          }\n          else {\n            sqlite3_free(p_00);\n            *pRC = iVar4;\n          }\n        }\n        else {\n          sqlite3_free(p_00);\n          *pRC = iVar2;\n        }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n          if ((-1 < nChng) || (uVar3 = 0, (uint)-nChng <= *p_00)) {\n            uVar3 = nChng + *p_00;\n          }\n          *p_00 = uVar3;\n          lVar6 = 0;\n          if (-1 < p->nColumn) {\n            do {\n              uVar3 = (p_00[lVar6 + 1] + aSzIns[lVar6]) - aSzDel[lVar6];\n              if (p_00[lVar6 + 1] + aSzIns[lVar6] < aSzDel[lVar6]) {\n                uVar3 = 0;\n              }\n              p_00[lVar6 + 1] = uVar3;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= p->nColumn);\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar8 = p_00;\n            do {\n              iVar1 = sqlite3Fts3PutVarint\n                                ((char *)((long)iVar2 + (long)(p_00 + lVar10)),(ulong)*puVar8);\n              iVar2 = iVar2 + iVar1;\n              puVar8 = puVar8 + 1;\n            } while (p_00 + (ulong)(iVar4 + 1) + 1 != puVar8);\n          }\n          iVar4 = fts3SqlStmt(p,0x17,&pStmt,(sqlite3_value **)0x0);\n          if (iVar4 == 0) {\n            sqlite3_bind_int(pStmt,1,0);\n            sqlite3_bind_blob(pStmt,2,p_00 + lVar10,iVar2,(_func_void_void_ptr *)0x0);\n            sqlite3_step(pStmt);\n            iVar4 = sqlite3_reset(pStmt);\n            *pRC = iVar4;\n            sqlite3_bind_null(pStmt,2);\n            sqlite3_free(p_00);\n          }\n          else {\n            sqlite3_free(p_00);\n            *pRC = iVar4;\n          }\n        }" { (if_statement "if ((-1 < nChng) || (uVar3 = 0, (uint)-nChng <= *p_00)) {\n            uVar3 = nChng + *p_00;\n          }" if (parenthesized_expression "((-1 < nChng) || (uVar3 = 0, (uint)-nChng <= *p_00))" ( (binary_expression "(-1 < nChng) || (uVar3 = 0, (uint)-nChng <= *p_00)" (parenthesized_expression "(-1 < nChng)" ( (binary_expression "-1 < nChng" number_literal < identifier) )) || (parenthesized_expression "(uVar3 = 0, (uint)-nChng <= *p_00)" ( (comma_expression "uVar3 = 0, (uint)-nChng <= *p_00" (assignment_expression "uVar3 = 0" identifier = number_literal) , (binary_expression "(uint)-nChng <= *p_00" (binary_expression "(uint)-nChng" (parenthesized_expression "(uint)" ( identifier )) - identifier) <= (pointer_expression "*p_00" * identifier))) ))) )) (compound_statement "{\n            uVar3 = nChng + *p_00;\n          }" { (expression_statement "uVar3 = nChng + *p_00;" (assignment_expression "uVar3 = nChng + *p_00" identifier = (binary_expression "nChng + *p_00" identifier + (pointer_expression "*p_00" * identifier))) ;) })) (expression_statement "*p_00 = uVar3;" (assignment_expression "*p_00 = uVar3" (pointer_expression "*p_00" * identifier) = identifier) ;) (expression_statement "lVar6 = 0;" (assignment_expression "lVar6 = 0" identifier = number_literal) ;) (if_statement "if (-1 < p->nColumn) {\n            do {\n              uVar3 = (p_00[lVar6 + 1] + aSzIns[lVar6]) - aSzDel[lVar6];\n              if (p_00[lVar6 + 1] + aSzIns[lVar6] < aSzDel[lVar6]) {\n                uVar3 = 0;\n              }\n              p_00[lVar6 + 1] = uVar3;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= p->nColumn);\n          }" if (parenthesized_expression "(-1 < p->nColumn)" ( (binary_expression "-1 < p->nColumn" number_literal < (field_expression "p->nColumn" identifier -> field_identifier)) )) (compound_statement "{\n            do {\n              uVar3 = (p_00[lVar6 + 1] + aSzIns[lVar6]) - aSzDel[lVar6];\n              if (p_00[lVar6 + 1] + aSzIns[lVar6] < aSzDel[lVar6]) {\n                uVar3 = 0;\n              }\n              p_00[lVar6 + 1] = uVar3;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= p->nColumn);\n          }" { (do_statement "do {\n              uVar3 = (p_00[lVar6 + 1] + aSzIns[lVar6]) - aSzDel[lVar6];\n              if (p_00[lVar6 + 1] + aSzIns[lVar6] < aSzDel[lVar6]) {\n                uVar3 = 0;\n              }\n              p_00[lVar6 + 1] = uVar3;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= p->nColumn);" do (compound_statement "{\n              uVar3 = (p_00[lVar6 + 1] + aSzIns[lVar6]) - aSzDel[lVar6];\n              if (p_00[lVar6 + 1] + aSzIns[lVar6] < aSzDel[lVar6]) {\n                uVar3 = 0;\n              }\n              p_00[lVar6 + 1] = uVar3;\n              lVar6 = lVar6 + 1;\n            }" { (expression_statement "uVar3 = (p_00[lVar6 + 1] + aSzIns[lVar6]) - aSzDel[lVar6];" (assignment_expression "uVar3 = (p_00[lVar6 + 1] + aSzIns[lVar6]) - aSzDel[lVar6]" identifier = (binary_expression "(p_00[lVar6 + 1] + aSzIns[lVar6]) - aSzDel[lVar6]" (parenthesized_expression "(p_00[lVar6 + 1] + aSzIns[lVar6])" ( (binary_expression "p_00[lVar6 + 1] + aSzIns[lVar6]" (subscript_expression "p_00[lVar6 + 1]" identifier [ (binary_expression "lVar6 + 1" identifier + number_literal) ]) + (subscript_expression "aSzIns[lVar6]" identifier [ identifier ])) )) - (subscript_expression "aSzDel[lVar6]" identifier [ identifier ]))) ;) (if_statement "if (p_00[lVar6 + 1] + aSzIns[lVar6] < aSzDel[lVar6]) {\n                uVar3 = 0;\n              }" if (parenthesized_expression "(p_00[lVar6 + 1] + aSzIns[lVar6] < aSzDel[lVar6])" ( (binary_expression "p_00[lVar6 + 1] + aSzIns[lVar6] < aSzDel[lVar6]" (binary_expression "p_00[lVar6 + 1] + aSzIns[lVar6]" (subscript_expression "p_00[lVar6 + 1]" identifier [ (binary_expression "lVar6 + 1" identifier + number_literal) ]) + (subscript_expression "aSzIns[lVar6]" identifier [ identifier ])) < (subscript_expression "aSzDel[lVar6]" identifier [ identifier ])) )) (compound_statement "{\n                uVar3 = 0;\n              }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) })) (expression_statement "p_00[lVar6 + 1] = uVar3;" (assignment_expression "p_00[lVar6 + 1] = uVar3" (subscript_expression "p_00[lVar6 + 1]" identifier [ (binary_expression "lVar6 + 1" identifier + number_literal) ]) = identifier) ;) (expression_statement "lVar6 = lVar6 + 1;" (assignment_expression "lVar6 = lVar6 + 1" identifier = (binary_expression "lVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((int)lVar6 <= p->nColumn)" ( (binary_expression "(int)lVar6 <= p->nColumn" (cast_expression "(int)lVar6" ( (type_descriptor "int" primitive_type) ) identifier) <= (field_expression "p->nColumn" identifier -> field_identifier)) )) ;) })) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (if_statement "if (0 < iVar1) {\n            iVar2 = 0;\n            puVar8 = p_00;\n            do {\n              iVar1 = sqlite3Fts3PutVarint\n                                ((char *)((long)iVar2 + (long)(p_00 + lVar10)),(ulong)*puVar8);\n              iVar2 = iVar2 + iVar1;\n              puVar8 = puVar8 + 1;\n            } while (p_00 + (ulong)(iVar4 + 1) + 1 != puVar8);\n          }" if (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) )) (compound_statement "{\n            iVar2 = 0;\n            puVar8 = p_00;\n            do {\n              iVar1 = sqlite3Fts3PutVarint\n                                ((char *)((long)iVar2 + (long)(p_00 + lVar10)),(ulong)*puVar8);\n              iVar2 = iVar2 + iVar1;\n              puVar8 = puVar8 + 1;\n            } while (p_00 + (ulong)(iVar4 + 1) + 1 != puVar8);\n          }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "puVar8 = p_00;" (assignment_expression "puVar8 = p_00" identifier = identifier) ;) (do_statement "do {\n              iVar1 = sqlite3Fts3PutVarint\n                                ((char *)((long)iVar2 + (long)(p_00 + lVar10)),(ulong)*puVar8);\n              iVar2 = iVar2 + iVar1;\n              puVar8 = puVar8 + 1;\n            } while (p_00 + (ulong)(iVar4 + 1) + 1 != puVar8);" do (compound_statement "{\n              iVar1 = sqlite3Fts3PutVarint\n                                ((char *)((long)iVar2 + (long)(p_00 + lVar10)),(ulong)*puVar8);\n              iVar2 = iVar2 + iVar1;\n              puVar8 = puVar8 + 1;\n            }" { (expression_statement "iVar1 = sqlite3Fts3PutVarint\n                                ((char *)((long)iVar2 + (long)(p_00 + lVar10)),(ulong)*puVar8);" (assignment_expression "iVar1 = sqlite3Fts3PutVarint\n                                ((char *)((long)iVar2 + (long)(p_00 + lVar10)),(ulong)*puVar8)" identifier = (call_expression "sqlite3Fts3PutVarint\n                                ((char *)((long)iVar2 + (long)(p_00 + lVar10)),(ulong)*puVar8)" identifier (argument_list "((char *)((long)iVar2 + (long)(p_00 + lVar10)),(ulong)*puVar8)" ( (cast_expression "(char *)((long)iVar2 + (long)(p_00 + lVar10))" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)iVar2 + (long)(p_00 + lVar10))" ( (binary_expression "(long)iVar2 + (long)(p_00 + lVar10)" (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (cast_expression "(long)(p_00 + lVar10)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(p_00 + lVar10)" ( (binary_expression "p_00 + lVar10" identifier + identifier) )))) ))) , (binary_expression "(ulong)*puVar8" (parenthesized_expression "(ulong)" ( identifier )) * identifier) )))) ;) (expression_statement "iVar2 = iVar2 + iVar1;" (assignment_expression "iVar2 = iVar2 + iVar1" identifier = (binary_expression "iVar2 + iVar1" identifier + identifier)) ;) (expression_statement "puVar8 = puVar8 + 1;" (assignment_expression "puVar8 = puVar8 + 1" identifier = (binary_expression "puVar8 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(p_00 + (ulong)(iVar4 + 1) + 1 != puVar8)" ( (binary_expression "p_00 + (ulong)(iVar4 + 1) + 1 != puVar8" (binary_expression "p_00 + (ulong)(iVar4 + 1) + 1" (binary_expression "p_00 + (ulong)(iVar4 + 1)" identifier + (call_expression "(ulong)(iVar4 + 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(iVar4 + 1)" ( (binary_expression "iVar4 + 1" identifier + number_literal) )))) + number_literal) != identifier) )) ;) })) (expression_statement "iVar4 = fts3SqlStmt(p,0x17,&pStmt,(sqlite3_value **)0x0);" (assignment_expression "iVar4 = fts3SqlStmt(p,0x17,&pStmt,(sqlite3_value **)0x0)" identifier = (call_expression "fts3SqlStmt(p,0x17,&pStmt,(sqlite3_value **)0x0)" identifier (argument_list "(p,0x17,&pStmt,(sqlite3_value **)0x0)" ( identifier , number_literal , (pointer_expression "&pStmt" & identifier) , (cast_expression "(sqlite3_value **)0x0" ( (type_descriptor "sqlite3_value **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal) )))) ;) (if_statement "if (iVar4 == 0) {\n            sqlite3_bind_int(pStmt,1,0);\n            sqlite3_bind_blob(pStmt,2,p_00 + lVar10,iVar2,(_func_void_void_ptr *)0x0);\n            sqlite3_step(pStmt);\n            iVar4 = sqlite3_reset(pStmt);\n            *pRC = iVar4;\n            sqlite3_bind_null(pStmt,2);\n            sqlite3_free(p_00);\n          }\n          else {\n            sqlite3_free(p_00);\n            *pRC = iVar4;\n          }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n            sqlite3_bind_int(pStmt,1,0);\n            sqlite3_bind_blob(pStmt,2,p_00 + lVar10,iVar2,(_func_void_void_ptr *)0x0);\n            sqlite3_step(pStmt);\n            iVar4 = sqlite3_reset(pStmt);\n            *pRC = iVar4;\n            sqlite3_bind_null(pStmt,2);\n            sqlite3_free(p_00);\n          }" { (expression_statement "sqlite3_bind_int(pStmt,1,0);" (call_expression "sqlite3_bind_int(pStmt,1,0)" identifier (argument_list "(pStmt,1,0)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "sqlite3_bind_blob(pStmt,2,p_00 + lVar10,iVar2,(_func_void_void_ptr *)0x0);" (call_expression "sqlite3_bind_blob(pStmt,2,p_00 + lVar10,iVar2,(_func_void_void_ptr *)0x0)" identifier (argument_list "(pStmt,2,p_00 + lVar10,iVar2,(_func_void_void_ptr *)0x0)" ( identifier , number_literal , (binary_expression "p_00 + lVar10" identifier + identifier) , identifier , (cast_expression "(_func_void_void_ptr *)0x0" ( (type_descriptor "_func_void_void_ptr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ))) ;) (expression_statement "sqlite3_step(pStmt);" (call_expression "sqlite3_step(pStmt)" identifier (argument_list "(pStmt)" ( identifier ))) ;) (expression_statement "iVar4 = sqlite3_reset(pStmt);" (assignment_expression "iVar4 = sqlite3_reset(pStmt)" identifier = (call_expression "sqlite3_reset(pStmt)" identifier (argument_list "(pStmt)" ( identifier )))) ;) (expression_statement "*pRC = iVar4;" (assignment_expression "*pRC = iVar4" (pointer_expression "*pRC" * identifier) = identifier) ;) (expression_statement "sqlite3_bind_null(pStmt,2);" (call_expression "sqlite3_bind_null(pStmt,2)" identifier (argument_list "(pStmt,2)" ( identifier , number_literal ))) ;) (expression_statement "sqlite3_free(p_00);" (call_expression "sqlite3_free(p_00)" identifier (argument_list "(p_00)" ( identifier ))) ;) }) (else_clause "else {\n            sqlite3_free(p_00);\n            *pRC = iVar4;\n          }" else (compound_statement "{\n            sqlite3_free(p_00);\n            *pRC = iVar4;\n          }" { (expression_statement "sqlite3_free(p_00);" (call_expression "sqlite3_free(p_00)" identifier (argument_list "(p_00)" ( identifier ))) ;) (expression_statement "*pRC = iVar4;" (assignment_expression "*pRC = iVar4" (pointer_expression "*pRC" * identifier) = identifier) ;) }))) }) (else_clause "else {\n          sqlite3_free(p_00);\n          *pRC = iVar2;\n        }" else (compound_statement "{\n          sqlite3_free(p_00);\n          *pRC = iVar2;\n        }" { (expression_statement "sqlite3_free(p_00);" (call_expression "sqlite3_free(p_00)" identifier (argument_list "(p_00)" ( identifier ))) ;) (expression_statement "*pRC = iVar2;" (assignment_expression "*pRC = iVar2" (pointer_expression "*pRC" * identifier) = identifier) ;) }))) }) (else_clause "else {\n        sqlite3_free(p_00);\n        *pRC = iVar2;\n      }" else (compound_statement "{\n        sqlite3_free(p_00);\n        *pRC = iVar2;\n      }" { (expression_statement "sqlite3_free(p_00);" (call_expression "sqlite3_free(p_00)" identifier (argument_list "(p_00)" ( identifier ))) ;) (expression_statement "*pRC = iVar2;" (assignment_expression "*pRC = iVar2" (pointer_expression "*pRC" * identifier) = identifier) ;) }))) }))) })) (if_statement "if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" if (parenthesized_expression "(local_40 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n    __stack_chk_fail();\n  }" { comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void FUN_001cadff(int *param_1,long param_2,long param_3,long param_4,int param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  uint *__s;\n  long lVar6;\n  uint *puVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  long lVar11;\n  long lVar12;\n  long in_FS_OFFSET;\n  undefined8 local_50;\n  undefined1 local_48 [8];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*param_1 == 0) {\n    iVar4 = *(int *)(param_2 + 0x30);\n    iVar1 = iVar4 + 2;\n    lVar11 = (long)iVar1;\n    __s = (uint *)FUN_0014bbac(lVar11 * 0xe,0);\n    if (__s == (uint *)0x0) {\n      *param_1 = 7;\n    }\n    else {\n      iVar2 = FUN_001bfdf9(param_2,0x16,&local_50,0);\n      if (iVar2 == 0) {\n        FUN_0015b4b1(local_50,1,0);\n        iVar2 = FUN_001ab5c0(local_50);\n        if (iVar2 == 100) {\n          iVar5 = FUN_00156893(local_50,0);\n          lVar6 = FUN_00156af8(local_50,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar12 = 1;\n            iVar10 = 0;\n            do {\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            } while (iVar2 < iVar1 && iVar10 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar7 = __s + iVar2;\n            do {\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }\n        else {\n          memset(__s,0,lVar11 * 4);\n        }\n        iVar2 = FUN_00190b14(local_50);\n        if (iVar2 == 0) {\n          if ((-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s)) {\n            uVar3 = param_5 + *__s;\n          }\n          *__s = uVar3;\n          lVar6 = 0;\n          if (-1 < *(int *)(param_2 + 0x30)) {\n            do {\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar7 = __s;\n            do {\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);\n          }\n          iVar4 = FUN_001bfdf9(param_2,0x17,&local_50,0);\n          if (iVar4 == 0) {\n            FUN_0015b4b1(local_50,1,0);\n            FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);\n            FUN_001ab5c0(local_50);\n            iVar4 = FUN_00190b14(local_50);\n            *param_1 = iVar4;\n            FUN_0015b4c2(local_50,2);\n            FUN_00141303(__s);\n          }\n          else {\n            FUN_00141303(__s);\n            *param_1 = iVar4;\n          }\n        }\n        else {\n          FUN_00141303(__s);\n          *param_1 = iVar2;\n        }\n      }\n      else {\n        FUN_00141303(__s);\n        *param_1 = iVar2;\n      }\n    }\n  }\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return;\n}\n\n" (function_definition "void FUN_001cadff(int *param_1,long param_2,long param_3,long param_4,int param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  uint *__s;\n  long lVar6;\n  uint *puVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  long lVar11;\n  long lVar12;\n  long in_FS_OFFSET;\n  undefined8 local_50;\n  undefined1 local_48 [8];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*param_1 == 0) {\n    iVar4 = *(int *)(param_2 + 0x30);\n    iVar1 = iVar4 + 2;\n    lVar11 = (long)iVar1;\n    __s = (uint *)FUN_0014bbac(lVar11 * 0xe,0);\n    if (__s == (uint *)0x0) {\n      *param_1 = 7;\n    }\n    else {\n      iVar2 = FUN_001bfdf9(param_2,0x16,&local_50,0);\n      if (iVar2 == 0) {\n        FUN_0015b4b1(local_50,1,0);\n        iVar2 = FUN_001ab5c0(local_50);\n        if (iVar2 == 100) {\n          iVar5 = FUN_00156893(local_50,0);\n          lVar6 = FUN_00156af8(local_50,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar12 = 1;\n            iVar10 = 0;\n            do {\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            } while (iVar2 < iVar1 && iVar10 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar7 = __s + iVar2;\n            do {\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }\n        else {\n          memset(__s,0,lVar11 * 4);\n        }\n        iVar2 = FUN_00190b14(local_50);\n        if (iVar2 == 0) {\n          if ((-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s)) {\n            uVar3 = param_5 + *__s;\n          }\n          *__s = uVar3;\n          lVar6 = 0;\n          if (-1 < *(int *)(param_2 + 0x30)) {\n            do {\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar7 = __s;\n            do {\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);\n          }\n          iVar4 = FUN_001bfdf9(param_2,0x17,&local_50,0);\n          if (iVar4 == 0) {\n            FUN_0015b4b1(local_50,1,0);\n            FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);\n            FUN_001ab5c0(local_50);\n            iVar4 = FUN_00190b14(local_50);\n            *param_1 = iVar4;\n            FUN_0015b4c2(local_50,2);\n            FUN_00141303(__s);\n          }\n          else {\n            FUN_00141303(__s);\n            *param_1 = iVar4;\n          }\n        }\n        else {\n          FUN_00141303(__s);\n          *param_1 = iVar2;\n        }\n      }\n      else {\n        FUN_00141303(__s);\n        *param_1 = iVar2;\n      }\n    }\n  }\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return;\n}" primitive_type (function_declarator "FUN_001cadff(int *param_1,long param_2,long param_3,long param_4,int param_5)" identifier (parameter_list "(int *param_1,long param_2,long param_3,long param_4,int param_5)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_4" (sized_type_specifier "long" long) identifier) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  uint *__s;\n  long lVar6;\n  uint *puVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  long lVar11;\n  long lVar12;\n  long in_FS_OFFSET;\n  undefined8 local_50;\n  undefined1 local_48 [8];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*param_1 == 0) {\n    iVar4 = *(int *)(param_2 + 0x30);\n    iVar1 = iVar4 + 2;\n    lVar11 = (long)iVar1;\n    __s = (uint *)FUN_0014bbac(lVar11 * 0xe,0);\n    if (__s == (uint *)0x0) {\n      *param_1 = 7;\n    }\n    else {\n      iVar2 = FUN_001bfdf9(param_2,0x16,&local_50,0);\n      if (iVar2 == 0) {\n        FUN_0015b4b1(local_50,1,0);\n        iVar2 = FUN_001ab5c0(local_50);\n        if (iVar2 == 100) {\n          iVar5 = FUN_00156893(local_50,0);\n          lVar6 = FUN_00156af8(local_50,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar12 = 1;\n            iVar10 = 0;\n            do {\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            } while (iVar2 < iVar1 && iVar10 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar7 = __s + iVar2;\n            do {\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }\n        else {\n          memset(__s,0,lVar11 * 4);\n        }\n        iVar2 = FUN_00190b14(local_50);\n        if (iVar2 == 0) {\n          if ((-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s)) {\n            uVar3 = param_5 + *__s;\n          }\n          *__s = uVar3;\n          lVar6 = 0;\n          if (-1 < *(int *)(param_2 + 0x30)) {\n            do {\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar7 = __s;\n            do {\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);\n          }\n          iVar4 = FUN_001bfdf9(param_2,0x17,&local_50,0);\n          if (iVar4 == 0) {\n            FUN_0015b4b1(local_50,1,0);\n            FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);\n            FUN_001ab5c0(local_50);\n            iVar4 = FUN_00190b14(local_50);\n            *param_1 = iVar4;\n            FUN_0015b4c2(local_50,2);\n            FUN_00141303(__s);\n          }\n          else {\n            FUN_00141303(__s);\n            *param_1 = iVar4;\n          }\n        }\n        else {\n          FUN_00141303(__s);\n          *param_1 = iVar2;\n        }\n      }\n      else {\n        FUN_00141303(__s);\n        *param_1 = iVar2;\n      }\n    }\n  }\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint *__s;" type_identifier (pointer_declarator "*__s" * identifier) ;) (declaration "long lVar6;" (sized_type_specifier "long" long) identifier ;) (declaration "uint *puVar7;" type_identifier (pointer_declarator "*puVar7" * identifier) ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "long lVar11;" (sized_type_specifier "long" long) identifier ;) (declaration "long lVar12;" (sized_type_specifier "long" long) identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "undefined8 local_50;" type_identifier identifier ;) (declaration "undefined1 local_48 [8];" type_identifier (array_declarator "local_48 [8]" identifier [ number_literal ]) ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (*param_1 == 0) {\n    iVar4 = *(int *)(param_2 + 0x30);\n    iVar1 = iVar4 + 2;\n    lVar11 = (long)iVar1;\n    __s = (uint *)FUN_0014bbac(lVar11 * 0xe,0);\n    if (__s == (uint *)0x0) {\n      *param_1 = 7;\n    }\n    else {\n      iVar2 = FUN_001bfdf9(param_2,0x16,&local_50,0);\n      if (iVar2 == 0) {\n        FUN_0015b4b1(local_50,1,0);\n        iVar2 = FUN_001ab5c0(local_50);\n        if (iVar2 == 100) {\n          iVar5 = FUN_00156893(local_50,0);\n          lVar6 = FUN_00156af8(local_50,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar12 = 1;\n            iVar10 = 0;\n            do {\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            } while (iVar2 < iVar1 && iVar10 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar7 = __s + iVar2;\n            do {\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }\n        else {\n          memset(__s,0,lVar11 * 4);\n        }\n        iVar2 = FUN_00190b14(local_50);\n        if (iVar2 == 0) {\n          if ((-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s)) {\n            uVar3 = param_5 + *__s;\n          }\n          *__s = uVar3;\n          lVar6 = 0;\n          if (-1 < *(int *)(param_2 + 0x30)) {\n            do {\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar7 = __s;\n            do {\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);\n          }\n          iVar4 = FUN_001bfdf9(param_2,0x17,&local_50,0);\n          if (iVar4 == 0) {\n            FUN_0015b4b1(local_50,1,0);\n            FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);\n            FUN_001ab5c0(local_50);\n            iVar4 = FUN_00190b14(local_50);\n            *param_1 = iVar4;\n            FUN_0015b4c2(local_50,2);\n            FUN_00141303(__s);\n          }\n          else {\n            FUN_00141303(__s);\n            *param_1 = iVar4;\n          }\n        }\n        else {\n          FUN_00141303(__s);\n          *param_1 = iVar2;\n        }\n      }\n      else {\n        FUN_00141303(__s);\n        *param_1 = iVar2;\n      }\n    }\n  }" if (parenthesized_expression "(*param_1 == 0)" ( (binary_expression "*param_1 == 0" (pointer_expression "*param_1" * identifier) == number_literal) )) (compound_statement "{\n    iVar4 = *(int *)(param_2 + 0x30);\n    iVar1 = iVar4 + 2;\n    lVar11 = (long)iVar1;\n    __s = (uint *)FUN_0014bbac(lVar11 * 0xe,0);\n    if (__s == (uint *)0x0) {\n      *param_1 = 7;\n    }\n    else {\n      iVar2 = FUN_001bfdf9(param_2,0x16,&local_50,0);\n      if (iVar2 == 0) {\n        FUN_0015b4b1(local_50,1,0);\n        iVar2 = FUN_001ab5c0(local_50);\n        if (iVar2 == 100) {\n          iVar5 = FUN_00156893(local_50,0);\n          lVar6 = FUN_00156af8(local_50,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar12 = 1;\n            iVar10 = 0;\n            do {\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            } while (iVar2 < iVar1 && iVar10 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar7 = __s + iVar2;\n            do {\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }\n        else {\n          memset(__s,0,lVar11 * 4);\n        }\n        iVar2 = FUN_00190b14(local_50);\n        if (iVar2 == 0) {\n          if ((-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s)) {\n            uVar3 = param_5 + *__s;\n          }\n          *__s = uVar3;\n          lVar6 = 0;\n          if (-1 < *(int *)(param_2 + 0x30)) {\n            do {\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar7 = __s;\n            do {\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);\n          }\n          iVar4 = FUN_001bfdf9(param_2,0x17,&local_50,0);\n          if (iVar4 == 0) {\n            FUN_0015b4b1(local_50,1,0);\n            FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);\n            FUN_001ab5c0(local_50);\n            iVar4 = FUN_00190b14(local_50);\n            *param_1 = iVar4;\n            FUN_0015b4c2(local_50,2);\n            FUN_00141303(__s);\n          }\n          else {\n            FUN_00141303(__s);\n            *param_1 = iVar4;\n          }\n        }\n        else {\n          FUN_00141303(__s);\n          *param_1 = iVar2;\n        }\n      }\n      else {\n        FUN_00141303(__s);\n        *param_1 = iVar2;\n      }\n    }\n  }" { (expression_statement "iVar4 = *(int *)(param_2 + 0x30);" (assignment_expression "iVar4 = *(int *)(param_2 + 0x30)" identifier = (pointer_expression "*(int *)(param_2 + 0x30)" * (cast_expression "(int *)(param_2 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) ))))) ;) (expression_statement "iVar1 = iVar4 + 2;" (assignment_expression "iVar1 = iVar4 + 2" identifier = (binary_expression "iVar4 + 2" identifier + number_literal)) ;) (expression_statement "lVar11 = (long)iVar1;" (assignment_expression "lVar11 = (long)iVar1" identifier = (cast_expression "(long)iVar1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) ;) (expression_statement "__s = (uint *)FUN_0014bbac(lVar11 * 0xe,0);" (assignment_expression "__s = (uint *)FUN_0014bbac(lVar11 * 0xe,0)" identifier = (cast_expression "(uint *)FUN_0014bbac(lVar11 * 0xe,0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0014bbac(lVar11 * 0xe,0)" identifier (argument_list "(lVar11 * 0xe,0)" ( (binary_expression "lVar11 * 0xe" identifier * number_literal) , number_literal ))))) ;) (if_statement "if (__s == (uint *)0x0) {\n      *param_1 = 7;\n    }\n    else {\n      iVar2 = FUN_001bfdf9(param_2,0x16,&local_50,0);\n      if (iVar2 == 0) {\n        FUN_0015b4b1(local_50,1,0);\n        iVar2 = FUN_001ab5c0(local_50);\n        if (iVar2 == 100) {\n          iVar5 = FUN_00156893(local_50,0);\n          lVar6 = FUN_00156af8(local_50,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar12 = 1;\n            iVar10 = 0;\n            do {\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            } while (iVar2 < iVar1 && iVar10 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar7 = __s + iVar2;\n            do {\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }\n        else {\n          memset(__s,0,lVar11 * 4);\n        }\n        iVar2 = FUN_00190b14(local_50);\n        if (iVar2 == 0) {\n          if ((-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s)) {\n            uVar3 = param_5 + *__s;\n          }\n          *__s = uVar3;\n          lVar6 = 0;\n          if (-1 < *(int *)(param_2 + 0x30)) {\n            do {\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar7 = __s;\n            do {\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);\n          }\n          iVar4 = FUN_001bfdf9(param_2,0x17,&local_50,0);\n          if (iVar4 == 0) {\n            FUN_0015b4b1(local_50,1,0);\n            FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);\n            FUN_001ab5c0(local_50);\n            iVar4 = FUN_00190b14(local_50);\n            *param_1 = iVar4;\n            FUN_0015b4c2(local_50,2);\n            FUN_00141303(__s);\n          }\n          else {\n            FUN_00141303(__s);\n            *param_1 = iVar4;\n          }\n        }\n        else {\n          FUN_00141303(__s);\n          *param_1 = iVar2;\n        }\n      }\n      else {\n        FUN_00141303(__s);\n        *param_1 = iVar2;\n      }\n    }" if (parenthesized_expression "(__s == (uint *)0x0)" ( (binary_expression "__s == (uint *)0x0" identifier == (cast_expression "(uint *)0x0" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      *param_1 = 7;\n    }" { (expression_statement "*param_1 = 7;" (assignment_expression "*param_1 = 7" (pointer_expression "*param_1" * identifier) = number_literal) ;) }) (else_clause "else {\n      iVar2 = FUN_001bfdf9(param_2,0x16,&local_50,0);\n      if (iVar2 == 0) {\n        FUN_0015b4b1(local_50,1,0);\n        iVar2 = FUN_001ab5c0(local_50);\n        if (iVar2 == 100) {\n          iVar5 = FUN_00156893(local_50,0);\n          lVar6 = FUN_00156af8(local_50,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar12 = 1;\n            iVar10 = 0;\n            do {\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            } while (iVar2 < iVar1 && iVar10 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar7 = __s + iVar2;\n            do {\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }\n        else {\n          memset(__s,0,lVar11 * 4);\n        }\n        iVar2 = FUN_00190b14(local_50);\n        if (iVar2 == 0) {\n          if ((-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s)) {\n            uVar3 = param_5 + *__s;\n          }\n          *__s = uVar3;\n          lVar6 = 0;\n          if (-1 < *(int *)(param_2 + 0x30)) {\n            do {\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar7 = __s;\n            do {\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);\n          }\n          iVar4 = FUN_001bfdf9(param_2,0x17,&local_50,0);\n          if (iVar4 == 0) {\n            FUN_0015b4b1(local_50,1,0);\n            FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);\n            FUN_001ab5c0(local_50);\n            iVar4 = FUN_00190b14(local_50);\n            *param_1 = iVar4;\n            FUN_0015b4c2(local_50,2);\n            FUN_00141303(__s);\n          }\n          else {\n            FUN_00141303(__s);\n            *param_1 = iVar4;\n          }\n        }\n        else {\n          FUN_00141303(__s);\n          *param_1 = iVar2;\n        }\n      }\n      else {\n        FUN_00141303(__s);\n        *param_1 = iVar2;\n      }\n    }" else (compound_statement "{\n      iVar2 = FUN_001bfdf9(param_2,0x16,&local_50,0);\n      if (iVar2 == 0) {\n        FUN_0015b4b1(local_50,1,0);\n        iVar2 = FUN_001ab5c0(local_50);\n        if (iVar2 == 100) {\n          iVar5 = FUN_00156893(local_50,0);\n          lVar6 = FUN_00156af8(local_50,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar12 = 1;\n            iVar10 = 0;\n            do {\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            } while (iVar2 < iVar1 && iVar10 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar7 = __s + iVar2;\n            do {\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }\n        else {\n          memset(__s,0,lVar11 * 4);\n        }\n        iVar2 = FUN_00190b14(local_50);\n        if (iVar2 == 0) {\n          if ((-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s)) {\n            uVar3 = param_5 + *__s;\n          }\n          *__s = uVar3;\n          lVar6 = 0;\n          if (-1 < *(int *)(param_2 + 0x30)) {\n            do {\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar7 = __s;\n            do {\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);\n          }\n          iVar4 = FUN_001bfdf9(param_2,0x17,&local_50,0);\n          if (iVar4 == 0) {\n            FUN_0015b4b1(local_50,1,0);\n            FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);\n            FUN_001ab5c0(local_50);\n            iVar4 = FUN_00190b14(local_50);\n            *param_1 = iVar4;\n            FUN_0015b4c2(local_50,2);\n            FUN_00141303(__s);\n          }\n          else {\n            FUN_00141303(__s);\n            *param_1 = iVar4;\n          }\n        }\n        else {\n          FUN_00141303(__s);\n          *param_1 = iVar2;\n        }\n      }\n      else {\n        FUN_00141303(__s);\n        *param_1 = iVar2;\n      }\n    }" { (expression_statement "iVar2 = FUN_001bfdf9(param_2,0x16,&local_50,0);" (assignment_expression "iVar2 = FUN_001bfdf9(param_2,0x16,&local_50,0)" identifier = (call_expression "FUN_001bfdf9(param_2,0x16,&local_50,0)" identifier (argument_list "(param_2,0x16,&local_50,0)" ( identifier , number_literal , (pointer_expression "&local_50" & identifier) , number_literal )))) ;) (if_statement "if (iVar2 == 0) {\n        FUN_0015b4b1(local_50,1,0);\n        iVar2 = FUN_001ab5c0(local_50);\n        if (iVar2 == 100) {\n          iVar5 = FUN_00156893(local_50,0);\n          lVar6 = FUN_00156af8(local_50,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar12 = 1;\n            iVar10 = 0;\n            do {\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            } while (iVar2 < iVar1 && iVar10 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar7 = __s + iVar2;\n            do {\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }\n        else {\n          memset(__s,0,lVar11 * 4);\n        }\n        iVar2 = FUN_00190b14(local_50);\n        if (iVar2 == 0) {\n          if ((-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s)) {\n            uVar3 = param_5 + *__s;\n          }\n          *__s = uVar3;\n          lVar6 = 0;\n          if (-1 < *(int *)(param_2 + 0x30)) {\n            do {\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar7 = __s;\n            do {\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);\n          }\n          iVar4 = FUN_001bfdf9(param_2,0x17,&local_50,0);\n          if (iVar4 == 0) {\n            FUN_0015b4b1(local_50,1,0);\n            FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);\n            FUN_001ab5c0(local_50);\n            iVar4 = FUN_00190b14(local_50);\n            *param_1 = iVar4;\n            FUN_0015b4c2(local_50,2);\n            FUN_00141303(__s);\n          }\n          else {\n            FUN_00141303(__s);\n            *param_1 = iVar4;\n          }\n        }\n        else {\n          FUN_00141303(__s);\n          *param_1 = iVar2;\n        }\n      }\n      else {\n        FUN_00141303(__s);\n        *param_1 = iVar2;\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        FUN_0015b4b1(local_50,1,0);\n        iVar2 = FUN_001ab5c0(local_50);\n        if (iVar2 == 100) {\n          iVar5 = FUN_00156893(local_50,0);\n          lVar6 = FUN_00156af8(local_50,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar12 = 1;\n            iVar10 = 0;\n            do {\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            } while (iVar2 < iVar1 && iVar10 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar7 = __s + iVar2;\n            do {\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }\n        else {\n          memset(__s,0,lVar11 * 4);\n        }\n        iVar2 = FUN_00190b14(local_50);\n        if (iVar2 == 0) {\n          if ((-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s)) {\n            uVar3 = param_5 + *__s;\n          }\n          *__s = uVar3;\n          lVar6 = 0;\n          if (-1 < *(int *)(param_2 + 0x30)) {\n            do {\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar7 = __s;\n            do {\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);\n          }\n          iVar4 = FUN_001bfdf9(param_2,0x17,&local_50,0);\n          if (iVar4 == 0) {\n            FUN_0015b4b1(local_50,1,0);\n            FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);\n            FUN_001ab5c0(local_50);\n            iVar4 = FUN_00190b14(local_50);\n            *param_1 = iVar4;\n            FUN_0015b4c2(local_50,2);\n            FUN_00141303(__s);\n          }\n          else {\n            FUN_00141303(__s);\n            *param_1 = iVar4;\n          }\n        }\n        else {\n          FUN_00141303(__s);\n          *param_1 = iVar2;\n        }\n      }" { (expression_statement "FUN_0015b4b1(local_50,1,0);" (call_expression "FUN_0015b4b1(local_50,1,0)" identifier (argument_list "(local_50,1,0)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "iVar2 = FUN_001ab5c0(local_50);" (assignment_expression "iVar2 = FUN_001ab5c0(local_50)" identifier = (call_expression "FUN_001ab5c0(local_50)" identifier (argument_list "(local_50)" ( identifier )))) ;) (if_statement "if (iVar2 == 100) {\n          iVar5 = FUN_00156893(local_50,0);\n          lVar6 = FUN_00156af8(local_50,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar12 = 1;\n            iVar10 = 0;\n            do {\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            } while (iVar2 < iVar1 && iVar10 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar7 = __s + iVar2;\n            do {\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }\n        else {\n          memset(__s,0,lVar11 * 4);\n        }" if (parenthesized_expression "(iVar2 == 100)" ( (binary_expression "iVar2 == 100" identifier == number_literal) )) (compound_statement "{\n          iVar5 = FUN_00156893(local_50,0);\n          lVar6 = FUN_00156af8(local_50,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar12 = 1;\n            iVar10 = 0;\n            do {\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            } while (iVar2 < iVar1 && iVar10 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar7 = __s + iVar2;\n            do {\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }" { (expression_statement "iVar5 = FUN_00156893(local_50,0);" (assignment_expression "iVar5 = FUN_00156893(local_50,0)" identifier = (call_expression "FUN_00156893(local_50,0)" identifier (argument_list "(local_50,0)" ( identifier , number_literal )))) ;) (expression_statement "lVar6 = FUN_00156af8(local_50,0);" (assignment_expression "lVar6 = FUN_00156af8(local_50,0)" identifier = (call_expression "FUN_00156af8(local_50,0)" identifier (argument_list "(local_50,0)" ( identifier , number_literal )))) ;) (expression_statement "iVar2 = iVar5;" (assignment_expression "iVar2 = iVar5" identifier = identifier) ;) (if_statement "if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar12 = 1;\n            iVar10 = 0;\n            do {\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            } while (iVar2 < iVar1 && iVar10 < iVar5);\n          }" if (parenthesized_expression "((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)) && (0 < iVar5))" ( (binary_expression "(((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)) && (0 < iVar5)" (parenthesized_expression "(((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1))" ( (binary_expression "((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)" (parenthesized_expression "((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5)))" ( (binary_expression "(iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))" (parenthesized_expression "(iVar5 != 0)" ( (binary_expression "iVar5 != 0" identifier != number_literal) )) && (parenthesized_expression "(iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))" ( (comma_expression "iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5)" (assignment_expression "iVar2 = 0" identifier = number_literal) , (binary_expression "-1 < *(char *)(lVar6 + -1 + (long)iVar5)" number_literal < (pointer_expression "*(char *)(lVar6 + -1 + (long)iVar5)" * (cast_expression "(char *)(lVar6 + -1 + (long)iVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar6 + -1 + (long)iVar5)" ( (binary_expression "lVar6 + -1 + (long)iVar5" (binary_expression "lVar6 + -1" identifier + number_literal) + (cast_expression "(long)iVar5" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) )))))) ))) )) && (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) ))) )) && (parenthesized_expression "(0 < iVar5)" ( (binary_expression "0 < iVar5" number_literal < identifier) ))) )) (compound_statement "{\n            lVar12 = 1;\n            iVar10 = 0;\n            do {\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            } while (iVar2 < iVar1 && iVar10 < iVar5);\n          }" { (expression_statement "lVar12 = 1;" (assignment_expression "lVar12 = 1" identifier = number_literal) ;) (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" identifier = number_literal) ;) (do_statement "do {\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            } while (iVar2 < iVar1 && iVar10 < iVar5);" do (compound_statement "{\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            }" { (expression_statement "iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);" (assignment_expression "iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48)" identifier = (call_expression "FUN_00131bd6(iVar10 + lVar6,local_48)" identifier (argument_list "(iVar10 + lVar6,local_48)" ( (binary_expression "iVar10 + lVar6" identifier + identifier) , identifier )))) ;) (expression_statement "iVar10 = iVar10 + iVar2;" (assignment_expression "iVar10 = iVar10 + iVar2" identifier = (binary_expression "iVar10 + iVar2" identifier + identifier)) ;) (expression_statement "__s[lVar12 + -1] = local_48._0_4_;" (assignment_expression "__s[lVar12 + -1] = local_48._0_4_" (subscript_expression "__s[lVar12 + -1]" identifier [ (binary_expression "lVar12 + -1" identifier + number_literal) ]) = (field_expression "local_48._0_4_" identifier . field_identifier)) ;) (expression_statement "iVar2 = (int)lVar12;" (assignment_expression "iVar2 = (int)lVar12" identifier = (cast_expression "(int)lVar12" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "lVar12 = lVar12 + 1;" (assignment_expression "lVar12 = lVar12 + 1" identifier = (binary_expression "lVar12 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar2 < iVar1 && iVar10 < iVar5)" ( (binary_expression "iVar2 < iVar1 && iVar10 < iVar5" (binary_expression "iVar2 < iVar1" identifier < identifier) && (binary_expression "iVar10 < iVar5" identifier < identifier)) )) ;) })) (if_statement "if (iVar2 < iVar1) {\n            puVar7 = __s + iVar2;\n            do {\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }" if (parenthesized_expression "(iVar2 < iVar1)" ( (binary_expression "iVar2 < iVar1" identifier < identifier) )) (compound_statement "{\n            puVar7 = __s + iVar2;\n            do {\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }" { (expression_statement "puVar7 = __s + iVar2;" (assignment_expression "puVar7 = __s + iVar2" identifier = (binary_expression "__s + iVar2" identifier + identifier)) ;) (do_statement "do {\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);" do (compound_statement "{\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            }" { (expression_statement "*puVar7 = 0;" (assignment_expression "*puVar7 = 0" (pointer_expression "*puVar7" * identifier) = number_literal) ;) (expression_statement "puVar7 = puVar7 + 1;" (assignment_expression "puVar7 = puVar7 + 1" identifier = (binary_expression "puVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1)" ( (binary_expression "puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1" identifier != (binary_expression "__s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1" (binary_expression "__s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2" (binary_expression "__s + (ulong)(uint)((iVar4 + 1) - iVar2)" identifier + (call_expression "(ulong)(uint)((iVar4 + 1) - iVar2)" (call_expression "(ulong)(uint)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(uint)" ( identifier ))) (argument_list "((iVar4 + 1) - iVar2)" ( (binary_expression "(iVar4 + 1) - iVar2" (parenthesized_expression "(iVar4 + 1)" ( (binary_expression "iVar4 + 1" identifier + number_literal) )) - identifier) )))) + (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier)) + number_literal)) )) ;) })) }) (else_clause "else {\n          memset(__s,0,lVar11 * 4);\n        }" else (compound_statement "{\n          memset(__s,0,lVar11 * 4);\n        }" { (expression_statement "memset(__s,0,lVar11 * 4);" (call_expression "memset(__s,0,lVar11 * 4)" identifier (argument_list "(__s,0,lVar11 * 4)" ( identifier , number_literal , (binary_expression "lVar11 * 4" identifier * number_literal) ))) ;) }))) (expression_statement "iVar2 = FUN_00190b14(local_50);" (assignment_expression "iVar2 = FUN_00190b14(local_50)" identifier = (call_expression "FUN_00190b14(local_50)" identifier (argument_list "(local_50)" ( identifier )))) ;) (if_statement "if (iVar2 == 0) {\n          if ((-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s)) {\n            uVar3 = param_5 + *__s;\n          }\n          *__s = uVar3;\n          lVar6 = 0;\n          if (-1 < *(int *)(param_2 + 0x30)) {\n            do {\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar7 = __s;\n            do {\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);\n          }\n          iVar4 = FUN_001bfdf9(param_2,0x17,&local_50,0);\n          if (iVar4 == 0) {\n            FUN_0015b4b1(local_50,1,0);\n            FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);\n            FUN_001ab5c0(local_50);\n            iVar4 = FUN_00190b14(local_50);\n            *param_1 = iVar4;\n            FUN_0015b4c2(local_50,2);\n            FUN_00141303(__s);\n          }\n          else {\n            FUN_00141303(__s);\n            *param_1 = iVar4;\n          }\n        }\n        else {\n          FUN_00141303(__s);\n          *param_1 = iVar2;\n        }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n          if ((-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s)) {\n            uVar3 = param_5 + *__s;\n          }\n          *__s = uVar3;\n          lVar6 = 0;\n          if (-1 < *(int *)(param_2 + 0x30)) {\n            do {\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar7 = __s;\n            do {\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);\n          }\n          iVar4 = FUN_001bfdf9(param_2,0x17,&local_50,0);\n          if (iVar4 == 0) {\n            FUN_0015b4b1(local_50,1,0);\n            FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);\n            FUN_001ab5c0(local_50);\n            iVar4 = FUN_00190b14(local_50);\n            *param_1 = iVar4;\n            FUN_0015b4c2(local_50,2);\n            FUN_00141303(__s);\n          }\n          else {\n            FUN_00141303(__s);\n            *param_1 = iVar4;\n          }\n        }" { (if_statement "if ((-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s)) {\n            uVar3 = param_5 + *__s;\n          }" if (parenthesized_expression "((-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s))" ( (binary_expression "(-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s)" (parenthesized_expression "(-1 < param_5)" ( (binary_expression "-1 < param_5" number_literal < identifier) )) || (parenthesized_expression "(uVar3 = 0, (uint)-param_5 <= *__s)" ( (comma_expression "uVar3 = 0, (uint)-param_5 <= *__s" (assignment_expression "uVar3 = 0" identifier = number_literal) , (binary_expression "(uint)-param_5 <= *__s" (binary_expression "(uint)-param_5" (parenthesized_expression "(uint)" ( identifier )) - identifier) <= (pointer_expression "*__s" * identifier))) ))) )) (compound_statement "{\n            uVar3 = param_5 + *__s;\n          }" { (expression_statement "uVar3 = param_5 + *__s;" (assignment_expression "uVar3 = param_5 + *__s" identifier = (binary_expression "param_5 + *__s" identifier + (pointer_expression "*__s" * identifier))) ;) })) (expression_statement "*__s = uVar3;" (assignment_expression "*__s = uVar3" (pointer_expression "*__s" * identifier) = identifier) ;) (expression_statement "lVar6 = 0;" (assignment_expression "lVar6 = 0" identifier = number_literal) ;) (if_statement "if (-1 < *(int *)(param_2 + 0x30)) {\n            do {\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));\n          }" if (parenthesized_expression "(-1 < *(int *)(param_2 + 0x30))" ( (binary_expression "-1 < *(int *)(param_2 + 0x30)" number_literal < (pointer_expression "*(int *)(param_2 + 0x30)" * (cast_expression "(int *)(param_2 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) ))))) )) (compound_statement "{\n            do {\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));\n          }" { (do_statement "do {\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));" do (compound_statement "{\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            }" { (expression_statement "uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);" (assignment_expression "uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4)" identifier = (binary_expression "__s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4)" (subscript_expression "__s[lVar6 + 1]" identifier [ (binary_expression "lVar6 + 1" identifier + number_literal) ]) + (pointer_expression "*(int *)(param_3 + lVar6 * 4)" * (cast_expression "(int *)(param_3 + lVar6 * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_3 + lVar6 * 4)" ( (binary_expression "param_3 + lVar6 * 4" identifier + (binary_expression "lVar6 * 4" identifier * number_literal)) )))))) ;) (expression_statement "uVar3 = *(uint *)(param_4 + lVar6 * 4);" (assignment_expression "uVar3 = *(uint *)(param_4 + lVar6 * 4)" identifier = (pointer_expression "*(uint *)(param_4 + lVar6 * 4)" * (cast_expression "(uint *)(param_4 + lVar6 * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + lVar6 * 4)" ( (binary_expression "param_4 + lVar6 * 4" identifier + (binary_expression "lVar6 * 4" identifier * number_literal)) ))))) ;) (expression_statement "uVar8 = uVar9 - uVar3;" (assignment_expression "uVar8 = uVar9 - uVar3" identifier = (binary_expression "uVar9 - uVar3" identifier - identifier)) ;) (if_statement "if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }" if (parenthesized_expression "(uVar9 < uVar3)" ( (binary_expression "uVar9 < uVar3" identifier < identifier) )) (compound_statement "{\n                uVar8 = 0;\n              }" { (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) })) (expression_statement "__s[lVar6 + 1] = uVar8;" (assignment_expression "__s[lVar6 + 1] = uVar8" (subscript_expression "__s[lVar6 + 1]" identifier [ (binary_expression "lVar6 + 1" identifier + number_literal) ]) = identifier) ;) (expression_statement "lVar6 = lVar6 + 1;" (assignment_expression "lVar6 = lVar6 + 1" identifier = (binary_expression "lVar6 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((int)lVar6 <= *(int *)(param_2 + 0x30))" ( (binary_expression "(int)lVar6 <= *(int *)(param_2 + 0x30)" (cast_expression "(int)lVar6" ( (type_descriptor "int" primitive_type) ) identifier) <= (pointer_expression "*(int *)(param_2 + 0x30)" * (cast_expression "(int *)(param_2 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x30)" ( (binary_expression "param_2 + 0x30" identifier + number_literal) ))))) )) ;) })) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (if_statement "if (0 < iVar1) {\n            iVar2 = 0;\n            puVar7 = __s;\n            do {\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);\n          }" if (parenthesized_expression "(0 < iVar1)" ( (binary_expression "0 < iVar1" number_literal < identifier) )) (compound_statement "{\n            iVar2 = 0;\n            puVar7 = __s;\n            do {\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);\n          }" { (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" identifier = number_literal) ;) (expression_statement "puVar7 = __s;" (assignment_expression "puVar7 = __s" identifier = identifier) ;) (do_statement "do {\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);" do (compound_statement "{\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            }" { (expression_statement "iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);" (assignment_expression "iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7)" identifier = (call_expression "FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7)" identifier (argument_list "((long)iVar2 + (long)(__s + lVar11),*puVar7)" ( (binary_expression "(long)iVar2 + (long)(__s + lVar11)" (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + (cast_expression "(long)(__s + lVar11)" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (parenthesized_expression "(__s + lVar11)" ( (binary_expression "__s + lVar11" identifier + identifier) )))) , (pointer_expression "*puVar7" * identifier) )))) ;) (expression_statement "iVar2 = iVar2 + iVar1;" (assignment_expression "iVar2 = iVar2 + iVar1" identifier = (binary_expression "iVar2 + iVar1" identifier + identifier)) ;) (expression_statement "puVar7 = puVar7 + 1;" (assignment_expression "puVar7 = puVar7 + 1" identifier = (binary_expression "puVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(__s + (ulong)(iVar4 + 1) + 1 != puVar7)" ( (binary_expression "__s + (ulong)(iVar4 + 1) + 1 != puVar7" (binary_expression "__s + (ulong)(iVar4 + 1) + 1" (binary_expression "__s + (ulong)(iVar4 + 1)" identifier + (call_expression "(ulong)(iVar4 + 1)" (parenthesized_expression "(ulong)" ( identifier )) (argument_list "(iVar4 + 1)" ( (binary_expression "iVar4 + 1" identifier + number_literal) )))) + number_literal) != identifier) )) ;) })) (expression_statement "iVar4 = FUN_001bfdf9(param_2,0x17,&local_50,0);" (assignment_expression "iVar4 = FUN_001bfdf9(param_2,0x17,&local_50,0)" identifier = (call_expression "FUN_001bfdf9(param_2,0x17,&local_50,0)" identifier (argument_list "(param_2,0x17,&local_50,0)" ( identifier , number_literal , (pointer_expression "&local_50" & identifier) , number_literal )))) ;) (if_statement "if (iVar4 == 0) {\n            FUN_0015b4b1(local_50,1,0);\n            FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);\n            FUN_001ab5c0(local_50);\n            iVar4 = FUN_00190b14(local_50);\n            *param_1 = iVar4;\n            FUN_0015b4c2(local_50,2);\n            FUN_00141303(__s);\n          }\n          else {\n            FUN_00141303(__s);\n            *param_1 = iVar4;\n          }" if (parenthesized_expression "(iVar4 == 0)" ( (binary_expression "iVar4 == 0" identifier == number_literal) )) (compound_statement "{\n            FUN_0015b4b1(local_50,1,0);\n            FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);\n            FUN_001ab5c0(local_50);\n            iVar4 = FUN_00190b14(local_50);\n            *param_1 = iVar4;\n            FUN_0015b4c2(local_50,2);\n            FUN_00141303(__s);\n          }" { (expression_statement "FUN_0015b4b1(local_50,1,0);" (call_expression "FUN_0015b4b1(local_50,1,0)" identifier (argument_list "(local_50,1,0)" ( identifier , number_literal , number_literal ))) ;) (expression_statement "FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);" (call_expression "FUN_0015b334(local_50,2,__s + lVar11,iVar2,0)" identifier (argument_list "(local_50,2,__s + lVar11,iVar2,0)" ( identifier , number_literal , (binary_expression "__s + lVar11" identifier + identifier) , identifier , number_literal ))) ;) (expression_statement "FUN_001ab5c0(local_50);" (call_expression "FUN_001ab5c0(local_50)" identifier (argument_list "(local_50)" ( identifier ))) ;) (expression_statement "iVar4 = FUN_00190b14(local_50);" (assignment_expression "iVar4 = FUN_00190b14(local_50)" identifier = (call_expression "FUN_00190b14(local_50)" identifier (argument_list "(local_50)" ( identifier )))) ;) (expression_statement "*param_1 = iVar4;" (assignment_expression "*param_1 = iVar4" (pointer_expression "*param_1" * identifier) = identifier) ;) (expression_statement "FUN_0015b4c2(local_50,2);" (call_expression "FUN_0015b4c2(local_50,2)" identifier (argument_list "(local_50,2)" ( identifier , number_literal ))) ;) (expression_statement "FUN_00141303(__s);" (call_expression "FUN_00141303(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) }) (else_clause "else {\n            FUN_00141303(__s);\n            *param_1 = iVar4;\n          }" else (compound_statement "{\n            FUN_00141303(__s);\n            *param_1 = iVar4;\n          }" { (expression_statement "FUN_00141303(__s);" (call_expression "FUN_00141303(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (expression_statement "*param_1 = iVar4;" (assignment_expression "*param_1 = iVar4" (pointer_expression "*param_1" * identifier) = identifier) ;) }))) }) (else_clause "else {\n          FUN_00141303(__s);\n          *param_1 = iVar2;\n        }" else (compound_statement "{\n          FUN_00141303(__s);\n          *param_1 = iVar2;\n        }" { (expression_statement "FUN_00141303(__s);" (call_expression "FUN_00141303(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) }))) }) (else_clause "else {\n        FUN_00141303(__s);\n        *param_1 = iVar2;\n      }" else (compound_statement "{\n        FUN_00141303(__s);\n        *param_1 = iVar2;\n      }" { (expression_statement "FUN_00141303(__s);" (call_expression "FUN_00141303(__s)" identifier (argument_list "(__s)" ( identifier ))) ;) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" * identifier) = identifier) ;) }))) }))) })) (if_statement "if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" if (parenthesized_expression "(local_40 != *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 != *(long *)(in_FS_OFFSET + 0x28)" identifier != (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n                    \n    __stack_chk_fail();\n  }" { (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_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 = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (binary_expression IDENT * LIT) , LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , (pointer_expression & IDENT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , LIT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (comma_expression (assignment_expression IDENT = LIT) , (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) + (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) )))))) ))) )) && (parenthesized_expression ( (binary_expression LIT < IDENT) ))) )) && (parenthesized_expression ( (binary_expression LIT < IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT + IDENT) , IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) = (field_expression IDENT . field_identifier)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression IDENT < IDENT) && (binary_expression IDENT < IDENT)) )) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT != (binary_expression (binary_expression (binary_expression IDENT + (call_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( IDENT ))) (argument_list ( (binary_expression (parenthesized_expression ( (binary_expression IDENT + LIT) )) - IDENT) )))) + (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT)) + LIT)) )) ;) })) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (binary_expression IDENT * LIT) ))) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression LIT < IDENT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = LIT) , (binary_expression (binary_expression (parenthesized_expression ( IDENT )) - IDENT) <= (pointer_expression * IDENT))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (pointer_expression * IDENT))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) )))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + (binary_expression IDENT * LIT)) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) <= (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (parenthesized_expression ( (binary_expression IDENT + IDENT) )))) , (pointer_expression * IDENT) )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (binary_expression (binary_expression IDENT + (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) )))) + LIT) != IDENT) )) ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , (pointer_expression & IDENT) , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT , (binary_expression IDENT + IDENT) , IDENT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , LIT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }))) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }))) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) }))) }))) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return ;) })))
(function_definition "void FUN_001cadff(int *param_1,long param_2,long param_3,long param_4,int param_5)\n\n{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  uint *__s;\n  long lVar6;\n  uint *puVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  long lVar11;\n  long lVar12;\n  long in_FS_OFFSET;\n  undefined8 local_50;\n  undefined1 local_48 [8];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*param_1 == 0) {\n    iVar4 = *(int *)(param_2 + 0x30);\n    iVar1 = iVar4 + 2;\n    lVar11 = (long)iVar1;\n    __s = (uint *)FUN_0014bbac(lVar11 * 0xe,0);\n    if (__s == (uint *)0x0) {\n      *param_1 = 7;\n    }\n    else {\n      iVar2 = FUN_001bfdf9(param_2,0x16,&local_50,0);\n      if (iVar2 == 0) {\n        FUN_0015b4b1(local_50,1,0);\n        iVar2 = FUN_001ab5c0(local_50);\n        if (iVar2 == 100) {\n          iVar5 = FUN_00156893(local_50,0);\n          lVar6 = FUN_00156af8(local_50,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar12 = 1;\n            iVar10 = 0;\n            do {\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            } while (iVar2 < iVar1 && iVar10 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar7 = __s + iVar2;\n            do {\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }\n        else {\n          memset(__s,0,lVar11 * 4);\n        }\n        iVar2 = FUN_00190b14(local_50);\n        if (iVar2 == 0) {\n          if ((-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s)) {\n            uVar3 = param_5 + *__s;\n          }\n          *__s = uVar3;\n          lVar6 = 0;\n          if (-1 < *(int *)(param_2 + 0x30)) {\n            do {\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar7 = __s;\n            do {\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);\n          }\n          iVar4 = FUN_001bfdf9(param_2,0x17,&local_50,0);\n          if (iVar4 == 0) {\n            FUN_0015b4b1(local_50,1,0);\n            FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);\n            FUN_001ab5c0(local_50);\n            iVar4 = FUN_00190b14(local_50);\n            *param_1 = iVar4;\n            FUN_0015b4c2(local_50,2);\n            FUN_00141303(__s);\n          }\n          else {\n            FUN_00141303(__s);\n            *param_1 = iVar4;\n          }\n        }\n        else {\n          FUN_00141303(__s);\n          *param_1 = iVar2;\n        }\n      }\n      else {\n        FUN_00141303(__s);\n        *param_1 = iVar2;\n      }\n    }\n  }\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return;\n}" (primitive_type "void") (function_declarator "FUN_001cadff(int *param_1,long param_2,long param_3,long param_4,int param_5)" (identifier "FUN_001cadff") (parameter_list "(int *param_1,long param_2,long param_3,long param_4,int param_5)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) (, ",") (parameter_declaration "long param_3" (sized_type_specifier "long" (long "long")) (identifier "param_3")) (, ",") (parameter_declaration "long param_4" (sized_type_specifier "long" (long "long")) (identifier "param_4")) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  int iVar5;\n  uint *__s;\n  long lVar6;\n  uint *puVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  long lVar11;\n  long lVar12;\n  long in_FS_OFFSET;\n  undefined8 local_50;\n  undefined1 local_48 [8];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  if (*param_1 == 0) {\n    iVar4 = *(int *)(param_2 + 0x30);\n    iVar1 = iVar4 + 2;\n    lVar11 = (long)iVar1;\n    __s = (uint *)FUN_0014bbac(lVar11 * 0xe,0);\n    if (__s == (uint *)0x0) {\n      *param_1 = 7;\n    }\n    else {\n      iVar2 = FUN_001bfdf9(param_2,0x16,&local_50,0);\n      if (iVar2 == 0) {\n        FUN_0015b4b1(local_50,1,0);\n        iVar2 = FUN_001ab5c0(local_50);\n        if (iVar2 == 100) {\n          iVar5 = FUN_00156893(local_50,0);\n          lVar6 = FUN_00156af8(local_50,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar12 = 1;\n            iVar10 = 0;\n            do {\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            } while (iVar2 < iVar1 && iVar10 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar7 = __s + iVar2;\n            do {\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }\n        else {\n          memset(__s,0,lVar11 * 4);\n        }\n        iVar2 = FUN_00190b14(local_50);\n        if (iVar2 == 0) {\n          if ((-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s)) {\n            uVar3 = param_5 + *__s;\n          }\n          *__s = uVar3;\n          lVar6 = 0;\n          if (-1 < *(int *)(param_2 + 0x30)) {\n            do {\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar7 = __s;\n            do {\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);\n          }\n          iVar4 = FUN_001bfdf9(param_2,0x17,&local_50,0);\n          if (iVar4 == 0) {\n            FUN_0015b4b1(local_50,1,0);\n            FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);\n            FUN_001ab5c0(local_50);\n            iVar4 = FUN_00190b14(local_50);\n            *param_1 = iVar4;\n            FUN_0015b4c2(local_50,2);\n            FUN_00141303(__s);\n          }\n          else {\n            FUN_00141303(__s);\n            *param_1 = iVar4;\n          }\n        }\n        else {\n          FUN_00141303(__s);\n          *param_1 = iVar2;\n        }\n      }\n      else {\n        FUN_00141303(__s);\n        *param_1 = iVar2;\n      }\n    }\n  }\n  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "uint *__s;" (type_identifier "uint") (pointer_declarator "*__s" (* "*") (identifier "__s")) (; ";")) (declaration "long lVar6;" (sized_type_specifier "long" (long "long")) (identifier "lVar6") (; ";")) (declaration "uint *puVar7;" (type_identifier "uint") (pointer_declarator "*puVar7" (* "*") (identifier "puVar7")) (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (declaration "uint uVar9;" (type_identifier "uint") (identifier "uVar9") (; ";")) (declaration "int iVar10;" (primitive_type "int") (identifier "iVar10") (; ";")) (declaration "long lVar11;" (sized_type_specifier "long" (long "long")) (identifier "lVar11") (; ";")) (declaration "long lVar12;" (sized_type_specifier "long" (long "long")) (identifier "lVar12") (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "undefined8 local_50;" (type_identifier "undefined8") (identifier "local_50") (; ";")) (declaration "undefined1 local_48 [8];" (type_identifier "undefined1") (array_declarator "local_48 [8]" (identifier "local_48") ([ "[") (number_literal "8") (] "]")) (; ";")) (declaration "long local_40;" (sized_type_specifier "long" (long "long")) (identifier "local_40") (; ";")) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (if_statement "if (*param_1 == 0) {\n    iVar4 = *(int *)(param_2 + 0x30);\n    iVar1 = iVar4 + 2;\n    lVar11 = (long)iVar1;\n    __s = (uint *)FUN_0014bbac(lVar11 * 0xe,0);\n    if (__s == (uint *)0x0) {\n      *param_1 = 7;\n    }\n    else {\n      iVar2 = FUN_001bfdf9(param_2,0x16,&local_50,0);\n      if (iVar2 == 0) {\n        FUN_0015b4b1(local_50,1,0);\n        iVar2 = FUN_001ab5c0(local_50);\n        if (iVar2 == 100) {\n          iVar5 = FUN_00156893(local_50,0);\n          lVar6 = FUN_00156af8(local_50,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar12 = 1;\n            iVar10 = 0;\n            do {\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            } while (iVar2 < iVar1 && iVar10 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar7 = __s + iVar2;\n            do {\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }\n        else {\n          memset(__s,0,lVar11 * 4);\n        }\n        iVar2 = FUN_00190b14(local_50);\n        if (iVar2 == 0) {\n          if ((-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s)) {\n            uVar3 = param_5 + *__s;\n          }\n          *__s = uVar3;\n          lVar6 = 0;\n          if (-1 < *(int *)(param_2 + 0x30)) {\n            do {\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar7 = __s;\n            do {\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);\n          }\n          iVar4 = FUN_001bfdf9(param_2,0x17,&local_50,0);\n          if (iVar4 == 0) {\n            FUN_0015b4b1(local_50,1,0);\n            FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);\n            FUN_001ab5c0(local_50);\n            iVar4 = FUN_00190b14(local_50);\n            *param_1 = iVar4;\n            FUN_0015b4c2(local_50,2);\n            FUN_00141303(__s);\n          }\n          else {\n            FUN_00141303(__s);\n            *param_1 = iVar4;\n          }\n        }\n        else {\n          FUN_00141303(__s);\n          *param_1 = iVar2;\n        }\n      }\n      else {\n        FUN_00141303(__s);\n        *param_1 = iVar2;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(*param_1 == 0)" (( "(") (binary_expression "*param_1 == 0" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar4 = *(int *)(param_2 + 0x30);\n    iVar1 = iVar4 + 2;\n    lVar11 = (long)iVar1;\n    __s = (uint *)FUN_0014bbac(lVar11 * 0xe,0);\n    if (__s == (uint *)0x0) {\n      *param_1 = 7;\n    }\n    else {\n      iVar2 = FUN_001bfdf9(param_2,0x16,&local_50,0);\n      if (iVar2 == 0) {\n        FUN_0015b4b1(local_50,1,0);\n        iVar2 = FUN_001ab5c0(local_50);\n        if (iVar2 == 100) {\n          iVar5 = FUN_00156893(local_50,0);\n          lVar6 = FUN_00156af8(local_50,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar12 = 1;\n            iVar10 = 0;\n            do {\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            } while (iVar2 < iVar1 && iVar10 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar7 = __s + iVar2;\n            do {\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }\n        else {\n          memset(__s,0,lVar11 * 4);\n        }\n        iVar2 = FUN_00190b14(local_50);\n        if (iVar2 == 0) {\n          if ((-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s)) {\n            uVar3 = param_5 + *__s;\n          }\n          *__s = uVar3;\n          lVar6 = 0;\n          if (-1 < *(int *)(param_2 + 0x30)) {\n            do {\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar7 = __s;\n            do {\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);\n          }\n          iVar4 = FUN_001bfdf9(param_2,0x17,&local_50,0);\n          if (iVar4 == 0) {\n            FUN_0015b4b1(local_50,1,0);\n            FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);\n            FUN_001ab5c0(local_50);\n            iVar4 = FUN_00190b14(local_50);\n            *param_1 = iVar4;\n            FUN_0015b4c2(local_50,2);\n            FUN_00141303(__s);\n          }\n          else {\n            FUN_00141303(__s);\n            *param_1 = iVar4;\n          }\n        }\n        else {\n          FUN_00141303(__s);\n          *param_1 = iVar2;\n        }\n      }\n      else {\n        FUN_00141303(__s);\n        *param_1 = iVar2;\n      }\n    }\n  }" ({ "{") (expression_statement "iVar4 = *(int *)(param_2 + 0x30);" (assignment_expression "iVar4 = *(int *)(param_2 + 0x30)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_2 + 0x30)" (* "*") (cast_expression "(int *)(param_2 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x30)" (( "(") (binary_expression "param_2 + 0x30" (identifier "param_2") (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (expression_statement "iVar1 = iVar4 + 2;" (assignment_expression "iVar1 = iVar4 + 2" (identifier "iVar1") (= "=") (binary_expression "iVar4 + 2" (identifier "iVar4") (+ "+") (number_literal "2"))) (; ";")) (expression_statement "lVar11 = (long)iVar1;" (assignment_expression "lVar11 = (long)iVar1" (identifier "lVar11") (= "=") (cast_expression "(long)iVar1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar1"))) (; ";")) (expression_statement "__s = (uint *)FUN_0014bbac(lVar11 * 0xe,0);" (assignment_expression "__s = (uint *)FUN_0014bbac(lVar11 * 0xe,0)" (identifier "__s") (= "=") (cast_expression "(uint *)FUN_0014bbac(lVar11 * 0xe,0)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0014bbac(lVar11 * 0xe,0)" (identifier "FUN_0014bbac") (argument_list "(lVar11 * 0xe,0)" (( "(") (binary_expression "lVar11 * 0xe" (identifier "lVar11") (* "*") (number_literal "0xe")) (, ",") (number_literal "0") () ")"))))) (; ";")) (if_statement "if (__s == (uint *)0x0) {\n      *param_1 = 7;\n    }\n    else {\n      iVar2 = FUN_001bfdf9(param_2,0x16,&local_50,0);\n      if (iVar2 == 0) {\n        FUN_0015b4b1(local_50,1,0);\n        iVar2 = FUN_001ab5c0(local_50);\n        if (iVar2 == 100) {\n          iVar5 = FUN_00156893(local_50,0);\n          lVar6 = FUN_00156af8(local_50,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar12 = 1;\n            iVar10 = 0;\n            do {\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            } while (iVar2 < iVar1 && iVar10 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar7 = __s + iVar2;\n            do {\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }\n        else {\n          memset(__s,0,lVar11 * 4);\n        }\n        iVar2 = FUN_00190b14(local_50);\n        if (iVar2 == 0) {\n          if ((-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s)) {\n            uVar3 = param_5 + *__s;\n          }\n          *__s = uVar3;\n          lVar6 = 0;\n          if (-1 < *(int *)(param_2 + 0x30)) {\n            do {\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar7 = __s;\n            do {\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);\n          }\n          iVar4 = FUN_001bfdf9(param_2,0x17,&local_50,0);\n          if (iVar4 == 0) {\n            FUN_0015b4b1(local_50,1,0);\n            FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);\n            FUN_001ab5c0(local_50);\n            iVar4 = FUN_00190b14(local_50);\n            *param_1 = iVar4;\n            FUN_0015b4c2(local_50,2);\n            FUN_00141303(__s);\n          }\n          else {\n            FUN_00141303(__s);\n            *param_1 = iVar4;\n          }\n        }\n        else {\n          FUN_00141303(__s);\n          *param_1 = iVar2;\n        }\n      }\n      else {\n        FUN_00141303(__s);\n        *param_1 = iVar2;\n      }\n    }" (if "if") (parenthesized_expression "(__s == (uint *)0x0)" (( "(") (binary_expression "__s == (uint *)0x0" (identifier "__s") (== "==") (cast_expression "(uint *)0x0" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      *param_1 = 7;\n    }" ({ "{") (expression_statement "*param_1 = 7;" (assignment_expression "*param_1 = 7" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (number_literal "7")) (; ";")) (} "}")) (else_clause "else {\n      iVar2 = FUN_001bfdf9(param_2,0x16,&local_50,0);\n      if (iVar2 == 0) {\n        FUN_0015b4b1(local_50,1,0);\n        iVar2 = FUN_001ab5c0(local_50);\n        if (iVar2 == 100) {\n          iVar5 = FUN_00156893(local_50,0);\n          lVar6 = FUN_00156af8(local_50,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar12 = 1;\n            iVar10 = 0;\n            do {\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            } while (iVar2 < iVar1 && iVar10 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar7 = __s + iVar2;\n            do {\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }\n        else {\n          memset(__s,0,lVar11 * 4);\n        }\n        iVar2 = FUN_00190b14(local_50);\n        if (iVar2 == 0) {\n          if ((-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s)) {\n            uVar3 = param_5 + *__s;\n          }\n          *__s = uVar3;\n          lVar6 = 0;\n          if (-1 < *(int *)(param_2 + 0x30)) {\n            do {\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar7 = __s;\n            do {\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);\n          }\n          iVar4 = FUN_001bfdf9(param_2,0x17,&local_50,0);\n          if (iVar4 == 0) {\n            FUN_0015b4b1(local_50,1,0);\n            FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);\n            FUN_001ab5c0(local_50);\n            iVar4 = FUN_00190b14(local_50);\n            *param_1 = iVar4;\n            FUN_0015b4c2(local_50,2);\n            FUN_00141303(__s);\n          }\n          else {\n            FUN_00141303(__s);\n            *param_1 = iVar4;\n          }\n        }\n        else {\n          FUN_00141303(__s);\n          *param_1 = iVar2;\n        }\n      }\n      else {\n        FUN_00141303(__s);\n        *param_1 = iVar2;\n      }\n    }" (else "else") (compound_statement "{\n      iVar2 = FUN_001bfdf9(param_2,0x16,&local_50,0);\n      if (iVar2 == 0) {\n        FUN_0015b4b1(local_50,1,0);\n        iVar2 = FUN_001ab5c0(local_50);\n        if (iVar2 == 100) {\n          iVar5 = FUN_00156893(local_50,0);\n          lVar6 = FUN_00156af8(local_50,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar12 = 1;\n            iVar10 = 0;\n            do {\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            } while (iVar2 < iVar1 && iVar10 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar7 = __s + iVar2;\n            do {\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }\n        else {\n          memset(__s,0,lVar11 * 4);\n        }\n        iVar2 = FUN_00190b14(local_50);\n        if (iVar2 == 0) {\n          if ((-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s)) {\n            uVar3 = param_5 + *__s;\n          }\n          *__s = uVar3;\n          lVar6 = 0;\n          if (-1 < *(int *)(param_2 + 0x30)) {\n            do {\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar7 = __s;\n            do {\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);\n          }\n          iVar4 = FUN_001bfdf9(param_2,0x17,&local_50,0);\n          if (iVar4 == 0) {\n            FUN_0015b4b1(local_50,1,0);\n            FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);\n            FUN_001ab5c0(local_50);\n            iVar4 = FUN_00190b14(local_50);\n            *param_1 = iVar4;\n            FUN_0015b4c2(local_50,2);\n            FUN_00141303(__s);\n          }\n          else {\n            FUN_00141303(__s);\n            *param_1 = iVar4;\n          }\n        }\n        else {\n          FUN_00141303(__s);\n          *param_1 = iVar2;\n        }\n      }\n      else {\n        FUN_00141303(__s);\n        *param_1 = iVar2;\n      }\n    }" ({ "{") (expression_statement "iVar2 = FUN_001bfdf9(param_2,0x16,&local_50,0);" (assignment_expression "iVar2 = FUN_001bfdf9(param_2,0x16,&local_50,0)" (identifier "iVar2") (= "=") (call_expression "FUN_001bfdf9(param_2,0x16,&local_50,0)" (identifier "FUN_001bfdf9") (argument_list "(param_2,0x16,&local_50,0)" (( "(") (identifier "param_2") (, ",") (number_literal "0x16") (, ",") (pointer_expression "&local_50" (& "&") (identifier "local_50")) (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n        FUN_0015b4b1(local_50,1,0);\n        iVar2 = FUN_001ab5c0(local_50);\n        if (iVar2 == 100) {\n          iVar5 = FUN_00156893(local_50,0);\n          lVar6 = FUN_00156af8(local_50,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar12 = 1;\n            iVar10 = 0;\n            do {\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            } while (iVar2 < iVar1 && iVar10 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar7 = __s + iVar2;\n            do {\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }\n        else {\n          memset(__s,0,lVar11 * 4);\n        }\n        iVar2 = FUN_00190b14(local_50);\n        if (iVar2 == 0) {\n          if ((-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s)) {\n            uVar3 = param_5 + *__s;\n          }\n          *__s = uVar3;\n          lVar6 = 0;\n          if (-1 < *(int *)(param_2 + 0x30)) {\n            do {\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar7 = __s;\n            do {\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);\n          }\n          iVar4 = FUN_001bfdf9(param_2,0x17,&local_50,0);\n          if (iVar4 == 0) {\n            FUN_0015b4b1(local_50,1,0);\n            FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);\n            FUN_001ab5c0(local_50);\n            iVar4 = FUN_00190b14(local_50);\n            *param_1 = iVar4;\n            FUN_0015b4c2(local_50,2);\n            FUN_00141303(__s);\n          }\n          else {\n            FUN_00141303(__s);\n            *param_1 = iVar4;\n          }\n        }\n        else {\n          FUN_00141303(__s);\n          *param_1 = iVar2;\n        }\n      }\n      else {\n        FUN_00141303(__s);\n        *param_1 = iVar2;\n      }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_0015b4b1(local_50,1,0);\n        iVar2 = FUN_001ab5c0(local_50);\n        if (iVar2 == 100) {\n          iVar5 = FUN_00156893(local_50,0);\n          lVar6 = FUN_00156af8(local_50,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar12 = 1;\n            iVar10 = 0;\n            do {\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            } while (iVar2 < iVar1 && iVar10 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar7 = __s + iVar2;\n            do {\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }\n        else {\n          memset(__s,0,lVar11 * 4);\n        }\n        iVar2 = FUN_00190b14(local_50);\n        if (iVar2 == 0) {\n          if ((-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s)) {\n            uVar3 = param_5 + *__s;\n          }\n          *__s = uVar3;\n          lVar6 = 0;\n          if (-1 < *(int *)(param_2 + 0x30)) {\n            do {\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar7 = __s;\n            do {\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);\n          }\n          iVar4 = FUN_001bfdf9(param_2,0x17,&local_50,0);\n          if (iVar4 == 0) {\n            FUN_0015b4b1(local_50,1,0);\n            FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);\n            FUN_001ab5c0(local_50);\n            iVar4 = FUN_00190b14(local_50);\n            *param_1 = iVar4;\n            FUN_0015b4c2(local_50,2);\n            FUN_00141303(__s);\n          }\n          else {\n            FUN_00141303(__s);\n            *param_1 = iVar4;\n          }\n        }\n        else {\n          FUN_00141303(__s);\n          *param_1 = iVar2;\n        }\n      }" ({ "{") (expression_statement "FUN_0015b4b1(local_50,1,0);" (call_expression "FUN_0015b4b1(local_50,1,0)" (identifier "FUN_0015b4b1") (argument_list "(local_50,1,0)" (( "(") (identifier "local_50") (, ",") (number_literal "1") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "iVar2 = FUN_001ab5c0(local_50);" (assignment_expression "iVar2 = FUN_001ab5c0(local_50)" (identifier "iVar2") (= "=") (call_expression "FUN_001ab5c0(local_50)" (identifier "FUN_001ab5c0") (argument_list "(local_50)" (( "(") (identifier "local_50") () ")")))) (; ";")) (if_statement "if (iVar2 == 100) {\n          iVar5 = FUN_00156893(local_50,0);\n          lVar6 = FUN_00156af8(local_50,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar12 = 1;\n            iVar10 = 0;\n            do {\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            } while (iVar2 < iVar1 && iVar10 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar7 = __s + iVar2;\n            do {\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }\n        else {\n          memset(__s,0,lVar11 * 4);\n        }" (if "if") (parenthesized_expression "(iVar2 == 100)" (( "(") (binary_expression "iVar2 == 100" (identifier "iVar2") (== "==") (number_literal "100")) () ")")) (compound_statement "{\n          iVar5 = FUN_00156893(local_50,0);\n          lVar6 = FUN_00156af8(local_50,0);\n          iVar2 = iVar5;\n          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar12 = 1;\n            iVar10 = 0;\n            do {\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            } while (iVar2 < iVar1 && iVar10 < iVar5);\n          }\n          if (iVar2 < iVar1) {\n            puVar7 = __s + iVar2;\n            do {\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }\n        }" ({ "{") (expression_statement "iVar5 = FUN_00156893(local_50,0);" (assignment_expression "iVar5 = FUN_00156893(local_50,0)" (identifier "iVar5") (= "=") (call_expression "FUN_00156893(local_50,0)" (identifier "FUN_00156893") (argument_list "(local_50,0)" (( "(") (identifier "local_50") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "lVar6 = FUN_00156af8(local_50,0);" (assignment_expression "lVar6 = FUN_00156af8(local_50,0)" (identifier "lVar6") (= "=") (call_expression "FUN_00156af8(local_50,0)" (identifier "FUN_00156af8") (argument_list "(local_50,0)" (( "(") (identifier "local_50") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "iVar2 = iVar5;" (assignment_expression "iVar2 = iVar5" (identifier "iVar2") (= "=") (identifier "iVar5")) (; ";")) (if_statement "if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)) && (0 < iVar5)) {\n            lVar12 = 1;\n            iVar10 = 0;\n            do {\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            } while (iVar2 < iVar1 && iVar10 < iVar5);\n          }" (if "if") (parenthesized_expression "((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)) && (0 < iVar5))" (( "(") (binary_expression "(((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)) && (0 < iVar5)" (parenthesized_expression "(((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1))" (( "(") (binary_expression "((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&\n              (0 < iVar1)" (parenthesized_expression "((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5)))" (( "(") (binary_expression "(iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))" (parenthesized_expression "(iVar5 != 0)" (( "(") (binary_expression "iVar5 != 0" (identifier "iVar5") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))" (( "(") (comma_expression "iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5)" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (, ",") (binary_expression "-1 < *(char *)(lVar6 + -1 + (long)iVar5)" (number_literal "-1") (< "<") (pointer_expression "*(char *)(lVar6 + -1 + (long)iVar5)" (* "*") (cast_expression "(char *)(lVar6 + -1 + (long)iVar5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar6 + -1 + (long)iVar5)" (( "(") (binary_expression "lVar6 + -1 + (long)iVar5" (binary_expression "lVar6 + -1" (identifier "lVar6") (+ "+") (number_literal "-1")) (+ "+") (cast_expression "(long)iVar5" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar5"))) () ")")))))) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(0 < iVar1)" (( "(") (binary_expression "0 < iVar1" (number_literal "0") (< "<") (identifier "iVar1")) () ")"))) () ")")) (&& "&&") (parenthesized_expression "(0 < iVar5)" (( "(") (binary_expression "0 < iVar5" (number_literal "0") (< "<") (identifier "iVar5")) () ")"))) () ")")) (compound_statement "{\n            lVar12 = 1;\n            iVar10 = 0;\n            do {\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            } while (iVar2 < iVar1 && iVar10 < iVar5);\n          }" ({ "{") (expression_statement "lVar12 = 1;" (assignment_expression "lVar12 = 1" (identifier "lVar12") (= "=") (number_literal "1")) (; ";")) (expression_statement "iVar10 = 0;" (assignment_expression "iVar10 = 0" (identifier "iVar10") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            } while (iVar2 < iVar1 && iVar10 < iVar5);" (do "do") (compound_statement "{\n              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);\n              iVar10 = iVar10 + iVar2;\n              __s[lVar12 + -1] = local_48._0_4_;\n              iVar2 = (int)lVar12;\n              lVar12 = lVar12 + 1;\n            }" ({ "{") (expression_statement "iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);" (assignment_expression "iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48)" (identifier "iVar2") (= "=") (call_expression "FUN_00131bd6(iVar10 + lVar6,local_48)" (identifier "FUN_00131bd6") (argument_list "(iVar10 + lVar6,local_48)" (( "(") (binary_expression "iVar10 + lVar6" (identifier "iVar10") (+ "+") (identifier "lVar6")) (, ",") (identifier "local_48") () ")")))) (; ";")) (expression_statement "iVar10 = iVar10 + iVar2;" (assignment_expression "iVar10 = iVar10 + iVar2" (identifier "iVar10") (= "=") (binary_expression "iVar10 + iVar2" (identifier "iVar10") (+ "+") (identifier "iVar2"))) (; ";")) (expression_statement "__s[lVar12 + -1] = local_48._0_4_;" (assignment_expression "__s[lVar12 + -1] = local_48._0_4_" (subscript_expression "__s[lVar12 + -1]" (identifier "__s") ([ "[") (binary_expression "lVar12 + -1" (identifier "lVar12") (+ "+") (number_literal "-1")) (] "]")) (= "=") (field_expression "local_48._0_4_" (identifier "local_48") (. ".") (field_identifier "_0_4_"))) (; ";")) (expression_statement "iVar2 = (int)lVar12;" (assignment_expression "iVar2 = (int)lVar12" (identifier "iVar2") (= "=") (cast_expression "(int)lVar12" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "lVar12"))) (; ";")) (expression_statement "lVar12 = lVar12 + 1;" (assignment_expression "lVar12 = lVar12 + 1" (identifier "lVar12") (= "=") (binary_expression "lVar12 + 1" (identifier "lVar12") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar2 < iVar1 && iVar10 < iVar5)" (( "(") (binary_expression "iVar2 < iVar1 && iVar10 < iVar5" (binary_expression "iVar2 < iVar1" (identifier "iVar2") (< "<") (identifier "iVar1")) (&& "&&") (binary_expression "iVar10 < iVar5" (identifier "iVar10") (< "<") (identifier "iVar5"))) () ")")) (; ";")) (} "}"))) (if_statement "if (iVar2 < iVar1) {\n            puVar7 = __s + iVar2;\n            do {\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }" (if "if") (parenthesized_expression "(iVar2 < iVar1)" (( "(") (binary_expression "iVar2 < iVar1" (identifier "iVar2") (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\n            puVar7 = __s + iVar2;\n            do {\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);\n          }" ({ "{") (expression_statement "puVar7 = __s + iVar2;" (assignment_expression "puVar7 = __s + iVar2" (identifier "puVar7") (= "=") (binary_expression "__s + iVar2" (identifier "__s") (+ "+") (identifier "iVar2"))) (; ";")) (do_statement "do {\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);" (do "do") (compound_statement "{\n              *puVar7 = 0;\n              puVar7 = puVar7 + 1;\n            }" ({ "{") (expression_statement "*puVar7 = 0;" (assignment_expression "*puVar7 = 0" (pointer_expression "*puVar7" (* "*") (identifier "puVar7")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar7 = puVar7 + 1;" (assignment_expression "puVar7 = puVar7 + 1" (identifier "puVar7") (= "=") (binary_expression "puVar7 + 1" (identifier "puVar7") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1)" (( "(") (binary_expression "puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1" (identifier "puVar7") (!= "!=") (binary_expression "__s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1" (binary_expression "__s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2" (binary_expression "__s + (ulong)(uint)((iVar4 + 1) - iVar2)" (identifier "__s") (+ "+") (call_expression "(ulong)(uint)((iVar4 + 1) - iVar2)" (call_expression "(ulong)(uint)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(uint)" (( "(") (identifier "uint") () ")"))) (argument_list "((iVar4 + 1) - iVar2)" (( "(") (binary_expression "(iVar4 + 1) - iVar2" (parenthesized_expression "(iVar4 + 1)" (( "(") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1")) () ")")) (- "-") (identifier "iVar2")) () ")")))) (+ "+") (cast_expression "(long)iVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar2"))) (+ "+") (number_literal "1"))) () ")")) (; ";")) (} "}"))) (} "}")) (else_clause "else {\n          memset(__s,0,lVar11 * 4);\n        }" (else "else") (compound_statement "{\n          memset(__s,0,lVar11 * 4);\n        }" ({ "{") (expression_statement "memset(__s,0,lVar11 * 4);" (call_expression "memset(__s,0,lVar11 * 4)" (identifier "memset") (argument_list "(__s,0,lVar11 * 4)" (( "(") (identifier "__s") (, ",") (number_literal "0") (, ",") (binary_expression "lVar11 * 4" (identifier "lVar11") (* "*") (number_literal "4")) () ")"))) (; ";")) (} "}")))) (expression_statement "iVar2 = FUN_00190b14(local_50);" (assignment_expression "iVar2 = FUN_00190b14(local_50)" (identifier "iVar2") (= "=") (call_expression "FUN_00190b14(local_50)" (identifier "FUN_00190b14") (argument_list "(local_50)" (( "(") (identifier "local_50") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n          if ((-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s)) {\n            uVar3 = param_5 + *__s;\n          }\n          *__s = uVar3;\n          lVar6 = 0;\n          if (-1 < *(int *)(param_2 + 0x30)) {\n            do {\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar7 = __s;\n            do {\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);\n          }\n          iVar4 = FUN_001bfdf9(param_2,0x17,&local_50,0);\n          if (iVar4 == 0) {\n            FUN_0015b4b1(local_50,1,0);\n            FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);\n            FUN_001ab5c0(local_50);\n            iVar4 = FUN_00190b14(local_50);\n            *param_1 = iVar4;\n            FUN_0015b4c2(local_50,2);\n            FUN_00141303(__s);\n          }\n          else {\n            FUN_00141303(__s);\n            *param_1 = iVar4;\n          }\n        }\n        else {\n          FUN_00141303(__s);\n          *param_1 = iVar2;\n        }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          if ((-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s)) {\n            uVar3 = param_5 + *__s;\n          }\n          *__s = uVar3;\n          lVar6 = 0;\n          if (-1 < *(int *)(param_2 + 0x30)) {\n            do {\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));\n          }\n          iVar2 = 0;\n          if (0 < iVar1) {\n            iVar2 = 0;\n            puVar7 = __s;\n            do {\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);\n          }\n          iVar4 = FUN_001bfdf9(param_2,0x17,&local_50,0);\n          if (iVar4 == 0) {\n            FUN_0015b4b1(local_50,1,0);\n            FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);\n            FUN_001ab5c0(local_50);\n            iVar4 = FUN_00190b14(local_50);\n            *param_1 = iVar4;\n            FUN_0015b4c2(local_50,2);\n            FUN_00141303(__s);\n          }\n          else {\n            FUN_00141303(__s);\n            *param_1 = iVar4;\n          }\n        }" ({ "{") (if_statement "if ((-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s)) {\n            uVar3 = param_5 + *__s;\n          }" (if "if") (parenthesized_expression "((-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s))" (( "(") (binary_expression "(-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s)" (parenthesized_expression "(-1 < param_5)" (( "(") (binary_expression "-1 < param_5" (number_literal "-1") (< "<") (identifier "param_5")) () ")")) (|| "||") (parenthesized_expression "(uVar3 = 0, (uint)-param_5 <= *__s)" (( "(") (comma_expression "uVar3 = 0, (uint)-param_5 <= *__s" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (, ",") (binary_expression "(uint)-param_5 <= *__s" (binary_expression "(uint)-param_5" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (- "-") (identifier "param_5")) (<= "<=") (pointer_expression "*__s" (* "*") (identifier "__s")))) () ")"))) () ")")) (compound_statement "{\n            uVar3 = param_5 + *__s;\n          }" ({ "{") (expression_statement "uVar3 = param_5 + *__s;" (assignment_expression "uVar3 = param_5 + *__s" (identifier "uVar3") (= "=") (binary_expression "param_5 + *__s" (identifier "param_5") (+ "+") (pointer_expression "*__s" (* "*") (identifier "__s")))) (; ";")) (} "}"))) (expression_statement "*__s = uVar3;" (assignment_expression "*__s = uVar3" (pointer_expression "*__s" (* "*") (identifier "__s")) (= "=") (identifier "uVar3")) (; ";")) (expression_statement "lVar6 = 0;" (assignment_expression "lVar6 = 0" (identifier "lVar6") (= "=") (number_literal "0")) (; ";")) (if_statement "if (-1 < *(int *)(param_2 + 0x30)) {\n            do {\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));\n          }" (if "if") (parenthesized_expression "(-1 < *(int *)(param_2 + 0x30))" (( "(") (binary_expression "-1 < *(int *)(param_2 + 0x30)" (number_literal "-1") (< "<") (pointer_expression "*(int *)(param_2 + 0x30)" (* "*") (cast_expression "(int *)(param_2 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x30)" (( "(") (binary_expression "param_2 + 0x30" (identifier "param_2") (+ "+") (number_literal "0x30")) () ")"))))) () ")")) (compound_statement "{\n            do {\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));\n          }" ({ "{") (do_statement "do {\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));" (do "do") (compound_statement "{\n              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);\n              uVar3 = *(uint *)(param_4 + lVar6 * 4);\n              uVar8 = uVar9 - uVar3;\n              if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }\n              __s[lVar6 + 1] = uVar8;\n              lVar6 = lVar6 + 1;\n            }" ({ "{") (expression_statement "uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);" (assignment_expression "uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4)" (identifier "uVar9") (= "=") (binary_expression "__s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4)" (subscript_expression "__s[lVar6 + 1]" (identifier "__s") ([ "[") (binary_expression "lVar6 + 1" (identifier "lVar6") (+ "+") (number_literal "1")) (] "]")) (+ "+") (pointer_expression "*(int *)(param_3 + lVar6 * 4)" (* "*") (cast_expression "(int *)(param_3 + lVar6 * 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_3 + lVar6 * 4)" (( "(") (binary_expression "param_3 + lVar6 * 4" (identifier "param_3") (+ "+") (binary_expression "lVar6 * 4" (identifier "lVar6") (* "*") (number_literal "4"))) () ")")))))) (; ";")) (expression_statement "uVar3 = *(uint *)(param_4 + lVar6 * 4);" (assignment_expression "uVar3 = *(uint *)(param_4 + lVar6 * 4)" (identifier "uVar3") (= "=") (pointer_expression "*(uint *)(param_4 + lVar6 * 4)" (* "*") (cast_expression "(uint *)(param_4 + lVar6 * 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + lVar6 * 4)" (( "(") (binary_expression "param_4 + lVar6 * 4" (identifier "param_4") (+ "+") (binary_expression "lVar6 * 4" (identifier "lVar6") (* "*") (number_literal "4"))) () ")"))))) (; ";")) (expression_statement "uVar8 = uVar9 - uVar3;" (assignment_expression "uVar8 = uVar9 - uVar3" (identifier "uVar8") (= "=") (binary_expression "uVar9 - uVar3" (identifier "uVar9") (- "-") (identifier "uVar3"))) (; ";")) (if_statement "if (uVar9 < uVar3) {\n                uVar8 = 0;\n              }" (if "if") (parenthesized_expression "(uVar9 < uVar3)" (( "(") (binary_expression "uVar9 < uVar3" (identifier "uVar9") (< "<") (identifier "uVar3")) () ")")) (compound_statement "{\n                uVar8 = 0;\n              }" ({ "{") (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" (identifier "uVar8") (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "__s[lVar6 + 1] = uVar8;" (assignment_expression "__s[lVar6 + 1] = uVar8" (subscript_expression "__s[lVar6 + 1]" (identifier "__s") ([ "[") (binary_expression "lVar6 + 1" (identifier "lVar6") (+ "+") (number_literal "1")) (] "]")) (= "=") (identifier "uVar8")) (; ";")) (expression_statement "lVar6 = lVar6 + 1;" (assignment_expression "lVar6 = lVar6 + 1" (identifier "lVar6") (= "=") (binary_expression "lVar6 + 1" (identifier "lVar6") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((int)lVar6 <= *(int *)(param_2 + 0x30))" (( "(") (binary_expression "(int)lVar6 <= *(int *)(param_2 + 0x30)" (cast_expression "(int)lVar6" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "lVar6")) (<= "<=") (pointer_expression "*(int *)(param_2 + 0x30)" (* "*") (cast_expression "(int *)(param_2 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x30)" (( "(") (binary_expression "param_2 + 0x30" (identifier "param_2") (+ "+") (number_literal "0x30")) () ")"))))) () ")")) (; ";")) (} "}"))) (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (if_statement "if (0 < iVar1) {\n            iVar2 = 0;\n            puVar7 = __s;\n            do {\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);\n          }" (if "if") (parenthesized_expression "(0 < iVar1)" (( "(") (binary_expression "0 < iVar1" (number_literal "0") (< "<") (identifier "iVar1")) () ")")) (compound_statement "{\n            iVar2 = 0;\n            puVar7 = __s;\n            do {\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);\n          }" ({ "{") (expression_statement "iVar2 = 0;" (assignment_expression "iVar2 = 0" (identifier "iVar2") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar7 = __s;" (assignment_expression "puVar7 = __s" (identifier "puVar7") (= "=") (identifier "__s")) (; ";")) (do_statement "do {\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);" (do "do") (compound_statement "{\n              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);\n              iVar2 = iVar2 + iVar1;\n              puVar7 = puVar7 + 1;\n            }" ({ "{") (expression_statement "iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);" (assignment_expression "iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7)" (identifier "iVar1") (= "=") (call_expression "FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7)" (identifier "FUN_00131bae") (argument_list "((long)iVar2 + (long)(__s + lVar11),*puVar7)" (( "(") (binary_expression "(long)iVar2 + (long)(__s + lVar11)" (cast_expression "(long)iVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar2")) (+ "+") (cast_expression "(long)(__s + lVar11)" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (parenthesized_expression "(__s + lVar11)" (( "(") (binary_expression "__s + lVar11" (identifier "__s") (+ "+") (identifier "lVar11")) () ")")))) (, ",") (pointer_expression "*puVar7" (* "*") (identifier "puVar7")) () ")")))) (; ";")) (expression_statement "iVar2 = iVar2 + iVar1;" (assignment_expression "iVar2 = iVar2 + iVar1" (identifier "iVar2") (= "=") (binary_expression "iVar2 + iVar1" (identifier "iVar2") (+ "+") (identifier "iVar1"))) (; ";")) (expression_statement "puVar7 = puVar7 + 1;" (assignment_expression "puVar7 = puVar7 + 1" (identifier "puVar7") (= "=") (binary_expression "puVar7 + 1" (identifier "puVar7") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(__s + (ulong)(iVar4 + 1) + 1 != puVar7)" (( "(") (binary_expression "__s + (ulong)(iVar4 + 1) + 1 != puVar7" (binary_expression "__s + (ulong)(iVar4 + 1) + 1" (binary_expression "__s + (ulong)(iVar4 + 1)" (identifier "__s") (+ "+") (call_expression "(ulong)(iVar4 + 1)" (parenthesized_expression "(ulong)" (( "(") (identifier "ulong") () ")")) (argument_list "(iVar4 + 1)" (( "(") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1")) () ")")))) (+ "+") (number_literal "1")) (!= "!=") (identifier "puVar7")) () ")")) (; ";")) (} "}"))) (expression_statement "iVar4 = FUN_001bfdf9(param_2,0x17,&local_50,0);" (assignment_expression "iVar4 = FUN_001bfdf9(param_2,0x17,&local_50,0)" (identifier "iVar4") (= "=") (call_expression "FUN_001bfdf9(param_2,0x17,&local_50,0)" (identifier "FUN_001bfdf9") (argument_list "(param_2,0x17,&local_50,0)" (( "(") (identifier "param_2") (, ",") (number_literal "0x17") (, ",") (pointer_expression "&local_50" (& "&") (identifier "local_50")) (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar4 == 0) {\n            FUN_0015b4b1(local_50,1,0);\n            FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);\n            FUN_001ab5c0(local_50);\n            iVar4 = FUN_00190b14(local_50);\n            *param_1 = iVar4;\n            FUN_0015b4c2(local_50,2);\n            FUN_00141303(__s);\n          }\n          else {\n            FUN_00141303(__s);\n            *param_1 = iVar4;\n          }" (if "if") (parenthesized_expression "(iVar4 == 0)" (( "(") (binary_expression "iVar4 == 0" (identifier "iVar4") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            FUN_0015b4b1(local_50,1,0);\n            FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);\n            FUN_001ab5c0(local_50);\n            iVar4 = FUN_00190b14(local_50);\n            *param_1 = iVar4;\n            FUN_0015b4c2(local_50,2);\n            FUN_00141303(__s);\n          }" ({ "{") (expression_statement "FUN_0015b4b1(local_50,1,0);" (call_expression "FUN_0015b4b1(local_50,1,0)" (identifier "FUN_0015b4b1") (argument_list "(local_50,1,0)" (( "(") (identifier "local_50") (, ",") (number_literal "1") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);" (call_expression "FUN_0015b334(local_50,2,__s + lVar11,iVar2,0)" (identifier "FUN_0015b334") (argument_list "(local_50,2,__s + lVar11,iVar2,0)" (( "(") (identifier "local_50") (, ",") (number_literal "2") (, ",") (binary_expression "__s + lVar11" (identifier "__s") (+ "+") (identifier "lVar11")) (, ",") (identifier "iVar2") (, ",") (number_literal "0") () ")"))) (; ";")) (expression_statement "FUN_001ab5c0(local_50);" (call_expression "FUN_001ab5c0(local_50)" (identifier "FUN_001ab5c0") (argument_list "(local_50)" (( "(") (identifier "local_50") () ")"))) (; ";")) (expression_statement "iVar4 = FUN_00190b14(local_50);" (assignment_expression "iVar4 = FUN_00190b14(local_50)" (identifier "iVar4") (= "=") (call_expression "FUN_00190b14(local_50)" (identifier "FUN_00190b14") (argument_list "(local_50)" (( "(") (identifier "local_50") () ")")))) (; ";")) (expression_statement "*param_1 = iVar4;" (assignment_expression "*param_1 = iVar4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar4")) (; ";")) (expression_statement "FUN_0015b4c2(local_50,2);" (call_expression "FUN_0015b4c2(local_50,2)" (identifier "FUN_0015b4c2") (argument_list "(local_50,2)" (( "(") (identifier "local_50") (, ",") (number_literal "2") () ")"))) (; ";")) (expression_statement "FUN_00141303(__s);" (call_expression "FUN_00141303(__s)" (identifier "FUN_00141303") (argument_list "(__s)" (( "(") (identifier "__s") () ")"))) (; ";")) (} "}")) (else_clause "else {\n            FUN_00141303(__s);\n            *param_1 = iVar4;\n          }" (else "else") (compound_statement "{\n            FUN_00141303(__s);\n            *param_1 = iVar4;\n          }" ({ "{") (expression_statement "FUN_00141303(__s);" (call_expression "FUN_00141303(__s)" (identifier "FUN_00141303") (argument_list "(__s)" (( "(") (identifier "__s") () ")"))) (; ";")) (expression_statement "*param_1 = iVar4;" (assignment_expression "*param_1 = iVar4" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar4")) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n          FUN_00141303(__s);\n          *param_1 = iVar2;\n        }" (else "else") (compound_statement "{\n          FUN_00141303(__s);\n          *param_1 = iVar2;\n        }" ({ "{") (expression_statement "FUN_00141303(__s);" (call_expression "FUN_00141303(__s)" (identifier "FUN_00141303") (argument_list "(__s)" (( "(") (identifier "__s") () ")"))) (; ";")) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar2")) (; ";")) (} "}")))) (} "}")) (else_clause "else {\n        FUN_00141303(__s);\n        *param_1 = iVar2;\n      }" (else "else") (compound_statement "{\n        FUN_00141303(__s);\n        *param_1 = iVar2;\n      }" ({ "{") (expression_statement "FUN_00141303(__s);" (call_expression "FUN_00141303(__s)" (identifier "FUN_00141303") (argument_list "(__s)" (( "(") (identifier "__s") () ")"))) (; ";")) (expression_statement "*param_1 = iVar2;" (assignment_expression "*param_1 = iVar2" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (= "=") (identifier "iVar2")) (; ";")) (} "}")))) (} "}")))) (} "}"))) (if_statement "if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {\n                    \n    __stack_chk_fail();\n  }" (if "if") (parenthesized_expression "(local_40 != *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_40 != *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (!= "!=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n                    \n    __stack_chk_fail();\n  }" ({ "{") (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(int *pRC,type_1 *p,type_2 *aSzIns,type_2 *aSzDel,int var_20)

{
  int var_13;
  int var_7;
  type_3 uVar3;
  int var_2;
  int var_12;
  type_3 *var_5;
  long var_16;
  void *pvVar7;
  type_3 *var_17;
  int var_15;
  long var_4;
  long var_1;
  type_4 *pStmt;
  type_5 x;
  long var_25;
  
  var_25 = *(long *)(var_1 + 0x28);
  if (*pRC == 0) {
    var_2 = p->nColumn;
    var_13 = var_2 + 2;
    var_4 = (long)var_13;
    var_5 = (type_3 *)var_3(var_4 * 0xe);
    if (var_5 == (type_3 *)0x0) {
      *pRC = 7;
    }
    else {
      var_7 = var_6(p,0x16,&pStmt,(type_6 **)0x0);
      if (var_7 == 0) {
        var_8(pStmt,1,0);
        var_7 = var_9(pStmt);
        if (var_7 == 100) {
          var_12 = var_10(pStmt,0);
          pvVar7 = var_11(pStmt,0);
          var_7 = var_12;
          if ((((var_12 != 0) && (var_7 = 0, -1 < *(char *)((long)pvVar7 + (long)var_12 + -1))) &&
              (0 < var_13)) && (0 < var_12)) {
            var_16 = 1;
            var_15 = 0;
            do {
              var_7 = var_14((char *)((long)var_15 + (long)pvVar7),&x);
              var_15 = var_15 + var_7;
              var_5[var_16 + -1] = (type_3)x;
              var_7 = (int)var_16;
              var_16 = var_16 + 1;
            } while (var_7 < var_13 && var_15 < var_12);
          }
          if (var_7 < var_13) {
            var_17 = var_5 + var_7;
            do {
              *var_17 = 0;
              var_17 = var_17 + 1;
            } while (var_17 != var_5 + (ulong)(type_3)((var_2 + 1) - var_7) + (long)var_7 + 1);
          }
        }
        else {
          var_18(var_5,0,var_4 * 4);
        }
        var_7 = var_19(pStmt);
        if (var_7 == 0) {
          if ((-1 < var_20) || (uVar3 = 0, (type_3)-var_20 <= *var_5)) {
            uVar3 = var_20 + *var_5;
          }
          *var_5 = uVar3;
          var_16 = 0;
          if (-1 < p->nColumn) {
            do {
              uVar3 = (var_5[var_16 + 1] + aSzIns[var_16]) - aSzDel[var_16];
              if (var_5[var_16 + 1] + aSzIns[var_16] < aSzDel[var_16]) {
                uVar3 = 0;
              }
              var_5[var_16 + 1] = uVar3;
              var_16 = var_16 + 1;
            } while ((int)var_16 <= p->nColumn);
          }
          var_7 = 0;
          if (0 < var_13) {
            var_7 = 0;
            var_17 = var_5;
            do {
              var_13 = var_21
                                ((char *)((long)var_7 + (long)(var_5 + var_4)),(ulong)*var_17);
              var_7 = var_7 + var_13;
              var_17 = var_17 + 1;
            } while (var_5 + (ulong)(var_2 + 1) + 1 != var_17);
          }
          var_2 = var_6(p,0x17,&pStmt,(type_6 **)0x0);
          if (var_2 == 0) {
            var_8(pStmt,1,0);
            var_22(pStmt,2,var_5 + var_4,var_7,(type_7 *)0x0);
            var_9(pStmt);
            var_2 = var_19(pStmt);
            *pRC = var_2;
            var_23(pStmt,2);
            var_24(var_5);
          }
          else {
            var_24(var_5);
            *pRC = var_2;
          }
        }
        else {
          var_24(var_5);
          *pRC = var_7;
        }
      }
      else {
        var_24(var_5);
        *pRC = var_7;
      }
    }
  }
  if (var_25 != *(long *)(var_1 + 0x28)) {
                    /* WARNING: Subroutine does not return */
    var_26();
  }
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (sized_type_specifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (array_declarator declarator: (identifier) size: (number_literal))) (declaration type: (sized_type_specifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (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: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (number_literal)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (number_literal)))) consequence: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (pointer_expression argument: (identifier)) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) 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: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (number_literal) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier))))))))))) right: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))))) right: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)) (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal))) right: (field_expression argument: (identifier) field: (field_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (binary_expression left: (identifier) right: (identifier))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (call_expression function: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (identifier))) arguments: (argument_list (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (identifier))))) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier))) right: (number_literal)))))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) right: (parenthesized_expression (comma_expression left: (assignment_expression left: (identifier) right: (number_literal)) right: (binary_expression left: (binary_expression left: (parenthesized_expression (identifier)) right: (identifier)) right: (pointer_expression argument: (identifier))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (pointer_expression argument: (identifier))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) 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 (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal))) 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))))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal))) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (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: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (binary_expression left: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (identifier)) right: (cast_expression type: (type_descriptor type: (sized_type_specifier)) value: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))) (pointer_expression argument: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (pointer_expression argument: (identifier)) (number_literal))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal) (binary_expression left: (identifier) right: (identifier)) (identifier) (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (identifier) arguments: (argument_list (identifier))))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (number_literal)))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))))))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (identifier)) right: (identifier))))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))))) (return_statement))))

void MASKED(int *param_1,long param_2,long param_3,long param_4,int param_5)

{
  int iVar1;
  int iVar2;
  uint uVar3;
  int iVar4;
  int iVar5;
  uint *__s;
  long lVar6;
  uint *puVar7;
  uint uVar8;
  uint uVar9;
  int iVar10;
  long lVar11;
  long lVar12;
  long in_FS_OFFSET;
  undefined8 local_50;
  undefined1 local_48 [8];
  long local_40;
  
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  if (*param_1 == 0) {
    iVar4 = *(int *)(param_2 + 0x30);
    iVar1 = iVar4 + 2;
    lVar11 = (long)iVar1;
    __s = (uint *)FUN_0014bbac(lVar11 * 0xe,0);
    if (__s == (uint *)0x0) {
      *param_1 = 7;
    }
    else {
      iVar2 = FUN_001bfdf9(param_2,0x16,&local_50,0);
      if (iVar2 == 0) {
        FUN_0015b4b1(local_50,1,0);
        iVar2 = FUN_001ab5c0(local_50);
        if (iVar2 == 100) {
          iVar5 = FUN_00156893(local_50,0);
          lVar6 = FUN_00156af8(local_50,0);
          iVar2 = iVar5;
          if ((((iVar5 != 0) && (iVar2 = 0, -1 < *(char *)(lVar6 + -1 + (long)iVar5))) &&
              (0 < iVar1)) && (0 < iVar5)) {
            lVar12 = 1;
            iVar10 = 0;
            do {
              iVar2 = FUN_00131bd6(iVar10 + lVar6,local_48);
              iVar10 = iVar10 + iVar2;
              __s[lVar12 + -1] = local_48._0_4_;
              iVar2 = (int)lVar12;
              lVar12 = lVar12 + 1;
            } while (iVar2 < iVar1 && iVar10 < iVar5);
          }
          if (iVar2 < iVar1) {
            puVar7 = __s + iVar2;
            do {
              *puVar7 = 0;
              puVar7 = puVar7 + 1;
            } while (puVar7 != __s + (ulong)(uint)((iVar4 + 1) - iVar2) + (long)iVar2 + 1);
          }
        }
        else {
          memset(__s,0,lVar11 * 4);
        }
        iVar2 = FUN_00190b14(local_50);
        if (iVar2 == 0) {
          if ((-1 < param_5) || (uVar3 = 0, (uint)-param_5 <= *__s)) {
            uVar3 = param_5 + *__s;
          }
          *__s = uVar3;
          lVar6 = 0;
          if (-1 < *(int *)(param_2 + 0x30)) {
            do {
              uVar9 = __s[lVar6 + 1] + *(int *)(param_3 + lVar6 * 4);
              uVar3 = *(uint *)(param_4 + lVar6 * 4);
              uVar8 = uVar9 - uVar3;
              if (uVar9 < uVar3) {
                uVar8 = 0;
              }
              __s[lVar6 + 1] = uVar8;
              lVar6 = lVar6 + 1;
            } while ((int)lVar6 <= *(int *)(param_2 + 0x30));
          }
          iVar2 = 0;
          if (0 < iVar1) {
            iVar2 = 0;
            puVar7 = __s;
            do {
              iVar1 = FUN_00131bae((long)iVar2 + (long)(__s + lVar11),*puVar7);
              iVar2 = iVar2 + iVar1;
              puVar7 = puVar7 + 1;
            } while (__s + (ulong)(iVar4 + 1) + 1 != puVar7);
          }
          iVar4 = FUN_001bfdf9(param_2,0x17,&local_50,0);
          if (iVar4 == 0) {
            FUN_0015b4b1(local_50,1,0);
            FUN_0015b334(local_50,2,__s + lVar11,iVar2,0);
            FUN_001ab5c0(local_50);
            iVar4 = FUN_00190b14(local_50);
            *param_1 = iVar4;
            FUN_0015b4c2(local_50,2);
            FUN_00141303(__s);
          }
          else {
            FUN_00141303(__s);
            *param_1 = iVar4;
          }
        }
        else {
          FUN_00141303(__s);
          *param_1 = iVar2;
        }
      }
      else {
        FUN_00141303(__s);
        *param_1 = iVar2;
      }
    }
  }
  if (local_40 != *(long *)(in_FS_OFFSET + 0x28)) {
                    /* WARNING: Subroutine does not return */
    __stack_chk_fail();
  }
  return;
}

