
Expr * sqlite3ExprAlloc(sqlite3 *db,int op,Token *pToken,int dequote)

{
  byte bVar1;
  undefined *puVar2;
  Expr *pEVar3;
  Expr *pEVar4;
  int iVar5;
  sqlite3 *db_00;
  Table *pTVar6;
  uint uVar7;
  uint uVar8;
  uint uVar9;
  u8 uVar10;
  uint uVar11;
  undefined1 *puVar12;
  undefined4 in_stack_ffffffd4;
  int iValue;
  sqlite3 *local_24;
  
  puVar2 = PTR___stack_chk_guard_000f5568;
  puVar12 = &_gp;
  iValue = 0;
  local_24 = *(sqlite3 **)PTR___stack_chk_guard_000f5568;
  uVar10 = (u8)op;
  if (pToken == (Token *)0x0) {
    uVar9 = 0x34;
    uVar8 = 0;
    pEVar3 = (Expr *)sqlite3DbMallocRawNN(db,CONCAT44(&_gp,in_stack_ffffffd4));
    if (pEVar3 != (Expr *)0x0) {
      uVar8 = 0x34;
      op = 0;
      (**(code **)(puVar12 + -0x7e50))(pEVar3);
      pEVar3->iAgg = -1;
      pEVar3->op = uVar10;
      pEVar3->nHeight = 1;
      goto LAB_00038070;
    }
LAB_0003806c:
    pEVar3 = (Expr *)0x0;
  }
  else {
    if ((op == 0x98) && (pToken->z != (char *)0x0)) {
      op = (int)&iValue;
      iVar5 = sqlite3GetInt32(pToken->z,(int *)op);
      if (iVar5 == 0) goto LAB_00037f88;
      uVar9 = 0x34;
      uVar8 = 0;
      pEVar3 = (Expr *)sqlite3DbMallocRawNN(db,CONCAT44(puVar12,in_stack_ffffffd4));
      if (pEVar3 == (Expr *)0x0) goto LAB_0003806c;
      uVar8 = 0x34;
      op = 0;
      (**(code **)(puVar12 + -0x7e50))(pEVar3);
      pEVar3->op = 0x98;
      pEVar3->iAgg = -1;
    }
    else {
LAB_00037f88:
      uVar8 = 0;
      uVar11 = pToken->n;
      uVar9 = uVar11 + 0x35;
      pEVar3 = (Expr *)sqlite3DbMallocRawNN(db,CONCAT44(puVar12,in_stack_ffffffd4));
      if (pEVar3 == (Expr *)0x0) goto LAB_0003806c;
      uVar8 = 0x34;
      op = 0;
      (**(code **)(puVar12 + -0x7e50))(pEVar3);
      pEVar3->op = uVar10;
      pEVar3->iAgg = -1;
      if (uVar11 != 0xffffffff) {
        uVar8 = pToken->n;
        pEVar4 = pEVar3 + 1;
        (pEVar3->u).zToken = (char *)pEVar4;
        if (uVar8 != 0) {
          op = (int)pToken->z;
          pEVar4 = (Expr *)(**(code **)(puVar12 + -0x7d34))(pEVar4);
          uVar8 = pToken->n;
        }
        (&pEVar4->op)[uVar8] = '\0';
        if (dequote != 0) {
          bVar1 = *(pEVar3->u).zToken;
          op = (int)(char)bVar1;
          if (*(char *)((uint)bVar1 + *(int *)(puVar12 + -0x7fcc) + 0x24ac) < '\0') {
            if ((undefined1 *)op == &DAT_00000022) {
              uVar11 = 0x4000040;
            }
            else {
              uVar11 = 0x4000000;
            }
            pEVar3->flags = pEVar3->flags | uVar11;
            sqlite3Dequote((pEVar3->u).zToken);
            pEVar3->nHeight = 1;
            goto LAB_00038070;
          }
        }
        pEVar3->nHeight = 1;
        goto LAB_00038070;
      }
    }
    if (iValue == 0) {
      uVar11 = 0x20800400;
    }
    else {
      uVar11 = 0x10800400;
    }
    (pEVar3->u).iValue = iValue;
    pEVar3->flags = pEVar3->flags | uVar11;
    pEVar3->nHeight = 1;
  }
LAB_00038070:
  if (local_24 == *(sqlite3 **)puVar2) {
    return pEVar3;
  }
  db_00 = local_24;
  (**(code **)(puVar12 + -0x7d60))();
  pEVar3 = sqlite3ExprAlloc(db_00,0xa4,(Token *)0x0,0);
  if (pEVar3 != (Expr *)0x0) {
    pTVar6 = *(Table **)(op + (uVar8 * 0x12 + 6) * 4);
    iVar5 = *(int *)(op + (uVar8 * 0x12 + 0xc) * 4);
    (pEVar3->y).pTab = pTVar6;
    pEVar3->iTable = iVar5;
    if ((int)pTVar6->iPKey == uVar9) {
      pEVar3->iColumn = -1;
      return pEVar3;
    }
    uVar11 = pTVar6->tabFlags;
    pEVar3->iColumn = (ynVar)uVar9;
    if (((uVar11 & 0x60) == 0) || ((pTVar6->aCol[uVar9].colFlags & 0x60) == 0)) {
      if (0x3f < (int)uVar9) {
        uVar9 = 0x3f;
      }
      uVar11 = 1 << (uVar9 & 0x1f);
      if ((uVar9 & 0x20) == 0) {
        uVar9 = 0;
      }
      else {
        uVar9 = uVar11;
        uVar11 = 0;
      }
      *(uint *)(op + (uVar8 * 0x12 + 0x10) * 4) = *(uint *)(op + (uVar8 * 0x12 + 0x10) * 4) | uVar9;
      *(uint *)(op + (uVar8 * 0x12 + 0x11) * 4) = *(uint *)(op + (uVar8 * 0x12 + 0x11) * 4) | uVar11
      ;
      return pEVar3;
    }
    uVar9 = (uint)pTVar6->nCol;
    if ((int)uVar9 < 0x40) {
      uVar11 = 1 << (uVar9 & 0x1f);
      if ((uVar9 & 0x20) == 0) {
        uVar7 = 0;
      }
      else {
        uVar7 = uVar11;
        uVar11 = 0;
      }
      uVar9 = uVar11 - 1;
      iVar5 = (uint)(uVar9 < uVar11) + (uVar7 - 1);
    }
    else {
      iVar5 = -1;
      uVar9 = 0xffffffff;
    }
    *(int *)(op + (uVar8 * 0x12 + 0x10) * 4) = iVar5;
    *(uint *)(op + (uVar8 * 0x12 + 0x11) * 4) = uVar9;
  }
  return pEVar3;
}



undefined1 * FUN_00037f2c(undefined4 param_1,int *param_2,int *param_3,int param_4)

{
  undefined *puVar1;
  undefined1 *puVar2;
  undefined1 *puVar3;
  uint uVar4;
  int iVar5;
  uint uVar6;
  int iVar7;
  uint uVar8;
  undefined1 uVar9;
  int iVar10;
  int local_28;
  int local_24;
  
  puVar1 = PTR___stack_chk_guard_000f5568;
  local_28 = 0;
  local_24 = *(int *)PTR___stack_chk_guard_000f5568;
  uVar9 = SUB41(param_2,0);
  if (param_3 == (int *)0x0) {
    uVar8 = 0x34;
    iVar7 = 0;
    puVar2 = (undefined1 *)FUN_00036c00();
    if (puVar2 != (undefined1 *)0x0) {
      iVar7 = 0x34;
      param_2 = (int *)0x0;
      (*(code *)PTR_memset_000f5450)(puVar2);
      *(undefined2 *)(puVar2 + 0x22) = 0xffff;
      *puVar2 = uVar9;
      *(undefined4 *)(puVar2 + 0x18) = 1;
      goto LAB_00038070;
    }
LAB_0003806c:
    puVar2 = (undefined1 *)0x0;
  }
  else {
    if ((param_2 == (int *)&DAT_00000098) && (*param_3 != 0)) {
      param_2 = &local_28;
      iVar7 = FUN_000249b4();
      if (iVar7 == 0) goto LAB_00037f88;
      uVar8 = 0x34;
      iVar7 = 0;
      puVar2 = (undefined1 *)FUN_00036c00(param_1);
      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;
      iVar7 = 0x34;
      param_2 = (int *)0x0;
      (*(code *)PTR_memset_000f5450)(puVar2);
      *puVar2 = 0x98;
      *(undefined2 *)(puVar2 + 0x22) = 0xffff;
    }
    else {
LAB_00037f88:
      iVar7 = 0;
      iVar10 = param_3[1];
      uVar8 = iVar10 + 0x35;
      puVar2 = (undefined1 *)FUN_00036c00(param_1);
      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;
      iVar7 = 0x34;
      param_2 = (int *)0x0;
      (*(code *)PTR_memset_000f5450)(puVar2);
      *puVar2 = uVar9;
      *(undefined2 *)(puVar2 + 0x22) = 0xffff;
      if (iVar10 != -1) {
        iVar7 = param_3[1];
        puVar3 = puVar2 + 0x34;
        *(undefined1 **)(puVar2 + 8) = puVar3;
        if (iVar7 != 0) {
          param_2 = (int *)*param_3;
          puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3);
          iVar7 = param_3[1];
        }
        puVar3[iVar7] = 0;
        if ((param_4 == 0) ||
           (param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),
           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac])) {
          *(undefined4 *)(puVar2 + 0x18) = 1;
        }
        else {
          if (param_2 == (int *)&DAT_00000022) {
            uVar4 = 0x4000040;
          }
          else {
            uVar4 = 0x4000000;
          }
          *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;
          FUN_00020220();
          *(undefined4 *)(puVar2 + 0x18) = 1;
        }
        goto LAB_00038070;
      }
    }
    if (local_28 == 0) {
      uVar4 = 0x20800400;
    }
    else {
      uVar4 = 0x10800400;
    }
    *(int *)(puVar2 + 8) = local_28;
    *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;
    *(undefined4 *)(puVar2 + 0x18) = 1;
  }
LAB_00038070:
  if (local_24 == *(int *)puVar1) {
    return puVar2;
  }
  (*(code *)PTR___stack_chk_fail_000f5540)();
  puVar2 = (undefined1 *)FUN_00037f2c();
  if (puVar2 != (undefined1 *)0x0) {
    iVar5 = param_2[iVar7 * 0x12 + 6];
    iVar10 = param_2[iVar7 * 0x12 + 0xc];
    *(int *)(puVar2 + 0x2c) = iVar5;
    *(int *)(puVar2 + 0x1c) = iVar10;
    if ((int)*(short *)(iVar5 + 0x28) == uVar8) {
      *(undefined2 *)(puVar2 + 0x20) = 0xffff;
      return puVar2;
    }
    uVar4 = *(uint *)(iVar5 + 0x24);
    *(short *)(puVar2 + 0x20) = (short)uVar8;
    if (((uVar4 & 0x60) == 0) ||
       ((*(ushort *)(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10) & 0x60) == 0)) {
      if (0x3f < (int)uVar8) {
        uVar8 = 0x3f;
      }
      uVar4 = 1 << (uVar8 & 0x1f);
      if ((uVar8 & 0x20) == 0) {
        uVar8 = 0;
      }
      else {
        uVar8 = uVar4;
        uVar4 = 0;
      }
      param_2[iVar7 * 0x12 + 0x10] = param_2[iVar7 * 0x12 + 0x10] | uVar8;
      param_2[iVar7 * 0x12 + 0x11] = param_2[iVar7 * 0x12 + 0x11] | uVar4;
      return puVar2;
    }
    uVar8 = (uint)*(short *)(iVar5 + 0x2a);
    if ((int)uVar8 < 0x40) {
      uVar4 = 1 << (uVar8 & 0x1f);
      if ((uVar8 & 0x20) == 0) {
        uVar6 = 0;
      }
      else {
        uVar6 = uVar4;
        uVar4 = 0;
      }
      uVar8 = uVar4 - 1;
      iVar10 = (uint)(uVar8 < uVar4) + (uVar6 - 1);
    }
    else {
      iVar10 = -1;
      uVar8 = 0xffffffff;
    }
    param_2[iVar7 * 0x12 + 0x10] = iVar10;
    param_2[iVar7 * 0x12 + 0x11] = uVar8;
  }
  return puVar2;
}


lui gp,0xc
addiu gp,gp,0x5374
addu gp,gp,t9
addiu sp,sp,-0x40
sw s2,0x2c(sp)
lw s2,-0x7d38(gp)
sw gp,0x10(sp)
sw s3,0x30(sp)
or s3,a1,zero
sw ra,0x3c(sp)
sw s5,0x38(sp)
sw s4,0x34(sp)
sw s1,0x28(sp)
sw s0,0x24(sp)
sw zero,0x18(sp)
lw v0,0x0(s2)
sw v0,0x1c(sp)
beq a2,zero,0x000380a4
_li v0,0x98
or s1,a2,zero
or s0,a0,zero
beq a1,v0,0x00038028
_or s4,a3,zero
lw t9,-0x7fb4(gp)
or a2,zero,zero
lw s5,0x4(s1)
or a0,s0,zero
addiu t9,t9,0x6c00
bal 0x00036c00
_addiu a3,s5,0x35
lw gp,0x10(sp)
beq v0,zero,0x0003806c
_or s0,v0,zero
lw t9,-0x7e50(gp)
li a2,0x34
or a1,zero,zero
jalr t9
_or a0,v0,zero
li v1,-0x1
li v0,-0x1
lw gp,0x10(sp)
sb s3,0x0(s0)
beq s5,v0,0x0003811c
_sh v1,0x22(s0)
lw a2,0x4(s1)
addiu v1,s0,0x34
bne a2,zero,0x00038154
_sw v1,0x8(s0)
addu v1,v1,a2
beq s4,zero,0x0003801c
_sb zero,0x0(v1)
lw a0,0x8(s0)
lw v1,-0x7fcc(gp)
lb a1,0x0(a0)
addiu v1,v1,0x24ac
andi v0,a1,0xff
addu v0,v0,v1
lb v0,0x0(v0)
bltz v0,0x00038174
_li v1,0x22
li v0,0x1
b 0x00038070
_sw v0,0x18(s0)
lw a0,0x0(a2)
beq a0,zero,0x00037f88
_lw t9,-0x7fd8(gp)
addiu t9,t9,0x49b4
bal 0x000249b4
_addiu a1,sp,0x18
beq v0,zero,0x00037f88
_lw gp,0x10(sp)
lw t9,-0x7fb4(gp)
li a3,0x34
or a2,zero,zero
addiu t9,t9,0x6c00
bal 0x00036c00
_or a0,s0,zero
lw gp,0x10(sp)
bne v0,zero,0x000380f4
_or s0,v0,zero
or s0,zero,zero
lw a0,0x1c(sp)
or v0,s0,zero
lw v1,0x0(s2)
bne a0,v1,0x000381b0
_lw ra,0x3c(sp)
lw s5,0x38(sp)
lw s4,0x34(sp)
lw s3,0x30(sp)
lw s2,0x2c(sp)
lw s1,0x28(sp)
lw s0,0x24(sp)
jr ra
_addiu sp,sp,0x40
lw t9,-0x7fb4(gp)
li a3,0x34
addiu t9,t9,0x6c00
bal 0x00036c00
_or a2,zero,zero
lw gp,0x10(sp)
beq v0,zero,0x0003806c
_or s0,v0,zero
lw t9,-0x7e50(gp)
li a2,0x34
or a1,zero,zero
jalr t9
_or a0,s0,zero
li v0,-0x1
lw gp,0x10(sp)
sh v0,0x22(s0)
li v0,0x1
sb s3,0x0(s0)
b 0x00038070
_sw v0,0x18(s0)
lw t9,-0x7e50(gp)
li a2,0x34
or a1,zero,zero
jalr t9
_or a0,s0,zero
li v0,-0x68
lw gp,0x10(sp)
sb v0,0x0(s0)
li v0,-0x1
sh v0,0x22(s0)
lw a0,0x18(sp)
bne a0,zero,0x00038148
_lw v0,0x4(s0)
lui v1,0x2080
addiu v1,v1,0x400
or v0,v0,v1
sw a0,0x8(s0)
sw v0,0x4(s0)
li v0,0x1
b 0x00038070
_sw v0,0x18(s0)
lui v1,0x1080
b 0x00038130
_addiu v1,v1,0x400
lw t9,-0x7d34(gp)
or a0,v1,zero
jalr t9
_lw a1,0x0(s1)
lw gp,0x10(sp)
or v1,v0,zero
b 0x00037fec
_lw a2,0x4(s1)
beq a1,v1,0x000381a4
_lw v0,0x4(s0)
lui v1,0x400
lw t9,-0x7fd8(gp)
or v0,v0,v1
addiu t9,t9,0x220
bal 0x00020220
_sw v0,0x4(s0)
li v0,0x1
lw gp,0x10(sp)
b 0x00038070
_sw v0,0x18(s0)
lui v1,0x400
b 0x00038180
_addiu v1,v1,0x40
lw t9,-0x7d60(gp)
jalr t9
_nop
lui gp,0xc
addiu gp,gp,0x50e4
addu gp,gp,t9
addiu sp,sp,-0x28
lw t9,-0x7fb4(gp)
addiu t9,t9,0x7f2c
sw s2,0x20(sp)
sw s1,0x1c(sp)
or s2,a2,zero
sw s0,0x18(sp)
or s1,a3,zero
or s0,a1,zero
sw gp,0x10(sp)
or a2,zero,zero
sw ra,0x24(sp)
or a3,zero,zero
bal 0x00037f2c
_li a1,0xa4
beq v0,zero,0x000382b0
_sll a2,s2,0x3
addu v1,a2,s2
sll v1,v1,0x3
addu v1,s0,v1
lw a0,0x18(v1)
lw v1,0x30(v1)
sw a0,0x2c(v0)
sw v1,0x1c(v0)
lh v1,0x28(a0)
beq v1,s1,0x00038328
_lw ra,0x24(sp)
lw v1,0x24(a0)
andi v1,v1,0x60
beq v1,zero,0x000382c8
_sh s1,0x20(v0)
sll v1,s1,0x2
lw a1,0x4(a0)
addu v1,v1,s1
sll v1,v1,0x2
addu v1,a1,v1
lhu v1,0x10(v1)
andi v1,v1,0x60
beq v1,zero,0x000382c8
_nop
lh a0,0x2a(a0)
slti v1,a0,0x40
beq v1,zero,0x00038344
_andi a3,a0,0x20
li v1,0x1
sllv v1,v1,a0
or a1,v1,zero
movn v1,zero,a3
movz a1,zero,a3
addiu a0,v1,-0x1
addiu a1,a1,-0x1
sltu v1,a0,v1
addu v1,v1,a1
addu a1,a2,s2
sll a1,a1,0x3
addu a1,s0,a1
sw v1,0x40(a1)
sw a0,0x44(a1)
lw ra,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x28
li a0,0x3f
lw ra,0x24(sp)
slti v1,s1,0x40
movz s1,a0,v1
addu a1,a2,s2
li v1,0x1
sll a1,a1,0x3
lw s2,0x20(sp)
sllv v1,v1,s1
addu a1,s0,a1
lw s0,0x18(sp)
andi s1,s1,0x20
or a3,v1,zero
movn v1,zero,s1
movz a3,zero,s1
lw a2,0x40(a1)
lw a0,0x44(a1)
lw s1,0x1c(sp)
or a2,a2,a3
or v1,a0,v1
sw a2,0x40(a1)
sw v1,0x44(a1)
jr ra
_addiu sp,sp,0x28
li v1,-0x1
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
sh v1,0x20(v0)
jr ra
_addiu sp,sp,0x28
li v1,-0x1
b 0x0003829c
_li a0,-0x1
(translation_unit "undefined1 * FUN_00037f2c(undefined4 param_1,int *param_2,int *param_3,int param_4)\n\n{\n  undefined *puVar1;\n  undefined1 *puVar2;\n  undefined1 *puVar3;\n  uint uVar4;\n  int iVar5;\n  uint uVar6;\n  int iVar7;\n  uint uVar8;\n  undefined1 uVar9;\n  int iVar10;\n  int local_28;\n  int local_24;\n  \n  puVar1 = PTR___stack_chk_guard_000f5568;\n  local_28 = 0;\n  local_24 = *(int *)PTR___stack_chk_guard_000f5568;\n  uVar9 = SUB41(param_2,0);\n  if (param_3 == (int *)0x0) {\n    uVar8 = 0x34;\n    iVar7 = 0;\n    puVar2 = (undefined1 *)FUN_00036c00();\n    if (puVar2 != (undefined1 *)0x0) {\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      *puVar2 = uVar9;\n      *(undefined4 *)(puVar2 + 0x18) = 1;\n      goto LAB_00038070;\n    }\nLAB_0003806c:\n    puVar2 = (undefined1 *)0x0;\n  }\n  else {\n    if ((param_2 == (int *)&DAT_00000098) && (*param_3 != 0)) {\n      param_2 = &local_28;\n      iVar7 = FUN_000249b4();\n      if (iVar7 == 0) goto LAB_00037f88;\n      uVar8 = 0x34;\n      iVar7 = 0;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = 0x98;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n    }\n    else {\nLAB_00037f88:\n      iVar7 = 0;\n      iVar10 = param_3[1];\n      uVar8 = iVar10 + 0x35;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = uVar9;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      if (iVar10 != -1) {\n        iVar7 = param_3[1];\n        puVar3 = puVar2 + 0x34;\n        *(undefined1 **)(puVar2 + 8) = puVar3;\n        if (iVar7 != 0) {\n          param_2 = (int *)*param_3;\n          puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3);\n          iVar7 = param_3[1];\n        }\n        puVar3[iVar7] = 0;\n        if ((param_4 == 0) ||\n           (param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac])) {\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        else {\n          if (param_2 == (int *)&DAT_00000022) {\n            uVar4 = 0x4000040;\n          }\n          else {\n            uVar4 = 0x4000000;\n          }\n          *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n          FUN_00020220();\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        goto LAB_00038070;\n      }\n    }\n    if (local_28 == 0) {\n      uVar4 = 0x20800400;\n    }\n    else {\n      uVar4 = 0x10800400;\n    }\n    *(int *)(puVar2 + 8) = local_28;\n    *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n    *(undefined4 *)(puVar2 + 0x18) = 1;\n  }\nLAB_00038070:\n  if (local_24 == *(int *)puVar1) {\n    return puVar2;\n  }\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  puVar2 = (undefined1 *)FUN_00037f2c();\n  if (puVar2 != (undefined1 *)0x0) {\n    iVar5 = param_2[iVar7 * 0x12 + 6];\n    iVar10 = param_2[iVar7 * 0x12 + 0xc];\n    *(int *)(puVar2 + 0x2c) = iVar5;\n    *(int *)(puVar2 + 0x1c) = iVar10;\n    if ((int)*(short *)(iVar5 + 0x28) == uVar8) {\n      *(undefined2 *)(puVar2 + 0x20) = 0xffff;\n      return puVar2;\n    }\n    uVar4 = *(uint *)(iVar5 + 0x24);\n    *(short *)(puVar2 + 0x20) = (short)uVar8;\n    if (((uVar4 & 0x60) == 0) ||\n       ((*(ushort *)(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10) & 0x60) == 0)) {\n      if (0x3f < (int)uVar8) {\n        uVar8 = 0x3f;\n      }\n      uVar4 = 1 << (uVar8 & 0x1f);\n      if ((uVar8 & 0x20) == 0) {\n        uVar8 = 0;\n      }\n      else {\n        uVar8 = uVar4;\n        uVar4 = 0;\n      }\n      param_2[iVar7 * 0x12 + 0x10] = param_2[iVar7 * 0x12 + 0x10] | uVar8;\n      param_2[iVar7 * 0x12 + 0x11] = param_2[iVar7 * 0x12 + 0x11] | uVar4;\n      return puVar2;\n    }\n    uVar8 = (uint)*(short *)(iVar5 + 0x2a);\n    if ((int)uVar8 < 0x40) {\n      uVar4 = 1 << (uVar8 & 0x1f);\n      if ((uVar8 & 0x20) == 0) {\n        uVar6 = 0;\n      }\n      else {\n        uVar6 = uVar4;\n        uVar4 = 0;\n      }\n      uVar8 = uVar4 - 1;\n      iVar10 = (uint)(uVar8 < uVar4) + (uVar6 - 1);\n    }\n    else {\n      iVar10 = -1;\n      uVar8 = 0xffffffff;\n    }\n    param_2[iVar7 * 0x12 + 0x10] = iVar10;\n    param_2[iVar7 * 0x12 + 0x11] = uVar8;\n  }\n  return puVar2;\n}\n\n" (function_definition "undefined1 * FUN_00037f2c(undefined4 param_1,int *param_2,int *param_3,int param_4)\n\n{\n  undefined *puVar1;\n  undefined1 *puVar2;\n  undefined1 *puVar3;\n  uint uVar4;\n  int iVar5;\n  uint uVar6;\n  int iVar7;\n  uint uVar8;\n  undefined1 uVar9;\n  int iVar10;\n  int local_28;\n  int local_24;\n  \n  puVar1 = PTR___stack_chk_guard_000f5568;\n  local_28 = 0;\n  local_24 = *(int *)PTR___stack_chk_guard_000f5568;\n  uVar9 = SUB41(param_2,0);\n  if (param_3 == (int *)0x0) {\n    uVar8 = 0x34;\n    iVar7 = 0;\n    puVar2 = (undefined1 *)FUN_00036c00();\n    if (puVar2 != (undefined1 *)0x0) {\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      *puVar2 = uVar9;\n      *(undefined4 *)(puVar2 + 0x18) = 1;\n      goto LAB_00038070;\n    }\nLAB_0003806c:\n    puVar2 = (undefined1 *)0x0;\n  }\n  else {\n    if ((param_2 == (int *)&DAT_00000098) && (*param_3 != 0)) {\n      param_2 = &local_28;\n      iVar7 = FUN_000249b4();\n      if (iVar7 == 0) goto LAB_00037f88;\n      uVar8 = 0x34;\n      iVar7 = 0;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = 0x98;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n    }\n    else {\nLAB_00037f88:\n      iVar7 = 0;\n      iVar10 = param_3[1];\n      uVar8 = iVar10 + 0x35;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = uVar9;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      if (iVar10 != -1) {\n        iVar7 = param_3[1];\n        puVar3 = puVar2 + 0x34;\n        *(undefined1 **)(puVar2 + 8) = puVar3;\n        if (iVar7 != 0) {\n          param_2 = (int *)*param_3;\n          puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3);\n          iVar7 = param_3[1];\n        }\n        puVar3[iVar7] = 0;\n        if ((param_4 == 0) ||\n           (param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac])) {\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        else {\n          if (param_2 == (int *)&DAT_00000022) {\n            uVar4 = 0x4000040;\n          }\n          else {\n            uVar4 = 0x4000000;\n          }\n          *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n          FUN_00020220();\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        goto LAB_00038070;\n      }\n    }\n    if (local_28 == 0) {\n      uVar4 = 0x20800400;\n    }\n    else {\n      uVar4 = 0x10800400;\n    }\n    *(int *)(puVar2 + 8) = local_28;\n    *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n    *(undefined4 *)(puVar2 + 0x18) = 1;\n  }\nLAB_00038070:\n  if (local_24 == *(int *)puVar1) {\n    return puVar2;\n  }\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  puVar2 = (undefined1 *)FUN_00037f2c();\n  if (puVar2 != (undefined1 *)0x0) {\n    iVar5 = param_2[iVar7 * 0x12 + 6];\n    iVar10 = param_2[iVar7 * 0x12 + 0xc];\n    *(int *)(puVar2 + 0x2c) = iVar5;\n    *(int *)(puVar2 + 0x1c) = iVar10;\n    if ((int)*(short *)(iVar5 + 0x28) == uVar8) {\n      *(undefined2 *)(puVar2 + 0x20) = 0xffff;\n      return puVar2;\n    }\n    uVar4 = *(uint *)(iVar5 + 0x24);\n    *(short *)(puVar2 + 0x20) = (short)uVar8;\n    if (((uVar4 & 0x60) == 0) ||\n       ((*(ushort *)(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10) & 0x60) == 0)) {\n      if (0x3f < (int)uVar8) {\n        uVar8 = 0x3f;\n      }\n      uVar4 = 1 << (uVar8 & 0x1f);\n      if ((uVar8 & 0x20) == 0) {\n        uVar8 = 0;\n      }\n      else {\n        uVar8 = uVar4;\n        uVar4 = 0;\n      }\n      param_2[iVar7 * 0x12 + 0x10] = param_2[iVar7 * 0x12 + 0x10] | uVar8;\n      param_2[iVar7 * 0x12 + 0x11] = param_2[iVar7 * 0x12 + 0x11] | uVar4;\n      return puVar2;\n    }\n    uVar8 = (uint)*(short *)(iVar5 + 0x2a);\n    if ((int)uVar8 < 0x40) {\n      uVar4 = 1 << (uVar8 & 0x1f);\n      if ((uVar8 & 0x20) == 0) {\n        uVar6 = 0;\n      }\n      else {\n        uVar6 = uVar4;\n        uVar4 = 0;\n      }\n      uVar8 = uVar4 - 1;\n      iVar10 = (uint)(uVar8 < uVar4) + (uVar6 - 1);\n    }\n    else {\n      iVar10 = -1;\n      uVar8 = 0xffffffff;\n    }\n    param_2[iVar7 * 0x12 + 0x10] = iVar10;\n    param_2[iVar7 * 0x12 + 0x11] = uVar8;\n  }\n  return puVar2;\n}" type_identifier (pointer_declarator "* FUN_00037f2c(undefined4 param_1,int *param_2,int *param_3,int param_4)" * (function_declarator "FUN_00037f2c(undefined4 param_1,int *param_2,int *param_3,int param_4)" identifier (parameter_list "(undefined4 param_1,int *param_2,int *param_3,int param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int param_4" primitive_type identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  undefined1 *puVar2;\n  undefined1 *puVar3;\n  uint uVar4;\n  int iVar5;\n  uint uVar6;\n  int iVar7;\n  uint uVar8;\n  undefined1 uVar9;\n  int iVar10;\n  int local_28;\n  int local_24;\n  \n  puVar1 = PTR___stack_chk_guard_000f5568;\n  local_28 = 0;\n  local_24 = *(int *)PTR___stack_chk_guard_000f5568;\n  uVar9 = SUB41(param_2,0);\n  if (param_3 == (int *)0x0) {\n    uVar8 = 0x34;\n    iVar7 = 0;\n    puVar2 = (undefined1 *)FUN_00036c00();\n    if (puVar2 != (undefined1 *)0x0) {\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      *puVar2 = uVar9;\n      *(undefined4 *)(puVar2 + 0x18) = 1;\n      goto LAB_00038070;\n    }\nLAB_0003806c:\n    puVar2 = (undefined1 *)0x0;\n  }\n  else {\n    if ((param_2 == (int *)&DAT_00000098) && (*param_3 != 0)) {\n      param_2 = &local_28;\n      iVar7 = FUN_000249b4();\n      if (iVar7 == 0) goto LAB_00037f88;\n      uVar8 = 0x34;\n      iVar7 = 0;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = 0x98;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n    }\n    else {\nLAB_00037f88:\n      iVar7 = 0;\n      iVar10 = param_3[1];\n      uVar8 = iVar10 + 0x35;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = uVar9;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      if (iVar10 != -1) {\n        iVar7 = param_3[1];\n        puVar3 = puVar2 + 0x34;\n        *(undefined1 **)(puVar2 + 8) = puVar3;\n        if (iVar7 != 0) {\n          param_2 = (int *)*param_3;\n          puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3);\n          iVar7 = param_3[1];\n        }\n        puVar3[iVar7] = 0;\n        if ((param_4 == 0) ||\n           (param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac])) {\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        else {\n          if (param_2 == (int *)&DAT_00000022) {\n            uVar4 = 0x4000040;\n          }\n          else {\n            uVar4 = 0x4000000;\n          }\n          *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n          FUN_00020220();\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        goto LAB_00038070;\n      }\n    }\n    if (local_28 == 0) {\n      uVar4 = 0x20800400;\n    }\n    else {\n      uVar4 = 0x10800400;\n    }\n    *(int *)(puVar2 + 8) = local_28;\n    *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n    *(undefined4 *)(puVar2 + 0x18) = 1;\n  }\nLAB_00038070:\n  if (local_24 == *(int *)puVar1) {\n    return puVar2;\n  }\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  puVar2 = (undefined1 *)FUN_00037f2c();\n  if (puVar2 != (undefined1 *)0x0) {\n    iVar5 = param_2[iVar7 * 0x12 + 6];\n    iVar10 = param_2[iVar7 * 0x12 + 0xc];\n    *(int *)(puVar2 + 0x2c) = iVar5;\n    *(int *)(puVar2 + 0x1c) = iVar10;\n    if ((int)*(short *)(iVar5 + 0x28) == uVar8) {\n      *(undefined2 *)(puVar2 + 0x20) = 0xffff;\n      return puVar2;\n    }\n    uVar4 = *(uint *)(iVar5 + 0x24);\n    *(short *)(puVar2 + 0x20) = (short)uVar8;\n    if (((uVar4 & 0x60) == 0) ||\n       ((*(ushort *)(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10) & 0x60) == 0)) {\n      if (0x3f < (int)uVar8) {\n        uVar8 = 0x3f;\n      }\n      uVar4 = 1 << (uVar8 & 0x1f);\n      if ((uVar8 & 0x20) == 0) {\n        uVar8 = 0;\n      }\n      else {\n        uVar8 = uVar4;\n        uVar4 = 0;\n      }\n      param_2[iVar7 * 0x12 + 0x10] = param_2[iVar7 * 0x12 + 0x10] | uVar8;\n      param_2[iVar7 * 0x12 + 0x11] = param_2[iVar7 * 0x12 + 0x11] | uVar4;\n      return puVar2;\n    }\n    uVar8 = (uint)*(short *)(iVar5 + 0x2a);\n    if ((int)uVar8 < 0x40) {\n      uVar4 = 1 << (uVar8 & 0x1f);\n      if ((uVar8 & 0x20) == 0) {\n        uVar6 = 0;\n      }\n      else {\n        uVar6 = uVar4;\n        uVar4 = 0;\n      }\n      uVar8 = uVar4 - 1;\n      iVar10 = (uint)(uVar8 < uVar4) + (uVar6 - 1);\n    }\n    else {\n      iVar10 = -1;\n      uVar8 = 0xffffffff;\n    }\n    param_2[iVar7 * 0x12 + 0x10] = iVar10;\n    param_2[iVar7 * 0x12 + 0x11] = uVar8;\n  }\n  return puVar2;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "undefined1 uVar9;" type_identifier identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_000f5568;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000f5568" identifier = identifier) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "local_24 = *(int *)PTR___stack_chk_guard_000f5568;" (assignment_expression "local_24 = *(int *)PTR___stack_chk_guard_000f5568" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000f5568" * (cast_expression "(int *)PTR___stack_chk_guard_000f5568" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar9 = SUB41(param_2,0);" (assignment_expression "uVar9 = SUB41(param_2,0)" identifier = (call_expression "SUB41(param_2,0)" identifier (argument_list "(param_2,0)" ( identifier , number_literal )))) ;) (if_statement "if (param_3 == (int *)0x0) {\n    uVar8 = 0x34;\n    iVar7 = 0;\n    puVar2 = (undefined1 *)FUN_00036c00();\n    if (puVar2 != (undefined1 *)0x0) {\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      *puVar2 = uVar9;\n      *(undefined4 *)(puVar2 + 0x18) = 1;\n      goto LAB_00038070;\n    }\nLAB_0003806c:\n    puVar2 = (undefined1 *)0x0;\n  }\n  else {\n    if ((param_2 == (int *)&DAT_00000098) && (*param_3 != 0)) {\n      param_2 = &local_28;\n      iVar7 = FUN_000249b4();\n      if (iVar7 == 0) goto LAB_00037f88;\n      uVar8 = 0x34;\n      iVar7 = 0;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = 0x98;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n    }\n    else {\nLAB_00037f88:\n      iVar7 = 0;\n      iVar10 = param_3[1];\n      uVar8 = iVar10 + 0x35;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = uVar9;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      if (iVar10 != -1) {\n        iVar7 = param_3[1];\n        puVar3 = puVar2 + 0x34;\n        *(undefined1 **)(puVar2 + 8) = puVar3;\n        if (iVar7 != 0) {\n          param_2 = (int *)*param_3;\n          puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3);\n          iVar7 = param_3[1];\n        }\n        puVar3[iVar7] = 0;\n        if ((param_4 == 0) ||\n           (param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac])) {\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        else {\n          if (param_2 == (int *)&DAT_00000022) {\n            uVar4 = 0x4000040;\n          }\n          else {\n            uVar4 = 0x4000000;\n          }\n          *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n          FUN_00020220();\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        goto LAB_00038070;\n      }\n    }\n    if (local_28 == 0) {\n      uVar4 = 0x20800400;\n    }\n    else {\n      uVar4 = 0x10800400;\n    }\n    *(int *)(puVar2 + 8) = local_28;\n    *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n    *(undefined4 *)(puVar2 + 0x18) = 1;\n  }" if (parenthesized_expression "(param_3 == (int *)0x0)" ( (binary_expression "param_3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar8 = 0x34;\n    iVar7 = 0;\n    puVar2 = (undefined1 *)FUN_00036c00();\n    if (puVar2 != (undefined1 *)0x0) {\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      *puVar2 = uVar9;\n      *(undefined4 *)(puVar2 + 0x18) = 1;\n      goto LAB_00038070;\n    }\nLAB_0003806c:\n    puVar2 = (undefined1 *)0x0;\n  }" { (expression_statement "uVar8 = 0x34;" (assignment_expression "uVar8 = 0x34" identifier = number_literal) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "puVar2 = (undefined1 *)FUN_00036c00();" (assignment_expression "puVar2 = (undefined1 *)FUN_00036c00()" identifier = (cast_expression "(undefined1 *)FUN_00036c00()" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00036c00()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (puVar2 != (undefined1 *)0x0) {\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      *puVar2 = uVar9;\n      *(undefined4 *)(puVar2 + 0x18) = 1;\n      goto LAB_00038070;\n    }" if (parenthesized_expression "(puVar2 != (undefined1 *)0x0)" ( (binary_expression "puVar2 != (undefined1 *)0x0" identifier != (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      *puVar2 = uVar9;\n      *(undefined4 *)(puVar2 + 0x18) = 1;\n      goto LAB_00038070;\n    }" { (expression_statement "iVar7 = 0x34;" (assignment_expression "iVar7 = 0x34" identifier = number_literal) ;) (expression_statement "param_2 = (int *)0x0;" (assignment_expression "param_2 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "(*(code *)PTR_memset_000f5450)(puVar2);" (call_expression "(*(code *)PTR_memset_000f5450)(puVar2)" (parenthesized_expression "(*(code *)PTR_memset_000f5450)" ( (pointer_expression "*(code *)PTR_memset_000f5450" * (cast_expression "(code *)PTR_memset_000f5450" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2)" ( identifier ))) ;) (expression_statement "*(undefined2 *)(puVar2 + 0x22) = 0xffff;" (assignment_expression "*(undefined2 *)(puVar2 + 0x22) = 0xffff" (pointer_expression "*(undefined2 *)(puVar2 + 0x22)" * (cast_expression "(undefined2 *)(puVar2 + 0x22)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x22)" ( (binary_expression "puVar2 + 0x22" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*puVar2 = uVar9;" (assignment_expression "*puVar2 = uVar9" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "*(undefined4 *)(puVar2 + 0x18) = 1;" (assignment_expression "*(undefined4 *)(puVar2 + 0x18) = 1" (pointer_expression "*(undefined4 *)(puVar2 + 0x18)" * (cast_expression "(undefined4 *)(puVar2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x18)" ( (binary_expression "puVar2 + 0x18" identifier + number_literal) )))) = number_literal) ;) (goto_statement "goto LAB_00038070;" goto statement_identifier ;) })) (labeled_statement "LAB_0003806c:\n    puVar2 = (undefined1 *)0x0;" statement_identifier : (expression_statement "puVar2 = (undefined1 *)0x0;" (assignment_expression "puVar2 = (undefined1 *)0x0" identifier = (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) }) (else_clause "else {\n    if ((param_2 == (int *)&DAT_00000098) && (*param_3 != 0)) {\n      param_2 = &local_28;\n      iVar7 = FUN_000249b4();\n      if (iVar7 == 0) goto LAB_00037f88;\n      uVar8 = 0x34;\n      iVar7 = 0;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = 0x98;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n    }\n    else {\nLAB_00037f88:\n      iVar7 = 0;\n      iVar10 = param_3[1];\n      uVar8 = iVar10 + 0x35;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = uVar9;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      if (iVar10 != -1) {\n        iVar7 = param_3[1];\n        puVar3 = puVar2 + 0x34;\n        *(undefined1 **)(puVar2 + 8) = puVar3;\n        if (iVar7 != 0) {\n          param_2 = (int *)*param_3;\n          puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3);\n          iVar7 = param_3[1];\n        }\n        puVar3[iVar7] = 0;\n        if ((param_4 == 0) ||\n           (param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac])) {\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        else {\n          if (param_2 == (int *)&DAT_00000022) {\n            uVar4 = 0x4000040;\n          }\n          else {\n            uVar4 = 0x4000000;\n          }\n          *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n          FUN_00020220();\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        goto LAB_00038070;\n      }\n    }\n    if (local_28 == 0) {\n      uVar4 = 0x20800400;\n    }\n    else {\n      uVar4 = 0x10800400;\n    }\n    *(int *)(puVar2 + 8) = local_28;\n    *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n    *(undefined4 *)(puVar2 + 0x18) = 1;\n  }" else (compound_statement "{\n    if ((param_2 == (int *)&DAT_00000098) && (*param_3 != 0)) {\n      param_2 = &local_28;\n      iVar7 = FUN_000249b4();\n      if (iVar7 == 0) goto LAB_00037f88;\n      uVar8 = 0x34;\n      iVar7 = 0;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = 0x98;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n    }\n    else {\nLAB_00037f88:\n      iVar7 = 0;\n      iVar10 = param_3[1];\n      uVar8 = iVar10 + 0x35;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = uVar9;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      if (iVar10 != -1) {\n        iVar7 = param_3[1];\n        puVar3 = puVar2 + 0x34;\n        *(undefined1 **)(puVar2 + 8) = puVar3;\n        if (iVar7 != 0) {\n          param_2 = (int *)*param_3;\n          puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3);\n          iVar7 = param_3[1];\n        }\n        puVar3[iVar7] = 0;\n        if ((param_4 == 0) ||\n           (param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac])) {\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        else {\n          if (param_2 == (int *)&DAT_00000022) {\n            uVar4 = 0x4000040;\n          }\n          else {\n            uVar4 = 0x4000000;\n          }\n          *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n          FUN_00020220();\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        goto LAB_00038070;\n      }\n    }\n    if (local_28 == 0) {\n      uVar4 = 0x20800400;\n    }\n    else {\n      uVar4 = 0x10800400;\n    }\n    *(int *)(puVar2 + 8) = local_28;\n    *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n    *(undefined4 *)(puVar2 + 0x18) = 1;\n  }" { (if_statement "if ((param_2 == (int *)&DAT_00000098) && (*param_3 != 0)) {\n      param_2 = &local_28;\n      iVar7 = FUN_000249b4();\n      if (iVar7 == 0) goto LAB_00037f88;\n      uVar8 = 0x34;\n      iVar7 = 0;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = 0x98;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n    }\n    else {\nLAB_00037f88:\n      iVar7 = 0;\n      iVar10 = param_3[1];\n      uVar8 = iVar10 + 0x35;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = uVar9;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      if (iVar10 != -1) {\n        iVar7 = param_3[1];\n        puVar3 = puVar2 + 0x34;\n        *(undefined1 **)(puVar2 + 8) = puVar3;\n        if (iVar7 != 0) {\n          param_2 = (int *)*param_3;\n          puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3);\n          iVar7 = param_3[1];\n        }\n        puVar3[iVar7] = 0;\n        if ((param_4 == 0) ||\n           (param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac])) {\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        else {\n          if (param_2 == (int *)&DAT_00000022) {\n            uVar4 = 0x4000040;\n          }\n          else {\n            uVar4 = 0x4000000;\n          }\n          *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n          FUN_00020220();\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        goto LAB_00038070;\n      }\n    }" if (parenthesized_expression "((param_2 == (int *)&DAT_00000098) && (*param_3 != 0))" ( (binary_expression "(param_2 == (int *)&DAT_00000098) && (*param_3 != 0)" (parenthesized_expression "(param_2 == (int *)&DAT_00000098)" ( (binary_expression "param_2 == (int *)&DAT_00000098" identifier == (cast_expression "(int *)&DAT_00000098" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_00000098" & identifier))) )) && (parenthesized_expression "(*param_3 != 0)" ( (binary_expression "*param_3 != 0" (pointer_expression "*param_3" * identifier) != number_literal) ))) )) (compound_statement "{\n      param_2 = &local_28;\n      iVar7 = FUN_000249b4();\n      if (iVar7 == 0) goto LAB_00037f88;\n      uVar8 = 0x34;\n      iVar7 = 0;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = 0x98;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n    }" { (expression_statement "param_2 = &local_28;" (assignment_expression "param_2 = &local_28" identifier = (pointer_expression "&local_28" & identifier)) ;) (expression_statement "iVar7 = FUN_000249b4();" (assignment_expression "iVar7 = FUN_000249b4()" identifier = (call_expression "FUN_000249b4()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar7 == 0) goto LAB_00037f88;" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00037f88;" goto statement_identifier ;)) (expression_statement "uVar8 = 0x34;" (assignment_expression "uVar8 = 0x34" identifier = number_literal) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "puVar2 = (undefined1 *)FUN_00036c00(param_1);" (assignment_expression "puVar2 = (undefined1 *)FUN_00036c00(param_1)" identifier = (cast_expression "(undefined1 *)FUN_00036c00(param_1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00036c00(param_1)" identifier (argument_list "(param_1)" ( identifier ))))) ;) (if_statement "if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;" if (parenthesized_expression "(puVar2 == (undefined1 *)0x0)" ( (binary_expression "puVar2 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0003806c;" goto statement_identifier ;)) (expression_statement "iVar7 = 0x34;" (assignment_expression "iVar7 = 0x34" identifier = number_literal) ;) (expression_statement "param_2 = (int *)0x0;" (assignment_expression "param_2 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "(*(code *)PTR_memset_000f5450)(puVar2);" (call_expression "(*(code *)PTR_memset_000f5450)(puVar2)" (parenthesized_expression "(*(code *)PTR_memset_000f5450)" ( (pointer_expression "*(code *)PTR_memset_000f5450" * (cast_expression "(code *)PTR_memset_000f5450" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2)" ( identifier ))) ;) (expression_statement "*puVar2 = 0x98;" (assignment_expression "*puVar2 = 0x98" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "*(undefined2 *)(puVar2 + 0x22) = 0xffff;" (assignment_expression "*(undefined2 *)(puVar2 + 0x22) = 0xffff" (pointer_expression "*(undefined2 *)(puVar2 + 0x22)" * (cast_expression "(undefined2 *)(puVar2 + 0x22)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x22)" ( (binary_expression "puVar2 + 0x22" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\nLAB_00037f88:\n      iVar7 = 0;\n      iVar10 = param_3[1];\n      uVar8 = iVar10 + 0x35;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = uVar9;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      if (iVar10 != -1) {\n        iVar7 = param_3[1];\n        puVar3 = puVar2 + 0x34;\n        *(undefined1 **)(puVar2 + 8) = puVar3;\n        if (iVar7 != 0) {\n          param_2 = (int *)*param_3;\n          puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3);\n          iVar7 = param_3[1];\n        }\n        puVar3[iVar7] = 0;\n        if ((param_4 == 0) ||\n           (param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac])) {\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        else {\n          if (param_2 == (int *)&DAT_00000022) {\n            uVar4 = 0x4000040;\n          }\n          else {\n            uVar4 = 0x4000000;\n          }\n          *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n          FUN_00020220();\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        goto LAB_00038070;\n      }\n    }" else (compound_statement "{\nLAB_00037f88:\n      iVar7 = 0;\n      iVar10 = param_3[1];\n      uVar8 = iVar10 + 0x35;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = uVar9;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      if (iVar10 != -1) {\n        iVar7 = param_3[1];\n        puVar3 = puVar2 + 0x34;\n        *(undefined1 **)(puVar2 + 8) = puVar3;\n        if (iVar7 != 0) {\n          param_2 = (int *)*param_3;\n          puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3);\n          iVar7 = param_3[1];\n        }\n        puVar3[iVar7] = 0;\n        if ((param_4 == 0) ||\n           (param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac])) {\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        else {\n          if (param_2 == (int *)&DAT_00000022) {\n            uVar4 = 0x4000040;\n          }\n          else {\n            uVar4 = 0x4000000;\n          }\n          *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n          FUN_00020220();\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        goto LAB_00038070;\n      }\n    }" { (labeled_statement "LAB_00037f88:\n      iVar7 = 0;" statement_identifier : (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;)) (expression_statement "iVar10 = param_3[1];" (assignment_expression "iVar10 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (expression_statement "uVar8 = iVar10 + 0x35;" (assignment_expression "uVar8 = iVar10 + 0x35" identifier = (binary_expression "iVar10 + 0x35" identifier + number_literal)) ;) (expression_statement "puVar2 = (undefined1 *)FUN_00036c00(param_1);" (assignment_expression "puVar2 = (undefined1 *)FUN_00036c00(param_1)" identifier = (cast_expression "(undefined1 *)FUN_00036c00(param_1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00036c00(param_1)" identifier (argument_list "(param_1)" ( identifier ))))) ;) (if_statement "if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;" if (parenthesized_expression "(puVar2 == (undefined1 *)0x0)" ( (binary_expression "puVar2 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0003806c;" goto statement_identifier ;)) (expression_statement "iVar7 = 0x34;" (assignment_expression "iVar7 = 0x34" identifier = number_literal) ;) (expression_statement "param_2 = (int *)0x0;" (assignment_expression "param_2 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "(*(code *)PTR_memset_000f5450)(puVar2);" (call_expression "(*(code *)PTR_memset_000f5450)(puVar2)" (parenthesized_expression "(*(code *)PTR_memset_000f5450)" ( (pointer_expression "*(code *)PTR_memset_000f5450" * (cast_expression "(code *)PTR_memset_000f5450" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2)" ( identifier ))) ;) (expression_statement "*puVar2 = uVar9;" (assignment_expression "*puVar2 = uVar9" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "*(undefined2 *)(puVar2 + 0x22) = 0xffff;" (assignment_expression "*(undefined2 *)(puVar2 + 0x22) = 0xffff" (pointer_expression "*(undefined2 *)(puVar2 + 0x22)" * (cast_expression "(undefined2 *)(puVar2 + 0x22)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x22)" ( (binary_expression "puVar2 + 0x22" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (iVar10 != -1) {\n        iVar7 = param_3[1];\n        puVar3 = puVar2 + 0x34;\n        *(undefined1 **)(puVar2 + 8) = puVar3;\n        if (iVar7 != 0) {\n          param_2 = (int *)*param_3;\n          puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3);\n          iVar7 = param_3[1];\n        }\n        puVar3[iVar7] = 0;\n        if ((param_4 == 0) ||\n           (param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac])) {\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        else {\n          if (param_2 == (int *)&DAT_00000022) {\n            uVar4 = 0x4000040;\n          }\n          else {\n            uVar4 = 0x4000000;\n          }\n          *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n          FUN_00020220();\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        goto LAB_00038070;\n      }" if (parenthesized_expression "(iVar10 != -1)" ( (binary_expression "iVar10 != -1" identifier != number_literal) )) (compound_statement "{\n        iVar7 = param_3[1];\n        puVar3 = puVar2 + 0x34;\n        *(undefined1 **)(puVar2 + 8) = puVar3;\n        if (iVar7 != 0) {\n          param_2 = (int *)*param_3;\n          puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3);\n          iVar7 = param_3[1];\n        }\n        puVar3[iVar7] = 0;\n        if ((param_4 == 0) ||\n           (param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac])) {\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        else {\n          if (param_2 == (int *)&DAT_00000022) {\n            uVar4 = 0x4000040;\n          }\n          else {\n            uVar4 = 0x4000000;\n          }\n          *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n          FUN_00020220();\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        goto LAB_00038070;\n      }" { (expression_statement "iVar7 = param_3[1];" (assignment_expression "iVar7 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (expression_statement "puVar3 = puVar2 + 0x34;" (assignment_expression "puVar3 = puVar2 + 0x34" identifier = (binary_expression "puVar2 + 0x34" identifier + number_literal)) ;) (expression_statement "*(undefined1 **)(puVar2 + 8) = puVar3;" (assignment_expression "*(undefined1 **)(puVar2 + 8) = puVar3" (pointer_expression "*(undefined1 **)(puVar2 + 8)" * (cast_expression "(undefined1 **)(puVar2 + 8)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar2 + 8)" ( (binary_expression "puVar2 + 8" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar7 != 0) {\n          param_2 = (int *)*param_3;\n          puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3);\n          iVar7 = param_3[1];\n        }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n          param_2 = (int *)*param_3;\n          puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3);\n          iVar7 = param_3[1];\n        }" { (expression_statement "param_2 = (int *)*param_3;" (assignment_expression "param_2 = (int *)*param_3" identifier = (cast_expression "(int *)*param_3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_3" * identifier))) ;) (expression_statement "puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3);" (assignment_expression "puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_memcpy_000f556c)(puVar3)" (parenthesized_expression "(*(code *)PTR_memcpy_000f556c)" ( (pointer_expression "*(code *)PTR_memcpy_000f556c" * (cast_expression "(code *)PTR_memcpy_000f556c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar3)" ( identifier ))))) ;) (expression_statement "iVar7 = param_3[1];" (assignment_expression "iVar7 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) })) (expression_statement "puVar3[iVar7] = 0;" (assignment_expression "puVar3[iVar7] = 0" (subscript_expression "puVar3[iVar7]" identifier [ identifier ]) = number_literal) ;) (if_statement "if ((param_4 == 0) ||\n           (param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac])) {\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        else {\n          if (param_2 == (int *)&DAT_00000022) {\n            uVar4 = 0x4000040;\n          }\n          else {\n            uVar4 = 0x4000000;\n          }\n          *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n          FUN_00020220();\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }" if (parenthesized_expression "((param_4 == 0) ||\n           (param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac]))" ( (binary_expression "(param_4 == 0) ||\n           (param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac])" (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) || (parenthesized_expression "(param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac])" ( (comma_expression "param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac]" (assignment_expression "param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8)" identifier = (cast_expression "(int *)(int)(char)**(byte **)(puVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (cast_expression "(int)(char)**(byte **)(puVar2 + 8)" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)**(byte **)(puVar2 + 8)" ( (type_descriptor "char" primitive_type) ) (pointer_expression "**(byte **)(puVar2 + 8)" * (pointer_expression "*(byte **)(puVar2 + 8)" * (cast_expression "(byte **)(puVar2 + 8)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar2 + 8)" ( (binary_expression "puVar2 + 8" identifier + number_literal) ))))))))) , (binary_expression "-1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac]" number_literal < (cast_expression "(char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac]" identifier [ (binary_expression "**(byte **)(puVar2 + 8) + 0x24ac" (pointer_expression "**(byte **)(puVar2 + 8)" * (pointer_expression "*(byte **)(puVar2 + 8)" * (cast_expression "(byte **)(puVar2 + 8)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar2 + 8)" ( (binary_expression "puVar2 + 8" identifier + number_literal) ))))) + number_literal) ])))) ))) )) (compound_statement "{\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }" { (expression_statement "*(undefined4 *)(puVar2 + 0x18) = 1;" (assignment_expression "*(undefined4 *)(puVar2 + 0x18) = 1" (pointer_expression "*(undefined4 *)(puVar2 + 0x18)" * (cast_expression "(undefined4 *)(puVar2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x18)" ( (binary_expression "puVar2 + 0x18" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n          if (param_2 == (int *)&DAT_00000022) {\n            uVar4 = 0x4000040;\n          }\n          else {\n            uVar4 = 0x4000000;\n          }\n          *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n          FUN_00020220();\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }" else (compound_statement "{\n          if (param_2 == (int *)&DAT_00000022) {\n            uVar4 = 0x4000040;\n          }\n          else {\n            uVar4 = 0x4000000;\n          }\n          *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n          FUN_00020220();\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }" { (if_statement "if (param_2 == (int *)&DAT_00000022) {\n            uVar4 = 0x4000040;\n          }\n          else {\n            uVar4 = 0x4000000;\n          }" if (parenthesized_expression "(param_2 == (int *)&DAT_00000022)" ( (binary_expression "param_2 == (int *)&DAT_00000022" identifier == (cast_expression "(int *)&DAT_00000022" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_00000022" & identifier))) )) (compound_statement "{\n            uVar4 = 0x4000040;\n          }" { (expression_statement "uVar4 = 0x4000040;" (assignment_expression "uVar4 = 0x4000040" identifier = number_literal) ;) }) (else_clause "else {\n            uVar4 = 0x4000000;\n          }" else (compound_statement "{\n            uVar4 = 0x4000000;\n          }" { (expression_statement "uVar4 = 0x4000000;" (assignment_expression "uVar4 = 0x4000000" identifier = number_literal) ;) }))) (expression_statement "*(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;" (assignment_expression "*(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4" (pointer_expression "*(uint *)(puVar2 + 4)" * (cast_expression "(uint *)(puVar2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 4)" ( (binary_expression "puVar2 + 4" identifier + number_literal) )))) = (binary_expression "*(uint *)(puVar2 + 4) | uVar4" (pointer_expression "*(uint *)(puVar2 + 4)" * (cast_expression "(uint *)(puVar2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 4)" ( (binary_expression "puVar2 + 4" identifier + number_literal) )))) | identifier)) ;) (expression_statement "FUN_00020220();" (call_expression "FUN_00020220()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(undefined4 *)(puVar2 + 0x18) = 1;" (assignment_expression "*(undefined4 *)(puVar2 + 0x18) = 1" (pointer_expression "*(undefined4 *)(puVar2 + 0x18)" * (cast_expression "(undefined4 *)(puVar2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x18)" ( (binary_expression "puVar2 + 0x18" identifier + number_literal) )))) = number_literal) ;) }))) (goto_statement "goto LAB_00038070;" goto statement_identifier ;) })) }))) (if_statement "if (local_28 == 0) {\n      uVar4 = 0x20800400;\n    }\n    else {\n      uVar4 = 0x10800400;\n    }" if (parenthesized_expression "(local_28 == 0)" ( (binary_expression "local_28 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar4 = 0x20800400;\n    }" { (expression_statement "uVar4 = 0x20800400;" (assignment_expression "uVar4 = 0x20800400" identifier = number_literal) ;) }) (else_clause "else {\n      uVar4 = 0x10800400;\n    }" else (compound_statement "{\n      uVar4 = 0x10800400;\n    }" { (expression_statement "uVar4 = 0x10800400;" (assignment_expression "uVar4 = 0x10800400" identifier = number_literal) ;) }))) (expression_statement "*(int *)(puVar2 + 8) = local_28;" (assignment_expression "*(int *)(puVar2 + 8) = local_28" (pointer_expression "*(int *)(puVar2 + 8)" * (cast_expression "(int *)(puVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 8)" ( (binary_expression "puVar2 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;" (assignment_expression "*(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4" (pointer_expression "*(uint *)(puVar2 + 4)" * (cast_expression "(uint *)(puVar2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 4)" ( (binary_expression "puVar2 + 4" identifier + number_literal) )))) = (binary_expression "*(uint *)(puVar2 + 4) | uVar4" (pointer_expression "*(uint *)(puVar2 + 4)" * (cast_expression "(uint *)(puVar2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 4)" ( (binary_expression "puVar2 + 4" identifier + number_literal) )))) | identifier)) ;) (expression_statement "*(undefined4 *)(puVar2 + 0x18) = 1;" (assignment_expression "*(undefined4 *)(puVar2 + 0x18) = 1" (pointer_expression "*(undefined4 *)(puVar2 + 0x18)" * (cast_expression "(undefined4 *)(puVar2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x18)" ( (binary_expression "puVar2 + 0x18" identifier + number_literal) )))) = number_literal) ;) }))) (labeled_statement "LAB_00038070:\n  if (local_24 == *(int *)puVar1) {\n    return puVar2;\n  }" statement_identifier : (if_statement "if (local_24 == *(int *)puVar1) {\n    return puVar2;\n  }" if (parenthesized_expression "(local_24 == *(int *)puVar1)" ( (binary_expression "local_24 == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return puVar2;\n  }" { (return_statement "return puVar2;" return identifier ;) }))) (expression_statement "(*(code *)PTR___stack_chk_fail_000f5540)();" (call_expression "(*(code *)PTR___stack_chk_fail_000f5540)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000f5540)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000f5540" * (cast_expression "(code *)PTR___stack_chk_fail_000f5540" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puVar2 = (undefined1 *)FUN_00037f2c();" (assignment_expression "puVar2 = (undefined1 *)FUN_00037f2c()" identifier = (cast_expression "(undefined1 *)FUN_00037f2c()" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00037f2c()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (puVar2 != (undefined1 *)0x0) {\n    iVar5 = param_2[iVar7 * 0x12 + 6];\n    iVar10 = param_2[iVar7 * 0x12 + 0xc];\n    *(int *)(puVar2 + 0x2c) = iVar5;\n    *(int *)(puVar2 + 0x1c) = iVar10;\n    if ((int)*(short *)(iVar5 + 0x28) == uVar8) {\n      *(undefined2 *)(puVar2 + 0x20) = 0xffff;\n      return puVar2;\n    }\n    uVar4 = *(uint *)(iVar5 + 0x24);\n    *(short *)(puVar2 + 0x20) = (short)uVar8;\n    if (((uVar4 & 0x60) == 0) ||\n       ((*(ushort *)(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10) & 0x60) == 0)) {\n      if (0x3f < (int)uVar8) {\n        uVar8 = 0x3f;\n      }\n      uVar4 = 1 << (uVar8 & 0x1f);\n      if ((uVar8 & 0x20) == 0) {\n        uVar8 = 0;\n      }\n      else {\n        uVar8 = uVar4;\n        uVar4 = 0;\n      }\n      param_2[iVar7 * 0x12 + 0x10] = param_2[iVar7 * 0x12 + 0x10] | uVar8;\n      param_2[iVar7 * 0x12 + 0x11] = param_2[iVar7 * 0x12 + 0x11] | uVar4;\n      return puVar2;\n    }\n    uVar8 = (uint)*(short *)(iVar5 + 0x2a);\n    if ((int)uVar8 < 0x40) {\n      uVar4 = 1 << (uVar8 & 0x1f);\n      if ((uVar8 & 0x20) == 0) {\n        uVar6 = 0;\n      }\n      else {\n        uVar6 = uVar4;\n        uVar4 = 0;\n      }\n      uVar8 = uVar4 - 1;\n      iVar10 = (uint)(uVar8 < uVar4) + (uVar6 - 1);\n    }\n    else {\n      iVar10 = -1;\n      uVar8 = 0xffffffff;\n    }\n    param_2[iVar7 * 0x12 + 0x10] = iVar10;\n    param_2[iVar7 * 0x12 + 0x11] = uVar8;\n  }" if (parenthesized_expression "(puVar2 != (undefined1 *)0x0)" ( (binary_expression "puVar2 != (undefined1 *)0x0" identifier != (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar5 = param_2[iVar7 * 0x12 + 6];\n    iVar10 = param_2[iVar7 * 0x12 + 0xc];\n    *(int *)(puVar2 + 0x2c) = iVar5;\n    *(int *)(puVar2 + 0x1c) = iVar10;\n    if ((int)*(short *)(iVar5 + 0x28) == uVar8) {\n      *(undefined2 *)(puVar2 + 0x20) = 0xffff;\n      return puVar2;\n    }\n    uVar4 = *(uint *)(iVar5 + 0x24);\n    *(short *)(puVar2 + 0x20) = (short)uVar8;\n    if (((uVar4 & 0x60) == 0) ||\n       ((*(ushort *)(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10) & 0x60) == 0)) {\n      if (0x3f < (int)uVar8) {\n        uVar8 = 0x3f;\n      }\n      uVar4 = 1 << (uVar8 & 0x1f);\n      if ((uVar8 & 0x20) == 0) {\n        uVar8 = 0;\n      }\n      else {\n        uVar8 = uVar4;\n        uVar4 = 0;\n      }\n      param_2[iVar7 * 0x12 + 0x10] = param_2[iVar7 * 0x12 + 0x10] | uVar8;\n      param_2[iVar7 * 0x12 + 0x11] = param_2[iVar7 * 0x12 + 0x11] | uVar4;\n      return puVar2;\n    }\n    uVar8 = (uint)*(short *)(iVar5 + 0x2a);\n    if ((int)uVar8 < 0x40) {\n      uVar4 = 1 << (uVar8 & 0x1f);\n      if ((uVar8 & 0x20) == 0) {\n        uVar6 = 0;\n      }\n      else {\n        uVar6 = uVar4;\n        uVar4 = 0;\n      }\n      uVar8 = uVar4 - 1;\n      iVar10 = (uint)(uVar8 < uVar4) + (uVar6 - 1);\n    }\n    else {\n      iVar10 = -1;\n      uVar8 = 0xffffffff;\n    }\n    param_2[iVar7 * 0x12 + 0x10] = iVar10;\n    param_2[iVar7 * 0x12 + 0x11] = uVar8;\n  }" { (expression_statement "iVar5 = param_2[iVar7 * 0x12 + 6];" (assignment_expression "iVar5 = param_2[iVar7 * 0x12 + 6]" identifier = (subscript_expression "param_2[iVar7 * 0x12 + 6]" identifier [ (binary_expression "iVar7 * 0x12 + 6" (binary_expression "iVar7 * 0x12" identifier * number_literal) + number_literal) ])) ;) (expression_statement "iVar10 = param_2[iVar7 * 0x12 + 0xc];" (assignment_expression "iVar10 = param_2[iVar7 * 0x12 + 0xc]" identifier = (subscript_expression "param_2[iVar7 * 0x12 + 0xc]" identifier [ (binary_expression "iVar7 * 0x12 + 0xc" (binary_expression "iVar7 * 0x12" identifier * number_literal) + number_literal) ])) ;) (expression_statement "*(int *)(puVar2 + 0x2c) = iVar5;" (assignment_expression "*(int *)(puVar2 + 0x2c) = iVar5" (pointer_expression "*(int *)(puVar2 + 0x2c)" * (cast_expression "(int *)(puVar2 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x2c)" ( (binary_expression "puVar2 + 0x2c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(puVar2 + 0x1c) = iVar10;" (assignment_expression "*(int *)(puVar2 + 0x1c) = iVar10" (pointer_expression "*(int *)(puVar2 + 0x1c)" * (cast_expression "(int *)(puVar2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x1c)" ( (binary_expression "puVar2 + 0x1c" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((int)*(short *)(iVar5 + 0x28) == uVar8) {\n      *(undefined2 *)(puVar2 + 0x20) = 0xffff;\n      return puVar2;\n    }" if (parenthesized_expression "((int)*(short *)(iVar5 + 0x28) == uVar8)" ( (binary_expression "(int)*(short *)(iVar5 + 0x28) == uVar8" (cast_expression "(int)*(short *)(iVar5 + 0x28)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(short *)(iVar5 + 0x28)" * (cast_expression "(short *)(iVar5 + 0x28)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x28)" ( (binary_expression "iVar5 + 0x28" identifier + number_literal) ))))) == identifier) )) (compound_statement "{\n      *(undefined2 *)(puVar2 + 0x20) = 0xffff;\n      return puVar2;\n    }" { (expression_statement "*(undefined2 *)(puVar2 + 0x20) = 0xffff;" (assignment_expression "*(undefined2 *)(puVar2 + 0x20) = 0xffff" (pointer_expression "*(undefined2 *)(puVar2 + 0x20)" * (cast_expression "(undefined2 *)(puVar2 + 0x20)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x20)" ( (binary_expression "puVar2 + 0x20" identifier + number_literal) )))) = number_literal) ;) (return_statement "return puVar2;" return identifier ;) })) (expression_statement "uVar4 = *(uint *)(iVar5 + 0x24);" (assignment_expression "uVar4 = *(uint *)(iVar5 + 0x24)" identifier = (pointer_expression "*(uint *)(iVar5 + 0x24)" * (cast_expression "(uint *)(iVar5 + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x24)" ( (binary_expression "iVar5 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "*(short *)(puVar2 + 0x20) = (short)uVar8;" (assignment_expression "*(short *)(puVar2 + 0x20) = (short)uVar8" (pointer_expression "*(short *)(puVar2 + 0x20)" * (cast_expression "(short *)(puVar2 + 0x20)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x20)" ( (binary_expression "puVar2 + 0x20" identifier + number_literal) )))) = (cast_expression "(short)uVar8" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) ;) (if_statement "if (((uVar4 & 0x60) == 0) ||\n       ((*(ushort *)(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10) & 0x60) == 0)) {\n      if (0x3f < (int)uVar8) {\n        uVar8 = 0x3f;\n      }\n      uVar4 = 1 << (uVar8 & 0x1f);\n      if ((uVar8 & 0x20) == 0) {\n        uVar8 = 0;\n      }\n      else {\n        uVar8 = uVar4;\n        uVar4 = 0;\n      }\n      param_2[iVar7 * 0x12 + 0x10] = param_2[iVar7 * 0x12 + 0x10] | uVar8;\n      param_2[iVar7 * 0x12 + 0x11] = param_2[iVar7 * 0x12 + 0x11] | uVar4;\n      return puVar2;\n    }" if (parenthesized_expression "(((uVar4 & 0x60) == 0) ||\n       ((*(ushort *)(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10) & 0x60) == 0))" ( (binary_expression "((uVar4 & 0x60) == 0) ||\n       ((*(ushort *)(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10) & 0x60) == 0)" (parenthesized_expression "((uVar4 & 0x60) == 0)" ( (binary_expression "(uVar4 & 0x60) == 0" (parenthesized_expression "(uVar4 & 0x60)" ( (binary_expression "uVar4 & 0x60" identifier & number_literal) )) == number_literal) )) || (parenthesized_expression "((*(ushort *)(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10) & 0x60) == 0)" ( (binary_expression "(*(ushort *)(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10) & 0x60) == 0" (parenthesized_expression "(*(ushort *)(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10) & 0x60)" ( (binary_expression "*(ushort *)(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10) & 0x60" (pointer_expression "*(ushort *)(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10)" * (cast_expression "(ushort *)(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10)" ( (binary_expression "*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10" (binary_expression "*(int *)(iVar5 + 4) + uVar8 * 0x14" (pointer_expression "*(int *)(iVar5 + 4)" * (cast_expression "(int *)(iVar5 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 4)" ( (binary_expression "iVar5 + 4" identifier + number_literal) )))) + (binary_expression "uVar8 * 0x14" identifier * number_literal)) + number_literal) )))) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n      if (0x3f < (int)uVar8) {\n        uVar8 = 0x3f;\n      }\n      uVar4 = 1 << (uVar8 & 0x1f);\n      if ((uVar8 & 0x20) == 0) {\n        uVar8 = 0;\n      }\n      else {\n        uVar8 = uVar4;\n        uVar4 = 0;\n      }\n      param_2[iVar7 * 0x12 + 0x10] = param_2[iVar7 * 0x12 + 0x10] | uVar8;\n      param_2[iVar7 * 0x12 + 0x11] = param_2[iVar7 * 0x12 + 0x11] | uVar4;\n      return puVar2;\n    }" { (if_statement "if (0x3f < (int)uVar8) {\n        uVar8 = 0x3f;\n      }" if (parenthesized_expression "(0x3f < (int)uVar8)" ( (binary_expression "0x3f < (int)uVar8" number_literal < (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n        uVar8 = 0x3f;\n      }" { (expression_statement "uVar8 = 0x3f;" (assignment_expression "uVar8 = 0x3f" identifier = number_literal) ;) })) (expression_statement "uVar4 = 1 << (uVar8 & 0x1f);" (assignment_expression "uVar4 = 1 << (uVar8 & 0x1f)" identifier = (binary_expression "1 << (uVar8 & 0x1f)" number_literal << (parenthesized_expression "(uVar8 & 0x1f)" ( (binary_expression "uVar8 & 0x1f" identifier & number_literal) )))) ;) (if_statement "if ((uVar8 & 0x20) == 0) {\n        uVar8 = 0;\n      }\n      else {\n        uVar8 = uVar4;\n        uVar4 = 0;\n      }" if (parenthesized_expression "((uVar8 & 0x20) == 0)" ( (binary_expression "(uVar8 & 0x20) == 0" (parenthesized_expression "(uVar8 & 0x20)" ( (binary_expression "uVar8 & 0x20" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        uVar8 = 0;\n      }" { (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        uVar8 = uVar4;\n        uVar4 = 0;\n      }" else (compound_statement "{\n        uVar8 = uVar4;\n        uVar4 = 0;\n      }" { (expression_statement "uVar8 = uVar4;" (assignment_expression "uVar8 = uVar4" identifier = identifier) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) }))) (expression_statement "param_2[iVar7 * 0x12 + 0x10] = param_2[iVar7 * 0x12 + 0x10] | uVar8;" (assignment_expression "param_2[iVar7 * 0x12 + 0x10] = param_2[iVar7 * 0x12 + 0x10] | uVar8" (subscript_expression "param_2[iVar7 * 0x12 + 0x10]" identifier [ (binary_expression "iVar7 * 0x12 + 0x10" (binary_expression "iVar7 * 0x12" identifier * number_literal) + number_literal) ]) = (binary_expression "param_2[iVar7 * 0x12 + 0x10] | uVar8" (subscript_expression "param_2[iVar7 * 0x12 + 0x10]" identifier [ (binary_expression "iVar7 * 0x12 + 0x10" (binary_expression "iVar7 * 0x12" identifier * number_literal) + number_literal) ]) | identifier)) ;) (expression_statement "param_2[iVar7 * 0x12 + 0x11] = param_2[iVar7 * 0x12 + 0x11] | uVar4;" (assignment_expression "param_2[iVar7 * 0x12 + 0x11] = param_2[iVar7 * 0x12 + 0x11] | uVar4" (subscript_expression "param_2[iVar7 * 0x12 + 0x11]" identifier [ (binary_expression "iVar7 * 0x12 + 0x11" (binary_expression "iVar7 * 0x12" identifier * number_literal) + number_literal) ]) = (binary_expression "param_2[iVar7 * 0x12 + 0x11] | uVar4" (subscript_expression "param_2[iVar7 * 0x12 + 0x11]" identifier [ (binary_expression "iVar7 * 0x12 + 0x11" (binary_expression "iVar7 * 0x12" identifier * number_literal) + number_literal) ]) | identifier)) ;) (return_statement "return puVar2;" return identifier ;) })) (expression_statement "uVar8 = (uint)*(short *)(iVar5 + 0x2a);" (assignment_expression "uVar8 = (uint)*(short *)(iVar5 + 0x2a)" identifier = (binary_expression "(uint)*(short *)(iVar5 + 0x2a)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(short *)(iVar5 + 0x2a)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x2a)" ( (binary_expression "iVar5 + 0x2a" identifier + number_literal) ))))) ;) (if_statement "if ((int)uVar8 < 0x40) {\n      uVar4 = 1 << (uVar8 & 0x1f);\n      if ((uVar8 & 0x20) == 0) {\n        uVar6 = 0;\n      }\n      else {\n        uVar6 = uVar4;\n        uVar4 = 0;\n      }\n      uVar8 = uVar4 - 1;\n      iVar10 = (uint)(uVar8 < uVar4) + (uVar6 - 1);\n    }\n    else {\n      iVar10 = -1;\n      uVar8 = 0xffffffff;\n    }" if (parenthesized_expression "((int)uVar8 < 0x40)" ( (binary_expression "(int)uVar8 < 0x40" (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n      uVar4 = 1 << (uVar8 & 0x1f);\n      if ((uVar8 & 0x20) == 0) {\n        uVar6 = 0;\n      }\n      else {\n        uVar6 = uVar4;\n        uVar4 = 0;\n      }\n      uVar8 = uVar4 - 1;\n      iVar10 = (uint)(uVar8 < uVar4) + (uVar6 - 1);\n    }" { (expression_statement "uVar4 = 1 << (uVar8 & 0x1f);" (assignment_expression "uVar4 = 1 << (uVar8 & 0x1f)" identifier = (binary_expression "1 << (uVar8 & 0x1f)" number_literal << (parenthesized_expression "(uVar8 & 0x1f)" ( (binary_expression "uVar8 & 0x1f" identifier & number_literal) )))) ;) (if_statement "if ((uVar8 & 0x20) == 0) {\n        uVar6 = 0;\n      }\n      else {\n        uVar6 = uVar4;\n        uVar4 = 0;\n      }" if (parenthesized_expression "((uVar8 & 0x20) == 0)" ( (binary_expression "(uVar8 & 0x20) == 0" (parenthesized_expression "(uVar8 & 0x20)" ( (binary_expression "uVar8 & 0x20" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        uVar6 = 0;\n      }" { (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        uVar6 = uVar4;\n        uVar4 = 0;\n      }" else (compound_statement "{\n        uVar6 = uVar4;\n        uVar4 = 0;\n      }" { (expression_statement "uVar6 = uVar4;" (assignment_expression "uVar6 = uVar4" identifier = identifier) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) }))) (expression_statement "uVar8 = uVar4 - 1;" (assignment_expression "uVar8 = uVar4 - 1" identifier = (binary_expression "uVar4 - 1" identifier - number_literal)) ;) (expression_statement "iVar10 = (uint)(uVar8 < uVar4) + (uVar6 - 1);" (assignment_expression "iVar10 = (uint)(uVar8 < uVar4) + (uVar6 - 1)" identifier = (binary_expression "(uint)(uVar8 < uVar4) + (uVar6 - 1)" (call_expression "(uint)(uVar8 < uVar4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar8 < uVar4)" ( (binary_expression "uVar8 < uVar4" identifier < identifier) ))) + (parenthesized_expression "(uVar6 - 1)" ( (binary_expression "uVar6 - 1" identifier - number_literal) )))) ;) }) (else_clause "else {\n      iVar10 = -1;\n      uVar8 = 0xffffffff;\n    }" else (compound_statement "{\n      iVar10 = -1;\n      uVar8 = 0xffffffff;\n    }" { (expression_statement "iVar10 = -1;" (assignment_expression "iVar10 = -1" identifier = number_literal) ;) (expression_statement "uVar8 = 0xffffffff;" (assignment_expression "uVar8 = 0xffffffff" identifier = number_literal) ;) }))) (expression_statement "param_2[iVar7 * 0x12 + 0x10] = iVar10;" (assignment_expression "param_2[iVar7 * 0x12 + 0x10] = iVar10" (subscript_expression "param_2[iVar7 * 0x12 + 0x10]" identifier [ (binary_expression "iVar7 * 0x12 + 0x10" (binary_expression "iVar7 * 0x12" identifier * number_literal) + number_literal) ]) = identifier) ;) (expression_statement "param_2[iVar7 * 0x12 + 0x11] = uVar8;" (assignment_expression "param_2[iVar7 * 0x12 + 0x11] = uVar8" (subscript_expression "param_2[iVar7 * 0x12 + 0x11]" identifier [ (binary_expression "iVar7 * 0x12 + 0x11" (binary_expression "iVar7 * 0x12" identifier * number_literal) + number_literal) ]) = identifier) ;) })) (return_statement "return puVar2;" return identifier ;) })))
(translation_unit "Expr * sqlite3ExprAlloc(sqlite3 *db,int op,Token *pToken,int dequote)\n\n{\n  byte bVar1;\n  undefined *puVar2;\n  Expr *pEVar3;\n  Expr *pEVar4;\n  int iVar5;\n  sqlite3 *db_00;\n  Table *pTVar6;\n  uint uVar7;\n  uint uVar8;\n  uint uVar9;\n  u8 uVar10;\n  uint uVar11;\n  undefined1 *puVar12;\n  undefined4 in_stack_ffffffd4;\n  int iValue;\n  sqlite3 *local_24;\n  \n  puVar2 = PTR___stack_chk_guard_000f5568;\n  puVar12 = &_gp;\n  iValue = 0;\n  local_24 = *(sqlite3 **)PTR___stack_chk_guard_000f5568;\n  uVar10 = (u8)op;\n  if (pToken == (Token *)0x0) {\n    uVar9 = 0x34;\n    uVar8 = 0;\n    pEVar3 = (Expr *)sqlite3DbMallocRawNN(db,CONCAT44(&_gp,in_stack_ffffffd4));\n    if (pEVar3 != (Expr *)0x0) {\n      uVar8 = 0x34;\n      op = 0;\n      (**(code **)(puVar12 + -0x7e50))(pEVar3);\n      pEVar3->iAgg = -1;\n      pEVar3->op = uVar10;\n      pEVar3->nHeight = 1;\n      goto LAB_00038070;\n    }\nLAB_0003806c:\n    pEVar3 = (Expr *)0x0;\n  }\n  else {\n    if ((op == 0x98) && (pToken->z != (char *)0x0)) {\n      op = (int)&iValue;\n      iVar5 = sqlite3GetInt32(pToken->z,(int *)op);\n      if (iVar5 == 0) goto LAB_00037f88;\n      uVar9 = 0x34;\n      uVar8 = 0;\n      pEVar3 = (Expr *)sqlite3DbMallocRawNN(db,CONCAT44(puVar12,in_stack_ffffffd4));\n      if (pEVar3 == (Expr *)0x0) goto LAB_0003806c;\n      uVar8 = 0x34;\n      op = 0;\n      (**(code **)(puVar12 + -0x7e50))(pEVar3);\n      pEVar3->op = 0x98;\n      pEVar3->iAgg = -1;\n    }\n    else {\nLAB_00037f88:\n      uVar8 = 0;\n      uVar11 = pToken->n;\n      uVar9 = uVar11 + 0x35;\n      pEVar3 = (Expr *)sqlite3DbMallocRawNN(db,CONCAT44(puVar12,in_stack_ffffffd4));\n      if (pEVar3 == (Expr *)0x0) goto LAB_0003806c;\n      uVar8 = 0x34;\n      op = 0;\n      (**(code **)(puVar12 + -0x7e50))(pEVar3);\n      pEVar3->op = uVar10;\n      pEVar3->iAgg = -1;\n      if (uVar11 != 0xffffffff) {\n        uVar8 = pToken->n;\n        pEVar4 = pEVar3 + 1;\n        (pEVar3->u).zToken = (char *)pEVar4;\n        if (uVar8 != 0) {\n          op = (int)pToken->z;\n          pEVar4 = (Expr *)(**(code **)(puVar12 + -0x7d34))(pEVar4);\n          uVar8 = pToken->n;\n        }\n        (&pEVar4->op)[uVar8] = '\0';\n        if (dequote != 0) {\n          bVar1 = *(pEVar3->u).zToken;\n          op = (int)(char)bVar1;\n          if (*(char *)((uint)bVar1 + *(int *)(puVar12 + -0x7fcc) + 0x24ac) < '\0') {\n            if ((undefined1 *)op == &DAT_00000022) {\n              uVar11 = 0x4000040;\n            }\n            else {\n              uVar11 = 0x4000000;\n            }\n            pEVar3->flags = pEVar3->flags | uVar11;\n            sqlite3Dequote((pEVar3->u).zToken);\n            pEVar3->nHeight = 1;\n            goto LAB_00038070;\n          }\n        }\n        pEVar3->nHeight = 1;\n        goto LAB_00038070;\n      }\n    }\n    if (iValue == 0) {\n      uVar11 = 0x20800400;\n    }\n    else {\n      uVar11 = 0x10800400;\n    }\n    (pEVar3->u).iValue = iValue;\n    pEVar3->flags = pEVar3->flags | uVar11;\n    pEVar3->nHeight = 1;\n  }\nLAB_00038070:\n  if (local_24 == *(sqlite3 **)puVar2) {\n    return pEVar3;\n  }\n  db_00 = local_24;\n  (**(code **)(puVar12 + -0x7d60))();\n  pEVar3 = sqlite3ExprAlloc(db_00,0xa4,(Token *)0x0,0);\n  if (pEVar3 != (Expr *)0x0) {\n    pTVar6 = *(Table **)(op + (uVar8 * 0x12 + 6) * 4);\n    iVar5 = *(int *)(op + (uVar8 * 0x12 + 0xc) * 4);\n    (pEVar3->y).pTab = pTVar6;\n    pEVar3->iTable = iVar5;\n    if ((int)pTVar6->iPKey == uVar9) {\n      pEVar3->iColumn = -1;\n      return pEVar3;\n    }\n    uVar11 = pTVar6->tabFlags;\n    pEVar3->iColumn = (ynVar)uVar9;\n    if (((uVar11 & 0x60) == 0) || ((pTVar6->aCol[uVar9].colFlags & 0x60) == 0)) {\n      if (0x3f < (int)uVar9) {\n        uVar9 = 0x3f;\n      }\n      uVar11 = 1 << (uVar9 & 0x1f);\n      if ((uVar9 & 0x20) == 0) {\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = uVar11;\n        uVar11 = 0;\n      }\n      *(uint *)(op + (uVar8 * 0x12 + 0x10) * 4) = *(uint *)(op + (uVar8 * 0x12 + 0x10) * 4) | uVar9;\n      *(uint *)(op + (uVar8 * 0x12 + 0x11) * 4) = *(uint *)(op + (uVar8 * 0x12 + 0x11) * 4) | uVar11\n      ;\n      return pEVar3;\n    }\n    uVar9 = (uint)pTVar6->nCol;\n    if ((int)uVar9 < 0x40) {\n      uVar11 = 1 << (uVar9 & 0x1f);\n      if ((uVar9 & 0x20) == 0) {\n        uVar7 = 0;\n      }\n      else {\n        uVar7 = uVar11;\n        uVar11 = 0;\n      }\n      uVar9 = uVar11 - 1;\n      iVar5 = (uint)(uVar9 < uVar11) + (uVar7 - 1);\n    }\n    else {\n      iVar5 = -1;\n      uVar9 = 0xffffffff;\n    }\n    *(int *)(op + (uVar8 * 0x12 + 0x10) * 4) = iVar5;\n    *(uint *)(op + (uVar8 * 0x12 + 0x11) * 4) = uVar9;\n  }\n  return pEVar3;\n}\n\n" (function_definition "Expr * sqlite3ExprAlloc(sqlite3 *db,int op,Token *pToken,int dequote)\n\n{\n  byte bVar1;\n  undefined *puVar2;\n  Expr *pEVar3;\n  Expr *pEVar4;\n  int iVar5;\n  sqlite3 *db_00;\n  Table *pTVar6;\n  uint uVar7;\n  uint uVar8;\n  uint uVar9;\n  u8 uVar10;\n  uint uVar11;\n  undefined1 *puVar12;\n  undefined4 in_stack_ffffffd4;\n  int iValue;\n  sqlite3 *local_24;\n  \n  puVar2 = PTR___stack_chk_guard_000f5568;\n  puVar12 = &_gp;\n  iValue = 0;\n  local_24 = *(sqlite3 **)PTR___stack_chk_guard_000f5568;\n  uVar10 = (u8)op;\n  if (pToken == (Token *)0x0) {\n    uVar9 = 0x34;\n    uVar8 = 0;\n    pEVar3 = (Expr *)sqlite3DbMallocRawNN(db,CONCAT44(&_gp,in_stack_ffffffd4));\n    if (pEVar3 != (Expr *)0x0) {\n      uVar8 = 0x34;\n      op = 0;\n      (**(code **)(puVar12 + -0x7e50))(pEVar3);\n      pEVar3->iAgg = -1;\n      pEVar3->op = uVar10;\n      pEVar3->nHeight = 1;\n      goto LAB_00038070;\n    }\nLAB_0003806c:\n    pEVar3 = (Expr *)0x0;\n  }\n  else {\n    if ((op == 0x98) && (pToken->z != (char *)0x0)) {\n      op = (int)&iValue;\n      iVar5 = sqlite3GetInt32(pToken->z,(int *)op);\n      if (iVar5 == 0) goto LAB_00037f88;\n      uVar9 = 0x34;\n      uVar8 = 0;\n      pEVar3 = (Expr *)sqlite3DbMallocRawNN(db,CONCAT44(puVar12,in_stack_ffffffd4));\n      if (pEVar3 == (Expr *)0x0) goto LAB_0003806c;\n      uVar8 = 0x34;\n      op = 0;\n      (**(code **)(puVar12 + -0x7e50))(pEVar3);\n      pEVar3->op = 0x98;\n      pEVar3->iAgg = -1;\n    }\n    else {\nLAB_00037f88:\n      uVar8 = 0;\n      uVar11 = pToken->n;\n      uVar9 = uVar11 + 0x35;\n      pEVar3 = (Expr *)sqlite3DbMallocRawNN(db,CONCAT44(puVar12,in_stack_ffffffd4));\n      if (pEVar3 == (Expr *)0x0) goto LAB_0003806c;\n      uVar8 = 0x34;\n      op = 0;\n      (**(code **)(puVar12 + -0x7e50))(pEVar3);\n      pEVar3->op = uVar10;\n      pEVar3->iAgg = -1;\n      if (uVar11 != 0xffffffff) {\n        uVar8 = pToken->n;\n        pEVar4 = pEVar3 + 1;\n        (pEVar3->u).zToken = (char *)pEVar4;\n        if (uVar8 != 0) {\n          op = (int)pToken->z;\n          pEVar4 = (Expr *)(**(code **)(puVar12 + -0x7d34))(pEVar4);\n          uVar8 = pToken->n;\n        }\n        (&pEVar4->op)[uVar8] = '\0';\n        if (dequote != 0) {\n          bVar1 = *(pEVar3->u).zToken;\n          op = (int)(char)bVar1;\n          if (*(char *)((uint)bVar1 + *(int *)(puVar12 + -0x7fcc) + 0x24ac) < '\0') {\n            if ((undefined1 *)op == &DAT_00000022) {\n              uVar11 = 0x4000040;\n            }\n            else {\n              uVar11 = 0x4000000;\n            }\n            pEVar3->flags = pEVar3->flags | uVar11;\n            sqlite3Dequote((pEVar3->u).zToken);\n            pEVar3->nHeight = 1;\n            goto LAB_00038070;\n          }\n        }\n        pEVar3->nHeight = 1;\n        goto LAB_00038070;\n      }\n    }\n    if (iValue == 0) {\n      uVar11 = 0x20800400;\n    }\n    else {\n      uVar11 = 0x10800400;\n    }\n    (pEVar3->u).iValue = iValue;\n    pEVar3->flags = pEVar3->flags | uVar11;\n    pEVar3->nHeight = 1;\n  }\nLAB_00038070:\n  if (local_24 == *(sqlite3 **)puVar2) {\n    return pEVar3;\n  }\n  db_00 = local_24;\n  (**(code **)(puVar12 + -0x7d60))();\n  pEVar3 = sqlite3ExprAlloc(db_00,0xa4,(Token *)0x0,0);\n  if (pEVar3 != (Expr *)0x0) {\n    pTVar6 = *(Table **)(op + (uVar8 * 0x12 + 6) * 4);\n    iVar5 = *(int *)(op + (uVar8 * 0x12 + 0xc) * 4);\n    (pEVar3->y).pTab = pTVar6;\n    pEVar3->iTable = iVar5;\n    if ((int)pTVar6->iPKey == uVar9) {\n      pEVar3->iColumn = -1;\n      return pEVar3;\n    }\n    uVar11 = pTVar6->tabFlags;\n    pEVar3->iColumn = (ynVar)uVar9;\n    if (((uVar11 & 0x60) == 0) || ((pTVar6->aCol[uVar9].colFlags & 0x60) == 0)) {\n      if (0x3f < (int)uVar9) {\n        uVar9 = 0x3f;\n      }\n      uVar11 = 1 << (uVar9 & 0x1f);\n      if ((uVar9 & 0x20) == 0) {\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = uVar11;\n        uVar11 = 0;\n      }\n      *(uint *)(op + (uVar8 * 0x12 + 0x10) * 4) = *(uint *)(op + (uVar8 * 0x12 + 0x10) * 4) | uVar9;\n      *(uint *)(op + (uVar8 * 0x12 + 0x11) * 4) = *(uint *)(op + (uVar8 * 0x12 + 0x11) * 4) | uVar11\n      ;\n      return pEVar3;\n    }\n    uVar9 = (uint)pTVar6->nCol;\n    if ((int)uVar9 < 0x40) {\n      uVar11 = 1 << (uVar9 & 0x1f);\n      if ((uVar9 & 0x20) == 0) {\n        uVar7 = 0;\n      }\n      else {\n        uVar7 = uVar11;\n        uVar11 = 0;\n      }\n      uVar9 = uVar11 - 1;\n      iVar5 = (uint)(uVar9 < uVar11) + (uVar7 - 1);\n    }\n    else {\n      iVar5 = -1;\n      uVar9 = 0xffffffff;\n    }\n    *(int *)(op + (uVar8 * 0x12 + 0x10) * 4) = iVar5;\n    *(uint *)(op + (uVar8 * 0x12 + 0x11) * 4) = uVar9;\n  }\n  return pEVar3;\n}" type_identifier (pointer_declarator "* sqlite3ExprAlloc(sqlite3 *db,int op,Token *pToken,int dequote)" * (function_declarator "sqlite3ExprAlloc(sqlite3 *db,int op,Token *pToken,int dequote)" identifier (parameter_list "(sqlite3 *db,int op,Token *pToken,int dequote)" ( (parameter_declaration "sqlite3 *db" type_identifier (pointer_declarator "*db" * identifier)) , (parameter_declaration "int op" primitive_type identifier) , (parameter_declaration "Token *pToken" type_identifier (pointer_declarator "*pToken" * identifier)) , (parameter_declaration "int dequote" primitive_type identifier) )))) (compound_statement "{\n  byte bVar1;\n  undefined *puVar2;\n  Expr *pEVar3;\n  Expr *pEVar4;\n  int iVar5;\n  sqlite3 *db_00;\n  Table *pTVar6;\n  uint uVar7;\n  uint uVar8;\n  uint uVar9;\n  u8 uVar10;\n  uint uVar11;\n  undefined1 *puVar12;\n  undefined4 in_stack_ffffffd4;\n  int iValue;\n  sqlite3 *local_24;\n  \n  puVar2 = PTR___stack_chk_guard_000f5568;\n  puVar12 = &_gp;\n  iValue = 0;\n  local_24 = *(sqlite3 **)PTR___stack_chk_guard_000f5568;\n  uVar10 = (u8)op;\n  if (pToken == (Token *)0x0) {\n    uVar9 = 0x34;\n    uVar8 = 0;\n    pEVar3 = (Expr *)sqlite3DbMallocRawNN(db,CONCAT44(&_gp,in_stack_ffffffd4));\n    if (pEVar3 != (Expr *)0x0) {\n      uVar8 = 0x34;\n      op = 0;\n      (**(code **)(puVar12 + -0x7e50))(pEVar3);\n      pEVar3->iAgg = -1;\n      pEVar3->op = uVar10;\n      pEVar3->nHeight = 1;\n      goto LAB_00038070;\n    }\nLAB_0003806c:\n    pEVar3 = (Expr *)0x0;\n  }\n  else {\n    if ((op == 0x98) && (pToken->z != (char *)0x0)) {\n      op = (int)&iValue;\n      iVar5 = sqlite3GetInt32(pToken->z,(int *)op);\n      if (iVar5 == 0) goto LAB_00037f88;\n      uVar9 = 0x34;\n      uVar8 = 0;\n      pEVar3 = (Expr *)sqlite3DbMallocRawNN(db,CONCAT44(puVar12,in_stack_ffffffd4));\n      if (pEVar3 == (Expr *)0x0) goto LAB_0003806c;\n      uVar8 = 0x34;\n      op = 0;\n      (**(code **)(puVar12 + -0x7e50))(pEVar3);\n      pEVar3->op = 0x98;\n      pEVar3->iAgg = -1;\n    }\n    else {\nLAB_00037f88:\n      uVar8 = 0;\n      uVar11 = pToken->n;\n      uVar9 = uVar11 + 0x35;\n      pEVar3 = (Expr *)sqlite3DbMallocRawNN(db,CONCAT44(puVar12,in_stack_ffffffd4));\n      if (pEVar3 == (Expr *)0x0) goto LAB_0003806c;\n      uVar8 = 0x34;\n      op = 0;\n      (**(code **)(puVar12 + -0x7e50))(pEVar3);\n      pEVar3->op = uVar10;\n      pEVar3->iAgg = -1;\n      if (uVar11 != 0xffffffff) {\n        uVar8 = pToken->n;\n        pEVar4 = pEVar3 + 1;\n        (pEVar3->u).zToken = (char *)pEVar4;\n        if (uVar8 != 0) {\n          op = (int)pToken->z;\n          pEVar4 = (Expr *)(**(code **)(puVar12 + -0x7d34))(pEVar4);\n          uVar8 = pToken->n;\n        }\n        (&pEVar4->op)[uVar8] = '\0';\n        if (dequote != 0) {\n          bVar1 = *(pEVar3->u).zToken;\n          op = (int)(char)bVar1;\n          if (*(char *)((uint)bVar1 + *(int *)(puVar12 + -0x7fcc) + 0x24ac) < '\0') {\n            if ((undefined1 *)op == &DAT_00000022) {\n              uVar11 = 0x4000040;\n            }\n            else {\n              uVar11 = 0x4000000;\n            }\n            pEVar3->flags = pEVar3->flags | uVar11;\n            sqlite3Dequote((pEVar3->u).zToken);\n            pEVar3->nHeight = 1;\n            goto LAB_00038070;\n          }\n        }\n        pEVar3->nHeight = 1;\n        goto LAB_00038070;\n      }\n    }\n    if (iValue == 0) {\n      uVar11 = 0x20800400;\n    }\n    else {\n      uVar11 = 0x10800400;\n    }\n    (pEVar3->u).iValue = iValue;\n    pEVar3->flags = pEVar3->flags | uVar11;\n    pEVar3->nHeight = 1;\n  }\nLAB_00038070:\n  if (local_24 == *(sqlite3 **)puVar2) {\n    return pEVar3;\n  }\n  db_00 = local_24;\n  (**(code **)(puVar12 + -0x7d60))();\n  pEVar3 = sqlite3ExprAlloc(db_00,0xa4,(Token *)0x0,0);\n  if (pEVar3 != (Expr *)0x0) {\n    pTVar6 = *(Table **)(op + (uVar8 * 0x12 + 6) * 4);\n    iVar5 = *(int *)(op + (uVar8 * 0x12 + 0xc) * 4);\n    (pEVar3->y).pTab = pTVar6;\n    pEVar3->iTable = iVar5;\n    if ((int)pTVar6->iPKey == uVar9) {\n      pEVar3->iColumn = -1;\n      return pEVar3;\n    }\n    uVar11 = pTVar6->tabFlags;\n    pEVar3->iColumn = (ynVar)uVar9;\n    if (((uVar11 & 0x60) == 0) || ((pTVar6->aCol[uVar9].colFlags & 0x60) == 0)) {\n      if (0x3f < (int)uVar9) {\n        uVar9 = 0x3f;\n      }\n      uVar11 = 1 << (uVar9 & 0x1f);\n      if ((uVar9 & 0x20) == 0) {\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = uVar11;\n        uVar11 = 0;\n      }\n      *(uint *)(op + (uVar8 * 0x12 + 0x10) * 4) = *(uint *)(op + (uVar8 * 0x12 + 0x10) * 4) | uVar9;\n      *(uint *)(op + (uVar8 * 0x12 + 0x11) * 4) = *(uint *)(op + (uVar8 * 0x12 + 0x11) * 4) | uVar11\n      ;\n      return pEVar3;\n    }\n    uVar9 = (uint)pTVar6->nCol;\n    if ((int)uVar9 < 0x40) {\n      uVar11 = 1 << (uVar9 & 0x1f);\n      if ((uVar9 & 0x20) == 0) {\n        uVar7 = 0;\n      }\n      else {\n        uVar7 = uVar11;\n        uVar11 = 0;\n      }\n      uVar9 = uVar11 - 1;\n      iVar5 = (uint)(uVar9 < uVar11) + (uVar7 - 1);\n    }\n    else {\n      iVar5 = -1;\n      uVar9 = 0xffffffff;\n    }\n    *(int *)(op + (uVar8 * 0x12 + 0x10) * 4) = iVar5;\n    *(uint *)(op + (uVar8 * 0x12 + 0x11) * 4) = uVar9;\n  }\n  return pEVar3;\n}" { (declaration "byte bVar1;" type_identifier identifier ;) (declaration "undefined *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "Expr *pEVar3;" type_identifier (pointer_declarator "*pEVar3" * identifier) ;) (declaration "Expr *pEVar4;" type_identifier (pointer_declarator "*pEVar4" * identifier) ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "sqlite3 *db_00;" type_identifier (pointer_declarator "*db_00" * identifier) ;) (declaration "Table *pTVar6;" type_identifier (pointer_declarator "*pTVar6" * identifier) ;) (declaration "uint uVar7;" type_identifier identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "u8 uVar10;" type_identifier identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "undefined1 *puVar12;" type_identifier (pointer_declarator "*puVar12" * identifier) ;) (declaration "undefined4 in_stack_ffffffd4;" type_identifier identifier ;) (declaration "int iValue;" primitive_type identifier ;) (declaration "sqlite3 *local_24;" type_identifier (pointer_declarator "*local_24" * identifier) ;) (expression_statement "puVar2 = PTR___stack_chk_guard_000f5568;" (assignment_expression "puVar2 = PTR___stack_chk_guard_000f5568" identifier = identifier) ;) (expression_statement "puVar12 = &_gp;" (assignment_expression "puVar12 = &_gp" identifier = (pointer_expression "&_gp" & identifier)) ;) (expression_statement "iValue = 0;" (assignment_expression "iValue = 0" identifier = number_literal) ;) (expression_statement "local_24 = *(sqlite3 **)PTR___stack_chk_guard_000f5568;" (assignment_expression "local_24 = *(sqlite3 **)PTR___stack_chk_guard_000f5568" identifier = (pointer_expression "*(sqlite3 **)PTR___stack_chk_guard_000f5568" * (cast_expression "(sqlite3 **)PTR___stack_chk_guard_000f5568" ( (type_descriptor "sqlite3 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) ;) (expression_statement "uVar10 = (u8)op;" (assignment_expression "uVar10 = (u8)op" identifier = (cast_expression "(u8)op" ( (type_descriptor "u8" type_identifier) ) identifier)) ;) (if_statement "if (pToken == (Token *)0x0) {\n    uVar9 = 0x34;\n    uVar8 = 0;\n    pEVar3 = (Expr *)sqlite3DbMallocRawNN(db,CONCAT44(&_gp,in_stack_ffffffd4));\n    if (pEVar3 != (Expr *)0x0) {\n      uVar8 = 0x34;\n      op = 0;\n      (**(code **)(puVar12 + -0x7e50))(pEVar3);\n      pEVar3->iAgg = -1;\n      pEVar3->op = uVar10;\n      pEVar3->nHeight = 1;\n      goto LAB_00038070;\n    }\nLAB_0003806c:\n    pEVar3 = (Expr *)0x0;\n  }\n  else {\n    if ((op == 0x98) && (pToken->z != (char *)0x0)) {\n      op = (int)&iValue;\n      iVar5 = sqlite3GetInt32(pToken->z,(int *)op);\n      if (iVar5 == 0) goto LAB_00037f88;\n      uVar9 = 0x34;\n      uVar8 = 0;\n      pEVar3 = (Expr *)sqlite3DbMallocRawNN(db,CONCAT44(puVar12,in_stack_ffffffd4));\n      if (pEVar3 == (Expr *)0x0) goto LAB_0003806c;\n      uVar8 = 0x34;\n      op = 0;\n      (**(code **)(puVar12 + -0x7e50))(pEVar3);\n      pEVar3->op = 0x98;\n      pEVar3->iAgg = -1;\n    }\n    else {\nLAB_00037f88:\n      uVar8 = 0;\n      uVar11 = pToken->n;\n      uVar9 = uVar11 + 0x35;\n      pEVar3 = (Expr *)sqlite3DbMallocRawNN(db,CONCAT44(puVar12,in_stack_ffffffd4));\n      if (pEVar3 == (Expr *)0x0) goto LAB_0003806c;\n      uVar8 = 0x34;\n      op = 0;\n      (**(code **)(puVar12 + -0x7e50))(pEVar3);\n      pEVar3->op = uVar10;\n      pEVar3->iAgg = -1;\n      if (uVar11 != 0xffffffff) {\n        uVar8 = pToken->n;\n        pEVar4 = pEVar3 + 1;\n        (pEVar3->u).zToken = (char *)pEVar4;\n        if (uVar8 != 0) {\n          op = (int)pToken->z;\n          pEVar4 = (Expr *)(**(code **)(puVar12 + -0x7d34))(pEVar4);\n          uVar8 = pToken->n;\n        }\n        (&pEVar4->op)[uVar8] = '\0';\n        if (dequote != 0) {\n          bVar1 = *(pEVar3->u).zToken;\n          op = (int)(char)bVar1;\n          if (*(char *)((uint)bVar1 + *(int *)(puVar12 + -0x7fcc) + 0x24ac) < '\0') {\n            if ((undefined1 *)op == &DAT_00000022) {\n              uVar11 = 0x4000040;\n            }\n            else {\n              uVar11 = 0x4000000;\n            }\n            pEVar3->flags = pEVar3->flags | uVar11;\n            sqlite3Dequote((pEVar3->u).zToken);\n            pEVar3->nHeight = 1;\n            goto LAB_00038070;\n          }\n        }\n        pEVar3->nHeight = 1;\n        goto LAB_00038070;\n      }\n    }\n    if (iValue == 0) {\n      uVar11 = 0x20800400;\n    }\n    else {\n      uVar11 = 0x10800400;\n    }\n    (pEVar3->u).iValue = iValue;\n    pEVar3->flags = pEVar3->flags | uVar11;\n    pEVar3->nHeight = 1;\n  }" if (parenthesized_expression "(pToken == (Token *)0x0)" ( (binary_expression "pToken == (Token *)0x0" identifier == (cast_expression "(Token *)0x0" ( (type_descriptor "Token *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar9 = 0x34;\n    uVar8 = 0;\n    pEVar3 = (Expr *)sqlite3DbMallocRawNN(db,CONCAT44(&_gp,in_stack_ffffffd4));\n    if (pEVar3 != (Expr *)0x0) {\n      uVar8 = 0x34;\n      op = 0;\n      (**(code **)(puVar12 + -0x7e50))(pEVar3);\n      pEVar3->iAgg = -1;\n      pEVar3->op = uVar10;\n      pEVar3->nHeight = 1;\n      goto LAB_00038070;\n    }\nLAB_0003806c:\n    pEVar3 = (Expr *)0x0;\n  }" { (expression_statement "uVar9 = 0x34;" (assignment_expression "uVar9 = 0x34" identifier = number_literal) ;) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (expression_statement "pEVar3 = (Expr *)sqlite3DbMallocRawNN(db,CONCAT44(&_gp,in_stack_ffffffd4));" (assignment_expression "pEVar3 = (Expr *)sqlite3DbMallocRawNN(db,CONCAT44(&_gp,in_stack_ffffffd4))" identifier = (cast_expression "(Expr *)sqlite3DbMallocRawNN(db,CONCAT44(&_gp,in_stack_ffffffd4))" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3DbMallocRawNN(db,CONCAT44(&_gp,in_stack_ffffffd4))" identifier (argument_list "(db,CONCAT44(&_gp,in_stack_ffffffd4))" ( identifier , (call_expression "CONCAT44(&_gp,in_stack_ffffffd4)" identifier (argument_list "(&_gp,in_stack_ffffffd4)" ( (pointer_expression "&_gp" & identifier) , identifier ))) ))))) ;) (if_statement "if (pEVar3 != (Expr *)0x0) {\n      uVar8 = 0x34;\n      op = 0;\n      (**(code **)(puVar12 + -0x7e50))(pEVar3);\n      pEVar3->iAgg = -1;\n      pEVar3->op = uVar10;\n      pEVar3->nHeight = 1;\n      goto LAB_00038070;\n    }" if (parenthesized_expression "(pEVar3 != (Expr *)0x0)" ( (binary_expression "pEVar3 != (Expr *)0x0" identifier != (cast_expression "(Expr *)0x0" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      uVar8 = 0x34;\n      op = 0;\n      (**(code **)(puVar12 + -0x7e50))(pEVar3);\n      pEVar3->iAgg = -1;\n      pEVar3->op = uVar10;\n      pEVar3->nHeight = 1;\n      goto LAB_00038070;\n    }" { (expression_statement "uVar8 = 0x34;" (assignment_expression "uVar8 = 0x34" identifier = number_literal) ;) (expression_statement "op = 0;" (assignment_expression "op = 0" identifier = number_literal) ;) (expression_statement "(**(code **)(puVar12 + -0x7e50))(pEVar3);" (call_expression "(**(code **)(puVar12 + -0x7e50))(pEVar3)" (parenthesized_expression "(**(code **)(puVar12 + -0x7e50))" ( (pointer_expression "**(code **)(puVar12 + -0x7e50)" * (pointer_expression "*(code **)(puVar12 + -0x7e50)" * (cast_expression "(code **)(puVar12 + -0x7e50)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + -0x7e50)" ( (binary_expression "puVar12 + -0x7e50" identifier + number_literal) ))))) )) (argument_list "(pEVar3)" ( identifier ))) ;) (expression_statement "pEVar3->iAgg = -1;" (assignment_expression "pEVar3->iAgg = -1" (field_expression "pEVar3->iAgg" identifier -> field_identifier) = number_literal) ;) (expression_statement "pEVar3->op = uVar10;" (assignment_expression "pEVar3->op = uVar10" (field_expression "pEVar3->op" identifier -> field_identifier) = identifier) ;) (expression_statement "pEVar3->nHeight = 1;" (assignment_expression "pEVar3->nHeight = 1" (field_expression "pEVar3->nHeight" identifier -> field_identifier) = number_literal) ;) (goto_statement "goto LAB_00038070;" goto statement_identifier ;) })) (labeled_statement "LAB_0003806c:\n    pEVar3 = (Expr *)0x0;" statement_identifier : (expression_statement "pEVar3 = (Expr *)0x0;" (assignment_expression "pEVar3 = (Expr *)0x0" identifier = (cast_expression "(Expr *)0x0" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) }) (else_clause "else {\n    if ((op == 0x98) && (pToken->z != (char *)0x0)) {\n      op = (int)&iValue;\n      iVar5 = sqlite3GetInt32(pToken->z,(int *)op);\n      if (iVar5 == 0) goto LAB_00037f88;\n      uVar9 = 0x34;\n      uVar8 = 0;\n      pEVar3 = (Expr *)sqlite3DbMallocRawNN(db,CONCAT44(puVar12,in_stack_ffffffd4));\n      if (pEVar3 == (Expr *)0x0) goto LAB_0003806c;\n      uVar8 = 0x34;\n      op = 0;\n      (**(code **)(puVar12 + -0x7e50))(pEVar3);\n      pEVar3->op = 0x98;\n      pEVar3->iAgg = -1;\n    }\n    else {\nLAB_00037f88:\n      uVar8 = 0;\n      uVar11 = pToken->n;\n      uVar9 = uVar11 + 0x35;\n      pEVar3 = (Expr *)sqlite3DbMallocRawNN(db,CONCAT44(puVar12,in_stack_ffffffd4));\n      if (pEVar3 == (Expr *)0x0) goto LAB_0003806c;\n      uVar8 = 0x34;\n      op = 0;\n      (**(code **)(puVar12 + -0x7e50))(pEVar3);\n      pEVar3->op = uVar10;\n      pEVar3->iAgg = -1;\n      if (uVar11 != 0xffffffff) {\n        uVar8 = pToken->n;\n        pEVar4 = pEVar3 + 1;\n        (pEVar3->u).zToken = (char *)pEVar4;\n        if (uVar8 != 0) {\n          op = (int)pToken->z;\n          pEVar4 = (Expr *)(**(code **)(puVar12 + -0x7d34))(pEVar4);\n          uVar8 = pToken->n;\n        }\n        (&pEVar4->op)[uVar8] = '\0';\n        if (dequote != 0) {\n          bVar1 = *(pEVar3->u).zToken;\n          op = (int)(char)bVar1;\n          if (*(char *)((uint)bVar1 + *(int *)(puVar12 + -0x7fcc) + 0x24ac) < '\0') {\n            if ((undefined1 *)op == &DAT_00000022) {\n              uVar11 = 0x4000040;\n            }\n            else {\n              uVar11 = 0x4000000;\n            }\n            pEVar3->flags = pEVar3->flags | uVar11;\n            sqlite3Dequote((pEVar3->u).zToken);\n            pEVar3->nHeight = 1;\n            goto LAB_00038070;\n          }\n        }\n        pEVar3->nHeight = 1;\n        goto LAB_00038070;\n      }\n    }\n    if (iValue == 0) {\n      uVar11 = 0x20800400;\n    }\n    else {\n      uVar11 = 0x10800400;\n    }\n    (pEVar3->u).iValue = iValue;\n    pEVar3->flags = pEVar3->flags | uVar11;\n    pEVar3->nHeight = 1;\n  }" else (compound_statement "{\n    if ((op == 0x98) && (pToken->z != (char *)0x0)) {\n      op = (int)&iValue;\n      iVar5 = sqlite3GetInt32(pToken->z,(int *)op);\n      if (iVar5 == 0) goto LAB_00037f88;\n      uVar9 = 0x34;\n      uVar8 = 0;\n      pEVar3 = (Expr *)sqlite3DbMallocRawNN(db,CONCAT44(puVar12,in_stack_ffffffd4));\n      if (pEVar3 == (Expr *)0x0) goto LAB_0003806c;\n      uVar8 = 0x34;\n      op = 0;\n      (**(code **)(puVar12 + -0x7e50))(pEVar3);\n      pEVar3->op = 0x98;\n      pEVar3->iAgg = -1;\n    }\n    else {\nLAB_00037f88:\n      uVar8 = 0;\n      uVar11 = pToken->n;\n      uVar9 = uVar11 + 0x35;\n      pEVar3 = (Expr *)sqlite3DbMallocRawNN(db,CONCAT44(puVar12,in_stack_ffffffd4));\n      if (pEVar3 == (Expr *)0x0) goto LAB_0003806c;\n      uVar8 = 0x34;\n      op = 0;\n      (**(code **)(puVar12 + -0x7e50))(pEVar3);\n      pEVar3->op = uVar10;\n      pEVar3->iAgg = -1;\n      if (uVar11 != 0xffffffff) {\n        uVar8 = pToken->n;\n        pEVar4 = pEVar3 + 1;\n        (pEVar3->u).zToken = (char *)pEVar4;\n        if (uVar8 != 0) {\n          op = (int)pToken->z;\n          pEVar4 = (Expr *)(**(code **)(puVar12 + -0x7d34))(pEVar4);\n          uVar8 = pToken->n;\n        }\n        (&pEVar4->op)[uVar8] = '\0';\n        if (dequote != 0) {\n          bVar1 = *(pEVar3->u).zToken;\n          op = (int)(char)bVar1;\n          if (*(char *)((uint)bVar1 + *(int *)(puVar12 + -0x7fcc) + 0x24ac) < '\0') {\n            if ((undefined1 *)op == &DAT_00000022) {\n              uVar11 = 0x4000040;\n            }\n            else {\n              uVar11 = 0x4000000;\n            }\n            pEVar3->flags = pEVar3->flags | uVar11;\n            sqlite3Dequote((pEVar3->u).zToken);\n            pEVar3->nHeight = 1;\n            goto LAB_00038070;\n          }\n        }\n        pEVar3->nHeight = 1;\n        goto LAB_00038070;\n      }\n    }\n    if (iValue == 0) {\n      uVar11 = 0x20800400;\n    }\n    else {\n      uVar11 = 0x10800400;\n    }\n    (pEVar3->u).iValue = iValue;\n    pEVar3->flags = pEVar3->flags | uVar11;\n    pEVar3->nHeight = 1;\n  }" { (if_statement "if ((op == 0x98) && (pToken->z != (char *)0x0)) {\n      op = (int)&iValue;\n      iVar5 = sqlite3GetInt32(pToken->z,(int *)op);\n      if (iVar5 == 0) goto LAB_00037f88;\n      uVar9 = 0x34;\n      uVar8 = 0;\n      pEVar3 = (Expr *)sqlite3DbMallocRawNN(db,CONCAT44(puVar12,in_stack_ffffffd4));\n      if (pEVar3 == (Expr *)0x0) goto LAB_0003806c;\n      uVar8 = 0x34;\n      op = 0;\n      (**(code **)(puVar12 + -0x7e50))(pEVar3);\n      pEVar3->op = 0x98;\n      pEVar3->iAgg = -1;\n    }\n    else {\nLAB_00037f88:\n      uVar8 = 0;\n      uVar11 = pToken->n;\n      uVar9 = uVar11 + 0x35;\n      pEVar3 = (Expr *)sqlite3DbMallocRawNN(db,CONCAT44(puVar12,in_stack_ffffffd4));\n      if (pEVar3 == (Expr *)0x0) goto LAB_0003806c;\n      uVar8 = 0x34;\n      op = 0;\n      (**(code **)(puVar12 + -0x7e50))(pEVar3);\n      pEVar3->op = uVar10;\n      pEVar3->iAgg = -1;\n      if (uVar11 != 0xffffffff) {\n        uVar8 = pToken->n;\n        pEVar4 = pEVar3 + 1;\n        (pEVar3->u).zToken = (char *)pEVar4;\n        if (uVar8 != 0) {\n          op = (int)pToken->z;\n          pEVar4 = (Expr *)(**(code **)(puVar12 + -0x7d34))(pEVar4);\n          uVar8 = pToken->n;\n        }\n        (&pEVar4->op)[uVar8] = '\0';\n        if (dequote != 0) {\n          bVar1 = *(pEVar3->u).zToken;\n          op = (int)(char)bVar1;\n          if (*(char *)((uint)bVar1 + *(int *)(puVar12 + -0x7fcc) + 0x24ac) < '\0') {\n            if ((undefined1 *)op == &DAT_00000022) {\n              uVar11 = 0x4000040;\n            }\n            else {\n              uVar11 = 0x4000000;\n            }\n            pEVar3->flags = pEVar3->flags | uVar11;\n            sqlite3Dequote((pEVar3->u).zToken);\n            pEVar3->nHeight = 1;\n            goto LAB_00038070;\n          }\n        }\n        pEVar3->nHeight = 1;\n        goto LAB_00038070;\n      }\n    }" if (parenthesized_expression "((op == 0x98) && (pToken->z != (char *)0x0))" ( (binary_expression "(op == 0x98) && (pToken->z != (char *)0x0)" (parenthesized_expression "(op == 0x98)" ( (binary_expression "op == 0x98" identifier == number_literal) )) && (parenthesized_expression "(pToken->z != (char *)0x0)" ( (binary_expression "pToken->z != (char *)0x0" (field_expression "pToken->z" identifier -> field_identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n      op = (int)&iValue;\n      iVar5 = sqlite3GetInt32(pToken->z,(int *)op);\n      if (iVar5 == 0) goto LAB_00037f88;\n      uVar9 = 0x34;\n      uVar8 = 0;\n      pEVar3 = (Expr *)sqlite3DbMallocRawNN(db,CONCAT44(puVar12,in_stack_ffffffd4));\n      if (pEVar3 == (Expr *)0x0) goto LAB_0003806c;\n      uVar8 = 0x34;\n      op = 0;\n      (**(code **)(puVar12 + -0x7e50))(pEVar3);\n      pEVar3->op = 0x98;\n      pEVar3->iAgg = -1;\n    }" { (expression_statement "op = (int)&iValue;" (assignment_expression "op = (int)&iValue" identifier = (cast_expression "(int)&iValue" ( (type_descriptor "int" primitive_type) ) (pointer_expression "&iValue" & identifier))) ;) (expression_statement "iVar5 = sqlite3GetInt32(pToken->z,(int *)op);" (assignment_expression "iVar5 = sqlite3GetInt32(pToken->z,(int *)op)" identifier = (call_expression "sqlite3GetInt32(pToken->z,(int *)op)" identifier (argument_list "(pToken->z,(int *)op)" ( (field_expression "pToken->z" identifier -> field_identifier) , (cast_expression "(int *)op" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier) )))) ;) (if_statement "if (iVar5 == 0) goto LAB_00037f88;" if (parenthesized_expression "(iVar5 == 0)" ( (binary_expression "iVar5 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00037f88;" goto statement_identifier ;)) (expression_statement "uVar9 = 0x34;" (assignment_expression "uVar9 = 0x34" identifier = number_literal) ;) (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) (expression_statement "pEVar3 = (Expr *)sqlite3DbMallocRawNN(db,CONCAT44(puVar12,in_stack_ffffffd4));" (assignment_expression "pEVar3 = (Expr *)sqlite3DbMallocRawNN(db,CONCAT44(puVar12,in_stack_ffffffd4))" identifier = (cast_expression "(Expr *)sqlite3DbMallocRawNN(db,CONCAT44(puVar12,in_stack_ffffffd4))" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3DbMallocRawNN(db,CONCAT44(puVar12,in_stack_ffffffd4))" identifier (argument_list "(db,CONCAT44(puVar12,in_stack_ffffffd4))" ( identifier , (call_expression "CONCAT44(puVar12,in_stack_ffffffd4)" identifier (argument_list "(puVar12,in_stack_ffffffd4)" ( identifier , identifier ))) ))))) ;) (if_statement "if (pEVar3 == (Expr *)0x0) goto LAB_0003806c;" if (parenthesized_expression "(pEVar3 == (Expr *)0x0)" ( (binary_expression "pEVar3 == (Expr *)0x0" identifier == (cast_expression "(Expr *)0x0" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0003806c;" goto statement_identifier ;)) (expression_statement "uVar8 = 0x34;" (assignment_expression "uVar8 = 0x34" identifier = number_literal) ;) (expression_statement "op = 0;" (assignment_expression "op = 0" identifier = number_literal) ;) (expression_statement "(**(code **)(puVar12 + -0x7e50))(pEVar3);" (call_expression "(**(code **)(puVar12 + -0x7e50))(pEVar3)" (parenthesized_expression "(**(code **)(puVar12 + -0x7e50))" ( (pointer_expression "**(code **)(puVar12 + -0x7e50)" * (pointer_expression "*(code **)(puVar12 + -0x7e50)" * (cast_expression "(code **)(puVar12 + -0x7e50)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + -0x7e50)" ( (binary_expression "puVar12 + -0x7e50" identifier + number_literal) ))))) )) (argument_list "(pEVar3)" ( identifier ))) ;) (expression_statement "pEVar3->op = 0x98;" (assignment_expression "pEVar3->op = 0x98" (field_expression "pEVar3->op" identifier -> field_identifier) = number_literal) ;) (expression_statement "pEVar3->iAgg = -1;" (assignment_expression "pEVar3->iAgg = -1" (field_expression "pEVar3->iAgg" identifier -> field_identifier) = number_literal) ;) }) (else_clause "else {\nLAB_00037f88:\n      uVar8 = 0;\n      uVar11 = pToken->n;\n      uVar9 = uVar11 + 0x35;\n      pEVar3 = (Expr *)sqlite3DbMallocRawNN(db,CONCAT44(puVar12,in_stack_ffffffd4));\n      if (pEVar3 == (Expr *)0x0) goto LAB_0003806c;\n      uVar8 = 0x34;\n      op = 0;\n      (**(code **)(puVar12 + -0x7e50))(pEVar3);\n      pEVar3->op = uVar10;\n      pEVar3->iAgg = -1;\n      if (uVar11 != 0xffffffff) {\n        uVar8 = pToken->n;\n        pEVar4 = pEVar3 + 1;\n        (pEVar3->u).zToken = (char *)pEVar4;\n        if (uVar8 != 0) {\n          op = (int)pToken->z;\n          pEVar4 = (Expr *)(**(code **)(puVar12 + -0x7d34))(pEVar4);\n          uVar8 = pToken->n;\n        }\n        (&pEVar4->op)[uVar8] = '\0';\n        if (dequote != 0) {\n          bVar1 = *(pEVar3->u).zToken;\n          op = (int)(char)bVar1;\n          if (*(char *)((uint)bVar1 + *(int *)(puVar12 + -0x7fcc) + 0x24ac) < '\0') {\n            if ((undefined1 *)op == &DAT_00000022) {\n              uVar11 = 0x4000040;\n            }\n            else {\n              uVar11 = 0x4000000;\n            }\n            pEVar3->flags = pEVar3->flags | uVar11;\n            sqlite3Dequote((pEVar3->u).zToken);\n            pEVar3->nHeight = 1;\n            goto LAB_00038070;\n          }\n        }\n        pEVar3->nHeight = 1;\n        goto LAB_00038070;\n      }\n    }" else (compound_statement "{\nLAB_00037f88:\n      uVar8 = 0;\n      uVar11 = pToken->n;\n      uVar9 = uVar11 + 0x35;\n      pEVar3 = (Expr *)sqlite3DbMallocRawNN(db,CONCAT44(puVar12,in_stack_ffffffd4));\n      if (pEVar3 == (Expr *)0x0) goto LAB_0003806c;\n      uVar8 = 0x34;\n      op = 0;\n      (**(code **)(puVar12 + -0x7e50))(pEVar3);\n      pEVar3->op = uVar10;\n      pEVar3->iAgg = -1;\n      if (uVar11 != 0xffffffff) {\n        uVar8 = pToken->n;\n        pEVar4 = pEVar3 + 1;\n        (pEVar3->u).zToken = (char *)pEVar4;\n        if (uVar8 != 0) {\n          op = (int)pToken->z;\n          pEVar4 = (Expr *)(**(code **)(puVar12 + -0x7d34))(pEVar4);\n          uVar8 = pToken->n;\n        }\n        (&pEVar4->op)[uVar8] = '\0';\n        if (dequote != 0) {\n          bVar1 = *(pEVar3->u).zToken;\n          op = (int)(char)bVar1;\n          if (*(char *)((uint)bVar1 + *(int *)(puVar12 + -0x7fcc) + 0x24ac) < '\0') {\n            if ((undefined1 *)op == &DAT_00000022) {\n              uVar11 = 0x4000040;\n            }\n            else {\n              uVar11 = 0x4000000;\n            }\n            pEVar3->flags = pEVar3->flags | uVar11;\n            sqlite3Dequote((pEVar3->u).zToken);\n            pEVar3->nHeight = 1;\n            goto LAB_00038070;\n          }\n        }\n        pEVar3->nHeight = 1;\n        goto LAB_00038070;\n      }\n    }" { (labeled_statement "LAB_00037f88:\n      uVar8 = 0;" statement_identifier : (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;)) (expression_statement "uVar11 = pToken->n;" (assignment_expression "uVar11 = pToken->n" identifier = (field_expression "pToken->n" identifier -> field_identifier)) ;) (expression_statement "uVar9 = uVar11 + 0x35;" (assignment_expression "uVar9 = uVar11 + 0x35" identifier = (binary_expression "uVar11 + 0x35" identifier + number_literal)) ;) (expression_statement "pEVar3 = (Expr *)sqlite3DbMallocRawNN(db,CONCAT44(puVar12,in_stack_ffffffd4));" (assignment_expression "pEVar3 = (Expr *)sqlite3DbMallocRawNN(db,CONCAT44(puVar12,in_stack_ffffffd4))" identifier = (cast_expression "(Expr *)sqlite3DbMallocRawNN(db,CONCAT44(puVar12,in_stack_ffffffd4))" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3DbMallocRawNN(db,CONCAT44(puVar12,in_stack_ffffffd4))" identifier (argument_list "(db,CONCAT44(puVar12,in_stack_ffffffd4))" ( identifier , (call_expression "CONCAT44(puVar12,in_stack_ffffffd4)" identifier (argument_list "(puVar12,in_stack_ffffffd4)" ( identifier , identifier ))) ))))) ;) (if_statement "if (pEVar3 == (Expr *)0x0) goto LAB_0003806c;" if (parenthesized_expression "(pEVar3 == (Expr *)0x0)" ( (binary_expression "pEVar3 == (Expr *)0x0" identifier == (cast_expression "(Expr *)0x0" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0003806c;" goto statement_identifier ;)) (expression_statement "uVar8 = 0x34;" (assignment_expression "uVar8 = 0x34" identifier = number_literal) ;) (expression_statement "op = 0;" (assignment_expression "op = 0" identifier = number_literal) ;) (expression_statement "(**(code **)(puVar12 + -0x7e50))(pEVar3);" (call_expression "(**(code **)(puVar12 + -0x7e50))(pEVar3)" (parenthesized_expression "(**(code **)(puVar12 + -0x7e50))" ( (pointer_expression "**(code **)(puVar12 + -0x7e50)" * (pointer_expression "*(code **)(puVar12 + -0x7e50)" * (cast_expression "(code **)(puVar12 + -0x7e50)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + -0x7e50)" ( (binary_expression "puVar12 + -0x7e50" identifier + number_literal) ))))) )) (argument_list "(pEVar3)" ( identifier ))) ;) (expression_statement "pEVar3->op = uVar10;" (assignment_expression "pEVar3->op = uVar10" (field_expression "pEVar3->op" identifier -> field_identifier) = identifier) ;) (expression_statement "pEVar3->iAgg = -1;" (assignment_expression "pEVar3->iAgg = -1" (field_expression "pEVar3->iAgg" identifier -> field_identifier) = number_literal) ;) (if_statement "if (uVar11 != 0xffffffff) {\n        uVar8 = pToken->n;\n        pEVar4 = pEVar3 + 1;\n        (pEVar3->u).zToken = (char *)pEVar4;\n        if (uVar8 != 0) {\n          op = (int)pToken->z;\n          pEVar4 = (Expr *)(**(code **)(puVar12 + -0x7d34))(pEVar4);\n          uVar8 = pToken->n;\n        }\n        (&pEVar4->op)[uVar8] = '\0';\n        if (dequote != 0) {\n          bVar1 = *(pEVar3->u).zToken;\n          op = (int)(char)bVar1;\n          if (*(char *)((uint)bVar1 + *(int *)(puVar12 + -0x7fcc) + 0x24ac) < '\0') {\n            if ((undefined1 *)op == &DAT_00000022) {\n              uVar11 = 0x4000040;\n            }\n            else {\n              uVar11 = 0x4000000;\n            }\n            pEVar3->flags = pEVar3->flags | uVar11;\n            sqlite3Dequote((pEVar3->u).zToken);\n            pEVar3->nHeight = 1;\n            goto LAB_00038070;\n          }\n        }\n        pEVar3->nHeight = 1;\n        goto LAB_00038070;\n      }" if (parenthesized_expression "(uVar11 != 0xffffffff)" ( (binary_expression "uVar11 != 0xffffffff" identifier != number_literal) )) (compound_statement "{\n        uVar8 = pToken->n;\n        pEVar4 = pEVar3 + 1;\n        (pEVar3->u).zToken = (char *)pEVar4;\n        if (uVar8 != 0) {\n          op = (int)pToken->z;\n          pEVar4 = (Expr *)(**(code **)(puVar12 + -0x7d34))(pEVar4);\n          uVar8 = pToken->n;\n        }\n        (&pEVar4->op)[uVar8] = '\0';\n        if (dequote != 0) {\n          bVar1 = *(pEVar3->u).zToken;\n          op = (int)(char)bVar1;\n          if (*(char *)((uint)bVar1 + *(int *)(puVar12 + -0x7fcc) + 0x24ac) < '\0') {\n            if ((undefined1 *)op == &DAT_00000022) {\n              uVar11 = 0x4000040;\n            }\n            else {\n              uVar11 = 0x4000000;\n            }\n            pEVar3->flags = pEVar3->flags | uVar11;\n            sqlite3Dequote((pEVar3->u).zToken);\n            pEVar3->nHeight = 1;\n            goto LAB_00038070;\n          }\n        }\n        pEVar3->nHeight = 1;\n        goto LAB_00038070;\n      }" { (expression_statement "uVar8 = pToken->n;" (assignment_expression "uVar8 = pToken->n" identifier = (field_expression "pToken->n" identifier -> field_identifier)) ;) (expression_statement "pEVar4 = pEVar3 + 1;" (assignment_expression "pEVar4 = pEVar3 + 1" identifier = (binary_expression "pEVar3 + 1" identifier + number_literal)) ;) (expression_statement "(pEVar3->u).zToken = (char *)pEVar4;" (assignment_expression "(pEVar3->u).zToken = (char *)pEVar4" (field_expression "(pEVar3->u).zToken" (parenthesized_expression "(pEVar3->u)" ( (field_expression "pEVar3->u" identifier -> field_identifier) )) . field_identifier) = (cast_expression "(char *)pEVar4" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier)) ;) (if_statement "if (uVar8 != 0) {\n          op = (int)pToken->z;\n          pEVar4 = (Expr *)(**(code **)(puVar12 + -0x7d34))(pEVar4);\n          uVar8 = pToken->n;\n        }" if (parenthesized_expression "(uVar8 != 0)" ( (binary_expression "uVar8 != 0" identifier != number_literal) )) (compound_statement "{\n          op = (int)pToken->z;\n          pEVar4 = (Expr *)(**(code **)(puVar12 + -0x7d34))(pEVar4);\n          uVar8 = pToken->n;\n        }" { (expression_statement "op = (int)pToken->z;" (assignment_expression "op = (int)pToken->z" identifier = (cast_expression "(int)pToken->z" ( (type_descriptor "int" primitive_type) ) (field_expression "pToken->z" identifier -> field_identifier))) ;) (expression_statement "pEVar4 = (Expr *)(**(code **)(puVar12 + -0x7d34))(pEVar4);" (assignment_expression "pEVar4 = (Expr *)(**(code **)(puVar12 + -0x7d34))(pEVar4)" identifier = (cast_expression "(Expr *)(**(code **)(puVar12 + -0x7d34))(pEVar4)" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(**(code **)(puVar12 + -0x7d34))(pEVar4)" (parenthesized_expression "(**(code **)(puVar12 + -0x7d34))" ( (pointer_expression "**(code **)(puVar12 + -0x7d34)" * (pointer_expression "*(code **)(puVar12 + -0x7d34)" * (cast_expression "(code **)(puVar12 + -0x7d34)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + -0x7d34)" ( (binary_expression "puVar12 + -0x7d34" identifier + number_literal) ))))) )) (argument_list "(pEVar4)" ( identifier ))))) ;) (expression_statement "uVar8 = pToken->n;" (assignment_expression "uVar8 = pToken->n" identifier = (field_expression "pToken->n" identifier -> field_identifier)) ;) })) (expression_statement "(&pEVar4->op)[uVar8] = '\0';" (assignment_expression "(&pEVar4->op)[uVar8] = '\0'" (subscript_expression "(&pEVar4->op)[uVar8]" (parenthesized_expression "(&pEVar4->op)" ( (pointer_expression "&pEVar4->op" & (field_expression "pEVar4->op" identifier -> field_identifier)) )) [ identifier ]) = (char_literal "'\0'" ' escape_sequence ')) ;) (if_statement "if (dequote != 0) {\n          bVar1 = *(pEVar3->u).zToken;\n          op = (int)(char)bVar1;\n          if (*(char *)((uint)bVar1 + *(int *)(puVar12 + -0x7fcc) + 0x24ac) < '\0') {\n            if ((undefined1 *)op == &DAT_00000022) {\n              uVar11 = 0x4000040;\n            }\n            else {\n              uVar11 = 0x4000000;\n            }\n            pEVar3->flags = pEVar3->flags | uVar11;\n            sqlite3Dequote((pEVar3->u).zToken);\n            pEVar3->nHeight = 1;\n            goto LAB_00038070;\n          }\n        }" if (parenthesized_expression "(dequote != 0)" ( (binary_expression "dequote != 0" identifier != number_literal) )) (compound_statement "{\n          bVar1 = *(pEVar3->u).zToken;\n          op = (int)(char)bVar1;\n          if (*(char *)((uint)bVar1 + *(int *)(puVar12 + -0x7fcc) + 0x24ac) < '\0') {\n            if ((undefined1 *)op == &DAT_00000022) {\n              uVar11 = 0x4000040;\n            }\n            else {\n              uVar11 = 0x4000000;\n            }\n            pEVar3->flags = pEVar3->flags | uVar11;\n            sqlite3Dequote((pEVar3->u).zToken);\n            pEVar3->nHeight = 1;\n            goto LAB_00038070;\n          }\n        }" { (expression_statement "bVar1 = *(pEVar3->u).zToken;" (assignment_expression "bVar1 = *(pEVar3->u).zToken" identifier = (pointer_expression "*(pEVar3->u).zToken" * (field_expression "(pEVar3->u).zToken" (parenthesized_expression "(pEVar3->u)" ( (field_expression "pEVar3->u" identifier -> field_identifier) )) . field_identifier))) ;) (expression_statement "op = (int)(char)bVar1;" (assignment_expression "op = (int)(char)bVar1" identifier = (cast_expression "(int)(char)bVar1" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)bVar1" ( (type_descriptor "char" primitive_type) ) identifier))) ;) (if_statement "if (*(char *)((uint)bVar1 + *(int *)(puVar12 + -0x7fcc) + 0x24ac) < '\0') {\n            if ((undefined1 *)op == &DAT_00000022) {\n              uVar11 = 0x4000040;\n            }\n            else {\n              uVar11 = 0x4000000;\n            }\n            pEVar3->flags = pEVar3->flags | uVar11;\n            sqlite3Dequote((pEVar3->u).zToken);\n            pEVar3->nHeight = 1;\n            goto LAB_00038070;\n          }" if (parenthesized_expression "(*(char *)((uint)bVar1 + *(int *)(puVar12 + -0x7fcc) + 0x24ac) < '\0')" ( (binary_expression "*(char *)((uint)bVar1 + *(int *)(puVar12 + -0x7fcc) + 0x24ac) < '\0'" (pointer_expression "*(char *)((uint)bVar1 + *(int *)(puVar12 + -0x7fcc) + 0x24ac)" * (cast_expression "(char *)((uint)bVar1 + *(int *)(puVar12 + -0x7fcc) + 0x24ac)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)bVar1 + *(int *)(puVar12 + -0x7fcc) + 0x24ac)" ( (binary_expression "(uint)bVar1 + *(int *)(puVar12 + -0x7fcc) + 0x24ac" (binary_expression "(uint)bVar1 + *(int *)(puVar12 + -0x7fcc)" (cast_expression "(uint)bVar1" ( (type_descriptor "uint" type_identifier) ) identifier) + (pointer_expression "*(int *)(puVar12 + -0x7fcc)" * (cast_expression "(int *)(puVar12 + -0x7fcc)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar12 + -0x7fcc)" ( (binary_expression "puVar12 + -0x7fcc" identifier + number_literal) ))))) + number_literal) )))) < (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n            if ((undefined1 *)op == &DAT_00000022) {\n              uVar11 = 0x4000040;\n            }\n            else {\n              uVar11 = 0x4000000;\n            }\n            pEVar3->flags = pEVar3->flags | uVar11;\n            sqlite3Dequote((pEVar3->u).zToken);\n            pEVar3->nHeight = 1;\n            goto LAB_00038070;\n          }" { (if_statement "if ((undefined1 *)op == &DAT_00000022) {\n              uVar11 = 0x4000040;\n            }\n            else {\n              uVar11 = 0x4000000;\n            }" if (parenthesized_expression "((undefined1 *)op == &DAT_00000022)" ( (binary_expression "(undefined1 *)op == &DAT_00000022" (cast_expression "(undefined1 *)op" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) == (pointer_expression "&DAT_00000022" & identifier)) )) (compound_statement "{\n              uVar11 = 0x4000040;\n            }" { (expression_statement "uVar11 = 0x4000040;" (assignment_expression "uVar11 = 0x4000040" identifier = number_literal) ;) }) (else_clause "else {\n              uVar11 = 0x4000000;\n            }" else (compound_statement "{\n              uVar11 = 0x4000000;\n            }" { (expression_statement "uVar11 = 0x4000000;" (assignment_expression "uVar11 = 0x4000000" identifier = number_literal) ;) }))) (expression_statement "pEVar3->flags = pEVar3->flags | uVar11;" (assignment_expression "pEVar3->flags = pEVar3->flags | uVar11" (field_expression "pEVar3->flags" identifier -> field_identifier) = (binary_expression "pEVar3->flags | uVar11" (field_expression "pEVar3->flags" identifier -> field_identifier) | identifier)) ;) (expression_statement "sqlite3Dequote((pEVar3->u).zToken);" (call_expression "sqlite3Dequote((pEVar3->u).zToken)" identifier (argument_list "((pEVar3->u).zToken)" ( (field_expression "(pEVar3->u).zToken" (parenthesized_expression "(pEVar3->u)" ( (field_expression "pEVar3->u" identifier -> field_identifier) )) . field_identifier) ))) ;) (expression_statement "pEVar3->nHeight = 1;" (assignment_expression "pEVar3->nHeight = 1" (field_expression "pEVar3->nHeight" identifier -> field_identifier) = number_literal) ;) (goto_statement "goto LAB_00038070;" goto statement_identifier ;) })) })) (expression_statement "pEVar3->nHeight = 1;" (assignment_expression "pEVar3->nHeight = 1" (field_expression "pEVar3->nHeight" identifier -> field_identifier) = number_literal) ;) (goto_statement "goto LAB_00038070;" goto statement_identifier ;) })) }))) (if_statement "if (iValue == 0) {\n      uVar11 = 0x20800400;\n    }\n    else {\n      uVar11 = 0x10800400;\n    }" if (parenthesized_expression "(iValue == 0)" ( (binary_expression "iValue == 0" identifier == number_literal) )) (compound_statement "{\n      uVar11 = 0x20800400;\n    }" { (expression_statement "uVar11 = 0x20800400;" (assignment_expression "uVar11 = 0x20800400" identifier = number_literal) ;) }) (else_clause "else {\n      uVar11 = 0x10800400;\n    }" else (compound_statement "{\n      uVar11 = 0x10800400;\n    }" { (expression_statement "uVar11 = 0x10800400;" (assignment_expression "uVar11 = 0x10800400" identifier = number_literal) ;) }))) (expression_statement "(pEVar3->u).iValue = iValue;" (assignment_expression "(pEVar3->u).iValue = iValue" (field_expression "(pEVar3->u).iValue" (parenthesized_expression "(pEVar3->u)" ( (field_expression "pEVar3->u" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "pEVar3->flags = pEVar3->flags | uVar11;" (assignment_expression "pEVar3->flags = pEVar3->flags | uVar11" (field_expression "pEVar3->flags" identifier -> field_identifier) = (binary_expression "pEVar3->flags | uVar11" (field_expression "pEVar3->flags" identifier -> field_identifier) | identifier)) ;) (expression_statement "pEVar3->nHeight = 1;" (assignment_expression "pEVar3->nHeight = 1" (field_expression "pEVar3->nHeight" identifier -> field_identifier) = number_literal) ;) }))) (labeled_statement "LAB_00038070:\n  if (local_24 == *(sqlite3 **)puVar2) {\n    return pEVar3;\n  }" statement_identifier : (if_statement "if (local_24 == *(sqlite3 **)puVar2) {\n    return pEVar3;\n  }" if (parenthesized_expression "(local_24 == *(sqlite3 **)puVar2)" ( (binary_expression "local_24 == *(sqlite3 **)puVar2" identifier == (pointer_expression "*(sqlite3 **)puVar2" * (cast_expression "(sqlite3 **)puVar2" ( (type_descriptor "sqlite3 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) identifier))) )) (compound_statement "{\n    return pEVar3;\n  }" { (return_statement "return pEVar3;" return identifier ;) }))) (expression_statement "db_00 = local_24;" (assignment_expression "db_00 = local_24" identifier = identifier) ;) (expression_statement "(**(code **)(puVar12 + -0x7d60))();" (call_expression "(**(code **)(puVar12 + -0x7d60))()" (parenthesized_expression "(**(code **)(puVar12 + -0x7d60))" ( (pointer_expression "**(code **)(puVar12 + -0x7d60)" * (pointer_expression "*(code **)(puVar12 + -0x7d60)" * (cast_expression "(code **)(puVar12 + -0x7d60)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar12 + -0x7d60)" ( (binary_expression "puVar12 + -0x7d60" identifier + number_literal) ))))) )) (argument_list "()" ( ))) ;) (expression_statement "pEVar3 = sqlite3ExprAlloc(db_00,0xa4,(Token *)0x0,0);" (assignment_expression "pEVar3 = sqlite3ExprAlloc(db_00,0xa4,(Token *)0x0,0)" identifier = (call_expression "sqlite3ExprAlloc(db_00,0xa4,(Token *)0x0,0)" identifier (argument_list "(db_00,0xa4,(Token *)0x0,0)" ( identifier , number_literal , (cast_expression "(Token *)0x0" ( (type_descriptor "Token *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , number_literal )))) ;) (if_statement "if (pEVar3 != (Expr *)0x0) {\n    pTVar6 = *(Table **)(op + (uVar8 * 0x12 + 6) * 4);\n    iVar5 = *(int *)(op + (uVar8 * 0x12 + 0xc) * 4);\n    (pEVar3->y).pTab = pTVar6;\n    pEVar3->iTable = iVar5;\n    if ((int)pTVar6->iPKey == uVar9) {\n      pEVar3->iColumn = -1;\n      return pEVar3;\n    }\n    uVar11 = pTVar6->tabFlags;\n    pEVar3->iColumn = (ynVar)uVar9;\n    if (((uVar11 & 0x60) == 0) || ((pTVar6->aCol[uVar9].colFlags & 0x60) == 0)) {\n      if (0x3f < (int)uVar9) {\n        uVar9 = 0x3f;\n      }\n      uVar11 = 1 << (uVar9 & 0x1f);\n      if ((uVar9 & 0x20) == 0) {\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = uVar11;\n        uVar11 = 0;\n      }\n      *(uint *)(op + (uVar8 * 0x12 + 0x10) * 4) = *(uint *)(op + (uVar8 * 0x12 + 0x10) * 4) | uVar9;\n      *(uint *)(op + (uVar8 * 0x12 + 0x11) * 4) = *(uint *)(op + (uVar8 * 0x12 + 0x11) * 4) | uVar11\n      ;\n      return pEVar3;\n    }\n    uVar9 = (uint)pTVar6->nCol;\n    if ((int)uVar9 < 0x40) {\n      uVar11 = 1 << (uVar9 & 0x1f);\n      if ((uVar9 & 0x20) == 0) {\n        uVar7 = 0;\n      }\n      else {\n        uVar7 = uVar11;\n        uVar11 = 0;\n      }\n      uVar9 = uVar11 - 1;\n      iVar5 = (uint)(uVar9 < uVar11) + (uVar7 - 1);\n    }\n    else {\n      iVar5 = -1;\n      uVar9 = 0xffffffff;\n    }\n    *(int *)(op + (uVar8 * 0x12 + 0x10) * 4) = iVar5;\n    *(uint *)(op + (uVar8 * 0x12 + 0x11) * 4) = uVar9;\n  }" if (parenthesized_expression "(pEVar3 != (Expr *)0x0)" ( (binary_expression "pEVar3 != (Expr *)0x0" identifier != (cast_expression "(Expr *)0x0" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pTVar6 = *(Table **)(op + (uVar8 * 0x12 + 6) * 4);\n    iVar5 = *(int *)(op + (uVar8 * 0x12 + 0xc) * 4);\n    (pEVar3->y).pTab = pTVar6;\n    pEVar3->iTable = iVar5;\n    if ((int)pTVar6->iPKey == uVar9) {\n      pEVar3->iColumn = -1;\n      return pEVar3;\n    }\n    uVar11 = pTVar6->tabFlags;\n    pEVar3->iColumn = (ynVar)uVar9;\n    if (((uVar11 & 0x60) == 0) || ((pTVar6->aCol[uVar9].colFlags & 0x60) == 0)) {\n      if (0x3f < (int)uVar9) {\n        uVar9 = 0x3f;\n      }\n      uVar11 = 1 << (uVar9 & 0x1f);\n      if ((uVar9 & 0x20) == 0) {\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = uVar11;\n        uVar11 = 0;\n      }\n      *(uint *)(op + (uVar8 * 0x12 + 0x10) * 4) = *(uint *)(op + (uVar8 * 0x12 + 0x10) * 4) | uVar9;\n      *(uint *)(op + (uVar8 * 0x12 + 0x11) * 4) = *(uint *)(op + (uVar8 * 0x12 + 0x11) * 4) | uVar11\n      ;\n      return pEVar3;\n    }\n    uVar9 = (uint)pTVar6->nCol;\n    if ((int)uVar9 < 0x40) {\n      uVar11 = 1 << (uVar9 & 0x1f);\n      if ((uVar9 & 0x20) == 0) {\n        uVar7 = 0;\n      }\n      else {\n        uVar7 = uVar11;\n        uVar11 = 0;\n      }\n      uVar9 = uVar11 - 1;\n      iVar5 = (uint)(uVar9 < uVar11) + (uVar7 - 1);\n    }\n    else {\n      iVar5 = -1;\n      uVar9 = 0xffffffff;\n    }\n    *(int *)(op + (uVar8 * 0x12 + 0x10) * 4) = iVar5;\n    *(uint *)(op + (uVar8 * 0x12 + 0x11) * 4) = uVar9;\n  }" { (expression_statement "pTVar6 = *(Table **)(op + (uVar8 * 0x12 + 6) * 4);" (assignment_expression "pTVar6 = *(Table **)(op + (uVar8 * 0x12 + 6) * 4)" identifier = (pointer_expression "*(Table **)(op + (uVar8 * 0x12 + 6) * 4)" * (cast_expression "(Table **)(op + (uVar8 * 0x12 + 6) * 4)" ( (type_descriptor "Table **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(op + (uVar8 * 0x12 + 6) * 4)" ( (binary_expression "op + (uVar8 * 0x12 + 6) * 4" identifier + (binary_expression "(uVar8 * 0x12 + 6) * 4" (parenthesized_expression "(uVar8 * 0x12 + 6)" ( (binary_expression "uVar8 * 0x12 + 6" (binary_expression "uVar8 * 0x12" identifier * number_literal) + number_literal) )) * number_literal)) ))))) ;) (expression_statement "iVar5 = *(int *)(op + (uVar8 * 0x12 + 0xc) * 4);" (assignment_expression "iVar5 = *(int *)(op + (uVar8 * 0x12 + 0xc) * 4)" identifier = (pointer_expression "*(int *)(op + (uVar8 * 0x12 + 0xc) * 4)" * (cast_expression "(int *)(op + (uVar8 * 0x12 + 0xc) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(op + (uVar8 * 0x12 + 0xc) * 4)" ( (binary_expression "op + (uVar8 * 0x12 + 0xc) * 4" identifier + (binary_expression "(uVar8 * 0x12 + 0xc) * 4" (parenthesized_expression "(uVar8 * 0x12 + 0xc)" ( (binary_expression "uVar8 * 0x12 + 0xc" (binary_expression "uVar8 * 0x12" identifier * number_literal) + number_literal) )) * number_literal)) ))))) ;) (expression_statement "(pEVar3->y).pTab = pTVar6;" (assignment_expression "(pEVar3->y).pTab = pTVar6" (field_expression "(pEVar3->y).pTab" (parenthesized_expression "(pEVar3->y)" ( (field_expression "pEVar3->y" identifier -> field_identifier) )) . field_identifier) = identifier) ;) (expression_statement "pEVar3->iTable = iVar5;" (assignment_expression "pEVar3->iTable = iVar5" (field_expression "pEVar3->iTable" identifier -> field_identifier) = identifier) ;) (if_statement "if ((int)pTVar6->iPKey == uVar9) {\n      pEVar3->iColumn = -1;\n      return pEVar3;\n    }" if (parenthesized_expression "((int)pTVar6->iPKey == uVar9)" ( (binary_expression "(int)pTVar6->iPKey == uVar9" (cast_expression "(int)pTVar6->iPKey" ( (type_descriptor "int" primitive_type) ) (field_expression "pTVar6->iPKey" identifier -> field_identifier)) == identifier) )) (compound_statement "{\n      pEVar3->iColumn = -1;\n      return pEVar3;\n    }" { (expression_statement "pEVar3->iColumn = -1;" (assignment_expression "pEVar3->iColumn = -1" (field_expression "pEVar3->iColumn" identifier -> field_identifier) = number_literal) ;) (return_statement "return pEVar3;" return identifier ;) })) (expression_statement "uVar11 = pTVar6->tabFlags;" (assignment_expression "uVar11 = pTVar6->tabFlags" identifier = (field_expression "pTVar6->tabFlags" identifier -> field_identifier)) ;) (expression_statement "pEVar3->iColumn = (ynVar)uVar9;" (assignment_expression "pEVar3->iColumn = (ynVar)uVar9" (field_expression "pEVar3->iColumn" identifier -> field_identifier) = (cast_expression "(ynVar)uVar9" ( (type_descriptor "ynVar" type_identifier) ) identifier)) ;) (if_statement "if (((uVar11 & 0x60) == 0) || ((pTVar6->aCol[uVar9].colFlags & 0x60) == 0)) {\n      if (0x3f < (int)uVar9) {\n        uVar9 = 0x3f;\n      }\n      uVar11 = 1 << (uVar9 & 0x1f);\n      if ((uVar9 & 0x20) == 0) {\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = uVar11;\n        uVar11 = 0;\n      }\n      *(uint *)(op + (uVar8 * 0x12 + 0x10) * 4) = *(uint *)(op + (uVar8 * 0x12 + 0x10) * 4) | uVar9;\n      *(uint *)(op + (uVar8 * 0x12 + 0x11) * 4) = *(uint *)(op + (uVar8 * 0x12 + 0x11) * 4) | uVar11\n      ;\n      return pEVar3;\n    }" if (parenthesized_expression "(((uVar11 & 0x60) == 0) || ((pTVar6->aCol[uVar9].colFlags & 0x60) == 0))" ( (binary_expression "((uVar11 & 0x60) == 0) || ((pTVar6->aCol[uVar9].colFlags & 0x60) == 0)" (parenthesized_expression "((uVar11 & 0x60) == 0)" ( (binary_expression "(uVar11 & 0x60) == 0" (parenthesized_expression "(uVar11 & 0x60)" ( (binary_expression "uVar11 & 0x60" identifier & number_literal) )) == number_literal) )) || (parenthesized_expression "((pTVar6->aCol[uVar9].colFlags & 0x60) == 0)" ( (binary_expression "(pTVar6->aCol[uVar9].colFlags & 0x60) == 0" (parenthesized_expression "(pTVar6->aCol[uVar9].colFlags & 0x60)" ( (binary_expression "pTVar6->aCol[uVar9].colFlags & 0x60" (field_expression "pTVar6->aCol[uVar9].colFlags" (subscript_expression "pTVar6->aCol[uVar9]" (field_expression "pTVar6->aCol" identifier -> field_identifier) [ identifier ]) . field_identifier) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n      if (0x3f < (int)uVar9) {\n        uVar9 = 0x3f;\n      }\n      uVar11 = 1 << (uVar9 & 0x1f);\n      if ((uVar9 & 0x20) == 0) {\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = uVar11;\n        uVar11 = 0;\n      }\n      *(uint *)(op + (uVar8 * 0x12 + 0x10) * 4) = *(uint *)(op + (uVar8 * 0x12 + 0x10) * 4) | uVar9;\n      *(uint *)(op + (uVar8 * 0x12 + 0x11) * 4) = *(uint *)(op + (uVar8 * 0x12 + 0x11) * 4) | uVar11\n      ;\n      return pEVar3;\n    }" { (if_statement "if (0x3f < (int)uVar9) {\n        uVar9 = 0x3f;\n      }" if (parenthesized_expression "(0x3f < (int)uVar9)" ( (binary_expression "0x3f < (int)uVar9" number_literal < (cast_expression "(int)uVar9" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n        uVar9 = 0x3f;\n      }" { (expression_statement "uVar9 = 0x3f;" (assignment_expression "uVar9 = 0x3f" identifier = number_literal) ;) })) (expression_statement "uVar11 = 1 << (uVar9 & 0x1f);" (assignment_expression "uVar11 = 1 << (uVar9 & 0x1f)" identifier = (binary_expression "1 << (uVar9 & 0x1f)" number_literal << (parenthesized_expression "(uVar9 & 0x1f)" ( (binary_expression "uVar9 & 0x1f" identifier & number_literal) )))) ;) (if_statement "if ((uVar9 & 0x20) == 0) {\n        uVar9 = 0;\n      }\n      else {\n        uVar9 = uVar11;\n        uVar11 = 0;\n      }" if (parenthesized_expression "((uVar9 & 0x20) == 0)" ( (binary_expression "(uVar9 & 0x20) == 0" (parenthesized_expression "(uVar9 & 0x20)" ( (binary_expression "uVar9 & 0x20" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        uVar9 = 0;\n      }" { (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        uVar9 = uVar11;\n        uVar11 = 0;\n      }" else (compound_statement "{\n        uVar9 = uVar11;\n        uVar11 = 0;\n      }" { (expression_statement "uVar9 = uVar11;" (assignment_expression "uVar9 = uVar11" identifier = identifier) ;) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) }))) (expression_statement "*(uint *)(op + (uVar8 * 0x12 + 0x10) * 4) = *(uint *)(op + (uVar8 * 0x12 + 0x10) * 4) | uVar9;" (assignment_expression "*(uint *)(op + (uVar8 * 0x12 + 0x10) * 4) = *(uint *)(op + (uVar8 * 0x12 + 0x10) * 4) | uVar9" (pointer_expression "*(uint *)(op + (uVar8 * 0x12 + 0x10) * 4)" * (cast_expression "(uint *)(op + (uVar8 * 0x12 + 0x10) * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(op + (uVar8 * 0x12 + 0x10) * 4)" ( (binary_expression "op + (uVar8 * 0x12 + 0x10) * 4" identifier + (binary_expression "(uVar8 * 0x12 + 0x10) * 4" (parenthesized_expression "(uVar8 * 0x12 + 0x10)" ( (binary_expression "uVar8 * 0x12 + 0x10" (binary_expression "uVar8 * 0x12" identifier * number_literal) + number_literal) )) * number_literal)) )))) = (binary_expression "*(uint *)(op + (uVar8 * 0x12 + 0x10) * 4) | uVar9" (pointer_expression "*(uint *)(op + (uVar8 * 0x12 + 0x10) * 4)" * (cast_expression "(uint *)(op + (uVar8 * 0x12 + 0x10) * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(op + (uVar8 * 0x12 + 0x10) * 4)" ( (binary_expression "op + (uVar8 * 0x12 + 0x10) * 4" identifier + (binary_expression "(uVar8 * 0x12 + 0x10) * 4" (parenthesized_expression "(uVar8 * 0x12 + 0x10)" ( (binary_expression "uVar8 * 0x12 + 0x10" (binary_expression "uVar8 * 0x12" identifier * number_literal) + number_literal) )) * number_literal)) )))) | identifier)) ;) (expression_statement "*(uint *)(op + (uVar8 * 0x12 + 0x11) * 4) = *(uint *)(op + (uVar8 * 0x12 + 0x11) * 4) | uVar11\n      ;" (assignment_expression "*(uint *)(op + (uVar8 * 0x12 + 0x11) * 4) = *(uint *)(op + (uVar8 * 0x12 + 0x11) * 4) | uVar11" (pointer_expression "*(uint *)(op + (uVar8 * 0x12 + 0x11) * 4)" * (cast_expression "(uint *)(op + (uVar8 * 0x12 + 0x11) * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(op + (uVar8 * 0x12 + 0x11) * 4)" ( (binary_expression "op + (uVar8 * 0x12 + 0x11) * 4" identifier + (binary_expression "(uVar8 * 0x12 + 0x11) * 4" (parenthesized_expression "(uVar8 * 0x12 + 0x11)" ( (binary_expression "uVar8 * 0x12 + 0x11" (binary_expression "uVar8 * 0x12" identifier * number_literal) + number_literal) )) * number_literal)) )))) = (binary_expression "*(uint *)(op + (uVar8 * 0x12 + 0x11) * 4) | uVar11" (pointer_expression "*(uint *)(op + (uVar8 * 0x12 + 0x11) * 4)" * (cast_expression "(uint *)(op + (uVar8 * 0x12 + 0x11) * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(op + (uVar8 * 0x12 + 0x11) * 4)" ( (binary_expression "op + (uVar8 * 0x12 + 0x11) * 4" identifier + (binary_expression "(uVar8 * 0x12 + 0x11) * 4" (parenthesized_expression "(uVar8 * 0x12 + 0x11)" ( (binary_expression "uVar8 * 0x12 + 0x11" (binary_expression "uVar8 * 0x12" identifier * number_literal) + number_literal) )) * number_literal)) )))) | identifier)) ;) (return_statement "return pEVar3;" return identifier ;) })) (expression_statement "uVar9 = (uint)pTVar6->nCol;" (assignment_expression "uVar9 = (uint)pTVar6->nCol" identifier = (cast_expression "(uint)pTVar6->nCol" ( (type_descriptor "uint" type_identifier) ) (field_expression "pTVar6->nCol" identifier -> field_identifier))) ;) (if_statement "if ((int)uVar9 < 0x40) {\n      uVar11 = 1 << (uVar9 & 0x1f);\n      if ((uVar9 & 0x20) == 0) {\n        uVar7 = 0;\n      }\n      else {\n        uVar7 = uVar11;\n        uVar11 = 0;\n      }\n      uVar9 = uVar11 - 1;\n      iVar5 = (uint)(uVar9 < uVar11) + (uVar7 - 1);\n    }\n    else {\n      iVar5 = -1;\n      uVar9 = 0xffffffff;\n    }" if (parenthesized_expression "((int)uVar9 < 0x40)" ( (binary_expression "(int)uVar9 < 0x40" (cast_expression "(int)uVar9" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n      uVar11 = 1 << (uVar9 & 0x1f);\n      if ((uVar9 & 0x20) == 0) {\n        uVar7 = 0;\n      }\n      else {\n        uVar7 = uVar11;\n        uVar11 = 0;\n      }\n      uVar9 = uVar11 - 1;\n      iVar5 = (uint)(uVar9 < uVar11) + (uVar7 - 1);\n    }" { (expression_statement "uVar11 = 1 << (uVar9 & 0x1f);" (assignment_expression "uVar11 = 1 << (uVar9 & 0x1f)" identifier = (binary_expression "1 << (uVar9 & 0x1f)" number_literal << (parenthesized_expression "(uVar9 & 0x1f)" ( (binary_expression "uVar9 & 0x1f" identifier & number_literal) )))) ;) (if_statement "if ((uVar9 & 0x20) == 0) {\n        uVar7 = 0;\n      }\n      else {\n        uVar7 = uVar11;\n        uVar11 = 0;\n      }" if (parenthesized_expression "((uVar9 & 0x20) == 0)" ( (binary_expression "(uVar9 & 0x20) == 0" (parenthesized_expression "(uVar9 & 0x20)" ( (binary_expression "uVar9 & 0x20" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        uVar7 = 0;\n      }" { (expression_statement "uVar7 = 0;" (assignment_expression "uVar7 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        uVar7 = uVar11;\n        uVar11 = 0;\n      }" else (compound_statement "{\n        uVar7 = uVar11;\n        uVar11 = 0;\n      }" { (expression_statement "uVar7 = uVar11;" (assignment_expression "uVar7 = uVar11" identifier = identifier) ;) (expression_statement "uVar11 = 0;" (assignment_expression "uVar11 = 0" identifier = number_literal) ;) }))) (expression_statement "uVar9 = uVar11 - 1;" (assignment_expression "uVar9 = uVar11 - 1" identifier = (binary_expression "uVar11 - 1" identifier - number_literal)) ;) (expression_statement "iVar5 = (uint)(uVar9 < uVar11) + (uVar7 - 1);" (assignment_expression "iVar5 = (uint)(uVar9 < uVar11) + (uVar7 - 1)" identifier = (binary_expression "(uint)(uVar9 < uVar11) + (uVar7 - 1)" (call_expression "(uint)(uVar9 < uVar11)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar9 < uVar11)" ( (binary_expression "uVar9 < uVar11" identifier < identifier) ))) + (parenthesized_expression "(uVar7 - 1)" ( (binary_expression "uVar7 - 1" identifier - number_literal) )))) ;) }) (else_clause "else {\n      iVar5 = -1;\n      uVar9 = 0xffffffff;\n    }" else (compound_statement "{\n      iVar5 = -1;\n      uVar9 = 0xffffffff;\n    }" { (expression_statement "iVar5 = -1;" (assignment_expression "iVar5 = -1" identifier = number_literal) ;) (expression_statement "uVar9 = 0xffffffff;" (assignment_expression "uVar9 = 0xffffffff" identifier = number_literal) ;) }))) (expression_statement "*(int *)(op + (uVar8 * 0x12 + 0x10) * 4) = iVar5;" (assignment_expression "*(int *)(op + (uVar8 * 0x12 + 0x10) * 4) = iVar5" (pointer_expression "*(int *)(op + (uVar8 * 0x12 + 0x10) * 4)" * (cast_expression "(int *)(op + (uVar8 * 0x12 + 0x10) * 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(op + (uVar8 * 0x12 + 0x10) * 4)" ( (binary_expression "op + (uVar8 * 0x12 + 0x10) * 4" identifier + (binary_expression "(uVar8 * 0x12 + 0x10) * 4" (parenthesized_expression "(uVar8 * 0x12 + 0x10)" ( (binary_expression "uVar8 * 0x12 + 0x10" (binary_expression "uVar8 * 0x12" identifier * number_literal) + number_literal) )) * number_literal)) )))) = identifier) ;) (expression_statement "*(uint *)(op + (uVar8 * 0x12 + 0x11) * 4) = uVar9;" (assignment_expression "*(uint *)(op + (uVar8 * 0x12 + 0x11) * 4) = uVar9" (pointer_expression "*(uint *)(op + (uVar8 * 0x12 + 0x11) * 4)" * (cast_expression "(uint *)(op + (uVar8 * 0x12 + 0x11) * 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(op + (uVar8 * 0x12 + 0x11) * 4)" ( (binary_expression "op + (uVar8 * 0x12 + 0x11) * 4" identifier + (binary_expression "(uVar8 * 0x12 + 0x11) * 4" (parenthesized_expression "(uVar8 * 0x12 + 0x11)" ( (binary_expression "uVar8 * 0x12 + 0x11" (binary_expression "uVar8 * 0x12" identifier * number_literal) + number_literal) )) * number_literal)) )))) = identifier) ;) })) (return_statement "return pEVar3;" return identifier ;) })))
(translation_unit "undefined1 * FUN_00037f2c(undefined4 param_1,int *param_2,int *param_3,int param_4)\n\n{\n  undefined *puVar1;\n  undefined1 *puVar2;\n  undefined1 *puVar3;\n  uint uVar4;\n  int iVar5;\n  uint uVar6;\n  int iVar7;\n  uint uVar8;\n  undefined1 uVar9;\n  int iVar10;\n  int local_28;\n  int local_24;\n  \n  puVar1 = PTR___stack_chk_guard_000f5568;\n  local_28 = 0;\n  local_24 = *(int *)PTR___stack_chk_guard_000f5568;\n  uVar9 = SUB41(param_2,0);\n  if (param_3 == (int *)0x0) {\n    uVar8 = 0x34;\n    iVar7 = 0;\n    puVar2 = (undefined1 *)FUN_00036c00();\n    if (puVar2 != (undefined1 *)0x0) {\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      *puVar2 = uVar9;\n      *(undefined4 *)(puVar2 + 0x18) = 1;\n      goto LAB_00038070;\n    }\nLAB_0003806c:\n    puVar2 = (undefined1 *)0x0;\n  }\n  else {\n    if ((param_2 == (int *)&DAT_00000098) && (*param_3 != 0)) {\n      param_2 = &local_28;\n      iVar7 = FUN_000249b4();\n      if (iVar7 == 0) goto LAB_00037f88;\n      uVar8 = 0x34;\n      iVar7 = 0;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = 0x98;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n    }\n    else {\nLAB_00037f88:\n      iVar7 = 0;\n      iVar10 = param_3[1];\n      uVar8 = iVar10 + 0x35;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = uVar9;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      if (iVar10 != -1) {\n        iVar7 = param_3[1];\n        puVar3 = puVar2 + 0x34;\n        *(undefined1 **)(puVar2 + 8) = puVar3;\n        if (iVar7 != 0) {\n          param_2 = (int *)*param_3;\n          puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3);\n          iVar7 = param_3[1];\n        }\n        puVar3[iVar7] = 0;\n        if ((param_4 == 0) ||\n           (param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac])) {\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        else {\n          if (param_2 == (int *)&DAT_00000022) {\n            uVar4 = 0x4000040;\n          }\n          else {\n            uVar4 = 0x4000000;\n          }\n          *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n          FUN_00020220();\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        goto LAB_00038070;\n      }\n    }\n    if (local_28 == 0) {\n      uVar4 = 0x20800400;\n    }\n    else {\n      uVar4 = 0x10800400;\n    }\n    *(int *)(puVar2 + 8) = local_28;\n    *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n    *(undefined4 *)(puVar2 + 0x18) = 1;\n  }\nLAB_00038070:\n  if (local_24 == *(int *)puVar1) {\n    return puVar2;\n  }\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  puVar2 = (undefined1 *)FUN_00037f2c();\n  if (puVar2 != (undefined1 *)0x0) {\n    iVar5 = param_2[iVar7 * 0x12 + 6];\n    iVar10 = param_2[iVar7 * 0x12 + 0xc];\n    *(int *)(puVar2 + 0x2c) = iVar5;\n    *(int *)(puVar2 + 0x1c) = iVar10;\n    if ((int)*(short *)(iVar5 + 0x28) == uVar8) {\n      *(undefined2 *)(puVar2 + 0x20) = 0xffff;\n      return puVar2;\n    }\n    uVar4 = *(uint *)(iVar5 + 0x24);\n    *(short *)(puVar2 + 0x20) = (short)uVar8;\n    if (((uVar4 & 0x60) == 0) ||\n       ((*(ushort *)(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10) & 0x60) == 0)) {\n      if (0x3f < (int)uVar8) {\n        uVar8 = 0x3f;\n      }\n      uVar4 = 1 << (uVar8 & 0x1f);\n      if ((uVar8 & 0x20) == 0) {\n        uVar8 = 0;\n      }\n      else {\n        uVar8 = uVar4;\n        uVar4 = 0;\n      }\n      param_2[iVar7 * 0x12 + 0x10] = param_2[iVar7 * 0x12 + 0x10] | uVar8;\n      param_2[iVar7 * 0x12 + 0x11] = param_2[iVar7 * 0x12 + 0x11] | uVar4;\n      return puVar2;\n    }\n    uVar8 = (uint)*(short *)(iVar5 + 0x2a);\n    if ((int)uVar8 < 0x40) {\n      uVar4 = 1 << (uVar8 & 0x1f);\n      if ((uVar8 & 0x20) == 0) {\n        uVar6 = 0;\n      }\n      else {\n        uVar6 = uVar4;\n        uVar4 = 0;\n      }\n      uVar8 = uVar4 - 1;\n      iVar10 = (uint)(uVar8 < uVar4) + (uVar6 - 1);\n    }\n    else {\n      iVar10 = -1;\n      uVar8 = 0xffffffff;\n    }\n    param_2[iVar7 * 0x12 + 0x10] = iVar10;\n    param_2[iVar7 * 0x12 + 0x11] = uVar8;\n  }\n  return puVar2;\n}\n\n" (function_definition "undefined1 * FUN_00037f2c(undefined4 param_1,int *param_2,int *param_3,int param_4)\n\n{\n  undefined *puVar1;\n  undefined1 *puVar2;\n  undefined1 *puVar3;\n  uint uVar4;\n  int iVar5;\n  uint uVar6;\n  int iVar7;\n  uint uVar8;\n  undefined1 uVar9;\n  int iVar10;\n  int local_28;\n  int local_24;\n  \n  puVar1 = PTR___stack_chk_guard_000f5568;\n  local_28 = 0;\n  local_24 = *(int *)PTR___stack_chk_guard_000f5568;\n  uVar9 = SUB41(param_2,0);\n  if (param_3 == (int *)0x0) {\n    uVar8 = 0x34;\n    iVar7 = 0;\n    puVar2 = (undefined1 *)FUN_00036c00();\n    if (puVar2 != (undefined1 *)0x0) {\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      *puVar2 = uVar9;\n      *(undefined4 *)(puVar2 + 0x18) = 1;\n      goto LAB_00038070;\n    }\nLAB_0003806c:\n    puVar2 = (undefined1 *)0x0;\n  }\n  else {\n    if ((param_2 == (int *)&DAT_00000098) && (*param_3 != 0)) {\n      param_2 = &local_28;\n      iVar7 = FUN_000249b4();\n      if (iVar7 == 0) goto LAB_00037f88;\n      uVar8 = 0x34;\n      iVar7 = 0;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = 0x98;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n    }\n    else {\nLAB_00037f88:\n      iVar7 = 0;\n      iVar10 = param_3[1];\n      uVar8 = iVar10 + 0x35;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = uVar9;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      if (iVar10 != -1) {\n        iVar7 = param_3[1];\n        puVar3 = puVar2 + 0x34;\n        *(undefined1 **)(puVar2 + 8) = puVar3;\n        if (iVar7 != 0) {\n          param_2 = (int *)*param_3;\n          puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3);\n          iVar7 = param_3[1];\n        }\n        puVar3[iVar7] = 0;\n        if ((param_4 == 0) ||\n           (param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac])) {\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        else {\n          if (param_2 == (int *)&DAT_00000022) {\n            uVar4 = 0x4000040;\n          }\n          else {\n            uVar4 = 0x4000000;\n          }\n          *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n          FUN_00020220();\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        goto LAB_00038070;\n      }\n    }\n    if (local_28 == 0) {\n      uVar4 = 0x20800400;\n    }\n    else {\n      uVar4 = 0x10800400;\n    }\n    *(int *)(puVar2 + 8) = local_28;\n    *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n    *(undefined4 *)(puVar2 + 0x18) = 1;\n  }\nLAB_00038070:\n  if (local_24 == *(int *)puVar1) {\n    return puVar2;\n  }\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  puVar2 = (undefined1 *)FUN_00037f2c();\n  if (puVar2 != (undefined1 *)0x0) {\n    iVar5 = param_2[iVar7 * 0x12 + 6];\n    iVar10 = param_2[iVar7 * 0x12 + 0xc];\n    *(int *)(puVar2 + 0x2c) = iVar5;\n    *(int *)(puVar2 + 0x1c) = iVar10;\n    if ((int)*(short *)(iVar5 + 0x28) == uVar8) {\n      *(undefined2 *)(puVar2 + 0x20) = 0xffff;\n      return puVar2;\n    }\n    uVar4 = *(uint *)(iVar5 + 0x24);\n    *(short *)(puVar2 + 0x20) = (short)uVar8;\n    if (((uVar4 & 0x60) == 0) ||\n       ((*(ushort *)(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10) & 0x60) == 0)) {\n      if (0x3f < (int)uVar8) {\n        uVar8 = 0x3f;\n      }\n      uVar4 = 1 << (uVar8 & 0x1f);\n      if ((uVar8 & 0x20) == 0) {\n        uVar8 = 0;\n      }\n      else {\n        uVar8 = uVar4;\n        uVar4 = 0;\n      }\n      param_2[iVar7 * 0x12 + 0x10] = param_2[iVar7 * 0x12 + 0x10] | uVar8;\n      param_2[iVar7 * 0x12 + 0x11] = param_2[iVar7 * 0x12 + 0x11] | uVar4;\n      return puVar2;\n    }\n    uVar8 = (uint)*(short *)(iVar5 + 0x2a);\n    if ((int)uVar8 < 0x40) {\n      uVar4 = 1 << (uVar8 & 0x1f);\n      if ((uVar8 & 0x20) == 0) {\n        uVar6 = 0;\n      }\n      else {\n        uVar6 = uVar4;\n        uVar4 = 0;\n      }\n      uVar8 = uVar4 - 1;\n      iVar10 = (uint)(uVar8 < uVar4) + (uVar6 - 1);\n    }\n    else {\n      iVar10 = -1;\n      uVar8 = 0xffffffff;\n    }\n    param_2[iVar7 * 0x12 + 0x10] = iVar10;\n    param_2[iVar7 * 0x12 + 0x11] = uVar8;\n  }\n  return puVar2;\n}" type_identifier (pointer_declarator "* FUN_00037f2c(undefined4 param_1,int *param_2,int *param_3,int param_4)" * (function_declarator "FUN_00037f2c(undefined4 param_1,int *param_2,int *param_3,int param_4)" identifier (parameter_list "(undefined4 param_1,int *param_2,int *param_3,int param_4)" ( (parameter_declaration "undefined4 param_1" type_identifier identifier) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "int param_4" primitive_type identifier) )))) (compound_statement "{\n  undefined *puVar1;\n  undefined1 *puVar2;\n  undefined1 *puVar3;\n  uint uVar4;\n  int iVar5;\n  uint uVar6;\n  int iVar7;\n  uint uVar8;\n  undefined1 uVar9;\n  int iVar10;\n  int local_28;\n  int local_24;\n  \n  puVar1 = PTR___stack_chk_guard_000f5568;\n  local_28 = 0;\n  local_24 = *(int *)PTR___stack_chk_guard_000f5568;\n  uVar9 = SUB41(param_2,0);\n  if (param_3 == (int *)0x0) {\n    uVar8 = 0x34;\n    iVar7 = 0;\n    puVar2 = (undefined1 *)FUN_00036c00();\n    if (puVar2 != (undefined1 *)0x0) {\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      *puVar2 = uVar9;\n      *(undefined4 *)(puVar2 + 0x18) = 1;\n      goto LAB_00038070;\n    }\nLAB_0003806c:\n    puVar2 = (undefined1 *)0x0;\n  }\n  else {\n    if ((param_2 == (int *)&DAT_00000098) && (*param_3 != 0)) {\n      param_2 = &local_28;\n      iVar7 = FUN_000249b4();\n      if (iVar7 == 0) goto LAB_00037f88;\n      uVar8 = 0x34;\n      iVar7 = 0;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = 0x98;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n    }\n    else {\nLAB_00037f88:\n      iVar7 = 0;\n      iVar10 = param_3[1];\n      uVar8 = iVar10 + 0x35;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = uVar9;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      if (iVar10 != -1) {\n        iVar7 = param_3[1];\n        puVar3 = puVar2 + 0x34;\n        *(undefined1 **)(puVar2 + 8) = puVar3;\n        if (iVar7 != 0) {\n          param_2 = (int *)*param_3;\n          puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3);\n          iVar7 = param_3[1];\n        }\n        puVar3[iVar7] = 0;\n        if ((param_4 == 0) ||\n           (param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac])) {\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        else {\n          if (param_2 == (int *)&DAT_00000022) {\n            uVar4 = 0x4000040;\n          }\n          else {\n            uVar4 = 0x4000000;\n          }\n          *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n          FUN_00020220();\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        goto LAB_00038070;\n      }\n    }\n    if (local_28 == 0) {\n      uVar4 = 0x20800400;\n    }\n    else {\n      uVar4 = 0x10800400;\n    }\n    *(int *)(puVar2 + 8) = local_28;\n    *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n    *(undefined4 *)(puVar2 + 0x18) = 1;\n  }\nLAB_00038070:\n  if (local_24 == *(int *)puVar1) {\n    return puVar2;\n  }\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  puVar2 = (undefined1 *)FUN_00037f2c();\n  if (puVar2 != (undefined1 *)0x0) {\n    iVar5 = param_2[iVar7 * 0x12 + 6];\n    iVar10 = param_2[iVar7 * 0x12 + 0xc];\n    *(int *)(puVar2 + 0x2c) = iVar5;\n    *(int *)(puVar2 + 0x1c) = iVar10;\n    if ((int)*(short *)(iVar5 + 0x28) == uVar8) {\n      *(undefined2 *)(puVar2 + 0x20) = 0xffff;\n      return puVar2;\n    }\n    uVar4 = *(uint *)(iVar5 + 0x24);\n    *(short *)(puVar2 + 0x20) = (short)uVar8;\n    if (((uVar4 & 0x60) == 0) ||\n       ((*(ushort *)(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10) & 0x60) == 0)) {\n      if (0x3f < (int)uVar8) {\n        uVar8 = 0x3f;\n      }\n      uVar4 = 1 << (uVar8 & 0x1f);\n      if ((uVar8 & 0x20) == 0) {\n        uVar8 = 0;\n      }\n      else {\n        uVar8 = uVar4;\n        uVar4 = 0;\n      }\n      param_2[iVar7 * 0x12 + 0x10] = param_2[iVar7 * 0x12 + 0x10] | uVar8;\n      param_2[iVar7 * 0x12 + 0x11] = param_2[iVar7 * 0x12 + 0x11] | uVar4;\n      return puVar2;\n    }\n    uVar8 = (uint)*(short *)(iVar5 + 0x2a);\n    if ((int)uVar8 < 0x40) {\n      uVar4 = 1 << (uVar8 & 0x1f);\n      if ((uVar8 & 0x20) == 0) {\n        uVar6 = 0;\n      }\n      else {\n        uVar6 = uVar4;\n        uVar4 = 0;\n      }\n      uVar8 = uVar4 - 1;\n      iVar10 = (uint)(uVar8 < uVar4) + (uVar6 - 1);\n    }\n    else {\n      iVar10 = -1;\n      uVar8 = 0xffffffff;\n    }\n    param_2[iVar7 * 0x12 + 0x10] = iVar10;\n    param_2[iVar7 * 0x12 + 0x11] = uVar8;\n  }\n  return puVar2;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "undefined1 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "undefined1 *puVar3;" type_identifier (pointer_declarator "*puVar3" * identifier) ;) (declaration "uint uVar4;" type_identifier identifier ;) (declaration "int iVar5;" primitive_type identifier ;) (declaration "uint uVar6;" type_identifier identifier ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "undefined1 uVar9;" type_identifier identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "int local_28;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_000f5568;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000f5568" identifier = identifier) ;) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" identifier = number_literal) ;) (expression_statement "local_24 = *(int *)PTR___stack_chk_guard_000f5568;" (assignment_expression "local_24 = *(int *)PTR___stack_chk_guard_000f5568" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_000f5568" * (cast_expression "(int *)PTR___stack_chk_guard_000f5568" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "uVar9 = SUB41(param_2,0);" (assignment_expression "uVar9 = SUB41(param_2,0)" identifier = (call_expression "SUB41(param_2,0)" identifier (argument_list "(param_2,0)" ( identifier , number_literal )))) ;) (if_statement "if (param_3 == (int *)0x0) {\n    uVar8 = 0x34;\n    iVar7 = 0;\n    puVar2 = (undefined1 *)FUN_00036c00();\n    if (puVar2 != (undefined1 *)0x0) {\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      *puVar2 = uVar9;\n      *(undefined4 *)(puVar2 + 0x18) = 1;\n      goto LAB_00038070;\n    }\nLAB_0003806c:\n    puVar2 = (undefined1 *)0x0;\n  }\n  else {\n    if ((param_2 == (int *)&DAT_00000098) && (*param_3 != 0)) {\n      param_2 = &local_28;\n      iVar7 = FUN_000249b4();\n      if (iVar7 == 0) goto LAB_00037f88;\n      uVar8 = 0x34;\n      iVar7 = 0;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = 0x98;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n    }\n    else {\nLAB_00037f88:\n      iVar7 = 0;\n      iVar10 = param_3[1];\n      uVar8 = iVar10 + 0x35;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = uVar9;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      if (iVar10 != -1) {\n        iVar7 = param_3[1];\n        puVar3 = puVar2 + 0x34;\n        *(undefined1 **)(puVar2 + 8) = puVar3;\n        if (iVar7 != 0) {\n          param_2 = (int *)*param_3;\n          puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3);\n          iVar7 = param_3[1];\n        }\n        puVar3[iVar7] = 0;\n        if ((param_4 == 0) ||\n           (param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac])) {\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        else {\n          if (param_2 == (int *)&DAT_00000022) {\n            uVar4 = 0x4000040;\n          }\n          else {\n            uVar4 = 0x4000000;\n          }\n          *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n          FUN_00020220();\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        goto LAB_00038070;\n      }\n    }\n    if (local_28 == 0) {\n      uVar4 = 0x20800400;\n    }\n    else {\n      uVar4 = 0x10800400;\n    }\n    *(int *)(puVar2 + 8) = local_28;\n    *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n    *(undefined4 *)(puVar2 + 0x18) = 1;\n  }" if (parenthesized_expression "(param_3 == (int *)0x0)" ( (binary_expression "param_3 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    uVar8 = 0x34;\n    iVar7 = 0;\n    puVar2 = (undefined1 *)FUN_00036c00();\n    if (puVar2 != (undefined1 *)0x0) {\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      *puVar2 = uVar9;\n      *(undefined4 *)(puVar2 + 0x18) = 1;\n      goto LAB_00038070;\n    }\nLAB_0003806c:\n    puVar2 = (undefined1 *)0x0;\n  }" { (expression_statement "uVar8 = 0x34;" (assignment_expression "uVar8 = 0x34" identifier = number_literal) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "puVar2 = (undefined1 *)FUN_00036c00();" (assignment_expression "puVar2 = (undefined1 *)FUN_00036c00()" identifier = (cast_expression "(undefined1 *)FUN_00036c00()" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00036c00()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (puVar2 != (undefined1 *)0x0) {\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      *puVar2 = uVar9;\n      *(undefined4 *)(puVar2 + 0x18) = 1;\n      goto LAB_00038070;\n    }" if (parenthesized_expression "(puVar2 != (undefined1 *)0x0)" ( (binary_expression "puVar2 != (undefined1 *)0x0" identifier != (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      *puVar2 = uVar9;\n      *(undefined4 *)(puVar2 + 0x18) = 1;\n      goto LAB_00038070;\n    }" { (expression_statement "iVar7 = 0x34;" (assignment_expression "iVar7 = 0x34" identifier = number_literal) ;) (expression_statement "param_2 = (int *)0x0;" (assignment_expression "param_2 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "(*(code *)PTR_memset_000f5450)(puVar2);" (call_expression "(*(code *)PTR_memset_000f5450)(puVar2)" (parenthesized_expression "(*(code *)PTR_memset_000f5450)" ( (pointer_expression "*(code *)PTR_memset_000f5450" * (cast_expression "(code *)PTR_memset_000f5450" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2)" ( identifier ))) ;) (expression_statement "*(undefined2 *)(puVar2 + 0x22) = 0xffff;" (assignment_expression "*(undefined2 *)(puVar2 + 0x22) = 0xffff" (pointer_expression "*(undefined2 *)(puVar2 + 0x22)" * (cast_expression "(undefined2 *)(puVar2 + 0x22)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x22)" ( (binary_expression "puVar2 + 0x22" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*puVar2 = uVar9;" (assignment_expression "*puVar2 = uVar9" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "*(undefined4 *)(puVar2 + 0x18) = 1;" (assignment_expression "*(undefined4 *)(puVar2 + 0x18) = 1" (pointer_expression "*(undefined4 *)(puVar2 + 0x18)" * (cast_expression "(undefined4 *)(puVar2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x18)" ( (binary_expression "puVar2 + 0x18" identifier + number_literal) )))) = number_literal) ;) (goto_statement "goto LAB_00038070;" goto statement_identifier ;) })) (labeled_statement "LAB_0003806c:\n    puVar2 = (undefined1 *)0x0;" statement_identifier : (expression_statement "puVar2 = (undefined1 *)0x0;" (assignment_expression "puVar2 = (undefined1 *)0x0" identifier = (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;)) }) (else_clause "else {\n    if ((param_2 == (int *)&DAT_00000098) && (*param_3 != 0)) {\n      param_2 = &local_28;\n      iVar7 = FUN_000249b4();\n      if (iVar7 == 0) goto LAB_00037f88;\n      uVar8 = 0x34;\n      iVar7 = 0;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = 0x98;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n    }\n    else {\nLAB_00037f88:\n      iVar7 = 0;\n      iVar10 = param_3[1];\n      uVar8 = iVar10 + 0x35;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = uVar9;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      if (iVar10 != -1) {\n        iVar7 = param_3[1];\n        puVar3 = puVar2 + 0x34;\n        *(undefined1 **)(puVar2 + 8) = puVar3;\n        if (iVar7 != 0) {\n          param_2 = (int *)*param_3;\n          puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3);\n          iVar7 = param_3[1];\n        }\n        puVar3[iVar7] = 0;\n        if ((param_4 == 0) ||\n           (param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac])) {\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        else {\n          if (param_2 == (int *)&DAT_00000022) {\n            uVar4 = 0x4000040;\n          }\n          else {\n            uVar4 = 0x4000000;\n          }\n          *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n          FUN_00020220();\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        goto LAB_00038070;\n      }\n    }\n    if (local_28 == 0) {\n      uVar4 = 0x20800400;\n    }\n    else {\n      uVar4 = 0x10800400;\n    }\n    *(int *)(puVar2 + 8) = local_28;\n    *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n    *(undefined4 *)(puVar2 + 0x18) = 1;\n  }" else (compound_statement "{\n    if ((param_2 == (int *)&DAT_00000098) && (*param_3 != 0)) {\n      param_2 = &local_28;\n      iVar7 = FUN_000249b4();\n      if (iVar7 == 0) goto LAB_00037f88;\n      uVar8 = 0x34;\n      iVar7 = 0;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = 0x98;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n    }\n    else {\nLAB_00037f88:\n      iVar7 = 0;\n      iVar10 = param_3[1];\n      uVar8 = iVar10 + 0x35;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = uVar9;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      if (iVar10 != -1) {\n        iVar7 = param_3[1];\n        puVar3 = puVar2 + 0x34;\n        *(undefined1 **)(puVar2 + 8) = puVar3;\n        if (iVar7 != 0) {\n          param_2 = (int *)*param_3;\n          puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3);\n          iVar7 = param_3[1];\n        }\n        puVar3[iVar7] = 0;\n        if ((param_4 == 0) ||\n           (param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac])) {\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        else {\n          if (param_2 == (int *)&DAT_00000022) {\n            uVar4 = 0x4000040;\n          }\n          else {\n            uVar4 = 0x4000000;\n          }\n          *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n          FUN_00020220();\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        goto LAB_00038070;\n      }\n    }\n    if (local_28 == 0) {\n      uVar4 = 0x20800400;\n    }\n    else {\n      uVar4 = 0x10800400;\n    }\n    *(int *)(puVar2 + 8) = local_28;\n    *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n    *(undefined4 *)(puVar2 + 0x18) = 1;\n  }" { (if_statement "if ((param_2 == (int *)&DAT_00000098) && (*param_3 != 0)) {\n      param_2 = &local_28;\n      iVar7 = FUN_000249b4();\n      if (iVar7 == 0) goto LAB_00037f88;\n      uVar8 = 0x34;\n      iVar7 = 0;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = 0x98;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n    }\n    else {\nLAB_00037f88:\n      iVar7 = 0;\n      iVar10 = param_3[1];\n      uVar8 = iVar10 + 0x35;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = uVar9;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      if (iVar10 != -1) {\n        iVar7 = param_3[1];\n        puVar3 = puVar2 + 0x34;\n        *(undefined1 **)(puVar2 + 8) = puVar3;\n        if (iVar7 != 0) {\n          param_2 = (int *)*param_3;\n          puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3);\n          iVar7 = param_3[1];\n        }\n        puVar3[iVar7] = 0;\n        if ((param_4 == 0) ||\n           (param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac])) {\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        else {\n          if (param_2 == (int *)&DAT_00000022) {\n            uVar4 = 0x4000040;\n          }\n          else {\n            uVar4 = 0x4000000;\n          }\n          *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n          FUN_00020220();\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        goto LAB_00038070;\n      }\n    }" if (parenthesized_expression "((param_2 == (int *)&DAT_00000098) && (*param_3 != 0))" ( (binary_expression "(param_2 == (int *)&DAT_00000098) && (*param_3 != 0)" (parenthesized_expression "(param_2 == (int *)&DAT_00000098)" ( (binary_expression "param_2 == (int *)&DAT_00000098" identifier == (cast_expression "(int *)&DAT_00000098" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_00000098" & identifier))) )) && (parenthesized_expression "(*param_3 != 0)" ( (binary_expression "*param_3 != 0" (pointer_expression "*param_3" * identifier) != number_literal) ))) )) (compound_statement "{\n      param_2 = &local_28;\n      iVar7 = FUN_000249b4();\n      if (iVar7 == 0) goto LAB_00037f88;\n      uVar8 = 0x34;\n      iVar7 = 0;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = 0x98;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n    }" { (expression_statement "param_2 = &local_28;" (assignment_expression "param_2 = &local_28" identifier = (pointer_expression "&local_28" & identifier)) ;) (expression_statement "iVar7 = FUN_000249b4();" (assignment_expression "iVar7 = FUN_000249b4()" identifier = (call_expression "FUN_000249b4()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar7 == 0) goto LAB_00037f88;" if (parenthesized_expression "(iVar7 == 0)" ( (binary_expression "iVar7 == 0" identifier == number_literal) )) (goto_statement "goto LAB_00037f88;" goto statement_identifier ;)) (expression_statement "uVar8 = 0x34;" (assignment_expression "uVar8 = 0x34" identifier = number_literal) ;) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;) (expression_statement "puVar2 = (undefined1 *)FUN_00036c00(param_1);" (assignment_expression "puVar2 = (undefined1 *)FUN_00036c00(param_1)" identifier = (cast_expression "(undefined1 *)FUN_00036c00(param_1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00036c00(param_1)" identifier (argument_list "(param_1)" ( identifier ))))) ;) (if_statement "if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;" if (parenthesized_expression "(puVar2 == (undefined1 *)0x0)" ( (binary_expression "puVar2 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0003806c;" goto statement_identifier ;)) (expression_statement "iVar7 = 0x34;" (assignment_expression "iVar7 = 0x34" identifier = number_literal) ;) (expression_statement "param_2 = (int *)0x0;" (assignment_expression "param_2 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "(*(code *)PTR_memset_000f5450)(puVar2);" (call_expression "(*(code *)PTR_memset_000f5450)(puVar2)" (parenthesized_expression "(*(code *)PTR_memset_000f5450)" ( (pointer_expression "*(code *)PTR_memset_000f5450" * (cast_expression "(code *)PTR_memset_000f5450" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2)" ( identifier ))) ;) (expression_statement "*puVar2 = 0x98;" (assignment_expression "*puVar2 = 0x98" (pointer_expression "*puVar2" * identifier) = number_literal) ;) (expression_statement "*(undefined2 *)(puVar2 + 0x22) = 0xffff;" (assignment_expression "*(undefined2 *)(puVar2 + 0x22) = 0xffff" (pointer_expression "*(undefined2 *)(puVar2 + 0x22)" * (cast_expression "(undefined2 *)(puVar2 + 0x22)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x22)" ( (binary_expression "puVar2 + 0x22" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\nLAB_00037f88:\n      iVar7 = 0;\n      iVar10 = param_3[1];\n      uVar8 = iVar10 + 0x35;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = uVar9;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      if (iVar10 != -1) {\n        iVar7 = param_3[1];\n        puVar3 = puVar2 + 0x34;\n        *(undefined1 **)(puVar2 + 8) = puVar3;\n        if (iVar7 != 0) {\n          param_2 = (int *)*param_3;\n          puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3);\n          iVar7 = param_3[1];\n        }\n        puVar3[iVar7] = 0;\n        if ((param_4 == 0) ||\n           (param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac])) {\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        else {\n          if (param_2 == (int *)&DAT_00000022) {\n            uVar4 = 0x4000040;\n          }\n          else {\n            uVar4 = 0x4000000;\n          }\n          *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n          FUN_00020220();\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        goto LAB_00038070;\n      }\n    }" else (compound_statement "{\nLAB_00037f88:\n      iVar7 = 0;\n      iVar10 = param_3[1];\n      uVar8 = iVar10 + 0x35;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = uVar9;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      if (iVar10 != -1) {\n        iVar7 = param_3[1];\n        puVar3 = puVar2 + 0x34;\n        *(undefined1 **)(puVar2 + 8) = puVar3;\n        if (iVar7 != 0) {\n          param_2 = (int *)*param_3;\n          puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3);\n          iVar7 = param_3[1];\n        }\n        puVar3[iVar7] = 0;\n        if ((param_4 == 0) ||\n           (param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac])) {\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        else {\n          if (param_2 == (int *)&DAT_00000022) {\n            uVar4 = 0x4000040;\n          }\n          else {\n            uVar4 = 0x4000000;\n          }\n          *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n          FUN_00020220();\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        goto LAB_00038070;\n      }\n    }" { (labeled_statement "LAB_00037f88:\n      iVar7 = 0;" statement_identifier : (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" identifier = number_literal) ;)) (expression_statement "iVar10 = param_3[1];" (assignment_expression "iVar10 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (expression_statement "uVar8 = iVar10 + 0x35;" (assignment_expression "uVar8 = iVar10 + 0x35" identifier = (binary_expression "iVar10 + 0x35" identifier + number_literal)) ;) (expression_statement "puVar2 = (undefined1 *)FUN_00036c00(param_1);" (assignment_expression "puVar2 = (undefined1 *)FUN_00036c00(param_1)" identifier = (cast_expression "(undefined1 *)FUN_00036c00(param_1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00036c00(param_1)" identifier (argument_list "(param_1)" ( identifier ))))) ;) (if_statement "if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;" if (parenthesized_expression "(puVar2 == (undefined1 *)0x0)" ( (binary_expression "puVar2 == (undefined1 *)0x0" identifier == (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0003806c;" goto statement_identifier ;)) (expression_statement "iVar7 = 0x34;" (assignment_expression "iVar7 = 0x34" identifier = number_literal) ;) (expression_statement "param_2 = (int *)0x0;" (assignment_expression "param_2 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "(*(code *)PTR_memset_000f5450)(puVar2);" (call_expression "(*(code *)PTR_memset_000f5450)(puVar2)" (parenthesized_expression "(*(code *)PTR_memset_000f5450)" ( (pointer_expression "*(code *)PTR_memset_000f5450" * (cast_expression "(code *)PTR_memset_000f5450" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar2)" ( identifier ))) ;) (expression_statement "*puVar2 = uVar9;" (assignment_expression "*puVar2 = uVar9" (pointer_expression "*puVar2" * identifier) = identifier) ;) (expression_statement "*(undefined2 *)(puVar2 + 0x22) = 0xffff;" (assignment_expression "*(undefined2 *)(puVar2 + 0x22) = 0xffff" (pointer_expression "*(undefined2 *)(puVar2 + 0x22)" * (cast_expression "(undefined2 *)(puVar2 + 0x22)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x22)" ( (binary_expression "puVar2 + 0x22" identifier + number_literal) )))) = number_literal) ;) (if_statement "if (iVar10 != -1) {\n        iVar7 = param_3[1];\n        puVar3 = puVar2 + 0x34;\n        *(undefined1 **)(puVar2 + 8) = puVar3;\n        if (iVar7 != 0) {\n          param_2 = (int *)*param_3;\n          puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3);\n          iVar7 = param_3[1];\n        }\n        puVar3[iVar7] = 0;\n        if ((param_4 == 0) ||\n           (param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac])) {\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        else {\n          if (param_2 == (int *)&DAT_00000022) {\n            uVar4 = 0x4000040;\n          }\n          else {\n            uVar4 = 0x4000000;\n          }\n          *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n          FUN_00020220();\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        goto LAB_00038070;\n      }" if (parenthesized_expression "(iVar10 != -1)" ( (binary_expression "iVar10 != -1" identifier != number_literal) )) (compound_statement "{\n        iVar7 = param_3[1];\n        puVar3 = puVar2 + 0x34;\n        *(undefined1 **)(puVar2 + 8) = puVar3;\n        if (iVar7 != 0) {\n          param_2 = (int *)*param_3;\n          puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3);\n          iVar7 = param_3[1];\n        }\n        puVar3[iVar7] = 0;\n        if ((param_4 == 0) ||\n           (param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac])) {\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        else {\n          if (param_2 == (int *)&DAT_00000022) {\n            uVar4 = 0x4000040;\n          }\n          else {\n            uVar4 = 0x4000000;\n          }\n          *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n          FUN_00020220();\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        goto LAB_00038070;\n      }" { (expression_statement "iVar7 = param_3[1];" (assignment_expression "iVar7 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) (expression_statement "puVar3 = puVar2 + 0x34;" (assignment_expression "puVar3 = puVar2 + 0x34" identifier = (binary_expression "puVar2 + 0x34" identifier + number_literal)) ;) (expression_statement "*(undefined1 **)(puVar2 + 8) = puVar3;" (assignment_expression "*(undefined1 **)(puVar2 + 8) = puVar3" (pointer_expression "*(undefined1 **)(puVar2 + 8)" * (cast_expression "(undefined1 **)(puVar2 + 8)" ( (type_descriptor "undefined1 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar2 + 8)" ( (binary_expression "puVar2 + 8" identifier + number_literal) )))) = identifier) ;) (if_statement "if (iVar7 != 0) {\n          param_2 = (int *)*param_3;\n          puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3);\n          iVar7 = param_3[1];\n        }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n          param_2 = (int *)*param_3;\n          puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3);\n          iVar7 = param_3[1];\n        }" { (expression_statement "param_2 = (int *)*param_3;" (assignment_expression "param_2 = (int *)*param_3" identifier = (cast_expression "(int *)*param_3" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_3" * identifier))) ;) (expression_statement "puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3);" (assignment_expression "puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3)" identifier = (cast_expression "(undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)PTR_memcpy_000f556c)(puVar3)" (parenthesized_expression "(*(code *)PTR_memcpy_000f556c)" ( (pointer_expression "*(code *)PTR_memcpy_000f556c" * (cast_expression "(code *)PTR_memcpy_000f556c" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(puVar3)" ( identifier ))))) ;) (expression_statement "iVar7 = param_3[1];" (assignment_expression "iVar7 = param_3[1]" identifier = (subscript_expression "param_3[1]" identifier [ number_literal ])) ;) })) (expression_statement "puVar3[iVar7] = 0;" (assignment_expression "puVar3[iVar7] = 0" (subscript_expression "puVar3[iVar7]" identifier [ identifier ]) = number_literal) ;) (if_statement "if ((param_4 == 0) ||\n           (param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac])) {\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        else {\n          if (param_2 == (int *)&DAT_00000022) {\n            uVar4 = 0x4000040;\n          }\n          else {\n            uVar4 = 0x4000000;\n          }\n          *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n          FUN_00020220();\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }" if (parenthesized_expression "((param_4 == 0) ||\n           (param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac]))" ( (binary_expression "(param_4 == 0) ||\n           (param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac])" (parenthesized_expression "(param_4 == 0)" ( (binary_expression "param_4 == 0" identifier == number_literal) )) || (parenthesized_expression "(param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac])" ( (comma_expression "param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac]" (assignment_expression "param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8)" identifier = (cast_expression "(int *)(int)(char)**(byte **)(puVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (cast_expression "(int)(char)**(byte **)(puVar2 + 8)" ( (type_descriptor "int" primitive_type) ) (cast_expression "(char)**(byte **)(puVar2 + 8)" ( (type_descriptor "char" primitive_type) ) (pointer_expression "**(byte **)(puVar2 + 8)" * (pointer_expression "*(byte **)(puVar2 + 8)" * (cast_expression "(byte **)(puVar2 + 8)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar2 + 8)" ( (binary_expression "puVar2 + 8" identifier + number_literal) ))))))))) , (binary_expression "-1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac]" number_literal < (cast_expression "(char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac]" ( (type_descriptor "char" primitive_type) ) (subscript_expression "PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac]" identifier [ (binary_expression "**(byte **)(puVar2 + 8) + 0x24ac" (pointer_expression "**(byte **)(puVar2 + 8)" * (pointer_expression "*(byte **)(puVar2 + 8)" * (cast_expression "(byte **)(puVar2 + 8)" ( (type_descriptor "byte **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar2 + 8)" ( (binary_expression "puVar2 + 8" identifier + number_literal) ))))) + number_literal) ])))) ))) )) (compound_statement "{\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }" { (expression_statement "*(undefined4 *)(puVar2 + 0x18) = 1;" (assignment_expression "*(undefined4 *)(puVar2 + 0x18) = 1" (pointer_expression "*(undefined4 *)(puVar2 + 0x18)" * (cast_expression "(undefined4 *)(puVar2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x18)" ( (binary_expression "puVar2 + 0x18" identifier + number_literal) )))) = number_literal) ;) }) (else_clause "else {\n          if (param_2 == (int *)&DAT_00000022) {\n            uVar4 = 0x4000040;\n          }\n          else {\n            uVar4 = 0x4000000;\n          }\n          *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n          FUN_00020220();\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }" else (compound_statement "{\n          if (param_2 == (int *)&DAT_00000022) {\n            uVar4 = 0x4000040;\n          }\n          else {\n            uVar4 = 0x4000000;\n          }\n          *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n          FUN_00020220();\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }" { (if_statement "if (param_2 == (int *)&DAT_00000022) {\n            uVar4 = 0x4000040;\n          }\n          else {\n            uVar4 = 0x4000000;\n          }" if (parenthesized_expression "(param_2 == (int *)&DAT_00000022)" ( (binary_expression "param_2 == (int *)&DAT_00000022" identifier == (cast_expression "(int *)&DAT_00000022" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_00000022" & identifier))) )) (compound_statement "{\n            uVar4 = 0x4000040;\n          }" { (expression_statement "uVar4 = 0x4000040;" (assignment_expression "uVar4 = 0x4000040" identifier = number_literal) ;) }) (else_clause "else {\n            uVar4 = 0x4000000;\n          }" else (compound_statement "{\n            uVar4 = 0x4000000;\n          }" { (expression_statement "uVar4 = 0x4000000;" (assignment_expression "uVar4 = 0x4000000" identifier = number_literal) ;) }))) (expression_statement "*(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;" (assignment_expression "*(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4" (pointer_expression "*(uint *)(puVar2 + 4)" * (cast_expression "(uint *)(puVar2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 4)" ( (binary_expression "puVar2 + 4" identifier + number_literal) )))) = (binary_expression "*(uint *)(puVar2 + 4) | uVar4" (pointer_expression "*(uint *)(puVar2 + 4)" * (cast_expression "(uint *)(puVar2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 4)" ( (binary_expression "puVar2 + 4" identifier + number_literal) )))) | identifier)) ;) (expression_statement "FUN_00020220();" (call_expression "FUN_00020220()" identifier (argument_list "()" ( ))) ;) (expression_statement "*(undefined4 *)(puVar2 + 0x18) = 1;" (assignment_expression "*(undefined4 *)(puVar2 + 0x18) = 1" (pointer_expression "*(undefined4 *)(puVar2 + 0x18)" * (cast_expression "(undefined4 *)(puVar2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x18)" ( (binary_expression "puVar2 + 0x18" identifier + number_literal) )))) = number_literal) ;) }))) (goto_statement "goto LAB_00038070;" goto statement_identifier ;) })) }))) (if_statement "if (local_28 == 0) {\n      uVar4 = 0x20800400;\n    }\n    else {\n      uVar4 = 0x10800400;\n    }" if (parenthesized_expression "(local_28 == 0)" ( (binary_expression "local_28 == 0" identifier == number_literal) )) (compound_statement "{\n      uVar4 = 0x20800400;\n    }" { (expression_statement "uVar4 = 0x20800400;" (assignment_expression "uVar4 = 0x20800400" identifier = number_literal) ;) }) (else_clause "else {\n      uVar4 = 0x10800400;\n    }" else (compound_statement "{\n      uVar4 = 0x10800400;\n    }" { (expression_statement "uVar4 = 0x10800400;" (assignment_expression "uVar4 = 0x10800400" identifier = number_literal) ;) }))) (expression_statement "*(int *)(puVar2 + 8) = local_28;" (assignment_expression "*(int *)(puVar2 + 8) = local_28" (pointer_expression "*(int *)(puVar2 + 8)" * (cast_expression "(int *)(puVar2 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 8)" ( (binary_expression "puVar2 + 8" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;" (assignment_expression "*(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4" (pointer_expression "*(uint *)(puVar2 + 4)" * (cast_expression "(uint *)(puVar2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 4)" ( (binary_expression "puVar2 + 4" identifier + number_literal) )))) = (binary_expression "*(uint *)(puVar2 + 4) | uVar4" (pointer_expression "*(uint *)(puVar2 + 4)" * (cast_expression "(uint *)(puVar2 + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 4)" ( (binary_expression "puVar2 + 4" identifier + number_literal) )))) | identifier)) ;) (expression_statement "*(undefined4 *)(puVar2 + 0x18) = 1;" (assignment_expression "*(undefined4 *)(puVar2 + 0x18) = 1" (pointer_expression "*(undefined4 *)(puVar2 + 0x18)" * (cast_expression "(undefined4 *)(puVar2 + 0x18)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x18)" ( (binary_expression "puVar2 + 0x18" identifier + number_literal) )))) = number_literal) ;) }))) (labeled_statement "LAB_00038070:\n  if (local_24 == *(int *)puVar1) {\n    return puVar2;\n  }" statement_identifier : (if_statement "if (local_24 == *(int *)puVar1) {\n    return puVar2;\n  }" if (parenthesized_expression "(local_24 == *(int *)puVar1)" ( (binary_expression "local_24 == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return puVar2;\n  }" { (return_statement "return puVar2;" return identifier ;) }))) (expression_statement "(*(code *)PTR___stack_chk_fail_000f5540)();" (call_expression "(*(code *)PTR___stack_chk_fail_000f5540)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000f5540)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_000f5540" * (cast_expression "(code *)PTR___stack_chk_fail_000f5540" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puVar2 = (undefined1 *)FUN_00037f2c();" (assignment_expression "puVar2 = (undefined1 *)FUN_00037f2c()" identifier = (cast_expression "(undefined1 *)FUN_00037f2c()" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00037f2c()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (puVar2 != (undefined1 *)0x0) {\n    iVar5 = param_2[iVar7 * 0x12 + 6];\n    iVar10 = param_2[iVar7 * 0x12 + 0xc];\n    *(int *)(puVar2 + 0x2c) = iVar5;\n    *(int *)(puVar2 + 0x1c) = iVar10;\n    if ((int)*(short *)(iVar5 + 0x28) == uVar8) {\n      *(undefined2 *)(puVar2 + 0x20) = 0xffff;\n      return puVar2;\n    }\n    uVar4 = *(uint *)(iVar5 + 0x24);\n    *(short *)(puVar2 + 0x20) = (short)uVar8;\n    if (((uVar4 & 0x60) == 0) ||\n       ((*(ushort *)(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10) & 0x60) == 0)) {\n      if (0x3f < (int)uVar8) {\n        uVar8 = 0x3f;\n      }\n      uVar4 = 1 << (uVar8 & 0x1f);\n      if ((uVar8 & 0x20) == 0) {\n        uVar8 = 0;\n      }\n      else {\n        uVar8 = uVar4;\n        uVar4 = 0;\n      }\n      param_2[iVar7 * 0x12 + 0x10] = param_2[iVar7 * 0x12 + 0x10] | uVar8;\n      param_2[iVar7 * 0x12 + 0x11] = param_2[iVar7 * 0x12 + 0x11] | uVar4;\n      return puVar2;\n    }\n    uVar8 = (uint)*(short *)(iVar5 + 0x2a);\n    if ((int)uVar8 < 0x40) {\n      uVar4 = 1 << (uVar8 & 0x1f);\n      if ((uVar8 & 0x20) == 0) {\n        uVar6 = 0;\n      }\n      else {\n        uVar6 = uVar4;\n        uVar4 = 0;\n      }\n      uVar8 = uVar4 - 1;\n      iVar10 = (uint)(uVar8 < uVar4) + (uVar6 - 1);\n    }\n    else {\n      iVar10 = -1;\n      uVar8 = 0xffffffff;\n    }\n    param_2[iVar7 * 0x12 + 0x10] = iVar10;\n    param_2[iVar7 * 0x12 + 0x11] = uVar8;\n  }" if (parenthesized_expression "(puVar2 != (undefined1 *)0x0)" ( (binary_expression "puVar2 != (undefined1 *)0x0" identifier != (cast_expression "(undefined1 *)0x0" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    iVar5 = param_2[iVar7 * 0x12 + 6];\n    iVar10 = param_2[iVar7 * 0x12 + 0xc];\n    *(int *)(puVar2 + 0x2c) = iVar5;\n    *(int *)(puVar2 + 0x1c) = iVar10;\n    if ((int)*(short *)(iVar5 + 0x28) == uVar8) {\n      *(undefined2 *)(puVar2 + 0x20) = 0xffff;\n      return puVar2;\n    }\n    uVar4 = *(uint *)(iVar5 + 0x24);\n    *(short *)(puVar2 + 0x20) = (short)uVar8;\n    if (((uVar4 & 0x60) == 0) ||\n       ((*(ushort *)(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10) & 0x60) == 0)) {\n      if (0x3f < (int)uVar8) {\n        uVar8 = 0x3f;\n      }\n      uVar4 = 1 << (uVar8 & 0x1f);\n      if ((uVar8 & 0x20) == 0) {\n        uVar8 = 0;\n      }\n      else {\n        uVar8 = uVar4;\n        uVar4 = 0;\n      }\n      param_2[iVar7 * 0x12 + 0x10] = param_2[iVar7 * 0x12 + 0x10] | uVar8;\n      param_2[iVar7 * 0x12 + 0x11] = param_2[iVar7 * 0x12 + 0x11] | uVar4;\n      return puVar2;\n    }\n    uVar8 = (uint)*(short *)(iVar5 + 0x2a);\n    if ((int)uVar8 < 0x40) {\n      uVar4 = 1 << (uVar8 & 0x1f);\n      if ((uVar8 & 0x20) == 0) {\n        uVar6 = 0;\n      }\n      else {\n        uVar6 = uVar4;\n        uVar4 = 0;\n      }\n      uVar8 = uVar4 - 1;\n      iVar10 = (uint)(uVar8 < uVar4) + (uVar6 - 1);\n    }\n    else {\n      iVar10 = -1;\n      uVar8 = 0xffffffff;\n    }\n    param_2[iVar7 * 0x12 + 0x10] = iVar10;\n    param_2[iVar7 * 0x12 + 0x11] = uVar8;\n  }" { (expression_statement "iVar5 = param_2[iVar7 * 0x12 + 6];" (assignment_expression "iVar5 = param_2[iVar7 * 0x12 + 6]" identifier = (subscript_expression "param_2[iVar7 * 0x12 + 6]" identifier [ (binary_expression "iVar7 * 0x12 + 6" (binary_expression "iVar7 * 0x12" identifier * number_literal) + number_literal) ])) ;) (expression_statement "iVar10 = param_2[iVar7 * 0x12 + 0xc];" (assignment_expression "iVar10 = param_2[iVar7 * 0x12 + 0xc]" identifier = (subscript_expression "param_2[iVar7 * 0x12 + 0xc]" identifier [ (binary_expression "iVar7 * 0x12 + 0xc" (binary_expression "iVar7 * 0x12" identifier * number_literal) + number_literal) ])) ;) (expression_statement "*(int *)(puVar2 + 0x2c) = iVar5;" (assignment_expression "*(int *)(puVar2 + 0x2c) = iVar5" (pointer_expression "*(int *)(puVar2 + 0x2c)" * (cast_expression "(int *)(puVar2 + 0x2c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x2c)" ( (binary_expression "puVar2 + 0x2c" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(puVar2 + 0x1c) = iVar10;" (assignment_expression "*(int *)(puVar2 + 0x1c) = iVar10" (pointer_expression "*(int *)(puVar2 + 0x1c)" * (cast_expression "(int *)(puVar2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x1c)" ( (binary_expression "puVar2 + 0x1c" identifier + number_literal) )))) = identifier) ;) (if_statement "if ((int)*(short *)(iVar5 + 0x28) == uVar8) {\n      *(undefined2 *)(puVar2 + 0x20) = 0xffff;\n      return puVar2;\n    }" if (parenthesized_expression "((int)*(short *)(iVar5 + 0x28) == uVar8)" ( (binary_expression "(int)*(short *)(iVar5 + 0x28) == uVar8" (cast_expression "(int)*(short *)(iVar5 + 0x28)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(short *)(iVar5 + 0x28)" * (cast_expression "(short *)(iVar5 + 0x28)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x28)" ( (binary_expression "iVar5 + 0x28" identifier + number_literal) ))))) == identifier) )) (compound_statement "{\n      *(undefined2 *)(puVar2 + 0x20) = 0xffff;\n      return puVar2;\n    }" { (expression_statement "*(undefined2 *)(puVar2 + 0x20) = 0xffff;" (assignment_expression "*(undefined2 *)(puVar2 + 0x20) = 0xffff" (pointer_expression "*(undefined2 *)(puVar2 + 0x20)" * (cast_expression "(undefined2 *)(puVar2 + 0x20)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x20)" ( (binary_expression "puVar2 + 0x20" identifier + number_literal) )))) = number_literal) ;) (return_statement "return puVar2;" return identifier ;) })) (expression_statement "uVar4 = *(uint *)(iVar5 + 0x24);" (assignment_expression "uVar4 = *(uint *)(iVar5 + 0x24)" identifier = (pointer_expression "*(uint *)(iVar5 + 0x24)" * (cast_expression "(uint *)(iVar5 + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x24)" ( (binary_expression "iVar5 + 0x24" identifier + number_literal) ))))) ;) (expression_statement "*(short *)(puVar2 + 0x20) = (short)uVar8;" (assignment_expression "*(short *)(puVar2 + 0x20) = (short)uVar8" (pointer_expression "*(short *)(puVar2 + 0x20)" * (cast_expression "(short *)(puVar2 + 0x20)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(puVar2 + 0x20)" ( (binary_expression "puVar2 + 0x20" identifier + number_literal) )))) = (cast_expression "(short)uVar8" ( (type_descriptor "short" (sized_type_specifier "short" short)) ) identifier)) ;) (if_statement "if (((uVar4 & 0x60) == 0) ||\n       ((*(ushort *)(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10) & 0x60) == 0)) {\n      if (0x3f < (int)uVar8) {\n        uVar8 = 0x3f;\n      }\n      uVar4 = 1 << (uVar8 & 0x1f);\n      if ((uVar8 & 0x20) == 0) {\n        uVar8 = 0;\n      }\n      else {\n        uVar8 = uVar4;\n        uVar4 = 0;\n      }\n      param_2[iVar7 * 0x12 + 0x10] = param_2[iVar7 * 0x12 + 0x10] | uVar8;\n      param_2[iVar7 * 0x12 + 0x11] = param_2[iVar7 * 0x12 + 0x11] | uVar4;\n      return puVar2;\n    }" if (parenthesized_expression "(((uVar4 & 0x60) == 0) ||\n       ((*(ushort *)(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10) & 0x60) == 0))" ( (binary_expression "((uVar4 & 0x60) == 0) ||\n       ((*(ushort *)(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10) & 0x60) == 0)" (parenthesized_expression "((uVar4 & 0x60) == 0)" ( (binary_expression "(uVar4 & 0x60) == 0" (parenthesized_expression "(uVar4 & 0x60)" ( (binary_expression "uVar4 & 0x60" identifier & number_literal) )) == number_literal) )) || (parenthesized_expression "((*(ushort *)(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10) & 0x60) == 0)" ( (binary_expression "(*(ushort *)(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10) & 0x60) == 0" (parenthesized_expression "(*(ushort *)(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10) & 0x60)" ( (binary_expression "*(ushort *)(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10) & 0x60" (pointer_expression "*(ushort *)(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10)" * (cast_expression "(ushort *)(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10)" ( (type_descriptor "ushort *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10)" ( (binary_expression "*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10" (binary_expression "*(int *)(iVar5 + 4) + uVar8 * 0x14" (pointer_expression "*(int *)(iVar5 + 4)" * (cast_expression "(int *)(iVar5 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 4)" ( (binary_expression "iVar5 + 4" identifier + number_literal) )))) + (binary_expression "uVar8 * 0x14" identifier * number_literal)) + number_literal) )))) & number_literal) )) == number_literal) ))) )) (compound_statement "{\n      if (0x3f < (int)uVar8) {\n        uVar8 = 0x3f;\n      }\n      uVar4 = 1 << (uVar8 & 0x1f);\n      if ((uVar8 & 0x20) == 0) {\n        uVar8 = 0;\n      }\n      else {\n        uVar8 = uVar4;\n        uVar4 = 0;\n      }\n      param_2[iVar7 * 0x12 + 0x10] = param_2[iVar7 * 0x12 + 0x10] | uVar8;\n      param_2[iVar7 * 0x12 + 0x11] = param_2[iVar7 * 0x12 + 0x11] | uVar4;\n      return puVar2;\n    }" { (if_statement "if (0x3f < (int)uVar8) {\n        uVar8 = 0x3f;\n      }" if (parenthesized_expression "(0x3f < (int)uVar8)" ( (binary_expression "0x3f < (int)uVar8" number_literal < (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier)) )) (compound_statement "{\n        uVar8 = 0x3f;\n      }" { (expression_statement "uVar8 = 0x3f;" (assignment_expression "uVar8 = 0x3f" identifier = number_literal) ;) })) (expression_statement "uVar4 = 1 << (uVar8 & 0x1f);" (assignment_expression "uVar4 = 1 << (uVar8 & 0x1f)" identifier = (binary_expression "1 << (uVar8 & 0x1f)" number_literal << (parenthesized_expression "(uVar8 & 0x1f)" ( (binary_expression "uVar8 & 0x1f" identifier & number_literal) )))) ;) (if_statement "if ((uVar8 & 0x20) == 0) {\n        uVar8 = 0;\n      }\n      else {\n        uVar8 = uVar4;\n        uVar4 = 0;\n      }" if (parenthesized_expression "((uVar8 & 0x20) == 0)" ( (binary_expression "(uVar8 & 0x20) == 0" (parenthesized_expression "(uVar8 & 0x20)" ( (binary_expression "uVar8 & 0x20" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        uVar8 = 0;\n      }" { (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        uVar8 = uVar4;\n        uVar4 = 0;\n      }" else (compound_statement "{\n        uVar8 = uVar4;\n        uVar4 = 0;\n      }" { (expression_statement "uVar8 = uVar4;" (assignment_expression "uVar8 = uVar4" identifier = identifier) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) }))) (expression_statement "param_2[iVar7 * 0x12 + 0x10] = param_2[iVar7 * 0x12 + 0x10] | uVar8;" (assignment_expression "param_2[iVar7 * 0x12 + 0x10] = param_2[iVar7 * 0x12 + 0x10] | uVar8" (subscript_expression "param_2[iVar7 * 0x12 + 0x10]" identifier [ (binary_expression "iVar7 * 0x12 + 0x10" (binary_expression "iVar7 * 0x12" identifier * number_literal) + number_literal) ]) = (binary_expression "param_2[iVar7 * 0x12 + 0x10] | uVar8" (subscript_expression "param_2[iVar7 * 0x12 + 0x10]" identifier [ (binary_expression "iVar7 * 0x12 + 0x10" (binary_expression "iVar7 * 0x12" identifier * number_literal) + number_literal) ]) | identifier)) ;) (expression_statement "param_2[iVar7 * 0x12 + 0x11] = param_2[iVar7 * 0x12 + 0x11] | uVar4;" (assignment_expression "param_2[iVar7 * 0x12 + 0x11] = param_2[iVar7 * 0x12 + 0x11] | uVar4" (subscript_expression "param_2[iVar7 * 0x12 + 0x11]" identifier [ (binary_expression "iVar7 * 0x12 + 0x11" (binary_expression "iVar7 * 0x12" identifier * number_literal) + number_literal) ]) = (binary_expression "param_2[iVar7 * 0x12 + 0x11] | uVar4" (subscript_expression "param_2[iVar7 * 0x12 + 0x11]" identifier [ (binary_expression "iVar7 * 0x12 + 0x11" (binary_expression "iVar7 * 0x12" identifier * number_literal) + number_literal) ]) | identifier)) ;) (return_statement "return puVar2;" return identifier ;) })) (expression_statement "uVar8 = (uint)*(short *)(iVar5 + 0x2a);" (assignment_expression "uVar8 = (uint)*(short *)(iVar5 + 0x2a)" identifier = (binary_expression "(uint)*(short *)(iVar5 + 0x2a)" (parenthesized_expression "(uint)" ( identifier )) * (cast_expression "(short *)(iVar5 + 0x2a)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar5 + 0x2a)" ( (binary_expression "iVar5 + 0x2a" identifier + number_literal) ))))) ;) (if_statement "if ((int)uVar8 < 0x40) {\n      uVar4 = 1 << (uVar8 & 0x1f);\n      if ((uVar8 & 0x20) == 0) {\n        uVar6 = 0;\n      }\n      else {\n        uVar6 = uVar4;\n        uVar4 = 0;\n      }\n      uVar8 = uVar4 - 1;\n      iVar10 = (uint)(uVar8 < uVar4) + (uVar6 - 1);\n    }\n    else {\n      iVar10 = -1;\n      uVar8 = 0xffffffff;\n    }" if (parenthesized_expression "((int)uVar8 < 0x40)" ( (binary_expression "(int)uVar8 < 0x40" (cast_expression "(int)uVar8" ( (type_descriptor "int" primitive_type) ) identifier) < number_literal) )) (compound_statement "{\n      uVar4 = 1 << (uVar8 & 0x1f);\n      if ((uVar8 & 0x20) == 0) {\n        uVar6 = 0;\n      }\n      else {\n        uVar6 = uVar4;\n        uVar4 = 0;\n      }\n      uVar8 = uVar4 - 1;\n      iVar10 = (uint)(uVar8 < uVar4) + (uVar6 - 1);\n    }" { (expression_statement "uVar4 = 1 << (uVar8 & 0x1f);" (assignment_expression "uVar4 = 1 << (uVar8 & 0x1f)" identifier = (binary_expression "1 << (uVar8 & 0x1f)" number_literal << (parenthesized_expression "(uVar8 & 0x1f)" ( (binary_expression "uVar8 & 0x1f" identifier & number_literal) )))) ;) (if_statement "if ((uVar8 & 0x20) == 0) {\n        uVar6 = 0;\n      }\n      else {\n        uVar6 = uVar4;\n        uVar4 = 0;\n      }" if (parenthesized_expression "((uVar8 & 0x20) == 0)" ( (binary_expression "(uVar8 & 0x20) == 0" (parenthesized_expression "(uVar8 & 0x20)" ( (binary_expression "uVar8 & 0x20" identifier & number_literal) )) == number_literal) )) (compound_statement "{\n        uVar6 = 0;\n      }" { (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" identifier = number_literal) ;) }) (else_clause "else {\n        uVar6 = uVar4;\n        uVar4 = 0;\n      }" else (compound_statement "{\n        uVar6 = uVar4;\n        uVar4 = 0;\n      }" { (expression_statement "uVar6 = uVar4;" (assignment_expression "uVar6 = uVar4" identifier = identifier) ;) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" identifier = number_literal) ;) }))) (expression_statement "uVar8 = uVar4 - 1;" (assignment_expression "uVar8 = uVar4 - 1" identifier = (binary_expression "uVar4 - 1" identifier - number_literal)) ;) (expression_statement "iVar10 = (uint)(uVar8 < uVar4) + (uVar6 - 1);" (assignment_expression "iVar10 = (uint)(uVar8 < uVar4) + (uVar6 - 1)" identifier = (binary_expression "(uint)(uVar8 < uVar4) + (uVar6 - 1)" (call_expression "(uint)(uVar8 < uVar4)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(uVar8 < uVar4)" ( (binary_expression "uVar8 < uVar4" identifier < identifier) ))) + (parenthesized_expression "(uVar6 - 1)" ( (binary_expression "uVar6 - 1" identifier - number_literal) )))) ;) }) (else_clause "else {\n      iVar10 = -1;\n      uVar8 = 0xffffffff;\n    }" else (compound_statement "{\n      iVar10 = -1;\n      uVar8 = 0xffffffff;\n    }" { (expression_statement "iVar10 = -1;" (assignment_expression "iVar10 = -1" identifier = number_literal) ;) (expression_statement "uVar8 = 0xffffffff;" (assignment_expression "uVar8 = 0xffffffff" identifier = number_literal) ;) }))) (expression_statement "param_2[iVar7 * 0x12 + 0x10] = iVar10;" (assignment_expression "param_2[iVar7 * 0x12 + 0x10] = iVar10" (subscript_expression "param_2[iVar7 * 0x12 + 0x10]" identifier [ (binary_expression "iVar7 * 0x12 + 0x10" (binary_expression "iVar7 * 0x12" identifier * number_literal) + number_literal) ]) = identifier) ;) (expression_statement "param_2[iVar7 * 0x12 + 0x11] = uVar8;" (assignment_expression "param_2[iVar7 * 0x12 + 0x11] = uVar8" (subscript_expression "param_2[iVar7 * 0x12 + 0x11]" identifier [ (binary_expression "iVar7 * 0x12 + 0x11" (binary_expression "iVar7 * 0x12" identifier * number_literal) + number_literal) ]) = identifier) ;) })) (return_statement "return puVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (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 ;) })) (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;)) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT))) )) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression & IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }) (else_clause else (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = LIT) ;)) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (goto_statement goto statement_identifier ;)) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( 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 IDENT + LIT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT ))))) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ IDENT ]) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (cast_expression ( (type_descriptor TYPE) ) (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))))))) , (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) (subscript_expression IDENT [ (binary_expression (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) ])))) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }) (else_clause else (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT))) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (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) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | IDENT)) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (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 ;) })) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) }))) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return IDENT ;) }))) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ])) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ])) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) == IDENT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (cast_expression ( (type_descriptor (sized_type_specifier short)) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT & LIT) )) == LIT) )) || (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (binary_expression IDENT * LIT)) + LIT) )))) & LIT) )) == LIT) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression LIT < (cast_expression ( (type_descriptor TYPE) ) IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression LIT << (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 = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) = (binary_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) | IDENT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) = (binary_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) | IDENT)) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (parenthesized_expression ( IDENT )) * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression LIT << (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 = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (assignment_expression IDENT = (binary_expression IDENT - LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT < IDENT) ))) + (parenthesized_expression ( (binary_expression IDENT - LIT) )))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) }))) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) = IDENT) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined1 * FUN_00037f2c(undefined4 param_1,int *param_2,int *param_3,int param_4)\n\n{\n  undefined *puVar1;\n  undefined1 *puVar2;\n  undefined1 *puVar3;\n  uint uVar4;\n  int iVar5;\n  uint uVar6;\n  int iVar7;\n  uint uVar8;\n  undefined1 uVar9;\n  int iVar10;\n  int local_28;\n  int local_24;\n  \n  puVar1 = PTR___stack_chk_guard_000f5568;\n  local_28 = 0;\n  local_24 = *(int *)PTR___stack_chk_guard_000f5568;\n  uVar9 = SUB41(param_2,0);\n  if (param_3 == (int *)0x0) {\n    uVar8 = 0x34;\n    iVar7 = 0;\n    puVar2 = (undefined1 *)FUN_00036c00();\n    if (puVar2 != (undefined1 *)0x0) {\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      *puVar2 = uVar9;\n      *(undefined4 *)(puVar2 + 0x18) = 1;\n      goto LAB_00038070;\n    }\nLAB_0003806c:\n    puVar2 = (undefined1 *)0x0;\n  }\n  else {\n    if ((param_2 == (int *)&DAT_00000098) && (*param_3 != 0)) {\n      param_2 = &local_28;\n      iVar7 = FUN_000249b4();\n      if (iVar7 == 0) goto LAB_00037f88;\n      uVar8 = 0x34;\n      iVar7 = 0;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = 0x98;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n    }\n    else {\nLAB_00037f88:\n      iVar7 = 0;\n      iVar10 = param_3[1];\n      uVar8 = iVar10 + 0x35;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = uVar9;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      if (iVar10 != -1) {\n        iVar7 = param_3[1];\n        puVar3 = puVar2 + 0x34;\n        *(undefined1 **)(puVar2 + 8) = puVar3;\n        if (iVar7 != 0) {\n          param_2 = (int *)*param_3;\n          puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3);\n          iVar7 = param_3[1];\n        }\n        puVar3[iVar7] = 0;\n        if ((param_4 == 0) ||\n           (param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac])) {\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        else {\n          if (param_2 == (int *)&DAT_00000022) {\n            uVar4 = 0x4000040;\n          }\n          else {\n            uVar4 = 0x4000000;\n          }\n          *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n          FUN_00020220();\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        goto LAB_00038070;\n      }\n    }\n    if (local_28 == 0) {\n      uVar4 = 0x20800400;\n    }\n    else {\n      uVar4 = 0x10800400;\n    }\n    *(int *)(puVar2 + 8) = local_28;\n    *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n    *(undefined4 *)(puVar2 + 0x18) = 1;\n  }\nLAB_00038070:\n  if (local_24 == *(int *)puVar1) {\n    return puVar2;\n  }\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  puVar2 = (undefined1 *)FUN_00037f2c();\n  if (puVar2 != (undefined1 *)0x0) {\n    iVar5 = param_2[iVar7 * 0x12 + 6];\n    iVar10 = param_2[iVar7 * 0x12 + 0xc];\n    *(int *)(puVar2 + 0x2c) = iVar5;\n    *(int *)(puVar2 + 0x1c) = iVar10;\n    if ((int)*(short *)(iVar5 + 0x28) == uVar8) {\n      *(undefined2 *)(puVar2 + 0x20) = 0xffff;\n      return puVar2;\n    }\n    uVar4 = *(uint *)(iVar5 + 0x24);\n    *(short *)(puVar2 + 0x20) = (short)uVar8;\n    if (((uVar4 & 0x60) == 0) ||\n       ((*(ushort *)(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10) & 0x60) == 0)) {\n      if (0x3f < (int)uVar8) {\n        uVar8 = 0x3f;\n      }\n      uVar4 = 1 << (uVar8 & 0x1f);\n      if ((uVar8 & 0x20) == 0) {\n        uVar8 = 0;\n      }\n      else {\n        uVar8 = uVar4;\n        uVar4 = 0;\n      }\n      param_2[iVar7 * 0x12 + 0x10] = param_2[iVar7 * 0x12 + 0x10] | uVar8;\n      param_2[iVar7 * 0x12 + 0x11] = param_2[iVar7 * 0x12 + 0x11] | uVar4;\n      return puVar2;\n    }\n    uVar8 = (uint)*(short *)(iVar5 + 0x2a);\n    if ((int)uVar8 < 0x40) {\n      uVar4 = 1 << (uVar8 & 0x1f);\n      if ((uVar8 & 0x20) == 0) {\n        uVar6 = 0;\n      }\n      else {\n        uVar6 = uVar4;\n        uVar4 = 0;\n      }\n      uVar8 = uVar4 - 1;\n      iVar10 = (uint)(uVar8 < uVar4) + (uVar6 - 1);\n    }\n    else {\n      iVar10 = -1;\n      uVar8 = 0xffffffff;\n    }\n    param_2[iVar7 * 0x12 + 0x10] = iVar10;\n    param_2[iVar7 * 0x12 + 0x11] = uVar8;\n  }\n  return puVar2;\n}" (type_identifier "undefined1") (pointer_declarator "* FUN_00037f2c(undefined4 param_1,int *param_2,int *param_3,int param_4)" (* "*") (function_declarator "FUN_00037f2c(undefined4 param_1,int *param_2,int *param_3,int param_4)" (identifier "FUN_00037f2c") (parameter_list "(undefined4 param_1,int *param_2,int *param_3,int param_4)" (( "(") (parameter_declaration "undefined4 param_1" (type_identifier "undefined4") (identifier "param_1")) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) () ")")))) (compound_statement "{\n  undefined *puVar1;\n  undefined1 *puVar2;\n  undefined1 *puVar3;\n  uint uVar4;\n  int iVar5;\n  uint uVar6;\n  int iVar7;\n  uint uVar8;\n  undefined1 uVar9;\n  int iVar10;\n  int local_28;\n  int local_24;\n  \n  puVar1 = PTR___stack_chk_guard_000f5568;\n  local_28 = 0;\n  local_24 = *(int *)PTR___stack_chk_guard_000f5568;\n  uVar9 = SUB41(param_2,0);\n  if (param_3 == (int *)0x0) {\n    uVar8 = 0x34;\n    iVar7 = 0;\n    puVar2 = (undefined1 *)FUN_00036c00();\n    if (puVar2 != (undefined1 *)0x0) {\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      *puVar2 = uVar9;\n      *(undefined4 *)(puVar2 + 0x18) = 1;\n      goto LAB_00038070;\n    }\nLAB_0003806c:\n    puVar2 = (undefined1 *)0x0;\n  }\n  else {\n    if ((param_2 == (int *)&DAT_00000098) && (*param_3 != 0)) {\n      param_2 = &local_28;\n      iVar7 = FUN_000249b4();\n      if (iVar7 == 0) goto LAB_00037f88;\n      uVar8 = 0x34;\n      iVar7 = 0;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = 0x98;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n    }\n    else {\nLAB_00037f88:\n      iVar7 = 0;\n      iVar10 = param_3[1];\n      uVar8 = iVar10 + 0x35;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = uVar9;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      if (iVar10 != -1) {\n        iVar7 = param_3[1];\n        puVar3 = puVar2 + 0x34;\n        *(undefined1 **)(puVar2 + 8) = puVar3;\n        if (iVar7 != 0) {\n          param_2 = (int *)*param_3;\n          puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3);\n          iVar7 = param_3[1];\n        }\n        puVar3[iVar7] = 0;\n        if ((param_4 == 0) ||\n           (param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac])) {\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        else {\n          if (param_2 == (int *)&DAT_00000022) {\n            uVar4 = 0x4000040;\n          }\n          else {\n            uVar4 = 0x4000000;\n          }\n          *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n          FUN_00020220();\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        goto LAB_00038070;\n      }\n    }\n    if (local_28 == 0) {\n      uVar4 = 0x20800400;\n    }\n    else {\n      uVar4 = 0x10800400;\n    }\n    *(int *)(puVar2 + 8) = local_28;\n    *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n    *(undefined4 *)(puVar2 + 0x18) = 1;\n  }\nLAB_00038070:\n  if (local_24 == *(int *)puVar1) {\n    return puVar2;\n  }\n  (*(code *)PTR___stack_chk_fail_000f5540)();\n  puVar2 = (undefined1 *)FUN_00037f2c();\n  if (puVar2 != (undefined1 *)0x0) {\n    iVar5 = param_2[iVar7 * 0x12 + 6];\n    iVar10 = param_2[iVar7 * 0x12 + 0xc];\n    *(int *)(puVar2 + 0x2c) = iVar5;\n    *(int *)(puVar2 + 0x1c) = iVar10;\n    if ((int)*(short *)(iVar5 + 0x28) == uVar8) {\n      *(undefined2 *)(puVar2 + 0x20) = 0xffff;\n      return puVar2;\n    }\n    uVar4 = *(uint *)(iVar5 + 0x24);\n    *(short *)(puVar2 + 0x20) = (short)uVar8;\n    if (((uVar4 & 0x60) == 0) ||\n       ((*(ushort *)(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10) & 0x60) == 0)) {\n      if (0x3f < (int)uVar8) {\n        uVar8 = 0x3f;\n      }\n      uVar4 = 1 << (uVar8 & 0x1f);\n      if ((uVar8 & 0x20) == 0) {\n        uVar8 = 0;\n      }\n      else {\n        uVar8 = uVar4;\n        uVar4 = 0;\n      }\n      param_2[iVar7 * 0x12 + 0x10] = param_2[iVar7 * 0x12 + 0x10] | uVar8;\n      param_2[iVar7 * 0x12 + 0x11] = param_2[iVar7 * 0x12 + 0x11] | uVar4;\n      return puVar2;\n    }\n    uVar8 = (uint)*(short *)(iVar5 + 0x2a);\n    if ((int)uVar8 < 0x40) {\n      uVar4 = 1 << (uVar8 & 0x1f);\n      if ((uVar8 & 0x20) == 0) {\n        uVar6 = 0;\n      }\n      else {\n        uVar6 = uVar4;\n        uVar4 = 0;\n      }\n      uVar8 = uVar4 - 1;\n      iVar10 = (uint)(uVar8 < uVar4) + (uVar6 - 1);\n    }\n    else {\n      iVar10 = -1;\n      uVar8 = 0xffffffff;\n    }\n    param_2[iVar7 * 0x12 + 0x10] = iVar10;\n    param_2[iVar7 * 0x12 + 0x11] = uVar8;\n  }\n  return puVar2;\n}" ({ "{") (declaration "undefined *puVar1;" (type_identifier "undefined") (pointer_declarator "*puVar1" (* "*") (identifier "puVar1")) (; ";")) (declaration "undefined1 *puVar2;" (type_identifier "undefined1") (pointer_declarator "*puVar2" (* "*") (identifier "puVar2")) (; ";")) (declaration "undefined1 *puVar3;" (type_identifier "undefined1") (pointer_declarator "*puVar3" (* "*") (identifier "puVar3")) (; ";")) (declaration "uint uVar4;" (type_identifier "uint") (identifier "uVar4") (; ";")) (declaration "int iVar5;" (primitive_type "int") (identifier "iVar5") (; ";")) (declaration "uint uVar6;" (type_identifier "uint") (identifier "uVar6") (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (declaration "undefined1 uVar9;" (type_identifier "undefined1") (identifier "uVar9") (; ";")) (declaration "int iVar10;" (primitive_type "int") (identifier "iVar10") (; ";")) (declaration "int local_28;" (primitive_type "int") (identifier "local_28") (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (expression_statement "puVar1 = PTR___stack_chk_guard_000f5568;" (assignment_expression "puVar1 = PTR___stack_chk_guard_000f5568" (identifier "puVar1") (= "=") (identifier "PTR___stack_chk_guard_000f5568")) (; ";")) (expression_statement "local_28 = 0;" (assignment_expression "local_28 = 0" (identifier "local_28") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_24 = *(int *)PTR___stack_chk_guard_000f5568;" (assignment_expression "local_24 = *(int *)PTR___stack_chk_guard_000f5568" (identifier "local_24") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_000f5568" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_000f5568" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_000f5568")))) (; ";")) (expression_statement "uVar9 = SUB41(param_2,0);" (assignment_expression "uVar9 = SUB41(param_2,0)" (identifier "uVar9") (= "=") (call_expression "SUB41(param_2,0)" (identifier "SUB41") (argument_list "(param_2,0)" (( "(") (identifier "param_2") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (param_3 == (int *)0x0) {\n    uVar8 = 0x34;\n    iVar7 = 0;\n    puVar2 = (undefined1 *)FUN_00036c00();\n    if (puVar2 != (undefined1 *)0x0) {\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      *puVar2 = uVar9;\n      *(undefined4 *)(puVar2 + 0x18) = 1;\n      goto LAB_00038070;\n    }\nLAB_0003806c:\n    puVar2 = (undefined1 *)0x0;\n  }\n  else {\n    if ((param_2 == (int *)&DAT_00000098) && (*param_3 != 0)) {\n      param_2 = &local_28;\n      iVar7 = FUN_000249b4();\n      if (iVar7 == 0) goto LAB_00037f88;\n      uVar8 = 0x34;\n      iVar7 = 0;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = 0x98;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n    }\n    else {\nLAB_00037f88:\n      iVar7 = 0;\n      iVar10 = param_3[1];\n      uVar8 = iVar10 + 0x35;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = uVar9;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      if (iVar10 != -1) {\n        iVar7 = param_3[1];\n        puVar3 = puVar2 + 0x34;\n        *(undefined1 **)(puVar2 + 8) = puVar3;\n        if (iVar7 != 0) {\n          param_2 = (int *)*param_3;\n          puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3);\n          iVar7 = param_3[1];\n        }\n        puVar3[iVar7] = 0;\n        if ((param_4 == 0) ||\n           (param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac])) {\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        else {\n          if (param_2 == (int *)&DAT_00000022) {\n            uVar4 = 0x4000040;\n          }\n          else {\n            uVar4 = 0x4000000;\n          }\n          *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n          FUN_00020220();\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        goto LAB_00038070;\n      }\n    }\n    if (local_28 == 0) {\n      uVar4 = 0x20800400;\n    }\n    else {\n      uVar4 = 0x10800400;\n    }\n    *(int *)(puVar2 + 8) = local_28;\n    *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n    *(undefined4 *)(puVar2 + 0x18) = 1;\n  }" (if "if") (parenthesized_expression "(param_3 == (int *)0x0)" (( "(") (binary_expression "param_3 == (int *)0x0" (identifier "param_3") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    uVar8 = 0x34;\n    iVar7 = 0;\n    puVar2 = (undefined1 *)FUN_00036c00();\n    if (puVar2 != (undefined1 *)0x0) {\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      *puVar2 = uVar9;\n      *(undefined4 *)(puVar2 + 0x18) = 1;\n      goto LAB_00038070;\n    }\nLAB_0003806c:\n    puVar2 = (undefined1 *)0x0;\n  }" ({ "{") (expression_statement "uVar8 = 0x34;" (assignment_expression "uVar8 = 0x34" (identifier "uVar8") (= "=") (number_literal "0x34")) (; ";")) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2 = (undefined1 *)FUN_00036c00();" (assignment_expression "puVar2 = (undefined1 *)FUN_00036c00()" (identifier "puVar2") (= "=") (cast_expression "(undefined1 *)FUN_00036c00()" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00036c00()" (identifier "FUN_00036c00") (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (puVar2 != (undefined1 *)0x0) {\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      *puVar2 = uVar9;\n      *(undefined4 *)(puVar2 + 0x18) = 1;\n      goto LAB_00038070;\n    }" (if "if") (parenthesized_expression "(puVar2 != (undefined1 *)0x0)" (( "(") (binary_expression "puVar2 != (undefined1 *)0x0" (identifier "puVar2") (!= "!=") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      *puVar2 = uVar9;\n      *(undefined4 *)(puVar2 + 0x18) = 1;\n      goto LAB_00038070;\n    }" ({ "{") (expression_statement "iVar7 = 0x34;" (assignment_expression "iVar7 = 0x34" (identifier "iVar7") (= "=") (number_literal "0x34")) (; ";")) (expression_statement "param_2 = (int *)0x0;" (assignment_expression "param_2 = (int *)0x0" (identifier "param_2") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "(*(code *)PTR_memset_000f5450)(puVar2);" (call_expression "(*(code *)PTR_memset_000f5450)(puVar2)" (parenthesized_expression "(*(code *)PTR_memset_000f5450)" (( "(") (pointer_expression "*(code *)PTR_memset_000f5450" (* "*") (cast_expression "(code *)PTR_memset_000f5450" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memset_000f5450"))) () ")")) (argument_list "(puVar2)" (( "(") (identifier "puVar2") () ")"))) (; ";")) (expression_statement "*(undefined2 *)(puVar2 + 0x22) = 0xffff;" (assignment_expression "*(undefined2 *)(puVar2 + 0x22) = 0xffff" (pointer_expression "*(undefined2 *)(puVar2 + 0x22)" (* "*") (cast_expression "(undefined2 *)(puVar2 + 0x22)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x22)" (( "(") (binary_expression "puVar2 + 0x22" (identifier "puVar2") (+ "+") (number_literal "0x22")) () ")")))) (= "=") (number_literal "0xffff")) (; ";")) (expression_statement "*puVar2 = uVar9;" (assignment_expression "*puVar2 = uVar9" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (identifier "uVar9")) (; ";")) (expression_statement "*(undefined4 *)(puVar2 + 0x18) = 1;" (assignment_expression "*(undefined4 *)(puVar2 + 0x18) = 1" (pointer_expression "*(undefined4 *)(puVar2 + 0x18)" (* "*") (cast_expression "(undefined4 *)(puVar2 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x18)" (( "(") (binary_expression "puVar2 + 0x18" (identifier "puVar2") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (number_literal "1")) (; ";")) (goto_statement "goto LAB_00038070;" (goto "goto") (statement_identifier "LAB_00038070") (; ";")) (} "}"))) (labeled_statement "LAB_0003806c:\n    puVar2 = (undefined1 *)0x0;" (statement_identifier "LAB_0003806c") (: ":") (expression_statement "puVar2 = (undefined1 *)0x0;" (assignment_expression "puVar2 = (undefined1 *)0x0" (identifier "puVar2") (= "=") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";"))) (} "}")) (else_clause "else {\n    if ((param_2 == (int *)&DAT_00000098) && (*param_3 != 0)) {\n      param_2 = &local_28;\n      iVar7 = FUN_000249b4();\n      if (iVar7 == 0) goto LAB_00037f88;\n      uVar8 = 0x34;\n      iVar7 = 0;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = 0x98;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n    }\n    else {\nLAB_00037f88:\n      iVar7 = 0;\n      iVar10 = param_3[1];\n      uVar8 = iVar10 + 0x35;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = uVar9;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      if (iVar10 != -1) {\n        iVar7 = param_3[1];\n        puVar3 = puVar2 + 0x34;\n        *(undefined1 **)(puVar2 + 8) = puVar3;\n        if (iVar7 != 0) {\n          param_2 = (int *)*param_3;\n          puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3);\n          iVar7 = param_3[1];\n        }\n        puVar3[iVar7] = 0;\n        if ((param_4 == 0) ||\n           (param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac])) {\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        else {\n          if (param_2 == (int *)&DAT_00000022) {\n            uVar4 = 0x4000040;\n          }\n          else {\n            uVar4 = 0x4000000;\n          }\n          *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n          FUN_00020220();\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        goto LAB_00038070;\n      }\n    }\n    if (local_28 == 0) {\n      uVar4 = 0x20800400;\n    }\n    else {\n      uVar4 = 0x10800400;\n    }\n    *(int *)(puVar2 + 8) = local_28;\n    *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n    *(undefined4 *)(puVar2 + 0x18) = 1;\n  }" (else "else") (compound_statement "{\n    if ((param_2 == (int *)&DAT_00000098) && (*param_3 != 0)) {\n      param_2 = &local_28;\n      iVar7 = FUN_000249b4();\n      if (iVar7 == 0) goto LAB_00037f88;\n      uVar8 = 0x34;\n      iVar7 = 0;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = 0x98;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n    }\n    else {\nLAB_00037f88:\n      iVar7 = 0;\n      iVar10 = param_3[1];\n      uVar8 = iVar10 + 0x35;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = uVar9;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      if (iVar10 != -1) {\n        iVar7 = param_3[1];\n        puVar3 = puVar2 + 0x34;\n        *(undefined1 **)(puVar2 + 8) = puVar3;\n        if (iVar7 != 0) {\n          param_2 = (int *)*param_3;\n          puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3);\n          iVar7 = param_3[1];\n        }\n        puVar3[iVar7] = 0;\n        if ((param_4 == 0) ||\n           (param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac])) {\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        else {\n          if (param_2 == (int *)&DAT_00000022) {\n            uVar4 = 0x4000040;\n          }\n          else {\n            uVar4 = 0x4000000;\n          }\n          *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n          FUN_00020220();\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        goto LAB_00038070;\n      }\n    }\n    if (local_28 == 0) {\n      uVar4 = 0x20800400;\n    }\n    else {\n      uVar4 = 0x10800400;\n    }\n    *(int *)(puVar2 + 8) = local_28;\n    *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n    *(undefined4 *)(puVar2 + 0x18) = 1;\n  }" ({ "{") (if_statement "if ((param_2 == (int *)&DAT_00000098) && (*param_3 != 0)) {\n      param_2 = &local_28;\n      iVar7 = FUN_000249b4();\n      if (iVar7 == 0) goto LAB_00037f88;\n      uVar8 = 0x34;\n      iVar7 = 0;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = 0x98;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n    }\n    else {\nLAB_00037f88:\n      iVar7 = 0;\n      iVar10 = param_3[1];\n      uVar8 = iVar10 + 0x35;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = uVar9;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      if (iVar10 != -1) {\n        iVar7 = param_3[1];\n        puVar3 = puVar2 + 0x34;\n        *(undefined1 **)(puVar2 + 8) = puVar3;\n        if (iVar7 != 0) {\n          param_2 = (int *)*param_3;\n          puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3);\n          iVar7 = param_3[1];\n        }\n        puVar3[iVar7] = 0;\n        if ((param_4 == 0) ||\n           (param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac])) {\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        else {\n          if (param_2 == (int *)&DAT_00000022) {\n            uVar4 = 0x4000040;\n          }\n          else {\n            uVar4 = 0x4000000;\n          }\n          *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n          FUN_00020220();\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        goto LAB_00038070;\n      }\n    }" (if "if") (parenthesized_expression "((param_2 == (int *)&DAT_00000098) && (*param_3 != 0))" (( "(") (binary_expression "(param_2 == (int *)&DAT_00000098) && (*param_3 != 0)" (parenthesized_expression "(param_2 == (int *)&DAT_00000098)" (( "(") (binary_expression "param_2 == (int *)&DAT_00000098" (identifier "param_2") (== "==") (cast_expression "(int *)&DAT_00000098" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&DAT_00000098" (& "&") (identifier "DAT_00000098")))) () ")")) (&& "&&") (parenthesized_expression "(*param_3 != 0)" (( "(") (binary_expression "*param_3 != 0" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      param_2 = &local_28;\n      iVar7 = FUN_000249b4();\n      if (iVar7 == 0) goto LAB_00037f88;\n      uVar8 = 0x34;\n      iVar7 = 0;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = 0x98;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n    }" ({ "{") (expression_statement "param_2 = &local_28;" (assignment_expression "param_2 = &local_28" (identifier "param_2") (= "=") (pointer_expression "&local_28" (& "&") (identifier "local_28"))) (; ";")) (expression_statement "iVar7 = FUN_000249b4();" (assignment_expression "iVar7 = FUN_000249b4()" (identifier "iVar7") (= "=") (call_expression "FUN_000249b4()" (identifier "FUN_000249b4") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar7 == 0) goto LAB_00037f88;" (if "if") (parenthesized_expression "(iVar7 == 0)" (( "(") (binary_expression "iVar7 == 0" (identifier "iVar7") (== "==") (number_literal "0")) () ")")) (goto_statement "goto LAB_00037f88;" (goto "goto") (statement_identifier "LAB_00037f88") (; ";"))) (expression_statement "uVar8 = 0x34;" (assignment_expression "uVar8 = 0x34" (identifier "uVar8") (= "=") (number_literal "0x34")) (; ";")) (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar2 = (undefined1 *)FUN_00036c00(param_1);" (assignment_expression "puVar2 = (undefined1 *)FUN_00036c00(param_1)" (identifier "puVar2") (= "=") (cast_expression "(undefined1 *)FUN_00036c00(param_1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00036c00(param_1)" (identifier "FUN_00036c00") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))))) (; ";")) (if_statement "if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;" (if "if") (parenthesized_expression "(puVar2 == (undefined1 *)0x0)" (( "(") (binary_expression "puVar2 == (undefined1 *)0x0" (identifier "puVar2") (== "==") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_0003806c;" (goto "goto") (statement_identifier "LAB_0003806c") (; ";"))) (expression_statement "iVar7 = 0x34;" (assignment_expression "iVar7 = 0x34" (identifier "iVar7") (= "=") (number_literal "0x34")) (; ";")) (expression_statement "param_2 = (int *)0x0;" (assignment_expression "param_2 = (int *)0x0" (identifier "param_2") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "(*(code *)PTR_memset_000f5450)(puVar2);" (call_expression "(*(code *)PTR_memset_000f5450)(puVar2)" (parenthesized_expression "(*(code *)PTR_memset_000f5450)" (( "(") (pointer_expression "*(code *)PTR_memset_000f5450" (* "*") (cast_expression "(code *)PTR_memset_000f5450" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memset_000f5450"))) () ")")) (argument_list "(puVar2)" (( "(") (identifier "puVar2") () ")"))) (; ";")) (expression_statement "*puVar2 = 0x98;" (assignment_expression "*puVar2 = 0x98" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (number_literal "0x98")) (; ";")) (expression_statement "*(undefined2 *)(puVar2 + 0x22) = 0xffff;" (assignment_expression "*(undefined2 *)(puVar2 + 0x22) = 0xffff" (pointer_expression "*(undefined2 *)(puVar2 + 0x22)" (* "*") (cast_expression "(undefined2 *)(puVar2 + 0x22)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x22)" (( "(") (binary_expression "puVar2 + 0x22" (identifier "puVar2") (+ "+") (number_literal "0x22")) () ")")))) (= "=") (number_literal "0xffff")) (; ";")) (} "}")) (else_clause "else {\nLAB_00037f88:\n      iVar7 = 0;\n      iVar10 = param_3[1];\n      uVar8 = iVar10 + 0x35;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = uVar9;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      if (iVar10 != -1) {\n        iVar7 = param_3[1];\n        puVar3 = puVar2 + 0x34;\n        *(undefined1 **)(puVar2 + 8) = puVar3;\n        if (iVar7 != 0) {\n          param_2 = (int *)*param_3;\n          puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3);\n          iVar7 = param_3[1];\n        }\n        puVar3[iVar7] = 0;\n        if ((param_4 == 0) ||\n           (param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac])) {\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        else {\n          if (param_2 == (int *)&DAT_00000022) {\n            uVar4 = 0x4000040;\n          }\n          else {\n            uVar4 = 0x4000000;\n          }\n          *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n          FUN_00020220();\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        goto LAB_00038070;\n      }\n    }" (else "else") (compound_statement "{\nLAB_00037f88:\n      iVar7 = 0;\n      iVar10 = param_3[1];\n      uVar8 = iVar10 + 0x35;\n      puVar2 = (undefined1 *)FUN_00036c00(param_1);\n      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;\n      iVar7 = 0x34;\n      param_2 = (int *)0x0;\n      (*(code *)PTR_memset_000f5450)(puVar2);\n      *puVar2 = uVar9;\n      *(undefined2 *)(puVar2 + 0x22) = 0xffff;\n      if (iVar10 != -1) {\n        iVar7 = param_3[1];\n        puVar3 = puVar2 + 0x34;\n        *(undefined1 **)(puVar2 + 8) = puVar3;\n        if (iVar7 != 0) {\n          param_2 = (int *)*param_3;\n          puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3);\n          iVar7 = param_3[1];\n        }\n        puVar3[iVar7] = 0;\n        if ((param_4 == 0) ||\n           (param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac])) {\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        else {\n          if (param_2 == (int *)&DAT_00000022) {\n            uVar4 = 0x4000040;\n          }\n          else {\n            uVar4 = 0x4000000;\n          }\n          *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n          FUN_00020220();\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        goto LAB_00038070;\n      }\n    }" ({ "{") (labeled_statement "LAB_00037f88:\n      iVar7 = 0;" (statement_identifier "LAB_00037f88") (: ":") (expression_statement "iVar7 = 0;" (assignment_expression "iVar7 = 0" (identifier "iVar7") (= "=") (number_literal "0")) (; ";"))) (expression_statement "iVar10 = param_3[1];" (assignment_expression "iVar10 = param_3[1]" (identifier "iVar10") (= "=") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "uVar8 = iVar10 + 0x35;" (assignment_expression "uVar8 = iVar10 + 0x35" (identifier "uVar8") (= "=") (binary_expression "iVar10 + 0x35" (identifier "iVar10") (+ "+") (number_literal "0x35"))) (; ";")) (expression_statement "puVar2 = (undefined1 *)FUN_00036c00(param_1);" (assignment_expression "puVar2 = (undefined1 *)FUN_00036c00(param_1)" (identifier "puVar2") (= "=") (cast_expression "(undefined1 *)FUN_00036c00(param_1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00036c00(param_1)" (identifier "FUN_00036c00") (argument_list "(param_1)" (( "(") (identifier "param_1") () ")"))))) (; ";")) (if_statement "if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;" (if "if") (parenthesized_expression "(puVar2 == (undefined1 *)0x0)" (( "(") (binary_expression "puVar2 == (undefined1 *)0x0" (identifier "puVar2") (== "==") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (goto_statement "goto LAB_0003806c;" (goto "goto") (statement_identifier "LAB_0003806c") (; ";"))) (expression_statement "iVar7 = 0x34;" (assignment_expression "iVar7 = 0x34" (identifier "iVar7") (= "=") (number_literal "0x34")) (; ";")) (expression_statement "param_2 = (int *)0x0;" (assignment_expression "param_2 = (int *)0x0" (identifier "param_2") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (expression_statement "(*(code *)PTR_memset_000f5450)(puVar2);" (call_expression "(*(code *)PTR_memset_000f5450)(puVar2)" (parenthesized_expression "(*(code *)PTR_memset_000f5450)" (( "(") (pointer_expression "*(code *)PTR_memset_000f5450" (* "*") (cast_expression "(code *)PTR_memset_000f5450" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memset_000f5450"))) () ")")) (argument_list "(puVar2)" (( "(") (identifier "puVar2") () ")"))) (; ";")) (expression_statement "*puVar2 = uVar9;" (assignment_expression "*puVar2 = uVar9" (pointer_expression "*puVar2" (* "*") (identifier "puVar2")) (= "=") (identifier "uVar9")) (; ";")) (expression_statement "*(undefined2 *)(puVar2 + 0x22) = 0xffff;" (assignment_expression "*(undefined2 *)(puVar2 + 0x22) = 0xffff" (pointer_expression "*(undefined2 *)(puVar2 + 0x22)" (* "*") (cast_expression "(undefined2 *)(puVar2 + 0x22)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x22)" (( "(") (binary_expression "puVar2 + 0x22" (identifier "puVar2") (+ "+") (number_literal "0x22")) () ")")))) (= "=") (number_literal "0xffff")) (; ";")) (if_statement "if (iVar10 != -1) {\n        iVar7 = param_3[1];\n        puVar3 = puVar2 + 0x34;\n        *(undefined1 **)(puVar2 + 8) = puVar3;\n        if (iVar7 != 0) {\n          param_2 = (int *)*param_3;\n          puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3);\n          iVar7 = param_3[1];\n        }\n        puVar3[iVar7] = 0;\n        if ((param_4 == 0) ||\n           (param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac])) {\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        else {\n          if (param_2 == (int *)&DAT_00000022) {\n            uVar4 = 0x4000040;\n          }\n          else {\n            uVar4 = 0x4000000;\n          }\n          *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n          FUN_00020220();\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        goto LAB_00038070;\n      }" (if "if") (parenthesized_expression "(iVar10 != -1)" (( "(") (binary_expression "iVar10 != -1" (identifier "iVar10") (!= "!=") (number_literal "-1")) () ")")) (compound_statement "{\n        iVar7 = param_3[1];\n        puVar3 = puVar2 + 0x34;\n        *(undefined1 **)(puVar2 + 8) = puVar3;\n        if (iVar7 != 0) {\n          param_2 = (int *)*param_3;\n          puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3);\n          iVar7 = param_3[1];\n        }\n        puVar3[iVar7] = 0;\n        if ((param_4 == 0) ||\n           (param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac])) {\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        else {\n          if (param_2 == (int *)&DAT_00000022) {\n            uVar4 = 0x4000040;\n          }\n          else {\n            uVar4 = 0x4000000;\n          }\n          *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n          FUN_00020220();\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        goto LAB_00038070;\n      }" ({ "{") (expression_statement "iVar7 = param_3[1];" (assignment_expression "iVar7 = param_3[1]" (identifier "iVar7") (= "=") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]"))) (; ";")) (expression_statement "puVar3 = puVar2 + 0x34;" (assignment_expression "puVar3 = puVar2 + 0x34" (identifier "puVar3") (= "=") (binary_expression "puVar2 + 0x34" (identifier "puVar2") (+ "+") (number_literal "0x34"))) (; ";")) (expression_statement "*(undefined1 **)(puVar2 + 8) = puVar3;" (assignment_expression "*(undefined1 **)(puVar2 + 8) = puVar3" (pointer_expression "*(undefined1 **)(puVar2 + 8)" (* "*") (cast_expression "(undefined1 **)(puVar2 + 8)" (( "(") (type_descriptor "undefined1 **" (type_identifier "undefined1") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar2 + 8)" (( "(") (binary_expression "puVar2 + 8" (identifier "puVar2") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "puVar3")) (; ";")) (if_statement "if (iVar7 != 0) {\n          param_2 = (int *)*param_3;\n          puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3);\n          iVar7 = param_3[1];\n        }" (if "if") (parenthesized_expression "(iVar7 != 0)" (( "(") (binary_expression "iVar7 != 0" (identifier "iVar7") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          param_2 = (int *)*param_3;\n          puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3);\n          iVar7 = param_3[1];\n        }" ({ "{") (expression_statement "param_2 = (int *)*param_3;" (assignment_expression "param_2 = (int *)*param_3" (identifier "param_2") (= "=") (cast_expression "(int *)*param_3" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_3" (* "*") (identifier "param_3")))) (; ";")) (expression_statement "puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3);" (assignment_expression "puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3)" (identifier "puVar3") (= "=") (cast_expression "(undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)PTR_memcpy_000f556c)(puVar3)" (parenthesized_expression "(*(code *)PTR_memcpy_000f556c)" (( "(") (pointer_expression "*(code *)PTR_memcpy_000f556c" (* "*") (cast_expression "(code *)PTR_memcpy_000f556c" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_000f556c"))) () ")")) (argument_list "(puVar3)" (( "(") (identifier "puVar3") () ")"))))) (; ";")) (expression_statement "iVar7 = param_3[1];" (assignment_expression "iVar7 = param_3[1]" (identifier "iVar7") (= "=") (subscript_expression "param_3[1]" (identifier "param_3") ([ "[") (number_literal "1") (] "]"))) (; ";")) (} "}"))) (expression_statement "puVar3[iVar7] = 0;" (assignment_expression "puVar3[iVar7] = 0" (subscript_expression "puVar3[iVar7]" (identifier "puVar3") ([ "[") (identifier "iVar7") (] "]")) (= "=") (number_literal "0")) (; ";")) (if_statement "if ((param_4 == 0) ||\n           (param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac])) {\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }\n        else {\n          if (param_2 == (int *)&DAT_00000022) {\n            uVar4 = 0x4000040;\n          }\n          else {\n            uVar4 = 0x4000000;\n          }\n          *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n          FUN_00020220();\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }" (if "if") (parenthesized_expression "((param_4 == 0) ||\n           (param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac]))" (( "(") (binary_expression "(param_4 == 0) ||\n           (param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac])" (parenthesized_expression "(param_4 == 0)" (( "(") (binary_expression "param_4 == 0" (identifier "param_4") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac])" (( "(") (comma_expression "param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),\n           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac]" (assignment_expression "param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8)" (identifier "param_2") (= "=") (cast_expression "(int *)(int)(char)**(byte **)(puVar2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (cast_expression "(int)(char)**(byte **)(puVar2 + 8)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (cast_expression "(char)**(byte **)(puVar2 + 8)" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (pointer_expression "**(byte **)(puVar2 + 8)" (* "*") (pointer_expression "*(byte **)(puVar2 + 8)" (* "*") (cast_expression "(byte **)(puVar2 + 8)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar2 + 8)" (( "(") (binary_expression "puVar2 + 8" (identifier "puVar2") (+ "+") (number_literal "8")) () ")"))))))))) (, ",") (binary_expression "-1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac]" (number_literal "-1") (< "<") (cast_expression "(char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac]" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (subscript_expression "PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac]" (identifier "PTR_DAT_000f52d4") ([ "[") (binary_expression "**(byte **)(puVar2 + 8) + 0x24ac" (pointer_expression "**(byte **)(puVar2 + 8)" (* "*") (pointer_expression "*(byte **)(puVar2 + 8)" (* "*") (cast_expression "(byte **)(puVar2 + 8)" (( "(") (type_descriptor "byte **" (type_identifier "byte") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar2 + 8)" (( "(") (binary_expression "puVar2 + 8" (identifier "puVar2") (+ "+") (number_literal "8")) () ")"))))) (+ "+") (number_literal "0x24ac")) (] "]"))))) () ")"))) () ")")) (compound_statement "{\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }" ({ "{") (expression_statement "*(undefined4 *)(puVar2 + 0x18) = 1;" (assignment_expression "*(undefined4 *)(puVar2 + 0x18) = 1" (pointer_expression "*(undefined4 *)(puVar2 + 0x18)" (* "*") (cast_expression "(undefined4 *)(puVar2 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x18)" (( "(") (binary_expression "puVar2 + 0x18" (identifier "puVar2") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (number_literal "1")) (; ";")) (} "}")) (else_clause "else {\n          if (param_2 == (int *)&DAT_00000022) {\n            uVar4 = 0x4000040;\n          }\n          else {\n            uVar4 = 0x4000000;\n          }\n          *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n          FUN_00020220();\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }" (else "else") (compound_statement "{\n          if (param_2 == (int *)&DAT_00000022) {\n            uVar4 = 0x4000040;\n          }\n          else {\n            uVar4 = 0x4000000;\n          }\n          *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;\n          FUN_00020220();\n          *(undefined4 *)(puVar2 + 0x18) = 1;\n        }" ({ "{") (if_statement "if (param_2 == (int *)&DAT_00000022) {\n            uVar4 = 0x4000040;\n          }\n          else {\n            uVar4 = 0x4000000;\n          }" (if "if") (parenthesized_expression "(param_2 == (int *)&DAT_00000022)" (( "(") (binary_expression "param_2 == (int *)&DAT_00000022" (identifier "param_2") (== "==") (cast_expression "(int *)&DAT_00000022" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&DAT_00000022" (& "&") (identifier "DAT_00000022")))) () ")")) (compound_statement "{\n            uVar4 = 0x4000040;\n          }" ({ "{") (expression_statement "uVar4 = 0x4000040;" (assignment_expression "uVar4 = 0x4000040" (identifier "uVar4") (= "=") (number_literal "0x4000040")) (; ";")) (} "}")) (else_clause "else {\n            uVar4 = 0x4000000;\n          }" (else "else") (compound_statement "{\n            uVar4 = 0x4000000;\n          }" ({ "{") (expression_statement "uVar4 = 0x4000000;" (assignment_expression "uVar4 = 0x4000000" (identifier "uVar4") (= "=") (number_literal "0x4000000")) (; ";")) (} "}")))) (expression_statement "*(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;" (assignment_expression "*(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4" (pointer_expression "*(uint *)(puVar2 + 4)" (* "*") (cast_expression "(uint *)(puVar2 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 4)" (( "(") (binary_expression "puVar2 + 4" (identifier "puVar2") (+ "+") (number_literal "4")) () ")")))) (= "=") (binary_expression "*(uint *)(puVar2 + 4) | uVar4" (pointer_expression "*(uint *)(puVar2 + 4)" (* "*") (cast_expression "(uint *)(puVar2 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 4)" (( "(") (binary_expression "puVar2 + 4" (identifier "puVar2") (+ "+") (number_literal "4")) () ")")))) (| "|") (identifier "uVar4"))) (; ";")) (expression_statement "FUN_00020220();" (call_expression "FUN_00020220()" (identifier "FUN_00020220") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "*(undefined4 *)(puVar2 + 0x18) = 1;" (assignment_expression "*(undefined4 *)(puVar2 + 0x18) = 1" (pointer_expression "*(undefined4 *)(puVar2 + 0x18)" (* "*") (cast_expression "(undefined4 *)(puVar2 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x18)" (( "(") (binary_expression "puVar2 + 0x18" (identifier "puVar2") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (number_literal "1")) (; ";")) (} "}")))) (goto_statement "goto LAB_00038070;" (goto "goto") (statement_identifier "LAB_00038070") (; ";")) (} "}"))) (} "}")))) (if_statement "if (local_28 == 0) {\n      uVar4 = 0x20800400;\n    }\n    else {\n      uVar4 = 0x10800400;\n    }" (if "if") (parenthesized_expression "(local_28 == 0)" (( "(") (binary_expression "local_28 == 0" (identifier "local_28") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      uVar4 = 0x20800400;\n    }" ({ "{") (expression_statement "uVar4 = 0x20800400;" (assignment_expression "uVar4 = 0x20800400" (identifier "uVar4") (= "=") (number_literal "0x20800400")) (; ";")) (} "}")) (else_clause "else {\n      uVar4 = 0x10800400;\n    }" (else "else") (compound_statement "{\n      uVar4 = 0x10800400;\n    }" ({ "{") (expression_statement "uVar4 = 0x10800400;" (assignment_expression "uVar4 = 0x10800400" (identifier "uVar4") (= "=") (number_literal "0x10800400")) (; ";")) (} "}")))) (expression_statement "*(int *)(puVar2 + 8) = local_28;" (assignment_expression "*(int *)(puVar2 + 8) = local_28" (pointer_expression "*(int *)(puVar2 + 8)" (* "*") (cast_expression "(int *)(puVar2 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 8)" (( "(") (binary_expression "puVar2 + 8" (identifier "puVar2") (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "local_28")) (; ";")) (expression_statement "*(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;" (assignment_expression "*(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4" (pointer_expression "*(uint *)(puVar2 + 4)" (* "*") (cast_expression "(uint *)(puVar2 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 4)" (( "(") (binary_expression "puVar2 + 4" (identifier "puVar2") (+ "+") (number_literal "4")) () ")")))) (= "=") (binary_expression "*(uint *)(puVar2 + 4) | uVar4" (pointer_expression "*(uint *)(puVar2 + 4)" (* "*") (cast_expression "(uint *)(puVar2 + 4)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 4)" (( "(") (binary_expression "puVar2 + 4" (identifier "puVar2") (+ "+") (number_literal "4")) () ")")))) (| "|") (identifier "uVar4"))) (; ";")) (expression_statement "*(undefined4 *)(puVar2 + 0x18) = 1;" (assignment_expression "*(undefined4 *)(puVar2 + 0x18) = 1" (pointer_expression "*(undefined4 *)(puVar2 + 0x18)" (* "*") (cast_expression "(undefined4 *)(puVar2 + 0x18)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x18)" (( "(") (binary_expression "puVar2 + 0x18" (identifier "puVar2") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (number_literal "1")) (; ";")) (} "}")))) (labeled_statement "LAB_00038070:\n  if (local_24 == *(int *)puVar1) {\n    return puVar2;\n  }" (statement_identifier "LAB_00038070") (: ":") (if_statement "if (local_24 == *(int *)puVar1) {\n    return puVar2;\n  }" (if "if") (parenthesized_expression "(local_24 == *(int *)puVar1)" (( "(") (binary_expression "local_24 == *(int *)puVar1" (identifier "local_24") (== "==") (pointer_expression "*(int *)puVar1" (* "*") (cast_expression "(int *)puVar1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar1")))) () ")")) (compound_statement "{\n    return puVar2;\n  }" ({ "{") (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}")))) (expression_statement "(*(code *)PTR___stack_chk_fail_000f5540)();" (call_expression "(*(code *)PTR___stack_chk_fail_000f5540)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_000f5540)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_000f5540" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_000f5540" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_000f5540"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "puVar2 = (undefined1 *)FUN_00037f2c();" (assignment_expression "puVar2 = (undefined1 *)FUN_00037f2c()" (identifier "puVar2") (= "=") (cast_expression "(undefined1 *)FUN_00037f2c()" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00037f2c()" (identifier "FUN_00037f2c") (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (puVar2 != (undefined1 *)0x0) {\n    iVar5 = param_2[iVar7 * 0x12 + 6];\n    iVar10 = param_2[iVar7 * 0x12 + 0xc];\n    *(int *)(puVar2 + 0x2c) = iVar5;\n    *(int *)(puVar2 + 0x1c) = iVar10;\n    if ((int)*(short *)(iVar5 + 0x28) == uVar8) {\n      *(undefined2 *)(puVar2 + 0x20) = 0xffff;\n      return puVar2;\n    }\n    uVar4 = *(uint *)(iVar5 + 0x24);\n    *(short *)(puVar2 + 0x20) = (short)uVar8;\n    if (((uVar4 & 0x60) == 0) ||\n       ((*(ushort *)(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10) & 0x60) == 0)) {\n      if (0x3f < (int)uVar8) {\n        uVar8 = 0x3f;\n      }\n      uVar4 = 1 << (uVar8 & 0x1f);\n      if ((uVar8 & 0x20) == 0) {\n        uVar8 = 0;\n      }\n      else {\n        uVar8 = uVar4;\n        uVar4 = 0;\n      }\n      param_2[iVar7 * 0x12 + 0x10] = param_2[iVar7 * 0x12 + 0x10] | uVar8;\n      param_2[iVar7 * 0x12 + 0x11] = param_2[iVar7 * 0x12 + 0x11] | uVar4;\n      return puVar2;\n    }\n    uVar8 = (uint)*(short *)(iVar5 + 0x2a);\n    if ((int)uVar8 < 0x40) {\n      uVar4 = 1 << (uVar8 & 0x1f);\n      if ((uVar8 & 0x20) == 0) {\n        uVar6 = 0;\n      }\n      else {\n        uVar6 = uVar4;\n        uVar4 = 0;\n      }\n      uVar8 = uVar4 - 1;\n      iVar10 = (uint)(uVar8 < uVar4) + (uVar6 - 1);\n    }\n    else {\n      iVar10 = -1;\n      uVar8 = 0xffffffff;\n    }\n    param_2[iVar7 * 0x12 + 0x10] = iVar10;\n    param_2[iVar7 * 0x12 + 0x11] = uVar8;\n  }" (if "if") (parenthesized_expression "(puVar2 != (undefined1 *)0x0)" (( "(") (binary_expression "puVar2 != (undefined1 *)0x0" (identifier "puVar2") (!= "!=") (cast_expression "(undefined1 *)0x0" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    iVar5 = param_2[iVar7 * 0x12 + 6];\n    iVar10 = param_2[iVar7 * 0x12 + 0xc];\n    *(int *)(puVar2 + 0x2c) = iVar5;\n    *(int *)(puVar2 + 0x1c) = iVar10;\n    if ((int)*(short *)(iVar5 + 0x28) == uVar8) {\n      *(undefined2 *)(puVar2 + 0x20) = 0xffff;\n      return puVar2;\n    }\n    uVar4 = *(uint *)(iVar5 + 0x24);\n    *(short *)(puVar2 + 0x20) = (short)uVar8;\n    if (((uVar4 & 0x60) == 0) ||\n       ((*(ushort *)(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10) & 0x60) == 0)) {\n      if (0x3f < (int)uVar8) {\n        uVar8 = 0x3f;\n      }\n      uVar4 = 1 << (uVar8 & 0x1f);\n      if ((uVar8 & 0x20) == 0) {\n        uVar8 = 0;\n      }\n      else {\n        uVar8 = uVar4;\n        uVar4 = 0;\n      }\n      param_2[iVar7 * 0x12 + 0x10] = param_2[iVar7 * 0x12 + 0x10] | uVar8;\n      param_2[iVar7 * 0x12 + 0x11] = param_2[iVar7 * 0x12 + 0x11] | uVar4;\n      return puVar2;\n    }\n    uVar8 = (uint)*(short *)(iVar5 + 0x2a);\n    if ((int)uVar8 < 0x40) {\n      uVar4 = 1 << (uVar8 & 0x1f);\n      if ((uVar8 & 0x20) == 0) {\n        uVar6 = 0;\n      }\n      else {\n        uVar6 = uVar4;\n        uVar4 = 0;\n      }\n      uVar8 = uVar4 - 1;\n      iVar10 = (uint)(uVar8 < uVar4) + (uVar6 - 1);\n    }\n    else {\n      iVar10 = -1;\n      uVar8 = 0xffffffff;\n    }\n    param_2[iVar7 * 0x12 + 0x10] = iVar10;\n    param_2[iVar7 * 0x12 + 0x11] = uVar8;\n  }" ({ "{") (expression_statement "iVar5 = param_2[iVar7 * 0x12 + 6];" (assignment_expression "iVar5 = param_2[iVar7 * 0x12 + 6]" (identifier "iVar5") (= "=") (subscript_expression "param_2[iVar7 * 0x12 + 6]" (identifier "param_2") ([ "[") (binary_expression "iVar7 * 0x12 + 6" (binary_expression "iVar7 * 0x12" (identifier "iVar7") (* "*") (number_literal "0x12")) (+ "+") (number_literal "6")) (] "]"))) (; ";")) (expression_statement "iVar10 = param_2[iVar7 * 0x12 + 0xc];" (assignment_expression "iVar10 = param_2[iVar7 * 0x12 + 0xc]" (identifier "iVar10") (= "=") (subscript_expression "param_2[iVar7 * 0x12 + 0xc]" (identifier "param_2") ([ "[") (binary_expression "iVar7 * 0x12 + 0xc" (binary_expression "iVar7 * 0x12" (identifier "iVar7") (* "*") (number_literal "0x12")) (+ "+") (number_literal "0xc")) (] "]"))) (; ";")) (expression_statement "*(int *)(puVar2 + 0x2c) = iVar5;" (assignment_expression "*(int *)(puVar2 + 0x2c) = iVar5" (pointer_expression "*(int *)(puVar2 + 0x2c)" (* "*") (cast_expression "(int *)(puVar2 + 0x2c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x2c)" (( "(") (binary_expression "puVar2 + 0x2c" (identifier "puVar2") (+ "+") (number_literal "0x2c")) () ")")))) (= "=") (identifier "iVar5")) (; ";")) (expression_statement "*(int *)(puVar2 + 0x1c) = iVar10;" (assignment_expression "*(int *)(puVar2 + 0x1c) = iVar10" (pointer_expression "*(int *)(puVar2 + 0x1c)" (* "*") (cast_expression "(int *)(puVar2 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x1c)" (( "(") (binary_expression "puVar2 + 0x1c" (identifier "puVar2") (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (identifier "iVar10")) (; ";")) (if_statement "if ((int)*(short *)(iVar5 + 0x28) == uVar8) {\n      *(undefined2 *)(puVar2 + 0x20) = 0xffff;\n      return puVar2;\n    }" (if "if") (parenthesized_expression "((int)*(short *)(iVar5 + 0x28) == uVar8)" (( "(") (binary_expression "(int)*(short *)(iVar5 + 0x28) == uVar8" (cast_expression "(int)*(short *)(iVar5 + 0x28)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*(short *)(iVar5 + 0x28)" (* "*") (cast_expression "(short *)(iVar5 + 0x28)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x28)" (( "(") (binary_expression "iVar5 + 0x28" (identifier "iVar5") (+ "+") (number_literal "0x28")) () ")"))))) (== "==") (identifier "uVar8")) () ")")) (compound_statement "{\n      *(undefined2 *)(puVar2 + 0x20) = 0xffff;\n      return puVar2;\n    }" ({ "{") (expression_statement "*(undefined2 *)(puVar2 + 0x20) = 0xffff;" (assignment_expression "*(undefined2 *)(puVar2 + 0x20) = 0xffff" (pointer_expression "*(undefined2 *)(puVar2 + 0x20)" (* "*") (cast_expression "(undefined2 *)(puVar2 + 0x20)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x20)" (( "(") (binary_expression "puVar2 + 0x20" (identifier "puVar2") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (number_literal "0xffff")) (; ";")) (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}"))) (expression_statement "uVar4 = *(uint *)(iVar5 + 0x24);" (assignment_expression "uVar4 = *(uint *)(iVar5 + 0x24)" (identifier "uVar4") (= "=") (pointer_expression "*(uint *)(iVar5 + 0x24)" (* "*") (cast_expression "(uint *)(iVar5 + 0x24)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x24)" (( "(") (binary_expression "iVar5 + 0x24" (identifier "iVar5") (+ "+") (number_literal "0x24")) () ")"))))) (; ";")) (expression_statement "*(short *)(puVar2 + 0x20) = (short)uVar8;" (assignment_expression "*(short *)(puVar2 + 0x20) = (short)uVar8" (pointer_expression "*(short *)(puVar2 + 0x20)" (* "*") (cast_expression "(short *)(puVar2 + 0x20)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(puVar2 + 0x20)" (( "(") (binary_expression "puVar2 + 0x20" (identifier "puVar2") (+ "+") (number_literal "0x20")) () ")")))) (= "=") (cast_expression "(short)uVar8" (( "(") (type_descriptor "short" (sized_type_specifier "short" (short "short"))) () ")") (identifier "uVar8"))) (; ";")) (if_statement "if (((uVar4 & 0x60) == 0) ||\n       ((*(ushort *)(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10) & 0x60) == 0)) {\n      if (0x3f < (int)uVar8) {\n        uVar8 = 0x3f;\n      }\n      uVar4 = 1 << (uVar8 & 0x1f);\n      if ((uVar8 & 0x20) == 0) {\n        uVar8 = 0;\n      }\n      else {\n        uVar8 = uVar4;\n        uVar4 = 0;\n      }\n      param_2[iVar7 * 0x12 + 0x10] = param_2[iVar7 * 0x12 + 0x10] | uVar8;\n      param_2[iVar7 * 0x12 + 0x11] = param_2[iVar7 * 0x12 + 0x11] | uVar4;\n      return puVar2;\n    }" (if "if") (parenthesized_expression "(((uVar4 & 0x60) == 0) ||\n       ((*(ushort *)(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10) & 0x60) == 0))" (( "(") (binary_expression "((uVar4 & 0x60) == 0) ||\n       ((*(ushort *)(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10) & 0x60) == 0)" (parenthesized_expression "((uVar4 & 0x60) == 0)" (( "(") (binary_expression "(uVar4 & 0x60) == 0" (parenthesized_expression "(uVar4 & 0x60)" (( "(") (binary_expression "uVar4 & 0x60" (identifier "uVar4") (& "&") (number_literal "0x60")) () ")")) (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "((*(ushort *)(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10) & 0x60) == 0)" (( "(") (binary_expression "(*(ushort *)(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10) & 0x60) == 0" (parenthesized_expression "(*(ushort *)(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10) & 0x60)" (( "(") (binary_expression "*(ushort *)(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10) & 0x60" (pointer_expression "*(ushort *)(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10)" (* "*") (cast_expression "(ushort *)(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10)" (( "(") (type_descriptor "ushort *" (type_identifier "ushort") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10)" (( "(") (binary_expression "*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10" (binary_expression "*(int *)(iVar5 + 4) + uVar8 * 0x14" (pointer_expression "*(int *)(iVar5 + 4)" (* "*") (cast_expression "(int *)(iVar5 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 4)" (( "(") (binary_expression "iVar5 + 4" (identifier "iVar5") (+ "+") (number_literal "4")) () ")")))) (+ "+") (binary_expression "uVar8 * 0x14" (identifier "uVar8") (* "*") (number_literal "0x14"))) (+ "+") (number_literal "0x10")) () ")")))) (& "&") (number_literal "0x60")) () ")")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n      if (0x3f < (int)uVar8) {\n        uVar8 = 0x3f;\n      }\n      uVar4 = 1 << (uVar8 & 0x1f);\n      if ((uVar8 & 0x20) == 0) {\n        uVar8 = 0;\n      }\n      else {\n        uVar8 = uVar4;\n        uVar4 = 0;\n      }\n      param_2[iVar7 * 0x12 + 0x10] = param_2[iVar7 * 0x12 + 0x10] | uVar8;\n      param_2[iVar7 * 0x12 + 0x11] = param_2[iVar7 * 0x12 + 0x11] | uVar4;\n      return puVar2;\n    }" ({ "{") (if_statement "if (0x3f < (int)uVar8) {\n        uVar8 = 0x3f;\n      }" (if "if") (parenthesized_expression "(0x3f < (int)uVar8)" (( "(") (binary_expression "0x3f < (int)uVar8" (number_literal "0x3f") (< "<") (cast_expression "(int)uVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar8"))) () ")")) (compound_statement "{\n        uVar8 = 0x3f;\n      }" ({ "{") (expression_statement "uVar8 = 0x3f;" (assignment_expression "uVar8 = 0x3f" (identifier "uVar8") (= "=") (number_literal "0x3f")) (; ";")) (} "}"))) (expression_statement "uVar4 = 1 << (uVar8 & 0x1f);" (assignment_expression "uVar4 = 1 << (uVar8 & 0x1f)" (identifier "uVar4") (= "=") (binary_expression "1 << (uVar8 & 0x1f)" (number_literal "1") (<< "<<") (parenthesized_expression "(uVar8 & 0x1f)" (( "(") (binary_expression "uVar8 & 0x1f" (identifier "uVar8") (& "&") (number_literal "0x1f")) () ")")))) (; ";")) (if_statement "if ((uVar8 & 0x20) == 0) {\n        uVar8 = 0;\n      }\n      else {\n        uVar8 = uVar4;\n        uVar4 = 0;\n      }" (if "if") (parenthesized_expression "((uVar8 & 0x20) == 0)" (( "(") (binary_expression "(uVar8 & 0x20) == 0" (parenthesized_expression "(uVar8 & 0x20)" (( "(") (binary_expression "uVar8 & 0x20" (identifier "uVar8") (& "&") (number_literal "0x20")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        uVar8 = 0;\n      }" ({ "{") (expression_statement "uVar8 = 0;" (assignment_expression "uVar8 = 0" (identifier "uVar8") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n        uVar8 = uVar4;\n        uVar4 = 0;\n      }" (else "else") (compound_statement "{\n        uVar8 = uVar4;\n        uVar4 = 0;\n      }" ({ "{") (expression_statement "uVar8 = uVar4;" (assignment_expression "uVar8 = uVar4" (identifier "uVar8") (= "=") (identifier "uVar4")) (; ";")) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (} "}")))) (expression_statement "param_2[iVar7 * 0x12 + 0x10] = param_2[iVar7 * 0x12 + 0x10] | uVar8;" (assignment_expression "param_2[iVar7 * 0x12 + 0x10] = param_2[iVar7 * 0x12 + 0x10] | uVar8" (subscript_expression "param_2[iVar7 * 0x12 + 0x10]" (identifier "param_2") ([ "[") (binary_expression "iVar7 * 0x12 + 0x10" (binary_expression "iVar7 * 0x12" (identifier "iVar7") (* "*") (number_literal "0x12")) (+ "+") (number_literal "0x10")) (] "]")) (= "=") (binary_expression "param_2[iVar7 * 0x12 + 0x10] | uVar8" (subscript_expression "param_2[iVar7 * 0x12 + 0x10]" (identifier "param_2") ([ "[") (binary_expression "iVar7 * 0x12 + 0x10" (binary_expression "iVar7 * 0x12" (identifier "iVar7") (* "*") (number_literal "0x12")) (+ "+") (number_literal "0x10")) (] "]")) (| "|") (identifier "uVar8"))) (; ";")) (expression_statement "param_2[iVar7 * 0x12 + 0x11] = param_2[iVar7 * 0x12 + 0x11] | uVar4;" (assignment_expression "param_2[iVar7 * 0x12 + 0x11] = param_2[iVar7 * 0x12 + 0x11] | uVar4" (subscript_expression "param_2[iVar7 * 0x12 + 0x11]" (identifier "param_2") ([ "[") (binary_expression "iVar7 * 0x12 + 0x11" (binary_expression "iVar7 * 0x12" (identifier "iVar7") (* "*") (number_literal "0x12")) (+ "+") (number_literal "0x11")) (] "]")) (= "=") (binary_expression "param_2[iVar7 * 0x12 + 0x11] | uVar4" (subscript_expression "param_2[iVar7 * 0x12 + 0x11]" (identifier "param_2") ([ "[") (binary_expression "iVar7 * 0x12 + 0x11" (binary_expression "iVar7 * 0x12" (identifier "iVar7") (* "*") (number_literal "0x12")) (+ "+") (number_literal "0x11")) (] "]")) (| "|") (identifier "uVar4"))) (; ";")) (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}"))) (expression_statement "uVar8 = (uint)*(short *)(iVar5 + 0x2a);" (assignment_expression "uVar8 = (uint)*(short *)(iVar5 + 0x2a)" (identifier "uVar8") (= "=") (binary_expression "(uint)*(short *)(iVar5 + 0x2a)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (* "*") (cast_expression "(short *)(iVar5 + 0x2a)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar5 + 0x2a)" (( "(") (binary_expression "iVar5 + 0x2a" (identifier "iVar5") (+ "+") (number_literal "0x2a")) () ")"))))) (; ";")) (if_statement "if ((int)uVar8 < 0x40) {\n      uVar4 = 1 << (uVar8 & 0x1f);\n      if ((uVar8 & 0x20) == 0) {\n        uVar6 = 0;\n      }\n      else {\n        uVar6 = uVar4;\n        uVar4 = 0;\n      }\n      uVar8 = uVar4 - 1;\n      iVar10 = (uint)(uVar8 < uVar4) + (uVar6 - 1);\n    }\n    else {\n      iVar10 = -1;\n      uVar8 = 0xffffffff;\n    }" (if "if") (parenthesized_expression "((int)uVar8 < 0x40)" (( "(") (binary_expression "(int)uVar8 < 0x40" (cast_expression "(int)uVar8" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "uVar8")) (< "<") (number_literal "0x40")) () ")")) (compound_statement "{\n      uVar4 = 1 << (uVar8 & 0x1f);\n      if ((uVar8 & 0x20) == 0) {\n        uVar6 = 0;\n      }\n      else {\n        uVar6 = uVar4;\n        uVar4 = 0;\n      }\n      uVar8 = uVar4 - 1;\n      iVar10 = (uint)(uVar8 < uVar4) + (uVar6 - 1);\n    }" ({ "{") (expression_statement "uVar4 = 1 << (uVar8 & 0x1f);" (assignment_expression "uVar4 = 1 << (uVar8 & 0x1f)" (identifier "uVar4") (= "=") (binary_expression "1 << (uVar8 & 0x1f)" (number_literal "1") (<< "<<") (parenthesized_expression "(uVar8 & 0x1f)" (( "(") (binary_expression "uVar8 & 0x1f" (identifier "uVar8") (& "&") (number_literal "0x1f")) () ")")))) (; ";")) (if_statement "if ((uVar8 & 0x20) == 0) {\n        uVar6 = 0;\n      }\n      else {\n        uVar6 = uVar4;\n        uVar4 = 0;\n      }" (if "if") (parenthesized_expression "((uVar8 & 0x20) == 0)" (( "(") (binary_expression "(uVar8 & 0x20) == 0" (parenthesized_expression "(uVar8 & 0x20)" (( "(") (binary_expression "uVar8 & 0x20" (identifier "uVar8") (& "&") (number_literal "0x20")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        uVar6 = 0;\n      }" ({ "{") (expression_statement "uVar6 = 0;" (assignment_expression "uVar6 = 0" (identifier "uVar6") (= "=") (number_literal "0")) (; ";")) (} "}")) (else_clause "else {\n        uVar6 = uVar4;\n        uVar4 = 0;\n      }" (else "else") (compound_statement "{\n        uVar6 = uVar4;\n        uVar4 = 0;\n      }" ({ "{") (expression_statement "uVar6 = uVar4;" (assignment_expression "uVar6 = uVar4" (identifier "uVar6") (= "=") (identifier "uVar4")) (; ";")) (expression_statement "uVar4 = 0;" (assignment_expression "uVar4 = 0" (identifier "uVar4") (= "=") (number_literal "0")) (; ";")) (} "}")))) (expression_statement "uVar8 = uVar4 - 1;" (assignment_expression "uVar8 = uVar4 - 1" (identifier "uVar8") (= "=") (binary_expression "uVar4 - 1" (identifier "uVar4") (- "-") (number_literal "1"))) (; ";")) (expression_statement "iVar10 = (uint)(uVar8 < uVar4) + (uVar6 - 1);" (assignment_expression "iVar10 = (uint)(uVar8 < uVar4) + (uVar6 - 1)" (identifier "iVar10") (= "=") (binary_expression "(uint)(uVar8 < uVar4) + (uVar6 - 1)" (call_expression "(uint)(uVar8 < uVar4)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(uVar8 < uVar4)" (( "(") (binary_expression "uVar8 < uVar4" (identifier "uVar8") (< "<") (identifier "uVar4")) () ")"))) (+ "+") (parenthesized_expression "(uVar6 - 1)" (( "(") (binary_expression "uVar6 - 1" (identifier "uVar6") (- "-") (number_literal "1")) () ")")))) (; ";")) (} "}")) (else_clause "else {\n      iVar10 = -1;\n      uVar8 = 0xffffffff;\n    }" (else "else") (compound_statement "{\n      iVar10 = -1;\n      uVar8 = 0xffffffff;\n    }" ({ "{") (expression_statement "iVar10 = -1;" (assignment_expression "iVar10 = -1" (identifier "iVar10") (= "=") (number_literal "-1")) (; ";")) (expression_statement "uVar8 = 0xffffffff;" (assignment_expression "uVar8 = 0xffffffff" (identifier "uVar8") (= "=") (number_literal "0xffffffff")) (; ";")) (} "}")))) (expression_statement "param_2[iVar7 * 0x12 + 0x10] = iVar10;" (assignment_expression "param_2[iVar7 * 0x12 + 0x10] = iVar10" (subscript_expression "param_2[iVar7 * 0x12 + 0x10]" (identifier "param_2") ([ "[") (binary_expression "iVar7 * 0x12 + 0x10" (binary_expression "iVar7 * 0x12" (identifier "iVar7") (* "*") (number_literal "0x12")) (+ "+") (number_literal "0x10")) (] "]")) (= "=") (identifier "iVar10")) (; ";")) (expression_statement "param_2[iVar7 * 0x12 + 0x11] = uVar8;" (assignment_expression "param_2[iVar7 * 0x12 + 0x11] = uVar8" (subscript_expression "param_2[iVar7 * 0x12 + 0x11]" (identifier "param_2") ([ "[") (binary_expression "iVar7 * 0x12 + 0x11" (binary_expression "iVar7 * 0x12" (identifier "iVar7") (* "*") (number_literal "0x12")) (+ "+") (number_literal "0x11")) (] "]")) (= "=") (identifier "uVar8")) (; ";")) (} "}"))) (return_statement "return puVar2;" (return "return") (identifier "puVar2") (; ";")) (} "}")))

type_1 * function_1(type_2 *db,int var_6,type_3 *var_1,int var_11)

{
  type_4 bVar1;
  type_5 *puVar2;
  type_1 *var_4;
  type_1 *pEVar4;
  int var_8;
  type_2 *db_00;
  type_6 *pTVar6;
  type_7 var_16;
  type_7 var_10;
  type_7 var_15;
  type_8 uVar10;
  type_7 var_9;
  type_9 *var_5;
  type_10 in_stack_ffffffd4;
  int var_13;
  type_2 *var_14;
  
  puVar2 = PTR___stack_chk_guard_000f5568;
  var_5 = &_gp;
  var_13 = 0;
  var_14 = *(type_2 **)PTR___stack_chk_guard_000f5568;
  uVar10 = (type_8)var_6;
  if (var_1 == (type_3 *)0x0) {
    var_15 = 0x34;
    var_10 = 0;
    var_4 = (type_1 *)var_2(db,var_3(&_gp,in_stack_ffffffd4));
    if (var_4 != (type_1 *)0x0) {
      var_10 = 0x34;
      var_6 = 0;
      (**(type_11 **)(var_5 + -0x7e50))(var_4);
      var_4->iAgg = -1;
      var_4->var_6 = uVar10;
      var_4->nHeight = 1;
      goto LAB_00038070;
    }
LAB_0003806c:
    var_4 = (type_1 *)0x0;
  }
  else {
    if ((var_6 == 0x98) && (var_1->z != (char *)0x0)) {
      var_6 = (int)&var_13;
      var_8 = var_7(var_1->z,(int *)var_6);
      if (var_8 == 0) goto LAB_00037f88;
      var_15 = 0x34;
      var_10 = 0;
      var_4 = (type_1 *)var_2(db,var_3(var_5,in_stack_ffffffd4));
      if (var_4 == (type_1 *)0x0) goto LAB_0003806c;
      var_10 = 0x34;
      var_6 = 0;
      (**(type_11 **)(var_5 + -0x7e50))(var_4);
      var_4->var_6 = 0x98;
      var_4->iAgg = -1;
    }
    else {
LAB_00037f88:
      var_10 = 0;
      var_9 = var_1->n;
      var_15 = var_9 + 0x35;
      var_4 = (type_1 *)var_2(db,var_3(var_5,in_stack_ffffffd4));
      if (var_4 == (type_1 *)0x0) goto LAB_0003806c;
      var_10 = 0x34;
      var_6 = 0;
      (**(type_11 **)(var_5 + -0x7e50))(var_4);
      var_4->var_6 = uVar10;
      var_4->iAgg = -1;
      if (var_9 != 0xffffffff) {
        var_10 = var_1->n;
        pEVar4 = var_4 + 1;
        (var_4->u).zToken = (char *)pEVar4;
        if (var_10 != 0) {
          var_6 = (int)var_1->z;
          pEVar4 = (type_1 *)(**(type_11 **)(var_5 + -0x7d34))(pEVar4);
          var_10 = var_1->n;
        }
        (&pEVar4->var_6)[var_10] = '\0';
        if (var_11 != 0) {
          bVar1 = *(var_4->u).zToken;
          var_6 = (int)(char)bVar1;
          if (*(char *)((type_7)bVar1 + *(int *)(var_5 + -0x7fcc) + 0x24ac) < '\0') {
            if ((type_9 *)var_6 == &DAT_00000022) {
              var_9 = 0x4000040;
            }
            else {
              var_9 = 0x4000000;
            }
            var_4->flags = var_4->flags | var_9;
            var_12((var_4->u).zToken);
            var_4->nHeight = 1;
            goto LAB_00038070;
          }
        }
        var_4->nHeight = 1;
        goto LAB_00038070;
      }
    }
    if (var_13 == 0) {
      var_9 = 0x20800400;
    }
    else {
      var_9 = 0x10800400;
    }
    (var_4->u).var_13 = var_13;
    var_4->flags = var_4->flags | var_9;
    var_4->nHeight = 1;
  }
LAB_00038070:
  if (var_14 == *(type_2 **)puVar2) {
    return var_4;
  }
  db_00 = var_14;
  (**(type_11 **)(var_5 + -0x7d60))();
  var_4 = function_1(db_00,0xa4,(type_3 *)0x0,0);
  if (var_4 != (type_1 *)0x0) {
    pTVar6 = *(type_6 **)(var_6 + (var_10 * 0x12 + 6) * 4);
    var_8 = *(int *)(var_6 + (var_10 * 0x12 + 0xc) * 4);
    (var_4->y).pTab = pTVar6;
    var_4->iTable = var_8;
    if ((int)pTVar6->iPKey == var_15) {
      var_4->iColumn = -1;
      return var_4;
    }
    var_9 = pTVar6->tabFlags;
    var_4->iColumn = (type_12)var_15;
    if (((var_9 & 0x60) == 0) || ((pTVar6->aCol[var_15].colFlags & 0x60) == 0)) {
      if (0x3f < (int)var_15) {
        var_15 = 0x3f;
      }
      var_9 = 1 << (var_15 & 0x1f);
      if ((var_15 & 0x20) == 0) {
        var_15 = 0;
      }
      else {
        var_15 = var_9;
        var_9 = 0;
      }
      *(type_7 *)(var_6 + (var_10 * 0x12 + 0x10) * 4) = *(type_7 *)(var_6 + (var_10 * 0x12 + 0x10) * 4) | var_15;
      *(type_7 *)(var_6 + (var_10 * 0x12 + 0x11) * 4) = *(type_7 *)(var_6 + (var_10 * 0x12 + 0x11) * 4) | var_9
      ;
      return var_4;
    }
    var_15 = (type_7)pTVar6->nCol;
    if ((int)var_15 < 0x40) {
      var_9 = 1 << (var_15 & 0x1f);
      if ((var_15 & 0x20) == 0) {
        var_16 = 0;
      }
      else {
        var_16 = var_9;
        var_9 = 0;
      }
      var_15 = var_9 - 1;
      var_8 = (type_7)(var_15 < var_9) + (var_16 - 1);
    }
    else {
      var_8 = -1;
      var_15 = 0xffffffff;
    }
    *(int *)(var_6 + (var_10 * 0x12 + 0x10) * 4) = var_8;
    *(type_7 *)(var_6 + (var_10 * 0x12 + 0x11) * 4) = var_15;
  }
  return var_4;
}


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

undefined1 * MASKED(undefined4 param_1,int *param_2,int *param_3,int param_4)

{
  undefined *puVar1;
  undefined1 *puVar2;
  undefined1 *puVar3;
  uint uVar4;
  int iVar5;
  uint uVar6;
  int iVar7;
  uint uVar8;
  undefined1 uVar9;
  int iVar10;
  int local_28;
  int local_24;
  
  puVar1 = PTR___stack_chk_guard_000f5568;
  local_28 = 0;
  local_24 = *(int *)PTR___stack_chk_guard_000f5568;
  uVar9 = SUB41(param_2,0);
  if (param_3 == (int *)0x0) {
    uVar8 = 0x34;
    iVar7 = 0;
    puVar2 = (undefined1 *)FUN_00036c00();
    if (puVar2 != (undefined1 *)0x0) {
      iVar7 = 0x34;
      param_2 = (int *)0x0;
      (*(code *)PTR_memset_000f5450)(puVar2);
      *(undefined2 *)(puVar2 + 0x22) = 0xffff;
      *puVar2 = uVar9;
      *(undefined4 *)(puVar2 + 0x18) = 1;
      goto LAB_00038070;
    }
LAB_0003806c:
    puVar2 = (undefined1 *)0x0;
  }
  else {
    if ((param_2 == (int *)&DAT_00000098) && (*param_3 != 0)) {
      param_2 = &local_28;
      iVar7 = FUN_000249b4();
      if (iVar7 == 0) goto LAB_00037f88;
      uVar8 = 0x34;
      iVar7 = 0;
      puVar2 = (undefined1 *)FUN_00036c00(param_1);
      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;
      iVar7 = 0x34;
      param_2 = (int *)0x0;
      (*(code *)PTR_memset_000f5450)(puVar2);
      *puVar2 = 0x98;
      *(undefined2 *)(puVar2 + 0x22) = 0xffff;
    }
    else {
LAB_00037f88:
      iVar7 = 0;
      iVar10 = param_3[1];
      uVar8 = iVar10 + 0x35;
      puVar2 = (undefined1 *)FUN_00036c00(param_1);
      if (puVar2 == (undefined1 *)0x0) goto LAB_0003806c;
      iVar7 = 0x34;
      param_2 = (int *)0x0;
      (*(code *)PTR_memset_000f5450)(puVar2);
      *puVar2 = uVar9;
      *(undefined2 *)(puVar2 + 0x22) = 0xffff;
      if (iVar10 != -1) {
        iVar7 = param_3[1];
        puVar3 = puVar2 + 0x34;
        *(undefined1 **)(puVar2 + 8) = puVar3;
        if (iVar7 != 0) {
          param_2 = (int *)*param_3;
          puVar3 = (undefined1 *)(*(code *)PTR_memcpy_000f556c)(puVar3);
          iVar7 = param_3[1];
        }
        puVar3[iVar7] = 0;
        if ((param_4 == 0) ||
           (param_2 = (int *)(int)(char)**(byte **)(puVar2 + 8),
           -1 < (char)PTR_DAT_000f52d4[**(byte **)(puVar2 + 8) + 0x24ac])) {
          *(undefined4 *)(puVar2 + 0x18) = 1;
        }
        else {
          if (param_2 == (int *)&DAT_00000022) {
            uVar4 = 0x4000040;
          }
          else {
            uVar4 = 0x4000000;
          }
          *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;
          FUN_00020220();
          *(undefined4 *)(puVar2 + 0x18) = 1;
        }
        goto LAB_00038070;
      }
    }
    if (local_28 == 0) {
      uVar4 = 0x20800400;
    }
    else {
      uVar4 = 0x10800400;
    }
    *(int *)(puVar2 + 8) = local_28;
    *(uint *)(puVar2 + 4) = *(uint *)(puVar2 + 4) | uVar4;
    *(undefined4 *)(puVar2 + 0x18) = 1;
  }
LAB_00038070:
  if (local_24 == *(int *)puVar1) {
    return puVar2;
  }
  (*(code *)PTR___stack_chk_fail_000f5540)();
  puVar2 = (undefined1 *)MASKED();
  if (puVar2 != (undefined1 *)0x0) {
    iVar5 = param_2[iVar7 * 0x12 + 6];
    iVar10 = param_2[iVar7 * 0x12 + 0xc];
    *(int *)(puVar2 + 0x2c) = iVar5;
    *(int *)(puVar2 + 0x1c) = iVar10;
    if ((int)*(short *)(iVar5 + 0x28) == uVar8) {
      *(undefined2 *)(puVar2 + 0x20) = 0xffff;
      return puVar2;
    }
    uVar4 = *(uint *)(iVar5 + 0x24);
    *(short *)(puVar2 + 0x20) = (short)uVar8;
    if (((uVar4 & 0x60) == 0) ||
       ((*(ushort *)(*(int *)(iVar5 + 4) + uVar8 * 0x14 + 0x10) & 0x60) == 0)) {
      if (0x3f < (int)uVar8) {
        uVar8 = 0x3f;
      }
      uVar4 = 1 << (uVar8 & 0x1f);
      if ((uVar8 & 0x20) == 0) {
        uVar8 = 0;
      }
      else {
        uVar8 = uVar4;
        uVar4 = 0;
      }
      param_2[iVar7 * 0x12 + 0x10] = param_2[iVar7 * 0x12 + 0x10] | uVar8;
      param_2[iVar7 * 0x12 + 0x11] = param_2[iVar7 * 0x12 + 0x11] | uVar4;
      return puVar2;
    }
    uVar8 = (uint)*(short *)(iVar5 + 0x2a);
    if ((int)uVar8 < 0x40) {
      uVar4 = 1 << (uVar8 & 0x1f);
      if ((uVar8 & 0x20) == 0) {
        uVar6 = 0;
      }
      else {
        uVar6 = uVar4;
        uVar4 = 0;
      }
      uVar8 = uVar4 - 1;
      iVar10 = (uint)(uVar8 < uVar4) + (uVar6 - 1);
    }
    else {
      iVar10 = -1;
      uVar8 = 0xffffffff;
    }
    param_2[iVar7 * 0x12 + 0x10] = iVar10;
    param_2[iVar7 * 0x12 + 0x11] = uVar8;
  }
  return puVar2;
}

