
int whereClauseInsert(WhereClause *pWC,Expr *p,u16 wtFlags)

{
  WhereTerm *pWVar1;
  uint uVar2;
  uint uVar3;
  uint uVar4;
  uint uVar5;
  int iVar6;
  short sVar7;
  int iVar8;
  sqlite3 *db;
  WhereTerm *pWVar9;
  code *pcVar10;
  undefined1 *puVar11;
  undefined1 *puVar12;
  undefined4 in_stack_ffffffe4;
  
  puVar11 = &_gp;
  puVar12 = &_gp;
  iVar8 = pWC->nTerm;
  pWVar9 = pWC->a;
  if (pWC->nSlot <= iVar8) {
    db = pWC->pWInfo->pParse->db;
    if (db->mallocFailed != '\0') {
      pWC->a = (WhereTerm *)0x0;
LAB_00049780:
      if (((wtFlags & 1) != 0) && (p != (Expr *)0x0)) {
                    /* WARNING: Subroutine does not return */
        sqlite3ExprDeleteNN(db,p);
      }
      pWC->a = pWVar9;
      return 0;
    }
    pWVar1 = (WhereTerm *)dbMallocRawFinish(db,CONCAT44(&_gp,in_stack_ffffffe4));
    pWC->a = pWVar1;
    if (pWVar1 == (WhereTerm *)0x0) goto LAB_00049780;
    (**(code **)(puVar12 + -0x7b7c))(pWVar1,pWVar9,pWC->nTerm * 0x30);
    if (pWVar9 != pWC->aStatic) {
                    /* WARNING: Subroutine does not return */
      sqlite3DbFreeNN(db,pWVar9);
    }
    puVar11 = puVar12;
    uVar2 = (**(code **)(*(int *)(puVar12 + -0x7fd8) + -0x4da0))(pWC->a);
    pWVar9 = pWC->a;
    iVar8 = pWC->nTerm;
    pWC->nSlot = uVar2 / 0x30;
  }
  pWC->nTerm = iVar8 + 1;
  pWVar9 = pWVar9 + iVar8;
  if (p == (Expr *)0x0) {
    p = (Expr *)0x0;
    pWVar9->truthProb = 1;
  }
  else {
    sVar7 = 1;
    if ((int)(p->flags << 0xd) < 0) {
      uVar3 = p->iTable;
      uVar2 = (int)uVar3 >> 0x1f;
      iVar6 = LZCOUNT(uVar2);
      if ((int)uVar3 < 0) {
LAB_00049718:
        uVar5 = 0x3c - iVar6;
        uVar4 = (uVar2 << 1) << (~uVar5 & 0x1f) | uVar3 >> (uVar5 & 0x1f);
        if ((uVar5 & 0x20) != 0) {
          uVar4 = uVar2 >> (uVar5 & 0x1f);
        }
        sVar7 = (short)uVar5 * 10 + 0x28;
LAB_00049754:
        iVar6 = *(int *)(puVar11 + -0x7fbc);
      }
      else {
        if (7 < uVar3) {
          iVar6 = LZCOUNT(uVar3) + 0x20;
          goto LAB_00049718;
        }
        sVar7 = 0x1e;
        if (uVar3 < 2) {
          sVar7 = -0x10e;
          goto LAB_0004966c;
        }
        while( true ) {
          uVar4 = uVar3 << 1;
          if ((int)uVar3 < 0 || (uVar2 & 0x7fffffff) != 0) break;
          if (7 < uVar4) goto LAB_00049754;
          uVar2 = 0;
          uVar3 = uVar4;
          sVar7 = sVar7 + -10;
        }
        iVar6 = *(int *)(puVar11 + -0x7fbc);
      }
      sVar7 = sVar7 + -0x118 + *(short *)((uVar4 & 7) * 2 + iVar6 + 0x3550);
    }
LAB_0004966c:
    pWVar9->truthProb = sVar7;
    uVar2 = p->flags;
    if ((uVar2 & 0x1000) != 0) {
      do {
        if ((uVar2 & 0x40000) == 0) {
          p = p->pLeft;
        }
        else {
          p = ((p->x).pList)->a[0].pExpr;
        }
        if (p == (Expr *)0x0) {
          p = (Expr *)0x0;
          goto LAB_000496c4;
        }
        uVar2 = p->flags;
        pcVar10 = *(code **)(puVar11 + -0x7bf8);
      } while ((uVar2 & 0x1000) != 0);
      goto LAB_000496c8;
    }
  }
LAB_000496c4:
  pcVar10 = *(code **)(puVar11 + -0x7bf8);
LAB_000496c8:
  pWVar9->pExpr = p;
  pWVar9->wtFlags = wtFlags;
  pWVar9->pWC = pWC;
  (*pcVar10)(&pWVar9->eOperator,0,0x24);
  return iVar8;
}



int FUN_0004953c(undefined4 *param_1,int param_2,ushort param_3)

{
  undefined *puVar1;
  int iVar2;
  uint uVar3;
  uint uVar4;
  uint uVar5;
  uint uVar6;
  short sVar7;
  int *piVar8;
  int iVar9;
  undefined4 *puVar10;
  
  iVar9 = param_1[3];
  puVar10 = (undefined4 *)param_1[5];
  if ((int)param_1[4] <= iVar9) {
    iVar9 = **(int **)*param_1;
    if (*(char *)(iVar9 + 0x51) != '\0') {
      param_1[5] = 0;
LAB_00049780:
      if (((param_3 & 1) != 0) && (param_2 != 0)) {
        FUN_000484f4(iVar9,param_2);
      }
      param_1[5] = puVar10;
      return 0;
    }
    iVar2 = FUN_0002de20(iVar9,param_2,0,param_1[4] * 0x60);
    param_1[5] = iVar2;
    if (iVar2 == 0) goto LAB_00049780;
    (*(code *)PTR_memcpy_0015ca34)(iVar2,puVar10,param_1[3] * 0x30);
    if (puVar10 != param_1 + 6) {
      FUN_0002b254(iVar9,puVar10);
    }
    uVar3 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(param_1[5]);
    puVar10 = (undefined4 *)param_1[5];
    iVar9 = param_1[3];
    param_1[4] = uVar3 / 0x30;
  }
  param_1[3] = iVar9 + 1;
  piVar8 = puVar10 + iVar9 * 0xc;
  if (param_2 == 0) {
    param_2 = 0;
    *(undefined2 *)(piVar8 + 2) = 1;
    goto LAB_000496c8;
  }
  sVar7 = 1;
  if (*(int *)(param_2 + 4) << 0xd < 0) {
    uVar4 = *(uint *)(param_2 + 0x1c);
    uVar3 = (int)uVar4 >> 0x1f;
    iVar2 = LZCOUNT(uVar3);
    if ((int)uVar4 < 0) {
LAB_00049718:
      uVar6 = 0x3c - iVar2;
      uVar5 = (uVar3 << 1) << (~uVar6 & 0x1f) | uVar4 >> (uVar6 & 0x1f);
      if ((uVar6 & 0x20) != 0) {
        uVar5 = uVar3 >> (uVar6 & 0x1f);
      }
      sVar7 = (short)uVar6 * 10 + 0x28;
    }
    else {
      if (7 < uVar4) {
        iVar2 = LZCOUNT(uVar4) + 0x20;
        goto LAB_00049718;
      }
      sVar7 = 0x1e;
      if (uVar4 < 2) {
        sVar7 = -0x10e;
        goto LAB_0004966c;
      }
      while( true ) {
        uVar5 = uVar4 << 1;
        if (((int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0) || (7 < uVar5)) break;
        uVar3 = 0;
        uVar4 = uVar5;
        sVar7 = sVar7 + -10;
      }
    }
    sVar7 = sVar7 + -0x118 + *(short *)(PTR_s_LE_FTS4_0015c5f4 + (uVar5 & 7) * 2 + 0x3550);
  }
LAB_0004966c:
  *(short *)(piVar8 + 2) = sVar7;
  uVar3 = *(uint *)(param_2 + 4);
  while ((uVar3 & 0x1000) != 0) {
    if ((uVar3 & 0x40000) == 0) {
      param_2 = *(int *)(param_2 + 0xc);
    }
    else {
      param_2 = *(int *)(*(int *)(param_2 + 0x14) + 4);
    }
    if (param_2 == 0) {
      param_2 = 0;
      break;
    }
    uVar3 = *(uint *)(param_2 + 4);
  }
LAB_000496c8:
  puVar1 = PTR_memset_0015c9b8;
  *piVar8 = param_2;
  *(ushort *)((int)piVar8 + 10) = param_3;
  piVar8[1] = (int)param_1;
  (*(code *)puVar1)(piVar8 + 3,0,0x24);
  return iVar9;
}


lui gp,0x12
addiu gp,gp,-0x4f8c
addu gp,gp,t9
addiu sp,sp,-0x30
sw s2,0x20(sp)
or s2,a2,zero
sw s1,0x1c(sp)
or s1,a0,zero
sw s0,0x18(sp)
or s0,a1,zero
sw gp,0x10(sp)
sw ra,0x2c(sp)
sw s4,0x28(sp)
sw s3,0x24(sp)
lw s3,0xc(a0)
lw a3,0x10(a0)
slt v0,s3,a3
bne v0,zero,0x00049640
_lw s4,0x14(a0)
lw v0,0x0(a0)
lw v0,0x0(v0)
lw s3,0x0(v0)
lbu v0,0x51(s3)
bne v0,zero,0x0004977c
_sll v0,a3,0x1
lw t9,-0x7ed4(gp)
or a2,zero,zero
addu a3,v0,a3
addiu t9,t9,-0x21e0
sll a3,a3,0x5
bal 0x0002de20
_or a0,s3,zero
lw gp,0x10(sp)
beq v0,zero,0x00049780
_sw v0,0x14(s1)
lw v1,0xc(s1)
or a1,s4,zero
lw t9,-0x7b7c(gp)
or a0,v0,zero
sll a2,v1,0x1
addu a2,a2,v1
jalr t9
_sll a2,a2,0x4
addiu v0,s1,0x18
beq s4,v0,0x0004960c
_lw gp,0x10(sp)
lw t9,-0x7ed4(gp)
or a1,s4,zero
addiu t9,t9,-0x4dac
bal 0x0002b254
_or a0,s3,zero
lw gp,0x10(sp)
lw v0,-0x7fd8(gp)
lw t9,-0x4da0(v0)
jalr t9
_lw a0,0x14(s1)
lui v1,0xaaaa
lw s4,0x14(s1)
ori v1,v1,0xaaab
lw s3,0xc(s1)
multu v0,v1
lw gp,0x10(sp)
mfhi v0
srl v0,v0,0x5
sw v0,0x10(s1)
sll a3,s3,0x1
addiu v0,s3,0x1
addu a3,a3,s3
sw v0,0xc(s1)
sll a3,a3,0x4
beq s0,zero,0x00049828
_addu a3,s4,a3
lw v0,0x4(s0)
ext v0,v0,0x12,0x1
bne v0,zero,0x00049708
_li v0,0x1
sh v0,0x8(a3)
lw v0,0x4(s0)
andi v1,v0,0x1000
beq v1,zero,0x000496c4
_lui a0,0x4
b 0x000496ac
_and v0,v0,a0
lw v0,0x14(s0)
lw s0,0x4(v0)
beq s0,zero,0x000496c0
_nop
lw v0,0x4(s0)
andi v1,v0,0x1000
beq v1,zero,0x000496c8
_lw t9,-0x7bf8(gp)
and v0,v0,a0
bne v0,zero,0x00049688
_nop
lw s0,0xc(s0)
bne s0,zero,0x00049698
_nop
or s0,zero,zero
lw t9,-0x7bf8(gp)
li a2,0x24
or a1,zero,zero
sw s0,0x0(a3)
addiu a0,a3,0xc
sh s2,0xa(a3)
jalr t9
_sw s1,0x4(a3)
or v0,s3,zero
lw ra,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,0x30
lw v0,0x1c(s0)
sra v1,v0,0x1f
beq v1,zero,0x000497d0
_clz a1,v1
li a0,0x3c
sll a2,v1,0x1
subu a0,a0,a1
sll a1,a0,0x2
nor t0,zero,a0
srlv v0,v0,a0
addu a1,a0,a1
sllv a2,a2,t0
srlv v1,v1,a0
sll a1,a1,0x1
andi a0,a0,0x20
or v0,a2,v0
movn v0,v1,a0
addiu a1,a1,0x28
andi a1,a1,0xffff
lw v1,-0x7fbc(gp)
andi v0,v0,0x7
sll v0,v0,0x1
addiu a1,a1,-0x118
addiu v1,v1,0x3550
addu v0,v0,v1
lhu v0,0x0(v0)
addu v0,a1,v0
b 0x0004966c
_seh v0,v0
sw zero,0x14(a0)
andi s2,s2,0x1
beq s2,zero,0x000497a4
_nop
beq s0,zero,0x000497a4
_lw t9,-0x7eac(gp)
or a1,s0,zero
addiu t9,t9,-0x7b0c
bal 0x000484f4
_or a0,s3,zero
sw s4,0x14(s1)
or s3,zero,zero
lw ra,0x2c(sp)
or v0,s3,zero
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,0x30
sltiu a0,v0,0x8
beq a0,zero,0x00049820
_clz a0,v0
sltiu a0,v0,0x2
bne a0,zero,0x00049838
_li a1,0x1e
b 0x00049800
_srl a2,v0,0x1f
sltiu a2,v0,0x8
beq a2,zero,0x00049754
_srl a2,v0,0x1f
or a1,a0,zero
sll v1,v1,0x1
addiu a0,a1,-0xa
or v1,a2,v1
sll v0,v0,0x1
beq v1,zero,0x000497f0
_andi a0,a0,0xffff
b 0x00049758
_lw v1,-0x7fbc(gp)
b 0x00049718
_addiu a1,a0,0x20
li v0,0x1
or s0,zero,zero
b 0x000496c4
_sh v0,0x8(a3)
b 0x0004966c
_li v0,-0x10e
(translation_unit "int FUN_0004953c(undefined4 *param_1,int param_2,ushort param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  short sVar7;\n  int *piVar8;\n  int iVar9;\n  undefined4 *puVar10;\n  \n  iVar9 = param_1[3];\n  puVar10 = (undefined4 *)param_1[5];\n  if ((int)param_1[4] <= iVar9) {\n    iVar9 = **(int **)*param_1;\n    if (*(char *)(iVar9 + 0x51) != '\0') {\n      param_1[5] = 0;\nLAB_00049780:\n      if (((param_3 & 1) != 0) && (param_2 != 0)) {\n        FUN_000484f4(iVar9,param_2);\n      }\n      param_1[5] = puVar10;\n      return 0;\n    }\n    iVar2 = FUN_0002de20(iVar9,param_2,0,param_1[4] * 0x60);\n    param_1[5] = iVar2;\n    if (iVar2 == 0) goto LAB_00049780;\n    (*(code *)PTR_memcpy_0015ca34)(iVar2,puVar10,param_1[3] * 0x30);\n    if (puVar10 != param_1 + 6) {\n      FUN_0002b254(iVar9,puVar10);\n    }\n    uVar3 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(param_1[5]);\n    puVar10 = (undefined4 *)param_1[5];\n    iVar9 = param_1[3];\n    param_1[4] = uVar3 / 0x30;\n  }\n  param_1[3] = iVar9 + 1;\n  piVar8 = puVar10 + iVar9 * 0xc;\n  if (param_2 == 0) {\n    param_2 = 0;\n    *(undefined2 *)(piVar8 + 2) = 1;\n    goto LAB_000496c8;\n  }\n  sVar7 = 1;\n  if (*(int *)(param_2 + 4) << 0xd < 0) {\n    uVar4 = *(uint *)(param_2 + 0x1c);\n    uVar3 = (int)uVar4 >> 0x1f;\n    iVar2 = LZCOUNT(uVar3);\n    if ((int)uVar4 < 0) {\nLAB_00049718:\n      uVar6 = 0x3c - iVar2;\n      uVar5 = (uVar3 << 1) << (~uVar6 & 0x1f) | uVar4 >> (uVar6 & 0x1f);\n      if ((uVar6 & 0x20) != 0) {\n        uVar5 = uVar3 >> (uVar6 & 0x1f);\n      }\n      sVar7 = (short)uVar6 * 10 + 0x28;\n    }\n    else {\n      if (7 < uVar4) {\n        iVar2 = LZCOUNT(uVar4) + 0x20;\n        goto LAB_00049718;\n      }\n      sVar7 = 0x1e;\n      if (uVar4 < 2) {\n        sVar7 = -0x10e;\n        goto LAB_0004966c;\n      }\n      while( true ) {\n        uVar5 = uVar4 << 1;\n        if (((int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0) || (7 < uVar5)) break;\n        uVar3 = 0;\n        uVar4 = uVar5;\n        sVar7 = sVar7 + -10;\n      }\n    }\n    sVar7 = sVar7 + -0x118 + *(short *)(PTR_s_LE_FTS4_0015c5f4 + (uVar5 & 7) * 2 + 0x3550);\n  }\nLAB_0004966c:\n  *(short *)(piVar8 + 2) = sVar7;\n  uVar3 = *(uint *)(param_2 + 4);\n  while ((uVar3 & 0x1000) != 0) {\n    if ((uVar3 & 0x40000) == 0) {\n      param_2 = *(int *)(param_2 + 0xc);\n    }\n    else {\n      param_2 = *(int *)(*(int *)(param_2 + 0x14) + 4);\n    }\n    if (param_2 == 0) {\n      param_2 = 0;\n      break;\n    }\n    uVar3 = *(uint *)(param_2 + 4);\n  }\nLAB_000496c8:\n  puVar1 = PTR_memset_0015c9b8;\n  *piVar8 = param_2;\n  *(ushort *)((int)piVar8 + 10) = param_3;\n  piVar8[1] = (int)param_1;\n  (*(code *)puVar1)(piVar8 + 3,0,0x24);\n  return iVar9;\n}\n\n" (function_definition "int FUN_0004953c(undefined4 *param_1,int param_2,ushort param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  short sVar7;\n  int *piVar8;\n  int iVar9;\n  undefined4 *puVar10;\n  \n  iVar9 = param_1[3];\n  puVar10 = (undefined4 *)param_1[5];\n  if ((int)param_1[4] <= iVar9) {\n    iVar9 = **(int **)*param_1;\n    if (*(char *)(iVar9 + 0x51) != '\0') {\n      param_1[5] = 0;\nLAB_00049780:\n      if (((param_3 & 1) != 0) && (param_2 != 0)) {\n        FUN_000484f4(iVar9,param_2);\n      }\n      param_1[5] = puVar10;\n      return 0;\n    }\n    iVar2 = FUN_0002de20(iVar9,param_2,0,param_1[4] * 0x60);\n    param_1[5] = iVar2;\n    if (iVar2 == 0) goto LAB_00049780;\n    (*(code *)PTR_memcpy_0015ca34)(iVar2,puVar10,param_1[3] * 0x30);\n    if (puVar10 != param_1 + 6) {\n      FUN_0002b254(iVar9,puVar10);\n    }\n    uVar3 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(param_1[5]);\n    puVar10 = (undefined4 *)param_1[5];\n    iVar9 = param_1[3];\n    param_1[4] = uVar3 / 0x30;\n  }\n  param_1[3] = iVar9 + 1;\n  piVar8 = puVar10 + iVar9 * 0xc;\n  if (param_2 == 0) {\n    param_2 = 0;\n    *(undefined2 *)(piVar8 + 2) = 1;\n    goto LAB_000496c8;\n  }\n  sVar7 = 1;\n  if (*(int *)(param_2 + 4) << 0xd < 0) {\n    uVar4 = *(uint *)(param_2 + 0x1c);\n    uVar3 = (int)uVar4 >> 0x1f;\n    iVar2 = LZCOUNT(uVar3);\n    if ((int)uVar4 < 0) {\nLAB_00049718:\n      uVar6 = 0x3c - iVar2;\n      uVar5 = (uVar3 << 1) << (~uVar6 & 0x1f) | uVar4 >> (uVar6 & 0x1f);\n      if ((uVar6 & 0x20) != 0) {\n        uVar5 = uVar3 >> (uVar6 & 0x1f);\n      }\n      sVar7 = (short)uVar6 * 10 + 0x28;\n    }\n    else {\n      if (7 < uVar4) {\n        iVar2 = LZCOUNT(uVar4) + 0x20;\n        goto LAB_00049718;\n      }\n      sVar7 = 0x1e;\n      if (uVar4 < 2) {\n        sVar7 = -0x10e;\n        goto LAB_0004966c;\n      }\n      while( true ) {\n        uVar5 = uVar4 << 1;\n        if (((int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0) || (7 < uVar5)) break;\n        uVar3 = 0;\n        uVar4 = uVar5;\n        sVar7 = sVar7 + -10;\n      }\n    }\n    sVar7 = sVar7 + -0x118 + *(short *)(PTR_s_LE_FTS4_0015c5f4 + (uVar5 & 7) * 2 + 0x3550);\n  }\nLAB_0004966c:\n  *(short *)(piVar8 + 2) = sVar7;\n  uVar3 = *(uint *)(param_2 + 4);\n  while ((uVar3 & 0x1000) != 0) {\n    if ((uVar3 & 0x40000) == 0) {\n      param_2 = *(int *)(param_2 + 0xc);\n    }\n    else {\n      param_2 = *(int *)(*(int *)(param_2 + 0x14) + 4);\n    }\n    if (param_2 == 0) {\n      param_2 = 0;\n      break;\n    }\n    uVar3 = *(uint *)(param_2 + 4);\n  }\nLAB_000496c8:\n  puVar1 = PTR_memset_0015c9b8;\n  *piVar8 = param_2;\n  *(ushort *)((int)piVar8 + 10) = param_3;\n  piVar8[1] = (int)param_1;\n  (*(code *)puVar1)(piVar8 + 3,0,0x24);\n  return iVar9;\n}" primitive_type (function_declarator "FUN_0004953c(undefined4 *param_1,int param_2,ushort param_3)" identifier (parameter_list "(undefined4 *param_1,int param_2,ushort param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "ushort param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  short sVar7;\n  int *piVar8;\n  int iVar9;\n  undefined4 *puVar10;\n  \n  iVar9 = param_1[3];\n  puVar10 = (undefined4 *)param_1[5];\n  if ((int)param_1[4] <= iVar9) {\n    iVar9 = **(int **)*param_1;\n    if (*(char *)(iVar9 + 0x51) != '\0') {\n      param_1[5] = 0;\nLAB_00049780:\n      if (((param_3 & 1) != 0) && (param_2 != 0)) {\n        FUN_000484f4(iVar9,param_2);\n      }\n      param_1[5] = puVar10;\n      return 0;\n    }\n    iVar2 = FUN_0002de20(iVar9,param_2,0,param_1[4] * 0x60);\n    param_1[5] = iVar2;\n    if (iVar2 == 0) goto LAB_00049780;\n    (*(code *)PTR_memcpy_0015ca34)(iVar2,puVar10,param_1[3] * 0x30);\n    if (puVar10 != param_1 + 6) {\n      FUN_0002b254(iVar9,puVar10);\n    }\n    uVar3 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(param_1[5]);\n    puVar10 = (undefined4 *)param_1[5];\n    iVar9 = param_1[3];\n    param_1[4] = uVar3 / 0x30;\n  }\n  param_1[3] = iVar9 + 1;\n  piVar8 = puVar10 + iVar9 * 0xc;\n  if (param_2 == 0) {\n    param_2 = 0;\n    *(undefined2 *)(piVar8 + 2) = 1;\n    goto LAB_000496c8;\n  }\n  sVar7 = 1;\n  if (*(int *)(param_2 + 4) << 0xd < 0) {\n    uVar4 = *(uint *)(param_2 + 0x1c);\n    uVar3 = (int)uVar4 >> 0x1f;\n    iVar2 = LZCOUNT(uVar3);\n    if ((int)uVar4 < 0) {\nLAB_00049718:\n      uVar6 = 0x3c - iVar2;\n      uVar5 = (uVar3 << 1) << (~uVar6 & 0x1f) | uVar4 >> (uVar6 & 0x1f);\n      if ((uVar6 & 0x20) != 0) {\n        uVar5 = uVar3 >> (uVar6 & 0x1f);\n      }\n      sVar7 = (short)uVar6 * 10 + 0x28;\n    }\n    else {\n      if (7 < uVar4) {\n        iVar2 = LZCOUNT(uVar4) + 0x20;\n        goto LAB_00049718;\n      }\n      sVar7 = 0x1e;\n      if (uVar4 < 2) {\n        sVar7 = -0x10e;\n        goto LAB_0004966c;\n      }\n      while( true ) {\n        uVar5 = uVar4 << 1;\n        if (((int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0) || (7 < uVar5)) break;\n        uVar3 = 0;\n        uVar4 = uVar5;\n        sVar7 = sVar7 + -10;\n      }\n    }\n    sVar7 = sVar7 + -0x118 + *(short *)(PTR_s_LE_FTS4_0015c5f4 + (uVar5 & 7) * 2 + 0x3550);\n  }\nLAB_0004966c:\n  *(short *)(piVar8 + 2) = sVar7;\n  uVar3 = *(uint *)(param_2 + 4);\n  while ((uVar3 & 0x1000) != 0) {\n    if ((uVar3 & 0x40000) == 0) {\n      param_2 = *(int *)(param_2 + 0xc);\n    }\n    else {\n      param_2 = *(int *)(*(int *)(param_2 + 0x14) + 4);\n    }\n    if (param_2 == 0) {\n      param_2 = 0;\n      break;\n    }\n    uVar3 = *(uint *)(param_2 + 4);\n  }\nLAB_000496c8:\n  puVar1 = PTR_memset_0015c9b8;\n  *piVar8 = param_2;\n  *(ushort *)((int)piVar8 + 10) = param_3;\n  piVar8[1] = (int)param_1;\n  (*(code *)puVar1)(piVar8 + 3,0,0x24);\n  return iVar9;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "short sVar7;" (sized_type_specifier "short" short) identifier ;) (declaration "int *piVar8;" primitive_type (pointer_declarator "*piVar8" * identifier) ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "undefined4 *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (expression_statement "iVar9 = param_1[3];" (assignment_expression "iVar9 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "puVar10 = (undefined4 *)param_1[5];" (assignment_expression "puVar10 = (undefined4 *)param_1[5]" identifier = (cast_expression "(undefined4 *)param_1[5]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[5]" identifier [ number_literal ]))) ;) (if_statement "if ((int)param_1[4] <= iVar9) {\n    iVar9 = **(int **)*param_1;\n    if (*(char *)(iVar9 + 0x51) != '\0') {\n      param_1[5] = 0;\nLAB_00049780:\n      if (((param_3 & 1) != 0) && (param_2 != 0)) {\n        FUN_000484f4(iVar9,param_2);\n      }\n      param_1[5] = puVar10;\n      return 0;\n    }\n    iVar2 = FUN_0002de20(iVar9,param_2,0,param_1[4] * 0x60);\n    param_1[5] = iVar2;\n    if (iVar2 == 0) goto LAB_00049780;\n    (*(code *)PTR_memcpy_0015ca34)(iVar2,puVar10,param_1[3] * 0x30);\n    if (puVar10 != param_1 + 6) {\n      FUN_0002b254(iVar9,puVar10);\n    }\n    uVar3 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(param_1[5]);\n    puVar10 = (undefined4 *)param_1[5];\n    iVar9 = param_1[3];\n    param_1[4] = uVar3 / 0x30;\n  }" if (parenthesized_expression "((int)param_1[4] <= iVar9)" ( (binary_expression "(int)param_1[4] <= iVar9" (cast_expression "(int)param_1[4]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[4]" identifier [ number_literal ])) <= identifier) )) (compound_statement "{\n    iVar9 = **(int **)*param_1;\n    if (*(char *)(iVar9 + 0x51) != '\0') {\n      param_1[5] = 0;\nLAB_00049780:\n      if (((param_3 & 1) != 0) && (param_2 != 0)) {\n        FUN_000484f4(iVar9,param_2);\n      }\n      param_1[5] = puVar10;\n      return 0;\n    }\n    iVar2 = FUN_0002de20(iVar9,param_2,0,param_1[4] * 0x60);\n    param_1[5] = iVar2;\n    if (iVar2 == 0) goto LAB_00049780;\n    (*(code *)PTR_memcpy_0015ca34)(iVar2,puVar10,param_1[3] * 0x30);\n    if (puVar10 != param_1 + 6) {\n      FUN_0002b254(iVar9,puVar10);\n    }\n    uVar3 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(param_1[5]);\n    puVar10 = (undefined4 *)param_1[5];\n    iVar9 = param_1[3];\n    param_1[4] = uVar3 / 0x30;\n  }" { (expression_statement "iVar9 = **(int **)*param_1;" (assignment_expression "iVar9 = **(int **)*param_1" identifier = (pointer_expression "**(int **)*param_1" * (pointer_expression "*(int **)*param_1" * (cast_expression "(int **)*param_1" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "*param_1" * identifier))))) ;) (if_statement "if (*(char *)(iVar9 + 0x51) != '\0') {\n      param_1[5] = 0;\nLAB_00049780:\n      if (((param_3 & 1) != 0) && (param_2 != 0)) {\n        FUN_000484f4(iVar9,param_2);\n      }\n      param_1[5] = puVar10;\n      return 0;\n    }" if (parenthesized_expression "(*(char *)(iVar9 + 0x51) != '\0')" ( (binary_expression "*(char *)(iVar9 + 0x51) != '\0'" (pointer_expression "*(char *)(iVar9 + 0x51)" * (cast_expression "(char *)(iVar9 + 0x51)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 0x51)" ( (binary_expression "iVar9 + 0x51" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      param_1[5] = 0;\nLAB_00049780:\n      if (((param_3 & 1) != 0) && (param_2 != 0)) {\n        FUN_000484f4(iVar9,param_2);\n      }\n      param_1[5] = puVar10;\n      return 0;\n    }" { (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) = number_literal) ;) (labeled_statement "LAB_00049780:\n      if (((param_3 & 1) != 0) && (param_2 != 0)) {\n        FUN_000484f4(iVar9,param_2);\n      }" statement_identifier : (if_statement "if (((param_3 & 1) != 0) && (param_2 != 0)) {\n        FUN_000484f4(iVar9,param_2);\n      }" if (parenthesized_expression "(((param_3 & 1) != 0) && (param_2 != 0))" ( (binary_expression "((param_3 & 1) != 0) && (param_2 != 0)" (parenthesized_expression "((param_3 & 1) != 0)" ( (binary_expression "(param_3 & 1) != 0" (parenthesized_expression "(param_3 & 1)" ( (binary_expression "param_3 & 1" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) ))) )) (compound_statement "{\n        FUN_000484f4(iVar9,param_2);\n      }" { (expression_statement "FUN_000484f4(iVar9,param_2);" (call_expression "FUN_000484f4(iVar9,param_2)" identifier (argument_list "(iVar9,param_2)" ( identifier , identifier ))) ;) }))) (expression_statement "param_1[5] = puVar10;" (assignment_expression "param_1[5] = puVar10" (subscript_expression "param_1[5]" identifier [ number_literal ]) = identifier) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = FUN_0002de20(iVar9,param_2,0,param_1[4] * 0x60);" (assignment_expression "iVar2 = FUN_0002de20(iVar9,param_2,0,param_1[4] * 0x60)" identifier = (call_expression "FUN_0002de20(iVar9,param_2,0,param_1[4] * 0x60)" identifier (argument_list "(iVar9,param_2,0,param_1[4] * 0x60)" ( identifier , identifier , number_literal , (binary_expression "param_1[4] * 0x60" (subscript_expression "param_1[4]" identifier [ number_literal ]) * number_literal) )))) ;) (expression_statement "param_1[5] = iVar2;" (assignment_expression "param_1[5] = iVar2" (subscript_expression "param_1[5]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar2 == 0) goto LAB_00049780;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00049780;" goto statement_identifier ;)) (expression_statement "(*(code *)PTR_memcpy_0015ca34)(iVar2,puVar10,param_1[3] * 0x30);" (call_expression "(*(code *)PTR_memcpy_0015ca34)(iVar2,puVar10,param_1[3] * 0x30)" (parenthesized_expression "(*(code *)PTR_memcpy_0015ca34)" ( (pointer_expression "*(code *)PTR_memcpy_0015ca34" * (cast_expression "(code *)PTR_memcpy_0015ca34" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,puVar10,param_1[3] * 0x30)" ( identifier , identifier , (binary_expression "param_1[3] * 0x30" (subscript_expression "param_1[3]" identifier [ number_literal ]) * number_literal) ))) ;) (if_statement "if (puVar10 != param_1 + 6) {\n      FUN_0002b254(iVar9,puVar10);\n    }" if (parenthesized_expression "(puVar10 != param_1 + 6)" ( (binary_expression "puVar10 != param_1 + 6" identifier != (binary_expression "param_1 + 6" identifier + number_literal)) )) (compound_statement "{\n      FUN_0002b254(iVar9,puVar10);\n    }" { (expression_statement "FUN_0002b254(iVar9,puVar10);" (call_expression "FUN_0002b254(iVar9,puVar10)" identifier (argument_list "(iVar9,puVar10)" ( identifier , identifier ))) ;) })) (expression_statement "uVar3 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(param_1[5]);" (assignment_expression "uVar3 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(param_1[5])" identifier = (call_expression "(**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(param_1[5])" (parenthesized_expression "(**(code **)(PTR_DAT_0015c5d8 + -0x4da0))" ( (pointer_expression "**(code **)(PTR_DAT_0015c5d8 + -0x4da0)" * (pointer_expression "*(code **)(PTR_DAT_0015c5d8 + -0x4da0)" * (cast_expression "(code **)(PTR_DAT_0015c5d8 + -0x4da0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_0015c5d8 + -0x4da0)" ( (binary_expression "PTR_DAT_0015c5d8 + -0x4da0" identifier + number_literal) ))))) )) (argument_list "(param_1[5])" ( (subscript_expression "param_1[5]" identifier [ number_literal ]) )))) ;) (expression_statement "puVar10 = (undefined4 *)param_1[5];" (assignment_expression "puVar10 = (undefined4 *)param_1[5]" identifier = (cast_expression "(undefined4 *)param_1[5]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[5]" identifier [ number_literal ]))) ;) (expression_statement "iVar9 = param_1[3];" (assignment_expression "iVar9 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "param_1[4] = uVar3 / 0x30;" (assignment_expression "param_1[4] = uVar3 / 0x30" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (binary_expression "uVar3 / 0x30" identifier / number_literal)) ;) })) (expression_statement "param_1[3] = iVar9 + 1;" (assignment_expression "param_1[3] = iVar9 + 1" (subscript_expression "param_1[3]" identifier [ number_literal ]) = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) (expression_statement "piVar8 = puVar10 + iVar9 * 0xc;" (assignment_expression "piVar8 = puVar10 + iVar9 * 0xc" identifier = (binary_expression "puVar10 + iVar9 * 0xc" identifier + (binary_expression "iVar9 * 0xc" identifier * number_literal))) ;) (if_statement "if (param_2 == 0) {\n    param_2 = 0;\n    *(undefined2 *)(piVar8 + 2) = 1;\n    goto LAB_000496c8;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    param_2 = 0;\n    *(undefined2 *)(piVar8 + 2) = 1;\n    goto LAB_000496c8;\n  }" { (expression_statement "param_2 = 0;" (assignment_expression "param_2 = 0" identifier = number_literal) ;) (expression_statement "*(undefined2 *)(piVar8 + 2) = 1;" (assignment_expression "*(undefined2 *)(piVar8 + 2) = 1" (pointer_expression "*(undefined2 *)(piVar8 + 2)" * (cast_expression "(undefined2 *)(piVar8 + 2)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar8 + 2)" ( (binary_expression "piVar8 + 2" identifier + number_literal) )))) = number_literal) ;) (goto_statement "goto LAB_000496c8;" goto statement_identifier ;) })) (expression_statement "sVar7 = 1;" (assignment_expression "sVar7 = 1" identifier = number_literal) ;) (if_statement "if (*(int *)(param_2 + 4) << 0xd < 0) {\n    uVar4 = *(uint *)(param_2 + 0x1c);\n    uVar3 = (int)uVar4 >> 0x1f;\n    iVar2 = LZCOUNT(uVar3);\n    if ((int)uVar4 < 0) {\nLAB_00049718:\n      uVar6 = 0x3c - iVar2;\n      uVar5 = (uVar3 << 1) << (~uVar6 & 0x1f) | uVar4 >> (uVar6 & 0x1f);\n      if ((uVar6 & 0x20) != 0) {\n        uVar5 = uVar3 >> (uVar6 & 0x1f);\n      }\n      sVar7 = (short)uVar6 * 10 + 0x28;\n    }\n    else {\n      if (7 < uVar4) {\n        iVar2 = LZCOUNT(uVar4) + 0x20;\n        goto LAB_00049718;\n      }\n      sVar7 = 0x1e;\n      if (uVar4 < 2) {\n        sVar7 = -0x10e;\n        goto LAB_0004966c;\n      }\n      while( true ) {\n        uVar5 = uVar4 << 1;\n        if (((int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0) || (7 < uVar5)) break;\n        uVar3 = 0;\n        uVar4 = uVar5;\n        sVar7 = sVar7 + -10;\n      }\n    }\n    sVar7 = sVar7 + -0x118 + *(short *)(PTR_s_LE_FTS4_0015c5f4 + (uVar5 & 7) * 2 + 0x3550);\n  }" if (parenthesized_expression "(*(int *)(param_2 + 4) << 0xd < 0)" ( (binary_expression "*(int *)(param_2 + 4) << 0xd < 0" (binary_expression "*(int *)(param_2 + 4) << 0xd" (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) < number_literal) )) (compound_statement "{\n    uVar4 = *(uint *)(param_2 + 0x1c);\n    uVar3 = (int)uVar4 >> 0x1f;\n    iVar2 = LZCOUNT(uVar3);\n    if ((int)uVar4 < 0) {\nLAB_00049718:\n      uVar6 = 0x3c - iVar2;\n      uVar5 = (uVar3 << 1) << (~uVar6 & 0x1f) | uVar4 >> (uVar6 & 0x1f);\n      if ((uVar6 & 0x20) != 0) {\n        uVar5 = uVar3 >> (uVar6 & 0x1f);\n      }\n      sVar7 = (short)uVar6 * 10 + 0x28;\n    }\n    else {\n      if (7 < uVar4) {\n        iVar2 = LZCOUNT(uVar4) + 0x20;\n        goto LAB_00049718;\n      }\n      sVar7 = 0x1e;\n      if (uVar4 < 2) {\n        sVar7 = -0x10e;\n        goto LAB_0004966c;\n      }\n      while( true ) {\n        uVar5 = uVar4 << 1;\n        if (((int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0) || (7 < uVar5)) break;\n        uVar3 = 0;\n        uVar4 = uVar5;\n        sVar7 = sVar7 + -10;\n      }\n    }\n    sVar7 = sVar7 + -0x118 + *(short *)(PTR_s_LE_FTS4_0015c5f4 + (uVar5 & 7) * 2 + 0x3550);\n  }" { (expression_statement "uVar4 = *(uint *)(param_2 + 0x1c);" (assignment_expression "uVar4 = *(uint *)(param_2 + 0x1c)" identifier = (pointer_expression "*(uint *)(param_2 + 0x1c)" * (cast_expression "(uint *)(param_2 + 0x1c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = (int)uVar4 >> 0x1f;" (assignment_expression "uVar3 = (int)uVar4 >> 0x1f" identifier = (binary_expression "(int)uVar4 >> 0x1f" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) ;) (expression_statement "iVar2 = LZCOUNT(uVar3);" (assignment_expression "iVar2 = LZCOUNT(uVar3)" identifier = (call_expression "LZCOUNT(uVar3)" identifier (argument_list "(uVar3)" ( identifier )))) ;) (if_statement "if ((int)uVar4 < 0) {\nLAB_00049718:\n      uVar6 = 0x3c - iVar2;\n      uVar5 = (uVar3 << 1) << (~uVar6 & 0x1f) | uVar4 >> (uVar6 & 0x1f);\n      if ((uVar6 & 0x20) != 0) {\n        uVar5 = uVar3 >> (uVar6 & 0x1f);\n      }\n      sVar7 = (short)uVar6 * 10 + 0x28;\n    }\n    else {\n      if (7 < uVar4) {\n        iVar2 = LZCOUNT(uVar4) + 0x20;\n        goto LAB_00049718;\n      }\n      sVar7 = 0x1e;\n      if (uVar4 < 2) {\n        sVar7 = -0x10e;\n        goto LAB_0004966c;\n      }\n      while( true ) {\n        uVar5 = uVar4 << 1;\n        if (((int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0) || (7 < uVar5)) break;\n        uVar3 = 0;\n        uVar4 = uVar5;\n        sVar7 = sVar7 + -10;\n      }\n    }" if (parenthesized_expression "((int)uVar4 < 0)" ( (binary_expression "(int)uVar4 < 0" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\nLAB_00049718:\n      uVar6 = 0x3c - iVar2;\n      uVar5 = (uVar3 << 1) << (~uVar6 & 0x1f) | uVar4 >> (uVar6 & 0x1f);\n      if ((uVar6 & 0x20) != 0) {\n        uVar5 = uVar3 >> (uVar6 & 0x1f);\n      }\n      sVar7 = (short)uVar6 * 10 + 0x28;\n    }" { (labeled_statement "LAB_00049718:\n      uVar6 = 0x3c - iVar2;" statement_identifier : (expression_statement "uVar6 = 0x3c - iVar2;" (assignment_expression "uVar6 = 0x3c - iVar2" identifier = (binary_expression "0x3c - iVar2" number_literal - identifier)) ;)) (expression_statement "uVar5 = (uVar3 << 1) << (~uVar6 & 0x1f) | uVar4 >> (uVar6 & 0x1f);" (assignment_expression "uVar5 = (uVar3 << 1) << (~uVar6 & 0x1f) | uVar4 >> (uVar6 & 0x1f)" identifier = (binary_expression "(uVar3 << 1) << (~uVar6 & 0x1f) | uVar4 >> (uVar6 & 0x1f)" (binary_expression "(uVar3 << 1) << (~uVar6 & 0x1f)" (parenthesized_expression "(uVar3 << 1)" ( (binary_expression "uVar3 << 1" identifier << number_literal) )) << (parenthesized_expression "(~uVar6 & 0x1f)" ( (binary_expression "~uVar6 & 0x1f" (unary_expression "~uVar6" ~ identifier) & number_literal) ))) | (binary_expression "uVar4 >> (uVar6 & 0x1f)" identifier >> (parenthesized_expression "(uVar6 & 0x1f)" ( (binary_expression "uVar6 & 0x1f" identifier & number_literal) ))))) ;) (if_statement "if ((uVar6 & 0x20) != 0) {\n        uVar5 = uVar3 >> (uVar6 & 0x1f);\n      }" if (parenthesized_expression "((uVar6 & 0x20) != 0)" ( (binary_expression "(uVar6 & 0x20) != 0" (parenthesized_expression "(uVar6 & 0x20)" ( (binary_expression "uVar6 & 0x20" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        uVar5 = uVar3 >> (uVar6 & 0x1f);\n      }" { (expression_statement "uVar5 = uVar3 >> (uVar6 & 0x1f);" (assignment_expression "uVar5 = uVar3 >> (uVar6 & 0x1f)" identifier = (binary_expression "uVar3 >> (uVar6 & 0x1f)" identifier >> (parenthesized_expression "(uVar6 & 0x1f)" ( (binary_expression "uVar6 & 0x1f" identifier & number_literal) )))) ;) })) (expression_statement "sVar7 = (short)uVar6 * 10 + 0x28;" (assignment_expression "sVar7 = (short)uVar6 * 10 + 0x28" identifier = (binary_expression "(short)uVar6 * 10 + 0x28" (binary_expression "(short)uVar6 * 10" (cast_expression "(short)uVar6" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier) * number_literal) + number_literal)) ;) }) (else_clause "else {\n      if (7 < uVar4) {\n        iVar2 = LZCOUNT(uVar4) + 0x20;\n        goto LAB_00049718;\n      }\n      sVar7 = 0x1e;\n      if (uVar4 < 2) {\n        sVar7 = -0x10e;\n        goto LAB_0004966c;\n      }\n      while( true ) {\n        uVar5 = uVar4 << 1;\n        if (((int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0) || (7 < uVar5)) break;\n        uVar3 = 0;\n        uVar4 = uVar5;\n        sVar7 = sVar7 + -10;\n      }\n    }" else (compound_statement "{\n      if (7 < uVar4) {\n        iVar2 = LZCOUNT(uVar4) + 0x20;\n        goto LAB_00049718;\n      }\n      sVar7 = 0x1e;\n      if (uVar4 < 2) {\n        sVar7 = -0x10e;\n        goto LAB_0004966c;\n      }\n      while( true ) {\n        uVar5 = uVar4 << 1;\n        if (((int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0) || (7 < uVar5)) break;\n        uVar3 = 0;\n        uVar4 = uVar5;\n        sVar7 = sVar7 + -10;\n      }\n    }" { (if_statement "if (7 < uVar4) {\n        iVar2 = LZCOUNT(uVar4) + 0x20;\n        goto LAB_00049718;\n      }" if (parenthesized_expression "(7 < uVar4)" ( (binary_expression "7 < uVar4" number_literal < identifier) )) (compound_statement "{\n        iVar2 = LZCOUNT(uVar4) + 0x20;\n        goto LAB_00049718;\n      }" { (expression_statement "iVar2 = LZCOUNT(uVar4) + 0x20;" (assignment_expression "iVar2 = LZCOUNT(uVar4) + 0x20" identifier = (binary_expression "LZCOUNT(uVar4) + 0x20" (call_expression "LZCOUNT(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) + number_literal)) ;) (goto_statement "goto LAB_00049718;" goto statement_identifier ;) })) (expression_statement "sVar7 = 0x1e;" (assignment_expression "sVar7 = 0x1e" identifier = number_literal) ;) (if_statement "if (uVar4 < 2) {\n        sVar7 = -0x10e;\n        goto LAB_0004966c;\n      }" if (parenthesized_expression "(uVar4 < 2)" ( (binary_expression "uVar4 < 2" identifier < number_literal) )) (compound_statement "{\n        sVar7 = -0x10e;\n        goto LAB_0004966c;\n      }" { (expression_statement "sVar7 = -0x10e;" (assignment_expression "sVar7 = -0x10e" identifier = number_literal) ;) (goto_statement "goto LAB_0004966c;" goto statement_identifier ;) })) (while_statement "while( true ) {\n        uVar5 = uVar4 << 1;\n        if (((int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0) || (7 < uVar5)) break;\n        uVar3 = 0;\n        uVar4 = uVar5;\n        sVar7 = sVar7 + -10;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        uVar5 = uVar4 << 1;\n        if (((int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0) || (7 < uVar5)) break;\n        uVar3 = 0;\n        uVar4 = uVar5;\n        sVar7 = sVar7 + -10;\n      }" { (expression_statement "uVar5 = uVar4 << 1;" (assignment_expression "uVar5 = uVar4 << 1" identifier = (binary_expression "uVar4 << 1" identifier << number_literal)) ;) (if_statement "if (((int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0) || (7 < uVar5)) break;" if (parenthesized_expression "(((int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0) || (7 < uVar5))" ( (binary_expression "((int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0) || (7 < uVar5)" (parenthesized_expression "((int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0)" ( (binary_expression "(int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0" (binary_expression "(int)uVar4 < 0" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) || (binary_expression "(uVar3 & 0x7fffffff) != 0" (parenthesized_expression "(uVar3 & 0x7fffffff)" ( (binary_expression "uVar3 & 0x7fffffff" identifier & number_literal) )) != number_literal)) )) || (parenthesized_expression "(7 < uVar5)" ( (binary_expression "7 < uVar5" number_literal < identifier) ))) )) (break_statement "break;" break ;)) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "uVar4 = uVar5;" (assignment_expression "uVar4 = uVar5" identifier = identifier) ;) (expression_statement "sVar7 = sVar7 + -10;" (assignment_expression "sVar7 = sVar7 + -10" identifier = (binary_expression "sVar7 + -10" identifier + number_literal)) ;) })) }))) (expression_statement "sVar7 = sVar7 + -0x118 + *(short *)(PTR_s_LE_FTS4_0015c5f4 + (uVar5 & 7) * 2 + 0x3550);" (assignment_expression "sVar7 = sVar7 + -0x118 + *(short *)(PTR_s_LE_FTS4_0015c5f4 + (uVar5 & 7) * 2 + 0x3550)" identifier = (binary_expression "sVar7 + -0x118 + *(short *)(PTR_s_LE_FTS4_0015c5f4 + (uVar5 & 7) * 2 + 0x3550)" (binary_expression "sVar7 + -0x118" identifier + number_literal) + (pointer_expression "*(short *)(PTR_s_LE_FTS4_0015c5f4 + (uVar5 & 7) * 2 + 0x3550)" * (cast_expression "(short *)(PTR_s_LE_FTS4_0015c5f4 + (uVar5 & 7) * 2 + 0x3550)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_LE_FTS4_0015c5f4 + (uVar5 & 7) * 2 + 0x3550)" ( (binary_expression "PTR_s_LE_FTS4_0015c5f4 + (uVar5 & 7) * 2 + 0x3550" (binary_expression "PTR_s_LE_FTS4_0015c5f4 + (uVar5 & 7) * 2" identifier + (binary_expression "(uVar5 & 7) * 2" (parenthesized_expression "(uVar5 & 7)" ( (binary_expression "uVar5 & 7" identifier & number_literal) )) * number_literal)) + number_literal) )))))) ;) })) (labeled_statement "LAB_0004966c:\n  *(short *)(piVar8 + 2) = sVar7;" statement_identifier : (expression_statement "*(short *)(piVar8 + 2) = sVar7;" (assignment_expression "*(short *)(piVar8 + 2) = sVar7" (pointer_expression "*(short *)(piVar8 + 2)" * (cast_expression "(short *)(piVar8 + 2)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar8 + 2)" ( (binary_expression "piVar8 + 2" identifier + number_literal) )))) = identifier) ;)) (expression_statement "uVar3 = *(uint *)(param_2 + 4);" (assignment_expression "uVar3 = *(uint *)(param_2 + 4)" identifier = (pointer_expression "*(uint *)(param_2 + 4)" * (cast_expression "(uint *)(param_2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (while_statement "while ((uVar3 & 0x1000) != 0) {\n    if ((uVar3 & 0x40000) == 0) {\n      param_2 = *(int *)(param_2 + 0xc);\n    }\n    else {\n      param_2 = *(int *)(*(int *)(param_2 + 0x14) + 4);\n    }\n    if (param_2 == 0) {\n      param_2 = 0;\n      break;\n    }\n    uVar3 = *(uint *)(param_2 + 4);\n  }" while (parenthesized_expression "((uVar3 & 0x1000) != 0)" ( (binary_expression "(uVar3 & 0x1000) != 0" (parenthesized_expression "(uVar3 & 0x1000)" ( (binary_expression "uVar3 & 0x1000" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    if ((uVar3 & 0x40000) == 0) {\n      param_2 = *(int *)(param_2 + 0xc);\n    }\n    else {\n      param_2 = *(int *)(*(int *)(param_2 + 0x14) + 4);\n    }\n    if (param_2 == 0) {\n      param_2 = 0;\n      break;\n    }\n    uVar3 = *(uint *)(param_2 + 4);\n  }" { (if_statement "if ((uVar3 & 0x40000) == 0) {\n      param_2 = *(int *)(param_2 + 0xc);\n    }\n    else {\n      param_2 = *(int *)(*(int *)(param_2 + 0x14) + 4);\n    }" if (parenthesized_expression "((uVar3 & 0x40000) == 0)" ( (binary_expression "(uVar3 & 0x40000) == 0" (parenthesized_expression "(uVar3 & 0x40000)" ( (binary_expression "uVar3 & 0x40000" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      param_2 = *(int *)(param_2 + 0xc);\n    }" { (expression_statement "param_2 = *(int *)(param_2 + 0xc);" (assignment_expression "param_2 = *(int *)(param_2 + 0xc)" identifier = (pointer_expression "*(int *)(param_2 + 0xc)" * (cast_expression "(int *)(param_2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      param_2 = *(int *)(*(int *)(param_2 + 0x14) + 4);\n    }" else (compound_statement "{\n      param_2 = *(int *)(*(int *)(param_2 + 0x14) + 4);\n    }" { (expression_statement "param_2 = *(int *)(*(int *)(param_2 + 0x14) + 4);" (assignment_expression "param_2 = *(int *)(*(int *)(param_2 + 0x14) + 4)" identifier = (pointer_expression "*(int *)(*(int *)(param_2 + 0x14) + 4)" * (cast_expression "(int *)(*(int *)(param_2 + 0x14) + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 0x14) + 4)" ( (binary_expression "*(int *)(param_2 + 0x14) + 4" (pointer_expression "*(int *)(param_2 + 0x14)" * (cast_expression "(int *)(param_2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) + number_literal) ))))) ;) }))) (if_statement "if (param_2 == 0) {\n      param_2 = 0;\n      break;\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n      param_2 = 0;\n      break;\n    }" { (expression_statement "param_2 = 0;" (assignment_expression "param_2 = 0" identifier = number_literal) ;) (break_statement "break;" break ;) })) (expression_statement "uVar3 = *(uint *)(param_2 + 4);" (assignment_expression "uVar3 = *(uint *)(param_2 + 4)" identifier = (pointer_expression "*(uint *)(param_2 + 4)" * (cast_expression "(uint *)(param_2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) })) (labeled_statement "LAB_000496c8:\n  puVar1 = PTR_memset_0015c9b8;" statement_identifier : (expression_statement "puVar1 = PTR_memset_0015c9b8;" (assignment_expression "puVar1 = PTR_memset_0015c9b8" identifier = identifier) ;)) (expression_statement "*piVar8 = param_2;" (assignment_expression "*piVar8 = param_2" (pointer_expression "*piVar8" * identifier) = identifier) ;) (expression_statement "*(ushort *)((int)piVar8 + 10) = param_3;" (assignment_expression "*(ushort *)((int)piVar8 + 10) = param_3" (pointer_expression "*(ushort *)((int)piVar8 + 10)" * (cast_expression "(ushort *)((int)piVar8 + 10)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar8 + 10)" ( (binary_expression "(int)piVar8 + 10" (cast_expression "(int)piVar8" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "piVar8[1] = (int)param_1;" (assignment_expression "piVar8[1] = (int)param_1" (subscript_expression "piVar8[1]" identifier [ number_literal ]) = (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "(*(code *)puVar1)(piVar8 + 3,0,0x24);" (call_expression "(*(code *)puVar1)(piVar8 + 3,0,0x24)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar8 + 3,0,0x24)" ( (binary_expression "piVar8 + 3" identifier + number_literal) , number_literal , number_literal ))) ;) (return_statement "return iVar9;" return identifier ;) })))
(translation_unit "int whereClauseInsert(WhereClause *pWC,Expr *p,u16 wtFlags)\n\n{\n  WhereTerm *pWVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  int iVar6;\n  short sVar7;\n  int iVar8;\n  sqlite3 *db;\n  WhereTerm *pWVar9;\n  code *pcVar10;\n  undefined1 *puVar11;\n  undefined1 *puVar12;\n  undefined4 in_stack_ffffffe4;\n  \n  puVar11 = &_gp;\n  puVar12 = &_gp;\n  iVar8 = pWC->nTerm;\n  pWVar9 = pWC->a;\n  if (pWC->nSlot <= iVar8) {\n    db = pWC->pWInfo->pParse->db;\n    if (db->mallocFailed != '\0') {\n      pWC->a = (WhereTerm *)0x0;\nLAB_00049780:\n      if (((wtFlags & 1) != 0) && (p != (Expr *)0x0)) {\n                    /* WARNING: Subroutine does not return */\n        sqlite3ExprDeleteNN(db,p);\n      }\n      pWC->a = pWVar9;\n      return 0;\n    }\n    pWVar1 = (WhereTerm *)dbMallocRawFinish(db,CONCAT44(&_gp,in_stack_ffffffe4));\n    pWC->a = pWVar1;\n    if (pWVar1 == (WhereTerm *)0x0) goto LAB_00049780;\n    (**(code **)(puVar12 + -0x7b7c))(pWVar1,pWVar9,pWC->nTerm * 0x30);\n    if (pWVar9 != pWC->aStatic) {\n                    /* WARNING: Subroutine does not return */\n      sqlite3DbFreeNN(db,pWVar9);\n    }\n    puVar11 = puVar12;\n    uVar2 = (**(code **)(*(int *)(puVar12 + -0x7fd8) + -0x4da0))(pWC->a);\n    pWVar9 = pWC->a;\n    iVar8 = pWC->nTerm;\n    pWC->nSlot = uVar2 / 0x30;\n  }\n  pWC->nTerm = iVar8 + 1;\n  pWVar9 = pWVar9 + iVar8;\n  if (p == (Expr *)0x0) {\n    p = (Expr *)0x0;\n    pWVar9->truthProb = 1;\n  }\n  else {\n    sVar7 = 1;\n    if ((int)(p->flags << 0xd) < 0) {\n      uVar3 = p->iTable;\n      uVar2 = (int)uVar3 >> 0x1f;\n      iVar6 = LZCOUNT(uVar2);\n      if ((int)uVar3 < 0) {\nLAB_00049718:\n        uVar5 = 0x3c - iVar6;\n        uVar4 = (uVar2 << 1) << (~uVar5 & 0x1f) | uVar3 >> (uVar5 & 0x1f);\n        if ((uVar5 & 0x20) != 0) {\n          uVar4 = uVar2 >> (uVar5 & 0x1f);\n        }\n        sVar7 = (short)uVar5 * 10 + 0x28;\nLAB_00049754:\n        iVar6 = *(int *)(puVar11 + -0x7fbc);\n      }\n      else {\n        if (7 < uVar3) {\n          iVar6 = LZCOUNT(uVar3) + 0x20;\n          goto LAB_00049718;\n        }\n        sVar7 = 0x1e;\n        if (uVar3 < 2) {\n          sVar7 = -0x10e;\n          goto LAB_0004966c;\n        }\n        while( true ) {\n          uVar4 = uVar3 << 1;\n          if ((int)uVar3 < 0 || (uVar2 & 0x7fffffff) != 0) break;\n          if (7 < uVar4) goto LAB_00049754;\n          uVar2 = 0;\n          uVar3 = uVar4;\n          sVar7 = sVar7 + -10;\n        }\n        iVar6 = *(int *)(puVar11 + -0x7fbc);\n      }\n      sVar7 = sVar7 + -0x118 + *(short *)((uVar4 & 7) * 2 + iVar6 + 0x3550);\n    }\nLAB_0004966c:\n    pWVar9->truthProb = sVar7;\n    uVar2 = p->flags;\n    if ((uVar2 & 0x1000) != 0) {\n      do {\n        if ((uVar2 & 0x40000) == 0) {\n          p = p->pLeft;\n        }\n        else {\n          p = ((p->x).pList)->a[0].pExpr;\n        }\n        if (p == (Expr *)0x0) {\n          p = (Expr *)0x0;\n          goto LAB_000496c4;\n        }\n        uVar2 = p->flags;\n        pcVar10 = *(code **)(puVar11 + -0x7bf8);\n      } while ((uVar2 & 0x1000) != 0);\n      goto LAB_000496c8;\n    }\n  }\nLAB_000496c4:\n  pcVar10 = *(code **)(puVar11 + -0x7bf8);\nLAB_000496c8:\n  pWVar9->pExpr = p;\n  pWVar9->wtFlags = wtFlags;\n  pWVar9->pWC = pWC;\n  (*pcVar10)(&pWVar9->eOperator,0,0x24);\n  return iVar8;\n}\n\n" (function_definition "int whereClauseInsert(WhereClause *pWC,Expr *p,u16 wtFlags)\n\n{\n  WhereTerm *pWVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  int iVar6;\n  short sVar7;\n  int iVar8;\n  sqlite3 *db;\n  WhereTerm *pWVar9;\n  code *pcVar10;\n  undefined1 *puVar11;\n  undefined1 *puVar12;\n  undefined4 in_stack_ffffffe4;\n  \n  puVar11 = &_gp;\n  puVar12 = &_gp;\n  iVar8 = pWC->nTerm;\n  pWVar9 = pWC->a;\n  if (pWC->nSlot <= iVar8) {\n    db = pWC->pWInfo->pParse->db;\n    if (db->mallocFailed != '\0') {\n      pWC->a = (WhereTerm *)0x0;\nLAB_00049780:\n      if (((wtFlags & 1) != 0) && (p != (Expr *)0x0)) {\n                    /* WARNING: Subroutine does not return */\n        sqlite3ExprDeleteNN(db,p);\n      }\n      pWC->a = pWVar9;\n      return 0;\n    }\n    pWVar1 = (WhereTerm *)dbMallocRawFinish(db,CONCAT44(&_gp,in_stack_ffffffe4));\n    pWC->a = pWVar1;\n    if (pWVar1 == (WhereTerm *)0x0) goto LAB_00049780;\n    (**(code **)(puVar12 + -0x7b7c))(pWVar1,pWVar9,pWC->nTerm * 0x30);\n    if (pWVar9 != pWC->aStatic) {\n                    /* WARNING: Subroutine does not return */\n      sqlite3DbFreeNN(db,pWVar9);\n    }\n    puVar11 = puVar12;\n    uVar2 = (**(code **)(*(int *)(puVar12 + -0x7fd8) + -0x4da0))(pWC->a);\n    pWVar9 = pWC->a;\n    iVar8 = pWC->nTerm;\n    pWC->nSlot = uVar2 / 0x30;\n  }\n  pWC->nTerm = iVar8 + 1;\n  pWVar9 = pWVar9 + iVar8;\n  if (p == (Expr *)0x0) {\n    p = (Expr *)0x0;\n    pWVar9->truthProb = 1;\n  }\n  else {\n    sVar7 = 1;\n    if ((int)(p->flags << 0xd) < 0) {\n      uVar3 = p->iTable;\n      uVar2 = (int)uVar3 >> 0x1f;\n      iVar6 = LZCOUNT(uVar2);\n      if ((int)uVar3 < 0) {\nLAB_00049718:\n        uVar5 = 0x3c - iVar6;\n        uVar4 = (uVar2 << 1) << (~uVar5 & 0x1f) | uVar3 >> (uVar5 & 0x1f);\n        if ((uVar5 & 0x20) != 0) {\n          uVar4 = uVar2 >> (uVar5 & 0x1f);\n        }\n        sVar7 = (short)uVar5 * 10 + 0x28;\nLAB_00049754:\n        iVar6 = *(int *)(puVar11 + -0x7fbc);\n      }\n      else {\n        if (7 < uVar3) {\n          iVar6 = LZCOUNT(uVar3) + 0x20;\n          goto LAB_00049718;\n        }\n        sVar7 = 0x1e;\n        if (uVar3 < 2) {\n          sVar7 = -0x10e;\n          goto LAB_0004966c;\n        }\n        while( true ) {\n          uVar4 = uVar3 << 1;\n          if ((int)uVar3 < 0 || (uVar2 & 0x7fffffff) != 0) break;\n          if (7 < uVar4) goto LAB_00049754;\n          uVar2 = 0;\n          uVar3 = uVar4;\n          sVar7 = sVar7 + -10;\n        }\n        iVar6 = *(int *)(puVar11 + -0x7fbc);\n      }\n      sVar7 = sVar7 + -0x118 + *(short *)((uVar4 & 7) * 2 + iVar6 + 0x3550);\n    }\nLAB_0004966c:\n    pWVar9->truthProb = sVar7;\n    uVar2 = p->flags;\n    if ((uVar2 & 0x1000) != 0) {\n      do {\n        if ((uVar2 & 0x40000) == 0) {\n          p = p->pLeft;\n        }\n        else {\n          p = ((p->x).pList)->a[0].pExpr;\n        }\n        if (p == (Expr *)0x0) {\n          p = (Expr *)0x0;\n          goto LAB_000496c4;\n        }\n        uVar2 = p->flags;\n        pcVar10 = *(code **)(puVar11 + -0x7bf8);\n      } while ((uVar2 & 0x1000) != 0);\n      goto LAB_000496c8;\n    }\n  }\nLAB_000496c4:\n  pcVar10 = *(code **)(puVar11 + -0x7bf8);\nLAB_000496c8:\n  pWVar9->pExpr = p;\n  pWVar9->wtFlags = wtFlags;\n  pWVar9->pWC = pWC;\n  (*pcVar10)(&pWVar9->eOperator,0,0x24);\n  return iVar8;\n}" primitive_type (function_declarator "whereClauseInsert(WhereClause *pWC,Expr *p,u16 wtFlags)" identifier (parameter_list "(WhereClause *pWC,Expr *p,u16 wtFlags)" ( (parameter_declaration "WhereClause *pWC" type_identifier (pointer_declarator "*pWC" * identifier)) , (parameter_declaration "Expr *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "u16 wtFlags" type_identifier identifier) ))) (compound_statement "{\n  WhereTerm *pWVar1;\n  uint uVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  int iVar6;\n  short sVar7;\n  int iVar8;\n  sqlite3 *db;\n  WhereTerm *pWVar9;\n  code *pcVar10;\n  undefined1 *puVar11;\n  undefined1 *puVar12;\n  undefined4 in_stack_ffffffe4;\n  \n  puVar11 = &_gp;\n  puVar12 = &_gp;\n  iVar8 = pWC->nTerm;\n  pWVar9 = pWC->a;\n  if (pWC->nSlot <= iVar8) {\n    db = pWC->pWInfo->pParse->db;\n    if (db->mallocFailed != '\0') {\n      pWC->a = (WhereTerm *)0x0;\nLAB_00049780:\n      if (((wtFlags & 1) != 0) && (p != (Expr *)0x0)) {\n                    /* WARNING: Subroutine does not return */\n        sqlite3ExprDeleteNN(db,p);\n      }\n      pWC->a = pWVar9;\n      return 0;\n    }\n    pWVar1 = (WhereTerm *)dbMallocRawFinish(db,CONCAT44(&_gp,in_stack_ffffffe4));\n    pWC->a = pWVar1;\n    if (pWVar1 == (WhereTerm *)0x0) goto LAB_00049780;\n    (**(code **)(puVar12 + -0x7b7c))(pWVar1,pWVar9,pWC->nTerm * 0x30);\n    if (pWVar9 != pWC->aStatic) {\n                    /* WARNING: Subroutine does not return */\n      sqlite3DbFreeNN(db,pWVar9);\n    }\n    puVar11 = puVar12;\n    uVar2 = (**(code **)(*(int *)(puVar12 + -0x7fd8) + -0x4da0))(pWC->a);\n    pWVar9 = pWC->a;\n    iVar8 = pWC->nTerm;\n    pWC->nSlot = uVar2 / 0x30;\n  }\n  pWC->nTerm = iVar8 + 1;\n  pWVar9 = pWVar9 + iVar8;\n  if (p == (Expr *)0x0) {\n    p = (Expr *)0x0;\n    pWVar9->truthProb = 1;\n  }\n  else {\n    sVar7 = 1;\n    if ((int)(p->flags << 0xd) < 0) {\n      uVar3 = p->iTable;\n      uVar2 = (int)uVar3 >> 0x1f;\n      iVar6 = LZCOUNT(uVar2);\n      if ((int)uVar3 < 0) {\nLAB_00049718:\n        uVar5 = 0x3c - iVar6;\n        uVar4 = (uVar2 << 1) << (~uVar5 & 0x1f) | uVar3 >> (uVar5 & 0x1f);\n        if ((uVar5 & 0x20) != 0) {\n          uVar4 = uVar2 >> (uVar5 & 0x1f);\n        }\n        sVar7 = (short)uVar5 * 10 + 0x28;\nLAB_00049754:\n        iVar6 = *(int *)(puVar11 + -0x7fbc);\n      }\n      else {\n        if (7 < uVar3) {\n          iVar6 = LZCOUNT(uVar3) + 0x20;\n          goto LAB_00049718;\n        }\n        sVar7 = 0x1e;\n        if (uVar3 < 2) {\n          sVar7 = -0x10e;\n          goto LAB_0004966c;\n        }\n        while( true ) {\n          uVar4 = uVar3 << 1;\n          if ((int)uVar3 < 0 || (uVar2 & 0x7fffffff) != 0) break;\n          if (7 < uVar4) goto LAB_00049754;\n          uVar2 = 0;\n          uVar3 = uVar4;\n          sVar7 = sVar7 + -10;\n        }\n        iVar6 = *(int *)(puVar11 + -0x7fbc);\n      }\n      sVar7 = sVar7 + -0x118 + *(short *)((uVar4 & 7) * 2 + iVar6 + 0x3550);\n    }\nLAB_0004966c:\n    pWVar9->truthProb = sVar7;\n    uVar2 = p->flags;\n    if ((uVar2 & 0x1000) != 0) {\n      do {\n        if ((uVar2 & 0x40000) == 0) {\n          p = p->pLeft;\n        }\n        else {\n          p = ((p->x).pList)->a[0].pExpr;\n        }\n        if (p == (Expr *)0x0) {\n          p = (Expr *)0x0;\n          goto LAB_000496c4;\n        }\n        uVar2 = p->flags;\n        pcVar10 = *(code **)(puVar11 + -0x7bf8);\n      } while ((uVar2 & 0x1000) != 0);\n      goto LAB_000496c8;\n    }\n  }\nLAB_000496c4:\n  pcVar10 = *(code **)(puVar11 + -0x7bf8);\nLAB_000496c8:\n  pWVar9->pExpr = p;\n  pWVar9->wtFlags = wtFlags;\n  pWVar9->pWC = pWC;\n  (*pcVar10)(&pWVar9->eOperator,0,0x24);\n  return iVar8;\n}" { (declaration "WhereTerm *pWVar1;" type_identifier (pointer_declarator "*pWVar1" * identifier) ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "int iVar6;" primitive_type identifier ;) (declaration "short sVar7;" (sized_type_specifier "short" short) identifier ;) (declaration "int iVar8;" primitive_type identifier ;) (declaration "sqlite3 *db;" type_identifier (pointer_declarator "*db" * identifier) ;) (declaration "WhereTerm *pWVar9;" type_identifier (pointer_declarator "*pWVar9" * identifier) ;) (declaration "code *pcVar10;" type_identifier (pointer_declarator "*pcVar10" * identifier) ;) (declaration "undefined1 *puVar11;" type_identifier (pointer_declarator "*puVar11" * identifier) ;) (declaration "undefined1 *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "undefined4 in_stack_ffffffe4;" type_identifier identifier ;) (expression_statement "puVar11 = &_gp;" (assignment_expression "puVar11 = &_gp" identifier = (pointer_expression "&_gp" & identifier)) ;) (expression_statement "puVar12 = &_gp;" (assignment_expression "puVar12 = &_gp" identifier = (pointer_expression "&_gp" & identifier)) ;) (expression_statement "iVar8 = pWC->nTerm;" (assignment_expression "iVar8 = pWC->nTerm" identifier = (field_expression "pWC->nTerm" identifier -> field_identifier)) ;) (expression_statement "pWVar9 = pWC->a;" (assignment_expression "pWVar9 = pWC->a" identifier = (field_expression "pWC->a" identifier -> field_identifier)) ;) (if_statement "if (pWC->nSlot <= iVar8) {\n    db = pWC->pWInfo->pParse->db;\n    if (db->mallocFailed != '\0') {\n      pWC->a = (WhereTerm *)0x0;\nLAB_00049780:\n      if (((wtFlags & 1) != 0) && (p != (Expr *)0x0)) {\n                    /* WARNING: Subroutine does not return */\n        sqlite3ExprDeleteNN(db,p);\n      }\n      pWC->a = pWVar9;\n      return 0;\n    }\n    pWVar1 = (WhereTerm *)dbMallocRawFinish(db,CONCAT44(&_gp,in_stack_ffffffe4));\n    pWC->a = pWVar1;\n    if (pWVar1 == (WhereTerm *)0x0) goto LAB_00049780;\n    (**(code **)(puVar12 + -0x7b7c))(pWVar1,pWVar9,pWC->nTerm * 0x30);\n    if (pWVar9 != pWC->aStatic) {\n                    /* WARNING: Subroutine does not return */\n      sqlite3DbFreeNN(db,pWVar9);\n    }\n    puVar11 = puVar12;\n    uVar2 = (**(code **)(*(int *)(puVar12 + -0x7fd8) + -0x4da0))(pWC->a);\n    pWVar9 = pWC->a;\n    iVar8 = pWC->nTerm;\n    pWC->nSlot = uVar2 / 0x30;\n  }" if (parenthesized_expression "(pWC->nSlot <= iVar8)" ( (binary_expression "pWC->nSlot <= iVar8" (field_expression "pWC->nSlot" identifier -> field_identifier) <= identifier) )) (compound_statement "{\n    db = pWC->pWInfo->pParse->db;\n    if (db->mallocFailed != '\0') {\n      pWC->a = (WhereTerm *)0x0;\nLAB_00049780:\n      if (((wtFlags & 1) != 0) && (p != (Expr *)0x0)) {\n                    /* WARNING: Subroutine does not return */\n        sqlite3ExprDeleteNN(db,p);\n      }\n      pWC->a = pWVar9;\n      return 0;\n    }\n    pWVar1 = (WhereTerm *)dbMallocRawFinish(db,CONCAT44(&_gp,in_stack_ffffffe4));\n    pWC->a = pWVar1;\n    if (pWVar1 == (WhereTerm *)0x0) goto LAB_00049780;\n    (**(code **)(puVar12 + -0x7b7c))(pWVar1,pWVar9,pWC->nTerm * 0x30);\n    if (pWVar9 != pWC->aStatic) {\n                    /* WARNING: Subroutine does not return */\n      sqlite3DbFreeNN(db,pWVar9);\n    }\n    puVar11 = puVar12;\n    uVar2 = (**(code **)(*(int *)(puVar12 + -0x7fd8) + -0x4da0))(pWC->a);\n    pWVar9 = pWC->a;\n    iVar8 = pWC->nTerm;\n    pWC->nSlot = uVar2 / 0x30;\n  }" { (expression_statement "db = pWC->pWInfo->pParse->db;" (assignment_expression "db = pWC->pWInfo->pParse->db" identifier = (field_expression "pWC->pWInfo->pParse->db" (field_expression "pWC->pWInfo->pParse" (field_expression "pWC->pWInfo" identifier -> field_identifier) -> field_identifier) -> field_identifier)) ;) (if_statement "if (db->mallocFailed != '\0') {\n      pWC->a = (WhereTerm *)0x0;\nLAB_00049780:\n      if (((wtFlags & 1) != 0) && (p != (Expr *)0x0)) {\n                    /* WARNING: Subroutine does not return */\n        sqlite3ExprDeleteNN(db,p);\n      }\n      pWC->a = pWVar9;\n      return 0;\n    }" if (parenthesized_expression "(db->mallocFailed != '\0')" ( (binary_expression "db->mallocFailed != '\0'" (field_expression "db->mallocFailed" identifier -> field_identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      pWC->a = (WhereTerm *)0x0;\nLAB_00049780:\n      if (((wtFlags & 1) != 0) && (p != (Expr *)0x0)) {\n                    /* WARNING: Subroutine does not return */\n        sqlite3ExprDeleteNN(db,p);\n      }\n      pWC->a = pWVar9;\n      return 0;\n    }" { (expression_statement "pWC->a = (WhereTerm *)0x0;" (assignment_expression "pWC->a = (WhereTerm *)0x0" (field_expression "pWC->a" identifier -> field_identifier) = (cast_expression "(WhereTerm *)0x0" ( (type_descriptor "WhereTerm *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (labeled_statement "LAB_00049780:\n      if (((wtFlags & 1) != 0) && (p != (Expr *)0x0)) {\n                    /* WARNING: Subroutine does not return */\n        sqlite3ExprDeleteNN(db,p);\n      }" statement_identifier : (if_statement "if (((wtFlags & 1) != 0) && (p != (Expr *)0x0)) {\n                    /* WARNING: Subroutine does not return */\n        sqlite3ExprDeleteNN(db,p);\n      }" if (parenthesized_expression "(((wtFlags & 1) != 0) && (p != (Expr *)0x0))" ( (binary_expression "((wtFlags & 1) != 0) && (p != (Expr *)0x0)" (parenthesized_expression "((wtFlags & 1) != 0)" ( (binary_expression "(wtFlags & 1) != 0" (parenthesized_expression "(wtFlags & 1)" ( (binary_expression "wtFlags & 1" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(p != (Expr *)0x0)" ( (binary_expression "p != (Expr *)0x0" identifier != (cast_expression "(Expr *)0x0" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n        sqlite3ExprDeleteNN(db,p);\n      }" { comment (expression_statement "sqlite3ExprDeleteNN(db,p);" (call_expression "sqlite3ExprDeleteNN(db,p)" identifier (argument_list "(db,p)" ( identifier , identifier ))) ;) }))) (expression_statement "pWC->a = pWVar9;" (assignment_expression "pWC->a = pWVar9" (field_expression "pWC->a" identifier -> field_identifier) = identifier) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "pWVar1 = (WhereTerm *)dbMallocRawFinish(db,CONCAT44(&_gp,in_stack_ffffffe4));" (assignment_expression "pWVar1 = (WhereTerm *)dbMallocRawFinish(db,CONCAT44(&_gp,in_stack_ffffffe4))" identifier = (cast_expression "(WhereTerm *)dbMallocRawFinish(db,CONCAT44(&_gp,in_stack_ffffffe4))" ( (type_descriptor "WhereTerm *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "dbMallocRawFinish(db,CONCAT44(&_gp,in_stack_ffffffe4))" identifier (argument_list "(db,CONCAT44(&_gp,in_stack_ffffffe4))" ( identifier , (call_expression "CONCAT44(&_gp,in_stack_ffffffe4)" identifier (argument_list "(&_gp,in_stack_ffffffe4)" ( (pointer_expression "&_gp" & identifier) , identifier ))) ))))) ;) (expression_statement "pWC->a = pWVar1;" (assignment_expression "pWC->a = pWVar1" (field_expression "pWC->a" identifier -> field_identifier) = identifier) ;) (if_statement "if (pWVar1 == (WhereTerm *)0x0) goto LAB_00049780;" if (parenthesized_expression "(pWVar1 == (WhereTerm *)0x0)" ( (binary_expression "pWVar1 == (WhereTerm *)0x0" identifier == (cast_expression "(WhereTerm *)0x0" ( (type_descriptor "WhereTerm *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_00049780;" goto statement_identifier ;)) (expression_statement "(**(code **)(puVar12 + -0x7b7c))(pWVar1,pWVar9,pWC->nTerm * 0x30);" (call_expression "(**(code **)(puVar12 + -0x7b7c))(pWVar1,pWVar9,pWC->nTerm * 0x30)" (parenthesized_expression "(**(code **)(puVar12 + -0x7b7c))" ( (pointer_expression "**(code **)(puVar12 + -0x7b7c)" * (pointer_expression "*(code **)(puVar12 + -0x7b7c)" * (cast_expression "(code **)(puVar12 + -0x7b7c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + -0x7b7c)" ( (binary_expression "puVar12 + -0x7b7c" identifier + number_literal) ))))) )) (argument_list "(pWVar1,pWVar9,pWC->nTerm * 0x30)" ( identifier , identifier , (binary_expression "pWC->nTerm * 0x30" (field_expression "pWC->nTerm" identifier -> field_identifier) * number_literal) ))) ;) (if_statement "if (pWVar9 != pWC->aStatic) {\n                    /* WARNING: Subroutine does not return */\n      sqlite3DbFreeNN(db,pWVar9);\n    }" if (parenthesized_expression "(pWVar9 != pWC->aStatic)" ( (binary_expression "pWVar9 != pWC->aStatic" identifier != (field_expression "pWC->aStatic" identifier -> field_identifier)) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      sqlite3DbFreeNN(db,pWVar9);\n    }" { comment (expression_statement "sqlite3DbFreeNN(db,pWVar9);" (call_expression "sqlite3DbFreeNN(db,pWVar9)" identifier (argument_list "(db,pWVar9)" ( identifier , identifier ))) ;) })) (expression_statement "puVar11 = puVar12;" (assignment_expression "puVar11 = puVar12" identifier = identifier) ;) (expression_statement "uVar2 = (**(code **)(*(int *)(puVar12 + -0x7fd8) + -0x4da0))(pWC->a);" (assignment_expression "uVar2 = (**(code **)(*(int *)(puVar12 + -0x7fd8) + -0x4da0))(pWC->a)" identifier = (call_expression "(**(code **)(*(int *)(puVar12 + -0x7fd8) + -0x4da0))(pWC->a)" (parenthesized_expression "(**(code **)(*(int *)(puVar12 + -0x7fd8) + -0x4da0))" ( (pointer_expression "**(code **)(*(int *)(puVar12 + -0x7fd8) + -0x4da0)" * (pointer_expression "*(code **)(*(int *)(puVar12 + -0x7fd8) + -0x4da0)" * (cast_expression "(code **)(*(int *)(puVar12 + -0x7fd8) + -0x4da0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*(int *)(puVar12 + -0x7fd8) + -0x4da0)" ( (binary_expression "*(int *)(puVar12 + -0x7fd8) + -0x4da0" (pointer_expression "*(int *)(puVar12 + -0x7fd8)" * (cast_expression "(int *)(puVar12 + -0x7fd8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + -0x7fd8)" ( (binary_expression "puVar12 + -0x7fd8" identifier + number_literal) )))) + number_literal) ))))) )) (argument_list "(pWC->a)" ( (field_expression "pWC->a" identifier -> field_identifier) )))) ;) (expression_statement "pWVar9 = pWC->a;" (assignment_expression "pWVar9 = pWC->a" identifier = (field_expression "pWC->a" identifier -> field_identifier)) ;) (expression_statement "iVar8 = pWC->nTerm;" (assignment_expression "iVar8 = pWC->nTerm" identifier = (field_expression "pWC->nTerm" identifier -> field_identifier)) ;) (expression_statement "pWC->nSlot = uVar2 / 0x30;" (assignment_expression "pWC->nSlot = uVar2 / 0x30" (field_expression "pWC->nSlot" identifier -> field_identifier) = (binary_expression "uVar2 / 0x30" identifier / number_literal)) ;) })) (expression_statement "pWC->nTerm = iVar8 + 1;" (assignment_expression "pWC->nTerm = iVar8 + 1" (field_expression "pWC->nTerm" identifier -> field_identifier) = (binary_expression "iVar8 + 1" identifier + number_literal)) ;) (expression_statement "pWVar9 = pWVar9 + iVar8;" (assignment_expression "pWVar9 = pWVar9 + iVar8" identifier = (binary_expression "pWVar9 + iVar8" identifier + identifier)) ;) (if_statement "if (p == (Expr *)0x0) {\n    p = (Expr *)0x0;\n    pWVar9->truthProb = 1;\n  }\n  else {\n    sVar7 = 1;\n    if ((int)(p->flags << 0xd) < 0) {\n      uVar3 = p->iTable;\n      uVar2 = (int)uVar3 >> 0x1f;\n      iVar6 = LZCOUNT(uVar2);\n      if ((int)uVar3 < 0) {\nLAB_00049718:\n        uVar5 = 0x3c - iVar6;\n        uVar4 = (uVar2 << 1) << (~uVar5 & 0x1f) | uVar3 >> (uVar5 & 0x1f);\n        if ((uVar5 & 0x20) != 0) {\n          uVar4 = uVar2 >> (uVar5 & 0x1f);\n        }\n        sVar7 = (short)uVar5 * 10 + 0x28;\nLAB_00049754:\n        iVar6 = *(int *)(puVar11 + -0x7fbc);\n      }\n      else {\n        if (7 < uVar3) {\n          iVar6 = LZCOUNT(uVar3) + 0x20;\n          goto LAB_00049718;\n        }\n        sVar7 = 0x1e;\n        if (uVar3 < 2) {\n          sVar7 = -0x10e;\n          goto LAB_0004966c;\n        }\n        while( true ) {\n          uVar4 = uVar3 << 1;\n          if ((int)uVar3 < 0 || (uVar2 & 0x7fffffff) != 0) break;\n          if (7 < uVar4) goto LAB_00049754;\n          uVar2 = 0;\n          uVar3 = uVar4;\n          sVar7 = sVar7 + -10;\n        }\n        iVar6 = *(int *)(puVar11 + -0x7fbc);\n      }\n      sVar7 = sVar7 + -0x118 + *(short *)((uVar4 & 7) * 2 + iVar6 + 0x3550);\n    }\nLAB_0004966c:\n    pWVar9->truthProb = sVar7;\n    uVar2 = p->flags;\n    if ((uVar2 & 0x1000) != 0) {\n      do {\n        if ((uVar2 & 0x40000) == 0) {\n          p = p->pLeft;\n        }\n        else {\n          p = ((p->x).pList)->a[0].pExpr;\n        }\n        if (p == (Expr *)0x0) {\n          p = (Expr *)0x0;\n          goto LAB_000496c4;\n        }\n        uVar2 = p->flags;\n        pcVar10 = *(code **)(puVar11 + -0x7bf8);\n      } while ((uVar2 & 0x1000) != 0);\n      goto LAB_000496c8;\n    }\n  }" if (parenthesized_expression "(p == (Expr *)0x0)" ( (binary_expression "p == (Expr *)0x0" identifier == (cast_expression "(Expr *)0x0" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    p = (Expr *)0x0;\n    pWVar9->truthProb = 1;\n  }" { (expression_statement "p = (Expr *)0x0;" (assignment_expression "p = (Expr *)0x0" identifier = (cast_expression "(Expr *)0x0" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pWVar9->truthProb = 1;" (assignment_expression "pWVar9->truthProb = 1" (field_expression "pWVar9->truthProb" identifier -> field_identifier) = number_literal) ;) }) (else_clause "else {\n    sVar7 = 1;\n    if ((int)(p->flags << 0xd) < 0) {\n      uVar3 = p->iTable;\n      uVar2 = (int)uVar3 >> 0x1f;\n      iVar6 = LZCOUNT(uVar2);\n      if ((int)uVar3 < 0) {\nLAB_00049718:\n        uVar5 = 0x3c - iVar6;\n        uVar4 = (uVar2 << 1) << (~uVar5 & 0x1f) | uVar3 >> (uVar5 & 0x1f);\n        if ((uVar5 & 0x20) != 0) {\n          uVar4 = uVar2 >> (uVar5 & 0x1f);\n        }\n        sVar7 = (short)uVar5 * 10 + 0x28;\nLAB_00049754:\n        iVar6 = *(int *)(puVar11 + -0x7fbc);\n      }\n      else {\n        if (7 < uVar3) {\n          iVar6 = LZCOUNT(uVar3) + 0x20;\n          goto LAB_00049718;\n        }\n        sVar7 = 0x1e;\n        if (uVar3 < 2) {\n          sVar7 = -0x10e;\n          goto LAB_0004966c;\n        }\n        while( true ) {\n          uVar4 = uVar3 << 1;\n          if ((int)uVar3 < 0 || (uVar2 & 0x7fffffff) != 0) break;\n          if (7 < uVar4) goto LAB_00049754;\n          uVar2 = 0;\n          uVar3 = uVar4;\n          sVar7 = sVar7 + -10;\n        }\n        iVar6 = *(int *)(puVar11 + -0x7fbc);\n      }\n      sVar7 = sVar7 + -0x118 + *(short *)((uVar4 & 7) * 2 + iVar6 + 0x3550);\n    }\nLAB_0004966c:\n    pWVar9->truthProb = sVar7;\n    uVar2 = p->flags;\n    if ((uVar2 & 0x1000) != 0) {\n      do {\n        if ((uVar2 & 0x40000) == 0) {\n          p = p->pLeft;\n        }\n        else {\n          p = ((p->x).pList)->a[0].pExpr;\n        }\n        if (p == (Expr *)0x0) {\n          p = (Expr *)0x0;\n          goto LAB_000496c4;\n        }\n        uVar2 = p->flags;\n        pcVar10 = *(code **)(puVar11 + -0x7bf8);\n      } while ((uVar2 & 0x1000) != 0);\n      goto LAB_000496c8;\n    }\n  }" else (compound_statement "{\n    sVar7 = 1;\n    if ((int)(p->flags << 0xd) < 0) {\n      uVar3 = p->iTable;\n      uVar2 = (int)uVar3 >> 0x1f;\n      iVar6 = LZCOUNT(uVar2);\n      if ((int)uVar3 < 0) {\nLAB_00049718:\n        uVar5 = 0x3c - iVar6;\n        uVar4 = (uVar2 << 1) << (~uVar5 & 0x1f) | uVar3 >> (uVar5 & 0x1f);\n        if ((uVar5 & 0x20) != 0) {\n          uVar4 = uVar2 >> (uVar5 & 0x1f);\n        }\n        sVar7 = (short)uVar5 * 10 + 0x28;\nLAB_00049754:\n        iVar6 = *(int *)(puVar11 + -0x7fbc);\n      }\n      else {\n        if (7 < uVar3) {\n          iVar6 = LZCOUNT(uVar3) + 0x20;\n          goto LAB_00049718;\n        }\n        sVar7 = 0x1e;\n        if (uVar3 < 2) {\n          sVar7 = -0x10e;\n          goto LAB_0004966c;\n        }\n        while( true ) {\n          uVar4 = uVar3 << 1;\n          if ((int)uVar3 < 0 || (uVar2 & 0x7fffffff) != 0) break;\n          if (7 < uVar4) goto LAB_00049754;\n          uVar2 = 0;\n          uVar3 = uVar4;\n          sVar7 = sVar7 + -10;\n        }\n        iVar6 = *(int *)(puVar11 + -0x7fbc);\n      }\n      sVar7 = sVar7 + -0x118 + *(short *)((uVar4 & 7) * 2 + iVar6 + 0x3550);\n    }\nLAB_0004966c:\n    pWVar9->truthProb = sVar7;\n    uVar2 = p->flags;\n    if ((uVar2 & 0x1000) != 0) {\n      do {\n        if ((uVar2 & 0x40000) == 0) {\n          p = p->pLeft;\n        }\n        else {\n          p = ((p->x).pList)->a[0].pExpr;\n        }\n        if (p == (Expr *)0x0) {\n          p = (Expr *)0x0;\n          goto LAB_000496c4;\n        }\n        uVar2 = p->flags;\n        pcVar10 = *(code **)(puVar11 + -0x7bf8);\n      } while ((uVar2 & 0x1000) != 0);\n      goto LAB_000496c8;\n    }\n  }" { (expression_statement "sVar7 = 1;" (assignment_expression "sVar7 = 1" identifier = number_literal) ;) (if_statement "if ((int)(p->flags << 0xd) < 0) {\n      uVar3 = p->iTable;\n      uVar2 = (int)uVar3 >> 0x1f;\n      iVar6 = LZCOUNT(uVar2);\n      if ((int)uVar3 < 0) {\nLAB_00049718:\n        uVar5 = 0x3c - iVar6;\n        uVar4 = (uVar2 << 1) << (~uVar5 & 0x1f) | uVar3 >> (uVar5 & 0x1f);\n        if ((uVar5 & 0x20) != 0) {\n          uVar4 = uVar2 >> (uVar5 & 0x1f);\n        }\n        sVar7 = (short)uVar5 * 10 + 0x28;\nLAB_00049754:\n        iVar6 = *(int *)(puVar11 + -0x7fbc);\n      }\n      else {\n        if (7 < uVar3) {\n          iVar6 = LZCOUNT(uVar3) + 0x20;\n          goto LAB_00049718;\n        }\n        sVar7 = 0x1e;\n        if (uVar3 < 2) {\n          sVar7 = -0x10e;\n          goto LAB_0004966c;\n        }\n        while( true ) {\n          uVar4 = uVar3 << 1;\n          if ((int)uVar3 < 0 || (uVar2 & 0x7fffffff) != 0) break;\n          if (7 < uVar4) goto LAB_00049754;\n          uVar2 = 0;\n          uVar3 = uVar4;\n          sVar7 = sVar7 + -10;\n        }\n        iVar6 = *(int *)(puVar11 + -0x7fbc);\n      }\n      sVar7 = sVar7 + -0x118 + *(short *)((uVar4 & 7) * 2 + iVar6 + 0x3550);\n    }" if (parenthesized_expression "((int)(p->flags << 0xd) < 0)" ( (binary_expression "(int)(p->flags << 0xd) < 0" (cast_expression "(int)(p->flags << 0xd)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(p->flags << 0xd)" ( (binary_expression "p->flags << 0xd" (field_expression "p->flags" identifier -> field_identifier) << number_literal) ))) < number_literal) )) (compound_statement "{\n      uVar3 = p->iTable;\n      uVar2 = (int)uVar3 >> 0x1f;\n      iVar6 = LZCOUNT(uVar2);\n      if ((int)uVar3 < 0) {\nLAB_00049718:\n        uVar5 = 0x3c - iVar6;\n        uVar4 = (uVar2 << 1) << (~uVar5 & 0x1f) | uVar3 >> (uVar5 & 0x1f);\n        if ((uVar5 & 0x20) != 0) {\n          uVar4 = uVar2 >> (uVar5 & 0x1f);\n        }\n        sVar7 = (short)uVar5 * 10 + 0x28;\nLAB_00049754:\n        iVar6 = *(int *)(puVar11 + -0x7fbc);\n      }\n      else {\n        if (7 < uVar3) {\n          iVar6 = LZCOUNT(uVar3) + 0x20;\n          goto LAB_00049718;\n        }\n        sVar7 = 0x1e;\n        if (uVar3 < 2) {\n          sVar7 = -0x10e;\n          goto LAB_0004966c;\n        }\n        while( true ) {\n          uVar4 = uVar3 << 1;\n          if ((int)uVar3 < 0 || (uVar2 & 0x7fffffff) != 0) break;\n          if (7 < uVar4) goto LAB_00049754;\n          uVar2 = 0;\n          uVar3 = uVar4;\n          sVar7 = sVar7 + -10;\n        }\n        iVar6 = *(int *)(puVar11 + -0x7fbc);\n      }\n      sVar7 = sVar7 + -0x118 + *(short *)((uVar4 & 7) * 2 + iVar6 + 0x3550);\n    }" { (expression_statement "uVar3 = p->iTable;" (assignment_expression "uVar3 = p->iTable" identifier = (field_expression "p->iTable" identifier -> field_identifier)) ;) (expression_statement "uVar2 = (int)uVar3 >> 0x1f;" (assignment_expression "uVar2 = (int)uVar3 >> 0x1f" identifier = (binary_expression "(int)uVar3 >> 0x1f" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) ;) (expression_statement "iVar6 = LZCOUNT(uVar2);" (assignment_expression "iVar6 = LZCOUNT(uVar2)" identifier = (call_expression "LZCOUNT(uVar2)" identifier (argument_list "(uVar2)" ( identifier )))) ;) (if_statement "if ((int)uVar3 < 0) {\nLAB_00049718:\n        uVar5 = 0x3c - iVar6;\n        uVar4 = (uVar2 << 1) << (~uVar5 & 0x1f) | uVar3 >> (uVar5 & 0x1f);\n        if ((uVar5 & 0x20) != 0) {\n          uVar4 = uVar2 >> (uVar5 & 0x1f);\n        }\n        sVar7 = (short)uVar5 * 10 + 0x28;\nLAB_00049754:\n        iVar6 = *(int *)(puVar11 + -0x7fbc);\n      }\n      else {\n        if (7 < uVar3) {\n          iVar6 = LZCOUNT(uVar3) + 0x20;\n          goto LAB_00049718;\n        }\n        sVar7 = 0x1e;\n        if (uVar3 < 2) {\n          sVar7 = -0x10e;\n          goto LAB_0004966c;\n        }\n        while( true ) {\n          uVar4 = uVar3 << 1;\n          if ((int)uVar3 < 0 || (uVar2 & 0x7fffffff) != 0) break;\n          if (7 < uVar4) goto LAB_00049754;\n          uVar2 = 0;\n          uVar3 = uVar4;\n          sVar7 = sVar7 + -10;\n        }\n        iVar6 = *(int *)(puVar11 + -0x7fbc);\n      }" if (parenthesized_expression "((int)uVar3 < 0)" ( (binary_expression "(int)uVar3 < 0" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\nLAB_00049718:\n        uVar5 = 0x3c - iVar6;\n        uVar4 = (uVar2 << 1) << (~uVar5 & 0x1f) | uVar3 >> (uVar5 & 0x1f);\n        if ((uVar5 & 0x20) != 0) {\n          uVar4 = uVar2 >> (uVar5 & 0x1f);\n        }\n        sVar7 = (short)uVar5 * 10 + 0x28;\nLAB_00049754:\n        iVar6 = *(int *)(puVar11 + -0x7fbc);\n      }" { (labeled_statement "LAB_00049718:\n        uVar5 = 0x3c - iVar6;" statement_identifier : (expression_statement "uVar5 = 0x3c - iVar6;" (assignment_expression "uVar5 = 0x3c - iVar6" identifier = (binary_expression "0x3c - iVar6" number_literal - identifier)) ;)) (expression_statement "uVar4 = (uVar2 << 1) << (~uVar5 & 0x1f) | uVar3 >> (uVar5 & 0x1f);" (assignment_expression "uVar4 = (uVar2 << 1) << (~uVar5 & 0x1f) | uVar3 >> (uVar5 & 0x1f)" identifier = (binary_expression "(uVar2 << 1) << (~uVar5 & 0x1f) | uVar3 >> (uVar5 & 0x1f)" (binary_expression "(uVar2 << 1) << (~uVar5 & 0x1f)" (parenthesized_expression "(uVar2 << 1)" ( (binary_expression "uVar2 << 1" identifier << number_literal) )) << (parenthesized_expression "(~uVar5 & 0x1f)" ( (binary_expression "~uVar5 & 0x1f" (unary_expression "~uVar5" ~ identifier) & number_literal) ))) | (binary_expression "uVar3 >> (uVar5 & 0x1f)" identifier >> (parenthesized_expression "(uVar5 & 0x1f)" ( (binary_expression "uVar5 & 0x1f" identifier & number_literal) ))))) ;) (if_statement "if ((uVar5 & 0x20) != 0) {\n          uVar4 = uVar2 >> (uVar5 & 0x1f);\n        }" if (parenthesized_expression "((uVar5 & 0x20) != 0)" ( (binary_expression "(uVar5 & 0x20) != 0" (parenthesized_expression "(uVar5 & 0x20)" ( (binary_expression "uVar5 & 0x20" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n          uVar4 = uVar2 >> (uVar5 & 0x1f);\n        }" { (expression_statement "uVar4 = uVar2 >> (uVar5 & 0x1f);" (assignment_expression "uVar4 = uVar2 >> (uVar5 & 0x1f)" identifier = (binary_expression "uVar2 >> (uVar5 & 0x1f)" identifier >> (parenthesized_expression "(uVar5 & 0x1f)" ( (binary_expression "uVar5 & 0x1f" identifier & number_literal) )))) ;) })) (expression_statement "sVar7 = (short)uVar5 * 10 + 0x28;" (assignment_expression "sVar7 = (short)uVar5 * 10 + 0x28" identifier = (binary_expression "(short)uVar5 * 10 + 0x28" (binary_expression "(short)uVar5 * 10" (cast_expression "(short)uVar5" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier) * number_literal) + number_literal)) ;) (labeled_statement "LAB_00049754:\n        iVar6 = *(int *)(puVar11 + -0x7fbc);" statement_identifier : (expression_statement "iVar6 = *(int *)(puVar11 + -0x7fbc);" (assignment_expression "iVar6 = *(int *)(puVar11 + -0x7fbc)" identifier = (pointer_expression "*(int *)(puVar11 + -0x7fbc)" * (cast_expression "(int *)(puVar11 + -0x7fbc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar11 + -0x7fbc)" ( (binary_expression "puVar11 + -0x7fbc" identifier + number_literal) ))))) ;)) }) (else_clause "else {\n        if (7 < uVar3) {\n          iVar6 = LZCOUNT(uVar3) + 0x20;\n          goto LAB_00049718;\n        }\n        sVar7 = 0x1e;\n        if (uVar3 < 2) {\n          sVar7 = -0x10e;\n          goto LAB_0004966c;\n        }\n        while( true ) {\n          uVar4 = uVar3 << 1;\n          if ((int)uVar3 < 0 || (uVar2 & 0x7fffffff) != 0) break;\n          if (7 < uVar4) goto LAB_00049754;\n          uVar2 = 0;\n          uVar3 = uVar4;\n          sVar7 = sVar7 + -10;\n        }\n        iVar6 = *(int *)(puVar11 + -0x7fbc);\n      }" else (compound_statement "{\n        if (7 < uVar3) {\n          iVar6 = LZCOUNT(uVar3) + 0x20;\n          goto LAB_00049718;\n        }\n        sVar7 = 0x1e;\n        if (uVar3 < 2) {\n          sVar7 = -0x10e;\n          goto LAB_0004966c;\n        }\n        while( true ) {\n          uVar4 = uVar3 << 1;\n          if ((int)uVar3 < 0 || (uVar2 & 0x7fffffff) != 0) break;\n          if (7 < uVar4) goto LAB_00049754;\n          uVar2 = 0;\n          uVar3 = uVar4;\n          sVar7 = sVar7 + -10;\n        }\n        iVar6 = *(int *)(puVar11 + -0x7fbc);\n      }" { (if_statement "if (7 < uVar3) {\n          iVar6 = LZCOUNT(uVar3) + 0x20;\n          goto LAB_00049718;\n        }" if (parenthesized_expression "(7 < uVar3)" ( (binary_expression "7 < uVar3" number_literal < identifier) )) (compound_statement "{\n          iVar6 = LZCOUNT(uVar3) + 0x20;\n          goto LAB_00049718;\n        }" { (expression_statement "iVar6 = LZCOUNT(uVar3) + 0x20;" (assignment_expression "iVar6 = LZCOUNT(uVar3) + 0x20" identifier = (binary_expression "LZCOUNT(uVar3) + 0x20" (call_expression "LZCOUNT(uVar3)" identifier (argument_list "(uVar3)" ( identifier ))) + number_literal)) ;) (goto_statement "goto LAB_00049718;" goto statement_identifier ;) })) (expression_statement "sVar7 = 0x1e;" (assignment_expression "sVar7 = 0x1e" identifier = number_literal) ;) (if_statement "if (uVar3 < 2) {\n          sVar7 = -0x10e;\n          goto LAB_0004966c;\n        }" if (parenthesized_expression "(uVar3 < 2)" ( (binary_expression "uVar3 < 2" identifier < number_literal) )) (compound_statement "{\n          sVar7 = -0x10e;\n          goto LAB_0004966c;\n        }" { (expression_statement "sVar7 = -0x10e;" (assignment_expression "sVar7 = -0x10e" identifier = number_literal) ;) (goto_statement "goto LAB_0004966c;" goto statement_identifier ;) })) (while_statement "while( true ) {\n          uVar4 = uVar3 << 1;\n          if ((int)uVar3 < 0 || (uVar2 & 0x7fffffff) != 0) break;\n          if (7 < uVar4) goto LAB_00049754;\n          uVar2 = 0;\n          uVar3 = uVar4;\n          sVar7 = sVar7 + -10;\n        }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n          uVar4 = uVar3 << 1;\n          if ((int)uVar3 < 0 || (uVar2 & 0x7fffffff) != 0) break;\n          if (7 < uVar4) goto LAB_00049754;\n          uVar2 = 0;\n          uVar3 = uVar4;\n          sVar7 = sVar7 + -10;\n        }" { (expression_statement "uVar4 = uVar3 << 1;" (assignment_expression "uVar4 = uVar3 << 1" identifier = (binary_expression "uVar3 << 1" identifier << number_literal)) ;) (if_statement "if ((int)uVar3 < 0 || (uVar2 & 0x7fffffff) != 0) break;" if (parenthesized_expression "((int)uVar3 < 0 || (uVar2 & 0x7fffffff) != 0)" ( (binary_expression "(int)uVar3 < 0 || (uVar2 & 0x7fffffff) != 0" (binary_expression "(int)uVar3 < 0" (cast_expression "(int)uVar3" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) || (binary_expression "(uVar2 & 0x7fffffff) != 0" (parenthesized_expression "(uVar2 & 0x7fffffff)" ( (binary_expression "uVar2 & 0x7fffffff" identifier & number_literal) )) != number_literal)) )) (break_statement "break;" break ;)) (if_statement "if (7 < uVar4) goto LAB_00049754;" if (parenthesized_expression "(7 < uVar4)" ( (binary_expression "7 < uVar4" number_literal < identifier) )) (goto_statement "goto LAB_00049754;" goto statement_identifier ;)) (expression_statement "uVar2 = 0;" (assignment_expression "uVar2 = 0" identifier = number_literal) ;) (expression_statement "uVar3 = uVar4;" (assignment_expression "uVar3 = uVar4" identifier = identifier) ;) (expression_statement "sVar7 = sVar7 + -10;" (assignment_expression "sVar7 = sVar7 + -10" identifier = (binary_expression "sVar7 + -10" identifier + number_literal)) ;) })) (expression_statement "iVar6 = *(int *)(puVar11 + -0x7fbc);" (assignment_expression "iVar6 = *(int *)(puVar11 + -0x7fbc)" identifier = (pointer_expression "*(int *)(puVar11 + -0x7fbc)" * (cast_expression "(int *)(puVar11 + -0x7fbc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar11 + -0x7fbc)" ( (binary_expression "puVar11 + -0x7fbc" identifier + number_literal) ))))) ;) }))) (expression_statement "sVar7 = sVar7 + -0x118 + *(short *)((uVar4 & 7) * 2 + iVar6 + 0x3550);" (assignment_expression "sVar7 = sVar7 + -0x118 + *(short *)((uVar4 & 7) * 2 + iVar6 + 0x3550)" identifier = (binary_expression "sVar7 + -0x118 + *(short *)((uVar4 & 7) * 2 + iVar6 + 0x3550)" (binary_expression "sVar7 + -0x118" identifier + number_literal) + (pointer_expression "*(short *)((uVar4 & 7) * 2 + iVar6 + 0x3550)" * (cast_expression "(short *)((uVar4 & 7) * 2 + iVar6 + 0x3550)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uVar4 & 7) * 2 + iVar6 + 0x3550)" ( (binary_expression "(uVar4 & 7) * 2 + iVar6 + 0x3550" (binary_expression "(uVar4 & 7) * 2 + iVar6" (binary_expression "(uVar4 & 7) * 2" (parenthesized_expression "(uVar4 & 7)" ( (binary_expression "uVar4 & 7" identifier & number_literal) )) * number_literal) + identifier) + number_literal) )))))) ;) })) (labeled_statement "LAB_0004966c:\n    pWVar9->truthProb = sVar7;" statement_identifier : (expression_statement "pWVar9->truthProb = sVar7;" (assignment_expression "pWVar9->truthProb = sVar7" (field_expression "pWVar9->truthProb" identifier -> field_identifier) = identifier) ;)) (expression_statement "uVar2 = p->flags;" (assignment_expression "uVar2 = p->flags" identifier = (field_expression "p->flags" identifier -> field_identifier)) ;) (if_statement "if ((uVar2 & 0x1000) != 0) {\n      do {\n        if ((uVar2 & 0x40000) == 0) {\n          p = p->pLeft;\n        }\n        else {\n          p = ((p->x).pList)->a[0].pExpr;\n        }\n        if (p == (Expr *)0x0) {\n          p = (Expr *)0x0;\n          goto LAB_000496c4;\n        }\n        uVar2 = p->flags;\n        pcVar10 = *(code **)(puVar11 + -0x7bf8);\n      } while ((uVar2 & 0x1000) != 0);\n      goto LAB_000496c8;\n    }" if (parenthesized_expression "((uVar2 & 0x1000) != 0)" ( (binary_expression "(uVar2 & 0x1000) != 0" (parenthesized_expression "(uVar2 & 0x1000)" ( (binary_expression "uVar2 & 0x1000" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n      do {\n        if ((uVar2 & 0x40000) == 0) {\n          p = p->pLeft;\n        }\n        else {\n          p = ((p->x).pList)->a[0].pExpr;\n        }\n        if (p == (Expr *)0x0) {\n          p = (Expr *)0x0;\n          goto LAB_000496c4;\n        }\n        uVar2 = p->flags;\n        pcVar10 = *(code **)(puVar11 + -0x7bf8);\n      } while ((uVar2 & 0x1000) != 0);\n      goto LAB_000496c8;\n    }" { (do_statement "do {\n        if ((uVar2 & 0x40000) == 0) {\n          p = p->pLeft;\n        }\n        else {\n          p = ((p->x).pList)->a[0].pExpr;\n        }\n        if (p == (Expr *)0x0) {\n          p = (Expr *)0x0;\n          goto LAB_000496c4;\n        }\n        uVar2 = p->flags;\n        pcVar10 = *(code **)(puVar11 + -0x7bf8);\n      } while ((uVar2 & 0x1000) != 0);" do (compound_statement "{\n        if ((uVar2 & 0x40000) == 0) {\n          p = p->pLeft;\n        }\n        else {\n          p = ((p->x).pList)->a[0].pExpr;\n        }\n        if (p == (Expr *)0x0) {\n          p = (Expr *)0x0;\n          goto LAB_000496c4;\n        }\n        uVar2 = p->flags;\n        pcVar10 = *(code **)(puVar11 + -0x7bf8);\n      }" { (if_statement "if ((uVar2 & 0x40000) == 0) {\n          p = p->pLeft;\n        }\n        else {\n          p = ((p->x).pList)->a[0].pExpr;\n        }" if (parenthesized_expression "((uVar2 & 0x40000) == 0)" ( (binary_expression "(uVar2 & 0x40000) == 0" (parenthesized_expression "(uVar2 & 0x40000)" ( (binary_expression "uVar2 & 0x40000" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n          p = p->pLeft;\n        }" { (expression_statement "p = p->pLeft;" (assignment_expression "p = p->pLeft" identifier = (field_expression "p->pLeft" identifier -> field_identifier)) ;) }) (else_clause "else {\n          p = ((p->x).pList)->a[0].pExpr;\n        }" else (compound_statement "{\n          p = ((p->x).pList)->a[0].pExpr;\n        }" { (expression_statement "p = ((p->x).pList)->a[0].pExpr;" (assignment_expression "p = ((p->x).pList)->a[0].pExpr" identifier = (field_expression "((p->x).pList)->a[0].pExpr" (subscript_expression "((p->x).pList)->a[0]" (field_expression "((p->x).pList)->a" (parenthesized_expression "((p->x).pList)" ( (field_expression "(p->x).pList" (parenthesized_expression "(p->x)" ( (field_expression "p->x" identifier -> field_identifier) )) . field_identifier) )) -> field_identifier) [ number_literal ]) . field_identifier)) ;) }))) (if_statement "if (p == (Expr *)0x0) {\n          p = (Expr *)0x0;\n          goto LAB_000496c4;\n        }" if (parenthesized_expression "(p == (Expr *)0x0)" ( (binary_expression "p == (Expr *)0x0" identifier == (cast_expression "(Expr *)0x0" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n          p = (Expr *)0x0;\n          goto LAB_000496c4;\n        }" { (expression_statement "p = (Expr *)0x0;" (assignment_expression "p = (Expr *)0x0" identifier = (cast_expression "(Expr *)0x0" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (goto_statement "goto LAB_000496c4;" goto statement_identifier ;) })) (expression_statement "uVar2 = p->flags;" (assignment_expression "uVar2 = p->flags" identifier = (field_expression "p->flags" identifier -> field_identifier)) ;) (expression_statement "pcVar10 = *(code **)(puVar11 + -0x7bf8);" (assignment_expression "pcVar10 = *(code **)(puVar11 + -0x7bf8)" identifier = (pointer_expression "*(code **)(puVar11 + -0x7bf8)" * (cast_expression "(code **)(puVar11 + -0x7bf8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + -0x7bf8)" ( (binary_expression "puVar11 + -0x7bf8" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "((uVar2 & 0x1000) != 0)" ( (binary_expression "(uVar2 & 0x1000) != 0" (parenthesized_expression "(uVar2 & 0x1000)" ( (binary_expression "uVar2 & 0x1000" identifier & number_literal) )) != number_literal) )) ;) (goto_statement "goto LAB_000496c8;" goto statement_identifier ;) })) }))) (labeled_statement "LAB_000496c4:\n  pcVar10 = *(code **)(puVar11 + -0x7bf8);" statement_identifier : (expression_statement "pcVar10 = *(code **)(puVar11 + -0x7bf8);" (assignment_expression "pcVar10 = *(code **)(puVar11 + -0x7bf8)" identifier = (pointer_expression "*(code **)(puVar11 + -0x7bf8)" * (cast_expression "(code **)(puVar11 + -0x7bf8)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar11 + -0x7bf8)" ( (binary_expression "puVar11 + -0x7bf8" identifier + number_literal) ))))) ;)) (labeled_statement "LAB_000496c8:\n  pWVar9->pExpr = p;" statement_identifier : (expression_statement "pWVar9->pExpr = p;" (assignment_expression "pWVar9->pExpr = p" (field_expression "pWVar9->pExpr" identifier -> field_identifier) = identifier) ;)) (expression_statement "pWVar9->wtFlags = wtFlags;" (assignment_expression "pWVar9->wtFlags = wtFlags" (field_expression "pWVar9->wtFlags" identifier -> field_identifier) = identifier) ;) (expression_statement "pWVar9->pWC = pWC;" (assignment_expression "pWVar9->pWC = pWC" (field_expression "pWVar9->pWC" identifier -> field_identifier) = identifier) ;) (expression_statement "(*pcVar10)(&pWVar9->eOperator,0,0x24);" (call_expression "(*pcVar10)(&pWVar9->eOperator,0,0x24)" (parenthesized_expression "(*pcVar10)" ( (pointer_expression "*pcVar10" * identifier) )) (argument_list "(&pWVar9->eOperator,0,0x24)" ( (pointer_expression "&pWVar9->eOperator" & (field_expression "pWVar9->eOperator" identifier -> field_identifier)) , number_literal , number_literal ))) ;) (return_statement "return iVar8;" return identifier ;) })))
(translation_unit "int FUN_0004953c(undefined4 *param_1,int param_2,ushort param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  short sVar7;\n  int *piVar8;\n  int iVar9;\n  undefined4 *puVar10;\n  \n  iVar9 = param_1[3];\n  puVar10 = (undefined4 *)param_1[5];\n  if ((int)param_1[4] <= iVar9) {\n    iVar9 = **(int **)*param_1;\n    if (*(char *)(iVar9 + 0x51) != '\0') {\n      param_1[5] = 0;\nLAB_00049780:\n      if (((param_3 & 1) != 0) && (param_2 != 0)) {\n        FUN_000484f4(iVar9,param_2);\n      }\n      param_1[5] = puVar10;\n      return 0;\n    }\n    iVar2 = FUN_0002de20(iVar9,param_2,0,param_1[4] * 0x60);\n    param_1[5] = iVar2;\n    if (iVar2 == 0) goto LAB_00049780;\n    (*(code *)PTR_memcpy_0015ca34)(iVar2,puVar10,param_1[3] * 0x30);\n    if (puVar10 != param_1 + 6) {\n      FUN_0002b254(iVar9,puVar10);\n    }\n    uVar3 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(param_1[5]);\n    puVar10 = (undefined4 *)param_1[5];\n    iVar9 = param_1[3];\n    param_1[4] = uVar3 / 0x30;\n  }\n  param_1[3] = iVar9 + 1;\n  piVar8 = puVar10 + iVar9 * 0xc;\n  if (param_2 == 0) {\n    param_2 = 0;\n    *(undefined2 *)(piVar8 + 2) = 1;\n    goto LAB_000496c8;\n  }\n  sVar7 = 1;\n  if (*(int *)(param_2 + 4) << 0xd < 0) {\n    uVar4 = *(uint *)(param_2 + 0x1c);\n    uVar3 = (int)uVar4 >> 0x1f;\n    iVar2 = LZCOUNT(uVar3);\n    if ((int)uVar4 < 0) {\nLAB_00049718:\n      uVar6 = 0x3c - iVar2;\n      uVar5 = (uVar3 << 1) << (~uVar6 & 0x1f) | uVar4 >> (uVar6 & 0x1f);\n      if ((uVar6 & 0x20) != 0) {\n        uVar5 = uVar3 >> (uVar6 & 0x1f);\n      }\n      sVar7 = (short)uVar6 * 10 + 0x28;\n    }\n    else {\n      if (7 < uVar4) {\n        iVar2 = LZCOUNT(uVar4) + 0x20;\n        goto LAB_00049718;\n      }\n      sVar7 = 0x1e;\n      if (uVar4 < 2) {\n        sVar7 = -0x10e;\n        goto LAB_0004966c;\n      }\n      while( true ) {\n        uVar5 = uVar4 << 1;\n        if (((int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0) || (7 < uVar5)) break;\n        uVar3 = 0;\n        uVar4 = uVar5;\n        sVar7 = sVar7 + -10;\n      }\n    }\n    sVar7 = sVar7 + -0x118 + *(short *)(PTR_s_LE_FTS4_0015c5f4 + (uVar5 & 7) * 2 + 0x3550);\n  }\nLAB_0004966c:\n  *(short *)(piVar8 + 2) = sVar7;\n  uVar3 = *(uint *)(param_2 + 4);\n  while ((uVar3 & 0x1000) != 0) {\n    if ((uVar3 & 0x40000) == 0) {\n      param_2 = *(int *)(param_2 + 0xc);\n    }\n    else {\n      param_2 = *(int *)(*(int *)(param_2 + 0x14) + 4);\n    }\n    if (param_2 == 0) {\n      param_2 = 0;\n      break;\n    }\n    uVar3 = *(uint *)(param_2 + 4);\n  }\nLAB_000496c8:\n  puVar1 = PTR_memset_0015c9b8;\n  *piVar8 = param_2;\n  *(ushort *)((int)piVar8 + 10) = param_3;\n  piVar8[1] = (int)param_1;\n  (*(code *)puVar1)(piVar8 + 3,0,0x24);\n  return iVar9;\n}\n\n" (function_definition "int FUN_0004953c(undefined4 *param_1,int param_2,ushort param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  short sVar7;\n  int *piVar8;\n  int iVar9;\n  undefined4 *puVar10;\n  \n  iVar9 = param_1[3];\n  puVar10 = (undefined4 *)param_1[5];\n  if ((int)param_1[4] <= iVar9) {\n    iVar9 = **(int **)*param_1;\n    if (*(char *)(iVar9 + 0x51) != '\0') {\n      param_1[5] = 0;\nLAB_00049780:\n      if (((param_3 & 1) != 0) && (param_2 != 0)) {\n        FUN_000484f4(iVar9,param_2);\n      }\n      param_1[5] = puVar10;\n      return 0;\n    }\n    iVar2 = FUN_0002de20(iVar9,param_2,0,param_1[4] * 0x60);\n    param_1[5] = iVar2;\n    if (iVar2 == 0) goto LAB_00049780;\n    (*(code *)PTR_memcpy_0015ca34)(iVar2,puVar10,param_1[3] * 0x30);\n    if (puVar10 != param_1 + 6) {\n      FUN_0002b254(iVar9,puVar10);\n    }\n    uVar3 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(param_1[5]);\n    puVar10 = (undefined4 *)param_1[5];\n    iVar9 = param_1[3];\n    param_1[4] = uVar3 / 0x30;\n  }\n  param_1[3] = iVar9 + 1;\n  piVar8 = puVar10 + iVar9 * 0xc;\n  if (param_2 == 0) {\n    param_2 = 0;\n    *(undefined2 *)(piVar8 + 2) = 1;\n    goto LAB_000496c8;\n  }\n  sVar7 = 1;\n  if (*(int *)(param_2 + 4) << 0xd < 0) {\n    uVar4 = *(uint *)(param_2 + 0x1c);\n    uVar3 = (int)uVar4 >> 0x1f;\n    iVar2 = LZCOUNT(uVar3);\n    if ((int)uVar4 < 0) {\nLAB_00049718:\n      uVar6 = 0x3c - iVar2;\n      uVar5 = (uVar3 << 1) << (~uVar6 & 0x1f) | uVar4 >> (uVar6 & 0x1f);\n      if ((uVar6 & 0x20) != 0) {\n        uVar5 = uVar3 >> (uVar6 & 0x1f);\n      }\n      sVar7 = (short)uVar6 * 10 + 0x28;\n    }\n    else {\n      if (7 < uVar4) {\n        iVar2 = LZCOUNT(uVar4) + 0x20;\n        goto LAB_00049718;\n      }\n      sVar7 = 0x1e;\n      if (uVar4 < 2) {\n        sVar7 = -0x10e;\n        goto LAB_0004966c;\n      }\n      while( true ) {\n        uVar5 = uVar4 << 1;\n        if (((int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0) || (7 < uVar5)) break;\n        uVar3 = 0;\n        uVar4 = uVar5;\n        sVar7 = sVar7 + -10;\n      }\n    }\n    sVar7 = sVar7 + -0x118 + *(short *)(PTR_s_LE_FTS4_0015c5f4 + (uVar5 & 7) * 2 + 0x3550);\n  }\nLAB_0004966c:\n  *(short *)(piVar8 + 2) = sVar7;\n  uVar3 = *(uint *)(param_2 + 4);\n  while ((uVar3 & 0x1000) != 0) {\n    if ((uVar3 & 0x40000) == 0) {\n      param_2 = *(int *)(param_2 + 0xc);\n    }\n    else {\n      param_2 = *(int *)(*(int *)(param_2 + 0x14) + 4);\n    }\n    if (param_2 == 0) {\n      param_2 = 0;\n      break;\n    }\n    uVar3 = *(uint *)(param_2 + 4);\n  }\nLAB_000496c8:\n  puVar1 = PTR_memset_0015c9b8;\n  *piVar8 = param_2;\n  *(ushort *)((int)piVar8 + 10) = param_3;\n  piVar8[1] = (int)param_1;\n  (*(code *)puVar1)(piVar8 + 3,0,0x24);\n  return iVar9;\n}" primitive_type (function_declarator "FUN_0004953c(undefined4 *param_1,int param_2,ushort param_3)" identifier (parameter_list "(undefined4 *param_1,int param_2,ushort param_3)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "ushort param_3" type_identifier identifier) ))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  short sVar7;\n  int *piVar8;\n  int iVar9;\n  undefined4 *puVar10;\n  \n  iVar9 = param_1[3];\n  puVar10 = (undefined4 *)param_1[5];\n  if ((int)param_1[4] <= iVar9) {\n    iVar9 = **(int **)*param_1;\n    if (*(char *)(iVar9 + 0x51) != '\0') {\n      param_1[5] = 0;\nLAB_00049780:\n      if (((param_3 & 1) != 0) && (param_2 != 0)) {\n        FUN_000484f4(iVar9,param_2);\n      }\n      param_1[5] = puVar10;\n      return 0;\n    }\n    iVar2 = FUN_0002de20(iVar9,param_2,0,param_1[4] * 0x60);\n    param_1[5] = iVar2;\n    if (iVar2 == 0) goto LAB_00049780;\n    (*(code *)PTR_memcpy_0015ca34)(iVar2,puVar10,param_1[3] * 0x30);\n    if (puVar10 != param_1 + 6) {\n      FUN_0002b254(iVar9,puVar10);\n    }\n    uVar3 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(param_1[5]);\n    puVar10 = (undefined4 *)param_1[5];\n    iVar9 = param_1[3];\n    param_1[4] = uVar3 / 0x30;\n  }\n  param_1[3] = iVar9 + 1;\n  piVar8 = puVar10 + iVar9 * 0xc;\n  if (param_2 == 0) {\n    param_2 = 0;\n    *(undefined2 *)(piVar8 + 2) = 1;\n    goto LAB_000496c8;\n  }\n  sVar7 = 1;\n  if (*(int *)(param_2 + 4) << 0xd < 0) {\n    uVar4 = *(uint *)(param_2 + 0x1c);\n    uVar3 = (int)uVar4 >> 0x1f;\n    iVar2 = LZCOUNT(uVar3);\n    if ((int)uVar4 < 0) {\nLAB_00049718:\n      uVar6 = 0x3c - iVar2;\n      uVar5 = (uVar3 << 1) << (~uVar6 & 0x1f) | uVar4 >> (uVar6 & 0x1f);\n      if ((uVar6 & 0x20) != 0) {\n        uVar5 = uVar3 >> (uVar6 & 0x1f);\n      }\n      sVar7 = (short)uVar6 * 10 + 0x28;\n    }\n    else {\n      if (7 < uVar4) {\n        iVar2 = LZCOUNT(uVar4) + 0x20;\n        goto LAB_00049718;\n      }\n      sVar7 = 0x1e;\n      if (uVar4 < 2) {\n        sVar7 = -0x10e;\n        goto LAB_0004966c;\n      }\n      while( true ) {\n        uVar5 = uVar4 << 1;\n        if (((int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0) || (7 < uVar5)) break;\n        uVar3 = 0;\n        uVar4 = uVar5;\n        sVar7 = sVar7 + -10;\n      }\n    }\n    sVar7 = sVar7 + -0x118 + *(short *)(PTR_s_LE_FTS4_0015c5f4 + (uVar5 & 7) * 2 + 0x3550);\n  }\nLAB_0004966c:\n  *(short *)(piVar8 + 2) = sVar7;\n  uVar3 = *(uint *)(param_2 + 4);\n  while ((uVar3 & 0x1000) != 0) {\n    if ((uVar3 & 0x40000) == 0) {\n      param_2 = *(int *)(param_2 + 0xc);\n    }\n    else {\n      param_2 = *(int *)(*(int *)(param_2 + 0x14) + 4);\n    }\n    if (param_2 == 0) {\n      param_2 = 0;\n      break;\n    }\n    uVar3 = *(uint *)(param_2 + 4);\n  }\nLAB_000496c8:\n  puVar1 = PTR_memset_0015c9b8;\n  *piVar8 = param_2;\n  *(ushort *)((int)piVar8 + 10) = param_3;\n  piVar8[1] = (int)param_1;\n  (*(code *)puVar1)(piVar8 + 3,0,0x24);\n  return iVar9;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "uint uVar5;" type_identifier identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "short sVar7;" (sized_type_specifier "short" short) identifier ;) (declaration "int *piVar8;" primitive_type (pointer_declarator "*piVar8" * identifier) ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "undefined4 *puVar10;" type_identifier (pointer_declarator "*puVar10" * identifier) ;) (expression_statement "iVar9 = param_1[3];" (assignment_expression "iVar9 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "puVar10 = (undefined4 *)param_1[5];" (assignment_expression "puVar10 = (undefined4 *)param_1[5]" identifier = (cast_expression "(undefined4 *)param_1[5]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[5]" identifier [ number_literal ]))) ;) (if_statement "if ((int)param_1[4] <= iVar9) {\n    iVar9 = **(int **)*param_1;\n    if (*(char *)(iVar9 + 0x51) != '\0') {\n      param_1[5] = 0;\nLAB_00049780:\n      if (((param_3 & 1) != 0) && (param_2 != 0)) {\n        FUN_000484f4(iVar9,param_2);\n      }\n      param_1[5] = puVar10;\n      return 0;\n    }\n    iVar2 = FUN_0002de20(iVar9,param_2,0,param_1[4] * 0x60);\n    param_1[5] = iVar2;\n    if (iVar2 == 0) goto LAB_00049780;\n    (*(code *)PTR_memcpy_0015ca34)(iVar2,puVar10,param_1[3] * 0x30);\n    if (puVar10 != param_1 + 6) {\n      FUN_0002b254(iVar9,puVar10);\n    }\n    uVar3 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(param_1[5]);\n    puVar10 = (undefined4 *)param_1[5];\n    iVar9 = param_1[3];\n    param_1[4] = uVar3 / 0x30;\n  }" if (parenthesized_expression "((int)param_1[4] <= iVar9)" ( (binary_expression "(int)param_1[4] <= iVar9" (cast_expression "(int)param_1[4]" ( (type_descriptor "int" primitive_type) ) (subscript_expression "param_1[4]" identifier [ number_literal ])) <= identifier) )) (compound_statement "{\n    iVar9 = **(int **)*param_1;\n    if (*(char *)(iVar9 + 0x51) != '\0') {\n      param_1[5] = 0;\nLAB_00049780:\n      if (((param_3 & 1) != 0) && (param_2 != 0)) {\n        FUN_000484f4(iVar9,param_2);\n      }\n      param_1[5] = puVar10;\n      return 0;\n    }\n    iVar2 = FUN_0002de20(iVar9,param_2,0,param_1[4] * 0x60);\n    param_1[5] = iVar2;\n    if (iVar2 == 0) goto LAB_00049780;\n    (*(code *)PTR_memcpy_0015ca34)(iVar2,puVar10,param_1[3] * 0x30);\n    if (puVar10 != param_1 + 6) {\n      FUN_0002b254(iVar9,puVar10);\n    }\n    uVar3 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(param_1[5]);\n    puVar10 = (undefined4 *)param_1[5];\n    iVar9 = param_1[3];\n    param_1[4] = uVar3 / 0x30;\n  }" { (expression_statement "iVar9 = **(int **)*param_1;" (assignment_expression "iVar9 = **(int **)*param_1" identifier = (pointer_expression "**(int **)*param_1" * (pointer_expression "*(int **)*param_1" * (cast_expression "(int **)*param_1" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (pointer_expression "*param_1" * identifier))))) ;) (if_statement "if (*(char *)(iVar9 + 0x51) != '\0') {\n      param_1[5] = 0;\nLAB_00049780:\n      if (((param_3 & 1) != 0) && (param_2 != 0)) {\n        FUN_000484f4(iVar9,param_2);\n      }\n      param_1[5] = puVar10;\n      return 0;\n    }" if (parenthesized_expression "(*(char *)(iVar9 + 0x51) != '\0')" ( (binary_expression "*(char *)(iVar9 + 0x51) != '\0'" (pointer_expression "*(char *)(iVar9 + 0x51)" * (cast_expression "(char *)(iVar9 + 0x51)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar9 + 0x51)" ( (binary_expression "iVar9 + 0x51" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      param_1[5] = 0;\nLAB_00049780:\n      if (((param_3 & 1) != 0) && (param_2 != 0)) {\n        FUN_000484f4(iVar9,param_2);\n      }\n      param_1[5] = puVar10;\n      return 0;\n    }" { (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" identifier [ number_literal ]) = number_literal) ;) (labeled_statement "LAB_00049780:\n      if (((param_3 & 1) != 0) && (param_2 != 0)) {\n        FUN_000484f4(iVar9,param_2);\n      }" statement_identifier : (if_statement "if (((param_3 & 1) != 0) && (param_2 != 0)) {\n        FUN_000484f4(iVar9,param_2);\n      }" if (parenthesized_expression "(((param_3 & 1) != 0) && (param_2 != 0))" ( (binary_expression "((param_3 & 1) != 0) && (param_2 != 0)" (parenthesized_expression "((param_3 & 1) != 0)" ( (binary_expression "(param_3 & 1) != 0" (parenthesized_expression "(param_3 & 1)" ( (binary_expression "param_3 & 1" identifier & number_literal) )) != number_literal) )) && (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) ))) )) (compound_statement "{\n        FUN_000484f4(iVar9,param_2);\n      }" { (expression_statement "FUN_000484f4(iVar9,param_2);" (call_expression "FUN_000484f4(iVar9,param_2)" identifier (argument_list "(iVar9,param_2)" ( identifier , identifier ))) ;) }))) (expression_statement "param_1[5] = puVar10;" (assignment_expression "param_1[5] = puVar10" (subscript_expression "param_1[5]" identifier [ number_literal ]) = identifier) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "iVar2 = FUN_0002de20(iVar9,param_2,0,param_1[4] * 0x60);" (assignment_expression "iVar2 = FUN_0002de20(iVar9,param_2,0,param_1[4] * 0x60)" identifier = (call_expression "FUN_0002de20(iVar9,param_2,0,param_1[4] * 0x60)" identifier (argument_list "(iVar9,param_2,0,param_1[4] * 0x60)" ( identifier , identifier , number_literal , (binary_expression "param_1[4] * 0x60" (subscript_expression "param_1[4]" identifier [ number_literal ]) * number_literal) )))) ;) (expression_statement "param_1[5] = iVar2;" (assignment_expression "param_1[5] = iVar2" (subscript_expression "param_1[5]" identifier [ number_literal ]) = identifier) ;) (if_statement "if (iVar2 == 0) goto LAB_00049780;" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00049780;" goto statement_identifier ;)) (expression_statement "(*(code *)PTR_memcpy_0015ca34)(iVar2,puVar10,param_1[3] * 0x30);" (call_expression "(*(code *)PTR_memcpy_0015ca34)(iVar2,puVar10,param_1[3] * 0x30)" (parenthesized_expression "(*(code *)PTR_memcpy_0015ca34)" ( (pointer_expression "*(code *)PTR_memcpy_0015ca34" * (cast_expression "(code *)PTR_memcpy_0015ca34" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar2,puVar10,param_1[3] * 0x30)" ( identifier , identifier , (binary_expression "param_1[3] * 0x30" (subscript_expression "param_1[3]" identifier [ number_literal ]) * number_literal) ))) ;) (if_statement "if (puVar10 != param_1 + 6) {\n      FUN_0002b254(iVar9,puVar10);\n    }" if (parenthesized_expression "(puVar10 != param_1 + 6)" ( (binary_expression "puVar10 != param_1 + 6" identifier != (binary_expression "param_1 + 6" identifier + number_literal)) )) (compound_statement "{\n      FUN_0002b254(iVar9,puVar10);\n    }" { (expression_statement "FUN_0002b254(iVar9,puVar10);" (call_expression "FUN_0002b254(iVar9,puVar10)" identifier (argument_list "(iVar9,puVar10)" ( identifier , identifier ))) ;) })) (expression_statement "uVar3 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(param_1[5]);" (assignment_expression "uVar3 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(param_1[5])" identifier = (call_expression "(**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(param_1[5])" (parenthesized_expression "(**(code **)(PTR_DAT_0015c5d8 + -0x4da0))" ( (pointer_expression "**(code **)(PTR_DAT_0015c5d8 + -0x4da0)" * (pointer_expression "*(code **)(PTR_DAT_0015c5d8 + -0x4da0)" * (cast_expression "(code **)(PTR_DAT_0015c5d8 + -0x4da0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(PTR_DAT_0015c5d8 + -0x4da0)" ( (binary_expression "PTR_DAT_0015c5d8 + -0x4da0" identifier + number_literal) ))))) )) (argument_list "(param_1[5])" ( (subscript_expression "param_1[5]" identifier [ number_literal ]) )))) ;) (expression_statement "puVar10 = (undefined4 *)param_1[5];" (assignment_expression "puVar10 = (undefined4 *)param_1[5]" identifier = (cast_expression "(undefined4 *)param_1[5]" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "param_1[5]" identifier [ number_literal ]))) ;) (expression_statement "iVar9 = param_1[3];" (assignment_expression "iVar9 = param_1[3]" identifier = (subscript_expression "param_1[3]" identifier [ number_literal ])) ;) (expression_statement "param_1[4] = uVar3 / 0x30;" (assignment_expression "param_1[4] = uVar3 / 0x30" (subscript_expression "param_1[4]" identifier [ number_literal ]) = (binary_expression "uVar3 / 0x30" identifier / number_literal)) ;) })) (expression_statement "param_1[3] = iVar9 + 1;" (assignment_expression "param_1[3] = iVar9 + 1" (subscript_expression "param_1[3]" identifier [ number_literal ]) = (binary_expression "iVar9 + 1" identifier + number_literal)) ;) (expression_statement "piVar8 = puVar10 + iVar9 * 0xc;" (assignment_expression "piVar8 = puVar10 + iVar9 * 0xc" identifier = (binary_expression "puVar10 + iVar9 * 0xc" identifier + (binary_expression "iVar9 * 0xc" identifier * number_literal))) ;) (if_statement "if (param_2 == 0) {\n    param_2 = 0;\n    *(undefined2 *)(piVar8 + 2) = 1;\n    goto LAB_000496c8;\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    param_2 = 0;\n    *(undefined2 *)(piVar8 + 2) = 1;\n    goto LAB_000496c8;\n  }" { (expression_statement "param_2 = 0;" (assignment_expression "param_2 = 0" identifier = number_literal) ;) (expression_statement "*(undefined2 *)(piVar8 + 2) = 1;" (assignment_expression "*(undefined2 *)(piVar8 + 2) = 1" (pointer_expression "*(undefined2 *)(piVar8 + 2)" * (cast_expression "(undefined2 *)(piVar8 + 2)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar8 + 2)" ( (binary_expression "piVar8 + 2" identifier + number_literal) )))) = number_literal) ;) (goto_statement "goto LAB_000496c8;" goto statement_identifier ;) })) (expression_statement "sVar7 = 1;" (assignment_expression "sVar7 = 1" identifier = number_literal) ;) (if_statement "if (*(int *)(param_2 + 4) << 0xd < 0) {\n    uVar4 = *(uint *)(param_2 + 0x1c);\n    uVar3 = (int)uVar4 >> 0x1f;\n    iVar2 = LZCOUNT(uVar3);\n    if ((int)uVar4 < 0) {\nLAB_00049718:\n      uVar6 = 0x3c - iVar2;\n      uVar5 = (uVar3 << 1) << (~uVar6 & 0x1f) | uVar4 >> (uVar6 & 0x1f);\n      if ((uVar6 & 0x20) != 0) {\n        uVar5 = uVar3 >> (uVar6 & 0x1f);\n      }\n      sVar7 = (short)uVar6 * 10 + 0x28;\n    }\n    else {\n      if (7 < uVar4) {\n        iVar2 = LZCOUNT(uVar4) + 0x20;\n        goto LAB_00049718;\n      }\n      sVar7 = 0x1e;\n      if (uVar4 < 2) {\n        sVar7 = -0x10e;\n        goto LAB_0004966c;\n      }\n      while( true ) {\n        uVar5 = uVar4 << 1;\n        if (((int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0) || (7 < uVar5)) break;\n        uVar3 = 0;\n        uVar4 = uVar5;\n        sVar7 = sVar7 + -10;\n      }\n    }\n    sVar7 = sVar7 + -0x118 + *(short *)(PTR_s_LE_FTS4_0015c5f4 + (uVar5 & 7) * 2 + 0x3550);\n  }" if (parenthesized_expression "(*(int *)(param_2 + 4) << 0xd < 0)" ( (binary_expression "*(int *)(param_2 + 4) << 0xd < 0" (binary_expression "*(int *)(param_2 + 4) << 0xd" (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) < number_literal) )) (compound_statement "{\n    uVar4 = *(uint *)(param_2 + 0x1c);\n    uVar3 = (int)uVar4 >> 0x1f;\n    iVar2 = LZCOUNT(uVar3);\n    if ((int)uVar4 < 0) {\nLAB_00049718:\n      uVar6 = 0x3c - iVar2;\n      uVar5 = (uVar3 << 1) << (~uVar6 & 0x1f) | uVar4 >> (uVar6 & 0x1f);\n      if ((uVar6 & 0x20) != 0) {\n        uVar5 = uVar3 >> (uVar6 & 0x1f);\n      }\n      sVar7 = (short)uVar6 * 10 + 0x28;\n    }\n    else {\n      if (7 < uVar4) {\n        iVar2 = LZCOUNT(uVar4) + 0x20;\n        goto LAB_00049718;\n      }\n      sVar7 = 0x1e;\n      if (uVar4 < 2) {\n        sVar7 = -0x10e;\n        goto LAB_0004966c;\n      }\n      while( true ) {\n        uVar5 = uVar4 << 1;\n        if (((int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0) || (7 < uVar5)) break;\n        uVar3 = 0;\n        uVar4 = uVar5;\n        sVar7 = sVar7 + -10;\n      }\n    }\n    sVar7 = sVar7 + -0x118 + *(short *)(PTR_s_LE_FTS4_0015c5f4 + (uVar5 & 7) * 2 + 0x3550);\n  }" { (expression_statement "uVar4 = *(uint *)(param_2 + 0x1c);" (assignment_expression "uVar4 = *(uint *)(param_2 + 0x1c)" identifier = (pointer_expression "*(uint *)(param_2 + 0x1c)" * (cast_expression "(uint *)(param_2 + 0x1c)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x1c)" ( (binary_expression "param_2 + 0x1c" identifier + number_literal) ))))) ;) (expression_statement "uVar3 = (int)uVar4 >> 0x1f;" (assignment_expression "uVar3 = (int)uVar4 >> 0x1f" identifier = (binary_expression "(int)uVar4 >> 0x1f" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier) >> number_literal)) ;) (expression_statement "iVar2 = LZCOUNT(uVar3);" (assignment_expression "iVar2 = LZCOUNT(uVar3)" identifier = (call_expression "LZCOUNT(uVar3)" identifier (argument_list "(uVar3)" ( identifier )))) ;) (if_statement "if ((int)uVar4 < 0) {\nLAB_00049718:\n      uVar6 = 0x3c - iVar2;\n      uVar5 = (uVar3 << 1) << (~uVar6 & 0x1f) | uVar4 >> (uVar6 & 0x1f);\n      if ((uVar6 & 0x20) != 0) {\n        uVar5 = uVar3 >> (uVar6 & 0x1f);\n      }\n      sVar7 = (short)uVar6 * 10 + 0x28;\n    }\n    else {\n      if (7 < uVar4) {\n        iVar2 = LZCOUNT(uVar4) + 0x20;\n        goto LAB_00049718;\n      }\n      sVar7 = 0x1e;\n      if (uVar4 < 2) {\n        sVar7 = -0x10e;\n        goto LAB_0004966c;\n      }\n      while( true ) {\n        uVar5 = uVar4 << 1;\n        if (((int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0) || (7 < uVar5)) break;\n        uVar3 = 0;\n        uVar4 = uVar5;\n        sVar7 = sVar7 + -10;\n      }\n    }" if (parenthesized_expression "((int)uVar4 < 0)" ( (binary_expression "(int)uVar4 < 0" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\nLAB_00049718:\n      uVar6 = 0x3c - iVar2;\n      uVar5 = (uVar3 << 1) << (~uVar6 & 0x1f) | uVar4 >> (uVar6 & 0x1f);\n      if ((uVar6 & 0x20) != 0) {\n        uVar5 = uVar3 >> (uVar6 & 0x1f);\n      }\n      sVar7 = (short)uVar6 * 10 + 0x28;\n    }" { (labeled_statement "LAB_00049718:\n      uVar6 = 0x3c - iVar2;" statement_identifier : (expression_statement "uVar6 = 0x3c - iVar2;" (assignment_expression "uVar6 = 0x3c - iVar2" identifier = (binary_expression "0x3c - iVar2" number_literal - identifier)) ;)) (expression_statement "uVar5 = (uVar3 << 1) << (~uVar6 & 0x1f) | uVar4 >> (uVar6 & 0x1f);" (assignment_expression "uVar5 = (uVar3 << 1) << (~uVar6 & 0x1f) | uVar4 >> (uVar6 & 0x1f)" identifier = (binary_expression "(uVar3 << 1) << (~uVar6 & 0x1f) | uVar4 >> (uVar6 & 0x1f)" (binary_expression "(uVar3 << 1) << (~uVar6 & 0x1f)" (parenthesized_expression "(uVar3 << 1)" ( (binary_expression "uVar3 << 1" identifier << number_literal) )) << (parenthesized_expression "(~uVar6 & 0x1f)" ( (binary_expression "~uVar6 & 0x1f" (unary_expression "~uVar6" ~ identifier) & number_literal) ))) | (binary_expression "uVar4 >> (uVar6 & 0x1f)" identifier >> (parenthesized_expression "(uVar6 & 0x1f)" ( (binary_expression "uVar6 & 0x1f" identifier & number_literal) ))))) ;) (if_statement "if ((uVar6 & 0x20) != 0) {\n        uVar5 = uVar3 >> (uVar6 & 0x1f);\n      }" if (parenthesized_expression "((uVar6 & 0x20) != 0)" ( (binary_expression "(uVar6 & 0x20) != 0" (parenthesized_expression "(uVar6 & 0x20)" ( (binary_expression "uVar6 & 0x20" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n        uVar5 = uVar3 >> (uVar6 & 0x1f);\n      }" { (expression_statement "uVar5 = uVar3 >> (uVar6 & 0x1f);" (assignment_expression "uVar5 = uVar3 >> (uVar6 & 0x1f)" identifier = (binary_expression "uVar3 >> (uVar6 & 0x1f)" identifier >> (parenthesized_expression "(uVar6 & 0x1f)" ( (binary_expression "uVar6 & 0x1f" identifier & number_literal) )))) ;) })) (expression_statement "sVar7 = (short)uVar6 * 10 + 0x28;" (assignment_expression "sVar7 = (short)uVar6 * 10 + 0x28" identifier = (binary_expression "(short)uVar6 * 10 + 0x28" (binary_expression "(short)uVar6 * 10" (cast_expression "(short)uVar6" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier) * number_literal) + number_literal)) ;) }) (else_clause "else {\n      if (7 < uVar4) {\n        iVar2 = LZCOUNT(uVar4) + 0x20;\n        goto LAB_00049718;\n      }\n      sVar7 = 0x1e;\n      if (uVar4 < 2) {\n        sVar7 = -0x10e;\n        goto LAB_0004966c;\n      }\n      while( true ) {\n        uVar5 = uVar4 << 1;\n        if (((int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0) || (7 < uVar5)) break;\n        uVar3 = 0;\n        uVar4 = uVar5;\n        sVar7 = sVar7 + -10;\n      }\n    }" else (compound_statement "{\n      if (7 < uVar4) {\n        iVar2 = LZCOUNT(uVar4) + 0x20;\n        goto LAB_00049718;\n      }\n      sVar7 = 0x1e;\n      if (uVar4 < 2) {\n        sVar7 = -0x10e;\n        goto LAB_0004966c;\n      }\n      while( true ) {\n        uVar5 = uVar4 << 1;\n        if (((int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0) || (7 < uVar5)) break;\n        uVar3 = 0;\n        uVar4 = uVar5;\n        sVar7 = sVar7 + -10;\n      }\n    }" { (if_statement "if (7 < uVar4) {\n        iVar2 = LZCOUNT(uVar4) + 0x20;\n        goto LAB_00049718;\n      }" if (parenthesized_expression "(7 < uVar4)" ( (binary_expression "7 < uVar4" number_literal < identifier) )) (compound_statement "{\n        iVar2 = LZCOUNT(uVar4) + 0x20;\n        goto LAB_00049718;\n      }" { (expression_statement "iVar2 = LZCOUNT(uVar4) + 0x20;" (assignment_expression "iVar2 = LZCOUNT(uVar4) + 0x20" identifier = (binary_expression "LZCOUNT(uVar4) + 0x20" (call_expression "LZCOUNT(uVar4)" identifier (argument_list "(uVar4)" ( identifier ))) + number_literal)) ;) (goto_statement "goto LAB_00049718;" goto statement_identifier ;) })) (expression_statement "sVar7 = 0x1e;" (assignment_expression "sVar7 = 0x1e" identifier = number_literal) ;) (if_statement "if (uVar4 < 2) {\n        sVar7 = -0x10e;\n        goto LAB_0004966c;\n      }" if (parenthesized_expression "(uVar4 < 2)" ( (binary_expression "uVar4 < 2" identifier < number_literal) )) (compound_statement "{\n        sVar7 = -0x10e;\n        goto LAB_0004966c;\n      }" { (expression_statement "sVar7 = -0x10e;" (assignment_expression "sVar7 = -0x10e" identifier = number_literal) ;) (goto_statement "goto LAB_0004966c;" goto statement_identifier ;) })) (while_statement "while( true ) {\n        uVar5 = uVar4 << 1;\n        if (((int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0) || (7 < uVar5)) break;\n        uVar3 = 0;\n        uVar4 = uVar5;\n        sVar7 = sVar7 + -10;\n      }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n        uVar5 = uVar4 << 1;\n        if (((int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0) || (7 < uVar5)) break;\n        uVar3 = 0;\n        uVar4 = uVar5;\n        sVar7 = sVar7 + -10;\n      }" { (expression_statement "uVar5 = uVar4 << 1;" (assignment_expression "uVar5 = uVar4 << 1" identifier = (binary_expression "uVar4 << 1" identifier << number_literal)) ;) (if_statement "if (((int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0) || (7 < uVar5)) break;" if (parenthesized_expression "(((int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0) || (7 < uVar5))" ( (binary_expression "((int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0) || (7 < uVar5)" (parenthesized_expression "((int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0)" ( (binary_expression "(int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0" (binary_expression "(int)uVar4 < 0" (cast_expression "(int)uVar4" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) || (binary_expression "(uVar3 & 0x7fffffff) != 0" (parenthesized_expression "(uVar3 & 0x7fffffff)" ( (binary_expression "uVar3 & 0x7fffffff" identifier & number_literal) )) != number_literal)) )) || (parenthesized_expression "(7 < uVar5)" ( (binary_expression "7 < uVar5" number_literal < identifier) ))) )) (break_statement "break;" break ;)) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) (expression_statement "uVar4 = uVar5;" (assignment_expression "uVar4 = uVar5" identifier = identifier) ;) (expression_statement "sVar7 = sVar7 + -10;" (assignment_expression "sVar7 = sVar7 + -10" identifier = (binary_expression "sVar7 + -10" identifier + number_literal)) ;) })) }))) (expression_statement "sVar7 = sVar7 + -0x118 + *(short *)(PTR_s_LE_FTS4_0015c5f4 + (uVar5 & 7) * 2 + 0x3550);" (assignment_expression "sVar7 = sVar7 + -0x118 + *(short *)(PTR_s_LE_FTS4_0015c5f4 + (uVar5 & 7) * 2 + 0x3550)" identifier = (binary_expression "sVar7 + -0x118 + *(short *)(PTR_s_LE_FTS4_0015c5f4 + (uVar5 & 7) * 2 + 0x3550)" (binary_expression "sVar7 + -0x118" identifier + number_literal) + (pointer_expression "*(short *)(PTR_s_LE_FTS4_0015c5f4 + (uVar5 & 7) * 2 + 0x3550)" * (cast_expression "(short *)(PTR_s_LE_FTS4_0015c5f4 + (uVar5 & 7) * 2 + 0x3550)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_s_LE_FTS4_0015c5f4 + (uVar5 & 7) * 2 + 0x3550)" ( (binary_expression "PTR_s_LE_FTS4_0015c5f4 + (uVar5 & 7) * 2 + 0x3550" (binary_expression "PTR_s_LE_FTS4_0015c5f4 + (uVar5 & 7) * 2" identifier + (binary_expression "(uVar5 & 7) * 2" (parenthesized_expression "(uVar5 & 7)" ( (binary_expression "uVar5 & 7" identifier & number_literal) )) * number_literal)) + number_literal) )))))) ;) })) (labeled_statement "LAB_0004966c:\n  *(short *)(piVar8 + 2) = sVar7;" statement_identifier : (expression_statement "*(short *)(piVar8 + 2) = sVar7;" (assignment_expression "*(short *)(piVar8 + 2) = sVar7" (pointer_expression "*(short *)(piVar8 + 2)" * (cast_expression "(short *)(piVar8 + 2)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar8 + 2)" ( (binary_expression "piVar8 + 2" identifier + number_literal) )))) = identifier) ;)) (expression_statement "uVar3 = *(uint *)(param_2 + 4);" (assignment_expression "uVar3 = *(uint *)(param_2 + 4)" identifier = (pointer_expression "*(uint *)(param_2 + 4)" * (cast_expression "(uint *)(param_2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (while_statement "while ((uVar3 & 0x1000) != 0) {\n    if ((uVar3 & 0x40000) == 0) {\n      param_2 = *(int *)(param_2 + 0xc);\n    }\n    else {\n      param_2 = *(int *)(*(int *)(param_2 + 0x14) + 4);\n    }\n    if (param_2 == 0) {\n      param_2 = 0;\n      break;\n    }\n    uVar3 = *(uint *)(param_2 + 4);\n  }" while (parenthesized_expression "((uVar3 & 0x1000) != 0)" ( (binary_expression "(uVar3 & 0x1000) != 0" (parenthesized_expression "(uVar3 & 0x1000)" ( (binary_expression "uVar3 & 0x1000" identifier & number_literal) )) != number_literal) )) (compound_statement "{\n    if ((uVar3 & 0x40000) == 0) {\n      param_2 = *(int *)(param_2 + 0xc);\n    }\n    else {\n      param_2 = *(int *)(*(int *)(param_2 + 0x14) + 4);\n    }\n    if (param_2 == 0) {\n      param_2 = 0;\n      break;\n    }\n    uVar3 = *(uint *)(param_2 + 4);\n  }" { (if_statement "if ((uVar3 & 0x40000) == 0) {\n      param_2 = *(int *)(param_2 + 0xc);\n    }\n    else {\n      param_2 = *(int *)(*(int *)(param_2 + 0x14) + 4);\n    }" if (parenthesized_expression "((uVar3 & 0x40000) == 0)" ( (binary_expression "(uVar3 & 0x40000) == 0" (parenthesized_expression "(uVar3 & 0x40000)" ( (binary_expression "uVar3 & 0x40000" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n      param_2 = *(int *)(param_2 + 0xc);\n    }" { (expression_statement "param_2 = *(int *)(param_2 + 0xc);" (assignment_expression "param_2 = *(int *)(param_2 + 0xc)" identifier = (pointer_expression "*(int *)(param_2 + 0xc)" * (cast_expression "(int *)(param_2 + 0xc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0xc)" ( (binary_expression "param_2 + 0xc" identifier + number_literal) ))))) ;) }) (else_clause "else {\n      param_2 = *(int *)(*(int *)(param_2 + 0x14) + 4);\n    }" else (compound_statement "{\n      param_2 = *(int *)(*(int *)(param_2 + 0x14) + 4);\n    }" { (expression_statement "param_2 = *(int *)(*(int *)(param_2 + 0x14) + 4);" (assignment_expression "param_2 = *(int *)(*(int *)(param_2 + 0x14) + 4)" identifier = (pointer_expression "*(int *)(*(int *)(param_2 + 0x14) + 4)" * (cast_expression "(int *)(*(int *)(param_2 + 0x14) + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(param_2 + 0x14) + 4)" ( (binary_expression "*(int *)(param_2 + 0x14) + 4" (pointer_expression "*(int *)(param_2 + 0x14)" * (cast_expression "(int *)(param_2 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x14)" ( (binary_expression "param_2 + 0x14" identifier + number_literal) )))) + number_literal) ))))) ;) }))) (if_statement "if (param_2 == 0) {\n      param_2 = 0;\n      break;\n    }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n      param_2 = 0;\n      break;\n    }" { (expression_statement "param_2 = 0;" (assignment_expression "param_2 = 0" identifier = number_literal) ;) (break_statement "break;" break ;) })) (expression_statement "uVar3 = *(uint *)(param_2 + 4);" (assignment_expression "uVar3 = *(uint *)(param_2 + 4)" identifier = (pointer_expression "*(uint *)(param_2 + 4)" * (cast_expression "(uint *)(param_2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) })) (labeled_statement "LAB_000496c8:\n  puVar1 = PTR_memset_0015c9b8;" statement_identifier : (expression_statement "puVar1 = PTR_memset_0015c9b8;" (assignment_expression "puVar1 = PTR_memset_0015c9b8" identifier = identifier) ;)) (expression_statement "*piVar8 = param_2;" (assignment_expression "*piVar8 = param_2" (pointer_expression "*piVar8" * identifier) = identifier) ;) (expression_statement "*(ushort *)((int)piVar8 + 10) = param_3;" (assignment_expression "*(ushort *)((int)piVar8 + 10) = param_3" (pointer_expression "*(ushort *)((int)piVar8 + 10)" * (cast_expression "(ushort *)((int)piVar8 + 10)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar8 + 10)" ( (binary_expression "(int)piVar8 + 10" (cast_expression "(int)piVar8" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "piVar8[1] = (int)param_1;" (assignment_expression "piVar8[1] = (int)param_1" (subscript_expression "piVar8[1]" identifier [ number_literal ]) = (cast_expression "(int)param_1" ( (type_descriptor "int" primitive_type) ) identifier)) ;) (expression_statement "(*(code *)puVar1)(piVar8 + 3,0,0x24);" (call_expression "(*(code *)puVar1)(piVar8 + 3,0,0x24)" (parenthesized_expression "(*(code *)puVar1)" ( (pointer_expression "*(code *)puVar1" * (cast_expression "(code *)puVar1" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(piVar8 + 3,0,0x24)" ( (binary_expression "piVar8 + 3" identifier + number_literal) , number_literal , number_literal ))) ;) (return_statement "return iVar9;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier short) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ LIT ])) <= IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (pointer_expression * 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 { (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) }))) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT , LIT , (binary_expression (subscript_expression IDENT [ LIT ]) * LIT) )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT , IDENT , (binary_expression (subscript_expression IDENT [ LIT ]) * LIT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (binary_expression IDENT + LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (subscript_expression IDENT [ LIT ]) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (subscript_expression IDENT [ LIT ]))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT / LIT)) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + (binary_expression IDENT * LIT))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) << LIT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) >> LIT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression LIT - IDENT)) ;)) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (parenthesized_expression ( (binary_expression IDENT << LIT) )) << (parenthesized_expression ( (binary_expression (unary_expression ~ IDENT) & LIT) ))) | (binary_expression IDENT >> (parenthesized_expression ( (binary_expression IDENT & LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT >> (parenthesized_expression ( (binary_expression IDENT & LIT) )))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier short)) ) IDENT) * LIT) + LIT)) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < IDENT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (call_expression IDENT (argument_list ( IDENT ))) + LIT)) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (goto_statement goto statement_identifier ;) })) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression IDENT << LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) || (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT)) )) || (parenthesized_expression ( (binary_expression LIT < IDENT) ))) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) })) }))) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + LIT) + (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) * LIT)) + LIT) )))))) ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (while_statement while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) != LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (break_statement break ;) })) (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 = IDENT) ;)) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression IDENT + LIT) , LIT , LIT ))) ;) (return_statement return IDENT ;) })))
(function_definition "int FUN_0004953c(undefined4 *param_1,int param_2,ushort param_3)\n\n{\n  undefined *puVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  short sVar7;\n  int *piVar8;\n  int iVar9;\n  undefined4 *puVar10;\n  \n  iVar9 = param_1[3];\n  puVar10 = (undefined4 *)param_1[5];\n  if ((int)param_1[4] <= iVar9) {\n    iVar9 = **(int **)*param_1;\n    if (*(char *)(iVar9 + 0x51) != '\0') {\n      param_1[5] = 0;\nLAB_00049780:\n      if (((param_3 & 1) != 0) && (param_2 != 0)) {\n        FUN_000484f4(iVar9,param_2);\n      }\n      param_1[5] = puVar10;\n      return 0;\n    }\n    iVar2 = FUN_0002de20(iVar9,param_2,0,param_1[4] * 0x60);\n    param_1[5] = iVar2;\n    if (iVar2 == 0) goto LAB_00049780;\n    (*(code *)PTR_memcpy_0015ca34)(iVar2,puVar10,param_1[3] * 0x30);\n    if (puVar10 != param_1 + 6) {\n      FUN_0002b254(iVar9,puVar10);\n    }\n    uVar3 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(param_1[5]);\n    puVar10 = (undefined4 *)param_1[5];\n    iVar9 = param_1[3];\n    param_1[4] = uVar3 / 0x30;\n  }\n  param_1[3] = iVar9 + 1;\n  piVar8 = puVar10 + iVar9 * 0xc;\n  if (param_2 == 0) {\n    param_2 = 0;\n    *(undefined2 *)(piVar8 + 2) = 1;\n    goto LAB_000496c8;\n  }\n  sVar7 = 1;\n  if (*(int *)(param_2 + 4) << 0xd < 0) {\n    uVar4 = *(uint *)(param_2 + 0x1c);\n    uVar3 = (int)uVar4 >> 0x1f;\n    iVar2 = LZCOUNT(uVar3);\n    if ((int)uVar4 < 0) {\nLAB_00049718:\n      uVar6 = 0x3c - iVar2;\n      uVar5 = (uVar3 << 1) << (~uVar6 & 0x1f) | uVar4 >> (uVar6 & 0x1f);\n      if ((uVar6 & 0x20) != 0) {\n        uVar5 = uVar3 >> (uVar6 & 0x1f);\n      }\n      sVar7 = (short)uVar6 * 10 + 0x28;\n    }\n    else {\n      if (7 < uVar4) {\n        iVar2 = LZCOUNT(uVar4) + 0x20;\n        goto LAB_00049718;\n      }\n      sVar7 = 0x1e;\n      if (uVar4 < 2) {\n        sVar7 = -0x10e;\n        goto LAB_0004966c;\n      }\n      while( true ) {\n        uVar5 = uVar4 << 1;\n        if (((int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0) || (7 < uVar5)) break;\n        uVar3 = 0;\n        uVar4 = uVar5;\n        sVar7 = sVar7 + -10;\n      }\n    }\n    sVar7 = sVar7 + -0x118 + *(short *)(PTR_s_LE_FTS4_0015c5f4 + (uVar5 & 7) * 2 + 0x3550);\n  }\nLAB_0004966c:\n  *(short *)(piVar8 + 2) = sVar7;\n  uVar3 = *(uint *)(param_2 + 4);\n  while ((uVar3 & 0x1000) != 0) {\n    if ((uVar3 & 0x40000) == 0) {\n      param_2 = *(int *)(param_2 + 0xc);\n    }\n    else {\n      param_2 = *(int *)(*(int *)(param_2 + 0x14) + 4);\n    }\n    if (param_2 == 0) {\n      param_2 = 0;\n      break;\n    }\n    uVar3 = *(uint *)(param_2 + 4);\n  }\nLAB_000496c8:\n  puVar1 = PTR_memset_0015c9b8;\n  *piVar8 = param_2;\n  *(ushort *)((int)piVar8 + 10) = param_3;\n  piVar8[1] = (int)param_1;\n  (*(code *)puVar1)(piVar8 + 3,0,0x24);\n  return iVar9;\n}" (primitive_type "int") (function_declarator "FUN_0004953c(undefined4 *param_1,int param_2,ushort param_3)" (identifier "FUN_0004953c") (parameter_list "(undefined4 *param_1,int param_2,ushort param_3)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "ushort param_3" (type_identifier "ushort") (identifier "param_3")) () ")"))) (compound_statement "{\n  undefined *puVar1;\n  int iVar2;\n  uint uVar3;\n  uint uVar4;\n  uint uVar5;\n  uint uVar6;\n  short sVar7;\n  int *piVar8;\n  int iVar9;\n  undefined4 *puVar10;\n  \n  iVar9 = param_1[3];\n  puVar10 = (undefined4 *)param_1[5];\n  if ((int)param_1[4] <= iVar9) {\n    iVar9 = **(int **)*param_1;\n    if (*(char *)(iVar9 + 0x51) != '\0') {\n      param_1[5] = 0;\nLAB_00049780:\n      if (((param_3 & 1) != 0) && (param_2 != 0)) {\n        FUN_000484f4(iVar9,param_2);\n      }\n      param_1[5] = puVar10;\n      return 0;\n    }\n    iVar2 = FUN_0002de20(iVar9,param_2,0,param_1[4] * 0x60);\n    param_1[5] = iVar2;\n    if (iVar2 == 0) goto LAB_00049780;\n    (*(code *)PTR_memcpy_0015ca34)(iVar2,puVar10,param_1[3] * 0x30);\n    if (puVar10 != param_1 + 6) {\n      FUN_0002b254(iVar9,puVar10);\n    }\n    uVar3 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(param_1[5]);\n    puVar10 = (undefined4 *)param_1[5];\n    iVar9 = param_1[3];\n    param_1[4] = uVar3 / 0x30;\n  }\n  param_1[3] = iVar9 + 1;\n  piVar8 = puVar10 + iVar9 * 0xc;\n  if (param_2 == 0) {\n    param_2 = 0;\n    *(undefined2 *)(piVar8 + 2) = 1;\n    goto LAB_000496c8;\n  }\n  sVar7 = 1;\n  if (*(int *)(param_2 + 4) << 0xd < 0) {\n    uVar4 = *(uint *)(param_2 + 0x1c);\n    uVar3 = (int)uVar4 >> 0x1f;\n    iVar2 = LZCOUNT(uVar3);\n    if ((int)uVar4 < 0) {\nLAB_00049718:\n      uVar6 = 0x3c - iVar2;\n      uVar5 = (uVar3 << 1) << (~uVar6 & 0x1f) | uVar4 >> (uVar6 & 0x1f);\n      if ((uVar6 & 0x20) != 0) {\n        uVar5 = uVar3 >> (uVar6 & 0x1f);\n      }\n      sVar7 = (short)uVar6 * 10 + 0x28;\n    }\n    else {\n      if (7 < uVar4) {\n        iVar2 = LZCOUNT(uVar4) + 0x20;\n        goto LAB_00049718;\n      }\n      sVar7 = 0x1e;\n      if (uVar4 < 2) {\n        sVar7 = -0x10e;\n        goto LAB_0004966c;\n      }\n      while( true ) {\n        uVar5 = uVar4 << 1;\n        if (((int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0) || (7 < uVar5)) break;\n        uVar3 = 0;\n        uVar4 = uVar5;\n        sVar7 = sVar7 + -10;\n      }\n    }\n    sVar7 = sVar7 + -0x118 + *(short *)(PTR_s_LE_FTS4_0015c5f4 + (uVar5 & 7) * 2 + 0x3550);\n  }\nLAB_0004966c:\n  *(short *)(piVar8 + 2) = sVar7;\n  uVar3 = *(uint *)(param_2 + 4);\n  while ((uVar3 & 0x1000) != 0) {\n    if ((uVar3 & 0x40000) == 0) {\n      param_2 = *(int *)(param_2 + 0xc);\n    }\n    else {\n      param_2 = *(int *)(*(int *)(param_2 + 0x14) + 4);\n    }\n    if (param_2 == 0) {\n      param_2 = 0;\n      break;\n    }\n    uVar3 = *(uint *)(param_2 + 4);\n  }\nLAB_000496c8:\n  puVar1 = PTR_memset_0015c9b8;\n  *piVar8 = param_2;\n  *(ushort *)((int)piVar8 + 10) = param_3;\n  piVar8[1] = (int)param_1;\n  (*(code *)puVar1)(piVar8 + 3,0,0x24);\n  return iVar9;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "uint uVar5;" (type_identifier "uint") (identifier "uVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "short sVar7;" (sized_type_specifier "short" (short "short")) (identifier "sVar7") (; ";")) (declaration "int *piVar8;" (primitive_type "int") (pointer_declarator "*piVar8" (* "*") (identifier "piVar8")) (; ";")) (declaration "int iVar9;" (primitive_type "int") (identifier "iVar9") (; ";")) (declaration "undefined4 *puVar10;" (type_identifier "undefined4") (pointer_declarator "*puVar10" (* "*") (identifier "puVar10")) (; ";")) (expression_statement "iVar9 = param_1[3];" (assignment_expression "iVar9 = param_1[3]" (identifier "iVar9") (= "=") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "puVar10 = (undefined4 *)param_1[5];" (assignment_expression "puVar10 = (undefined4 *)param_1[5]" (identifier "puVar10") (= "=") (cast_expression "(undefined4 *)param_1[5]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")))) (; ";")) (if_statement "if ((int)param_1[4] <= iVar9) {\n    iVar9 = **(int **)*param_1;\n    if (*(char *)(iVar9 + 0x51) != '\0') {\n      param_1[5] = 0;\nLAB_00049780:\n      if (((param_3 & 1) != 0) && (param_2 != 0)) {\n        FUN_000484f4(iVar9,param_2);\n      }\n      param_1[5] = puVar10;\n      return 0;\n    }\n    iVar2 = FUN_0002de20(iVar9,param_2,0,param_1[4] * 0x60);\n    param_1[5] = iVar2;\n    if (iVar2 == 0) goto LAB_00049780;\n    (*(code *)PTR_memcpy_0015ca34)(iVar2,puVar10,param_1[3] * 0x30);\n    if (puVar10 != param_1 + 6) {\n      FUN_0002b254(iVar9,puVar10);\n    }\n    uVar3 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(param_1[5]);\n    puVar10 = (undefined4 *)param_1[5];\n    iVar9 = param_1[3];\n    param_1[4] = uVar3 / 0x30;\n  }" (if "if") (parenthesized_expression "((int)param_1[4] <= iVar9)" (( "(") (binary_expression "(int)param_1[4] <= iVar9" (cast_expression "(int)param_1[4]" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]"))) (<= "<=") (identifier "iVar9")) () ")")) (compound_statement "{\n    iVar9 = **(int **)*param_1;\n    if (*(char *)(iVar9 + 0x51) != '\0') {\n      param_1[5] = 0;\nLAB_00049780:\n      if (((param_3 & 1) != 0) && (param_2 != 0)) {\n        FUN_000484f4(iVar9,param_2);\n      }\n      param_1[5] = puVar10;\n      return 0;\n    }\n    iVar2 = FUN_0002de20(iVar9,param_2,0,param_1[4] * 0x60);\n    param_1[5] = iVar2;\n    if (iVar2 == 0) goto LAB_00049780;\n    (*(code *)PTR_memcpy_0015ca34)(iVar2,puVar10,param_1[3] * 0x30);\n    if (puVar10 != param_1 + 6) {\n      FUN_0002b254(iVar9,puVar10);\n    }\n    uVar3 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(param_1[5]);\n    puVar10 = (undefined4 *)param_1[5];\n    iVar9 = param_1[3];\n    param_1[4] = uVar3 / 0x30;\n  }" ({ "{") (expression_statement "iVar9 = **(int **)*param_1;" (assignment_expression "iVar9 = **(int **)*param_1" (identifier "iVar9") (= "=") (pointer_expression "**(int **)*param_1" (* "*") (pointer_expression "*(int **)*param_1" (* "*") (cast_expression "(int **)*param_1" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))))) (; ";")) (if_statement "if (*(char *)(iVar9 + 0x51) != '\0') {\n      param_1[5] = 0;\nLAB_00049780:\n      if (((param_3 & 1) != 0) && (param_2 != 0)) {\n        FUN_000484f4(iVar9,param_2);\n      }\n      param_1[5] = puVar10;\n      return 0;\n    }" (if "if") (parenthesized_expression "(*(char *)(iVar9 + 0x51) != '\0')" (( "(") (binary_expression "*(char *)(iVar9 + 0x51) != '\0'" (pointer_expression "*(char *)(iVar9 + 0x51)" (* "*") (cast_expression "(char *)(iVar9 + 0x51)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar9 + 0x51)" (( "(") (binary_expression "iVar9 + 0x51" (identifier "iVar9") (+ "+") (number_literal "0x51")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      param_1[5] = 0;\nLAB_00049780:\n      if (((param_3 & 1) != 0) && (param_2 != 0)) {\n        FUN_000484f4(iVar9,param_2);\n      }\n      param_1[5] = puVar10;\n      return 0;\n    }" ({ "{") (expression_statement "param_1[5] = 0;" (assignment_expression "param_1[5] = 0" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (number_literal "0")) (; ";")) (labeled_statement "LAB_00049780:\n      if (((param_3 & 1) != 0) && (param_2 != 0)) {\n        FUN_000484f4(iVar9,param_2);\n      }" (statement_identifier "LAB_00049780") (: ":") (if_statement "if (((param_3 & 1) != 0) && (param_2 != 0)) {\n        FUN_000484f4(iVar9,param_2);\n      }" (if "if") (parenthesized_expression "(((param_3 & 1) != 0) && (param_2 != 0))" (( "(") (binary_expression "((param_3 & 1) != 0) && (param_2 != 0)" (parenthesized_expression "((param_3 & 1) != 0)" (( "(") (binary_expression "(param_3 & 1) != 0" (parenthesized_expression "(param_3 & 1)" (( "(") (binary_expression "param_3 & 1" (identifier "param_3") (& "&") (number_literal "1")) () ")")) (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n        FUN_000484f4(iVar9,param_2);\n      }" ({ "{") (expression_statement "FUN_000484f4(iVar9,param_2);" (call_expression "FUN_000484f4(iVar9,param_2)" (identifier "FUN_000484f4") (argument_list "(iVar9,param_2)" (( "(") (identifier "iVar9") (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}")))) (expression_statement "param_1[5] = puVar10;" (assignment_expression "param_1[5] = puVar10" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "puVar10")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "iVar2 = FUN_0002de20(iVar9,param_2,0,param_1[4] * 0x60);" (assignment_expression "iVar2 = FUN_0002de20(iVar9,param_2,0,param_1[4] * 0x60)" (identifier "iVar2") (= "=") (call_expression "FUN_0002de20(iVar9,param_2,0,param_1[4] * 0x60)" (identifier "FUN_0002de20") (argument_list "(iVar9,param_2,0,param_1[4] * 0x60)" (( "(") (identifier "iVar9") (, ",") (identifier "param_2") (, ",") (number_literal "0") (, ",") (binary_expression "param_1[4] * 0x60" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (* "*") (number_literal "0x60")) () ")")))) (; ";")) (expression_statement "param_1[5] = iVar2;" (assignment_expression "param_1[5] = iVar2" (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "iVar2")) (; ";")) (if_statement "if (iVar2 == 0) goto LAB_00049780;" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00049780;" (goto "goto") (statement_identifier "LAB_00049780") (; ";"))) (expression_statement "(*(code *)PTR_memcpy_0015ca34)(iVar2,puVar10,param_1[3] * 0x30);" (call_expression "(*(code *)PTR_memcpy_0015ca34)(iVar2,puVar10,param_1[3] * 0x30)" (parenthesized_expression "(*(code *)PTR_memcpy_0015ca34)" (( "(") (pointer_expression "*(code *)PTR_memcpy_0015ca34" (* "*") (cast_expression "(code *)PTR_memcpy_0015ca34" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_0015ca34"))) () ")")) (argument_list "(iVar2,puVar10,param_1[3] * 0x30)" (( "(") (identifier "iVar2") (, ",") (identifier "puVar10") (, ",") (binary_expression "param_1[3] * 0x30" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (* "*") (number_literal "0x30")) () ")"))) (; ";")) (if_statement "if (puVar10 != param_1 + 6) {\n      FUN_0002b254(iVar9,puVar10);\n    }" (if "if") (parenthesized_expression "(puVar10 != param_1 + 6)" (( "(") (binary_expression "puVar10 != param_1 + 6" (identifier "puVar10") (!= "!=") (binary_expression "param_1 + 6" (identifier "param_1") (+ "+") (number_literal "6"))) () ")")) (compound_statement "{\n      FUN_0002b254(iVar9,puVar10);\n    }" ({ "{") (expression_statement "FUN_0002b254(iVar9,puVar10);" (call_expression "FUN_0002b254(iVar9,puVar10)" (identifier "FUN_0002b254") (argument_list "(iVar9,puVar10)" (( "(") (identifier "iVar9") (, ",") (identifier "puVar10") () ")"))) (; ";")) (} "}"))) (expression_statement "uVar3 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(param_1[5]);" (assignment_expression "uVar3 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(param_1[5])" (identifier "uVar3") (= "=") (call_expression "(**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(param_1[5])" (parenthesized_expression "(**(code **)(PTR_DAT_0015c5d8 + -0x4da0))" (( "(") (pointer_expression "**(code **)(PTR_DAT_0015c5d8 + -0x4da0)" (* "*") (pointer_expression "*(code **)(PTR_DAT_0015c5d8 + -0x4da0)" (* "*") (cast_expression "(code **)(PTR_DAT_0015c5d8 + -0x4da0)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(PTR_DAT_0015c5d8 + -0x4da0)" (( "(") (binary_expression "PTR_DAT_0015c5d8 + -0x4da0" (identifier "PTR_DAT_0015c5d8") (+ "+") (number_literal "-0x4da0")) () ")"))))) () ")")) (argument_list "(param_1[5])" (( "(") (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")) () ")")))) (; ";")) (expression_statement "puVar10 = (undefined4 *)param_1[5];" (assignment_expression "puVar10 = (undefined4 *)param_1[5]" (identifier "puVar10") (= "=") (cast_expression "(undefined4 *)param_1[5]" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (subscript_expression "param_1[5]" (identifier "param_1") ([ "[") (number_literal "5") (] "]")))) (; ";")) (expression_statement "iVar9 = param_1[3];" (assignment_expression "iVar9 = param_1[3]" (identifier "iVar9") (= "=") (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]"))) (; ";")) (expression_statement "param_1[4] = uVar3 / 0x30;" (assignment_expression "param_1[4] = uVar3 / 0x30" (subscript_expression "param_1[4]" (identifier "param_1") ([ "[") (number_literal "4") (] "]")) (= "=") (binary_expression "uVar3 / 0x30" (identifier "uVar3") (/ "/") (number_literal "0x30"))) (; ";")) (} "}"))) (expression_statement "param_1[3] = iVar9 + 1;" (assignment_expression "param_1[3] = iVar9 + 1" (subscript_expression "param_1[3]" (identifier "param_1") ([ "[") (number_literal "3") (] "]")) (= "=") (binary_expression "iVar9 + 1" (identifier "iVar9") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "piVar8 = puVar10 + iVar9 * 0xc;" (assignment_expression "piVar8 = puVar10 + iVar9 * 0xc" (identifier "piVar8") (= "=") (binary_expression "puVar10 + iVar9 * 0xc" (identifier "puVar10") (+ "+") (binary_expression "iVar9 * 0xc" (identifier "iVar9") (* "*") (number_literal "0xc")))) (; ";")) (if_statement "if (param_2 == 0) {\n    param_2 = 0;\n    *(undefined2 *)(piVar8 + 2) = 1;\n    goto LAB_000496c8;\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    param_2 = 0;\n    *(undefined2 *)(piVar8 + 2) = 1;\n    goto LAB_000496c8;\n  }" ({ "{") (expression_statement "param_2 = 0;" (assignment_expression "param_2 = 0" (identifier "param_2") (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined2 *)(piVar8 + 2) = 1;" (assignment_expression "*(undefined2 *)(piVar8 + 2) = 1" (pointer_expression "*(undefined2 *)(piVar8 + 2)" (* "*") (cast_expression "(undefined2 *)(piVar8 + 2)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar8 + 2)" (( "(") (binary_expression "piVar8 + 2" (identifier "piVar8") (+ "+") (number_literal "2")) () ")")))) (= "=") (number_literal "1")) (; ";")) (goto_statement "goto LAB_000496c8;" (goto "goto") (statement_identifier "LAB_000496c8") (; ";")) (} "}"))) (expression_statement "sVar7 = 1;" (assignment_expression "sVar7 = 1" (identifier "sVar7") (= "=") (number_literal "1")) (; ";")) (if_statement "if (*(int *)(param_2 + 4) << 0xd < 0) {\n    uVar4 = *(uint *)(param_2 + 0x1c);\n    uVar3 = (int)uVar4 >> 0x1f;\n    iVar2 = LZCOUNT(uVar3);\n    if ((int)uVar4 < 0) {\nLAB_00049718:\n      uVar6 = 0x3c - iVar2;\n      uVar5 = (uVar3 << 1) << (~uVar6 & 0x1f) | uVar4 >> (uVar6 & 0x1f);\n      if ((uVar6 & 0x20) != 0) {\n        uVar5 = uVar3 >> (uVar6 & 0x1f);\n      }\n      sVar7 = (short)uVar6 * 10 + 0x28;\n    }\n    else {\n      if (7 < uVar4) {\n        iVar2 = LZCOUNT(uVar4) + 0x20;\n        goto LAB_00049718;\n      }\n      sVar7 = 0x1e;\n      if (uVar4 < 2) {\n        sVar7 = -0x10e;\n        goto LAB_0004966c;\n      }\n      while( true ) {\n        uVar5 = uVar4 << 1;\n        if (((int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0) || (7 < uVar5)) break;\n        uVar3 = 0;\n        uVar4 = uVar5;\n        sVar7 = sVar7 + -10;\n      }\n    }\n    sVar7 = sVar7 + -0x118 + *(short *)(PTR_s_LE_FTS4_0015c5f4 + (uVar5 & 7) * 2 + 0x3550);\n  }" (if "if") (parenthesized_expression "(*(int *)(param_2 + 4) << 0xd < 0)" (( "(") (binary_expression "*(int *)(param_2 + 4) << 0xd < 0" (binary_expression "*(int *)(param_2 + 4) << 0xd" (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 "0xd")) (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    uVar4 = *(uint *)(param_2 + 0x1c);\n    uVar3 = (int)uVar4 >> 0x1f;\n    iVar2 = LZCOUNT(uVar3);\n    if ((int)uVar4 < 0) {\nLAB_00049718:\n      uVar6 = 0x3c - iVar2;\n      uVar5 = (uVar3 << 1) << (~uVar6 & 0x1f) | uVar4 >> (uVar6 & 0x1f);\n      if ((uVar6 & 0x20) != 0) {\n        uVar5 = uVar3 >> (uVar6 & 0x1f);\n      }\n      sVar7 = (short)uVar6 * 10 + 0x28;\n    }\n    else {\n      if (7 < uVar4) {\n        iVar2 = LZCOUNT(uVar4) + 0x20;\n        goto LAB_00049718;\n      }\n      sVar7 = 0x1e;\n      if (uVar4 < 2) {\n        sVar7 = -0x10e;\n        goto LAB_0004966c;\n      }\n      while( true ) {\n        uVar5 = uVar4 << 1;\n        if (((int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0) || (7 < uVar5)) break;\n        uVar3 = 0;\n        uVar4 = uVar5;\n        sVar7 = sVar7 + -10;\n      }\n    }\n    sVar7 = sVar7 + -0x118 + *(short *)(PTR_s_LE_FTS4_0015c5f4 + (uVar5 & 7) * 2 + 0x3550);\n  }" ({ "{") (expression_statement "uVar4 = *(uint *)(param_2 + 0x1c);" (assignment_expression "uVar4 = *(uint *)(param_2 + 0x1c)" (identifier "uVar4") (= "=") (pointer_expression "*(uint *)(param_2 + 0x1c)" (* "*") (cast_expression "(uint *)(param_2 + 0x1c)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x1c)" (( "(") (binary_expression "param_2 + 0x1c" (identifier "param_2") (+ "+") (number_literal "0x1c")) () ")"))))) (; ";")) (expression_statement "uVar3 = (int)uVar4 >> 0x1f;" (assignment_expression "uVar3 = (int)uVar4 >> 0x1f" (identifier "uVar3") (= "=") (binary_expression "(int)uVar4 >> 0x1f" (cast_expression "(int)uVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar4")) (>> ">>") (number_literal "0x1f"))) (; ";")) (expression_statement "iVar2 = LZCOUNT(uVar3);" (assignment_expression "iVar2 = LZCOUNT(uVar3)" (identifier "iVar2") (= "=") (call_expression "LZCOUNT(uVar3)" (identifier "LZCOUNT") (argument_list "(uVar3)" (( "(") (identifier "uVar3") () ")")))) (; ";")) (if_statement "if ((int)uVar4 < 0) {\nLAB_00049718:\n      uVar6 = 0x3c - iVar2;\n      uVar5 = (uVar3 << 1) << (~uVar6 & 0x1f) | uVar4 >> (uVar6 & 0x1f);\n      if ((uVar6 & 0x20) != 0) {\n        uVar5 = uVar3 >> (uVar6 & 0x1f);\n      }\n      sVar7 = (short)uVar6 * 10 + 0x28;\n    }\n    else {\n      if (7 < uVar4) {\n        iVar2 = LZCOUNT(uVar4) + 0x20;\n        goto LAB_00049718;\n      }\n      sVar7 = 0x1e;\n      if (uVar4 < 2) {\n        sVar7 = -0x10e;\n        goto LAB_0004966c;\n      }\n      while( true ) {\n        uVar5 = uVar4 << 1;\n        if (((int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0) || (7 < uVar5)) break;\n        uVar3 = 0;\n        uVar4 = uVar5;\n        sVar7 = sVar7 + -10;\n      }\n    }" (if "if") (parenthesized_expression "((int)uVar4 < 0)" (( "(") (binary_expression "(int)uVar4 < 0" (cast_expression "(int)uVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar4")) (< "<") (number_literal "0")) () ")")) (compound_statement "{\nLAB_00049718:\n      uVar6 = 0x3c - iVar2;\n      uVar5 = (uVar3 << 1) << (~uVar6 & 0x1f) | uVar4 >> (uVar6 & 0x1f);\n      if ((uVar6 & 0x20) != 0) {\n        uVar5 = uVar3 >> (uVar6 & 0x1f);\n      }\n      sVar7 = (short)uVar6 * 10 + 0x28;\n    }" ({ "{") (labeled_statement "LAB_00049718:\n      uVar6 = 0x3c - iVar2;" (statement_identifier "LAB_00049718") (: ":") (expression_statement "uVar6 = 0x3c - iVar2;" (assignment_expression "uVar6 = 0x3c - iVar2" (identifier "uVar6") (= "=") (binary_expression "0x3c - iVar2" (number_literal "0x3c") (- "-") (identifier "iVar2"))) (; ";"))) (expression_statement "uVar5 = (uVar3 << 1) << (~uVar6 & 0x1f) | uVar4 >> (uVar6 & 0x1f);" (assignment_expression "uVar5 = (uVar3 << 1) << (~uVar6 & 0x1f) | uVar4 >> (uVar6 & 0x1f)" (identifier "uVar5") (= "=") (binary_expression "(uVar3 << 1) << (~uVar6 & 0x1f) | uVar4 >> (uVar6 & 0x1f)" (binary_expression "(uVar3 << 1) << (~uVar6 & 0x1f)" (parenthesized_expression "(uVar3 << 1)" (( "(") (binary_expression "uVar3 << 1" (identifier "uVar3") (<< "<<") (number_literal "1")) () ")")) (<< "<<") (parenthesized_expression "(~uVar6 & 0x1f)" (( "(") (binary_expression "~uVar6 & 0x1f" (unary_expression "~uVar6" (~ "~") (identifier "uVar6")) (& "&") (number_literal "0x1f")) () ")"))) (| "|") (binary_expression "uVar4 >> (uVar6 & 0x1f)" (identifier "uVar4") (>> ">>") (parenthesized_expression "(uVar6 & 0x1f)" (( "(") (binary_expression "uVar6 & 0x1f" (identifier "uVar6") (& "&") (number_literal "0x1f")) () ")"))))) (; ";")) (if_statement "if ((uVar6 & 0x20) != 0) {\n        uVar5 = uVar3 >> (uVar6 & 0x1f);\n      }" (if "if") (parenthesized_expression "((uVar6 & 0x20) != 0)" (( "(") (binary_expression "(uVar6 & 0x20) != 0" (parenthesized_expression "(uVar6 & 0x20)" (( "(") (binary_expression "uVar6 & 0x20" (identifier "uVar6") (& "&") (number_literal "0x20")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        uVar5 = uVar3 >> (uVar6 & 0x1f);\n      }" ({ "{") (expression_statement "uVar5 = uVar3 >> (uVar6 & 0x1f);" (assignment_expression "uVar5 = uVar3 >> (uVar6 & 0x1f)" (identifier "uVar5") (= "=") (binary_expression "uVar3 >> (uVar6 & 0x1f)" (identifier "uVar3") (>> ">>") (parenthesized_expression "(uVar6 & 0x1f)" (( "(") (binary_expression "uVar6 & 0x1f" (identifier "uVar6") (& "&") (number_literal "0x1f")) () ")")))) (; ";")) (} "}"))) (expression_statement "sVar7 = (short)uVar6 * 10 + 0x28;" (assignment_expression "sVar7 = (short)uVar6 * 10 + 0x28" (identifier "sVar7") (= "=") (binary_expression "(short)uVar6 * 10 + 0x28" (binary_expression "(short)uVar6 * 10" (cast_expression "(short)uVar6" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (identifier "uVar6")) (* "*") (number_literal "10")) (+ "+") (number_literal "0x28"))) (; ";")) (} "}")) (else_clause "else {\n      if (7 < uVar4) {\n        iVar2 = LZCOUNT(uVar4) + 0x20;\n        goto LAB_00049718;\n      }\n      sVar7 = 0x1e;\n      if (uVar4 < 2) {\n        sVar7 = -0x10e;\n        goto LAB_0004966c;\n      }\n      while( true ) {\n        uVar5 = uVar4 << 1;\n        if (((int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0) || (7 < uVar5)) break;\n        uVar3 = 0;\n        uVar4 = uVar5;\n        sVar7 = sVar7 + -10;\n      }\n    }" (else "else") (compound_statement "{\n      if (7 < uVar4) {\n        iVar2 = LZCOUNT(uVar4) + 0x20;\n        goto LAB_00049718;\n      }\n      sVar7 = 0x1e;\n      if (uVar4 < 2) {\n        sVar7 = -0x10e;\n        goto LAB_0004966c;\n      }\n      while( true ) {\n        uVar5 = uVar4 << 1;\n        if (((int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0) || (7 < uVar5)) break;\n        uVar3 = 0;\n        uVar4 = uVar5;\n        sVar7 = sVar7 + -10;\n      }\n    }" ({ "{") (if_statement "if (7 < uVar4) {\n        iVar2 = LZCOUNT(uVar4) + 0x20;\n        goto LAB_00049718;\n      }" (if "if") (parenthesized_expression "(7 < uVar4)" (( "(") (binary_expression "7 < uVar4" (number_literal "7") (< "<") (identifier "uVar4")) () ")")) (compound_statement "{\n        iVar2 = LZCOUNT(uVar4) + 0x20;\n        goto LAB_00049718;\n      }" ({ "{") (expression_statement "iVar2 = LZCOUNT(uVar4) + 0x20;" (assignment_expression "iVar2 = LZCOUNT(uVar4) + 0x20" (identifier "iVar2") (= "=") (binary_expression "LZCOUNT(uVar4) + 0x20" (call_expression "LZCOUNT(uVar4)" (identifier "LZCOUNT") (argument_list "(uVar4)" (( "(") (identifier "uVar4") () ")"))) (+ "+") (number_literal "0x20"))) (; ";")) (goto_statement "goto LAB_00049718;" (goto "goto") (statement_identifier "LAB_00049718") (; ";")) (} "}"))) (expression_statement "sVar7 = 0x1e;" (assignment_expression "sVar7 = 0x1e" (identifier "sVar7") (= "=") (number_literal "0x1e")) (; ";")) (if_statement "if (uVar4 < 2) {\n        sVar7 = -0x10e;\n        goto LAB_0004966c;\n      }" (if "if") (parenthesized_expression "(uVar4 < 2)" (( "(") (binary_expression "uVar4 < 2" (identifier "uVar4") (< "<") (number_literal "2")) () ")")) (compound_statement "{\n        sVar7 = -0x10e;\n        goto LAB_0004966c;\n      }" ({ "{") (expression_statement "sVar7 = -0x10e;" (assignment_expression "sVar7 = -0x10e" (identifier "sVar7") (= "=") (number_literal "-0x10e")) (; ";")) (goto_statement "goto LAB_0004966c;" (goto "goto") (statement_identifier "LAB_0004966c") (; ";")) (} "}"))) (while_statement "while( true ) {\n        uVar5 = uVar4 << 1;\n        if (((int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0) || (7 < uVar5)) break;\n        uVar3 = 0;\n        uVar4 = uVar5;\n        sVar7 = sVar7 + -10;\n      }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n        uVar5 = uVar4 << 1;\n        if (((int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0) || (7 < uVar5)) break;\n        uVar3 = 0;\n        uVar4 = uVar5;\n        sVar7 = sVar7 + -10;\n      }" ({ "{") (expression_statement "uVar5 = uVar4 << 1;" (assignment_expression "uVar5 = uVar4 << 1" (identifier "uVar5") (= "=") (binary_expression "uVar4 << 1" (identifier "uVar4") (<< "<<") (number_literal "1"))) (; ";")) (if_statement "if (((int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0) || (7 < uVar5)) break;" (if "if") (parenthesized_expression "(((int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0) || (7 < uVar5))" (( "(") (binary_expression "((int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0) || (7 < uVar5)" (parenthesized_expression "((int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0)" (( "(") (binary_expression "(int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0" (binary_expression "(int)uVar4 < 0" (cast_expression "(int)uVar4" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar4")) (< "<") (number_literal "0")) (|| "||") (binary_expression "(uVar3 & 0x7fffffff) != 0" (parenthesized_expression "(uVar3 & 0x7fffffff)" (( "(") (binary_expression "uVar3 & 0x7fffffff" (identifier "uVar3") (& "&") (number_literal "0x7fffffff")) () ")")) (!= "!=") (number_literal "0"))) () ")")) (|| "||") (parenthesized_expression "(7 < uVar5)" (( "(") (binary_expression "7 < uVar5" (number_literal "7") (< "<") (identifier "uVar5")) () ")"))) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar4 = uVar5;" (assignment_expression "uVar4 = uVar5" (identifier "uVar4") (= "=") (identifier "uVar5")) (; ";")) (expression_statement "sVar7 = sVar7 + -10;" (assignment_expression "sVar7 = sVar7 + -10" (identifier "sVar7") (= "=") (binary_expression "sVar7 + -10" (identifier "sVar7") (+ "+") (number_literal "-10"))) (; ";")) (} "}"))) (} "}")))) (expression_statement "sVar7 = sVar7 + -0x118 + *(short *)(PTR_s_LE_FTS4_0015c5f4 + (uVar5 & 7) * 2 + 0x3550);" (assignment_expression "sVar7 = sVar7 + -0x118 + *(short *)(PTR_s_LE_FTS4_0015c5f4 + (uVar5 & 7) * 2 + 0x3550)" (identifier "sVar7") (= "=") (binary_expression "sVar7 + -0x118 + *(short *)(PTR_s_LE_FTS4_0015c5f4 + (uVar5 & 7) * 2 + 0x3550)" (binary_expression "sVar7 + -0x118" (identifier "sVar7") (+ "+") (number_literal "-0x118")) (+ "+") (pointer_expression "*(short *)(PTR_s_LE_FTS4_0015c5f4 + (uVar5 & 7) * 2 + 0x3550)" (* "*") (cast_expression "(short *)(PTR_s_LE_FTS4_0015c5f4 + (uVar5 & 7) * 2 + 0x3550)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_s_LE_FTS4_0015c5f4 + (uVar5 & 7) * 2 + 0x3550)" (( "(") (binary_expression "PTR_s_LE_FTS4_0015c5f4 + (uVar5 & 7) * 2 + 0x3550" (binary_expression "PTR_s_LE_FTS4_0015c5f4 + (uVar5 & 7) * 2" (identifier "PTR_s_LE_FTS4_0015c5f4") (+ "+") (binary_expression "(uVar5 & 7) * 2" (parenthesized_expression "(uVar5 & 7)" (( "(") (binary_expression "uVar5 & 7" (identifier "uVar5") (& "&") (number_literal "7")) () ")")) (* "*") (number_literal "2"))) (+ "+") (number_literal "0x3550")) () ")")))))) (; ";")) (} "}"))) (labeled_statement "LAB_0004966c:\n  *(short *)(piVar8 + 2) = sVar7;" (statement_identifier "LAB_0004966c") (: ":") (expression_statement "*(short *)(piVar8 + 2) = sVar7;" (assignment_expression "*(short *)(piVar8 + 2) = sVar7" (pointer_expression "*(short *)(piVar8 + 2)" (* "*") (cast_expression "(short *)(piVar8 + 2)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar8 + 2)" (( "(") (binary_expression "piVar8 + 2" (identifier "piVar8") (+ "+") (number_literal "2")) () ")")))) (= "=") (identifier "sVar7")) (; ";"))) (expression_statement "uVar3 = *(uint *)(param_2 + 4);" (assignment_expression "uVar3 = *(uint *)(param_2 + 4)" (identifier "uVar3") (= "=") (pointer_expression "*(uint *)(param_2 + 4)" (* "*") (cast_expression "(uint *)(param_2 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (while_statement "while ((uVar3 & 0x1000) != 0) {\n    if ((uVar3 & 0x40000) == 0) {\n      param_2 = *(int *)(param_2 + 0xc);\n    }\n    else {\n      param_2 = *(int *)(*(int *)(param_2 + 0x14) + 4);\n    }\n    if (param_2 == 0) {\n      param_2 = 0;\n      break;\n    }\n    uVar3 = *(uint *)(param_2 + 4);\n  }" (while "while") (parenthesized_expression "((uVar3 & 0x1000) != 0)" (( "(") (binary_expression "(uVar3 & 0x1000) != 0" (parenthesized_expression "(uVar3 & 0x1000)" (( "(") (binary_expression "uVar3 & 0x1000" (identifier "uVar3") (& "&") (number_literal "0x1000")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if ((uVar3 & 0x40000) == 0) {\n      param_2 = *(int *)(param_2 + 0xc);\n    }\n    else {\n      param_2 = *(int *)(*(int *)(param_2 + 0x14) + 4);\n    }\n    if (param_2 == 0) {\n      param_2 = 0;\n      break;\n    }\n    uVar3 = *(uint *)(param_2 + 4);\n  }" ({ "{") (if_statement "if ((uVar3 & 0x40000) == 0) {\n      param_2 = *(int *)(param_2 + 0xc);\n    }\n    else {\n      param_2 = *(int *)(*(int *)(param_2 + 0x14) + 4);\n    }" (if "if") (parenthesized_expression "((uVar3 & 0x40000) == 0)" (( "(") (binary_expression "(uVar3 & 0x40000) == 0" (parenthesized_expression "(uVar3 & 0x40000)" (( "(") (binary_expression "uVar3 & 0x40000" (identifier "uVar3") (& "&") (number_literal "0x40000")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      param_2 = *(int *)(param_2 + 0xc);\n    }" ({ "{") (expression_statement "param_2 = *(int *)(param_2 + 0xc);" (assignment_expression "param_2 = *(int *)(param_2 + 0xc)" (identifier "param_2") (= "=") (pointer_expression "*(int *)(param_2 + 0xc)" (* "*") (cast_expression "(int *)(param_2 + 0xc)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0xc)" (( "(") (binary_expression "param_2 + 0xc" (identifier "param_2") (+ "+") (number_literal "0xc")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n      param_2 = *(int *)(*(int *)(param_2 + 0x14) + 4);\n    }" (else "else") (compound_statement "{\n      param_2 = *(int *)(*(int *)(param_2 + 0x14) + 4);\n    }" ({ "{") (expression_statement "param_2 = *(int *)(*(int *)(param_2 + 0x14) + 4);" (assignment_expression "param_2 = *(int *)(*(int *)(param_2 + 0x14) + 4)" (identifier "param_2") (= "=") (pointer_expression "*(int *)(*(int *)(param_2 + 0x14) + 4)" (* "*") (cast_expression "(int *)(*(int *)(param_2 + 0x14) + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(param_2 + 0x14) + 4)" (( "(") (binary_expression "*(int *)(param_2 + 0x14) + 4" (pointer_expression "*(int *)(param_2 + 0x14)" (* "*") (cast_expression "(int *)(param_2 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x14)" (( "(") (binary_expression "param_2 + 0x14" (identifier "param_2") (+ "+") (number_literal "0x14")) () ")")))) (+ "+") (number_literal "4")) () ")"))))) (; ";")) (} "}")))) (if_statement "if (param_2 == 0) {\n      param_2 = 0;\n      break;\n    }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      param_2 = 0;\n      break;\n    }" ({ "{") (expression_statement "param_2 = 0;" (assignment_expression "param_2 = 0" (identifier "param_2") (= "=") (number_literal "0")) (; ";")) (break_statement "break;" (break "break") (; ";")) (} "}"))) (expression_statement "uVar3 = *(uint *)(param_2 + 4);" (assignment_expression "uVar3 = *(uint *)(param_2 + 4)" (identifier "uVar3") (= "=") (pointer_expression "*(uint *)(param_2 + 4)" (* "*") (cast_expression "(uint *)(param_2 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (} "}"))) (labeled_statement "LAB_000496c8:\n  puVar1 = PTR_memset_0015c9b8;" (statement_identifier "LAB_000496c8") (: ":") (expression_statement "puVar1 = PTR_memset_0015c9b8;" (assignment_expression "puVar1 = PTR_memset_0015c9b8" (identifier "puVar1") (= "=") (identifier "PTR_memset_0015c9b8")) (; ";"))) (expression_statement "*piVar8 = param_2;" (assignment_expression "*piVar8 = param_2" (pointer_expression "*piVar8" (* "*") (identifier "piVar8")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(ushort *)((int)piVar8 + 10) = param_3;" (assignment_expression "*(ushort *)((int)piVar8 + 10) = param_3" (pointer_expression "*(ushort *)((int)piVar8 + 10)" (* "*") (cast_expression "(ushort *)((int)piVar8 + 10)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar8 + 10)" (( "(") (binary_expression "(int)piVar8 + 10" (cast_expression "(int)piVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar8")) (+ "+") (number_literal "10")) () ")")))) (= "=") (identifier "param_3")) (; ";")) (expression_statement "piVar8[1] = (int)param_1;" (assignment_expression "piVar8[1] = (int)param_1" (subscript_expression "piVar8[1]" (identifier "piVar8") ([ "[") (number_literal "1") (] "]")) (= "=") (cast_expression "(int)param_1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "param_1"))) (; ";")) (expression_statement "(*(code *)puVar1)(piVar8 + 3,0,0x24);" (call_expression "(*(code *)puVar1)(piVar8 + 3,0,0x24)" (parenthesized_expression "(*(code *)puVar1)" (( "(") (pointer_expression "*(code *)puVar1" (* "*") (cast_expression "(code *)puVar1" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1"))) () ")")) (argument_list "(piVar8 + 3,0,0x24)" (( "(") (binary_expression "piVar8 + 3" (identifier "piVar8") (+ "+") (number_literal "3")) (, ",") (number_literal "0") (, ",") (number_literal "0x24") () ")"))) (; ";")) (return_statement "return iVar9;" (return "return") (identifier "iVar9") (; ";")) (} "}")))

int function_1(type_1 *pWC,type_2 *var_3,type_3 var_2)

{
  type_4 *var_7;
  type_5 var_11;
  type_5 var_14;
  type_5 var_17;
  type_5 var_15;
  int var_13;
  short var_18;
  int var_1;
  type_6 *db;
  type_4 *var_9;
  type_7 *pcVar10;
  type_8 *var_16;
  type_8 *var_8;
  type_9 in_stack_ffffffe4;
  
  var_16 = &_gp;
  var_8 = &_gp;
  var_1 = pWC->nTerm;
  var_9 = pWC->a;
  if (pWC->nSlot <= var_1) {
    db = pWC->pWInfo->pParse->db;
    if (db->mallocFailed != '\0') {
      pWC->a = (type_4 *)0x0;
LAB_00049780:
      if (((var_2 & 1) != 0) && (var_3 != (type_2 *)0x0)) {
                    /* WARNING: Subroutine does not return */
        var_4(db,var_3);
      }
      pWC->a = var_9;
      return 0;
    }
    var_7 = (type_4 *)var_5(db,var_6(&_gp,in_stack_ffffffe4));
    pWC->a = var_7;
    if (var_7 == (type_4 *)0x0) goto LAB_00049780;
    (**(type_7 **)(var_8 + -0x7b7c))(var_7,var_9,pWC->nTerm * 0x30);
    if (var_9 != pWC->aStatic) {
                    /* WARNING: Subroutine does not return */
      var_10(db,var_9);
    }
    var_16 = var_8;
    var_11 = (**(type_7 **)(*(int *)(var_8 + -0x7fd8) + -0x4da0))(pWC->a);
    var_9 = pWC->a;
    var_1 = pWC->nTerm;
    pWC->nSlot = var_11 / 0x30;
  }
  pWC->nTerm = var_1 + 1;
  var_9 = var_9 + var_1;
  if (var_3 == (type_2 *)0x0) {
    var_3 = (type_2 *)0x0;
    var_9->truthProb = 1;
  }
  else {
    var_18 = 1;
    if ((int)(var_3->flags << 0xd) < 0) {
      var_14 = var_3->iTable;
      var_11 = (int)var_14 >> 0x1f;
      var_13 = var_12(var_11);
      if ((int)var_14 < 0) {
LAB_00049718:
        var_15 = 0x3c - var_13;
        var_17 = (var_11 << 1) << (~var_15 & 0x1f) | var_14 >> (var_15 & 0x1f);
        if ((var_15 & 0x20) != 0) {
          var_17 = var_11 >> (var_15 & 0x1f);
        }
        var_18 = (short)var_15 * 10 + 0x28;
LAB_00049754:
        var_13 = *(int *)(var_16 + -0x7fbc);
      }
      else {
        if (7 < var_14) {
          var_13 = var_12(var_14) + 0x20;
          goto LAB_00049718;
        }
        var_18 = 0x1e;
        if (var_14 < 2) {
          var_18 = -0x10e;
          goto LAB_0004966c;
        }
        while( true ) {
          var_17 = var_14 << 1;
          if ((int)var_14 < 0 || (var_11 & 0x7fffffff) != 0) break;
          if (7 < var_17) goto LAB_00049754;
          var_11 = 0;
          var_14 = var_17;
          var_18 = var_18 + -10;
        }
        var_13 = *(int *)(var_16 + -0x7fbc);
      }
      var_18 = var_18 + -0x118 + *(short *)((var_17 & 7) * 2 + var_13 + 0x3550);
    }
LAB_0004966c:
    var_9->truthProb = var_18;
    var_11 = var_3->flags;
    if ((var_11 & 0x1000) != 0) {
      do {
        if ((var_11 & 0x40000) == 0) {
          var_3 = var_3->pLeft;
        }
        else {
          var_3 = ((var_3->x).pList)->a[0].pExpr;
        }
        if (var_3 == (type_2 *)0x0) {
          var_3 = (type_2 *)0x0;
          goto LAB_000496c4;
        }
        var_11 = var_3->flags;
        pcVar10 = *(type_7 **)(var_16 + -0x7bf8);
      } while ((var_11 & 0x1000) != 0);
      goto LAB_000496c8;
    }
  }
LAB_000496c4:
  pcVar10 = *(type_7 **)(var_16 + -0x7bf8);
LAB_000496c8:
  var_9->pExpr = var_3;
  var_9->var_2 = var_2;
  var_9->pWC = pWC;
  (*pcVar10)(&var_9->eOperator,0,0x24);
  return var_1;
}


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

int MASKED(undefined4 *param_1,int param_2,ushort param_3)

{
  undefined *puVar1;
  int iVar2;
  uint uVar3;
  uint uVar4;
  uint uVar5;
  uint uVar6;
  short sVar7;
  int *piVar8;
  int iVar9;
  undefined4 *puVar10;
  
  iVar9 = param_1[3];
  puVar10 = (undefined4 *)param_1[5];
  if ((int)param_1[4] <= iVar9) {
    iVar9 = **(int **)*param_1;
    if (*(char *)(iVar9 + 0x51) != '\0') {
      param_1[5] = 0;
LAB_00049780:
      if (((param_3 & 1) != 0) && (param_2 != 0)) {
        FUN_000484f4(iVar9,param_2);
      }
      param_1[5] = puVar10;
      return 0;
    }
    iVar2 = FUN_0002de20(iVar9,param_2,0,param_1[4] * 0x60);
    param_1[5] = iVar2;
    if (iVar2 == 0) goto LAB_00049780;
    (*(code *)PTR_memcpy_0015ca34)(iVar2,puVar10,param_1[3] * 0x30);
    if (puVar10 != param_1 + 6) {
      FUN_0002b254(iVar9,puVar10);
    }
    uVar3 = (**(code **)(PTR_DAT_0015c5d8 + -0x4da0))(param_1[5]);
    puVar10 = (undefined4 *)param_1[5];
    iVar9 = param_1[3];
    param_1[4] = uVar3 / 0x30;
  }
  param_1[3] = iVar9 + 1;
  piVar8 = puVar10 + iVar9 * 0xc;
  if (param_2 == 0) {
    param_2 = 0;
    *(undefined2 *)(piVar8 + 2) = 1;
    goto LAB_000496c8;
  }
  sVar7 = 1;
  if (*(int *)(param_2 + 4) << 0xd < 0) {
    uVar4 = *(uint *)(param_2 + 0x1c);
    uVar3 = (int)uVar4 >> 0x1f;
    iVar2 = LZCOUNT(uVar3);
    if ((int)uVar4 < 0) {
LAB_00049718:
      uVar6 = 0x3c - iVar2;
      uVar5 = (uVar3 << 1) << (~uVar6 & 0x1f) | uVar4 >> (uVar6 & 0x1f);
      if ((uVar6 & 0x20) != 0) {
        uVar5 = uVar3 >> (uVar6 & 0x1f);
      }
      sVar7 = (short)uVar6 * 10 + 0x28;
    }
    else {
      if (7 < uVar4) {
        iVar2 = LZCOUNT(uVar4) + 0x20;
        goto LAB_00049718;
      }
      sVar7 = 0x1e;
      if (uVar4 < 2) {
        sVar7 = -0x10e;
        goto LAB_0004966c;
      }
      while( true ) {
        uVar5 = uVar4 << 1;
        if (((int)uVar4 < 0 || (uVar3 & 0x7fffffff) != 0) || (7 < uVar5)) break;
        uVar3 = 0;
        uVar4 = uVar5;
        sVar7 = sVar7 + -10;
      }
    }
    sVar7 = sVar7 + -0x118 + *(short *)(PTR_s_LE_FTS4_0015c5f4 + (uVar5 & 7) * 2 + 0x3550);
  }
LAB_0004966c:
  *(short *)(piVar8 + 2) = sVar7;
  uVar3 = *(uint *)(param_2 + 4);
  while ((uVar3 & 0x1000) != 0) {
    if ((uVar3 & 0x40000) == 0) {
      param_2 = *(int *)(param_2 + 0xc);
    }
    else {
      param_2 = *(int *)(*(int *)(param_2 + 0x14) + 4);
    }
    if (param_2 == 0) {
      param_2 = 0;
      break;
    }
    uVar3 = *(uint *)(param_2 + 4);
  }
LAB_000496c8:
  puVar1 = PTR_memset_0015c9b8;
  *piVar8 = param_2;
  *(ushort *)((int)piVar8 + 10) = param_3;
  piVar8[1] = (int)param_1;
  (*(code *)puVar1)(piVar8 + 3,0,0x24);
  return iVar9;
}

