
void fts5WriteAppendTerm(Fts5Index *p,Fts5SegWriter *pWriter,int nTerm,u8 *pTerm)

{
  u8 uVar1;
  undefined *puVar2;
  int iVar3;
  u8 *puVar4;
  int iVar5;
  u8 *puVar6;
  int iVar7;
  int iVar8;
  uint uVar9;
  code *pcVar10;
  u8 *puVar11;
  int *piVar12;
  code *pcVar13;
  Fts5Buffer *pFVar14;
  
  iVar5 = (pWriter->writer).buf.n;
  iVar7 = (pWriter->writer).pgidx.n;
  iVar8 = (pWriter->writer).term.n;
  if (nTerm < iVar8) {
    iVar8 = nTerm;
  }
  if (iVar5 + iVar7 + nTerm + 2 < p->pConfig->pgsz) goto LAB_00102428;
  if (iVar5 < 5) {
    if ((uint)(pWriter->writer).buf.nSpace < (uint)(nTerm + 0x14 + iVar5)) goto LAB_00102674;
  }
  else {
    fts5WriteFlushLeaf(p,pWriter);
    if (p->rc != 0) {
      return;
    }
    iVar5 = (pWriter->writer).buf.n;
    if ((uint)(pWriter->writer).buf.nSpace < (uint)(nTerm + 0x14 + iVar5)) {
LAB_00102674:
      (*(code *)(PTR_LAB_0015b714 + 0x62a4))
                (&p->rc,&(pWriter->writer).buf,&(pWriter->writer).buf.nSpace);
      iVar7 = (pWriter->writer).pgidx.n;
      iVar5 = (pWriter->writer).buf.n;
      goto LAB_00102428;
    }
  }
  iVar7 = (pWriter->writer).pgidx.n;
LAB_00102428:
  uVar9 = iVar5 - (pWriter->writer).iPrevPgidx;
  if (((int)uVar9 < 0) || (0x7f < uVar9)) {
    iVar5 = (*(code *)(PTR_LAB_0015b6d8 + 0x54))();
  }
  else {
    (pWriter->writer).pgidx.p[iVar7] = (u8)uVar9;
    iVar5 = 1;
  }
  iVar7 = (pWriter->writer).pgidx.n;
  uVar1 = pWriter->bFirstTermInPage;
  (pWriter->writer).iPrevPgidx = (pWriter->writer).buf.n;
  (pWriter->writer).pgidx.n = iVar7 + iVar5;
  puVar11 = pTerm;
  iVar5 = nTerm;
  if (uVar1 == '\0') {
    puVar6 = (pWriter->writer).term.p;
    if (iVar8 < 1) {
      iVar8 = 0;
      iVar7 = 0;
    }
    else if (*pTerm == *puVar6) {
      iVar5 = 0;
      puVar4 = pTerm + 1;
      do {
        puVar11 = puVar4;
        iVar5 = iVar5 + 1;
        iVar7 = iVar8;
        if (iVar8 == iVar5) break;
        puVar4 = puVar11 + 1;
        iVar7 = iVar5;
      } while (puVar6[iVar5] == *puVar11);
      iVar8 = iVar7 >> 0x1f;
      iVar5 = nTerm - iVar7;
    }
    else {
      iVar8 = 0;
      iVar7 = 0;
    }
    pcVar13 = (code *)(PTR_LAB_0015b714 + 0x7700);
    (*pcVar13)(&p->rc,&(pWriter->writer).buf,iVar8,iVar7);
    pcVar10 = (code *)(PTR_LAB_0015b714 + 0x63a0);
  }
  else {
    if ((pWriter->writer).pgno == 1) {
      pcVar10 = (code *)(PTR_LAB_0015b714 + 0x63a0);
    }
    else {
      iVar7 = nTerm;
      if ((pWriter->writer).term.n != 0) {
        puVar6 = (pWriter->writer).term.p;
        if ((iVar8 < 1) || (*pTerm != *puVar6)) {
          iVar7 = 1;
        }
        else {
          iVar3 = 2;
          do {
            iVar7 = iVar3;
            if (iVar8 + 1 == iVar7) {
              iVar8 = pWriter->iBtPage;
              goto LAB_001025a4;
            }
            iVar3 = iVar7 + 1;
          } while (pTerm[iVar7 + -1] == puVar6[iVar7 + -1]);
        }
      }
      iVar8 = pWriter->iBtPage;
LAB_001025a4:
      if (iVar8 != 0) {
        fts5WriteFlushBtree(p,pWriter);
      }
      puVar2 = PTR_LAB_0015b714;
      if (p->rc != 0) {
        return;
      }
      (pWriter->btterm).n = 0;
      pcVar10 = (code *)(puVar2 + 0x63a0);
      (*pcVar10)(&p->rc,&pWriter->btterm,iVar7,pTerm);
      pWriter->iBtPage = (pWriter->writer).pgno;
      if (p->rc != 0) {
        return;
      }
    }
    pcVar13 = (code *)(PTR_LAB_0015b714 + 0x7700);
  }
  piVar12 = &p->rc;
  pFVar14 = &(pWriter->writer).buf;
  (*pcVar13)(piVar12,pFVar14,iVar5 >> 0x1f,iVar5);
  (*pcVar10)(piVar12,pFVar14,iVar5,puVar11);
  (pWriter->writer).term.n = 0;
  (*pcVar10)(piVar12,&(pWriter->writer).term,nTerm,pTerm);
  iVar8 = (pWriter->writer).pgno;
  pWriter->bFirstRowidInDoclist = '\x01';
  pWriter->bFirstRowidInPage = '\0';
  pWriter->bFirstTermInPage = '\0';
  pWriter->aDlidx->pgno = iVar8;
  return;
}



void FUN_00102384(int *param_1,int param_2,int param_3,char *param_4)

{
  undefined *puVar1;
  int iVar2;
  char *pcVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  uint uVar7;
  code *pcVar8;
  char *pcVar9;
  code *pcVar10;
  
  iVar4 = *(int *)(param_2 + 0x10);
  iVar5 = *(int *)(param_2 + 0x1c);
  iVar6 = *(int *)(param_2 + 0x28);
  if (param_3 < *(int *)(param_2 + 0x28)) {
    iVar6 = param_3;
  }
  if (iVar4 + iVar5 + param_3 + 2 < *(int *)(*param_1 + 0x44)) goto LAB_00102428;
  if (iVar4 < 5) {
    if (*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)) goto LAB_00102674;
  }
  else {
    FUN_001019d0();
    if (param_1[9] != 0) {
      return;
    }
    iVar4 = *(int *)(param_2 + 0x10);
    if (*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)) {
LAB_00102674:
      (*(code *)(PTR_LAB_0015b714 + 0x62a4))(param_1 + 9,param_2 + 0xc,param_2 + 0x14);
      iVar5 = *(int *)(param_2 + 0x1c);
      iVar4 = *(int *)(param_2 + 0x10);
      goto LAB_00102428;
    }
  }
  iVar5 = *(int *)(param_2 + 0x1c);
LAB_00102428:
  uVar7 = iVar4 - *(int *)(param_2 + 8);
  if (((int)uVar7 < 0) || (0x7f < uVar7)) {
    iVar4 = (*(code *)(PTR_LAB_0015b6d8 + 0x54))();
  }
  else {
    *(char *)(*(int *)(param_2 + 0x18) + iVar5) = (char)uVar7;
    iVar4 = 1;
  }
  *(undefined4 *)(param_2 + 8) = *(undefined4 *)(param_2 + 0x10);
  *(int *)(param_2 + 0x1c) = *(int *)(param_2 + 0x1c) + iVar4;
  pcVar9 = param_4;
  iVar4 = param_3;
  if (*(char *)(param_2 + 0x3a) == '\0') {
    if (iVar6 < 1) {
      iVar6 = 0;
      iVar5 = 0;
    }
    else if (*param_4 == **(char **)(param_2 + 0x24)) {
      iVar4 = 0;
      pcVar3 = param_4 + 1;
      do {
        pcVar9 = pcVar3;
        iVar4 = iVar4 + 1;
        iVar5 = iVar6;
        if (iVar6 == iVar4) break;
        pcVar3 = pcVar9 + 1;
        iVar5 = iVar4;
      } while ((*(char **)(param_2 + 0x24))[iVar4] == *pcVar9);
      iVar6 = iVar5 >> 0x1f;
      iVar4 = param_3 - iVar5;
    }
    else {
      iVar6 = 0;
      iVar5 = 0;
    }
    pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700);
    (*pcVar10)(param_1 + 9,param_2 + 0xc,iVar6,iVar5);
    pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);
  }
  else {
    if (*(int *)(param_2 + 4) == 1) {
      pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);
    }
    else {
      iVar5 = param_3;
      if (*(int *)(param_2 + 0x28) != 0) {
        if ((iVar6 < 1) || (*param_4 != **(char **)(param_2 + 0x24))) {
          iVar5 = 1;
        }
        else {
          iVar2 = 2;
          do {
            iVar5 = iVar2;
            if (iVar6 + 1 == iVar5) {
              iVar6 = *(int *)(param_2 + 0x58);
              goto LAB_001025a4;
            }
            iVar2 = iVar5 + 1;
          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);
        }
      }
      iVar6 = *(int *)(param_2 + 0x58);
LAB_001025a4:
      if (iVar6 != 0) {
        FUN_00102158(param_1,param_2);
      }
      puVar1 = PTR_LAB_0015b714;
      if (param_1[9] != 0) {
        return;
      }
      *(undefined4 *)(param_2 + 0x50) = 0;
      pcVar8 = (code *)(puVar1 + 0x63a0);
      (*pcVar8)(param_1 + 9,param_2 + 0x4c,iVar5,param_4);
      *(undefined4 *)(param_2 + 0x58) = *(undefined4 *)(param_2 + 4);
      if (param_1[9] != 0) {
        return;
      }
    }
    pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700);
  }
  param_1 = param_1 + 9;
  (*pcVar10)(param_1,param_2 + 0xc,iVar4 >> 0x1f,iVar4);
  (*pcVar8)(param_1,param_2 + 0xc,iVar4,pcVar9);
  *(undefined4 *)(param_2 + 0x28) = 0;
  (*pcVar8)(param_1,param_2 + 0x24,param_3,param_4);
  *(undefined2 *)(param_2 + 0x38) = 0x100;
  *(undefined1 *)(param_2 + 0x3a) = 0;
  **(undefined4 **)(param_2 + 0x48) = *(undefined4 *)(param_2 + 4);
  return;
}


lui gp,0x6
addiu gp,gp,0x122c
addu gp,gp,t9
addiu sp,sp,-0x40
sw s5,0x2c(sp)
or s5,a0,zero
sw s4,0x28(sp)
or s4,a2,zero
sw s3,0x24(sp)
or s3,a3,zero
sw s1,0x1c(sp)
sw s0,0x18(sp)
or s0,a1,zero
sw gp,0x10(sp)
sw ra,0x3c(sp)
sw s8,0x38(sp)
sw s7,0x34(sp)
sw s6,0x30(sp)
sw s2,0x20(sp)
lw v1,0x10(a1)
lw a2,0x1c(a1)
lw a3,0x28(a1)
lw t0,0x0(a0)
addu v0,v1,a2
slt s1,s4,a3
addu v0,v0,s4
movn a3,s4,s1
lw t0,0x44(t0)
addiu v0,v0,0x2
slt v0,v0,t0
bne v0,zero,0x00102428
_or s1,a3,zero
slti v0,v1,0x5
beq v0,zero,0x0010263c
_addiu a3,s4,0x14
lw v0,0x14(s0)
addu a3,a3,v1
sltu v0,v0,a3
bne v0,zero,0x00102674
_lw t9,-0x7e9c(gp)
lw a2,0x1c(s0)
lw a3,0x8(s0)
lw a0,0x18(s0)
subu a3,v1,a3
addu a0,a0,a2
sra a2,a3,0x1f
beq a2,zero,0x00102628
_sltiu v0,a3,0x80
lw t9,-0x7ed8(gp)
addiu t9,t9,0x54
jalr t9
_nop
lw gp,0x10(sp)
lw v1,0x1c(s0)
lw a1,0x10(s0)
lbu a0,0x3a(s0)
addu v1,v1,v0
sw a1,0x8(s0)
bne a0,zero,0x00102584
_sw v1,0x1c(s0)
blez s1,0x001026f0
_lw a0,0x24(s0)
lbu v1,0x0(s3)
lbu v0,0x0(a0)
bne v1,v0,0x00102704
_addiu v1,s3,0x1
b 0x001024a8
_or a3,zero,zero
addu v0,a0,a3
lbu a1,-0x1(v1)
lbu v0,0x0(v0)
bne v0,a1,0x001024c0
_sra a2,a3,0x1f
addiu a3,a3,0x1
or s2,v1,zero
bne s1,a3,0x00102494
_addiu v1,v1,0x1
or a3,s1,zero
sra a2,a3,0x1f
subu s7,s4,a3
lw s6,-0x7e9c(gp)
addiu s5,s5,0x24
addiu s8,s0,0xc
or a0,s5,zero
addiu s6,s6,0x7700
or t9,s6,zero
jalr t9
_or a1,s8,zero
lw gp,0x10(sp)
lw s1,-0x7e9c(gp)
addiu s1,s1,0x63a0
sra a2,s7,0x1f
or a3,s7,zero
or a1,s8,zero
or t9,s6,zero
jalr t9
_or a0,s5,zero
or a3,s2,zero
or a2,s7,zero
or a1,s8,zero
or t9,s1,zero
jalr t9
_or a0,s5,zero
addiu a1,s0,0x24
or a0,s5,zero
sw zero,0x28(s0)
or a3,s3,zero
or t9,s1,zero
jalr t9
_or a2,s4,zero
li a0,0x100
lw v0,0x48(s0)
lw v1,0x4(s0)
sh a0,0x38(s0)
sb zero,0x3a(s0)
sw v1,0x0(v0)
lw ra,0x3c(sp)
lw s8,0x38(sp)
lw s7,0x34(sp)
lw s6,0x30(sp)
lw s5,0x2c(sp)
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x40
lw v1,0x4(s0)
li v0,0x1
beq v1,v0,0x001026e4
_addiu s6,s5,0x24
lw v0,0x28(s0)
bne v0,zero,0x00102698
_or s2,s4,zero
lw v0,0x58(s0)
beq v0,zero,0x001025c0
_lw t9,-0x7ee0(gp)
or a1,s0,zero
addiu t9,t9,0x2158
bal 0x00102158
_or a0,s5,zero
lw gp,0x10(sp)
lw v0,0x24(s5)
bne v0,zero,0x00102558
_lw ra,0x3c(sp)
lw s1,-0x7e9c(gp)
addiu s6,s5,0x24
addiu a1,s0,0x4c
sw zero,0x50(s0)
or a3,s3,zero
addiu s1,s1,0x63a0
or a2,s2,zero
or t9,s1,zero
jalr t9
_or a0,s6,zero
lw v0,0x4(s0)
lw gp,0x10(sp)
sw v0,0x58(s0)
lw v0,0x24(s5)
bne v0,zero,0x00102558
_lw ra,0x3c(sp)
or s5,s6,zero
lw s6,-0x7e9c(gp)
addiu s8,s0,0xc
or s2,s3,zero
or s7,s4,zero
b 0x001024f0
_addiu s6,s6,0x7700
beq v0,zero,0x00102448
_lw t9,-0x7ed8(gp)
sb a3,0x0(a0)
b 0x00102458
_li v0,0x1
lw t9,-0x7ee0(gp)
addiu t9,t9,0x19d0
bal 0x001019d0
_nop
lw v0,0x24(s5)
bne v0,zero,0x00102554
_lw gp,0x10(sp)
lw v1,0x10(s0)
addiu a3,s4,0x14
lw v0,0x14(s0)
addu a3,a3,v1
sltu v0,v0,a3
beq v0,zero,0x00102424
_lw t9,-0x7e9c(gp)
addiu a2,s0,0x14
addiu a1,s0,0xc
addiu t9,t9,0x62a4
jalr t9
_addiu a0,s5,0x24
lw gp,0x10(sp)
lw a2,0x1c(s0)
b 0x00102428
_lw v1,0x10(s0)
blez s1,0x00102718
_lw a1,0x24(s0)
lbu v1,0x0(s3)
lbu v0,0x0(a1)
bne v1,v0,0x00102718
_li v0,0x2
b 0x001026d0
_addiu s1,s1,0x1
addiu v0,v0,0x1
lbu v1,-0x1(v1)
addu a0,s3,v0
lbu a0,-0x2(a0)
bne a0,v1,0x001025a0
_nop
addu v1,a1,v0
bne s1,v0,0x001026b8
_or s2,v0,zero
b 0x001025a4
_lw v0,0x58(s0)
lw s1,-0x7e9c(gp)
b 0x0010260c
_addiu s1,s1,0x63a0
or s2,s3,zero
or s7,s4,zero
or a2,zero,zero
b 0x001024c4
_or a3,zero,zero
or a2,zero,zero
or a3,zero,zero
or s2,s3,zero
b 0x001024c4
_or s7,s4,zero
b 0x001025a0
_li s2,0x1
(translation_unit "void FUN_00102384(int *param_1,int param_2,int param_3,char *param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  uint uVar7;\n  code *pcVar8;\n  char *pcVar9;\n  code *pcVar10;\n  \n  iVar4 = *(int *)(param_2 + 0x10);\n  iVar5 = *(int *)(param_2 + 0x1c);\n  iVar6 = *(int *)(param_2 + 0x28);\n  if (param_3 < *(int *)(param_2 + 0x28)) {\n    iVar6 = param_3;\n  }\n  if (iVar4 + iVar5 + param_3 + 2 < *(int *)(*param_1 + 0x44)) goto LAB_00102428;\n  if (iVar4 < 5) {\n    if (*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)) goto LAB_00102674;\n  }\n  else {\n    FUN_001019d0();\n    if (param_1[9] != 0) {\n      return;\n    }\n    iVar4 = *(int *)(param_2 + 0x10);\n    if (*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)) {\nLAB_00102674:\n      (*(code *)(PTR_LAB_0015b714 + 0x62a4))(param_1 + 9,param_2 + 0xc,param_2 + 0x14);\n      iVar5 = *(int *)(param_2 + 0x1c);\n      iVar4 = *(int *)(param_2 + 0x10);\n      goto LAB_00102428;\n    }\n  }\n  iVar5 = *(int *)(param_2 + 0x1c);\nLAB_00102428:\n  uVar7 = iVar4 - *(int *)(param_2 + 8);\n  if (((int)uVar7 < 0) || (0x7f < uVar7)) {\n    iVar4 = (*(code *)(PTR_LAB_0015b6d8 + 0x54))();\n  }\n  else {\n    *(char *)(*(int *)(param_2 + 0x18) + iVar5) = (char)uVar7;\n    iVar4 = 1;\n  }\n  *(undefined4 *)(param_2 + 8) = *(undefined4 *)(param_2 + 0x10);\n  *(int *)(param_2 + 0x1c) = *(int *)(param_2 + 0x1c) + iVar4;\n  pcVar9 = param_4;\n  iVar4 = param_3;\n  if (*(char *)(param_2 + 0x3a) == '\0') {\n    if (iVar6 < 1) {\n      iVar6 = 0;\n      iVar5 = 0;\n    }\n    else if (*param_4 == **(char **)(param_2 + 0x24)) {\n      iVar4 = 0;\n      pcVar3 = param_4 + 1;\n      do {\n        pcVar9 = pcVar3;\n        iVar4 = iVar4 + 1;\n        iVar5 = iVar6;\n        if (iVar6 == iVar4) break;\n        pcVar3 = pcVar9 + 1;\n        iVar5 = iVar4;\n      } while ((*(char **)(param_2 + 0x24))[iVar4] == *pcVar9);\n      iVar6 = iVar5 >> 0x1f;\n      iVar4 = param_3 - iVar5;\n    }\n    else {\n      iVar6 = 0;\n      iVar5 = 0;\n    }\n    pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700);\n    (*pcVar10)(param_1 + 9,param_2 + 0xc,iVar6,iVar5);\n    pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n  }\n  else {\n    if (*(int *)(param_2 + 4) == 1) {\n      pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n    }\n    else {\n      iVar5 = param_3;\n      if (*(int *)(param_2 + 0x28) != 0) {\n        if ((iVar6 < 1) || (*param_4 != **(char **)(param_2 + 0x24))) {\n          iVar5 = 1;\n        }\n        else {\n          iVar2 = 2;\n          do {\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);\n        }\n      }\n      iVar6 = *(int *)(param_2 + 0x58);\nLAB_001025a4:\n      if (iVar6 != 0) {\n        FUN_00102158(param_1,param_2);\n      }\n      puVar1 = PTR_LAB_0015b714;\n      if (param_1[9] != 0) {\n        return;\n      }\n      *(undefined4 *)(param_2 + 0x50) = 0;\n      pcVar8 = (code *)(puVar1 + 0x63a0);\n      (*pcVar8)(param_1 + 9,param_2 + 0x4c,iVar5,param_4);\n      *(undefined4 *)(param_2 + 0x58) = *(undefined4 *)(param_2 + 4);\n      if (param_1[9] != 0) {\n        return;\n      }\n    }\n    pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700);\n  }\n  param_1 = param_1 + 9;\n  (*pcVar10)(param_1,param_2 + 0xc,iVar4 >> 0x1f,iVar4);\n  (*pcVar8)(param_1,param_2 + 0xc,iVar4,pcVar9);\n  *(undefined4 *)(param_2 + 0x28) = 0;\n  (*pcVar8)(param_1,param_2 + 0x24,param_3,param_4);\n  *(undefined2 *)(param_2 + 0x38) = 0x100;\n  *(undefined1 *)(param_2 + 0x3a) = 0;\n  **(undefined4 **)(param_2 + 0x48) = *(undefined4 *)(param_2 + 4);\n  return;\n}\n\n" (function_definition "void FUN_00102384(int *param_1,int param_2,int param_3,char *param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  uint uVar7;\n  code *pcVar8;\n  char *pcVar9;\n  code *pcVar10;\n  \n  iVar4 = *(int *)(param_2 + 0x10);\n  iVar5 = *(int *)(param_2 + 0x1c);\n  iVar6 = *(int *)(param_2 + 0x28);\n  if (param_3 < *(int *)(param_2 + 0x28)) {\n    iVar6 = param_3;\n  }\n  if (iVar4 + iVar5 + param_3 + 2 < *(int *)(*param_1 + 0x44)) goto LAB_00102428;\n  if (iVar4 < 5) {\n    if (*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)) goto LAB_00102674;\n  }\n  else {\n    FUN_001019d0();\n    if (param_1[9] != 0) {\n      return;\n    }\n    iVar4 = *(int *)(param_2 + 0x10);\n    if (*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)) {\nLAB_00102674:\n      (*(code *)(PTR_LAB_0015b714 + 0x62a4))(param_1 + 9,param_2 + 0xc,param_2 + 0x14);\n      iVar5 = *(int *)(param_2 + 0x1c);\n      iVar4 = *(int *)(param_2 + 0x10);\n      goto LAB_00102428;\n    }\n  }\n  iVar5 = *(int *)(param_2 + 0x1c);\nLAB_00102428:\n  uVar7 = iVar4 - *(int *)(param_2 + 8);\n  if (((int)uVar7 < 0) || (0x7f < uVar7)) {\n    iVar4 = (*(code *)(PTR_LAB_0015b6d8 + 0x54))();\n  }\n  else {\n    *(char *)(*(int *)(param_2 + 0x18) + iVar5) = (char)uVar7;\n    iVar4 = 1;\n  }\n  *(undefined4 *)(param_2 + 8) = *(undefined4 *)(param_2 + 0x10);\n  *(int *)(param_2 + 0x1c) = *(int *)(param_2 + 0x1c) + iVar4;\n  pcVar9 = param_4;\n  iVar4 = param_3;\n  if (*(char *)(param_2 + 0x3a) == '\0') {\n    if (iVar6 < 1) {\n      iVar6 = 0;\n      iVar5 = 0;\n    }\n    else if (*param_4 == **(char **)(param_2 + 0x24)) {\n      iVar4 = 0;\n      pcVar3 = param_4 + 1;\n      do {\n        pcVar9 = pcVar3;\n        iVar4 = iVar4 + 1;\n        iVar5 = iVar6;\n        if (iVar6 == iVar4) break;\n        pcVar3 = pcVar9 + 1;\n        iVar5 = iVar4;\n      } while ((*(char **)(param_2 + 0x24))[iVar4] == *pcVar9);\n      iVar6 = iVar5 >> 0x1f;\n      iVar4 = param_3 - iVar5;\n    }\n    else {\n      iVar6 = 0;\n      iVar5 = 0;\n    }\n    pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700);\n    (*pcVar10)(param_1 + 9,param_2 + 0xc,iVar6,iVar5);\n    pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n  }\n  else {\n    if (*(int *)(param_2 + 4) == 1) {\n      pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n    }\n    else {\n      iVar5 = param_3;\n      if (*(int *)(param_2 + 0x28) != 0) {\n        if ((iVar6 < 1) || (*param_4 != **(char **)(param_2 + 0x24))) {\n          iVar5 = 1;\n        }\n        else {\n          iVar2 = 2;\n          do {\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);\n        }\n      }\n      iVar6 = *(int *)(param_2 + 0x58);\nLAB_001025a4:\n      if (iVar6 != 0) {\n        FUN_00102158(param_1,param_2);\n      }\n      puVar1 = PTR_LAB_0015b714;\n      if (param_1[9] != 0) {\n        return;\n      }\n      *(undefined4 *)(param_2 + 0x50) = 0;\n      pcVar8 = (code *)(puVar1 + 0x63a0);\n      (*pcVar8)(param_1 + 9,param_2 + 0x4c,iVar5,param_4);\n      *(undefined4 *)(param_2 + 0x58) = *(undefined4 *)(param_2 + 4);\n      if (param_1[9] != 0) {\n        return;\n      }\n    }\n    pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700);\n  }\n  param_1 = param_1 + 9;\n  (*pcVar10)(param_1,param_2 + 0xc,iVar4 >> 0x1f,iVar4);\n  (*pcVar8)(param_1,param_2 + 0xc,iVar4,pcVar9);\n  *(undefined4 *)(param_2 + 0x28) = 0;\n  (*pcVar8)(param_1,param_2 + 0x24,param_3,param_4);\n  *(undefined2 *)(param_2 + 0x38) = 0x100;\n  *(undefined1 *)(param_2 + 0x3a) = 0;\n  **(undefined4 **)(param_2 + 0x48) = *(undefined4 *)(param_2 + 4);\n  return;\n}" primitive_type (function_declarator "FUN_00102384(int *param_1,int param_2,int param_3,char *param_4)" identifier (parameter_list "(int *param_1,int param_2,int param_3,char *param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "char *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  uint uVar7;\n  code *pcVar8;\n  char *pcVar9;\n  code *pcVar10;\n  \n  iVar4 = *(int *)(param_2 + 0x10);\n  iVar5 = *(int *)(param_2 + 0x1c);\n  iVar6 = *(int *)(param_2 + 0x28);\n  if (param_3 < *(int *)(param_2 + 0x28)) {\n    iVar6 = param_3;\n  }\n  if (iVar4 + iVar5 + param_3 + 2 < *(int *)(*param_1 + 0x44)) goto LAB_00102428;\n  if (iVar4 < 5) {\n    if (*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)) goto LAB_00102674;\n  }\n  else {\n    FUN_001019d0();\n    if (param_1[9] != 0) {\n      return;\n    }\n    iVar4 = *(int *)(param_2 + 0x10);\n    if (*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)) {\nLAB_00102674:\n      (*(code *)(PTR_LAB_0015b714 + 0x62a4))(param_1 + 9,param_2 + 0xc,param_2 + 0x14);\n      iVar5 = *(int *)(param_2 + 0x1c);\n      iVar4 = *(int *)(param_2 + 0x10);\n      goto LAB_00102428;\n    }\n  }\n  iVar5 = *(int *)(param_2 + 0x1c);\nLAB_00102428:\n  uVar7 = iVar4 - *(int *)(param_2 + 8);\n  if (((int)uVar7 < 0) || (0x7f < uVar7)) {\n    iVar4 = (*(code *)(PTR_LAB_0015b6d8 + 0x54))();\n  }\n  else {\n    *(char *)(*(int *)(param_2 + 0x18) + iVar5) = (char)uVar7;\n    iVar4 = 1;\n  }\n  *(undefined4 *)(param_2 + 8) = *(undefined4 *)(param_2 + 0x10);\n  *(int *)(param_2 + 0x1c) = *(int *)(param_2 + 0x1c) + iVar4;\n  pcVar9 = param_4;\n  iVar4 = param_3;\n  if (*(char *)(param_2 + 0x3a) == '\0') {\n    if (iVar6 < 1) {\n      iVar6 = 0;\n      iVar5 = 0;\n    }\n    else if (*param_4 == **(char **)(param_2 + 0x24)) {\n      iVar4 = 0;\n      pcVar3 = param_4 + 1;\n      do {\n        pcVar9 = pcVar3;\n        iVar4 = iVar4 + 1;\n        iVar5 = iVar6;\n        if (iVar6 == iVar4) break;\n        pcVar3 = pcVar9 + 1;\n        iVar5 = iVar4;\n      } while ((*(char **)(param_2 + 0x24))[iVar4] == *pcVar9);\n      iVar6 = iVar5 >> 0x1f;\n      iVar4 = param_3 - iVar5;\n    }\n    else {\n      iVar6 = 0;\n      iVar5 = 0;\n    }\n    pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700);\n    (*pcVar10)(param_1 + 9,param_2 + 0xc,iVar6,iVar5);\n    pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n  }\n  else {\n    if (*(int *)(param_2 + 4) == 1) {\n      pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n    }\n    else {\n      iVar5 = param_3;\n      if (*(int *)(param_2 + 0x28) != 0) {\n        if ((iVar6 < 1) || (*param_4 != **(char **)(param_2 + 0x24))) {\n          iVar5 = 1;\n        }\n        else {\n          iVar2 = 2;\n          do {\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);\n        }\n      }\n      iVar6 = *(int *)(param_2 + 0x58);\nLAB_001025a4:\n      if (iVar6 != 0) {\n        FUN_00102158(param_1,param_2);\n      }\n      puVar1 = PTR_LAB_0015b714;\n      if (param_1[9] != 0) {\n        return;\n      }\n      *(undefined4 *)(param_2 + 0x50) = 0;\n      pcVar8 = (code *)(puVar1 + 0x63a0);\n      (*pcVar8)(param_1 + 9,param_2 + 0x4c,iVar5,param_4);\n      *(undefined4 *)(param_2 + 0x58) = *(undefined4 *)(param_2 + 4);\n      if (param_1[9] != 0) {\n        return;\n      }\n    }\n    pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700);\n  }\n  param_1 = param_1 + 9;\n  (*pcVar10)(param_1,param_2 + 0xc,iVar4 >> 0x1f,iVar4);\n  (*pcVar8)(param_1,param_2 + 0xc,iVar4,pcVar9);\n  *(undefined4 *)(param_2 + 0x28) = 0;\n  (*pcVar8)(param_1,param_2 + 0x24,param_3,param_4);\n  *(undefined2 *)(param_2 + 0x38) = 0x100;\n  *(undefined1 *)(param_2 + 0x3a) = 0;\n  **(undefined4 **)(param_2 + 0x48) = *(undefined4 *)(param_2 + 4);\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "code *pcVar8;" type_identifier (pointer_declarator "*pcVar8" * identifier) ;) (declaration "char *pcVar9;" primitive_type (pointer_declarator "*pcVar9" * identifier) ;) (declaration "code *pcVar10;" type_identifier (pointer_declarator "*pcVar10" * identifier) ;) (expression_statement "iVar4 = *(int *)(param_2 + 0x10);" (assignment_expression "iVar4 = *(int *)(param_2 + 0x10)" identifier = (pointer_expression "*(int *)(param_2 + 0x10)" * (cast_expression "(int *)(param_2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "iVar5 = *(int *)(param_2 + 0x1c);" (assignment_expression "iVar5 = *(int *)(param_2 + 0x1c)" identifier = (pointer_expression "*(int *)(param_2 + 0x1c)" * (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = *(int *)(param_2 + 0x28);" (assignment_expression "iVar6 = *(int *)(param_2 + 0x28)" identifier = (pointer_expression "*(int *)(param_2 + 0x28)" * (cast_expression "(int *)(param_2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (param_3 < *(int *)(param_2 + 0x28)) {\n    iVar6 = param_3;\n  }" if (parenthesized_expression "(param_3 < *(int *)(param_2 + 0x28))" ( (binary_expression "param_3 < *(int *)(param_2 + 0x28)" identifier < (pointer_expression "*(int *)(param_2 + 0x28)" * (cast_expression "(int *)(param_2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    iVar6 = param_3;\n  }" { (expression_statement "iVar6 = param_3;" (assignment_expression "iVar6 = param_3" identifier = identifier) ;) })) (if_statement "if (iVar4 + iVar5 + param_3 + 2 < *(int *)(*param_1 + 0x44)) goto LAB_00102428;" if (parenthesized_expression "(iVar4 + iVar5 + param_3 + 2 < *(int *)(*param_1 + 0x44))" ( (binary_expression "iVar4 + iVar5 + param_3 + 2 < *(int *)(*param_1 + 0x44)" (binary_expression "iVar4 + iVar5 + param_3 + 2" (binary_expression "iVar4 + iVar5 + param_3" (binary_expression "iVar4 + iVar5" identifier + identifier) + identifier) + number_literal) < (pointer_expression "*(int *)(*param_1 + 0x44)" * (cast_expression "(int *)(*param_1 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x44)" ( (binary_expression "*param_1 + 0x44" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (goto_statement "goto LAB_00102428;" goto statement_identifier ;)) (if_statement "if (iVar4 < 5) {\n    if (*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)) goto LAB_00102674;\n  }\n  else {\n    FUN_001019d0();\n    if (param_1[9] != 0) {\n      return;\n    }\n    iVar4 = *(int *)(param_2 + 0x10);\n    if (*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)) {\nLAB_00102674:\n      (*(code *)(PTR_LAB_0015b714 + 0x62a4))(param_1 + 9,param_2 + 0xc,param_2 + 0x14);\n      iVar5 = *(int *)(param_2 + 0x1c);\n      iVar4 = *(int *)(param_2 + 0x10);\n      goto LAB_00102428;\n    }\n  }" if (parenthesized_expression "(iVar4 < 5)" ( (binary_expression "iVar4 < 5" identifier < number_literal) )) (compound_statement "{\n    if (*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)) goto LAB_00102674;\n  }" { (if_statement "if (*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)) goto LAB_00102674;" if (parenthesized_expression "(*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4))" ( (binary_expression "*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)" (pointer_expression "*(uint *)(param_2 + 0x14)" * (cast_expression "(uint *)(param_2 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) < (call_expression "(uint)(param_3 + 0x14 + iVar4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_3 + 0x14 + iVar4)" ( (binary_expression "param_3 + 0x14 + iVar4" (binary_expression "param_3 + 0x14" identifier + number_literal) + identifier) )))) )) (goto_statement "goto LAB_00102674;" goto statement_identifier ;)) }) (else_clause "else {\n    FUN_001019d0();\n    if (param_1[9] != 0) {\n      return;\n    }\n    iVar4 = *(int *)(param_2 + 0x10);\n    if (*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)) {\nLAB_00102674:\n      (*(code *)(PTR_LAB_0015b714 + 0x62a4))(param_1 + 9,param_2 + 0xc,param_2 + 0x14);\n      iVar5 = *(int *)(param_2 + 0x1c);\n      iVar4 = *(int *)(param_2 + 0x10);\n      goto LAB_00102428;\n    }\n  }" else (compound_statement "{\n    FUN_001019d0();\n    if (param_1[9] != 0) {\n      return;\n    }\n    iVar4 = *(int *)(param_2 + 0x10);\n    if (*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)) {\nLAB_00102674:\n      (*(code *)(PTR_LAB_0015b714 + 0x62a4))(param_1 + 9,param_2 + 0xc,param_2 + 0x14);\n      iVar5 = *(int *)(param_2 + 0x1c);\n      iVar4 = *(int *)(param_2 + 0x10);\n      goto LAB_00102428;\n    }\n  }" { (expression_statement "FUN_001019d0();" (call_expression "FUN_001019d0()" identifier (argument_list "()" ( ))) ;) (if_statement "if (param_1[9] != 0) {\n      return;\n    }" if (parenthesized_expression "(param_1[9] != 0)" ( (binary_expression "param_1[9] != 0" (subscript_expression "param_1[9]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "iVar4 = *(int *)(param_2 + 0x10);" (assignment_expression "iVar4 = *(int *)(param_2 + 0x10)" identifier = (pointer_expression "*(int *)(param_2 + 0x10)" * (cast_expression "(int *)(param_2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) ))))) ;) (if_statement "if (*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)) {\nLAB_00102674:\n      (*(code *)(PTR_LAB_0015b714 + 0x62a4))(param_1 + 9,param_2 + 0xc,param_2 + 0x14);\n      iVar5 = *(int *)(param_2 + 0x1c);\n      iVar4 = *(int *)(param_2 + 0x10);\n      goto LAB_00102428;\n    }" if (parenthesized_expression "(*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4))" ( (binary_expression "*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)" (pointer_expression "*(uint *)(param_2 + 0x14)" * (cast_expression "(uint *)(param_2 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) < (call_expression "(uint)(param_3 + 0x14 + iVar4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_3 + 0x14 + iVar4)" ( (binary_expression "param_3 + 0x14 + iVar4" (binary_expression "param_3 + 0x14" identifier + number_literal) + identifier) )))) )) (compound_statement "{\nLAB_00102674:\n      (*(code *)(PTR_LAB_0015b714 + 0x62a4))(param_1 + 9,param_2 + 0xc,param_2 + 0x14);\n      iVar5 = *(int *)(param_2 + 0x1c);\n      iVar4 = *(int *)(param_2 + 0x10);\n      goto LAB_00102428;\n    }" { (labeled_statement "LAB_00102674:\n      (*(code *)(PTR_LAB_0015b714 + 0x62a4))(param_1 + 9,param_2 + 0xc,param_2 + 0x14);" statement_identifier : (expression_statement "(*(code *)(PTR_LAB_0015b714 + 0x62a4))(param_1 + 9,param_2 + 0xc,param_2 + 0x14);" (call_expression "(*(code *)(PTR_LAB_0015b714 + 0x62a4))(param_1 + 9,param_2 + 0xc,param_2 + 0x14)" (parenthesized_expression "(*(code *)(PTR_LAB_0015b714 + 0x62a4))" ( (pointer_expression "*(code *)(PTR_LAB_0015b714 + 0x62a4)" * (cast_expression "(code *)(PTR_LAB_0015b714 + 0x62a4)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b714 + 0x62a4)" ( (binary_expression "PTR_LAB_0015b714 + 0x62a4" identifier + number_literal) )))) )) (argument_list "(param_1 + 9,param_2 + 0xc,param_2 + 0x14)" ( (binary_expression "param_1 + 9" identifier + number_literal) , (binary_expression "param_2 + 0xc" identifier + number_literal) , (binary_expression "param_2 + 0x14" identifier + number_literal) ))) ;)) (expression_statement "iVar5 = *(int *)(param_2 + 0x1c);" (assignment_expression "iVar5 = *(int *)(param_2 + 0x1c)" identifier = (pointer_expression "*(int *)(param_2 + 0x1c)" * (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)(param_2 + 0x10);" (assignment_expression "iVar4 = *(int *)(param_2 + 0x10)" identifier = (pointer_expression "*(int *)(param_2 + 0x10)" * (cast_expression "(int *)(param_2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) ))))) ;) (goto_statement "goto LAB_00102428;" goto statement_identifier ;) })) }))) (expression_statement "iVar5 = *(int *)(param_2 + 0x1c);" (assignment_expression "iVar5 = *(int *)(param_2 + 0x1c)" identifier = (pointer_expression "*(int *)(param_2 + 0x1c)" * (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) ))))) ;) (labeled_statement "LAB_00102428:\n  uVar7 = iVar4 - *(int *)(param_2 + 8);" statement_identifier : (expression_statement "uVar7 = iVar4 - *(int *)(param_2 + 8);" (assignment_expression "uVar7 = iVar4 - *(int *)(param_2 + 8)" identifier = (binary_expression "iVar4 - *(int *)(param_2 + 8)" identifier - (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))))) ;)) (if_statement "if (((int)uVar7 < 0) || (0x7f < uVar7)) {\n    iVar4 = (*(code *)(PTR_LAB_0015b6d8 + 0x54))();\n  }\n  else {\n    *(char *)(*(int *)(param_2 + 0x18) + iVar5) = (char)uVar7;\n    iVar4 = 1;\n  }" if (parenthesized_expression "(((int)uVar7 < 0) || (0x7f < uVar7))" ( (binary_expression "((int)uVar7 < 0) || (0x7f < uVar7)" (parenthesized_expression "((int)uVar7 < 0)" ( (binary_expression "(int)uVar7 < 0" (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) || (parenthesized_expression "(0x7f < uVar7)" ( (binary_expression "0x7f < uVar7" number_literal < identifier) ))) )) (compound_statement "{\n    iVar4 = (*(code *)(PTR_LAB_0015b6d8 + 0x54))();\n  }" { (expression_statement "iVar4 = (*(code *)(PTR_LAB_0015b6d8 + 0x54))();" (assignment_expression "iVar4 = (*(code *)(PTR_LAB_0015b6d8 + 0x54))()" identifier = (call_expression "(*(code *)(PTR_LAB_0015b6d8 + 0x54))()" (parenthesized_expression "(*(code *)(PTR_LAB_0015b6d8 + 0x54))" ( (pointer_expression "*(code *)(PTR_LAB_0015b6d8 + 0x54)" * (cast_expression "(code *)(PTR_LAB_0015b6d8 + 0x54)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b6d8 + 0x54)" ( (binary_expression "PTR_LAB_0015b6d8 + 0x54" identifier + number_literal) )))) )) (argument_list "()" ( )))) ;) }) (else_clause "else {\n    *(char *)(*(int *)(param_2 + 0x18) + iVar5) = (char)uVar7;\n    iVar4 = 1;\n  }" else (compound_statement "{\n    *(char *)(*(int *)(param_2 + 0x18) + iVar5) = (char)uVar7;\n    iVar4 = 1;\n  }" { (expression_statement "*(char *)(*(int *)(param_2 + 0x18) + iVar5) = (char)uVar7;" (assignment_expression "*(char *)(*(int *)(param_2 + 0x18) + iVar5) = (char)uVar7" (pointer_expression "*(char *)(*(int *)(param_2 + 0x18) + iVar5)" * (cast_expression "(char *)(*(int *)(param_2 + 0x18) + iVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 0x18) + iVar5)" ( (binary_expression "*(int *)(param_2 + 0x18) + iVar5" (pointer_expression "*(int *)(param_2 + 0x18)" * (cast_expression "(int *)(param_2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) + identifier) )))) = (cast_expression "(char)uVar7" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) }))) (expression_statement "*(undefined4 *)(param_2 + 8) = *(undefined4 *)(param_2 + 0x10);" (assignment_expression "*(undefined4 *)(param_2 + 8) = *(undefined4 *)(param_2 + 0x10)" (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_2 + 0x10)" * (cast_expression "(undefined4 *)(param_2 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_2 + 0x1c) = *(int *)(param_2 + 0x1c) + iVar4;" (assignment_expression "*(int *)(param_2 + 0x1c) = *(int *)(param_2 + 0x1c) + iVar4" (pointer_expression "*(int *)(param_2 + 0x1c)" * (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) )))) = (binary_expression "*(int *)(param_2 + 0x1c) + iVar4" (pointer_expression "*(int *)(param_2 + 0x1c)" * (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) )))) + identifier)) ;) (expression_statement "pcVar9 = param_4;" (assignment_expression "pcVar9 = param_4" identifier = identifier) ;) (expression_statement "iVar4 = param_3;" (assignment_expression "iVar4 = param_3" identifier = identifier) ;) (if_statement "if (*(char *)(param_2 + 0x3a) == '\0') {\n    if (iVar6 < 1) {\n      iVar6 = 0;\n      iVar5 = 0;\n    }\n    else if (*param_4 == **(char **)(param_2 + 0x24)) {\n      iVar4 = 0;\n      pcVar3 = param_4 + 1;\n      do {\n        pcVar9 = pcVar3;\n        iVar4 = iVar4 + 1;\n        iVar5 = iVar6;\n        if (iVar6 == iVar4) break;\n        pcVar3 = pcVar9 + 1;\n        iVar5 = iVar4;\n      } while ((*(char **)(param_2 + 0x24))[iVar4] == *pcVar9);\n      iVar6 = iVar5 >> 0x1f;\n      iVar4 = param_3 - iVar5;\n    }\n    else {\n      iVar6 = 0;\n      iVar5 = 0;\n    }\n    pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700);\n    (*pcVar10)(param_1 + 9,param_2 + 0xc,iVar6,iVar5);\n    pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n  }\n  else {\n    if (*(int *)(param_2 + 4) == 1) {\n      pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n    }\n    else {\n      iVar5 = param_3;\n      if (*(int *)(param_2 + 0x28) != 0) {\n        if ((iVar6 < 1) || (*param_4 != **(char **)(param_2 + 0x24))) {\n          iVar5 = 1;\n        }\n        else {\n          iVar2 = 2;\n          do {\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);\n        }\n      }\n      iVar6 = *(int *)(param_2 + 0x58);\nLAB_001025a4:\n      if (iVar6 != 0) {\n        FUN_00102158(param_1,param_2);\n      }\n      puVar1 = PTR_LAB_0015b714;\n      if (param_1[9] != 0) {\n        return;\n      }\n      *(undefined4 *)(param_2 + 0x50) = 0;\n      pcVar8 = (code *)(puVar1 + 0x63a0);\n      (*pcVar8)(param_1 + 9,param_2 + 0x4c,iVar5,param_4);\n      *(undefined4 *)(param_2 + 0x58) = *(undefined4 *)(param_2 + 4);\n      if (param_1[9] != 0) {\n        return;\n      }\n    }\n    pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700);\n  }" if (parenthesized_expression "(*(char *)(param_2 + 0x3a) == '\0')" ( (binary_expression "*(char *)(param_2 + 0x3a) == '\0'" (pointer_expression "*(char *)(param_2 + 0x3a)" * (cast_expression "(char *)(param_2 + 0x3a)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x3a)" ( (binary_expression "param_2 + 0x3a" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (iVar6 < 1) {\n      iVar6 = 0;\n      iVar5 = 0;\n    }\n    else if (*param_4 == **(char **)(param_2 + 0x24)) {\n      iVar4 = 0;\n      pcVar3 = param_4 + 1;\n      do {\n        pcVar9 = pcVar3;\n        iVar4 = iVar4 + 1;\n        iVar5 = iVar6;\n        if (iVar6 == iVar4) break;\n        pcVar3 = pcVar9 + 1;\n        iVar5 = iVar4;\n      } while ((*(char **)(param_2 + 0x24))[iVar4] == *pcVar9);\n      iVar6 = iVar5 >> 0x1f;\n      iVar4 = param_3 - iVar5;\n    }\n    else {\n      iVar6 = 0;\n      iVar5 = 0;\n    }\n    pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700);\n    (*pcVar10)(param_1 + 9,param_2 + 0xc,iVar6,iVar5);\n    pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n  }" { (if_statement "if (iVar6 < 1) {\n      iVar6 = 0;\n      iVar5 = 0;\n    }\n    else if (*param_4 == **(char **)(param_2 + 0x24)) {\n      iVar4 = 0;\n      pcVar3 = param_4 + 1;\n      do {\n        pcVar9 = pcVar3;\n        iVar4 = iVar4 + 1;\n        iVar5 = iVar6;\n        if (iVar6 == iVar4) break;\n        pcVar3 = pcVar9 + 1;\n        iVar5 = iVar4;\n      } while ((*(char **)(param_2 + 0x24))[iVar4] == *pcVar9);\n      iVar6 = iVar5 >> 0x1f;\n      iVar4 = param_3 - iVar5;\n    }\n    else {\n      iVar6 = 0;\n      iVar5 = 0;\n    }" if (parenthesized_expression "(iVar6 < 1)" ( (binary_expression "iVar6 < 1" identifier < number_literal) )) (compound_statement "{\n      iVar6 = 0;\n      iVar5 = 0;\n    }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) }) (else_clause "else if (*param_4 == **(char **)(param_2 + 0x24)) {\n      iVar4 = 0;\n      pcVar3 = param_4 + 1;\n      do {\n        pcVar9 = pcVar3;\n        iVar4 = iVar4 + 1;\n        iVar5 = iVar6;\n        if (iVar6 == iVar4) break;\n        pcVar3 = pcVar9 + 1;\n        iVar5 = iVar4;\n      } while ((*(char **)(param_2 + 0x24))[iVar4] == *pcVar9);\n      iVar6 = iVar5 >> 0x1f;\n      iVar4 = param_3 - iVar5;\n    }\n    else {\n      iVar6 = 0;\n      iVar5 = 0;\n    }" else (if_statement "if (*param_4 == **(char **)(param_2 + 0x24)) {\n      iVar4 = 0;\n      pcVar3 = param_4 + 1;\n      do {\n        pcVar9 = pcVar3;\n        iVar4 = iVar4 + 1;\n        iVar5 = iVar6;\n        if (iVar6 == iVar4) break;\n        pcVar3 = pcVar9 + 1;\n        iVar5 = iVar4;\n      } while ((*(char **)(param_2 + 0x24))[iVar4] == *pcVar9);\n      iVar6 = iVar5 >> 0x1f;\n      iVar4 = param_3 - iVar5;\n    }\n    else {\n      iVar6 = 0;\n      iVar5 = 0;\n    }" if (parenthesized_expression "(*param_4 == **(char **)(param_2 + 0x24))" ( (binary_expression "*param_4 == **(char **)(param_2 + 0x24)" (pointer_expression "*param_4" * identifier) == (pointer_expression "**(char **)(param_2 + 0x24)" * (pointer_expression "*(char **)(param_2 + 0x24)" * (cast_expression "(char **)(param_2 + 0x24)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x24)" ( (binary_expression "param_2 + 0x24" identifier + number_literal) )))))) )) (compound_statement "{\n      iVar4 = 0;\n      pcVar3 = param_4 + 1;\n      do {\n        pcVar9 = pcVar3;\n        iVar4 = iVar4 + 1;\n        iVar5 = iVar6;\n        if (iVar6 == iVar4) break;\n        pcVar3 = pcVar9 + 1;\n        iVar5 = iVar4;\n      } while ((*(char **)(param_2 + 0x24))[iVar4] == *pcVar9);\n      iVar6 = iVar5 >> 0x1f;\n      iVar4 = param_3 - iVar5;\n    }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "pcVar3 = param_4 + 1;" (assignment_expression "pcVar3 = param_4 + 1" identifier = (binary_expression "param_4 + 1" identifier + number_literal)) ;) (do_statement "do {\n        pcVar9 = pcVar3;\n        iVar4 = iVar4 + 1;\n        iVar5 = iVar6;\n        if (iVar6 == iVar4) break;\n        pcVar3 = pcVar9 + 1;\n        iVar5 = iVar4;\n      } while ((*(char **)(param_2 + 0x24))[iVar4] == *pcVar9);" do (compound_statement "{\n        pcVar9 = pcVar3;\n        iVar4 = iVar4 + 1;\n        iVar5 = iVar6;\n        if (iVar6 == iVar4) break;\n        pcVar3 = pcVar9 + 1;\n        iVar5 = iVar4;\n      }" { (expression_statement "pcVar9 = pcVar3;" (assignment_expression "pcVar9 = pcVar3" identifier = identifier) ;) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "iVar5 = iVar6;" (assignment_expression "iVar5 = iVar6" identifier = identifier) ;) (if_statement "if (iVar6 == iVar4) break;" if (parenthesized_expression "(iVar6 == iVar4)" ( (binary_expression "iVar6 == iVar4" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "pcVar3 = pcVar9 + 1;" (assignment_expression "pcVar3 = pcVar9 + 1" identifier = (binary_expression "pcVar9 + 1" identifier + number_literal)) ;) (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" identifier = identifier) ;) }) while (parenthesized_expression "((*(char **)(param_2 + 0x24))[iVar4] == *pcVar9)" ( (binary_expression "(*(char **)(param_2 + 0x24))[iVar4] == *pcVar9" (subscript_expression "(*(char **)(param_2 + 0x24))[iVar4]" (parenthesized_expression "(*(char **)(param_2 + 0x24))" ( (pointer_expression "*(char **)(param_2 + 0x24)" * (cast_expression "(char **)(param_2 + 0x24)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x24)" ( (binary_expression "param_2 + 0x24" identifier + number_literal) )))) )) [ identifier ]) == (pointer_expression "*pcVar9" * identifier)) )) ;) (expression_statement "iVar6 = iVar5 >> 0x1f;" (assignment_expression "iVar6 = iVar5 >> 0x1f" identifier = (binary_expression "iVar5 >> 0x1f" identifier >> number_literal)) ;) (expression_statement "iVar4 = param_3 - iVar5;" (assignment_expression "iVar4 = param_3 - iVar5" identifier = (binary_expression "param_3 - iVar5" identifier - identifier)) ;) }) (else_clause "else {\n      iVar6 = 0;\n      iVar5 = 0;\n    }" else (compound_statement "{\n      iVar6 = 0;\n      iVar5 = 0;\n    }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) }))))) (expression_statement "pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700);" (assignment_expression "pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700)" identifier = (cast_expression "(code *)(PTR_LAB_0015b714 + 0x7700)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b714 + 0x7700)" ( (binary_expression "PTR_LAB_0015b714 + 0x7700" identifier + number_literal) )))) ;) (expression_statement "(*pcVar10)(param_1 + 9,param_2 + 0xc,iVar6,iVar5);" (call_expression "(*pcVar10)(param_1 + 9,param_2 + 0xc,iVar6,iVar5)" (parenthesized_expression "(*pcVar10)" ( (pointer_expression "*pcVar10" * identifier) )) (argument_list "(param_1 + 9,param_2 + 0xc,iVar6,iVar5)" ( (binary_expression "param_1 + 9" identifier + number_literal) , (binary_expression "param_2 + 0xc" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);" (assignment_expression "pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0)" identifier = (cast_expression "(code *)(PTR_LAB_0015b714 + 0x63a0)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b714 + 0x63a0)" ( (binary_expression "PTR_LAB_0015b714 + 0x63a0" identifier + number_literal) )))) ;) }) (else_clause "else {\n    if (*(int *)(param_2 + 4) == 1) {\n      pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n    }\n    else {\n      iVar5 = param_3;\n      if (*(int *)(param_2 + 0x28) != 0) {\n        if ((iVar6 < 1) || (*param_4 != **(char **)(param_2 + 0x24))) {\n          iVar5 = 1;\n        }\n        else {\n          iVar2 = 2;\n          do {\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);\n        }\n      }\n      iVar6 = *(int *)(param_2 + 0x58);\nLAB_001025a4:\n      if (iVar6 != 0) {\n        FUN_00102158(param_1,param_2);\n      }\n      puVar1 = PTR_LAB_0015b714;\n      if (param_1[9] != 0) {\n        return;\n      }\n      *(undefined4 *)(param_2 + 0x50) = 0;\n      pcVar8 = (code *)(puVar1 + 0x63a0);\n      (*pcVar8)(param_1 + 9,param_2 + 0x4c,iVar5,param_4);\n      *(undefined4 *)(param_2 + 0x58) = *(undefined4 *)(param_2 + 4);\n      if (param_1[9] != 0) {\n        return;\n      }\n    }\n    pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700);\n  }" else (compound_statement "{\n    if (*(int *)(param_2 + 4) == 1) {\n      pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n    }\n    else {\n      iVar5 = param_3;\n      if (*(int *)(param_2 + 0x28) != 0) {\n        if ((iVar6 < 1) || (*param_4 != **(char **)(param_2 + 0x24))) {\n          iVar5 = 1;\n        }\n        else {\n          iVar2 = 2;\n          do {\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);\n        }\n      }\n      iVar6 = *(int *)(param_2 + 0x58);\nLAB_001025a4:\n      if (iVar6 != 0) {\n        FUN_00102158(param_1,param_2);\n      }\n      puVar1 = PTR_LAB_0015b714;\n      if (param_1[9] != 0) {\n        return;\n      }\n      *(undefined4 *)(param_2 + 0x50) = 0;\n      pcVar8 = (code *)(puVar1 + 0x63a0);\n      (*pcVar8)(param_1 + 9,param_2 + 0x4c,iVar5,param_4);\n      *(undefined4 *)(param_2 + 0x58) = *(undefined4 *)(param_2 + 4);\n      if (param_1[9] != 0) {\n        return;\n      }\n    }\n    pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700);\n  }" { (if_statement "if (*(int *)(param_2 + 4) == 1) {\n      pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n    }\n    else {\n      iVar5 = param_3;\n      if (*(int *)(param_2 + 0x28) != 0) {\n        if ((iVar6 < 1) || (*param_4 != **(char **)(param_2 + 0x24))) {\n          iVar5 = 1;\n        }\n        else {\n          iVar2 = 2;\n          do {\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);\n        }\n      }\n      iVar6 = *(int *)(param_2 + 0x58);\nLAB_001025a4:\n      if (iVar6 != 0) {\n        FUN_00102158(param_1,param_2);\n      }\n      puVar1 = PTR_LAB_0015b714;\n      if (param_1[9] != 0) {\n        return;\n      }\n      *(undefined4 *)(param_2 + 0x50) = 0;\n      pcVar8 = (code *)(puVar1 + 0x63a0);\n      (*pcVar8)(param_1 + 9,param_2 + 0x4c,iVar5,param_4);\n      *(undefined4 *)(param_2 + 0x58) = *(undefined4 *)(param_2 + 4);\n      if (param_1[9] != 0) {\n        return;\n      }\n    }" if (parenthesized_expression "(*(int *)(param_2 + 4) == 1)" ( (binary_expression "*(int *)(param_2 + 4) == 1" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n    }" { (expression_statement "pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);" (assignment_expression "pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0)" identifier = (cast_expression "(code *)(PTR_LAB_0015b714 + 0x63a0)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b714 + 0x63a0)" ( (binary_expression "PTR_LAB_0015b714 + 0x63a0" identifier + number_literal) )))) ;) }) (else_clause "else {\n      iVar5 = param_3;\n      if (*(int *)(param_2 + 0x28) != 0) {\n        if ((iVar6 < 1) || (*param_4 != **(char **)(param_2 + 0x24))) {\n          iVar5 = 1;\n        }\n        else {\n          iVar2 = 2;\n          do {\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);\n        }\n      }\n      iVar6 = *(int *)(param_2 + 0x58);\nLAB_001025a4:\n      if (iVar6 != 0) {\n        FUN_00102158(param_1,param_2);\n      }\n      puVar1 = PTR_LAB_0015b714;\n      if (param_1[9] != 0) {\n        return;\n      }\n      *(undefined4 *)(param_2 + 0x50) = 0;\n      pcVar8 = (code *)(puVar1 + 0x63a0);\n      (*pcVar8)(param_1 + 9,param_2 + 0x4c,iVar5,param_4);\n      *(undefined4 *)(param_2 + 0x58) = *(undefined4 *)(param_2 + 4);\n      if (param_1[9] != 0) {\n        return;\n      }\n    }" else (compound_statement "{\n      iVar5 = param_3;\n      if (*(int *)(param_2 + 0x28) != 0) {\n        if ((iVar6 < 1) || (*param_4 != **(char **)(param_2 + 0x24))) {\n          iVar5 = 1;\n        }\n        else {\n          iVar2 = 2;\n          do {\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);\n        }\n      }\n      iVar6 = *(int *)(param_2 + 0x58);\nLAB_001025a4:\n      if (iVar6 != 0) {\n        FUN_00102158(param_1,param_2);\n      }\n      puVar1 = PTR_LAB_0015b714;\n      if (param_1[9] != 0) {\n        return;\n      }\n      *(undefined4 *)(param_2 + 0x50) = 0;\n      pcVar8 = (code *)(puVar1 + 0x63a0);\n      (*pcVar8)(param_1 + 9,param_2 + 0x4c,iVar5,param_4);\n      *(undefined4 *)(param_2 + 0x58) = *(undefined4 *)(param_2 + 4);\n      if (param_1[9] != 0) {\n        return;\n      }\n    }" { (expression_statement "iVar5 = param_3;" (assignment_expression "iVar5 = param_3" identifier = identifier) ;) (if_statement "if (*(int *)(param_2 + 0x28) != 0) {\n        if ((iVar6 < 1) || (*param_4 != **(char **)(param_2 + 0x24))) {\n          iVar5 = 1;\n        }\n        else {\n          iVar2 = 2;\n          do {\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);\n        }\n      }" if (parenthesized_expression "(*(int *)(param_2 + 0x28) != 0)" ( (binary_expression "*(int *)(param_2 + 0x28) != 0" (pointer_expression "*(int *)(param_2 + 0x28)" * (cast_expression "(int *)(param_2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        if ((iVar6 < 1) || (*param_4 != **(char **)(param_2 + 0x24))) {\n          iVar5 = 1;\n        }\n        else {\n          iVar2 = 2;\n          do {\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);\n        }\n      }" { (if_statement "if ((iVar6 < 1) || (*param_4 != **(char **)(param_2 + 0x24))) {\n          iVar5 = 1;\n        }\n        else {\n          iVar2 = 2;\n          do {\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);\n        }" if (parenthesized_expression "((iVar6 < 1) || (*param_4 != **(char **)(param_2 + 0x24)))" ( (binary_expression "(iVar6 < 1) || (*param_4 != **(char **)(param_2 + 0x24))" (parenthesized_expression "(iVar6 < 1)" ( (binary_expression "iVar6 < 1" identifier < number_literal) )) || (parenthesized_expression "(*param_4 != **(char **)(param_2 + 0x24))" ( (binary_expression "*param_4 != **(char **)(param_2 + 0x24)" (pointer_expression "*param_4" * identifier) != (pointer_expression "**(char **)(param_2 + 0x24)" * (pointer_expression "*(char **)(param_2 + 0x24)" * (cast_expression "(char **)(param_2 + 0x24)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x24)" ( (binary_expression "param_2 + 0x24" identifier + number_literal) )))))) ))) )) (compound_statement "{\n          iVar5 = 1;\n        }" { (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" identifier = number_literal) ;) }) (else_clause "else {\n          iVar2 = 2;\n          do {\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);\n        }" else (compound_statement "{\n          iVar2 = 2;\n          do {\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);\n        }" { (expression_statement "iVar2 = 2;" (assignment_expression "iVar2 = 2" identifier = number_literal) ;) (do_statement "do {\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);" do (compound_statement "{\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          }" { (expression_statement "iVar5 = iVar2;" (assignment_expression "iVar5 = iVar2" identifier = identifier) ;) (if_statement "if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }" if (parenthesized_expression "(iVar6 + 1 == iVar5)" ( (binary_expression "iVar6 + 1 == iVar5" (binary_expression "iVar6 + 1" identifier + number_literal) == identifier) )) (compound_statement "{\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }" { (expression_statement "iVar6 = *(int *)(param_2 + 0x58);" (assignment_expression "iVar6 = *(int *)(param_2 + 0x58)" identifier = (pointer_expression "*(int *)(param_2 + 0x58)" * (cast_expression "(int *)(param_2 + 0x58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x58)" ( (binary_expression "param_2 + 0x58" identifier + number_literal) ))))) ;) (goto_statement "goto LAB_001025a4;" goto statement_identifier ;) })) (expression_statement "iVar2 = iVar5 + 1;" (assignment_expression "iVar2 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1])" ( (binary_expression "param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]" (subscript_expression "param_4[iVar5 + -1]" identifier [ (binary_expression "iVar5 + -1" identifier + number_literal) ]) == (subscript_expression "(*(char **)(param_2 + 0x24))[iVar5 + -1]" (parenthesized_expression "(*(char **)(param_2 + 0x24))" ( (pointer_expression "*(char **)(param_2 + 0x24)" * (cast_expression "(char **)(param_2 + 0x24)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x24)" ( (binary_expression "param_2 + 0x24" identifier + number_literal) )))) )) [ (binary_expression "iVar5 + -1" identifier + number_literal) ])) )) ;) }))) })) (expression_statement "iVar6 = *(int *)(param_2 + 0x58);" (assignment_expression "iVar6 = *(int *)(param_2 + 0x58)" identifier = (pointer_expression "*(int *)(param_2 + 0x58)" * (cast_expression "(int *)(param_2 + 0x58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x58)" ( (binary_expression "param_2 + 0x58" identifier + number_literal) ))))) ;) (labeled_statement "LAB_001025a4:\n      if (iVar6 != 0) {\n        FUN_00102158(param_1,param_2);\n      }" statement_identifier : (if_statement "if (iVar6 != 0) {\n        FUN_00102158(param_1,param_2);\n      }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n        FUN_00102158(param_1,param_2);\n      }" { (expression_statement "FUN_00102158(param_1,param_2);" (call_expression "FUN_00102158(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) }))) (expression_statement "puVar1 = PTR_LAB_0015b714;" (assignment_expression "puVar1 = PTR_LAB_0015b714" identifier = identifier) ;) (if_statement "if (param_1[9] != 0) {\n        return;\n      }" if (parenthesized_expression "(param_1[9] != 0)" ( (binary_expression "param_1[9] != 0" (subscript_expression "param_1[9]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "*(undefined4 *)(param_2 + 0x50) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0x50) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0x50)" * (cast_expression "(undefined4 *)(param_2 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x50)" ( (binary_expression "param_2 + 0x50" identifier + number_literal) )))) = number_literal) ;) (expression_statement "pcVar8 = (code *)(puVar1 + 0x63a0);" (assignment_expression "pcVar8 = (code *)(puVar1 + 0x63a0)" identifier = (cast_expression "(code *)(puVar1 + 0x63a0)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x63a0)" ( (binary_expression "puVar1 + 0x63a0" identifier + number_literal) )))) ;) (expression_statement "(*pcVar8)(param_1 + 9,param_2 + 0x4c,iVar5,param_4);" (call_expression "(*pcVar8)(param_1 + 9,param_2 + 0x4c,iVar5,param_4)" (parenthesized_expression "(*pcVar8)" ( (pointer_expression "*pcVar8" * identifier) )) (argument_list "(param_1 + 9,param_2 + 0x4c,iVar5,param_4)" ( (binary_expression "param_1 + 9" identifier + number_literal) , (binary_expression "param_2 + 0x4c" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "*(undefined4 *)(param_2 + 0x58) = *(undefined4 *)(param_2 + 4);" (assignment_expression "*(undefined4 *)(param_2 + 0x58) = *(undefined4 *)(param_2 + 4)" (pointer_expression "*(undefined4 *)(param_2 + 0x58)" * (cast_expression "(undefined4 *)(param_2 + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x58)" ( (binary_expression "param_2 + 0x58" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_2 + 4)" * (cast_expression "(undefined4 *)(param_2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (if_statement "if (param_1[9] != 0) {\n        return;\n      }" if (parenthesized_expression "(param_1[9] != 0)" ( (binary_expression "param_1[9] != 0" (subscript_expression "param_1[9]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) }))) (expression_statement "pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700);" (assignment_expression "pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700)" identifier = (cast_expression "(code *)(PTR_LAB_0015b714 + 0x7700)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b714 + 0x7700)" ( (binary_expression "PTR_LAB_0015b714 + 0x7700" identifier + number_literal) )))) ;) }))) (expression_statement "param_1 = param_1 + 9;" (assignment_expression "param_1 = param_1 + 9" identifier = (binary_expression "param_1 + 9" identifier + number_literal)) ;) (expression_statement "(*pcVar10)(param_1,param_2 + 0xc,iVar4 >> 0x1f,iVar4);" (call_expression "(*pcVar10)(param_1,param_2 + 0xc,iVar4 >> 0x1f,iVar4)" (parenthesized_expression "(*pcVar10)" ( (pointer_expression "*pcVar10" * identifier) )) (argument_list "(param_1,param_2 + 0xc,iVar4 >> 0x1f,iVar4)" ( identifier , (binary_expression "param_2 + 0xc" identifier + number_literal) , (binary_expression "iVar4 >> 0x1f" identifier >> number_literal) , identifier ))) ;) (expression_statement "(*pcVar8)(param_1,param_2 + 0xc,iVar4,pcVar9);" (call_expression "(*pcVar8)(param_1,param_2 + 0xc,iVar4,pcVar9)" (parenthesized_expression "(*pcVar8)" ( (pointer_expression "*pcVar8" * identifier) )) (argument_list "(param_1,param_2 + 0xc,iVar4,pcVar9)" ( identifier , (binary_expression "param_2 + 0xc" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "*(undefined4 *)(param_2 + 0x28) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0x28) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0x28)" * (cast_expression "(undefined4 *)(param_2 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) = number_literal) ;) (expression_statement "(*pcVar8)(param_1,param_2 + 0x24,param_3,param_4);" (call_expression "(*pcVar8)(param_1,param_2 + 0x24,param_3,param_4)" (parenthesized_expression "(*pcVar8)" ( (pointer_expression "*pcVar8" * identifier) )) (argument_list "(param_1,param_2 + 0x24,param_3,param_4)" ( identifier , (binary_expression "param_2 + 0x24" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "*(undefined2 *)(param_2 + 0x38) = 0x100;" (assignment_expression "*(undefined2 *)(param_2 + 0x38) = 0x100" (pointer_expression "*(undefined2 *)(param_2 + 0x38)" * (cast_expression "(undefined2 *)(param_2 + 0x38)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x38)" ( (binary_expression "param_2 + 0x38" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)(param_2 + 0x3a) = 0;" (assignment_expression "*(undefined1 *)(param_2 + 0x3a) = 0" (pointer_expression "*(undefined1 *)(param_2 + 0x3a)" * (cast_expression "(undefined1 *)(param_2 + 0x3a)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x3a)" ( (binary_expression "param_2 + 0x3a" identifier + number_literal) )))) = number_literal) ;) (expression_statement "**(undefined4 **)(param_2 + 0x48) = *(undefined4 *)(param_2 + 4);" (assignment_expression "**(undefined4 **)(param_2 + 0x48) = *(undefined4 *)(param_2 + 4)" (pointer_expression "**(undefined4 **)(param_2 + 0x48)" * (pointer_expression "*(undefined4 **)(param_2 + 0x48)" * (cast_expression "(undefined4 **)(param_2 + 0x48)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x48)" ( (binary_expression "param_2 + 0x48" identifier + number_literal) ))))) = (pointer_expression "*(undefined4 *)(param_2 + 4)" * (cast_expression "(undefined4 *)(param_2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (return_statement "return;" return ;) })))
(translation_unit "void fts5WriteAppendTerm(Fts5Index *p,Fts5SegWriter *pWriter,int nTerm,u8 *pTerm)\n\n{\n  u8 uVar1;\n  undefined *puVar2;\n  int iVar3;\n  u8 *puVar4;\n  int iVar5;\n  u8 *puVar6;\n  int iVar7;\n  int iVar8;\n  uint uVar9;\n  code *pcVar10;\n  u8 *puVar11;\n  int *piVar12;\n  code *pcVar13;\n  Fts5Buffer *pFVar14;\n  \n  iVar5 = (pWriter->writer).buf.n;\n  iVar7 = (pWriter->writer).pgidx.n;\n  iVar8 = (pWriter->writer).term.n;\n  if (nTerm < iVar8) {\n    iVar8 = nTerm;\n  }\n  if (iVar5 + iVar7 + nTerm + 2 < p->pConfig->pgsz) goto LAB_00102428;\n  if (iVar5 < 5) {\n    if ((uint)(pWriter->writer).buf.nSpace < (uint)(nTerm + 0x14 + iVar5)) goto LAB_00102674;\n  }\n  else {\n    fts5WriteFlushLeaf(p,pWriter);\n    if (p->rc != 0) {\n      return;\n    }\n    iVar5 = (pWriter->writer).buf.n;\n    if ((uint)(pWriter->writer).buf.nSpace < (uint)(nTerm + 0x14 + iVar5)) {\nLAB_00102674:\n      (*(code *)(PTR_LAB_0015b714 + 0x62a4))\n                (&p->rc,&(pWriter->writer).buf,&(pWriter->writer).buf.nSpace);\n      iVar7 = (pWriter->writer).pgidx.n;\n      iVar5 = (pWriter->writer).buf.n;\n      goto LAB_00102428;\n    }\n  }\n  iVar7 = (pWriter->writer).pgidx.n;\nLAB_00102428:\n  uVar9 = iVar5 - (pWriter->writer).iPrevPgidx;\n  if (((int)uVar9 < 0) || (0x7f < uVar9)) {\n    iVar5 = (*(code *)(PTR_LAB_0015b6d8 + 0x54))();\n  }\n  else {\n    (pWriter->writer).pgidx.p[iVar7] = (u8)uVar9;\n    iVar5 = 1;\n  }\n  iVar7 = (pWriter->writer).pgidx.n;\n  uVar1 = pWriter->bFirstTermInPage;\n  (pWriter->writer).iPrevPgidx = (pWriter->writer).buf.n;\n  (pWriter->writer).pgidx.n = iVar7 + iVar5;\n  puVar11 = pTerm;\n  iVar5 = nTerm;\n  if (uVar1 == '\0') {\n    puVar6 = (pWriter->writer).term.p;\n    if (iVar8 < 1) {\n      iVar8 = 0;\n      iVar7 = 0;\n    }\n    else if (*pTerm == *puVar6) {\n      iVar5 = 0;\n      puVar4 = pTerm + 1;\n      do {\n        puVar11 = puVar4;\n        iVar5 = iVar5 + 1;\n        iVar7 = iVar8;\n        if (iVar8 == iVar5) break;\n        puVar4 = puVar11 + 1;\n        iVar7 = iVar5;\n      } while (puVar6[iVar5] == *puVar11);\n      iVar8 = iVar7 >> 0x1f;\n      iVar5 = nTerm - iVar7;\n    }\n    else {\n      iVar8 = 0;\n      iVar7 = 0;\n    }\n    pcVar13 = (code *)(PTR_LAB_0015b714 + 0x7700);\n    (*pcVar13)(&p->rc,&(pWriter->writer).buf,iVar8,iVar7);\n    pcVar10 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n  }\n  else {\n    if ((pWriter->writer).pgno == 1) {\n      pcVar10 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n    }\n    else {\n      iVar7 = nTerm;\n      if ((pWriter->writer).term.n != 0) {\n        puVar6 = (pWriter->writer).term.p;\n        if ((iVar8 < 1) || (*pTerm != *puVar6)) {\n          iVar7 = 1;\n        }\n        else {\n          iVar3 = 2;\n          do {\n            iVar7 = iVar3;\n            if (iVar8 + 1 == iVar7) {\n              iVar8 = pWriter->iBtPage;\n              goto LAB_001025a4;\n            }\n            iVar3 = iVar7 + 1;\n          } while (pTerm[iVar7 + -1] == puVar6[iVar7 + -1]);\n        }\n      }\n      iVar8 = pWriter->iBtPage;\nLAB_001025a4:\n      if (iVar8 != 0) {\n        fts5WriteFlushBtree(p,pWriter);\n      }\n      puVar2 = PTR_LAB_0015b714;\n      if (p->rc != 0) {\n        return;\n      }\n      (pWriter->btterm).n = 0;\n      pcVar10 = (code *)(puVar2 + 0x63a0);\n      (*pcVar10)(&p->rc,&pWriter->btterm,iVar7,pTerm);\n      pWriter->iBtPage = (pWriter->writer).pgno;\n      if (p->rc != 0) {\n        return;\n      }\n    }\n    pcVar13 = (code *)(PTR_LAB_0015b714 + 0x7700);\n  }\n  piVar12 = &p->rc;\n  pFVar14 = &(pWriter->writer).buf;\n  (*pcVar13)(piVar12,pFVar14,iVar5 >> 0x1f,iVar5);\n  (*pcVar10)(piVar12,pFVar14,iVar5,puVar11);\n  (pWriter->writer).term.n = 0;\n  (*pcVar10)(piVar12,&(pWriter->writer).term,nTerm,pTerm);\n  iVar8 = (pWriter->writer).pgno;\n  pWriter->bFirstRowidInDoclist = '\x01';\n  pWriter->bFirstRowidInPage = '\0';\n  pWriter->bFirstTermInPage = '\0';\n  pWriter->aDlidx->pgno = iVar8;\n  return;\n}\n\n" (function_definition "void fts5WriteAppendTerm(Fts5Index *p,Fts5SegWriter *pWriter,int nTerm,u8 *pTerm)\n\n{\n  u8 uVar1;\n  undefined *puVar2;\n  int iVar3;\n  u8 *puVar4;\n  int iVar5;\n  u8 *puVar6;\n  int iVar7;\n  int iVar8;\n  uint uVar9;\n  code *pcVar10;\n  u8 *puVar11;\n  int *piVar12;\n  code *pcVar13;\n  Fts5Buffer *pFVar14;\n  \n  iVar5 = (pWriter->writer).buf.n;\n  iVar7 = (pWriter->writer).pgidx.n;\n  iVar8 = (pWriter->writer).term.n;\n  if (nTerm < iVar8) {\n    iVar8 = nTerm;\n  }\n  if (iVar5 + iVar7 + nTerm + 2 < p->pConfig->pgsz) goto LAB_00102428;\n  if (iVar5 < 5) {\n    if ((uint)(pWriter->writer).buf.nSpace < (uint)(nTerm + 0x14 + iVar5)) goto LAB_00102674;\n  }\n  else {\n    fts5WriteFlushLeaf(p,pWriter);\n    if (p->rc != 0) {\n      return;\n    }\n    iVar5 = (pWriter->writer).buf.n;\n    if ((uint)(pWriter->writer).buf.nSpace < (uint)(nTerm + 0x14 + iVar5)) {\nLAB_00102674:\n      (*(code *)(PTR_LAB_0015b714 + 0x62a4))\n                (&p->rc,&(pWriter->writer).buf,&(pWriter->writer).buf.nSpace);\n      iVar7 = (pWriter->writer).pgidx.n;\n      iVar5 = (pWriter->writer).buf.n;\n      goto LAB_00102428;\n    }\n  }\n  iVar7 = (pWriter->writer).pgidx.n;\nLAB_00102428:\n  uVar9 = iVar5 - (pWriter->writer).iPrevPgidx;\n  if (((int)uVar9 < 0) || (0x7f < uVar9)) {\n    iVar5 = (*(code *)(PTR_LAB_0015b6d8 + 0x54))();\n  }\n  else {\n    (pWriter->writer).pgidx.p[iVar7] = (u8)uVar9;\n    iVar5 = 1;\n  }\n  iVar7 = (pWriter->writer).pgidx.n;\n  uVar1 = pWriter->bFirstTermInPage;\n  (pWriter->writer).iPrevPgidx = (pWriter->writer).buf.n;\n  (pWriter->writer).pgidx.n = iVar7 + iVar5;\n  puVar11 = pTerm;\n  iVar5 = nTerm;\n  if (uVar1 == '\0') {\n    puVar6 = (pWriter->writer).term.p;\n    if (iVar8 < 1) {\n      iVar8 = 0;\n      iVar7 = 0;\n    }\n    else if (*pTerm == *puVar6) {\n      iVar5 = 0;\n      puVar4 = pTerm + 1;\n      do {\n        puVar11 = puVar4;\n        iVar5 = iVar5 + 1;\n        iVar7 = iVar8;\n        if (iVar8 == iVar5) break;\n        puVar4 = puVar11 + 1;\n        iVar7 = iVar5;\n      } while (puVar6[iVar5] == *puVar11);\n      iVar8 = iVar7 >> 0x1f;\n      iVar5 = nTerm - iVar7;\n    }\n    else {\n      iVar8 = 0;\n      iVar7 = 0;\n    }\n    pcVar13 = (code *)(PTR_LAB_0015b714 + 0x7700);\n    (*pcVar13)(&p->rc,&(pWriter->writer).buf,iVar8,iVar7);\n    pcVar10 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n  }\n  else {\n    if ((pWriter->writer).pgno == 1) {\n      pcVar10 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n    }\n    else {\n      iVar7 = nTerm;\n      if ((pWriter->writer).term.n != 0) {\n        puVar6 = (pWriter->writer).term.p;\n        if ((iVar8 < 1) || (*pTerm != *puVar6)) {\n          iVar7 = 1;\n        }\n        else {\n          iVar3 = 2;\n          do {\n            iVar7 = iVar3;\n            if (iVar8 + 1 == iVar7) {\n              iVar8 = pWriter->iBtPage;\n              goto LAB_001025a4;\n            }\n            iVar3 = iVar7 + 1;\n          } while (pTerm[iVar7 + -1] == puVar6[iVar7 + -1]);\n        }\n      }\n      iVar8 = pWriter->iBtPage;\nLAB_001025a4:\n      if (iVar8 != 0) {\n        fts5WriteFlushBtree(p,pWriter);\n      }\n      puVar2 = PTR_LAB_0015b714;\n      if (p->rc != 0) {\n        return;\n      }\n      (pWriter->btterm).n = 0;\n      pcVar10 = (code *)(puVar2 + 0x63a0);\n      (*pcVar10)(&p->rc,&pWriter->btterm,iVar7,pTerm);\n      pWriter->iBtPage = (pWriter->writer).pgno;\n      if (p->rc != 0) {\n        return;\n      }\n    }\n    pcVar13 = (code *)(PTR_LAB_0015b714 + 0x7700);\n  }\n  piVar12 = &p->rc;\n  pFVar14 = &(pWriter->writer).buf;\n  (*pcVar13)(piVar12,pFVar14,iVar5 >> 0x1f,iVar5);\n  (*pcVar10)(piVar12,pFVar14,iVar5,puVar11);\n  (pWriter->writer).term.n = 0;\n  (*pcVar10)(piVar12,&(pWriter->writer).term,nTerm,pTerm);\n  iVar8 = (pWriter->writer).pgno;\n  pWriter->bFirstRowidInDoclist = '\x01';\n  pWriter->bFirstRowidInPage = '\0';\n  pWriter->bFirstTermInPage = '\0';\n  pWriter->aDlidx->pgno = iVar8;\n  return;\n}" primitive_type (function_declarator "fts5WriteAppendTerm(Fts5Index *p,Fts5SegWriter *pWriter,int nTerm,u8 *pTerm)" identifier (parameter_list "(Fts5Index *p,Fts5SegWriter *pWriter,int nTerm,u8 *pTerm)" ( (parameter_declaration "Fts5Index *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "Fts5SegWriter *pWriter" type_identifier (pointer_declarator "*pWriter" * identifier)) , (parameter_declaration "int nTerm" primitive_type identifier) , (parameter_declaration "u8 *pTerm" type_identifier (pointer_declarator "*pTerm" * identifier)) ))) (compound_statement "{\n  u8 uVar1;\n  undefined *puVar2;\n  int iVar3;\n  u8 *puVar4;\n  int iVar5;\n  u8 *puVar6;\n  int iVar7;\n  int iVar8;\n  uint uVar9;\n  code *pcVar10;\n  u8 *puVar11;\n  int *piVar12;\n  code *pcVar13;\n  Fts5Buffer *pFVar14;\n  \n  iVar5 = (pWriter->writer).buf.n;\n  iVar7 = (pWriter->writer).pgidx.n;\n  iVar8 = (pWriter->writer).term.n;\n  if (nTerm < iVar8) {\n    iVar8 = nTerm;\n  }\n  if (iVar5 + iVar7 + nTerm + 2 < p->pConfig->pgsz) goto LAB_00102428;\n  if (iVar5 < 5) {\n    if ((uint)(pWriter->writer).buf.nSpace < (uint)(nTerm + 0x14 + iVar5)) goto LAB_00102674;\n  }\n  else {\n    fts5WriteFlushLeaf(p,pWriter);\n    if (p->rc != 0) {\n      return;\n    }\n    iVar5 = (pWriter->writer).buf.n;\n    if ((uint)(pWriter->writer).buf.nSpace < (uint)(nTerm + 0x14 + iVar5)) {\nLAB_00102674:\n      (*(code *)(PTR_LAB_0015b714 + 0x62a4))\n                (&p->rc,&(pWriter->writer).buf,&(pWriter->writer).buf.nSpace);\n      iVar7 = (pWriter->writer).pgidx.n;\n      iVar5 = (pWriter->writer).buf.n;\n      goto LAB_00102428;\n    }\n  }\n  iVar7 = (pWriter->writer).pgidx.n;\nLAB_00102428:\n  uVar9 = iVar5 - (pWriter->writer).iPrevPgidx;\n  if (((int)uVar9 < 0) || (0x7f < uVar9)) {\n    iVar5 = (*(code *)(PTR_LAB_0015b6d8 + 0x54))();\n  }\n  else {\n    (pWriter->writer).pgidx.p[iVar7] = (u8)uVar9;\n    iVar5 = 1;\n  }\n  iVar7 = (pWriter->writer).pgidx.n;\n  uVar1 = pWriter->bFirstTermInPage;\n  (pWriter->writer).iPrevPgidx = (pWriter->writer).buf.n;\n  (pWriter->writer).pgidx.n = iVar7 + iVar5;\n  puVar11 = pTerm;\n  iVar5 = nTerm;\n  if (uVar1 == '\0') {\n    puVar6 = (pWriter->writer).term.p;\n    if (iVar8 < 1) {\n      iVar8 = 0;\n      iVar7 = 0;\n    }\n    else if (*pTerm == *puVar6) {\n      iVar5 = 0;\n      puVar4 = pTerm + 1;\n      do {\n        puVar11 = puVar4;\n        iVar5 = iVar5 + 1;\n        iVar7 = iVar8;\n        if (iVar8 == iVar5) break;\n        puVar4 = puVar11 + 1;\n        iVar7 = iVar5;\n      } while (puVar6[iVar5] == *puVar11);\n      iVar8 = iVar7 >> 0x1f;\n      iVar5 = nTerm - iVar7;\n    }\n    else {\n      iVar8 = 0;\n      iVar7 = 0;\n    }\n    pcVar13 = (code *)(PTR_LAB_0015b714 + 0x7700);\n    (*pcVar13)(&p->rc,&(pWriter->writer).buf,iVar8,iVar7);\n    pcVar10 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n  }\n  else {\n    if ((pWriter->writer).pgno == 1) {\n      pcVar10 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n    }\n    else {\n      iVar7 = nTerm;\n      if ((pWriter->writer).term.n != 0) {\n        puVar6 = (pWriter->writer).term.p;\n        if ((iVar8 < 1) || (*pTerm != *puVar6)) {\n          iVar7 = 1;\n        }\n        else {\n          iVar3 = 2;\n          do {\n            iVar7 = iVar3;\n            if (iVar8 + 1 == iVar7) {\n              iVar8 = pWriter->iBtPage;\n              goto LAB_001025a4;\n            }\n            iVar3 = iVar7 + 1;\n          } while (pTerm[iVar7 + -1] == puVar6[iVar7 + -1]);\n        }\n      }\n      iVar8 = pWriter->iBtPage;\nLAB_001025a4:\n      if (iVar8 != 0) {\n        fts5WriteFlushBtree(p,pWriter);\n      }\n      puVar2 = PTR_LAB_0015b714;\n      if (p->rc != 0) {\n        return;\n      }\n      (pWriter->btterm).n = 0;\n      pcVar10 = (code *)(puVar2 + 0x63a0);\n      (*pcVar10)(&p->rc,&pWriter->btterm,iVar7,pTerm);\n      pWriter->iBtPage = (pWriter->writer).pgno;\n      if (p->rc != 0) {\n        return;\n      }\n    }\n    pcVar13 = (code *)(PTR_LAB_0015b714 + 0x7700);\n  }\n  piVar12 = &p->rc;\n  pFVar14 = &(pWriter->writer).buf;\n  (*pcVar13)(piVar12,pFVar14,iVar5 >> 0x1f,iVar5);\n  (*pcVar10)(piVar12,pFVar14,iVar5,puVar11);\n  (pWriter->writer).term.n = 0;\n  (*pcVar10)(piVar12,&(pWriter->writer).term,nTerm,pTerm);\n  iVar8 = (pWriter->writer).pgno;\n  pWriter->bFirstRowidInDoclist = '\x01';\n  pWriter->bFirstRowidInPage = '\0';\n  pWriter->bFirstTermInPage = '\0';\n  pWriter->aDlidx->pgno = iVar8;\n  return;\n}" { (declaration "u8 uVar1;" type_identifier identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "u8 *puVar4;" type_identifier (pointer_declarator "*puVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "u8 *puVar6;" type_identifier (pointer_declarator "*puVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "code *pcVar10;" type_identifier (pointer_declarator "*pcVar10" * identifier) ;) (declaration "u8 *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "int *piVar12;" primitive_type (pointer_declarator "*piVar12" * identifier) ;) (declaration "code *pcVar13;" type_identifier (pointer_declarator "*pcVar13" * identifier) ;) (declaration "Fts5Buffer *pFVar14;" type_identifier (pointer_declarator "*pFVar14" * identifier) ;) (expression_statement "iVar5 = (pWriter->writer).buf.n;" (assignment_expression "iVar5 = (pWriter->writer).buf.n" identifier = (field_expression "(pWriter->writer).buf.n" (field_expression "(pWriter->writer).buf" (parenthesized_expression "(pWriter->writer)" ( (field_expression "pWriter->writer" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (expression_statement "iVar7 = (pWriter->writer).pgidx.n;" (assignment_expression "iVar7 = (pWriter->writer).pgidx.n" identifier = (field_expression "(pWriter->writer).pgidx.n" (field_expression "(pWriter->writer).pgidx" (parenthesized_expression "(pWriter->writer)" ( (field_expression "pWriter->writer" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (expression_statement "iVar8 = (pWriter->writer).term.n;" (assignment_expression "iVar8 = (pWriter->writer).term.n" identifier = (field_expression "(pWriter->writer).term.n" (field_expression "(pWriter->writer).term" (parenthesized_expression "(pWriter->writer)" ( (field_expression "pWriter->writer" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (if_statement "if (nTerm < iVar8) {\n    iVar8 = nTerm;\n  }" if (parenthesized_expression "(nTerm < iVar8)" ( (binary_expression "nTerm < iVar8" identifier < identifier) )) (compound_statement "{\n    iVar8 = nTerm;\n  }" { (expression_statement "iVar8 = nTerm;" (assignment_expression "iVar8 = nTerm" identifier = identifier) ;) })) (if_statement "if (iVar5 + iVar7 + nTerm + 2 < p->pConfig->pgsz) goto LAB_00102428;" if (parenthesized_expression "(iVar5 + iVar7 + nTerm + 2 < p->pConfig->pgsz)" ( (binary_expression "iVar5 + iVar7 + nTerm + 2 < p->pConfig->pgsz" (binary_expression "iVar5 + iVar7 + nTerm + 2" (binary_expression "iVar5 + iVar7 + nTerm" (binary_expression "iVar5 + iVar7" identifier + identifier) + identifier) + number_literal) < (field_expression "p->pConfig->pgsz" (field_expression "p->pConfig" identifier -> field_identifier) -> field_identifier)) )) (goto_statement "goto LAB_00102428;" goto statement_identifier ;)) (if_statement "if (iVar5 < 5) {\n    if ((uint)(pWriter->writer).buf.nSpace < (uint)(nTerm + 0x14 + iVar5)) goto LAB_00102674;\n  }\n  else {\n    fts5WriteFlushLeaf(p,pWriter);\n    if (p->rc != 0) {\n      return;\n    }\n    iVar5 = (pWriter->writer).buf.n;\n    if ((uint)(pWriter->writer).buf.nSpace < (uint)(nTerm + 0x14 + iVar5)) {\nLAB_00102674:\n      (*(code *)(PTR_LAB_0015b714 + 0x62a4))\n                (&p->rc,&(pWriter->writer).buf,&(pWriter->writer).buf.nSpace);\n      iVar7 = (pWriter->writer).pgidx.n;\n      iVar5 = (pWriter->writer).buf.n;\n      goto LAB_00102428;\n    }\n  }" if (parenthesized_expression "(iVar5 < 5)" ( (binary_expression "iVar5 < 5" identifier < number_literal) )) (compound_statement "{\n    if ((uint)(pWriter->writer).buf.nSpace < (uint)(nTerm + 0x14 + iVar5)) goto LAB_00102674;\n  }" { (if_statement "if ((uint)(pWriter->writer).buf.nSpace < (uint)(nTerm + 0x14 + iVar5)) goto LAB_00102674;" if (parenthesized_expression "((uint)(pWriter->writer).buf.nSpace < (uint)(nTerm + 0x14 + iVar5))" ( (binary_expression "(uint)(pWriter->writer).buf.nSpace < (uint)(nTerm + 0x14 + iVar5)" (field_expression "(uint)(pWriter->writer).buf.nSpace" (field_expression "(uint)(pWriter->writer).buf" (call_expression "(uint)(pWriter->writer)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pWriter->writer)" ( (field_expression "pWriter->writer" identifier -> field_identifier) ))) . field_identifier) . field_identifier) < (call_expression "(uint)(nTerm + 0x14 + iVar5)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(nTerm + 0x14 + iVar5)" ( (binary_expression "nTerm + 0x14 + iVar5" (binary_expression "nTerm + 0x14" identifier + number_literal) + identifier) )))) )) (goto_statement "goto LAB_00102674;" goto statement_identifier ;)) }) (else_clause "else {\n    fts5WriteFlushLeaf(p,pWriter);\n    if (p->rc != 0) {\n      return;\n    }\n    iVar5 = (pWriter->writer).buf.n;\n    if ((uint)(pWriter->writer).buf.nSpace < (uint)(nTerm + 0x14 + iVar5)) {\nLAB_00102674:\n      (*(code *)(PTR_LAB_0015b714 + 0x62a4))\n                (&p->rc,&(pWriter->writer).buf,&(pWriter->writer).buf.nSpace);\n      iVar7 = (pWriter->writer).pgidx.n;\n      iVar5 = (pWriter->writer).buf.n;\n      goto LAB_00102428;\n    }\n  }" else (compound_statement "{\n    fts5WriteFlushLeaf(p,pWriter);\n    if (p->rc != 0) {\n      return;\n    }\n    iVar5 = (pWriter->writer).buf.n;\n    if ((uint)(pWriter->writer).buf.nSpace < (uint)(nTerm + 0x14 + iVar5)) {\nLAB_00102674:\n      (*(code *)(PTR_LAB_0015b714 + 0x62a4))\n                (&p->rc,&(pWriter->writer).buf,&(pWriter->writer).buf.nSpace);\n      iVar7 = (pWriter->writer).pgidx.n;\n      iVar5 = (pWriter->writer).buf.n;\n      goto LAB_00102428;\n    }\n  }" { (expression_statement "fts5WriteFlushLeaf(p,pWriter);" (call_expression "fts5WriteFlushLeaf(p,pWriter)" identifier (argument_list "(p,pWriter)" ( identifier , identifier ))) ;) (if_statement "if (p->rc != 0) {\n      return;\n    }" if (parenthesized_expression "(p->rc != 0)" ( (binary_expression "p->rc != 0" (field_expression "p->rc" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "iVar5 = (pWriter->writer).buf.n;" (assignment_expression "iVar5 = (pWriter->writer).buf.n" identifier = (field_expression "(pWriter->writer).buf.n" (field_expression "(pWriter->writer).buf" (parenthesized_expression "(pWriter->writer)" ( (field_expression "pWriter->writer" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (if_statement "if ((uint)(pWriter->writer).buf.nSpace < (uint)(nTerm + 0x14 + iVar5)) {\nLAB_00102674:\n      (*(code *)(PTR_LAB_0015b714 + 0x62a4))\n                (&p->rc,&(pWriter->writer).buf,&(pWriter->writer).buf.nSpace);\n      iVar7 = (pWriter->writer).pgidx.n;\n      iVar5 = (pWriter->writer).buf.n;\n      goto LAB_00102428;\n    }" if (parenthesized_expression "((uint)(pWriter->writer).buf.nSpace < (uint)(nTerm + 0x14 + iVar5))" ( (binary_expression "(uint)(pWriter->writer).buf.nSpace < (uint)(nTerm + 0x14 + iVar5)" (field_expression "(uint)(pWriter->writer).buf.nSpace" (field_expression "(uint)(pWriter->writer).buf" (call_expression "(uint)(pWriter->writer)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pWriter->writer)" ( (field_expression "pWriter->writer" identifier -> field_identifier) ))) . field_identifier) . field_identifier) < (call_expression "(uint)(nTerm + 0x14 + iVar5)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(nTerm + 0x14 + iVar5)" ( (binary_expression "nTerm + 0x14 + iVar5" (binary_expression "nTerm + 0x14" identifier + number_literal) + identifier) )))) )) (compound_statement "{\nLAB_00102674:\n      (*(code *)(PTR_LAB_0015b714 + 0x62a4))\n                (&p->rc,&(pWriter->writer).buf,&(pWriter->writer).buf.nSpace);\n      iVar7 = (pWriter->writer).pgidx.n;\n      iVar5 = (pWriter->writer).buf.n;\n      goto LAB_00102428;\n    }" { (labeled_statement "LAB_00102674:\n      (*(code *)(PTR_LAB_0015b714 + 0x62a4))\n                (&p->rc,&(pWriter->writer).buf,&(pWriter->writer).buf.nSpace);" statement_identifier : (expression_statement "(*(code *)(PTR_LAB_0015b714 + 0x62a4))\n                (&p->rc,&(pWriter->writer).buf,&(pWriter->writer).buf.nSpace);" (call_expression "(*(code *)(PTR_LAB_0015b714 + 0x62a4))\n                (&p->rc,&(pWriter->writer).buf,&(pWriter->writer).buf.nSpace)" (parenthesized_expression "(*(code *)(PTR_LAB_0015b714 + 0x62a4))" ( (pointer_expression "*(code *)(PTR_LAB_0015b714 + 0x62a4)" * (cast_expression "(code *)(PTR_LAB_0015b714 + 0x62a4)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b714 + 0x62a4)" ( (binary_expression "PTR_LAB_0015b714 + 0x62a4" identifier + number_literal) )))) )) (argument_list "(&p->rc,&(pWriter->writer).buf,&(pWriter->writer).buf.nSpace)" ( (pointer_expression "&p->rc" & (field_expression "p->rc" identifier -> field_identifier)) , (pointer_expression "&(pWriter->writer).buf" & (field_expression "(pWriter->writer).buf" (parenthesized_expression "(pWriter->writer)" ( (field_expression "pWriter->writer" identifier -> field_identifier) )) . field_identifier)) , (pointer_expression "&(pWriter->writer).buf.nSpace" & (field_expression "(pWriter->writer).buf.nSpace" (field_expression "(pWriter->writer).buf" (parenthesized_expression "(pWriter->writer)" ( (field_expression "pWriter->writer" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ))) ;)) (expression_statement "iVar7 = (pWriter->writer).pgidx.n;" (assignment_expression "iVar7 = (pWriter->writer).pgidx.n" identifier = (field_expression "(pWriter->writer).pgidx.n" (field_expression "(pWriter->writer).pgidx" (parenthesized_expression "(pWriter->writer)" ( (field_expression "pWriter->writer" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (expression_statement "iVar5 = (pWriter->writer).buf.n;" (assignment_expression "iVar5 = (pWriter->writer).buf.n" identifier = (field_expression "(pWriter->writer).buf.n" (field_expression "(pWriter->writer).buf" (parenthesized_expression "(pWriter->writer)" ( (field_expression "pWriter->writer" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (goto_statement "goto LAB_00102428;" goto statement_identifier ;) })) }))) (expression_statement "iVar7 = (pWriter->writer).pgidx.n;" (assignment_expression "iVar7 = (pWriter->writer).pgidx.n" identifier = (field_expression "(pWriter->writer).pgidx.n" (field_expression "(pWriter->writer).pgidx" (parenthesized_expression "(pWriter->writer)" ( (field_expression "pWriter->writer" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (labeled_statement "LAB_00102428:\n  uVar9 = iVar5 - (pWriter->writer).iPrevPgidx;" statement_identifier : (expression_statement "uVar9 = iVar5 - (pWriter->writer).iPrevPgidx;" (assignment_expression "uVar9 = iVar5 - (pWriter->writer).iPrevPgidx" identifier = (binary_expression "iVar5 - (pWriter->writer).iPrevPgidx" identifier - (field_expression "(pWriter->writer).iPrevPgidx" (parenthesized_expression "(pWriter->writer)" ( (field_expression "pWriter->writer" identifier -> field_identifier) )) . field_identifier))) ;)) (if_statement "if (((int)uVar9 < 0) || (0x7f < uVar9)) {\n    iVar5 = (*(code *)(PTR_LAB_0015b6d8 + 0x54))();\n  }\n  else {\n    (pWriter->writer).pgidx.p[iVar7] = (u8)uVar9;\n    iVar5 = 1;\n  }" if (parenthesized_expression "(((int)uVar9 < 0) || (0x7f < uVar9))" ( (binary_expression "((int)uVar9 < 0) || (0x7f < uVar9)" (parenthesized_expression "((int)uVar9 < 0)" ( (binary_expression "(int)uVar9 < 0" (cast_expression "(int)uVar9" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) || (parenthesized_expression "(0x7f < uVar9)" ( (binary_expression "0x7f < uVar9" number_literal < identifier) ))) )) (compound_statement "{\n    iVar5 = (*(code *)(PTR_LAB_0015b6d8 + 0x54))();\n  }" { (expression_statement "iVar5 = (*(code *)(PTR_LAB_0015b6d8 + 0x54))();" (assignment_expression "iVar5 = (*(code *)(PTR_LAB_0015b6d8 + 0x54))()" identifier = (call_expression "(*(code *)(PTR_LAB_0015b6d8 + 0x54))()" (parenthesized_expression "(*(code *)(PTR_LAB_0015b6d8 + 0x54))" ( (pointer_expression "*(code *)(PTR_LAB_0015b6d8 + 0x54)" * (cast_expression "(code *)(PTR_LAB_0015b6d8 + 0x54)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b6d8 + 0x54)" ( (binary_expression "PTR_LAB_0015b6d8 + 0x54" identifier + number_literal) )))) )) (argument_list "()" ( )))) ;) }) (else_clause "else {\n    (pWriter->writer).pgidx.p[iVar7] = (u8)uVar9;\n    iVar5 = 1;\n  }" else (compound_statement "{\n    (pWriter->writer).pgidx.p[iVar7] = (u8)uVar9;\n    iVar5 = 1;\n  }" { (expression_statement "(pWriter->writer).pgidx.p[iVar7] = (u8)uVar9;" (assignment_expression "(pWriter->writer).pgidx.p[iVar7] = (u8)uVar9" (subscript_expression "(pWriter->writer).pgidx.p[iVar7]" (field_expression "(pWriter->writer).pgidx.p" (field_expression "(pWriter->writer).pgidx" (parenthesized_expression "(pWriter->writer)" ( (field_expression "pWriter->writer" identifier -> field_identifier) )) . field_identifier) . field_identifier) [ identifier ]) = (cast_expression "(u8)uVar9" ( (type_descriptor "u8" type_identifier) ) identifier)) ;) (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" identifier = number_literal) ;) }))) (expression_statement "iVar7 = (pWriter->writer).pgidx.n;" (assignment_expression "iVar7 = (pWriter->writer).pgidx.n" identifier = (field_expression "(pWriter->writer).pgidx.n" (field_expression "(pWriter->writer).pgidx" (parenthesized_expression "(pWriter->writer)" ( (field_expression "pWriter->writer" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (expression_statement "uVar1 = pWriter->bFirstTermInPage;" (assignment_expression "uVar1 = pWriter->bFirstTermInPage" identifier = (field_expression "pWriter->bFirstTermInPage" identifier -> field_identifier)) ;) (expression_statement "(pWriter->writer).iPrevPgidx = (pWriter->writer).buf.n;" (assignment_expression "(pWriter->writer).iPrevPgidx = (pWriter->writer).buf.n" (field_expression "(pWriter->writer).iPrevPgidx" (parenthesized_expression "(pWriter->writer)" ( (field_expression "pWriter->writer" identifier -> field_identifier) )) . field_identifier) = (field_expression "(pWriter->writer).buf.n" (field_expression "(pWriter->writer).buf" (parenthesized_expression "(pWriter->writer)" ( (field_expression "pWriter->writer" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (expression_statement "(pWriter->writer).pgidx.n = iVar7 + iVar5;" (assignment_expression "(pWriter->writer).pgidx.n = iVar7 + iVar5" (field_expression "(pWriter->writer).pgidx.n" (field_expression "(pWriter->writer).pgidx" (parenthesized_expression "(pWriter->writer)" ( (field_expression "pWriter->writer" identifier -> field_identifier) )) . field_identifier) . field_identifier) = (binary_expression "iVar7 + iVar5" identifier + identifier)) ;) (expression_statement "puVar11 = pTerm;" (assignment_expression "puVar11 = pTerm" identifier = identifier) ;) (expression_statement "iVar5 = nTerm;" (assignment_expression "iVar5 = nTerm" identifier = identifier) ;) (if_statement "if (uVar1 == '\0') {\n    puVar6 = (pWriter->writer).term.p;\n    if (iVar8 < 1) {\n      iVar8 = 0;\n      iVar7 = 0;\n    }\n    else if (*pTerm == *puVar6) {\n      iVar5 = 0;\n      puVar4 = pTerm + 1;\n      do {\n        puVar11 = puVar4;\n        iVar5 = iVar5 + 1;\n        iVar7 = iVar8;\n        if (iVar8 == iVar5) break;\n        puVar4 = puVar11 + 1;\n        iVar7 = iVar5;\n      } while (puVar6[iVar5] == *puVar11);\n      iVar8 = iVar7 >> 0x1f;\n      iVar5 = nTerm - iVar7;\n    }\n    else {\n      iVar8 = 0;\n      iVar7 = 0;\n    }\n    pcVar13 = (code *)(PTR_LAB_0015b714 + 0x7700);\n    (*pcVar13)(&p->rc,&(pWriter->writer).buf,iVar8,iVar7);\n    pcVar10 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n  }\n  else {\n    if ((pWriter->writer).pgno == 1) {\n      pcVar10 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n    }\n    else {\n      iVar7 = nTerm;\n      if ((pWriter->writer).term.n != 0) {\n        puVar6 = (pWriter->writer).term.p;\n        if ((iVar8 < 1) || (*pTerm != *puVar6)) {\n          iVar7 = 1;\n        }\n        else {\n          iVar3 = 2;\n          do {\n            iVar7 = iVar3;\n            if (iVar8 + 1 == iVar7) {\n              iVar8 = pWriter->iBtPage;\n              goto LAB_001025a4;\n            }\n            iVar3 = iVar7 + 1;\n          } while (pTerm[iVar7 + -1] == puVar6[iVar7 + -1]);\n        }\n      }\n      iVar8 = pWriter->iBtPage;\nLAB_001025a4:\n      if (iVar8 != 0) {\n        fts5WriteFlushBtree(p,pWriter);\n      }\n      puVar2 = PTR_LAB_0015b714;\n      if (p->rc != 0) {\n        return;\n      }\n      (pWriter->btterm).n = 0;\n      pcVar10 = (code *)(puVar2 + 0x63a0);\n      (*pcVar10)(&p->rc,&pWriter->btterm,iVar7,pTerm);\n      pWriter->iBtPage = (pWriter->writer).pgno;\n      if (p->rc != 0) {\n        return;\n      }\n    }\n    pcVar13 = (code *)(PTR_LAB_0015b714 + 0x7700);\n  }" if (parenthesized_expression "(uVar1 == '\0')" ( (binary_expression "uVar1 == '\0'" identifier == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    puVar6 = (pWriter->writer).term.p;\n    if (iVar8 < 1) {\n      iVar8 = 0;\n      iVar7 = 0;\n    }\n    else if (*pTerm == *puVar6) {\n      iVar5 = 0;\n      puVar4 = pTerm + 1;\n      do {\n        puVar11 = puVar4;\n        iVar5 = iVar5 + 1;\n        iVar7 = iVar8;\n        if (iVar8 == iVar5) break;\n        puVar4 = puVar11 + 1;\n        iVar7 = iVar5;\n      } while (puVar6[iVar5] == *puVar11);\n      iVar8 = iVar7 >> 0x1f;\n      iVar5 = nTerm - iVar7;\n    }\n    else {\n      iVar8 = 0;\n      iVar7 = 0;\n    }\n    pcVar13 = (code *)(PTR_LAB_0015b714 + 0x7700);\n    (*pcVar13)(&p->rc,&(pWriter->writer).buf,iVar8,iVar7);\n    pcVar10 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n  }" { (expression_statement "puVar6 = (pWriter->writer).term.p;" (assignment_expression "puVar6 = (pWriter->writer).term.p" identifier = (field_expression "(pWriter->writer).term.p" (field_expression "(pWriter->writer).term" (parenthesized_expression "(pWriter->writer)" ( (field_expression "pWriter->writer" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (if_statement "if (iVar8 < 1) {\n      iVar8 = 0;\n      iVar7 = 0;\n    }\n    else if (*pTerm == *puVar6) {\n      iVar5 = 0;\n      puVar4 = pTerm + 1;\n      do {\n        puVar11 = puVar4;\n        iVar5 = iVar5 + 1;\n        iVar7 = iVar8;\n        if (iVar8 == iVar5) break;\n        puVar4 = puVar11 + 1;\n        iVar7 = iVar5;\n      } while (puVar6[iVar5] == *puVar11);\n      iVar8 = iVar7 >> 0x1f;\n      iVar5 = nTerm - iVar7;\n    }\n    else {\n      iVar8 = 0;\n      iVar7 = 0;\n    }" if (parenthesized_expression "(iVar8 < 1)" ( (binary_expression "iVar8 < 1" identifier < number_literal) )) (compound_statement "{\n      iVar8 = 0;\n      iVar7 = 0;\n    }" { (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) }) (else_clause "else if (*pTerm == *puVar6) {\n      iVar5 = 0;\n      puVar4 = pTerm + 1;\n      do {\n        puVar11 = puVar4;\n        iVar5 = iVar5 + 1;\n        iVar7 = iVar8;\n        if (iVar8 == iVar5) break;\n        puVar4 = puVar11 + 1;\n        iVar7 = iVar5;\n      } while (puVar6[iVar5] == *puVar11);\n      iVar8 = iVar7 >> 0x1f;\n      iVar5 = nTerm - iVar7;\n    }\n    else {\n      iVar8 = 0;\n      iVar7 = 0;\n    }" else (if_statement "if (*pTerm == *puVar6) {\n      iVar5 = 0;\n      puVar4 = pTerm + 1;\n      do {\n        puVar11 = puVar4;\n        iVar5 = iVar5 + 1;\n        iVar7 = iVar8;\n        if (iVar8 == iVar5) break;\n        puVar4 = puVar11 + 1;\n        iVar7 = iVar5;\n      } while (puVar6[iVar5] == *puVar11);\n      iVar8 = iVar7 >> 0x1f;\n      iVar5 = nTerm - iVar7;\n    }\n    else {\n      iVar8 = 0;\n      iVar7 = 0;\n    }" if (parenthesized_expression "(*pTerm == *puVar6)" ( (binary_expression "*pTerm == *puVar6" (pointer_expression "*pTerm" * identifier) == (pointer_expression "*puVar6" * identifier)) )) (compound_statement "{\n      iVar5 = 0;\n      puVar4 = pTerm + 1;\n      do {\n        puVar11 = puVar4;\n        iVar5 = iVar5 + 1;\n        iVar7 = iVar8;\n        if (iVar8 == iVar5) break;\n        puVar4 = puVar11 + 1;\n        iVar7 = iVar5;\n      } while (puVar6[iVar5] == *puVar11);\n      iVar8 = iVar7 >> 0x1f;\n      iVar5 = nTerm - iVar7;\n    }" { (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) (expression_statement "puVar4 = pTerm + 1;" (assignment_expression "puVar4 = pTerm + 1" identifier = (binary_expression "pTerm + 1" identifier + number_literal)) ;) (do_statement "do {\n        puVar11 = puVar4;\n        iVar5 = iVar5 + 1;\n        iVar7 = iVar8;\n        if (iVar8 == iVar5) break;\n        puVar4 = puVar11 + 1;\n        iVar7 = iVar5;\n      } while (puVar6[iVar5] == *puVar11);" do (compound_statement "{\n        puVar11 = puVar4;\n        iVar5 = iVar5 + 1;\n        iVar7 = iVar8;\n        if (iVar8 == iVar5) break;\n        puVar4 = puVar11 + 1;\n        iVar7 = iVar5;\n      }" { (expression_statement "puVar11 = puVar4;" (assignment_expression "puVar11 = puVar4" identifier = identifier) ;) (expression_statement "iVar5 = iVar5 + 1;" (assignment_expression "iVar5 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) (expression_statement "iVar7 = iVar8;" (assignment_expression "iVar7 = iVar8" identifier = identifier) ;) (if_statement "if (iVar8 == iVar5) break;" if (parenthesized_expression "(iVar8 == iVar5)" ( (binary_expression "iVar8 == iVar5" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "puVar4 = puVar11 + 1;" (assignment_expression "puVar4 = puVar11 + 1" identifier = (binary_expression "puVar11 + 1" identifier + number_literal)) ;) (expression_statement "iVar7 = iVar5;" (assignment_expression "iVar7 = iVar5" identifier = identifier) ;) }) while (parenthesized_expression "(puVar6[iVar5] == *puVar11)" ( (binary_expression "puVar6[iVar5] == *puVar11" (subscript_expression "puVar6[iVar5]" identifier [ identifier ]) == (pointer_expression "*puVar11" * identifier)) )) ;) (expression_statement "iVar8 = iVar7 >> 0x1f;" (assignment_expression "iVar8 = iVar7 >> 0x1f" identifier = (binary_expression "iVar7 >> 0x1f" identifier >> number_literal)) ;) (expression_statement "iVar5 = nTerm - iVar7;" (assignment_expression "iVar5 = nTerm - iVar7" identifier = (binary_expression "nTerm - iVar7" identifier - identifier)) ;) }) (else_clause "else {\n      iVar8 = 0;\n      iVar7 = 0;\n    }" else (compound_statement "{\n      iVar8 = 0;\n      iVar7 = 0;\n    }" { (expression_statement "iVar8 = 0;" (assignment_expression "iVar8 = 0" identifier = number_literal) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) }))))) (expression_statement "pcVar13 = (code *)(PTR_LAB_0015b714 + 0x7700);" (assignment_expression "pcVar13 = (code *)(PTR_LAB_0015b714 + 0x7700)" identifier = (cast_expression "(code *)(PTR_LAB_0015b714 + 0x7700)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b714 + 0x7700)" ( (binary_expression "PTR_LAB_0015b714 + 0x7700" identifier + number_literal) )))) ;) (expression_statement "(*pcVar13)(&p->rc,&(pWriter->writer).buf,iVar8,iVar7);" (call_expression "(*pcVar13)(&p->rc,&(pWriter->writer).buf,iVar8,iVar7)" (parenthesized_expression "(*pcVar13)" ( (pointer_expression "*pcVar13" * identifier) )) (argument_list "(&p->rc,&(pWriter->writer).buf,iVar8,iVar7)" ( (pointer_expression "&p->rc" & (field_expression "p->rc" identifier -> field_identifier)) , (pointer_expression "&(pWriter->writer).buf" & (field_expression "(pWriter->writer).buf" (parenthesized_expression "(pWriter->writer)" ( (field_expression "pWriter->writer" identifier -> field_identifier) )) . field_identifier)) , identifier , identifier ))) ;) (expression_statement "pcVar10 = (code *)(PTR_LAB_0015b714 + 0x63a0);" (assignment_expression "pcVar10 = (code *)(PTR_LAB_0015b714 + 0x63a0)" identifier = (cast_expression "(code *)(PTR_LAB_0015b714 + 0x63a0)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b714 + 0x63a0)" ( (binary_expression "PTR_LAB_0015b714 + 0x63a0" identifier + number_literal) )))) ;) }) (else_clause "else {\n    if ((pWriter->writer).pgno == 1) {\n      pcVar10 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n    }\n    else {\n      iVar7 = nTerm;\n      if ((pWriter->writer).term.n != 0) {\n        puVar6 = (pWriter->writer).term.p;\n        if ((iVar8 < 1) || (*pTerm != *puVar6)) {\n          iVar7 = 1;\n        }\n        else {\n          iVar3 = 2;\n          do {\n            iVar7 = iVar3;\n            if (iVar8 + 1 == iVar7) {\n              iVar8 = pWriter->iBtPage;\n              goto LAB_001025a4;\n            }\n            iVar3 = iVar7 + 1;\n          } while (pTerm[iVar7 + -1] == puVar6[iVar7 + -1]);\n        }\n      }\n      iVar8 = pWriter->iBtPage;\nLAB_001025a4:\n      if (iVar8 != 0) {\n        fts5WriteFlushBtree(p,pWriter);\n      }\n      puVar2 = PTR_LAB_0015b714;\n      if (p->rc != 0) {\n        return;\n      }\n      (pWriter->btterm).n = 0;\n      pcVar10 = (code *)(puVar2 + 0x63a0);\n      (*pcVar10)(&p->rc,&pWriter->btterm,iVar7,pTerm);\n      pWriter->iBtPage = (pWriter->writer).pgno;\n      if (p->rc != 0) {\n        return;\n      }\n    }\n    pcVar13 = (code *)(PTR_LAB_0015b714 + 0x7700);\n  }" else (compound_statement "{\n    if ((pWriter->writer).pgno == 1) {\n      pcVar10 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n    }\n    else {\n      iVar7 = nTerm;\n      if ((pWriter->writer).term.n != 0) {\n        puVar6 = (pWriter->writer).term.p;\n        if ((iVar8 < 1) || (*pTerm != *puVar6)) {\n          iVar7 = 1;\n        }\n        else {\n          iVar3 = 2;\n          do {\n            iVar7 = iVar3;\n            if (iVar8 + 1 == iVar7) {\n              iVar8 = pWriter->iBtPage;\n              goto LAB_001025a4;\n            }\n            iVar3 = iVar7 + 1;\n          } while (pTerm[iVar7 + -1] == puVar6[iVar7 + -1]);\n        }\n      }\n      iVar8 = pWriter->iBtPage;\nLAB_001025a4:\n      if (iVar8 != 0) {\n        fts5WriteFlushBtree(p,pWriter);\n      }\n      puVar2 = PTR_LAB_0015b714;\n      if (p->rc != 0) {\n        return;\n      }\n      (pWriter->btterm).n = 0;\n      pcVar10 = (code *)(puVar2 + 0x63a0);\n      (*pcVar10)(&p->rc,&pWriter->btterm,iVar7,pTerm);\n      pWriter->iBtPage = (pWriter->writer).pgno;\n      if (p->rc != 0) {\n        return;\n      }\n    }\n    pcVar13 = (code *)(PTR_LAB_0015b714 + 0x7700);\n  }" { (if_statement "if ((pWriter->writer).pgno == 1) {\n      pcVar10 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n    }\n    else {\n      iVar7 = nTerm;\n      if ((pWriter->writer).term.n != 0) {\n        puVar6 = (pWriter->writer).term.p;\n        if ((iVar8 < 1) || (*pTerm != *puVar6)) {\n          iVar7 = 1;\n        }\n        else {\n          iVar3 = 2;\n          do {\n            iVar7 = iVar3;\n            if (iVar8 + 1 == iVar7) {\n              iVar8 = pWriter->iBtPage;\n              goto LAB_001025a4;\n            }\n            iVar3 = iVar7 + 1;\n          } while (pTerm[iVar7 + -1] == puVar6[iVar7 + -1]);\n        }\n      }\n      iVar8 = pWriter->iBtPage;\nLAB_001025a4:\n      if (iVar8 != 0) {\n        fts5WriteFlushBtree(p,pWriter);\n      }\n      puVar2 = PTR_LAB_0015b714;\n      if (p->rc != 0) {\n        return;\n      }\n      (pWriter->btterm).n = 0;\n      pcVar10 = (code *)(puVar2 + 0x63a0);\n      (*pcVar10)(&p->rc,&pWriter->btterm,iVar7,pTerm);\n      pWriter->iBtPage = (pWriter->writer).pgno;\n      if (p->rc != 0) {\n        return;\n      }\n    }" if (parenthesized_expression "((pWriter->writer).pgno == 1)" ( (binary_expression "(pWriter->writer).pgno == 1" (field_expression "(pWriter->writer).pgno" (parenthesized_expression "(pWriter->writer)" ( (field_expression "pWriter->writer" identifier -> field_identifier) )) . field_identifier) == number_literal) )) (compound_statement "{\n      pcVar10 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n    }" { (expression_statement "pcVar10 = (code *)(PTR_LAB_0015b714 + 0x63a0);" (assignment_expression "pcVar10 = (code *)(PTR_LAB_0015b714 + 0x63a0)" identifier = (cast_expression "(code *)(PTR_LAB_0015b714 + 0x63a0)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b714 + 0x63a0)" ( (binary_expression "PTR_LAB_0015b714 + 0x63a0" identifier + number_literal) )))) ;) }) (else_clause "else {\n      iVar7 = nTerm;\n      if ((pWriter->writer).term.n != 0) {\n        puVar6 = (pWriter->writer).term.p;\n        if ((iVar8 < 1) || (*pTerm != *puVar6)) {\n          iVar7 = 1;\n        }\n        else {\n          iVar3 = 2;\n          do {\n            iVar7 = iVar3;\n            if (iVar8 + 1 == iVar7) {\n              iVar8 = pWriter->iBtPage;\n              goto LAB_001025a4;\n            }\n            iVar3 = iVar7 + 1;\n          } while (pTerm[iVar7 + -1] == puVar6[iVar7 + -1]);\n        }\n      }\n      iVar8 = pWriter->iBtPage;\nLAB_001025a4:\n      if (iVar8 != 0) {\n        fts5WriteFlushBtree(p,pWriter);\n      }\n      puVar2 = PTR_LAB_0015b714;\n      if (p->rc != 0) {\n        return;\n      }\n      (pWriter->btterm).n = 0;\n      pcVar10 = (code *)(puVar2 + 0x63a0);\n      (*pcVar10)(&p->rc,&pWriter->btterm,iVar7,pTerm);\n      pWriter->iBtPage = (pWriter->writer).pgno;\n      if (p->rc != 0) {\n        return;\n      }\n    }" else (compound_statement "{\n      iVar7 = nTerm;\n      if ((pWriter->writer).term.n != 0) {\n        puVar6 = (pWriter->writer).term.p;\n        if ((iVar8 < 1) || (*pTerm != *puVar6)) {\n          iVar7 = 1;\n        }\n        else {\n          iVar3 = 2;\n          do {\n            iVar7 = iVar3;\n            if (iVar8 + 1 == iVar7) {\n              iVar8 = pWriter->iBtPage;\n              goto LAB_001025a4;\n            }\n            iVar3 = iVar7 + 1;\n          } while (pTerm[iVar7 + -1] == puVar6[iVar7 + -1]);\n        }\n      }\n      iVar8 = pWriter->iBtPage;\nLAB_001025a4:\n      if (iVar8 != 0) {\n        fts5WriteFlushBtree(p,pWriter);\n      }\n      puVar2 = PTR_LAB_0015b714;\n      if (p->rc != 0) {\n        return;\n      }\n      (pWriter->btterm).n = 0;\n      pcVar10 = (code *)(puVar2 + 0x63a0);\n      (*pcVar10)(&p->rc,&pWriter->btterm,iVar7,pTerm);\n      pWriter->iBtPage = (pWriter->writer).pgno;\n      if (p->rc != 0) {\n        return;\n      }\n    }" { (expression_statement "iVar7 = nTerm;" (assignment_expression "iVar7 = nTerm" identifier = identifier) ;) (if_statement "if ((pWriter->writer).term.n != 0) {\n        puVar6 = (pWriter->writer).term.p;\n        if ((iVar8 < 1) || (*pTerm != *puVar6)) {\n          iVar7 = 1;\n        }\n        else {\n          iVar3 = 2;\n          do {\n            iVar7 = iVar3;\n            if (iVar8 + 1 == iVar7) {\n              iVar8 = pWriter->iBtPage;\n              goto LAB_001025a4;\n            }\n            iVar3 = iVar7 + 1;\n          } while (pTerm[iVar7 + -1] == puVar6[iVar7 + -1]);\n        }\n      }" if (parenthesized_expression "((pWriter->writer).term.n != 0)" ( (binary_expression "(pWriter->writer).term.n != 0" (field_expression "(pWriter->writer).term.n" (field_expression "(pWriter->writer).term" (parenthesized_expression "(pWriter->writer)" ( (field_expression "pWriter->writer" identifier -> field_identifier) )) . field_identifier) . field_identifier) != number_literal) )) (compound_statement "{\n        puVar6 = (pWriter->writer).term.p;\n        if ((iVar8 < 1) || (*pTerm != *puVar6)) {\n          iVar7 = 1;\n        }\n        else {\n          iVar3 = 2;\n          do {\n            iVar7 = iVar3;\n            if (iVar8 + 1 == iVar7) {\n              iVar8 = pWriter->iBtPage;\n              goto LAB_001025a4;\n            }\n            iVar3 = iVar7 + 1;\n          } while (pTerm[iVar7 + -1] == puVar6[iVar7 + -1]);\n        }\n      }" { (expression_statement "puVar6 = (pWriter->writer).term.p;" (assignment_expression "puVar6 = (pWriter->writer).term.p" identifier = (field_expression "(pWriter->writer).term.p" (field_expression "(pWriter->writer).term" (parenthesized_expression "(pWriter->writer)" ( (field_expression "pWriter->writer" identifier -> field_identifier) )) . field_identifier) . field_identifier)) ;) (if_statement "if ((iVar8 < 1) || (*pTerm != *puVar6)) {\n          iVar7 = 1;\n        }\n        else {\n          iVar3 = 2;\n          do {\n            iVar7 = iVar3;\n            if (iVar8 + 1 == iVar7) {\n              iVar8 = pWriter->iBtPage;\n              goto LAB_001025a4;\n            }\n            iVar3 = iVar7 + 1;\n          } while (pTerm[iVar7 + -1] == puVar6[iVar7 + -1]);\n        }" if (parenthesized_expression "((iVar8 < 1) || (*pTerm != *puVar6))" ( (binary_expression "(iVar8 < 1) || (*pTerm != *puVar6)" (parenthesized_expression "(iVar8 < 1)" ( (binary_expression "iVar8 < 1" identifier < number_literal) )) || (parenthesized_expression "(*pTerm != *puVar6)" ( (binary_expression "*pTerm != *puVar6" (pointer_expression "*pTerm" * identifier) != (pointer_expression "*puVar6" * identifier)) ))) )) (compound_statement "{\n          iVar7 = 1;\n        }" { (expression_statement "iVar7 = 1;" (assignment_expression "iVar7 = 1" identifier = number_literal) ;) }) (else_clause "else {\n          iVar3 = 2;\n          do {\n            iVar7 = iVar3;\n            if (iVar8 + 1 == iVar7) {\n              iVar8 = pWriter->iBtPage;\n              goto LAB_001025a4;\n            }\n            iVar3 = iVar7 + 1;\n          } while (pTerm[iVar7 + -1] == puVar6[iVar7 + -1]);\n        }" else (compound_statement "{\n          iVar3 = 2;\n          do {\n            iVar7 = iVar3;\n            if (iVar8 + 1 == iVar7) {\n              iVar8 = pWriter->iBtPage;\n              goto LAB_001025a4;\n            }\n            iVar3 = iVar7 + 1;\n          } while (pTerm[iVar7 + -1] == puVar6[iVar7 + -1]);\n        }" { (expression_statement "iVar3 = 2;" (assignment_expression "iVar3 = 2" identifier = number_literal) ;) (do_statement "do {\n            iVar7 = iVar3;\n            if (iVar8 + 1 == iVar7) {\n              iVar8 = pWriter->iBtPage;\n              goto LAB_001025a4;\n            }\n            iVar3 = iVar7 + 1;\n          } while (pTerm[iVar7 + -1] == puVar6[iVar7 + -1]);" do (compound_statement "{\n            iVar7 = iVar3;\n            if (iVar8 + 1 == iVar7) {\n              iVar8 = pWriter->iBtPage;\n              goto LAB_001025a4;\n            }\n            iVar3 = iVar7 + 1;\n          }" { (expression_statement "iVar7 = iVar3;" (assignment_expression "iVar7 = iVar3" identifier = identifier) ;) (if_statement "if (iVar8 + 1 == iVar7) {\n              iVar8 = pWriter->iBtPage;\n              goto LAB_001025a4;\n            }" if (parenthesized_expression "(iVar8 + 1 == iVar7)" ( (binary_expression "iVar8 + 1 == iVar7" (binary_expression "iVar8 + 1" identifier + number_literal) == identifier) )) (compound_statement "{\n              iVar8 = pWriter->iBtPage;\n              goto LAB_001025a4;\n            }" { (expression_statement "iVar8 = pWriter->iBtPage;" (assignment_expression "iVar8 = pWriter->iBtPage" identifier = (field_expression "pWriter->iBtPage" identifier -> field_identifier)) ;) (goto_statement "goto LAB_001025a4;" goto statement_identifier ;) })) (expression_statement "iVar3 = iVar7 + 1;" (assignment_expression "iVar3 = iVar7 + 1" identifier = (binary_expression "iVar7 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(pTerm[iVar7 + -1] == puVar6[iVar7 + -1])" ( (binary_expression "pTerm[iVar7 + -1] == puVar6[iVar7 + -1]" (subscript_expression "pTerm[iVar7 + -1]" identifier [ (binary_expression "iVar7 + -1" identifier + number_literal) ]) == (subscript_expression "puVar6[iVar7 + -1]" identifier [ (binary_expression "iVar7 + -1" identifier + number_literal) ])) )) ;) }))) })) (expression_statement "iVar8 = pWriter->iBtPage;" (assignment_expression "iVar8 = pWriter->iBtPage" identifier = (field_expression "pWriter->iBtPage" identifier -> field_identifier)) ;) (labeled_statement "LAB_001025a4:\n      if (iVar8 != 0) {\n        fts5WriteFlushBtree(p,pWriter);\n      }" statement_identifier : (if_statement "if (iVar8 != 0) {\n        fts5WriteFlushBtree(p,pWriter);\n      }" if (parenthesized_expression "(iVar8 != 0)" ( (binary_expression "iVar8 != 0" identifier != number_literal) )) (compound_statement "{\n        fts5WriteFlushBtree(p,pWriter);\n      }" { (expression_statement "fts5WriteFlushBtree(p,pWriter);" (call_expression "fts5WriteFlushBtree(p,pWriter)" identifier (argument_list "(p,pWriter)" ( identifier , identifier ))) ;) }))) (expression_statement "puVar2 = PTR_LAB_0015b714;" (assignment_expression "puVar2 = PTR_LAB_0015b714" identifier = identifier) ;) (if_statement "if (p->rc != 0) {\n        return;\n      }" if (parenthesized_expression "(p->rc != 0)" ( (binary_expression "p->rc != 0" (field_expression "p->rc" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "(pWriter->btterm).n = 0;" (assignment_expression "(pWriter->btterm).n = 0" (field_expression "(pWriter->btterm).n" (parenthesized_expression "(pWriter->btterm)" ( (field_expression "pWriter->btterm" identifier -> field_identifier) )) . field_identifier) = number_literal) ;) (expression_statement "pcVar10 = (code *)(puVar2 + 0x63a0);" (assignment_expression "pcVar10 = (code *)(puVar2 + 0x63a0)" identifier = (cast_expression "(code *)(puVar2 + 0x63a0)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x63a0)" ( (binary_expression "puVar2 + 0x63a0" identifier + number_literal) )))) ;) (expression_statement "(*pcVar10)(&p->rc,&pWriter->btterm,iVar7,pTerm);" (call_expression "(*pcVar10)(&p->rc,&pWriter->btterm,iVar7,pTerm)" (parenthesized_expression "(*pcVar10)" ( (pointer_expression "*pcVar10" * identifier) )) (argument_list "(&p->rc,&pWriter->btterm,iVar7,pTerm)" ( (pointer_expression "&p->rc" & (field_expression "p->rc" identifier -> field_identifier)) , (pointer_expression "&pWriter->btterm" & (field_expression "pWriter->btterm" identifier -> field_identifier)) , identifier , identifier ))) ;) (expression_statement "pWriter->iBtPage = (pWriter->writer).pgno;" (assignment_expression "pWriter->iBtPage = (pWriter->writer).pgno" (field_expression "pWriter->iBtPage" identifier -> field_identifier) = (field_expression "(pWriter->writer).pgno" (parenthesized_expression "(pWriter->writer)" ( (field_expression "pWriter->writer" identifier -> field_identifier) )) . field_identifier)) ;) (if_statement "if (p->rc != 0) {\n        return;\n      }" if (parenthesized_expression "(p->rc != 0)" ( (binary_expression "p->rc != 0" (field_expression "p->rc" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) }))) (expression_statement "pcVar13 = (code *)(PTR_LAB_0015b714 + 0x7700);" (assignment_expression "pcVar13 = (code *)(PTR_LAB_0015b714 + 0x7700)" identifier = (cast_expression "(code *)(PTR_LAB_0015b714 + 0x7700)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b714 + 0x7700)" ( (binary_expression "PTR_LAB_0015b714 + 0x7700" identifier + number_literal) )))) ;) }))) (expression_statement "piVar12 = &p->rc;" (assignment_expression "piVar12 = &p->rc" identifier = (pointer_expression "&p->rc" & (field_expression "p->rc" identifier -> field_identifier))) ;) (expression_statement "pFVar14 = &(pWriter->writer).buf;" (assignment_expression "pFVar14 = &(pWriter->writer).buf" identifier = (pointer_expression "&(pWriter->writer).buf" & (field_expression "(pWriter->writer).buf" (parenthesized_expression "(pWriter->writer)" ( (field_expression "pWriter->writer" identifier -> field_identifier) )) . field_identifier))) ;) (expression_statement "(*pcVar13)(piVar12,pFVar14,iVar5 >> 0x1f,iVar5);" (call_expression "(*pcVar13)(piVar12,pFVar14,iVar5 >> 0x1f,iVar5)" (parenthesized_expression "(*pcVar13)" ( (pointer_expression "*pcVar13" * identifier) )) (argument_list "(piVar12,pFVar14,iVar5 >> 0x1f,iVar5)" ( identifier , identifier , (binary_expression "iVar5 >> 0x1f" identifier >> number_literal) , identifier ))) ;) (expression_statement "(*pcVar10)(piVar12,pFVar14,iVar5,puVar11);" (call_expression "(*pcVar10)(piVar12,pFVar14,iVar5,puVar11)" (parenthesized_expression "(*pcVar10)" ( (pointer_expression "*pcVar10" * identifier) )) (argument_list "(piVar12,pFVar14,iVar5,puVar11)" ( identifier , identifier , identifier , identifier ))) ;) (expression_statement "(pWriter->writer).term.n = 0;" (assignment_expression "(pWriter->writer).term.n = 0" (field_expression "(pWriter->writer).term.n" (field_expression "(pWriter->writer).term" (parenthesized_expression "(pWriter->writer)" ( (field_expression "pWriter->writer" identifier -> field_identifier) )) . field_identifier) . field_identifier) = number_literal) ;) (expression_statement "(*pcVar10)(piVar12,&(pWriter->writer).term,nTerm,pTerm);" (call_expression "(*pcVar10)(piVar12,&(pWriter->writer).term,nTerm,pTerm)" (parenthesized_expression "(*pcVar10)" ( (pointer_expression "*pcVar10" * identifier) )) (argument_list "(piVar12,&(pWriter->writer).term,nTerm,pTerm)" ( identifier , (pointer_expression "&(pWriter->writer).term" & (field_expression "(pWriter->writer).term" (parenthesized_expression "(pWriter->writer)" ( (field_expression "pWriter->writer" identifier -> field_identifier) )) . field_identifier)) , identifier , identifier ))) ;) (expression_statement "iVar8 = (pWriter->writer).pgno;" (assignment_expression "iVar8 = (pWriter->writer).pgno" identifier = (field_expression "(pWriter->writer).pgno" (parenthesized_expression "(pWriter->writer)" ( (field_expression "pWriter->writer" identifier -> field_identifier) )) . field_identifier)) ;) (expression_statement "pWriter->bFirstRowidInDoclist = '\x01';" (assignment_expression "pWriter->bFirstRowidInDoclist = '\x01'" (field_expression "pWriter->bFirstRowidInDoclist" identifier -> field_identifier) = (char_literal "'\x01'" ' escape_sequence ')) ;) (expression_statement "pWriter->bFirstRowidInPage = '\0';" (assignment_expression "pWriter->bFirstRowidInPage = '\0'" (field_expression "pWriter->bFirstRowidInPage" identifier -> field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pWriter->bFirstTermInPage = '\0';" (assignment_expression "pWriter->bFirstTermInPage = '\0'" (field_expression "pWriter->bFirstTermInPage" identifier -> field_identifier) = (char_literal "'\0'" ' escape_sequence ')) ;) (expression_statement "pWriter->aDlidx->pgno = iVar8;" (assignment_expression "pWriter->aDlidx->pgno = iVar8" (field_expression "pWriter->aDlidx->pgno" (field_expression "pWriter->aDlidx" identifier -> field_identifier) -> field_identifier) = identifier) ;) (return_statement "return;" return ;) })))
(translation_unit "void FUN_00102384(int *param_1,int param_2,int param_3,char *param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  uint uVar7;\n  code *pcVar8;\n  char *pcVar9;\n  code *pcVar10;\n  \n  iVar4 = *(int *)(param_2 + 0x10);\n  iVar5 = *(int *)(param_2 + 0x1c);\n  iVar6 = *(int *)(param_2 + 0x28);\n  if (param_3 < *(int *)(param_2 + 0x28)) {\n    iVar6 = param_3;\n  }\n  if (iVar4 + iVar5 + param_3 + 2 < *(int *)(*param_1 + 0x44)) goto LAB_00102428;\n  if (iVar4 < 5) {\n    if (*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)) goto LAB_00102674;\n  }\n  else {\n    FUN_001019d0();\n    if (param_1[9] != 0) {\n      return;\n    }\n    iVar4 = *(int *)(param_2 + 0x10);\n    if (*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)) {\nLAB_00102674:\n      (*(code *)(PTR_LAB_0015b714 + 0x62a4))(param_1 + 9,param_2 + 0xc,param_2 + 0x14);\n      iVar5 = *(int *)(param_2 + 0x1c);\n      iVar4 = *(int *)(param_2 + 0x10);\n      goto LAB_00102428;\n    }\n  }\n  iVar5 = *(int *)(param_2 + 0x1c);\nLAB_00102428:\n  uVar7 = iVar4 - *(int *)(param_2 + 8);\n  if (((int)uVar7 < 0) || (0x7f < uVar7)) {\n    iVar4 = (*(code *)(PTR_LAB_0015b6d8 + 0x54))();\n  }\n  else {\n    *(char *)(*(int *)(param_2 + 0x18) + iVar5) = (char)uVar7;\n    iVar4 = 1;\n  }\n  *(undefined4 *)(param_2 + 8) = *(undefined4 *)(param_2 + 0x10);\n  *(int *)(param_2 + 0x1c) = *(int *)(param_2 + 0x1c) + iVar4;\n  pcVar9 = param_4;\n  iVar4 = param_3;\n  if (*(char *)(param_2 + 0x3a) == '\0') {\n    if (iVar6 < 1) {\n      iVar6 = 0;\n      iVar5 = 0;\n    }\n    else if (*param_4 == **(char **)(param_2 + 0x24)) {\n      iVar4 = 0;\n      pcVar3 = param_4 + 1;\n      do {\n        pcVar9 = pcVar3;\n        iVar4 = iVar4 + 1;\n        iVar5 = iVar6;\n        if (iVar6 == iVar4) break;\n        pcVar3 = pcVar9 + 1;\n        iVar5 = iVar4;\n      } while ((*(char **)(param_2 + 0x24))[iVar4] == *pcVar9);\n      iVar6 = iVar5 >> 0x1f;\n      iVar4 = param_3 - iVar5;\n    }\n    else {\n      iVar6 = 0;\n      iVar5 = 0;\n    }\n    pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700);\n    (*pcVar10)(param_1 + 9,param_2 + 0xc,iVar6,iVar5);\n    pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n  }\n  else {\n    if (*(int *)(param_2 + 4) == 1) {\n      pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n    }\n    else {\n      iVar5 = param_3;\n      if (*(int *)(param_2 + 0x28) != 0) {\n        if ((iVar6 < 1) || (*param_4 != **(char **)(param_2 + 0x24))) {\n          iVar5 = 1;\n        }\n        else {\n          iVar2 = 2;\n          do {\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);\n        }\n      }\n      iVar6 = *(int *)(param_2 + 0x58);\nLAB_001025a4:\n      if (iVar6 != 0) {\n        FUN_00102158(param_1,param_2);\n      }\n      puVar1 = PTR_LAB_0015b714;\n      if (param_1[9] != 0) {\n        return;\n      }\n      *(undefined4 *)(param_2 + 0x50) = 0;\n      pcVar8 = (code *)(puVar1 + 0x63a0);\n      (*pcVar8)(param_1 + 9,param_2 + 0x4c,iVar5,param_4);\n      *(undefined4 *)(param_2 + 0x58) = *(undefined4 *)(param_2 + 4);\n      if (param_1[9] != 0) {\n        return;\n      }\n    }\n    pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700);\n  }\n  param_1 = param_1 + 9;\n  (*pcVar10)(param_1,param_2 + 0xc,iVar4 >> 0x1f,iVar4);\n  (*pcVar8)(param_1,param_2 + 0xc,iVar4,pcVar9);\n  *(undefined4 *)(param_2 + 0x28) = 0;\n  (*pcVar8)(param_1,param_2 + 0x24,param_3,param_4);\n  *(undefined2 *)(param_2 + 0x38) = 0x100;\n  *(undefined1 *)(param_2 + 0x3a) = 0;\n  **(undefined4 **)(param_2 + 0x48) = *(undefined4 *)(param_2 + 4);\n  return;\n}\n\n" (function_definition "void FUN_00102384(int *param_1,int param_2,int param_3,char *param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  uint uVar7;\n  code *pcVar8;\n  char *pcVar9;\n  code *pcVar10;\n  \n  iVar4 = *(int *)(param_2 + 0x10);\n  iVar5 = *(int *)(param_2 + 0x1c);\n  iVar6 = *(int *)(param_2 + 0x28);\n  if (param_3 < *(int *)(param_2 + 0x28)) {\n    iVar6 = param_3;\n  }\n  if (iVar4 + iVar5 + param_3 + 2 < *(int *)(*param_1 + 0x44)) goto LAB_00102428;\n  if (iVar4 < 5) {\n    if (*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)) goto LAB_00102674;\n  }\n  else {\n    FUN_001019d0();\n    if (param_1[9] != 0) {\n      return;\n    }\n    iVar4 = *(int *)(param_2 + 0x10);\n    if (*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)) {\nLAB_00102674:\n      (*(code *)(PTR_LAB_0015b714 + 0x62a4))(param_1 + 9,param_2 + 0xc,param_2 + 0x14);\n      iVar5 = *(int *)(param_2 + 0x1c);\n      iVar4 = *(int *)(param_2 + 0x10);\n      goto LAB_00102428;\n    }\n  }\n  iVar5 = *(int *)(param_2 + 0x1c);\nLAB_00102428:\n  uVar7 = iVar4 - *(int *)(param_2 + 8);\n  if (((int)uVar7 < 0) || (0x7f < uVar7)) {\n    iVar4 = (*(code *)(PTR_LAB_0015b6d8 + 0x54))();\n  }\n  else {\n    *(char *)(*(int *)(param_2 + 0x18) + iVar5) = (char)uVar7;\n    iVar4 = 1;\n  }\n  *(undefined4 *)(param_2 + 8) = *(undefined4 *)(param_2 + 0x10);\n  *(int *)(param_2 + 0x1c) = *(int *)(param_2 + 0x1c) + iVar4;\n  pcVar9 = param_4;\n  iVar4 = param_3;\n  if (*(char *)(param_2 + 0x3a) == '\0') {\n    if (iVar6 < 1) {\n      iVar6 = 0;\n      iVar5 = 0;\n    }\n    else if (*param_4 == **(char **)(param_2 + 0x24)) {\n      iVar4 = 0;\n      pcVar3 = param_4 + 1;\n      do {\n        pcVar9 = pcVar3;\n        iVar4 = iVar4 + 1;\n        iVar5 = iVar6;\n        if (iVar6 == iVar4) break;\n        pcVar3 = pcVar9 + 1;\n        iVar5 = iVar4;\n      } while ((*(char **)(param_2 + 0x24))[iVar4] == *pcVar9);\n      iVar6 = iVar5 >> 0x1f;\n      iVar4 = param_3 - iVar5;\n    }\n    else {\n      iVar6 = 0;\n      iVar5 = 0;\n    }\n    pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700);\n    (*pcVar10)(param_1 + 9,param_2 + 0xc,iVar6,iVar5);\n    pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n  }\n  else {\n    if (*(int *)(param_2 + 4) == 1) {\n      pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n    }\n    else {\n      iVar5 = param_3;\n      if (*(int *)(param_2 + 0x28) != 0) {\n        if ((iVar6 < 1) || (*param_4 != **(char **)(param_2 + 0x24))) {\n          iVar5 = 1;\n        }\n        else {\n          iVar2 = 2;\n          do {\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);\n        }\n      }\n      iVar6 = *(int *)(param_2 + 0x58);\nLAB_001025a4:\n      if (iVar6 != 0) {\n        FUN_00102158(param_1,param_2);\n      }\n      puVar1 = PTR_LAB_0015b714;\n      if (param_1[9] != 0) {\n        return;\n      }\n      *(undefined4 *)(param_2 + 0x50) = 0;\n      pcVar8 = (code *)(puVar1 + 0x63a0);\n      (*pcVar8)(param_1 + 9,param_2 + 0x4c,iVar5,param_4);\n      *(undefined4 *)(param_2 + 0x58) = *(undefined4 *)(param_2 + 4);\n      if (param_1[9] != 0) {\n        return;\n      }\n    }\n    pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700);\n  }\n  param_1 = param_1 + 9;\n  (*pcVar10)(param_1,param_2 + 0xc,iVar4 >> 0x1f,iVar4);\n  (*pcVar8)(param_1,param_2 + 0xc,iVar4,pcVar9);\n  *(undefined4 *)(param_2 + 0x28) = 0;\n  (*pcVar8)(param_1,param_2 + 0x24,param_3,param_4);\n  *(undefined2 *)(param_2 + 0x38) = 0x100;\n  *(undefined1 *)(param_2 + 0x3a) = 0;\n  **(undefined4 **)(param_2 + 0x48) = *(undefined4 *)(param_2 + 4);\n  return;\n}" primitive_type (function_declarator "FUN_00102384(int *param_1,int param_2,int param_3,char *param_4)" identifier (parameter_list "(int *param_1,int param_2,int param_3,char *param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "char *param_4" primitive_type (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  uint uVar7;\n  code *pcVar8;\n  char *pcVar9;\n  code *pcVar10;\n  \n  iVar4 = *(int *)(param_2 + 0x10);\n  iVar5 = *(int *)(param_2 + 0x1c);\n  iVar6 = *(int *)(param_2 + 0x28);\n  if (param_3 < *(int *)(param_2 + 0x28)) {\n    iVar6 = param_3;\n  }\n  if (iVar4 + iVar5 + param_3 + 2 < *(int *)(*param_1 + 0x44)) goto LAB_00102428;\n  if (iVar4 < 5) {\n    if (*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)) goto LAB_00102674;\n  }\n  else {\n    FUN_001019d0();\n    if (param_1[9] != 0) {\n      return;\n    }\n    iVar4 = *(int *)(param_2 + 0x10);\n    if (*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)) {\nLAB_00102674:\n      (*(code *)(PTR_LAB_0015b714 + 0x62a4))(param_1 + 9,param_2 + 0xc,param_2 + 0x14);\n      iVar5 = *(int *)(param_2 + 0x1c);\n      iVar4 = *(int *)(param_2 + 0x10);\n      goto LAB_00102428;\n    }\n  }\n  iVar5 = *(int *)(param_2 + 0x1c);\nLAB_00102428:\n  uVar7 = iVar4 - *(int *)(param_2 + 8);\n  if (((int)uVar7 < 0) || (0x7f < uVar7)) {\n    iVar4 = (*(code *)(PTR_LAB_0015b6d8 + 0x54))();\n  }\n  else {\n    *(char *)(*(int *)(param_2 + 0x18) + iVar5) = (char)uVar7;\n    iVar4 = 1;\n  }\n  *(undefined4 *)(param_2 + 8) = *(undefined4 *)(param_2 + 0x10);\n  *(int *)(param_2 + 0x1c) = *(int *)(param_2 + 0x1c) + iVar4;\n  pcVar9 = param_4;\n  iVar4 = param_3;\n  if (*(char *)(param_2 + 0x3a) == '\0') {\n    if (iVar6 < 1) {\n      iVar6 = 0;\n      iVar5 = 0;\n    }\n    else if (*param_4 == **(char **)(param_2 + 0x24)) {\n      iVar4 = 0;\n      pcVar3 = param_4 + 1;\n      do {\n        pcVar9 = pcVar3;\n        iVar4 = iVar4 + 1;\n        iVar5 = iVar6;\n        if (iVar6 == iVar4) break;\n        pcVar3 = pcVar9 + 1;\n        iVar5 = iVar4;\n      } while ((*(char **)(param_2 + 0x24))[iVar4] == *pcVar9);\n      iVar6 = iVar5 >> 0x1f;\n      iVar4 = param_3 - iVar5;\n    }\n    else {\n      iVar6 = 0;\n      iVar5 = 0;\n    }\n    pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700);\n    (*pcVar10)(param_1 + 9,param_2 + 0xc,iVar6,iVar5);\n    pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n  }\n  else {\n    if (*(int *)(param_2 + 4) == 1) {\n      pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n    }\n    else {\n      iVar5 = param_3;\n      if (*(int *)(param_2 + 0x28) != 0) {\n        if ((iVar6 < 1) || (*param_4 != **(char **)(param_2 + 0x24))) {\n          iVar5 = 1;\n        }\n        else {\n          iVar2 = 2;\n          do {\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);\n        }\n      }\n      iVar6 = *(int *)(param_2 + 0x58);\nLAB_001025a4:\n      if (iVar6 != 0) {\n        FUN_00102158(param_1,param_2);\n      }\n      puVar1 = PTR_LAB_0015b714;\n      if (param_1[9] != 0) {\n        return;\n      }\n      *(undefined4 *)(param_2 + 0x50) = 0;\n      pcVar8 = (code *)(puVar1 + 0x63a0);\n      (*pcVar8)(param_1 + 9,param_2 + 0x4c,iVar5,param_4);\n      *(undefined4 *)(param_2 + 0x58) = *(undefined4 *)(param_2 + 4);\n      if (param_1[9] != 0) {\n        return;\n      }\n    }\n    pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700);\n  }\n  param_1 = param_1 + 9;\n  (*pcVar10)(param_1,param_2 + 0xc,iVar4 >> 0x1f,iVar4);\n  (*pcVar8)(param_1,param_2 + 0xc,iVar4,pcVar9);\n  *(undefined4 *)(param_2 + 0x28) = 0;\n  (*pcVar8)(param_1,param_2 + 0x24,param_3,param_4);\n  *(undefined2 *)(param_2 + 0x38) = 0x100;\n  *(undefined1 *)(param_2 + 0x3a) = 0;\n  **(undefined4 **)(param_2 + 0x48) = *(undefined4 *)(param_2 + 4);\n  return;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "code *pcVar8;" type_identifier (pointer_declarator "*pcVar8" * identifier) ;) (declaration "char *pcVar9;" primitive_type (pointer_declarator "*pcVar9" * identifier) ;) (declaration "code *pcVar10;" type_identifier (pointer_declarator "*pcVar10" * identifier) ;) (expression_statement "iVar4 = *(int *)(param_2 + 0x10);" (assignment_expression "iVar4 = *(int *)(param_2 + 0x10)" identifier = (pointer_expression "*(int *)(param_2 + 0x10)" * (cast_expression "(int *)(param_2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "iVar5 = *(int *)(param_2 + 0x1c);" (assignment_expression "iVar5 = *(int *)(param_2 + 0x1c)" identifier = (pointer_expression "*(int *)(param_2 + 0x1c)" * (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "iVar6 = *(int *)(param_2 + 0x28);" (assignment_expression "iVar6 = *(int *)(param_2 + 0x28)" identifier = (pointer_expression "*(int *)(param_2 + 0x28)" * (cast_expression "(int *)(param_2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) ))))) ;) (if_statement "if (param_3 < *(int *)(param_2 + 0x28)) {\n    iVar6 = param_3;\n  }" if (parenthesized_expression "(param_3 < *(int *)(param_2 + 0x28))" ( (binary_expression "param_3 < *(int *)(param_2 + 0x28)" identifier < (pointer_expression "*(int *)(param_2 + 0x28)" * (cast_expression "(int *)(param_2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    iVar6 = param_3;\n  }" { (expression_statement "iVar6 = param_3;" (assignment_expression "iVar6 = param_3" identifier = identifier) ;) })) (if_statement "if (iVar4 + iVar5 + param_3 + 2 < *(int *)(*param_1 + 0x44)) goto LAB_00102428;" if (parenthesized_expression "(iVar4 + iVar5 + param_3 + 2 < *(int *)(*param_1 + 0x44))" ( (binary_expression "iVar4 + iVar5 + param_3 + 2 < *(int *)(*param_1 + 0x44)" (binary_expression "iVar4 + iVar5 + param_3 + 2" (binary_expression "iVar4 + iVar5 + param_3" (binary_expression "iVar4 + iVar5" identifier + identifier) + identifier) + number_literal) < (pointer_expression "*(int *)(*param_1 + 0x44)" * (cast_expression "(int *)(*param_1 + 0x44)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x44)" ( (binary_expression "*param_1 + 0x44" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (goto_statement "goto LAB_00102428;" goto statement_identifier ;)) (if_statement "if (iVar4 < 5) {\n    if (*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)) goto LAB_00102674;\n  }\n  else {\n    FUN_001019d0();\n    if (param_1[9] != 0) {\n      return;\n    }\n    iVar4 = *(int *)(param_2 + 0x10);\n    if (*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)) {\nLAB_00102674:\n      (*(code *)(PTR_LAB_0015b714 + 0x62a4))(param_1 + 9,param_2 + 0xc,param_2 + 0x14);\n      iVar5 = *(int *)(param_2 + 0x1c);\n      iVar4 = *(int *)(param_2 + 0x10);\n      goto LAB_00102428;\n    }\n  }" if (parenthesized_expression "(iVar4 < 5)" ( (binary_expression "iVar4 < 5" identifier < number_literal) )) (compound_statement "{\n    if (*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)) goto LAB_00102674;\n  }" { (if_statement "if (*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)) goto LAB_00102674;" if (parenthesized_expression "(*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4))" ( (binary_expression "*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)" (pointer_expression "*(uint *)(param_2 + 0x14)" * (cast_expression "(uint *)(param_2 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) < (call_expression "(uint)(param_3 + 0x14 + iVar4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_3 + 0x14 + iVar4)" ( (binary_expression "param_3 + 0x14 + iVar4" (binary_expression "param_3 + 0x14" identifier + number_literal) + identifier) )))) )) (goto_statement "goto LAB_00102674;" goto statement_identifier ;)) }) (else_clause "else {\n    FUN_001019d0();\n    if (param_1[9] != 0) {\n      return;\n    }\n    iVar4 = *(int *)(param_2 + 0x10);\n    if (*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)) {\nLAB_00102674:\n      (*(code *)(PTR_LAB_0015b714 + 0x62a4))(param_1 + 9,param_2 + 0xc,param_2 + 0x14);\n      iVar5 = *(int *)(param_2 + 0x1c);\n      iVar4 = *(int *)(param_2 + 0x10);\n      goto LAB_00102428;\n    }\n  }" else (compound_statement "{\n    FUN_001019d0();\n    if (param_1[9] != 0) {\n      return;\n    }\n    iVar4 = *(int *)(param_2 + 0x10);\n    if (*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)) {\nLAB_00102674:\n      (*(code *)(PTR_LAB_0015b714 + 0x62a4))(param_1 + 9,param_2 + 0xc,param_2 + 0x14);\n      iVar5 = *(int *)(param_2 + 0x1c);\n      iVar4 = *(int *)(param_2 + 0x10);\n      goto LAB_00102428;\n    }\n  }" { (expression_statement "FUN_001019d0();" (call_expression "FUN_001019d0()" identifier (argument_list "()" ( ))) ;) (if_statement "if (param_1[9] != 0) {\n      return;\n    }" if (parenthesized_expression "(param_1[9] != 0)" ( (binary_expression "param_1[9] != 0" (subscript_expression "param_1[9]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) (expression_statement "iVar4 = *(int *)(param_2 + 0x10);" (assignment_expression "iVar4 = *(int *)(param_2 + 0x10)" identifier = (pointer_expression "*(int *)(param_2 + 0x10)" * (cast_expression "(int *)(param_2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) ))))) ;) (if_statement "if (*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)) {\nLAB_00102674:\n      (*(code *)(PTR_LAB_0015b714 + 0x62a4))(param_1 + 9,param_2 + 0xc,param_2 + 0x14);\n      iVar5 = *(int *)(param_2 + 0x1c);\n      iVar4 = *(int *)(param_2 + 0x10);\n      goto LAB_00102428;\n    }" if (parenthesized_expression "(*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4))" ( (binary_expression "*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)" (pointer_expression "*(uint *)(param_2 + 0x14)" * (cast_expression "(uint *)(param_2 + 0x14)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) < (call_expression "(uint)(param_3 + 0x14 + iVar4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_3 + 0x14 + iVar4)" ( (binary_expression "param_3 + 0x14 + iVar4" (binary_expression "param_3 + 0x14" identifier + number_literal) + identifier) )))) )) (compound_statement "{\nLAB_00102674:\n      (*(code *)(PTR_LAB_0015b714 + 0x62a4))(param_1 + 9,param_2 + 0xc,param_2 + 0x14);\n      iVar5 = *(int *)(param_2 + 0x1c);\n      iVar4 = *(int *)(param_2 + 0x10);\n      goto LAB_00102428;\n    }" { (labeled_statement "LAB_00102674:\n      (*(code *)(PTR_LAB_0015b714 + 0x62a4))(param_1 + 9,param_2 + 0xc,param_2 + 0x14);" statement_identifier : (expression_statement "(*(code *)(PTR_LAB_0015b714 + 0x62a4))(param_1 + 9,param_2 + 0xc,param_2 + 0x14);" (call_expression "(*(code *)(PTR_LAB_0015b714 + 0x62a4))(param_1 + 9,param_2 + 0xc,param_2 + 0x14)" (parenthesized_expression "(*(code *)(PTR_LAB_0015b714 + 0x62a4))" ( (pointer_expression "*(code *)(PTR_LAB_0015b714 + 0x62a4)" * (cast_expression "(code *)(PTR_LAB_0015b714 + 0x62a4)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b714 + 0x62a4)" ( (binary_expression "PTR_LAB_0015b714 + 0x62a4" identifier + number_literal) )))) )) (argument_list "(param_1 + 9,param_2 + 0xc,param_2 + 0x14)" ( (binary_expression "param_1 + 9" identifier + number_literal) , (binary_expression "param_2 + 0xc" identifier + number_literal) , (binary_expression "param_2 + 0x14" identifier + number_literal) ))) ;)) (expression_statement "iVar5 = *(int *)(param_2 + 0x1c);" (assignment_expression "iVar5 = *(int *)(param_2 + 0x1c)" identifier = (pointer_expression "*(int *)(param_2 + 0x1c)" * (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "iVar4 = *(int *)(param_2 + 0x10);" (assignment_expression "iVar4 = *(int *)(param_2 + 0x10)" identifier = (pointer_expression "*(int *)(param_2 + 0x10)" * (cast_expression "(int *)(param_2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) ))))) ;) (goto_statement "goto LAB_00102428;" goto statement_identifier ;) })) }))) (expression_statement "iVar5 = *(int *)(param_2 + 0x1c);" (assignment_expression "iVar5 = *(int *)(param_2 + 0x1c)" identifier = (pointer_expression "*(int *)(param_2 + 0x1c)" * (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) ))))) ;) (labeled_statement "LAB_00102428:\n  uVar7 = iVar4 - *(int *)(param_2 + 8);" statement_identifier : (expression_statement "uVar7 = iVar4 - *(int *)(param_2 + 8);" (assignment_expression "uVar7 = iVar4 - *(int *)(param_2 + 8)" identifier = (binary_expression "iVar4 - *(int *)(param_2 + 8)" identifier - (pointer_expression "*(int *)(param_2 + 8)" * (cast_expression "(int *)(param_2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))))) ;)) (if_statement "if (((int)uVar7 < 0) || (0x7f < uVar7)) {\n    iVar4 = (*(code *)(PTR_LAB_0015b6d8 + 0x54))();\n  }\n  else {\n    *(char *)(*(int *)(param_2 + 0x18) + iVar5) = (char)uVar7;\n    iVar4 = 1;\n  }" if (parenthesized_expression "(((int)uVar7 < 0) || (0x7f < uVar7))" ( (binary_expression "((int)uVar7 < 0) || (0x7f < uVar7)" (parenthesized_expression "((int)uVar7 < 0)" ( (binary_expression "(int)uVar7 < 0" (cast_expression "(int)uVar7" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) || (parenthesized_expression "(0x7f < uVar7)" ( (binary_expression "0x7f < uVar7" number_literal < identifier) ))) )) (compound_statement "{\n    iVar4 = (*(code *)(PTR_LAB_0015b6d8 + 0x54))();\n  }" { (expression_statement "iVar4 = (*(code *)(PTR_LAB_0015b6d8 + 0x54))();" (assignment_expression "iVar4 = (*(code *)(PTR_LAB_0015b6d8 + 0x54))()" identifier = (call_expression "(*(code *)(PTR_LAB_0015b6d8 + 0x54))()" (parenthesized_expression "(*(code *)(PTR_LAB_0015b6d8 + 0x54))" ( (pointer_expression "*(code *)(PTR_LAB_0015b6d8 + 0x54)" * (cast_expression "(code *)(PTR_LAB_0015b6d8 + 0x54)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b6d8 + 0x54)" ( (binary_expression "PTR_LAB_0015b6d8 + 0x54" identifier + number_literal) )))) )) (argument_list "()" ( )))) ;) }) (else_clause "else {\n    *(char *)(*(int *)(param_2 + 0x18) + iVar5) = (char)uVar7;\n    iVar4 = 1;\n  }" else (compound_statement "{\n    *(char *)(*(int *)(param_2 + 0x18) + iVar5) = (char)uVar7;\n    iVar4 = 1;\n  }" { (expression_statement "*(char *)(*(int *)(param_2 + 0x18) + iVar5) = (char)uVar7;" (assignment_expression "*(char *)(*(int *)(param_2 + 0x18) + iVar5) = (char)uVar7" (pointer_expression "*(char *)(*(int *)(param_2 + 0x18) + iVar5)" * (cast_expression "(char *)(*(int *)(param_2 + 0x18) + iVar5)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 0x18) + iVar5)" ( (binary_expression "*(int *)(param_2 + 0x18) + iVar5" (pointer_expression "*(int *)(param_2 + 0x18)" * (cast_expression "(int *)(param_2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x18)" ( (binary_expression "param_2 + 0x18" identifier + number_literal) )))) + identifier) )))) = (cast_expression "(char)uVar7" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" identifier = number_literal) ;) }))) (expression_statement "*(undefined4 *)(param_2 + 8) = *(undefined4 *)(param_2 + 0x10);" (assignment_expression "*(undefined4 *)(param_2 + 8) = *(undefined4 *)(param_2 + 0x10)" (pointer_expression "*(undefined4 *)(param_2 + 8)" * (cast_expression "(undefined4 *)(param_2 + 8)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 8)" ( (binary_expression "param_2 + 8" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_2 + 0x10)" * (cast_expression "(undefined4 *)(param_2 + 0x10)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x10)" ( (binary_expression "param_2 + 0x10" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(param_2 + 0x1c) = *(int *)(param_2 + 0x1c) + iVar4;" (assignment_expression "*(int *)(param_2 + 0x1c) = *(int *)(param_2 + 0x1c) + iVar4" (pointer_expression "*(int *)(param_2 + 0x1c)" * (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) )))) = (binary_expression "*(int *)(param_2 + 0x1c) + iVar4" (pointer_expression "*(int *)(param_2 + 0x1c)" * (cast_expression "(int *)(param_2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) )))) + identifier)) ;) (expression_statement "pcVar9 = param_4;" (assignment_expression "pcVar9 = param_4" identifier = identifier) ;) (expression_statement "iVar4 = param_3;" (assignment_expression "iVar4 = param_3" identifier = identifier) ;) (if_statement "if (*(char *)(param_2 + 0x3a) == '\0') {\n    if (iVar6 < 1) {\n      iVar6 = 0;\n      iVar5 = 0;\n    }\n    else if (*param_4 == **(char **)(param_2 + 0x24)) {\n      iVar4 = 0;\n      pcVar3 = param_4 + 1;\n      do {\n        pcVar9 = pcVar3;\n        iVar4 = iVar4 + 1;\n        iVar5 = iVar6;\n        if (iVar6 == iVar4) break;\n        pcVar3 = pcVar9 + 1;\n        iVar5 = iVar4;\n      } while ((*(char **)(param_2 + 0x24))[iVar4] == *pcVar9);\n      iVar6 = iVar5 >> 0x1f;\n      iVar4 = param_3 - iVar5;\n    }\n    else {\n      iVar6 = 0;\n      iVar5 = 0;\n    }\n    pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700);\n    (*pcVar10)(param_1 + 9,param_2 + 0xc,iVar6,iVar5);\n    pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n  }\n  else {\n    if (*(int *)(param_2 + 4) == 1) {\n      pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n    }\n    else {\n      iVar5 = param_3;\n      if (*(int *)(param_2 + 0x28) != 0) {\n        if ((iVar6 < 1) || (*param_4 != **(char **)(param_2 + 0x24))) {\n          iVar5 = 1;\n        }\n        else {\n          iVar2 = 2;\n          do {\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);\n        }\n      }\n      iVar6 = *(int *)(param_2 + 0x58);\nLAB_001025a4:\n      if (iVar6 != 0) {\n        FUN_00102158(param_1,param_2);\n      }\n      puVar1 = PTR_LAB_0015b714;\n      if (param_1[9] != 0) {\n        return;\n      }\n      *(undefined4 *)(param_2 + 0x50) = 0;\n      pcVar8 = (code *)(puVar1 + 0x63a0);\n      (*pcVar8)(param_1 + 9,param_2 + 0x4c,iVar5,param_4);\n      *(undefined4 *)(param_2 + 0x58) = *(undefined4 *)(param_2 + 4);\n      if (param_1[9] != 0) {\n        return;\n      }\n    }\n    pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700);\n  }" if (parenthesized_expression "(*(char *)(param_2 + 0x3a) == '\0')" ( (binary_expression "*(char *)(param_2 + 0x3a) == '\0'" (pointer_expression "*(char *)(param_2 + 0x3a)" * (cast_expression "(char *)(param_2 + 0x3a)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x3a)" ( (binary_expression "param_2 + 0x3a" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    if (iVar6 < 1) {\n      iVar6 = 0;\n      iVar5 = 0;\n    }\n    else if (*param_4 == **(char **)(param_2 + 0x24)) {\n      iVar4 = 0;\n      pcVar3 = param_4 + 1;\n      do {\n        pcVar9 = pcVar3;\n        iVar4 = iVar4 + 1;\n        iVar5 = iVar6;\n        if (iVar6 == iVar4) break;\n        pcVar3 = pcVar9 + 1;\n        iVar5 = iVar4;\n      } while ((*(char **)(param_2 + 0x24))[iVar4] == *pcVar9);\n      iVar6 = iVar5 >> 0x1f;\n      iVar4 = param_3 - iVar5;\n    }\n    else {\n      iVar6 = 0;\n      iVar5 = 0;\n    }\n    pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700);\n    (*pcVar10)(param_1 + 9,param_2 + 0xc,iVar6,iVar5);\n    pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n  }" { (if_statement "if (iVar6 < 1) {\n      iVar6 = 0;\n      iVar5 = 0;\n    }\n    else if (*param_4 == **(char **)(param_2 + 0x24)) {\n      iVar4 = 0;\n      pcVar3 = param_4 + 1;\n      do {\n        pcVar9 = pcVar3;\n        iVar4 = iVar4 + 1;\n        iVar5 = iVar6;\n        if (iVar6 == iVar4) break;\n        pcVar3 = pcVar9 + 1;\n        iVar5 = iVar4;\n      } while ((*(char **)(param_2 + 0x24))[iVar4] == *pcVar9);\n      iVar6 = iVar5 >> 0x1f;\n      iVar4 = param_3 - iVar5;\n    }\n    else {\n      iVar6 = 0;\n      iVar5 = 0;\n    }" if (parenthesized_expression "(iVar6 < 1)" ( (binary_expression "iVar6 < 1" identifier < number_literal) )) (compound_statement "{\n      iVar6 = 0;\n      iVar5 = 0;\n    }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) }) (else_clause "else if (*param_4 == **(char **)(param_2 + 0x24)) {\n      iVar4 = 0;\n      pcVar3 = param_4 + 1;\n      do {\n        pcVar9 = pcVar3;\n        iVar4 = iVar4 + 1;\n        iVar5 = iVar6;\n        if (iVar6 == iVar4) break;\n        pcVar3 = pcVar9 + 1;\n        iVar5 = iVar4;\n      } while ((*(char **)(param_2 + 0x24))[iVar4] == *pcVar9);\n      iVar6 = iVar5 >> 0x1f;\n      iVar4 = param_3 - iVar5;\n    }\n    else {\n      iVar6 = 0;\n      iVar5 = 0;\n    }" else (if_statement "if (*param_4 == **(char **)(param_2 + 0x24)) {\n      iVar4 = 0;\n      pcVar3 = param_4 + 1;\n      do {\n        pcVar9 = pcVar3;\n        iVar4 = iVar4 + 1;\n        iVar5 = iVar6;\n        if (iVar6 == iVar4) break;\n        pcVar3 = pcVar9 + 1;\n        iVar5 = iVar4;\n      } while ((*(char **)(param_2 + 0x24))[iVar4] == *pcVar9);\n      iVar6 = iVar5 >> 0x1f;\n      iVar4 = param_3 - iVar5;\n    }\n    else {\n      iVar6 = 0;\n      iVar5 = 0;\n    }" if (parenthesized_expression "(*param_4 == **(char **)(param_2 + 0x24))" ( (binary_expression "*param_4 == **(char **)(param_2 + 0x24)" (pointer_expression "*param_4" * identifier) == (pointer_expression "**(char **)(param_2 + 0x24)" * (pointer_expression "*(char **)(param_2 + 0x24)" * (cast_expression "(char **)(param_2 + 0x24)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x24)" ( (binary_expression "param_2 + 0x24" identifier + number_literal) )))))) )) (compound_statement "{\n      iVar4 = 0;\n      pcVar3 = param_4 + 1;\n      do {\n        pcVar9 = pcVar3;\n        iVar4 = iVar4 + 1;\n        iVar5 = iVar6;\n        if (iVar6 == iVar4) break;\n        pcVar3 = pcVar9 + 1;\n        iVar5 = iVar4;\n      } while ((*(char **)(param_2 + 0x24))[iVar4] == *pcVar9);\n      iVar6 = iVar5 >> 0x1f;\n      iVar4 = param_3 - iVar5;\n    }" { (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "pcVar3 = param_4 + 1;" (assignment_expression "pcVar3 = param_4 + 1" identifier = (binary_expression "param_4 + 1" identifier + number_literal)) ;) (do_statement "do {\n        pcVar9 = pcVar3;\n        iVar4 = iVar4 + 1;\n        iVar5 = iVar6;\n        if (iVar6 == iVar4) break;\n        pcVar3 = pcVar9 + 1;\n        iVar5 = iVar4;\n      } while ((*(char **)(param_2 + 0x24))[iVar4] == *pcVar9);" do (compound_statement "{\n        pcVar9 = pcVar3;\n        iVar4 = iVar4 + 1;\n        iVar5 = iVar6;\n        if (iVar6 == iVar4) break;\n        pcVar3 = pcVar9 + 1;\n        iVar5 = iVar4;\n      }" { (expression_statement "pcVar9 = pcVar3;" (assignment_expression "pcVar9 = pcVar3" identifier = identifier) ;) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" identifier = (binary_expression "iVar4 + 1" identifier + number_literal)) ;) (expression_statement "iVar5 = iVar6;" (assignment_expression "iVar5 = iVar6" identifier = identifier) ;) (if_statement "if (iVar6 == iVar4) break;" if (parenthesized_expression "(iVar6 == iVar4)" ( (binary_expression "iVar6 == iVar4" identifier == identifier) )) (break_statement "break;" break ;)) (expression_statement "pcVar3 = pcVar9 + 1;" (assignment_expression "pcVar3 = pcVar9 + 1" identifier = (binary_expression "pcVar9 + 1" identifier + number_literal)) ;) (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" identifier = identifier) ;) }) while (parenthesized_expression "((*(char **)(param_2 + 0x24))[iVar4] == *pcVar9)" ( (binary_expression "(*(char **)(param_2 + 0x24))[iVar4] == *pcVar9" (subscript_expression "(*(char **)(param_2 + 0x24))[iVar4]" (parenthesized_expression "(*(char **)(param_2 + 0x24))" ( (pointer_expression "*(char **)(param_2 + 0x24)" * (cast_expression "(char **)(param_2 + 0x24)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x24)" ( (binary_expression "param_2 + 0x24" identifier + number_literal) )))) )) [ identifier ]) == (pointer_expression "*pcVar9" * identifier)) )) ;) (expression_statement "iVar6 = iVar5 >> 0x1f;" (assignment_expression "iVar6 = iVar5 >> 0x1f" identifier = (binary_expression "iVar5 >> 0x1f" identifier >> number_literal)) ;) (expression_statement "iVar4 = param_3 - iVar5;" (assignment_expression "iVar4 = param_3 - iVar5" identifier = (binary_expression "param_3 - iVar5" identifier - identifier)) ;) }) (else_clause "else {\n      iVar6 = 0;\n      iVar5 = 0;\n    }" else (compound_statement "{\n      iVar6 = 0;\n      iVar5 = 0;\n    }" { (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" identifier = number_literal) ;) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" identifier = number_literal) ;) }))))) (expression_statement "pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700);" (assignment_expression "pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700)" identifier = (cast_expression "(code *)(PTR_LAB_0015b714 + 0x7700)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b714 + 0x7700)" ( (binary_expression "PTR_LAB_0015b714 + 0x7700" identifier + number_literal) )))) ;) (expression_statement "(*pcVar10)(param_1 + 9,param_2 + 0xc,iVar6,iVar5);" (call_expression "(*pcVar10)(param_1 + 9,param_2 + 0xc,iVar6,iVar5)" (parenthesized_expression "(*pcVar10)" ( (pointer_expression "*pcVar10" * identifier) )) (argument_list "(param_1 + 9,param_2 + 0xc,iVar6,iVar5)" ( (binary_expression "param_1 + 9" identifier + number_literal) , (binary_expression "param_2 + 0xc" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);" (assignment_expression "pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0)" identifier = (cast_expression "(code *)(PTR_LAB_0015b714 + 0x63a0)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b714 + 0x63a0)" ( (binary_expression "PTR_LAB_0015b714 + 0x63a0" identifier + number_literal) )))) ;) }) (else_clause "else {\n    if (*(int *)(param_2 + 4) == 1) {\n      pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n    }\n    else {\n      iVar5 = param_3;\n      if (*(int *)(param_2 + 0x28) != 0) {\n        if ((iVar6 < 1) || (*param_4 != **(char **)(param_2 + 0x24))) {\n          iVar5 = 1;\n        }\n        else {\n          iVar2 = 2;\n          do {\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);\n        }\n      }\n      iVar6 = *(int *)(param_2 + 0x58);\nLAB_001025a4:\n      if (iVar6 != 0) {\n        FUN_00102158(param_1,param_2);\n      }\n      puVar1 = PTR_LAB_0015b714;\n      if (param_1[9] != 0) {\n        return;\n      }\n      *(undefined4 *)(param_2 + 0x50) = 0;\n      pcVar8 = (code *)(puVar1 + 0x63a0);\n      (*pcVar8)(param_1 + 9,param_2 + 0x4c,iVar5,param_4);\n      *(undefined4 *)(param_2 + 0x58) = *(undefined4 *)(param_2 + 4);\n      if (param_1[9] != 0) {\n        return;\n      }\n    }\n    pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700);\n  }" else (compound_statement "{\n    if (*(int *)(param_2 + 4) == 1) {\n      pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n    }\n    else {\n      iVar5 = param_3;\n      if (*(int *)(param_2 + 0x28) != 0) {\n        if ((iVar6 < 1) || (*param_4 != **(char **)(param_2 + 0x24))) {\n          iVar5 = 1;\n        }\n        else {\n          iVar2 = 2;\n          do {\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);\n        }\n      }\n      iVar6 = *(int *)(param_2 + 0x58);\nLAB_001025a4:\n      if (iVar6 != 0) {\n        FUN_00102158(param_1,param_2);\n      }\n      puVar1 = PTR_LAB_0015b714;\n      if (param_1[9] != 0) {\n        return;\n      }\n      *(undefined4 *)(param_2 + 0x50) = 0;\n      pcVar8 = (code *)(puVar1 + 0x63a0);\n      (*pcVar8)(param_1 + 9,param_2 + 0x4c,iVar5,param_4);\n      *(undefined4 *)(param_2 + 0x58) = *(undefined4 *)(param_2 + 4);\n      if (param_1[9] != 0) {\n        return;\n      }\n    }\n    pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700);\n  }" { (if_statement "if (*(int *)(param_2 + 4) == 1) {\n      pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n    }\n    else {\n      iVar5 = param_3;\n      if (*(int *)(param_2 + 0x28) != 0) {\n        if ((iVar6 < 1) || (*param_4 != **(char **)(param_2 + 0x24))) {\n          iVar5 = 1;\n        }\n        else {\n          iVar2 = 2;\n          do {\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);\n        }\n      }\n      iVar6 = *(int *)(param_2 + 0x58);\nLAB_001025a4:\n      if (iVar6 != 0) {\n        FUN_00102158(param_1,param_2);\n      }\n      puVar1 = PTR_LAB_0015b714;\n      if (param_1[9] != 0) {\n        return;\n      }\n      *(undefined4 *)(param_2 + 0x50) = 0;\n      pcVar8 = (code *)(puVar1 + 0x63a0);\n      (*pcVar8)(param_1 + 9,param_2 + 0x4c,iVar5,param_4);\n      *(undefined4 *)(param_2 + 0x58) = *(undefined4 *)(param_2 + 4);\n      if (param_1[9] != 0) {\n        return;\n      }\n    }" if (parenthesized_expression "(*(int *)(param_2 + 4) == 1)" ( (binary_expression "*(int *)(param_2 + 4) == 1" (pointer_expression "*(int *)(param_2 + 4)" * (cast_expression "(int *)(param_2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n      pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n    }" { (expression_statement "pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);" (assignment_expression "pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0)" identifier = (cast_expression "(code *)(PTR_LAB_0015b714 + 0x63a0)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b714 + 0x63a0)" ( (binary_expression "PTR_LAB_0015b714 + 0x63a0" identifier + number_literal) )))) ;) }) (else_clause "else {\n      iVar5 = param_3;\n      if (*(int *)(param_2 + 0x28) != 0) {\n        if ((iVar6 < 1) || (*param_4 != **(char **)(param_2 + 0x24))) {\n          iVar5 = 1;\n        }\n        else {\n          iVar2 = 2;\n          do {\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);\n        }\n      }\n      iVar6 = *(int *)(param_2 + 0x58);\nLAB_001025a4:\n      if (iVar6 != 0) {\n        FUN_00102158(param_1,param_2);\n      }\n      puVar1 = PTR_LAB_0015b714;\n      if (param_1[9] != 0) {\n        return;\n      }\n      *(undefined4 *)(param_2 + 0x50) = 0;\n      pcVar8 = (code *)(puVar1 + 0x63a0);\n      (*pcVar8)(param_1 + 9,param_2 + 0x4c,iVar5,param_4);\n      *(undefined4 *)(param_2 + 0x58) = *(undefined4 *)(param_2 + 4);\n      if (param_1[9] != 0) {\n        return;\n      }\n    }" else (compound_statement "{\n      iVar5 = param_3;\n      if (*(int *)(param_2 + 0x28) != 0) {\n        if ((iVar6 < 1) || (*param_4 != **(char **)(param_2 + 0x24))) {\n          iVar5 = 1;\n        }\n        else {\n          iVar2 = 2;\n          do {\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);\n        }\n      }\n      iVar6 = *(int *)(param_2 + 0x58);\nLAB_001025a4:\n      if (iVar6 != 0) {\n        FUN_00102158(param_1,param_2);\n      }\n      puVar1 = PTR_LAB_0015b714;\n      if (param_1[9] != 0) {\n        return;\n      }\n      *(undefined4 *)(param_2 + 0x50) = 0;\n      pcVar8 = (code *)(puVar1 + 0x63a0);\n      (*pcVar8)(param_1 + 9,param_2 + 0x4c,iVar5,param_4);\n      *(undefined4 *)(param_2 + 0x58) = *(undefined4 *)(param_2 + 4);\n      if (param_1[9] != 0) {\n        return;\n      }\n    }" { (expression_statement "iVar5 = param_3;" (assignment_expression "iVar5 = param_3" identifier = identifier) ;) (if_statement "if (*(int *)(param_2 + 0x28) != 0) {\n        if ((iVar6 < 1) || (*param_4 != **(char **)(param_2 + 0x24))) {\n          iVar5 = 1;\n        }\n        else {\n          iVar2 = 2;\n          do {\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);\n        }\n      }" if (parenthesized_expression "(*(int *)(param_2 + 0x28) != 0)" ( (binary_expression "*(int *)(param_2 + 0x28) != 0" (pointer_expression "*(int *)(param_2 + 0x28)" * (cast_expression "(int *)(param_2 + 0x28)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n        if ((iVar6 < 1) || (*param_4 != **(char **)(param_2 + 0x24))) {\n          iVar5 = 1;\n        }\n        else {\n          iVar2 = 2;\n          do {\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);\n        }\n      }" { (if_statement "if ((iVar6 < 1) || (*param_4 != **(char **)(param_2 + 0x24))) {\n          iVar5 = 1;\n        }\n        else {\n          iVar2 = 2;\n          do {\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);\n        }" if (parenthesized_expression "((iVar6 < 1) || (*param_4 != **(char **)(param_2 + 0x24)))" ( (binary_expression "(iVar6 < 1) || (*param_4 != **(char **)(param_2 + 0x24))" (parenthesized_expression "(iVar6 < 1)" ( (binary_expression "iVar6 < 1" identifier < number_literal) )) || (parenthesized_expression "(*param_4 != **(char **)(param_2 + 0x24))" ( (binary_expression "*param_4 != **(char **)(param_2 + 0x24)" (pointer_expression "*param_4" * identifier) != (pointer_expression "**(char **)(param_2 + 0x24)" * (pointer_expression "*(char **)(param_2 + 0x24)" * (cast_expression "(char **)(param_2 + 0x24)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x24)" ( (binary_expression "param_2 + 0x24" identifier + number_literal) )))))) ))) )) (compound_statement "{\n          iVar5 = 1;\n        }" { (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" identifier = number_literal) ;) }) (else_clause "else {\n          iVar2 = 2;\n          do {\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);\n        }" else (compound_statement "{\n          iVar2 = 2;\n          do {\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);\n        }" { (expression_statement "iVar2 = 2;" (assignment_expression "iVar2 = 2" identifier = number_literal) ;) (do_statement "do {\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);" do (compound_statement "{\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          }" { (expression_statement "iVar5 = iVar2;" (assignment_expression "iVar5 = iVar2" identifier = identifier) ;) (if_statement "if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }" if (parenthesized_expression "(iVar6 + 1 == iVar5)" ( (binary_expression "iVar6 + 1 == iVar5" (binary_expression "iVar6 + 1" identifier + number_literal) == identifier) )) (compound_statement "{\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }" { (expression_statement "iVar6 = *(int *)(param_2 + 0x58);" (assignment_expression "iVar6 = *(int *)(param_2 + 0x58)" identifier = (pointer_expression "*(int *)(param_2 + 0x58)" * (cast_expression "(int *)(param_2 + 0x58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x58)" ( (binary_expression "param_2 + 0x58" identifier + number_literal) ))))) ;) (goto_statement "goto LAB_001025a4;" goto statement_identifier ;) })) (expression_statement "iVar2 = iVar5 + 1;" (assignment_expression "iVar2 = iVar5 + 1" identifier = (binary_expression "iVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1])" ( (binary_expression "param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]" (subscript_expression "param_4[iVar5 + -1]" identifier [ (binary_expression "iVar5 + -1" identifier + number_literal) ]) == (subscript_expression "(*(char **)(param_2 + 0x24))[iVar5 + -1]" (parenthesized_expression "(*(char **)(param_2 + 0x24))" ( (pointer_expression "*(char **)(param_2 + 0x24)" * (cast_expression "(char **)(param_2 + 0x24)" ( (type_descriptor "char **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x24)" ( (binary_expression "param_2 + 0x24" identifier + number_literal) )))) )) [ (binary_expression "iVar5 + -1" identifier + number_literal) ])) )) ;) }))) })) (expression_statement "iVar6 = *(int *)(param_2 + 0x58);" (assignment_expression "iVar6 = *(int *)(param_2 + 0x58)" identifier = (pointer_expression "*(int *)(param_2 + 0x58)" * (cast_expression "(int *)(param_2 + 0x58)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x58)" ( (binary_expression "param_2 + 0x58" identifier + number_literal) ))))) ;) (labeled_statement "LAB_001025a4:\n      if (iVar6 != 0) {\n        FUN_00102158(param_1,param_2);\n      }" statement_identifier : (if_statement "if (iVar6 != 0) {\n        FUN_00102158(param_1,param_2);\n      }" if (parenthesized_expression "(iVar6 != 0)" ( (binary_expression "iVar6 != 0" identifier != number_literal) )) (compound_statement "{\n        FUN_00102158(param_1,param_2);\n      }" { (expression_statement "FUN_00102158(param_1,param_2);" (call_expression "FUN_00102158(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) }))) (expression_statement "puVar1 = PTR_LAB_0015b714;" (assignment_expression "puVar1 = PTR_LAB_0015b714" identifier = identifier) ;) (if_statement "if (param_1[9] != 0) {\n        return;\n      }" if (parenthesized_expression "(param_1[9] != 0)" ( (binary_expression "param_1[9] != 0" (subscript_expression "param_1[9]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) (expression_statement "*(undefined4 *)(param_2 + 0x50) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0x50) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0x50)" * (cast_expression "(undefined4 *)(param_2 + 0x50)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x50)" ( (binary_expression "param_2 + 0x50" identifier + number_literal) )))) = number_literal) ;) (expression_statement "pcVar8 = (code *)(puVar1 + 0x63a0);" (assignment_expression "pcVar8 = (code *)(puVar1 + 0x63a0)" identifier = (cast_expression "(code *)(puVar1 + 0x63a0)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar1 + 0x63a0)" ( (binary_expression "puVar1 + 0x63a0" identifier + number_literal) )))) ;) (expression_statement "(*pcVar8)(param_1 + 9,param_2 + 0x4c,iVar5,param_4);" (call_expression "(*pcVar8)(param_1 + 9,param_2 + 0x4c,iVar5,param_4)" (parenthesized_expression "(*pcVar8)" ( (pointer_expression "*pcVar8" * identifier) )) (argument_list "(param_1 + 9,param_2 + 0x4c,iVar5,param_4)" ( (binary_expression "param_1 + 9" identifier + number_literal) , (binary_expression "param_2 + 0x4c" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "*(undefined4 *)(param_2 + 0x58) = *(undefined4 *)(param_2 + 4);" (assignment_expression "*(undefined4 *)(param_2 + 0x58) = *(undefined4 *)(param_2 + 4)" (pointer_expression "*(undefined4 *)(param_2 + 0x58)" * (cast_expression "(undefined4 *)(param_2 + 0x58)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x58)" ( (binary_expression "param_2 + 0x58" identifier + number_literal) )))) = (pointer_expression "*(undefined4 *)(param_2 + 4)" * (cast_expression "(undefined4 *)(param_2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (if_statement "if (param_1[9] != 0) {\n        return;\n      }" if (parenthesized_expression "(param_1[9] != 0)" ( (binary_expression "param_1[9] != 0" (subscript_expression "param_1[9]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) }))) (expression_statement "pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700);" (assignment_expression "pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700)" identifier = (cast_expression "(code *)(PTR_LAB_0015b714 + 0x7700)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b714 + 0x7700)" ( (binary_expression "PTR_LAB_0015b714 + 0x7700" identifier + number_literal) )))) ;) }))) (expression_statement "param_1 = param_1 + 9;" (assignment_expression "param_1 = param_1 + 9" identifier = (binary_expression "param_1 + 9" identifier + number_literal)) ;) (expression_statement "(*pcVar10)(param_1,param_2 + 0xc,iVar4 >> 0x1f,iVar4);" (call_expression "(*pcVar10)(param_1,param_2 + 0xc,iVar4 >> 0x1f,iVar4)" (parenthesized_expression "(*pcVar10)" ( (pointer_expression "*pcVar10" * identifier) )) (argument_list "(param_1,param_2 + 0xc,iVar4 >> 0x1f,iVar4)" ( identifier , (binary_expression "param_2 + 0xc" identifier + number_literal) , (binary_expression "iVar4 >> 0x1f" identifier >> number_literal) , identifier ))) ;) (expression_statement "(*pcVar8)(param_1,param_2 + 0xc,iVar4,pcVar9);" (call_expression "(*pcVar8)(param_1,param_2 + 0xc,iVar4,pcVar9)" (parenthesized_expression "(*pcVar8)" ( (pointer_expression "*pcVar8" * identifier) )) (argument_list "(param_1,param_2 + 0xc,iVar4,pcVar9)" ( identifier , (binary_expression "param_2 + 0xc" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "*(undefined4 *)(param_2 + 0x28) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0x28) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0x28)" * (cast_expression "(undefined4 *)(param_2 + 0x28)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x28)" ( (binary_expression "param_2 + 0x28" identifier + number_literal) )))) = number_literal) ;) (expression_statement "(*pcVar8)(param_1,param_2 + 0x24,param_3,param_4);" (call_expression "(*pcVar8)(param_1,param_2 + 0x24,param_3,param_4)" (parenthesized_expression "(*pcVar8)" ( (pointer_expression "*pcVar8" * identifier) )) (argument_list "(param_1,param_2 + 0x24,param_3,param_4)" ( identifier , (binary_expression "param_2 + 0x24" identifier + number_literal) , identifier , identifier ))) ;) (expression_statement "*(undefined2 *)(param_2 + 0x38) = 0x100;" (assignment_expression "*(undefined2 *)(param_2 + 0x38) = 0x100" (pointer_expression "*(undefined2 *)(param_2 + 0x38)" * (cast_expression "(undefined2 *)(param_2 + 0x38)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x38)" ( (binary_expression "param_2 + 0x38" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined1 *)(param_2 + 0x3a) = 0;" (assignment_expression "*(undefined1 *)(param_2 + 0x3a) = 0" (pointer_expression "*(undefined1 *)(param_2 + 0x3a)" * (cast_expression "(undefined1 *)(param_2 + 0x3a)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x3a)" ( (binary_expression "param_2 + 0x3a" identifier + number_literal) )))) = number_literal) ;) (expression_statement "**(undefined4 **)(param_2 + 0x48) = *(undefined4 *)(param_2 + 4);" (assignment_expression "**(undefined4 **)(param_2 + 0x48) = *(undefined4 *)(param_2 + 4)" (pointer_expression "**(undefined4 **)(param_2 + 0x48)" * (pointer_expression "*(undefined4 **)(param_2 + 0x48)" * (cast_expression "(undefined4 **)(param_2 + 0x48)" ( (type_descriptor "undefined4 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 0x48)" ( (binary_expression "param_2 + 0x48" identifier + number_literal) ))))) = (pointer_expression "*(undefined4 *)(param_2 + 4)" * (cast_expression "(undefined4 *)(param_2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (binary_expression (binary_expression IDENT + IDENT) + IDENT) + LIT) < (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (goto_statement goto statement_identifier ;)) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression IDENT + LIT) + IDENT) )))) )) (goto_statement goto statement_identifier ;)) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (binary_expression IDENT + LIT) + IDENT) )))) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) ))) ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (goto_statement goto statement_identifier ;) })) }))) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT - (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;)) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) || (parenthesized_expression ( (binary_expression LIT < IDENT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT) )))) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) == (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == IDENT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) while (parenthesized_expression ( (binary_expression (subscript_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) [ IDENT ]) == (pointer_expression * IDENT)) )) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - IDENT)) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT < LIT) )) || (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression IDENT + LIT) == IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression IDENT + LIT) ]) == (subscript_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) [ (binary_expression IDENT + LIT) ])) )) ;) }))) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) }))) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (binary_expression IDENT + LIT) , (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (return_statement return ;) })) }))) (expression_statement (assignment_expression IDENT = (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 (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) , (binary_expression IDENT >> LIT) , IDENT ))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , (binary_expression IDENT + LIT) , IDENT , IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (return_statement return ;) })))
(function_definition "void FUN_00102384(int *param_1,int param_2,int param_3,char *param_4)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  uint uVar7;\n  code *pcVar8;\n  char *pcVar9;\n  code *pcVar10;\n  \n  iVar4 = *(int *)(param_2 + 0x10);\n  iVar5 = *(int *)(param_2 + 0x1c);\n  iVar6 = *(int *)(param_2 + 0x28);\n  if (param_3 < *(int *)(param_2 + 0x28)) {\n    iVar6 = param_3;\n  }\n  if (iVar4 + iVar5 + param_3 + 2 < *(int *)(*param_1 + 0x44)) goto LAB_00102428;\n  if (iVar4 < 5) {\n    if (*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)) goto LAB_00102674;\n  }\n  else {\n    FUN_001019d0();\n    if (param_1[9] != 0) {\n      return;\n    }\n    iVar4 = *(int *)(param_2 + 0x10);\n    if (*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)) {\nLAB_00102674:\n      (*(code *)(PTR_LAB_0015b714 + 0x62a4))(param_1 + 9,param_2 + 0xc,param_2 + 0x14);\n      iVar5 = *(int *)(param_2 + 0x1c);\n      iVar4 = *(int *)(param_2 + 0x10);\n      goto LAB_00102428;\n    }\n  }\n  iVar5 = *(int *)(param_2 + 0x1c);\nLAB_00102428:\n  uVar7 = iVar4 - *(int *)(param_2 + 8);\n  if (((int)uVar7 < 0) || (0x7f < uVar7)) {\n    iVar4 = (*(code *)(PTR_LAB_0015b6d8 + 0x54))();\n  }\n  else {\n    *(char *)(*(int *)(param_2 + 0x18) + iVar5) = (char)uVar7;\n    iVar4 = 1;\n  }\n  *(undefined4 *)(param_2 + 8) = *(undefined4 *)(param_2 + 0x10);\n  *(int *)(param_2 + 0x1c) = *(int *)(param_2 + 0x1c) + iVar4;\n  pcVar9 = param_4;\n  iVar4 = param_3;\n  if (*(char *)(param_2 + 0x3a) == '\0') {\n    if (iVar6 < 1) {\n      iVar6 = 0;\n      iVar5 = 0;\n    }\n    else if (*param_4 == **(char **)(param_2 + 0x24)) {\n      iVar4 = 0;\n      pcVar3 = param_4 + 1;\n      do {\n        pcVar9 = pcVar3;\n        iVar4 = iVar4 + 1;\n        iVar5 = iVar6;\n        if (iVar6 == iVar4) break;\n        pcVar3 = pcVar9 + 1;\n        iVar5 = iVar4;\n      } while ((*(char **)(param_2 + 0x24))[iVar4] == *pcVar9);\n      iVar6 = iVar5 >> 0x1f;\n      iVar4 = param_3 - iVar5;\n    }\n    else {\n      iVar6 = 0;\n      iVar5 = 0;\n    }\n    pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700);\n    (*pcVar10)(param_1 + 9,param_2 + 0xc,iVar6,iVar5);\n    pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n  }\n  else {\n    if (*(int *)(param_2 + 4) == 1) {\n      pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n    }\n    else {\n      iVar5 = param_3;\n      if (*(int *)(param_2 + 0x28) != 0) {\n        if ((iVar6 < 1) || (*param_4 != **(char **)(param_2 + 0x24))) {\n          iVar5 = 1;\n        }\n        else {\n          iVar2 = 2;\n          do {\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);\n        }\n      }\n      iVar6 = *(int *)(param_2 + 0x58);\nLAB_001025a4:\n      if (iVar6 != 0) {\n        FUN_00102158(param_1,param_2);\n      }\n      puVar1 = PTR_LAB_0015b714;\n      if (param_1[9] != 0) {\n        return;\n      }\n      *(undefined4 *)(param_2 + 0x50) = 0;\n      pcVar8 = (code *)(puVar1 + 0x63a0);\n      (*pcVar8)(param_1 + 9,param_2 + 0x4c,iVar5,param_4);\n      *(undefined4 *)(param_2 + 0x58) = *(undefined4 *)(param_2 + 4);\n      if (param_1[9] != 0) {\n        return;\n      }\n    }\n    pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700);\n  }\n  param_1 = param_1 + 9;\n  (*pcVar10)(param_1,param_2 + 0xc,iVar4 >> 0x1f,iVar4);\n  (*pcVar8)(param_1,param_2 + 0xc,iVar4,pcVar9);\n  *(undefined4 *)(param_2 + 0x28) = 0;\n  (*pcVar8)(param_1,param_2 + 0x24,param_3,param_4);\n  *(undefined2 *)(param_2 + 0x38) = 0x100;\n  *(undefined1 *)(param_2 + 0x3a) = 0;\n  **(undefined4 **)(param_2 + 0x48) = *(undefined4 *)(param_2 + 4);\n  return;\n}" (primitive_type "void") (function_declarator "FUN_00102384(int *param_1,int param_2,int param_3,char *param_4)" (identifier "FUN_00102384") (parameter_list "(int *param_1,int param_2,int param_3,char *param_4)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "char *param_4" (primitive_type "char") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  char *pcVar3;\n  int iVar4;\n  int iVar5;\n  int iVar6;\n  uint uVar7;\n  code *pcVar8;\n  char *pcVar9;\n  code *pcVar10;\n  \n  iVar4 = *(int *)(param_2 + 0x10);\n  iVar5 = *(int *)(param_2 + 0x1c);\n  iVar6 = *(int *)(param_2 + 0x28);\n  if (param_3 < *(int *)(param_2 + 0x28)) {\n    iVar6 = param_3;\n  }\n  if (iVar4 + iVar5 + param_3 + 2 < *(int *)(*param_1 + 0x44)) goto LAB_00102428;\n  if (iVar4 < 5) {\n    if (*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)) goto LAB_00102674;\n  }\n  else {\n    FUN_001019d0();\n    if (param_1[9] != 0) {\n      return;\n    }\n    iVar4 = *(int *)(param_2 + 0x10);\n    if (*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)) {\nLAB_00102674:\n      (*(code *)(PTR_LAB_0015b714 + 0x62a4))(param_1 + 9,param_2 + 0xc,param_2 + 0x14);\n      iVar5 = *(int *)(param_2 + 0x1c);\n      iVar4 = *(int *)(param_2 + 0x10);\n      goto LAB_00102428;\n    }\n  }\n  iVar5 = *(int *)(param_2 + 0x1c);\nLAB_00102428:\n  uVar7 = iVar4 - *(int *)(param_2 + 8);\n  if (((int)uVar7 < 0) || (0x7f < uVar7)) {\n    iVar4 = (*(code *)(PTR_LAB_0015b6d8 + 0x54))();\n  }\n  else {\n    *(char *)(*(int *)(param_2 + 0x18) + iVar5) = (char)uVar7;\n    iVar4 = 1;\n  }\n  *(undefined4 *)(param_2 + 8) = *(undefined4 *)(param_2 + 0x10);\n  *(int *)(param_2 + 0x1c) = *(int *)(param_2 + 0x1c) + iVar4;\n  pcVar9 = param_4;\n  iVar4 = param_3;\n  if (*(char *)(param_2 + 0x3a) == '\0') {\n    if (iVar6 < 1) {\n      iVar6 = 0;\n      iVar5 = 0;\n    }\n    else if (*param_4 == **(char **)(param_2 + 0x24)) {\n      iVar4 = 0;\n      pcVar3 = param_4 + 1;\n      do {\n        pcVar9 = pcVar3;\n        iVar4 = iVar4 + 1;\n        iVar5 = iVar6;\n        if (iVar6 == iVar4) break;\n        pcVar3 = pcVar9 + 1;\n        iVar5 = iVar4;\n      } while ((*(char **)(param_2 + 0x24))[iVar4] == *pcVar9);\n      iVar6 = iVar5 >> 0x1f;\n      iVar4 = param_3 - iVar5;\n    }\n    else {\n      iVar6 = 0;\n      iVar5 = 0;\n    }\n    pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700);\n    (*pcVar10)(param_1 + 9,param_2 + 0xc,iVar6,iVar5);\n    pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n  }\n  else {\n    if (*(int *)(param_2 + 4) == 1) {\n      pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n    }\n    else {\n      iVar5 = param_3;\n      if (*(int *)(param_2 + 0x28) != 0) {\n        if ((iVar6 < 1) || (*param_4 != **(char **)(param_2 + 0x24))) {\n          iVar5 = 1;\n        }\n        else {\n          iVar2 = 2;\n          do {\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);\n        }\n      }\n      iVar6 = *(int *)(param_2 + 0x58);\nLAB_001025a4:\n      if (iVar6 != 0) {\n        FUN_00102158(param_1,param_2);\n      }\n      puVar1 = PTR_LAB_0015b714;\n      if (param_1[9] != 0) {\n        return;\n      }\n      *(undefined4 *)(param_2 + 0x50) = 0;\n      pcVar8 = (code *)(puVar1 + 0x63a0);\n      (*pcVar8)(param_1 + 9,param_2 + 0x4c,iVar5,param_4);\n      *(undefined4 *)(param_2 + 0x58) = *(undefined4 *)(param_2 + 4);\n      if (param_1[9] != 0) {\n        return;\n      }\n    }\n    pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700);\n  }\n  param_1 = param_1 + 9;\n  (*pcVar10)(param_1,param_2 + 0xc,iVar4 >> 0x1f,iVar4);\n  (*pcVar8)(param_1,param_2 + 0xc,iVar4,pcVar9);\n  *(undefined4 *)(param_2 + 0x28) = 0;\n  (*pcVar8)(param_1,param_2 + 0x24,param_3,param_4);\n  *(undefined2 *)(param_2 + 0x38) = 0x100;\n  *(undefined1 *)(param_2 + 0x3a) = 0;\n  **(undefined4 **)(param_2 + 0x48) = *(undefined4 *)(param_2 + 4);\n  return;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "int iVar6;" (primitive_type "int") (identifier "iVar6") (; ";")) (declaration "uint uVar7;" (type_identifier "uint") (identifier "uVar7") (; ";")) (declaration "code *pcVar8;" (type_identifier "code") (pointer_declarator "*pcVar8" (* "*") (identifier "pcVar8")) (; ";")) (declaration "char *pcVar9;" (primitive_type "char") (pointer_declarator "*pcVar9" (* "*") (identifier "pcVar9")) (; ";")) (declaration "code *pcVar10;" (type_identifier "code") (pointer_declarator "*pcVar10" (* "*") (identifier "pcVar10")) (; ";")) (expression_statement "iVar4 = *(int *)(param_2 + 0x10);" (assignment_expression "iVar4 = *(int *)(param_2 + 0x10)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_2 + 0x10)" (* "*") (cast_expression "(int *)(param_2 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "iVar5 = *(int *)(param_2 + 0x1c);" (assignment_expression "iVar5 = *(int *)(param_2 + 0x1c)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(param_2 + 0x1c)" (* "*") (cast_expression "(int *)(param_2 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x1c)" (( "(") (binary_expression "param_2 + 0x1c" (identifier "param_2") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (expression_statement "iVar6 = *(int *)(param_2 + 0x28);" (assignment_expression "iVar6 = *(int *)(param_2 + 0x28)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(param_2 + 0x28)" (* "*") (cast_expression "(int *)(param_2 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x28)" (( "(") (binary_expression "param_2 + 0x28" (identifier "param_2") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (if_statement "if (param_3 < *(int *)(param_2 + 0x28)) {\n    iVar6 = param_3;\n  }" (if "if") (parenthesized_expression "(param_3 < *(int *)(param_2 + 0x28))" (( "(") (binary_expression "param_3 < *(int *)(param_2 + 0x28)" (identifier "param_3") (< "<") (pointer_expression "*(int *)(param_2 + 0x28)" (* "*") (cast_expression "(int *)(param_2 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x28)" (( "(") (binary_expression "param_2 + 0x28" (identifier "param_2") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n    iVar6 = param_3;\n  }" ({ "{") (expression_statement "iVar6 = param_3;" (assignment_expression "iVar6 = param_3" (identifier "iVar6") (= "=") (identifier "param_3")) (; ";")) (} "}"))) (if_statement "if (iVar4 + iVar5 + param_3 + 2 < *(int *)(*param_1 + 0x44)) goto LAB_00102428;" (if "if") (parenthesized_expression "(iVar4 + iVar5 + param_3 + 2 < *(int *)(*param_1 + 0x44))" (( "(") (binary_expression "iVar4 + iVar5 + param_3 + 2 < *(int *)(*param_1 + 0x44)" (binary_expression "iVar4 + iVar5 + param_3 + 2" (binary_expression "iVar4 + iVar5 + param_3" (binary_expression "iVar4 + iVar5" (identifier "iVar4") (+ "+") (identifier "iVar5")) (+ "+") (identifier "param_3")) (+ "+") (number_literal "2")) (< "<") (pointer_expression "*(int *)(*param_1 + 0x44)" (* "*") (cast_expression "(int *)(*param_1 + 0x44)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0x44)" (( "(") (binary_expression "*param_1 + 0x44" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x44")) () ")"))))) () ")")) (goto_statement "goto LAB_00102428;" (goto "goto") (statement_identifier "LAB_00102428") (; ";"))) (if_statement "if (iVar4 < 5) {\n    if (*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)) goto LAB_00102674;\n  }\n  else {\n    FUN_001019d0();\n    if (param_1[9] != 0) {\n      return;\n    }\n    iVar4 = *(int *)(param_2 + 0x10);\n    if (*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)) {\nLAB_00102674:\n      (*(code *)(PTR_LAB_0015b714 + 0x62a4))(param_1 + 9,param_2 + 0xc,param_2 + 0x14);\n      iVar5 = *(int *)(param_2 + 0x1c);\n      iVar4 = *(int *)(param_2 + 0x10);\n      goto LAB_00102428;\n    }\n  }" (if "if") (parenthesized_expression "(iVar4 < 5)" (( "(") (binary_expression "iVar4 < 5" (identifier "iVar4") (< "<") (number_literal "5")) () ")")) (compound_statement "{\n    if (*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)) goto LAB_00102674;\n  }" ({ "{") (if_statement "if (*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)) goto LAB_00102674;" (if "if") (parenthesized_expression "(*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4))" (( "(") (binary_expression "*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)" (pointer_expression "*(uint *)(param_2 + 0x14)" (* "*") (cast_expression "(uint *)(param_2 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")")))) (< "<") (call_expression "(uint)(param_3 + 0x14 + iVar4)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_3 + 0x14 + iVar4)" (( "(") (binary_expression "param_3 + 0x14 + iVar4" (binary_expression "param_3 + 0x14" (identifier "param_3") (+ "+") (number_literal "0x14")) (+ "+") (identifier "iVar4")) () ")")))) () ")")) (goto_statement "goto LAB_00102674;" (goto "goto") (statement_identifier "LAB_00102674") (; ";"))) (} "}")) (else_clause "else {\n    FUN_001019d0();\n    if (param_1[9] != 0) {\n      return;\n    }\n    iVar4 = *(int *)(param_2 + 0x10);\n    if (*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)) {\nLAB_00102674:\n      (*(code *)(PTR_LAB_0015b714 + 0x62a4))(param_1 + 9,param_2 + 0xc,param_2 + 0x14);\n      iVar5 = *(int *)(param_2 + 0x1c);\n      iVar4 = *(int *)(param_2 + 0x10);\n      goto LAB_00102428;\n    }\n  }" (else "else") (compound_statement "{\n    FUN_001019d0();\n    if (param_1[9] != 0) {\n      return;\n    }\n    iVar4 = *(int *)(param_2 + 0x10);\n    if (*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)) {\nLAB_00102674:\n      (*(code *)(PTR_LAB_0015b714 + 0x62a4))(param_1 + 9,param_2 + 0xc,param_2 + 0x14);\n      iVar5 = *(int *)(param_2 + 0x1c);\n      iVar4 = *(int *)(param_2 + 0x10);\n      goto LAB_00102428;\n    }\n  }" ({ "{") (expression_statement "FUN_001019d0();" (call_expression "FUN_001019d0()" (identifier "FUN_001019d0") (argument_list "()" (( "(") () ")"))) (; ";")) (if_statement "if (param_1[9] != 0) {\n      return;\n    }" (if "if") (parenthesized_expression "(param_1[9] != 0)" (( "(") (binary_expression "param_1[9] != 0" (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar4 = *(int *)(param_2 + 0x10);" (assignment_expression "iVar4 = *(int *)(param_2 + 0x10)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_2 + 0x10)" (* "*") (cast_expression "(int *)(param_2 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (if_statement "if (*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)) {\nLAB_00102674:\n      (*(code *)(PTR_LAB_0015b714 + 0x62a4))(param_1 + 9,param_2 + 0xc,param_2 + 0x14);\n      iVar5 = *(int *)(param_2 + 0x1c);\n      iVar4 = *(int *)(param_2 + 0x10);\n      goto LAB_00102428;\n    }" (if "if") (parenthesized_expression "(*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4))" (( "(") (binary_expression "*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)" (pointer_expression "*(uint *)(param_2 + 0x14)" (* "*") (cast_expression "(uint *)(param_2 + 0x14)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")")))) (< "<") (call_expression "(uint)(param_3 + 0x14 + iVar4)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_3 + 0x14 + iVar4)" (( "(") (binary_expression "param_3 + 0x14 + iVar4" (binary_expression "param_3 + 0x14" (identifier "param_3") (+ "+") (number_literal "0x14")) (+ "+") (identifier "iVar4")) () ")")))) () ")")) (compound_statement "{\nLAB_00102674:\n      (*(code *)(PTR_LAB_0015b714 + 0x62a4))(param_1 + 9,param_2 + 0xc,param_2 + 0x14);\n      iVar5 = *(int *)(param_2 + 0x1c);\n      iVar4 = *(int *)(param_2 + 0x10);\n      goto LAB_00102428;\n    }" ({ "{") (labeled_statement "LAB_00102674:\n      (*(code *)(PTR_LAB_0015b714 + 0x62a4))(param_1 + 9,param_2 + 0xc,param_2 + 0x14);" (statement_identifier "LAB_00102674") (: ":") (expression_statement "(*(code *)(PTR_LAB_0015b714 + 0x62a4))(param_1 + 9,param_2 + 0xc,param_2 + 0x14);" (call_expression "(*(code *)(PTR_LAB_0015b714 + 0x62a4))(param_1 + 9,param_2 + 0xc,param_2 + 0x14)" (parenthesized_expression "(*(code *)(PTR_LAB_0015b714 + 0x62a4))" (( "(") (pointer_expression "*(code *)(PTR_LAB_0015b714 + 0x62a4)" (* "*") (cast_expression "(code *)(PTR_LAB_0015b714 + 0x62a4)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_0015b714 + 0x62a4)" (( "(") (binary_expression "PTR_LAB_0015b714 + 0x62a4" (identifier "PTR_LAB_0015b714") (+ "+") (number_literal "0x62a4")) () ")")))) () ")")) (argument_list "(param_1 + 9,param_2 + 0xc,param_2 + 0x14)" (( "(") (binary_expression "param_1 + 9" (identifier "param_1") (+ "+") (number_literal "9")) (, ",") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) (, ",") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")"))) (; ";"))) (expression_statement "iVar5 = *(int *)(param_2 + 0x1c);" (assignment_expression "iVar5 = *(int *)(param_2 + 0x1c)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(param_2 + 0x1c)" (* "*") (cast_expression "(int *)(param_2 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x1c)" (( "(") (binary_expression "param_2 + 0x1c" (identifier "param_2") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (expression_statement "iVar4 = *(int *)(param_2 + 0x10);" (assignment_expression "iVar4 = *(int *)(param_2 + 0x10)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_2 + 0x10)" (* "*") (cast_expression "(int *)(param_2 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (goto_statement "goto LAB_00102428;" (goto "goto") (statement_identifier "LAB_00102428") (; ";")) (} "}"))) (} "}")))) (expression_statement "iVar5 = *(int *)(param_2 + 0x1c);" (assignment_expression "iVar5 = *(int *)(param_2 + 0x1c)" (identifier "iVar5") (= "=") (pointer_expression "*(int *)(param_2 + 0x1c)" (* "*") (cast_expression "(int *)(param_2 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x1c)" (( "(") (binary_expression "param_2 + 0x1c" (identifier "param_2") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (labeled_statement "LAB_00102428:\n  uVar7 = iVar4 - *(int *)(param_2 + 8);" (statement_identifier "LAB_00102428") (: ":") (expression_statement "uVar7 = iVar4 - *(int *)(param_2 + 8);" (assignment_expression "uVar7 = iVar4 - *(int *)(param_2 + 8)" (identifier "uVar7") (= "=") (binary_expression "iVar4 - *(int *)(param_2 + 8)" (identifier "iVar4") (- "-") (pointer_expression "*(int *)(param_2 + 8)" (* "*") (cast_expression "(int *)(param_2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))))) (; ";"))) (if_statement "if (((int)uVar7 < 0) || (0x7f < uVar7)) {\n    iVar4 = (*(code *)(PTR_LAB_0015b6d8 + 0x54))();\n  }\n  else {\n    *(char *)(*(int *)(param_2 + 0x18) + iVar5) = (char)uVar7;\n    iVar4 = 1;\n  }" (if "if") (parenthesized_expression "(((int)uVar7 < 0) || (0x7f < uVar7))" (( "(") (binary_expression "((int)uVar7 < 0) || (0x7f < uVar7)" (parenthesized_expression "((int)uVar7 < 0)" (( "(") (binary_expression "(int)uVar7 < 0" (cast_expression "(int)uVar7" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar7")) (< "<") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(0x7f < uVar7)" (( "(") (binary_expression "0x7f < uVar7" (number_literal "0x7f") (< "<") (identifier "uVar7")) () ")"))) () ")")) (compound_statement "{\n    iVar4 = (*(code *)(PTR_LAB_0015b6d8 + 0x54))();\n  }" ({ "{") (expression_statement "iVar4 = (*(code *)(PTR_LAB_0015b6d8 + 0x54))();" (assignment_expression "iVar4 = (*(code *)(PTR_LAB_0015b6d8 + 0x54))()" (identifier "iVar4") (= "=") (call_expression "(*(code *)(PTR_LAB_0015b6d8 + 0x54))()" (parenthesized_expression "(*(code *)(PTR_LAB_0015b6d8 + 0x54))" (( "(") (pointer_expression "*(code *)(PTR_LAB_0015b6d8 + 0x54)" (* "*") (cast_expression "(code *)(PTR_LAB_0015b6d8 + 0x54)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_0015b6d8 + 0x54)" (( "(") (binary_expression "PTR_LAB_0015b6d8 + 0x54" (identifier "PTR_LAB_0015b6d8") (+ "+") (number_literal "0x54")) () ")")))) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (} "}")) (else_clause "else {\n    *(char *)(*(int *)(param_2 + 0x18) + iVar5) = (char)uVar7;\n    iVar4 = 1;\n  }" (else "else") (compound_statement "{\n    *(char *)(*(int *)(param_2 + 0x18) + iVar5) = (char)uVar7;\n    iVar4 = 1;\n  }" ({ "{") (expression_statement "*(char *)(*(int *)(param_2 + 0x18) + iVar5) = (char)uVar7;" (assignment_expression "*(char *)(*(int *)(param_2 + 0x18) + iVar5) = (char)uVar7" (pointer_expression "*(char *)(*(int *)(param_2 + 0x18) + iVar5)" (* "*") (cast_expression "(char *)(*(int *)(param_2 + 0x18) + iVar5)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_2 + 0x18) + iVar5)" (( "(") (binary_expression "*(int *)(param_2 + 0x18) + iVar5" (pointer_expression "*(int *)(param_2 + 0x18)" (* "*") (cast_expression "(int *)(param_2 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x18)" (( "(") (binary_expression "param_2 + 0x18" (identifier "param_2") (+ "+") (number_literal "0x18")) () ")")))) (+ "+") (identifier "iVar5")) () ")")))) (= "=") (cast_expression "(char)uVar7" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "uVar7"))) (; ";")) (expression_statement "iVar4 = 1;" (assignment_expression "iVar4 = 1" (identifier "iVar4") (= "=") (number_literal "1")) (; ";")) (} "}")))) (expression_statement "*(undefined4 *)(param_2 + 8) = *(undefined4 *)(param_2 + 0x10);" (assignment_expression "*(undefined4 *)(param_2 + 8) = *(undefined4 *)(param_2 + 0x10)" (pointer_expression "*(undefined4 *)(param_2 + 8)" (* "*") (cast_expression "(undefined4 *)(param_2 + 8)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 8)" (( "(") (binary_expression "param_2 + 8" (identifier "param_2") (+ "+") (number_literal "8")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(param_2 + 0x10)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x10)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x10)" (( "(") (binary_expression "param_2 + 0x10" (identifier "param_2") (+ "+") (number_literal "0x10")) () ")"))))) (; ";")) (expression_statement "*(int *)(param_2 + 0x1c) = *(int *)(param_2 + 0x1c) + iVar4;" (assignment_expression "*(int *)(param_2 + 0x1c) = *(int *)(param_2 + 0x1c) + iVar4" (pointer_expression "*(int *)(param_2 + 0x1c)" (* "*") (cast_expression "(int *)(param_2 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x1c)" (( "(") (binary_expression "param_2 + 0x1c" (identifier "param_2") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (binary_expression "*(int *)(param_2 + 0x1c) + iVar4" (pointer_expression "*(int *)(param_2 + 0x1c)" (* "*") (cast_expression "(int *)(param_2 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x1c)" (( "(") (binary_expression "param_2 + 0x1c" (identifier "param_2") (+ "+") (number_literal "0x1c")) () ")")))) (+ "+") (identifier "iVar4"))) (; ";")) (expression_statement "pcVar9 = param_4;" (assignment_expression "pcVar9 = param_4" (identifier "pcVar9") (= "=") (identifier "param_4")) (; ";")) (expression_statement "iVar4 = param_3;" (assignment_expression "iVar4 = param_3" (identifier "iVar4") (= "=") (identifier "param_3")) (; ";")) (if_statement "if (*(char *)(param_2 + 0x3a) == '\0') {\n    if (iVar6 < 1) {\n      iVar6 = 0;\n      iVar5 = 0;\n    }\n    else if (*param_4 == **(char **)(param_2 + 0x24)) {\n      iVar4 = 0;\n      pcVar3 = param_4 + 1;\n      do {\n        pcVar9 = pcVar3;\n        iVar4 = iVar4 + 1;\n        iVar5 = iVar6;\n        if (iVar6 == iVar4) break;\n        pcVar3 = pcVar9 + 1;\n        iVar5 = iVar4;\n      } while ((*(char **)(param_2 + 0x24))[iVar4] == *pcVar9);\n      iVar6 = iVar5 >> 0x1f;\n      iVar4 = param_3 - iVar5;\n    }\n    else {\n      iVar6 = 0;\n      iVar5 = 0;\n    }\n    pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700);\n    (*pcVar10)(param_1 + 9,param_2 + 0xc,iVar6,iVar5);\n    pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n  }\n  else {\n    if (*(int *)(param_2 + 4) == 1) {\n      pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n    }\n    else {\n      iVar5 = param_3;\n      if (*(int *)(param_2 + 0x28) != 0) {\n        if ((iVar6 < 1) || (*param_4 != **(char **)(param_2 + 0x24))) {\n          iVar5 = 1;\n        }\n        else {\n          iVar2 = 2;\n          do {\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);\n        }\n      }\n      iVar6 = *(int *)(param_2 + 0x58);\nLAB_001025a4:\n      if (iVar6 != 0) {\n        FUN_00102158(param_1,param_2);\n      }\n      puVar1 = PTR_LAB_0015b714;\n      if (param_1[9] != 0) {\n        return;\n      }\n      *(undefined4 *)(param_2 + 0x50) = 0;\n      pcVar8 = (code *)(puVar1 + 0x63a0);\n      (*pcVar8)(param_1 + 9,param_2 + 0x4c,iVar5,param_4);\n      *(undefined4 *)(param_2 + 0x58) = *(undefined4 *)(param_2 + 4);\n      if (param_1[9] != 0) {\n        return;\n      }\n    }\n    pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700);\n  }" (if "if") (parenthesized_expression "(*(char *)(param_2 + 0x3a) == '\0')" (( "(") (binary_expression "*(char *)(param_2 + 0x3a) == '\0'" (pointer_expression "*(char *)(param_2 + 0x3a)" (* "*") (cast_expression "(char *)(param_2 + 0x3a)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x3a)" (( "(") (binary_expression "param_2 + 0x3a" (identifier "param_2") (+ "+") (number_literal "0x3a")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    if (iVar6 < 1) {\n      iVar6 = 0;\n      iVar5 = 0;\n    }\n    else if (*param_4 == **(char **)(param_2 + 0x24)) {\n      iVar4 = 0;\n      pcVar3 = param_4 + 1;\n      do {\n        pcVar9 = pcVar3;\n        iVar4 = iVar4 + 1;\n        iVar5 = iVar6;\n        if (iVar6 == iVar4) break;\n        pcVar3 = pcVar9 + 1;\n        iVar5 = iVar4;\n      } while ((*(char **)(param_2 + 0x24))[iVar4] == *pcVar9);\n      iVar6 = iVar5 >> 0x1f;\n      iVar4 = param_3 - iVar5;\n    }\n    else {\n      iVar6 = 0;\n      iVar5 = 0;\n    }\n    pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700);\n    (*pcVar10)(param_1 + 9,param_2 + 0xc,iVar6,iVar5);\n    pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n  }" ({ "{") (if_statement "if (iVar6 < 1) {\n      iVar6 = 0;\n      iVar5 = 0;\n    }\n    else if (*param_4 == **(char **)(param_2 + 0x24)) {\n      iVar4 = 0;\n      pcVar3 = param_4 + 1;\n      do {\n        pcVar9 = pcVar3;\n        iVar4 = iVar4 + 1;\n        iVar5 = iVar6;\n        if (iVar6 == iVar4) break;\n        pcVar3 = pcVar9 + 1;\n        iVar5 = iVar4;\n      } while ((*(char **)(param_2 + 0x24))[iVar4] == *pcVar9);\n      iVar6 = iVar5 >> 0x1f;\n      iVar4 = param_3 - iVar5;\n    }\n    else {\n      iVar6 = 0;\n      iVar5 = 0;\n    }" (if "if") (parenthesized_expression "(iVar6 < 1)" (( "(") (binary_expression "iVar6 < 1" (identifier "iVar6") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n      iVar6 = 0;\n      iVar5 = 0;\n    }" ({ "{") (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else if (*param_4 == **(char **)(param_2 + 0x24)) {\n      iVar4 = 0;\n      pcVar3 = param_4 + 1;\n      do {\n        pcVar9 = pcVar3;\n        iVar4 = iVar4 + 1;\n        iVar5 = iVar6;\n        if (iVar6 == iVar4) break;\n        pcVar3 = pcVar9 + 1;\n        iVar5 = iVar4;\n      } while ((*(char **)(param_2 + 0x24))[iVar4] == *pcVar9);\n      iVar6 = iVar5 >> 0x1f;\n      iVar4 = param_3 - iVar5;\n    }\n    else {\n      iVar6 = 0;\n      iVar5 = 0;\n    }" (else "else") (if_statement "if (*param_4 == **(char **)(param_2 + 0x24)) {\n      iVar4 = 0;\n      pcVar3 = param_4 + 1;\n      do {\n        pcVar9 = pcVar3;\n        iVar4 = iVar4 + 1;\n        iVar5 = iVar6;\n        if (iVar6 == iVar4) break;\n        pcVar3 = pcVar9 + 1;\n        iVar5 = iVar4;\n      } while ((*(char **)(param_2 + 0x24))[iVar4] == *pcVar9);\n      iVar6 = iVar5 >> 0x1f;\n      iVar4 = param_3 - iVar5;\n    }\n    else {\n      iVar6 = 0;\n      iVar5 = 0;\n    }" (if "if") (parenthesized_expression "(*param_4 == **(char **)(param_2 + 0x24))" (( "(") (binary_expression "*param_4 == **(char **)(param_2 + 0x24)" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (== "==") (pointer_expression "**(char **)(param_2 + 0x24)" (* "*") (pointer_expression "*(char **)(param_2 + 0x24)" (* "*") (cast_expression "(char **)(param_2 + 0x24)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x24)" (( "(") (binary_expression "param_2 + 0x24" (identifier "param_2") (+ "+") (number_literal "0x24")) () ")")))))) () ")")) (compound_statement "{\n      iVar4 = 0;\n      pcVar3 = param_4 + 1;\n      do {\n        pcVar9 = pcVar3;\n        iVar4 = iVar4 + 1;\n        iVar5 = iVar6;\n        if (iVar6 == iVar4) break;\n        pcVar3 = pcVar9 + 1;\n        iVar5 = iVar4;\n      } while ((*(char **)(param_2 + 0x24))[iVar4] == *pcVar9);\n      iVar6 = iVar5 >> 0x1f;\n      iVar4 = param_3 - iVar5;\n    }" ({ "{") (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "pcVar3 = param_4 + 1;" (assignment_expression "pcVar3 = param_4 + 1" (identifier "pcVar3") (= "=") (binary_expression "param_4 + 1" (identifier "param_4") (+ "+") (number_literal "1"))) (; ";")) (do_statement "do {\n        pcVar9 = pcVar3;\n        iVar4 = iVar4 + 1;\n        iVar5 = iVar6;\n        if (iVar6 == iVar4) break;\n        pcVar3 = pcVar9 + 1;\n        iVar5 = iVar4;\n      } while ((*(char **)(param_2 + 0x24))[iVar4] == *pcVar9);" (do "do") (compound_statement "{\n        pcVar9 = pcVar3;\n        iVar4 = iVar4 + 1;\n        iVar5 = iVar6;\n        if (iVar6 == iVar4) break;\n        pcVar3 = pcVar9 + 1;\n        iVar5 = iVar4;\n      }" ({ "{") (expression_statement "pcVar9 = pcVar3;" (assignment_expression "pcVar9 = pcVar3" (identifier "pcVar9") (= "=") (identifier "pcVar3")) (; ";")) (expression_statement "iVar4 = iVar4 + 1;" (assignment_expression "iVar4 = iVar4 + 1" (identifier "iVar4") (= "=") (binary_expression "iVar4 + 1" (identifier "iVar4") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar5 = iVar6;" (assignment_expression "iVar5 = iVar6" (identifier "iVar5") (= "=") (identifier "iVar6")) (; ";")) (if_statement "if (iVar6 == iVar4) break;" (if "if") (parenthesized_expression "(iVar6 == iVar4)" (( "(") (binary_expression "iVar6 == iVar4" (identifier "iVar6") (== "==") (identifier "iVar4")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "pcVar3 = pcVar9 + 1;" (assignment_expression "pcVar3 = pcVar9 + 1" (identifier "pcVar3") (= "=") (binary_expression "pcVar9 + 1" (identifier "pcVar9") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "iVar5 = iVar4;" (assignment_expression "iVar5 = iVar4" (identifier "iVar5") (= "=") (identifier "iVar4")) (; ";")) (} "}")) (while "while") (parenthesized_expression "((*(char **)(param_2 + 0x24))[iVar4] == *pcVar9)" (( "(") (binary_expression "(*(char **)(param_2 + 0x24))[iVar4] == *pcVar9" (subscript_expression "(*(char **)(param_2 + 0x24))[iVar4]" (parenthesized_expression "(*(char **)(param_2 + 0x24))" (( "(") (pointer_expression "*(char **)(param_2 + 0x24)" (* "*") (cast_expression "(char **)(param_2 + 0x24)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x24)" (( "(") (binary_expression "param_2 + 0x24" (identifier "param_2") (+ "+") (number_literal "0x24")) () ")")))) () ")")) ([ "[") (identifier "iVar4") (] "]")) (== "==") (pointer_expression "*pcVar9" (* "*") (identifier "pcVar9"))) () ")")) (; ";")) (expression_statement "iVar6 = iVar5 >> 0x1f;" (assignment_expression "iVar6 = iVar5 >> 0x1f" (identifier "iVar6") (= "=") (binary_expression "iVar5 >> 0x1f" (identifier "iVar5") (>> ">>") (number_literal "0x1f"))) (; ";")) (expression_statement "iVar4 = param_3 - iVar5;" (assignment_expression "iVar4 = param_3 - iVar5" (identifier "iVar4") (= "=") (binary_expression "param_3 - iVar5" (identifier "param_3") (- "-") (identifier "iVar5"))) (; ";")) (} "}")) (else_clause "else {\n      iVar6 = 0;\n      iVar5 = 0;\n    }" (else "else") (compound_statement "{\n      iVar6 = 0;\n      iVar5 = 0;\n    }" ({ "{") (expression_statement "iVar6 = 0;" (assignment_expression "iVar6 = 0" (identifier "iVar6") (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar5 = 0;" (assignment_expression "iVar5 = 0" (identifier "iVar5") (= "=") (number_literal "0")) (; ";")) (} "}")))))) (expression_statement "pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700);" (assignment_expression "pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700)" (identifier "pcVar10") (= "=") (cast_expression "(code *)(PTR_LAB_0015b714 + 0x7700)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_0015b714 + 0x7700)" (( "(") (binary_expression "PTR_LAB_0015b714 + 0x7700" (identifier "PTR_LAB_0015b714") (+ "+") (number_literal "0x7700")) () ")")))) (; ";")) (expression_statement "(*pcVar10)(param_1 + 9,param_2 + 0xc,iVar6,iVar5);" (call_expression "(*pcVar10)(param_1 + 9,param_2 + 0xc,iVar6,iVar5)" (parenthesized_expression "(*pcVar10)" (( "(") (pointer_expression "*pcVar10" (* "*") (identifier "pcVar10")) () ")")) (argument_list "(param_1 + 9,param_2 + 0xc,iVar6,iVar5)" (( "(") (binary_expression "param_1 + 9" (identifier "param_1") (+ "+") (number_literal "9")) (, ",") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) (, ",") (identifier "iVar6") (, ",") (identifier "iVar5") () ")"))) (; ";")) (expression_statement "pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);" (assignment_expression "pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0)" (identifier "pcVar8") (= "=") (cast_expression "(code *)(PTR_LAB_0015b714 + 0x63a0)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_0015b714 + 0x63a0)" (( "(") (binary_expression "PTR_LAB_0015b714 + 0x63a0" (identifier "PTR_LAB_0015b714") (+ "+") (number_literal "0x63a0")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n    if (*(int *)(param_2 + 4) == 1) {\n      pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n    }\n    else {\n      iVar5 = param_3;\n      if (*(int *)(param_2 + 0x28) != 0) {\n        if ((iVar6 < 1) || (*param_4 != **(char **)(param_2 + 0x24))) {\n          iVar5 = 1;\n        }\n        else {\n          iVar2 = 2;\n          do {\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);\n        }\n      }\n      iVar6 = *(int *)(param_2 + 0x58);\nLAB_001025a4:\n      if (iVar6 != 0) {\n        FUN_00102158(param_1,param_2);\n      }\n      puVar1 = PTR_LAB_0015b714;\n      if (param_1[9] != 0) {\n        return;\n      }\n      *(undefined4 *)(param_2 + 0x50) = 0;\n      pcVar8 = (code *)(puVar1 + 0x63a0);\n      (*pcVar8)(param_1 + 9,param_2 + 0x4c,iVar5,param_4);\n      *(undefined4 *)(param_2 + 0x58) = *(undefined4 *)(param_2 + 4);\n      if (param_1[9] != 0) {\n        return;\n      }\n    }\n    pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700);\n  }" (else "else") (compound_statement "{\n    if (*(int *)(param_2 + 4) == 1) {\n      pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n    }\n    else {\n      iVar5 = param_3;\n      if (*(int *)(param_2 + 0x28) != 0) {\n        if ((iVar6 < 1) || (*param_4 != **(char **)(param_2 + 0x24))) {\n          iVar5 = 1;\n        }\n        else {\n          iVar2 = 2;\n          do {\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);\n        }\n      }\n      iVar6 = *(int *)(param_2 + 0x58);\nLAB_001025a4:\n      if (iVar6 != 0) {\n        FUN_00102158(param_1,param_2);\n      }\n      puVar1 = PTR_LAB_0015b714;\n      if (param_1[9] != 0) {\n        return;\n      }\n      *(undefined4 *)(param_2 + 0x50) = 0;\n      pcVar8 = (code *)(puVar1 + 0x63a0);\n      (*pcVar8)(param_1 + 9,param_2 + 0x4c,iVar5,param_4);\n      *(undefined4 *)(param_2 + 0x58) = *(undefined4 *)(param_2 + 4);\n      if (param_1[9] != 0) {\n        return;\n      }\n    }\n    pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700);\n  }" ({ "{") (if_statement "if (*(int *)(param_2 + 4) == 1) {\n      pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n    }\n    else {\n      iVar5 = param_3;\n      if (*(int *)(param_2 + 0x28) != 0) {\n        if ((iVar6 < 1) || (*param_4 != **(char **)(param_2 + 0x24))) {\n          iVar5 = 1;\n        }\n        else {\n          iVar2 = 2;\n          do {\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);\n        }\n      }\n      iVar6 = *(int *)(param_2 + 0x58);\nLAB_001025a4:\n      if (iVar6 != 0) {\n        FUN_00102158(param_1,param_2);\n      }\n      puVar1 = PTR_LAB_0015b714;\n      if (param_1[9] != 0) {\n        return;\n      }\n      *(undefined4 *)(param_2 + 0x50) = 0;\n      pcVar8 = (code *)(puVar1 + 0x63a0);\n      (*pcVar8)(param_1 + 9,param_2 + 0x4c,iVar5,param_4);\n      *(undefined4 *)(param_2 + 0x58) = *(undefined4 *)(param_2 + 4);\n      if (param_1[9] != 0) {\n        return;\n      }\n    }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 4) == 1)" (( "(") (binary_expression "*(int *)(param_2 + 4) == 1" (pointer_expression "*(int *)(param_2 + 4)" (* "*") (cast_expression "(int *)(param_2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")")))) (== "==") (number_literal "1")) () ")")) (compound_statement "{\n      pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);\n    }" ({ "{") (expression_statement "pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);" (assignment_expression "pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0)" (identifier "pcVar8") (= "=") (cast_expression "(code *)(PTR_LAB_0015b714 + 0x63a0)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_0015b714 + 0x63a0)" (( "(") (binary_expression "PTR_LAB_0015b714 + 0x63a0" (identifier "PTR_LAB_0015b714") (+ "+") (number_literal "0x63a0")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n      iVar5 = param_3;\n      if (*(int *)(param_2 + 0x28) != 0) {\n        if ((iVar6 < 1) || (*param_4 != **(char **)(param_2 + 0x24))) {\n          iVar5 = 1;\n        }\n        else {\n          iVar2 = 2;\n          do {\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);\n        }\n      }\n      iVar6 = *(int *)(param_2 + 0x58);\nLAB_001025a4:\n      if (iVar6 != 0) {\n        FUN_00102158(param_1,param_2);\n      }\n      puVar1 = PTR_LAB_0015b714;\n      if (param_1[9] != 0) {\n        return;\n      }\n      *(undefined4 *)(param_2 + 0x50) = 0;\n      pcVar8 = (code *)(puVar1 + 0x63a0);\n      (*pcVar8)(param_1 + 9,param_2 + 0x4c,iVar5,param_4);\n      *(undefined4 *)(param_2 + 0x58) = *(undefined4 *)(param_2 + 4);\n      if (param_1[9] != 0) {\n        return;\n      }\n    }" (else "else") (compound_statement "{\n      iVar5 = param_3;\n      if (*(int *)(param_2 + 0x28) != 0) {\n        if ((iVar6 < 1) || (*param_4 != **(char **)(param_2 + 0x24))) {\n          iVar5 = 1;\n        }\n        else {\n          iVar2 = 2;\n          do {\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);\n        }\n      }\n      iVar6 = *(int *)(param_2 + 0x58);\nLAB_001025a4:\n      if (iVar6 != 0) {\n        FUN_00102158(param_1,param_2);\n      }\n      puVar1 = PTR_LAB_0015b714;\n      if (param_1[9] != 0) {\n        return;\n      }\n      *(undefined4 *)(param_2 + 0x50) = 0;\n      pcVar8 = (code *)(puVar1 + 0x63a0);\n      (*pcVar8)(param_1 + 9,param_2 + 0x4c,iVar5,param_4);\n      *(undefined4 *)(param_2 + 0x58) = *(undefined4 *)(param_2 + 4);\n      if (param_1[9] != 0) {\n        return;\n      }\n    }" ({ "{") (expression_statement "iVar5 = param_3;" (assignment_expression "iVar5 = param_3" (identifier "iVar5") (= "=") (identifier "param_3")) (; ";")) (if_statement "if (*(int *)(param_2 + 0x28) != 0) {\n        if ((iVar6 < 1) || (*param_4 != **(char **)(param_2 + 0x24))) {\n          iVar5 = 1;\n        }\n        else {\n          iVar2 = 2;\n          do {\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);\n        }\n      }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 0x28) != 0)" (( "(") (binary_expression "*(int *)(param_2 + 0x28) != 0" (pointer_expression "*(int *)(param_2 + 0x28)" (* "*") (cast_expression "(int *)(param_2 + 0x28)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x28)" (( "(") (binary_expression "param_2 + 0x28" (identifier "param_2") (+ "+") (number_literal "0x28")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        if ((iVar6 < 1) || (*param_4 != **(char **)(param_2 + 0x24))) {\n          iVar5 = 1;\n        }\n        else {\n          iVar2 = 2;\n          do {\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);\n        }\n      }" ({ "{") (if_statement "if ((iVar6 < 1) || (*param_4 != **(char **)(param_2 + 0x24))) {\n          iVar5 = 1;\n        }\n        else {\n          iVar2 = 2;\n          do {\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);\n        }" (if "if") (parenthesized_expression "((iVar6 < 1) || (*param_4 != **(char **)(param_2 + 0x24)))" (( "(") (binary_expression "(iVar6 < 1) || (*param_4 != **(char **)(param_2 + 0x24))" (parenthesized_expression "(iVar6 < 1)" (( "(") (binary_expression "iVar6 < 1" (identifier "iVar6") (< "<") (number_literal "1")) () ")")) (|| "||") (parenthesized_expression "(*param_4 != **(char **)(param_2 + 0x24))" (( "(") (binary_expression "*param_4 != **(char **)(param_2 + 0x24)" (pointer_expression "*param_4" (* "*") (identifier "param_4")) (!= "!=") (pointer_expression "**(char **)(param_2 + 0x24)" (* "*") (pointer_expression "*(char **)(param_2 + 0x24)" (* "*") (cast_expression "(char **)(param_2 + 0x24)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x24)" (( "(") (binary_expression "param_2 + 0x24" (identifier "param_2") (+ "+") (number_literal "0x24")) () ")")))))) () ")"))) () ")")) (compound_statement "{\n          iVar5 = 1;\n        }" ({ "{") (expression_statement "iVar5 = 1;" (assignment_expression "iVar5 = 1" (identifier "iVar5") (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n          iVar2 = 2;\n          do {\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);\n        }" (else "else") (compound_statement "{\n          iVar2 = 2;\n          do {\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);\n        }" ({ "{") (expression_statement "iVar2 = 2;" (assignment_expression "iVar2 = 2" (identifier "iVar2") (= "=") (number_literal "2")) (; ";")) (do_statement "do {\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);" (do "do") (compound_statement "{\n            iVar5 = iVar2;\n            if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }\n            iVar2 = iVar5 + 1;\n          }" ({ "{") (expression_statement "iVar5 = iVar2;" (assignment_expression "iVar5 = iVar2" (identifier "iVar5") (= "=") (identifier "iVar2")) (; ";")) (if_statement "if (iVar6 + 1 == iVar5) {\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }" (if "if") (parenthesized_expression "(iVar6 + 1 == iVar5)" (( "(") (binary_expression "iVar6 + 1 == iVar5" (binary_expression "iVar6 + 1" (identifier "iVar6") (+ "+") (number_literal "1")) (== "==") (identifier "iVar5")) () ")")) (compound_statement "{\n              iVar6 = *(int *)(param_2 + 0x58);\n              goto LAB_001025a4;\n            }" ({ "{") (expression_statement "iVar6 = *(int *)(param_2 + 0x58);" (assignment_expression "iVar6 = *(int *)(param_2 + 0x58)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(param_2 + 0x58)" (* "*") (cast_expression "(int *)(param_2 + 0x58)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x58)" (( "(") (binary_expression "param_2 + 0x58" (identifier "param_2") (+ "+") (number_literal "0x58")) () ")"))))) (; ";")) (goto_statement "goto LAB_001025a4;" (goto "goto") (statement_identifier "LAB_001025a4") (; ";")) (} "}"))) (expression_statement "iVar2 = iVar5 + 1;" (assignment_expression "iVar2 = iVar5 + 1" (identifier "iVar2") (= "=") (binary_expression "iVar5 + 1" (identifier "iVar5") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1])" (( "(") (binary_expression "param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]" (subscript_expression "param_4[iVar5 + -1]" (identifier "param_4") ([ "[") (binary_expression "iVar5 + -1" (identifier "iVar5") (+ "+") (number_literal "-1")) (] "]")) (== "==") (subscript_expression "(*(char **)(param_2 + 0x24))[iVar5 + -1]" (parenthesized_expression "(*(char **)(param_2 + 0x24))" (( "(") (pointer_expression "*(char **)(param_2 + 0x24)" (* "*") (cast_expression "(char **)(param_2 + 0x24)" (( "(") (type_descriptor "char **" (primitive_type "char") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x24)" (( "(") (binary_expression "param_2 + 0x24" (identifier "param_2") (+ "+") (number_literal "0x24")) () ")")))) () ")")) ([ "[") (binary_expression "iVar5 + -1" (identifier "iVar5") (+ "+") (number_literal "-1")) (] "]"))) () ")")) (; ";")) (} "}")))) (} "}"))) (expression_statement "iVar6 = *(int *)(param_2 + 0x58);" (assignment_expression "iVar6 = *(int *)(param_2 + 0x58)" (identifier "iVar6") (= "=") (pointer_expression "*(int *)(param_2 + 0x58)" (* "*") (cast_expression "(int *)(param_2 + 0x58)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x58)" (( "(") (binary_expression "param_2 + 0x58" (identifier "param_2") (+ "+") (number_literal "0x58")) () ")"))))) (; ";")) (labeled_statement "LAB_001025a4:\n      if (iVar6 != 0) {\n        FUN_00102158(param_1,param_2);\n      }" (statement_identifier "LAB_001025a4") (: ":") (if_statement "if (iVar6 != 0) {\n        FUN_00102158(param_1,param_2);\n      }" (if "if") (parenthesized_expression "(iVar6 != 0)" (( "(") (binary_expression "iVar6 != 0" (identifier "iVar6") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_00102158(param_1,param_2);\n      }" ({ "{") (expression_statement "FUN_00102158(param_1,param_2);" (call_expression "FUN_00102158(param_1,param_2)" (identifier "FUN_00102158") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}")))) (expression_statement "puVar1 = PTR_LAB_0015b714;" (assignment_expression "puVar1 = PTR_LAB_0015b714" (identifier "puVar1") (= "=") (identifier "PTR_LAB_0015b714")) (; ";")) (if_statement "if (param_1[9] != 0) {\n        return;\n      }" (if "if") (parenthesized_expression "(param_1[9] != 0)" (( "(") (binary_expression "param_1[9] != 0" (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(param_2 + 0x50) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0x50) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0x50)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x50)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x50)" (( "(") (binary_expression "param_2 + 0x50" (identifier "param_2") (+ "+") (number_literal "0x50")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "pcVar8 = (code *)(puVar1 + 0x63a0);" (assignment_expression "pcVar8 = (code *)(puVar1 + 0x63a0)" (identifier "pcVar8") (= "=") (cast_expression "(code *)(puVar1 + 0x63a0)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar1 + 0x63a0)" (( "(") (binary_expression "puVar1 + 0x63a0" (identifier "puVar1") (+ "+") (number_literal "0x63a0")) () ")")))) (; ";")) (expression_statement "(*pcVar8)(param_1 + 9,param_2 + 0x4c,iVar5,param_4);" (call_expression "(*pcVar8)(param_1 + 9,param_2 + 0x4c,iVar5,param_4)" (parenthesized_expression "(*pcVar8)" (( "(") (pointer_expression "*pcVar8" (* "*") (identifier "pcVar8")) () ")")) (argument_list "(param_1 + 9,param_2 + 0x4c,iVar5,param_4)" (( "(") (binary_expression "param_1 + 9" (identifier "param_1") (+ "+") (number_literal "9")) (, ",") (binary_expression "param_2 + 0x4c" (identifier "param_2") (+ "+") (number_literal "0x4c")) (, ",") (identifier "iVar5") (, ",") (identifier "param_4") () ")"))) (; ";")) (expression_statement "*(undefined4 *)(param_2 + 0x58) = *(undefined4 *)(param_2 + 4);" (assignment_expression "*(undefined4 *)(param_2 + 0x58) = *(undefined4 *)(param_2 + 4)" (pointer_expression "*(undefined4 *)(param_2 + 0x58)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x58)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x58)" (( "(") (binary_expression "param_2 + 0x58" (identifier "param_2") (+ "+") (number_literal "0x58")) () ")")))) (= "=") (pointer_expression "*(undefined4 *)(param_2 + 4)" (* "*") (cast_expression "(undefined4 *)(param_2 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if (param_1[9] != 0) {\n        return;\n      }" (if "if") (parenthesized_expression "(param_1[9] != 0)" (( "(") (binary_expression "param_1[9] != 0" (subscript_expression "param_1[9]" (identifier "param_1") ([ "[") (number_literal "9") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")))) (expression_statement "pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700);" (assignment_expression "pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700)" (identifier "pcVar10") (= "=") (cast_expression "(code *)(PTR_LAB_0015b714 + 0x7700)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_0015b714 + 0x7700)" (( "(") (binary_expression "PTR_LAB_0015b714 + 0x7700" (identifier "PTR_LAB_0015b714") (+ "+") (number_literal "0x7700")) () ")")))) (; ";")) (} "}")))) (expression_statement "param_1 = param_1 + 9;" (assignment_expression "param_1 = param_1 + 9" (identifier "param_1") (= "=") (binary_expression "param_1 + 9" (identifier "param_1") (+ "+") (number_literal "9"))) (; ";")) (expression_statement "(*pcVar10)(param_1,param_2 + 0xc,iVar4 >> 0x1f,iVar4);" (call_expression "(*pcVar10)(param_1,param_2 + 0xc,iVar4 >> 0x1f,iVar4)" (parenthesized_expression "(*pcVar10)" (( "(") (pointer_expression "*pcVar10" (* "*") (identifier "pcVar10")) () ")")) (argument_list "(param_1,param_2 + 0xc,iVar4 >> 0x1f,iVar4)" (( "(") (identifier "param_1") (, ",") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) (, ",") (binary_expression "iVar4 >> 0x1f" (identifier "iVar4") (>> ">>") (number_literal "0x1f")) (, ",") (identifier "iVar4") () ")"))) (; ";")) (expression_statement "(*pcVar8)(param_1,param_2 + 0xc,iVar4,pcVar9);" (call_expression "(*pcVar8)(param_1,param_2 + 0xc,iVar4,pcVar9)" (parenthesized_expression "(*pcVar8)" (( "(") (pointer_expression "*pcVar8" (* "*") (identifier "pcVar8")) () ")")) (argument_list "(param_1,param_2 + 0xc,iVar4,pcVar9)" (( "(") (identifier "param_1") (, ",") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) (, ",") (identifier "iVar4") (, ",") (identifier "pcVar9") () ")"))) (; ";")) (expression_statement "*(undefined4 *)(param_2 + 0x28) = 0;" (assignment_expression "*(undefined4 *)(param_2 + 0x28) = 0" (pointer_expression "*(undefined4 *)(param_2 + 0x28)" (* "*") (cast_expression "(undefined4 *)(param_2 + 0x28)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x28)" (( "(") (binary_expression "param_2 + 0x28" (identifier "param_2") (+ "+") (number_literal "0x28")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "(*pcVar8)(param_1,param_2 + 0x24,param_3,param_4);" (call_expression "(*pcVar8)(param_1,param_2 + 0x24,param_3,param_4)" (parenthesized_expression "(*pcVar8)" (( "(") (pointer_expression "*pcVar8" (* "*") (identifier "pcVar8")) () ")")) (argument_list "(param_1,param_2 + 0x24,param_3,param_4)" (( "(") (identifier "param_1") (, ",") (binary_expression "param_2 + 0x24" (identifier "param_2") (+ "+") (number_literal "0x24")) (, ",") (identifier "param_3") (, ",") (identifier "param_4") () ")"))) (; ";")) (expression_statement "*(undefined2 *)(param_2 + 0x38) = 0x100;" (assignment_expression "*(undefined2 *)(param_2 + 0x38) = 0x100" (pointer_expression "*(undefined2 *)(param_2 + 0x38)" (* "*") (cast_expression "(undefined2 *)(param_2 + 0x38)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x38)" (( "(") (binary_expression "param_2 + 0x38" (identifier "param_2") (+ "+") (number_literal "0x38")) () ")")))) (= "=") (number_literal "0x100")) (; ";")) (expression_statement "*(undefined1 *)(param_2 + 0x3a) = 0;" (assignment_expression "*(undefined1 *)(param_2 + 0x3a) = 0" (pointer_expression "*(undefined1 *)(param_2 + 0x3a)" (* "*") (cast_expression "(undefined1 *)(param_2 + 0x3a)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x3a)" (( "(") (binary_expression "param_2 + 0x3a" (identifier "param_2") (+ "+") (number_literal "0x3a")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "**(undefined4 **)(param_2 + 0x48) = *(undefined4 *)(param_2 + 4);" (assignment_expression "**(undefined4 **)(param_2 + 0x48) = *(undefined4 *)(param_2 + 4)" (pointer_expression "**(undefined4 **)(param_2 + 0x48)" (* "*") (pointer_expression "*(undefined4 **)(param_2 + 0x48)" (* "*") (cast_expression "(undefined4 **)(param_2 + 0x48)" (( "(") (type_descriptor "undefined4 **" (type_identifier "undefined4") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 0x48)" (( "(") (binary_expression "param_2 + 0x48" (identifier "param_2") (+ "+") (number_literal "0x48")) () ")"))))) (= "=") (pointer_expression "*(undefined4 *)(param_2 + 4)" (* "*") (cast_expression "(undefined4 *)(param_2 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 *p,type_2 *pWriter,int var_1,type_3 *var_10)

{
  type_3 var_9;
  type_4 *var_13;
  int iVar3;
  type_3 *puVar4;
  int var_3;
  type_3 *puVar6;
  int var_4;
  int var_2;
  type_5 var_7;
  type_6 *pcVar10;
  type_3 *var_11;
  int *piVar12;
  type_6 *pcVar13;
  type_7 *pFVar14;
  
  var_3 = (pWriter->writer).buf.n;
  var_4 = (pWriter->writer).pgidx.n;
  var_2 = (pWriter->writer).term.n;
  if (var_1 < var_2) {
    var_2 = var_1;
  }
  if (var_3 + var_4 + var_1 + 2 < p->pConfig->pgsz) goto LAB_00102428;
  if (var_3 < 5) {
    if ((type_5)(pWriter->writer).buf.nSpace < (type_5)(var_1 + 0x14 + var_3)) goto LAB_00102674;
  }
  else {
    var_5(p,pWriter);
    if (p->rc != 0) {
      return;
    }
    var_3 = (pWriter->writer).buf.n;
    if ((type_5)(pWriter->writer).buf.nSpace < (type_5)(var_1 + 0x14 + var_3)) {
LAB_00102674:
      (*(type_6 *)(var_6 + 0x62a4))
                (&p->rc,&(pWriter->writer).buf,&(pWriter->writer).buf.nSpace);
      var_4 = (pWriter->writer).pgidx.n;
      var_3 = (pWriter->writer).buf.n;
      goto LAB_00102428;
    }
  }
  var_4 = (pWriter->writer).pgidx.n;
LAB_00102428:
  var_7 = var_3 - (pWriter->writer).iPrevPgidx;
  if (((int)var_7 < 0) || (0x7f < var_7)) {
    var_3 = (*(type_6 *)(var_8 + 0x54))();
  }
  else {
    (pWriter->writer).pgidx.p[var_4] = (type_3)var_7;
    var_3 = 1;
  }
  var_4 = (pWriter->writer).pgidx.n;
  var_9 = pWriter->bFirstTermInPage;
  (pWriter->writer).iPrevPgidx = (pWriter->writer).buf.n;
  (pWriter->writer).pgidx.n = var_4 + var_3;
  var_11 = var_10;
  var_3 = var_1;
  if (var_9 == '\0') {
    puVar6 = (pWriter->writer).term.p;
    if (var_2 < 1) {
      var_2 = 0;
      var_4 = 0;
    }
    else if (*var_10 == *puVar6) {
      var_3 = 0;
      puVar4 = var_10 + 1;
      do {
        var_11 = puVar4;
        var_3 = var_3 + 1;
        var_4 = var_2;
        if (var_2 == var_3) break;
        puVar4 = var_11 + 1;
        var_4 = var_3;
      } while (puVar6[var_3] == *var_11);
      var_2 = var_4 >> 0x1f;
      var_3 = var_1 - var_4;
    }
    else {
      var_2 = 0;
      var_4 = 0;
    }
    pcVar13 = (type_6 *)(var_6 + 0x7700);
    (*pcVar13)(&p->rc,&(pWriter->writer).buf,var_2,var_4);
    pcVar10 = (type_6 *)(var_6 + 0x63a0);
  }
  else {
    if ((pWriter->writer).pgno == 1) {
      pcVar10 = (type_6 *)(var_6 + 0x63a0);
    }
    else {
      var_4 = var_1;
      if ((pWriter->writer).term.n != 0) {
        puVar6 = (pWriter->writer).term.p;
        if ((var_2 < 1) || (*var_10 != *puVar6)) {
          var_4 = 1;
        }
        else {
          iVar3 = 2;
          do {
            var_4 = iVar3;
            if (var_2 + 1 == var_4) {
              var_2 = pWriter->iBtPage;
              goto LAB_001025a4;
            }
            iVar3 = var_4 + 1;
          } while (var_10[var_4 + -1] == puVar6[var_4 + -1]);
        }
      }
      var_2 = pWriter->iBtPage;
LAB_001025a4:
      if (var_2 != 0) {
        var_12(p,pWriter);
      }
      var_13 = var_6;
      if (p->rc != 0) {
        return;
      }
      (pWriter->btterm).n = 0;
      pcVar10 = (type_6 *)(var_13 + 0x63a0);
      (*pcVar10)(&p->rc,&pWriter->btterm,var_4,var_10);
      pWriter->iBtPage = (pWriter->writer).pgno;
      if (p->rc != 0) {
        return;
      }
    }
    pcVar13 = (type_6 *)(var_6 + 0x7700);
  }
  piVar12 = &p->rc;
  pFVar14 = &(pWriter->writer).buf;
  (*pcVar13)(piVar12,pFVar14,var_3 >> 0x1f,var_3);
  (*pcVar10)(piVar12,pFVar14,var_3,var_11);
  (pWriter->writer).term.n = 0;
  (*pcVar10)(piVar12,&(pWriter->writer).term,var_1,var_10);
  var_2 = (pWriter->writer).pgno;
  pWriter->bFirstRowidInDoclist = '\x01';
  pWriter->bFirstRowidInPage = '\0';
  pWriter->bFirstTermInPage = '\0';
  pWriter->aDlidx->pgno = var_2;
  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: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))))) body: (compound_statement (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (primitive_type) declarator: (identifier)) (declaration type: (type_identifier) declarator: (identifier)) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (primitive_type) declarator: (pointer_declarator declarator: (identifier))) (declaration type: (type_identifier) declarator: (pointer_declarator declarator: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (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: (pointer_expression argument: (identifier)) right: (number_literal))))))) consequence: (goto_statement label: (statement_identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier)))))) consequence: (goto_statement label: (statement_identifier)))) alternative: (else_clause (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (return_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))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (call_expression function: (parenthesized_expression (identifier)) arguments: (argument_list (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier)))))) consequence: (compound_statement (labeled_statement label: (statement_identifier) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (goto_statement label: (statement_identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (labeled_statement label: (statement_identifier) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (number_literal) right: (identifier))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (call_expression function: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) arguments: (argument_list))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier))))) right: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (char_literal (escape_sequence)))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (break_statement)) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) index: (identifier)) right: (pointer_expression argument: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (number_literal)))))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (identifier) (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) alternative: (else_clause (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (pointer_expression argument: (identifier)) right: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))))))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal)))) alternative: (else_clause (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (do_statement body: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (number_literal)) right: (identifier))) 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))))))) (goto_statement label: (statement_identifier)))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal))))) condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (binary_expression left: (identifier) right: (number_literal))) right: (subscript_expression argument: (parenthesized_expression (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) index: (binary_expression left: (identifier) right: (number_literal))))))))))) (expression_statement (assignment_expression left: (identifier) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (labeled_statement label: (statement_identifier) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier))))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (return_statement))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (identifier) (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (if_statement condition: (parenthesized_expression (binary_expression left: (subscript_expression argument: (identifier) index: (number_literal)) right: (number_literal))) consequence: (compound_statement (return_statement)))))) (expression_statement (assignment_expression left: (identifier) right: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (number_literal)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)) (binary_expression left: (identifier) right: (number_literal)) (identifier)))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)) (identifier) (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (call_expression function: (parenthesized_expression (pointer_expression argument: (identifier))) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (number_literal)) (identifier) (identifier)))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) (expression_statement (assignment_expression left: (pointer_expression argument: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator declarator: (abstract_pointer_declarator))) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal)))))) right: (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))))) (return_statement))))

void MASKED(int *param_1,int param_2,int param_3,char *param_4)

{
  undefined *puVar1;
  int iVar2;
  char *pcVar3;
  int iVar4;
  int iVar5;
  int iVar6;
  uint uVar7;
  code *pcVar8;
  char *pcVar9;
  code *pcVar10;
  
  iVar4 = *(int *)(param_2 + 0x10);
  iVar5 = *(int *)(param_2 + 0x1c);
  iVar6 = *(int *)(param_2 + 0x28);
  if (param_3 < *(int *)(param_2 + 0x28)) {
    iVar6 = param_3;
  }
  if (iVar4 + iVar5 + param_3 + 2 < *(int *)(*param_1 + 0x44)) goto LAB_00102428;
  if (iVar4 < 5) {
    if (*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)) goto LAB_00102674;
  }
  else {
    FUN_001019d0();
    if (param_1[9] != 0) {
      return;
    }
    iVar4 = *(int *)(param_2 + 0x10);
    if (*(uint *)(param_2 + 0x14) < (uint)(param_3 + 0x14 + iVar4)) {
LAB_00102674:
      (*(code *)(PTR_LAB_0015b714 + 0x62a4))(param_1 + 9,param_2 + 0xc,param_2 + 0x14);
      iVar5 = *(int *)(param_2 + 0x1c);
      iVar4 = *(int *)(param_2 + 0x10);
      goto LAB_00102428;
    }
  }
  iVar5 = *(int *)(param_2 + 0x1c);
LAB_00102428:
  uVar7 = iVar4 - *(int *)(param_2 + 8);
  if (((int)uVar7 < 0) || (0x7f < uVar7)) {
    iVar4 = (*(code *)(PTR_LAB_0015b6d8 + 0x54))();
  }
  else {
    *(char *)(*(int *)(param_2 + 0x18) + iVar5) = (char)uVar7;
    iVar4 = 1;
  }
  *(undefined4 *)(param_2 + 8) = *(undefined4 *)(param_2 + 0x10);
  *(int *)(param_2 + 0x1c) = *(int *)(param_2 + 0x1c) + iVar4;
  pcVar9 = param_4;
  iVar4 = param_3;
  if (*(char *)(param_2 + 0x3a) == '\0') {
    if (iVar6 < 1) {
      iVar6 = 0;
      iVar5 = 0;
    }
    else if (*param_4 == **(char **)(param_2 + 0x24)) {
      iVar4 = 0;
      pcVar3 = param_4 + 1;
      do {
        pcVar9 = pcVar3;
        iVar4 = iVar4 + 1;
        iVar5 = iVar6;
        if (iVar6 == iVar4) break;
        pcVar3 = pcVar9 + 1;
        iVar5 = iVar4;
      } while ((*(char **)(param_2 + 0x24))[iVar4] == *pcVar9);
      iVar6 = iVar5 >> 0x1f;
      iVar4 = param_3 - iVar5;
    }
    else {
      iVar6 = 0;
      iVar5 = 0;
    }
    pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700);
    (*pcVar10)(param_1 + 9,param_2 + 0xc,iVar6,iVar5);
    pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);
  }
  else {
    if (*(int *)(param_2 + 4) == 1) {
      pcVar8 = (code *)(PTR_LAB_0015b714 + 0x63a0);
    }
    else {
      iVar5 = param_3;
      if (*(int *)(param_2 + 0x28) != 0) {
        if ((iVar6 < 1) || (*param_4 != **(char **)(param_2 + 0x24))) {
          iVar5 = 1;
        }
        else {
          iVar2 = 2;
          do {
            iVar5 = iVar2;
            if (iVar6 + 1 == iVar5) {
              iVar6 = *(int *)(param_2 + 0x58);
              goto LAB_001025a4;
            }
            iVar2 = iVar5 + 1;
          } while (param_4[iVar5 + -1] == (*(char **)(param_2 + 0x24))[iVar5 + -1]);
        }
      }
      iVar6 = *(int *)(param_2 + 0x58);
LAB_001025a4:
      if (iVar6 != 0) {
        FUN_00102158(param_1,param_2);
      }
      puVar1 = PTR_LAB_0015b714;
      if (param_1[9] != 0) {
        return;
      }
      *(undefined4 *)(param_2 + 0x50) = 0;
      pcVar8 = (code *)(puVar1 + 0x63a0);
      (*pcVar8)(param_1 + 9,param_2 + 0x4c,iVar5,param_4);
      *(undefined4 *)(param_2 + 0x58) = *(undefined4 *)(param_2 + 4);
      if (param_1[9] != 0) {
        return;
      }
    }
    pcVar10 = (code *)(PTR_LAB_0015b714 + 0x7700);
  }
  param_1 = param_1 + 9;
  (*pcVar10)(param_1,param_2 + 0xc,iVar4 >> 0x1f,iVar4);
  (*pcVar8)(param_1,param_2 + 0xc,iVar4,pcVar9);
  *(undefined4 *)(param_2 + 0x28) = 0;
  (*pcVar8)(param_1,param_2 + 0x24,param_3,param_4);
  *(undefined2 *)(param_2 + 0x38) = 0x100;
  *(undefined1 *)(param_2 + 0x3a) = 0;
  **(undefined4 **)(param_2 + 0x48) = *(undefined4 *)(param_2 + 4);
  return;
}

