
/* DWARF original prototype: void sqlite3SelectAddColumnTypeAndCollation(Parse * pParse, Table *
   pTab, Select * pSelect, Select * pSelect) */

void sqlite3SelectAddColumnTypeAndCollation
               (Parse *pParse,Table *pTab,Select *pSelect,Select *pSelect_1)

{
  undefined *puVar1;
  Select *pSVar2;
  code *pcVar3;
  code *pcVar4;
  code *pcVar5;
  code *pcVar6;
  code *pcVar7;
  undefined4 *puVar8;
  int iVar9;
  int iVar10;
  uint uVar11;
  uint uVar12;
  int iVar13;
  sqlite3 *psVar14;
  char *pcVar15;
  Select *pSelect_00;
  uint uVar16;
  Column *pCVar17;
  int *piVar18;
  Table *pTVar19;
  int iVar20;
  ExprList_item *pEVar21;
  sqlite3 *psVar22;
  int *piVar23;
  NameContext sNC;
  
  puVar1 = PTR___stack_chk_guard_0015ba2c;
  psVar14 = pParse->db;
  iVar13 = *(int *)PTR___stack_chk_guard_0015ba2c;
  psVar22 = psVar14;
  pTVar19 = pTab;
  if (psVar14->mallocFailed == '\0') {
    sNC.pSrcList = (SrcList *)pSelect_1->pEList;
    pCVar17 = pTab->aCol;
    sNC.pParse = (Parse *)0x0;
    sNC.uNC.pEList = (ExprList *)0x0;
    sNC.pNext = (NameContext *)0x0;
    sNC.nRef = 0;
    sNC.nErr = 0;
    sNC.ncFlags = 0;
    sNC._26_2_ = 0;
    sNC.pWinSelect = (Select *)0x0;
    if (0 < pTab->nCol) {
      pEVar21 = pSelect->pEList->a;
      iVar20 = 0;
      pcVar3 = (code *)(PTR_LAB_0015b6c0 + 0x4814);
      pcVar4 = (code *)(PTR_LAB_0015b65c + 0x5914);
      pcVar5 = (code *)(PTR_LAB_0015b740 + 0x75dc);
      pcVar6 = (code *)(PTR_LAB_0015b700 + 0x7748);
      pcVar7 = (code *)(PTR_LAB_0015b6d8 + -0x23a0);
      do {
        pTVar19 = (Table *)pEVar21->pExpr;
        iVar9 = (*pcVar3)(&sNC,pTVar19,0,0,0);
        iVar10 = (*pcVar4)(pTVar19);
        pCVar17->affinity = (char)iVar10;
        if (iVar9 != 0) {
          uVar11 = (*(code *)PTR_strlen_0015b9c4)(iVar9);
          pcVar15 = pCVar17->zName;
          uVar11 = uVar11 & 0x3fffffff;
          if (pcVar15 == (char *)0x0) {
            uVar12 = 0;
            uVar16 = uVar11;
          }
          else {
            uVar12 = (*(code *)PTR_strlen_0015b9c4)(pcVar15);
            uVar12 = uVar12 & 0x3fffffff;
            uVar16 = uVar11 + uVar12;
          }
          pcVar15 = (char *)(*pcVar6)(psVar14,pcVar15,(int)(uVar16 + 2) >> 0x1f);
          pCVar17->zName = pcVar15;
          if (pcVar15 == (char *)0x0) {
            iVar10 = (int)pCVar17->affinity;
          }
          else {
            (*(code *)PTR_memcpy_0015ba30)(pcVar15 + uVar12 + 1,iVar9,uVar11 + 1);
            iVar10 = (int)pCVar17->affinity;
            pCVar17->colFlags = pCVar17->colFlags | 4;
          }
        }
        if (iVar10 == 0) {
          pCVar17->affinity = 'A';
        }
        psVar22 = (sqlite3 *)pParse;
        puVar8 = (undefined4 *)(*pcVar5)();
        if ((puVar8 != (undefined4 *)0x0) && (pCVar17->zColl == (char *)0x0)) {
          pTVar19 = (Table *)*puVar8;
          psVar22 = psVar14;
          pcVar15 = (char *)(*pcVar7)();
          pCVar17->zColl = pcVar15;
        }
        iVar20 = iVar20 + 1;
        pCVar17 = pCVar17 + 1;
        pEVar21 = pEVar21 + 1;
      } while (iVar20 < pTab->nCol);
    }
    pTab->szTabRow = 1;
  }
  if (iVar13 == *(int *)puVar1) {
    return;
  }
  (*(code *)PTR___stack_chk_fail_0015ba10)();
  if (((uint)pTVar19->pIndex & 0x80) != 0) {
    return;
  }
  pTVar19->pIndex = (Index *)((uint)pTVar19->pIndex | 0x80);
  piVar23 = (int *)pTVar19->nTabRef;
  psVar22 = (sqlite3 *)psVar22->pVfs;
  iVar13 = *piVar23;
  piVar18 = piVar23 + 2;
  if (iVar13 < 1) {
    return;
  }
  iVar20 = 0;
  do {
    while ((((Table *)piVar18[4])->tabFlags & 2) == 0) {
LAB_00078fb0:
      iVar20 = iVar20 + 1;
      piVar18 = piVar18 + 0x12;
      if (iVar13 <= iVar20) {
        return;
      }
    }
    pSVar2 = (Select *)piVar18[5];
    if ((Select *)piVar18[5] != (Select *)0x0) {
      do {
        pSelect_00 = pSVar2;
        pSVar2 = pSelect_00->pPrior;
      } while (pSelect_00->pPrior != (Select *)0x0);
      sqlite3SelectAddColumnTypeAndCollation
                ((Parse *)psVar22,(Table *)piVar18[4],pSelect_00,(Select *)&pSelect_00->pSrc);
      iVar13 = *piVar23;
      goto LAB_00078fb0;
    }
    iVar20 = iVar20 + 1;
    piVar18 = piVar18 + 0x12;
    if (iVar13 <= iVar20) {
      return;
    }
  } while( true );
}



void FUN_00078cd0(int *param_1,int param_2,int *param_3,undefined4 *param_4)

{
  code *pcVar1;
  code *pcVar2;
  code *pcVar3;
  code *pcVar4;
  code *pcVar5;
  int *piVar6;
  int iVar7;
  uint uVar8;
  uint uVar9;
  int iVar10;
  int *piVar11;
  int *piVar12;
  uint uVar13;
  int *piVar14;
  int iVar15;
  int *piVar16;
  int iVar17;
  undefined *puVar18;
  undefined4 local_4c;
  undefined4 local_48;
  undefined4 local_44;
  undefined4 local_40;
  undefined4 local_3c;
  undefined4 local_38;
  undefined4 local_34;
  undefined4 local_30;
  int local_2c;
  
  puVar18 = PTR___stack_chk_guard_0015ba2c;
  piVar11 = (int *)*param_1;
  local_2c = *(int *)PTR___stack_chk_guard_0015ba2c;
  piVar12 = piVar11;
  iVar10 = param_2;
  if (*(char *)((int)piVar11 + 0x51) == '\0') {
    local_48 = *param_4;
    piVar14 = *(int **)(param_2 + 4);
    local_4c = 0;
    local_44 = 0;
    local_40 = 0;
    local_3c = 0;
    local_38 = 0;
    local_34 = 0;
    local_30 = 0;
    if (0 < *(short *)(param_2 + 0x2a)) {
      piVar16 = (int *)(*param_3 + 4);
      iVar17 = 0;
      pcVar1 = (code *)(PTR_LAB_0015b6c0 + 0x4814);
      pcVar2 = (code *)(PTR_LAB_0015b65c + 0x5914);
      pcVar3 = (code *)(PTR_LAB_0015b740 + 0x75dc);
      pcVar4 = (code *)(PTR_LAB_0015b700 + 0x7748);
      pcVar5 = (code *)(PTR_LAB_0015b6d8 + -0x23a0);
      do {
        iVar10 = *piVar16;
        iVar7 = (*pcVar1)(&local_4c,iVar10,0,0,0);
        iVar15 = (*pcVar2)(iVar10);
        *(char *)((int)piVar14 + 0xd) = (char)iVar15;
        if (iVar7 != 0) {
          uVar8 = (*(code *)PTR_strlen_0015b9c4)(iVar7);
          iVar15 = *piVar14;
          uVar8 = uVar8 & 0x3fffffff;
          if (iVar15 == 0) {
            uVar9 = 0;
            uVar13 = uVar8;
          }
          else {
            uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);
            uVar9 = uVar9 & 0x3fffffff;
            uVar13 = uVar8 + uVar9;
          }
          iVar15 = (*pcVar4)(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f);
          *piVar14 = iVar15;
          if (iVar15 == 0) {
            iVar15 = (int)*(char *)((int)piVar14 + 0xd);
          }
          else {
            (*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);
            iVar15 = (int)*(char *)((int)piVar14 + 0xd);
            *(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;
          }
        }
        if (iVar15 == 0) {
          *(undefined1 *)((int)piVar14 + 0xd) = 0x41;
        }
        piVar12 = param_1;
        piVar6 = (int *)(*pcVar3)();
        if ((piVar6 != (int *)0x0) && (piVar14[2] == 0)) {
          iVar10 = *piVar6;
          piVar12 = piVar11;
          iVar15 = (*pcVar5)();
          piVar14[2] = iVar15;
        }
        iVar17 = iVar17 + 1;
        piVar14 = piVar14 + 4;
        piVar16 = piVar16 + 5;
      } while (iVar17 < *(short *)(param_2 + 0x2a));
    }
    *(undefined2 *)(param_2 + 0x2e) = 1;
  }
  if (local_2c == *(int *)puVar18) {
    return;
  }
  puVar18 = PTR___stack_chk_fail_0015ba10;
  (*(code *)PTR___stack_chk_fail_0015ba10)();
  puVar18 = puVar18 + 0xea668;
  if ((*(uint *)(iVar10 + 8) & 0x80) != 0) {
    return;
  }
  *(uint *)(iVar10 + 8) = *(uint *)(iVar10 + 8) | 0x80;
  piVar11 = *(int **)(iVar10 + 0x20);
  iVar17 = *piVar12;
  iVar10 = *piVar11;
  piVar12 = piVar11 + 2;
  if (iVar10 < 1) {
    return;
  }
  iVar15 = 0;
  do {
    while ((*(uint *)(piVar12[4] + 0x24) & 2) == 0) {
LAB_00078fb0:
      iVar15 = iVar15 + 1;
      piVar12 = piVar12 + 0x12;
      if (iVar10 <= iVar15) {
        return;
      }
    }
    iVar7 = piVar12[5];
    if (piVar12[5] != 0) {
      do {
        iVar10 = iVar7;
        iVar7 = *(int *)(iVar10 + 0x34);
      } while (*(int *)(iVar10 + 0x34) != 0);
      FUN_00078cd0(iVar17,piVar12[4],iVar10,iVar10 + 0x20,puVar18);
      iVar10 = *piVar11;
      goto LAB_00078fb0;
    }
    iVar15 = iVar15 + 1;
    piVar12 = piVar12 + 0x12;
    if (iVar10 <= iVar15) {
      return;
    }
  } while( true );
}


lui gp,0xf
addiu gp,gp,-0x5720
addu gp,gp,t9
addiu sp,sp,-0x90
lw v0,-0x7b84(gp)
sw s7,0x84(sp)
or s7,a0,zero
sw gp,0x18(sp)
sw ra,0x8c(sp)
sw s8,0x88(sp)
sw s6,0x80(sp)
sw s5,0x7c(sp)
sw s4,0x78(sp)
sw s3,0x74(sp)
sw s2,0x70(sp)
sw s1,0x6c(sp)
sw s0,0x68(sp)
sw v0,0x38(sp)
lw a0,0x0(a0)
lw v1,0x0(v0)
sw a0,0x30(sp)
sw v1,0x64(sp)
lbu v0,0x51(a0)
beq v0,zero,0x00078d74
_addiu s8,sp,0x44
lw v0,0x38(sp)
lw v1,0x64(sp)
lw v0,0x0(v0)
bne v1,v0,0x00078f3c
_lw ra,0x8c(sp)
lw s8,0x88(sp)
lw s7,0x84(sp)
lw s6,0x80(sp)
lw s5,0x7c(sp)
lw s4,0x78(sp)
lw s3,0x74(sp)
lw s2,0x70(sp)
lw s1,0x6c(sp)
lw s0,0x68(sp)
jr ra
_addiu sp,sp,0x90
lw v1,0x0(a3)
lh v0,0x2a(a1)
or s6,a1,zero
lw s2,0x0(a2)
lw s0,0x4(a1)
sw zero,0x44(sp)
sw v1,0x48(sp)
sw zero,0x8(s8)
sw zero,0xc(s8)
sw zero,0x10(s8)
sw zero,0x14(s8)
sw zero,0x18(s8)
blez v0,0x00078f18
_sw zero,0x1c(s8)
lw v0,-0x7ef0(gp)
addiu s2,s2,0x4
or s3,zero,zero
addiu v0,v0,0x4814
sw v0,0x24(sp)
lw v0,-0x7f54(gp)
addiu v0,v0,0x5914
sw v0,0x2c(sp)
lw v0,-0x7e70(gp)
addiu v0,v0,0x75dc
sw v0,0x28(sp)
lw v0,-0x7eb0(gp)
addiu v0,v0,0x7748
sw v0,0x34(sp)
lw v0,-0x7ed8(gp)
addiu v0,v0,-0x23a0
b 0x00078e68
_sw v0,0x3c(sp)
addiu a0,v1,0x1
lw t9,-0x7b80(gp)
addiu a2,s5,0x1
addu a0,v0,a0
jalr t9
_or a1,s4,zero
lbu v1,0xf(s0)
lb v0,0xd(s0)
ori v1,v1,0x4
sb v1,0xf(s0)
bne v0,zero,0x00078e30
_lw t9,0x28(sp)
li v0,0x41
sb v0,0xd(s0)
lw t9,0x28(sp)
or a1,s1,zero
jalr t9
_or a0,s7,zero
beq v0,zero,0x00078e50
_lw gp,0x18(sp)
lw v1,0x8(s0)
beq v1,zero,0x00078f24
_lw t9,0x3c(sp)
lh v0,0x2a(s6)
addiu s3,s3,0x1
addiu s0,s0,0x10
slt v0,s3,v0
beq v0,zero,0x00078f18
_addiu s2,s2,0x14
lw s1,0x0(s2)
or a3,zero,zero
lw t9,0x24(sp)
or a2,zero,zero
or a0,s8,zero
sw zero,0x10(sp)
jalr t9
_or a1,s1,zero
or a0,s1,zero
lw t9,0x2c(sp)
jalr t9
_or s4,v0,zero
lw gp,0x18(sp)
beq s4,zero,0x00078e1c
_sb v0,0xd(s0)
lw t9,-0x7bec(gp)
jalr t9
_or a0,s4,zero
lw a1,0x0(s0)
ext s5,v0,0x0,0x1e
beq a1,zero,0x00078f0c
_lw gp,0x18(sp)
lw t9,-0x7bec(gp)
or a0,a1,zero
jalr t9
_sw a1,0x20(sp)
ext v1,v0,0x0,0x1e
lw a1,0x20(sp)
addu a3,s5,v1
addiu a3,a3,0x2
lw a0,0x30(sp)
lw t9,0x34(sp)
sra a2,a3,0x1f
jalr t9
_sw v1,0x20(sp)
lw gp,0x18(sp)
lw v1,0x20(sp)
bne v0,zero,0x00078df4
_sw v0,0x0(s0)
b 0x00078e1c
_lb v0,0xd(s0)
or v1,zero,zero
b 0x00078edc
_or a3,s5,zero
li v0,0x1
b 0x00078d34
_sh v0,0x2e(s6)
lw a1,0x0(v0)
jalr t9
_lw a0,0x30(sp)
lw gp,0x18(sp)
b 0x00078e50
_sw v0,0x8(s0)
lw t9,-0x7ba0(gp)
jalr t9
_nop
lui gp,0xf
addiu gp,gp,-0x5998
addu gp,gp,t9
lw v0,0x8(a1)
andi v1,v0,0x80
bne v1,zero,0x00079034
_nop
addiu sp,sp,-0x30
ori v0,v0,0x80
sw s0,0x18(sp)
sw gp,0x10(sp)
sw ra,0x2c(sp)
sw s4,0x28(sp)
sw s3,0x24(sp)
sw s2,0x20(sp)
sw s1,0x1c(sp)
sw v0,0x8(a1)
lw s4,0x20(a1)
lw s3,0x0(a0)
lw v1,0x0(s4)
blez v1,0x00078ff0
_addiu s0,s4,0x8
lw s2,-0x7e9c(gp)
or s1,zero,zero
b 0x00078fc0
_addiu s2,s2,-0x7330
addiu s1,s1,0x1
slt v0,s1,v1
beq v0,zero,0x00078ff0
_addiu s0,s0,0x48
lw a1,0x10(s0)
lw v0,0x24(a1)
andi v0,v0,0x2
beq v0,zero,0x00078fb0
_nop
lw a2,0x14(s0)
bne a2,zero,0x00079014
_nop
addiu s1,s1,0x1
slt v0,s1,v1
bne v0,zero,0x00078fc0
_addiu s0,s0,0x48
lw ra,0x2c(sp)
lw s4,0x28(sp)
lw s3,0x24(sp)
lw s2,0x20(sp)
lw s1,0x1c(sp)
lw s0,0x18(sp)
jr ra
_addiu sp,sp,0x30
or a2,v0,zero
lw v0,0x34(a2)
bne v0,zero,0x00079010
_addiu a3,a2,0x20
or t9,s2,zero
bal 0x00078cd0
_or a0,s3,zero
b 0x00078fb0
_lw v1,0x0(s4)
jr ra
_nop
(translation_unit "void FUN_00078cd0(int *param_1,int param_2,int *param_3,undefined4 *param_4)\n\n{\n  code *pcVar1;\n  code *pcVar2;\n  code *pcVar3;\n  code *pcVar4;\n  code *pcVar5;\n  int *piVar6;\n  int iVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  int *piVar11;\n  int *piVar12;\n  uint uVar13;\n  int *piVar14;\n  int iVar15;\n  int *piVar16;\n  int iVar17;\n  undefined *puVar18;\n  undefined4 local_4c;\n  undefined4 local_48;\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined4 local_3c;\n  undefined4 local_38;\n  undefined4 local_34;\n  undefined4 local_30;\n  int local_2c;\n  \n  puVar18 = PTR___stack_chk_guard_0015ba2c;\n  piVar11 = (int *)*param_1;\n  local_2c = *(int *)PTR___stack_chk_guard_0015ba2c;\n  piVar12 = piVar11;\n  iVar10 = param_2;\n  if (*(char *)((int)piVar11 + 0x51) == '\0') {\n    local_48 = *param_4;\n    piVar14 = *(int **)(param_2 + 4);\n    local_4c = 0;\n    local_44 = 0;\n    local_40 = 0;\n    local_3c = 0;\n    local_38 = 0;\n    local_34 = 0;\n    local_30 = 0;\n    if (0 < *(short *)(param_2 + 0x2a)) {\n      piVar16 = (int *)(*param_3 + 4);\n      iVar17 = 0;\n      pcVar1 = (code *)(PTR_LAB_0015b6c0 + 0x4814);\n      pcVar2 = (code *)(PTR_LAB_0015b65c + 0x5914);\n      pcVar3 = (code *)(PTR_LAB_0015b740 + 0x75dc);\n      pcVar4 = (code *)(PTR_LAB_0015b700 + 0x7748);\n      pcVar5 = (code *)(PTR_LAB_0015b6d8 + -0x23a0);\n      do {\n        iVar10 = *piVar16;\n        iVar7 = (*pcVar1)(&local_4c,iVar10,0,0,0);\n        iVar15 = (*pcVar2)(iVar10);\n        *(char *)((int)piVar14 + 0xd) = (char)iVar15;\n        if (iVar7 != 0) {\n          uVar8 = (*(code *)PTR_strlen_0015b9c4)(iVar7);\n          iVar15 = *piVar14;\n          uVar8 = uVar8 & 0x3fffffff;\n          if (iVar15 == 0) {\n            uVar9 = 0;\n            uVar13 = uVar8;\n          }\n          else {\n            uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);\n            uVar9 = uVar9 & 0x3fffffff;\n            uVar13 = uVar8 + uVar9;\n          }\n          iVar15 = (*pcVar4)(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f);\n          *piVar14 = iVar15;\n          if (iVar15 == 0) {\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n            *(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;\n          }\n        }\n        if (iVar15 == 0) {\n          *(undefined1 *)((int)piVar14 + 0xd) = 0x41;\n        }\n        piVar12 = param_1;\n        piVar6 = (int *)(*pcVar3)();\n        if ((piVar6 != (int *)0x0) && (piVar14[2] == 0)) {\n          iVar10 = *piVar6;\n          piVar12 = piVar11;\n          iVar15 = (*pcVar5)();\n          piVar14[2] = iVar15;\n        }\n        iVar17 = iVar17 + 1;\n        piVar14 = piVar14 + 4;\n        piVar16 = piVar16 + 5;\n      } while (iVar17 < *(short *)(param_2 + 0x2a));\n    }\n    *(undefined2 *)(param_2 + 0x2e) = 1;\n  }\n  if (local_2c == *(int *)puVar18) {\n    return;\n  }\n  puVar18 = PTR___stack_chk_fail_0015ba10;\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  puVar18 = puVar18 + 0xea668;\n  if ((*(uint *)(iVar10 + 8) & 0x80) != 0) {\n    return;\n  }\n  *(uint *)(iVar10 + 8) = *(uint *)(iVar10 + 8) | 0x80;\n  piVar11 = *(int **)(iVar10 + 0x20);\n  iVar17 = *piVar12;\n  iVar10 = *piVar11;\n  piVar12 = piVar11 + 2;\n  if (iVar10 < 1) {\n    return;\n  }\n  iVar15 = 0;\n  do {\n    while ((*(uint *)(piVar12[4] + 0x24) & 2) == 0) {\nLAB_00078fb0:\n      iVar15 = iVar15 + 1;\n      piVar12 = piVar12 + 0x12;\n      if (iVar10 <= iVar15) {\n        return;\n      }\n    }\n    iVar7 = piVar12[5];\n    if (piVar12[5] != 0) {\n      do {\n        iVar10 = iVar7;\n        iVar7 = *(int *)(iVar10 + 0x34);\n      } while (*(int *)(iVar10 + 0x34) != 0);\n      FUN_00078cd0(iVar17,piVar12[4],iVar10,iVar10 + 0x20,puVar18);\n      iVar10 = *piVar11;\n      goto LAB_00078fb0;\n    }\n    iVar15 = iVar15 + 1;\n    piVar12 = piVar12 + 0x12;\n    if (iVar10 <= iVar15) {\n      return;\n    }\n  } while( true );\n}\n\n" (function_definition "void FUN_00078cd0(int *param_1,int param_2,int *param_3,undefined4 *param_4)\n\n{\n  code *pcVar1;\n  code *pcVar2;\n  code *pcVar3;\n  code *pcVar4;\n  code *pcVar5;\n  int *piVar6;\n  int iVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  int *piVar11;\n  int *piVar12;\n  uint uVar13;\n  int *piVar14;\n  int iVar15;\n  int *piVar16;\n  int iVar17;\n  undefined *puVar18;\n  undefined4 local_4c;\n  undefined4 local_48;\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined4 local_3c;\n  undefined4 local_38;\n  undefined4 local_34;\n  undefined4 local_30;\n  int local_2c;\n  \n  puVar18 = PTR___stack_chk_guard_0015ba2c;\n  piVar11 = (int *)*param_1;\n  local_2c = *(int *)PTR___stack_chk_guard_0015ba2c;\n  piVar12 = piVar11;\n  iVar10 = param_2;\n  if (*(char *)((int)piVar11 + 0x51) == '\0') {\n    local_48 = *param_4;\n    piVar14 = *(int **)(param_2 + 4);\n    local_4c = 0;\n    local_44 = 0;\n    local_40 = 0;\n    local_3c = 0;\n    local_38 = 0;\n    local_34 = 0;\n    local_30 = 0;\n    if (0 < *(short *)(param_2 + 0x2a)) {\n      piVar16 = (int *)(*param_3 + 4);\n      iVar17 = 0;\n      pcVar1 = (code *)(PTR_LAB_0015b6c0 + 0x4814);\n      pcVar2 = (code *)(PTR_LAB_0015b65c + 0x5914);\n      pcVar3 = (code *)(PTR_LAB_0015b740 + 0x75dc);\n      pcVar4 = (code *)(PTR_LAB_0015b700 + 0x7748);\n      pcVar5 = (code *)(PTR_LAB_0015b6d8 + -0x23a0);\n      do {\n        iVar10 = *piVar16;\n        iVar7 = (*pcVar1)(&local_4c,iVar10,0,0,0);\n        iVar15 = (*pcVar2)(iVar10);\n        *(char *)((int)piVar14 + 0xd) = (char)iVar15;\n        if (iVar7 != 0) {\n          uVar8 = (*(code *)PTR_strlen_0015b9c4)(iVar7);\n          iVar15 = *piVar14;\n          uVar8 = uVar8 & 0x3fffffff;\n          if (iVar15 == 0) {\n            uVar9 = 0;\n            uVar13 = uVar8;\n          }\n          else {\n            uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);\n            uVar9 = uVar9 & 0x3fffffff;\n            uVar13 = uVar8 + uVar9;\n          }\n          iVar15 = (*pcVar4)(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f);\n          *piVar14 = iVar15;\n          if (iVar15 == 0) {\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n            *(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;\n          }\n        }\n        if (iVar15 == 0) {\n          *(undefined1 *)((int)piVar14 + 0xd) = 0x41;\n        }\n        piVar12 = param_1;\n        piVar6 = (int *)(*pcVar3)();\n        if ((piVar6 != (int *)0x0) && (piVar14[2] == 0)) {\n          iVar10 = *piVar6;\n          piVar12 = piVar11;\n          iVar15 = (*pcVar5)();\n          piVar14[2] = iVar15;\n        }\n        iVar17 = iVar17 + 1;\n        piVar14 = piVar14 + 4;\n        piVar16 = piVar16 + 5;\n      } while (iVar17 < *(short *)(param_2 + 0x2a));\n    }\n    *(undefined2 *)(param_2 + 0x2e) = 1;\n  }\n  if (local_2c == *(int *)puVar18) {\n    return;\n  }\n  puVar18 = PTR___stack_chk_fail_0015ba10;\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  puVar18 = puVar18 + 0xea668;\n  if ((*(uint *)(iVar10 + 8) & 0x80) != 0) {\n    return;\n  }\n  *(uint *)(iVar10 + 8) = *(uint *)(iVar10 + 8) | 0x80;\n  piVar11 = *(int **)(iVar10 + 0x20);\n  iVar17 = *piVar12;\n  iVar10 = *piVar11;\n  piVar12 = piVar11 + 2;\n  if (iVar10 < 1) {\n    return;\n  }\n  iVar15 = 0;\n  do {\n    while ((*(uint *)(piVar12[4] + 0x24) & 2) == 0) {\nLAB_00078fb0:\n      iVar15 = iVar15 + 1;\n      piVar12 = piVar12 + 0x12;\n      if (iVar10 <= iVar15) {\n        return;\n      }\n    }\n    iVar7 = piVar12[5];\n    if (piVar12[5] != 0) {\n      do {\n        iVar10 = iVar7;\n        iVar7 = *(int *)(iVar10 + 0x34);\n      } while (*(int *)(iVar10 + 0x34) != 0);\n      FUN_00078cd0(iVar17,piVar12[4],iVar10,iVar10 + 0x20,puVar18);\n      iVar10 = *piVar11;\n      goto LAB_00078fb0;\n    }\n    iVar15 = iVar15 + 1;\n    piVar12 = piVar12 + 0x12;\n    if (iVar10 <= iVar15) {\n      return;\n    }\n  } while( true );\n}" primitive_type (function_declarator "FUN_00078cd0(int *param_1,int param_2,int *param_3,undefined4 *param_4)" identifier (parameter_list "(int *param_1,int param_2,int *param_3,undefined4 *param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  code *pcVar1;\n  code *pcVar2;\n  code *pcVar3;\n  code *pcVar4;\n  code *pcVar5;\n  int *piVar6;\n  int iVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  int *piVar11;\n  int *piVar12;\n  uint uVar13;\n  int *piVar14;\n  int iVar15;\n  int *piVar16;\n  int iVar17;\n  undefined *puVar18;\n  undefined4 local_4c;\n  undefined4 local_48;\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined4 local_3c;\n  undefined4 local_38;\n  undefined4 local_34;\n  undefined4 local_30;\n  int local_2c;\n  \n  puVar18 = PTR___stack_chk_guard_0015ba2c;\n  piVar11 = (int *)*param_1;\n  local_2c = *(int *)PTR___stack_chk_guard_0015ba2c;\n  piVar12 = piVar11;\n  iVar10 = param_2;\n  if (*(char *)((int)piVar11 + 0x51) == '\0') {\n    local_48 = *param_4;\n    piVar14 = *(int **)(param_2 + 4);\n    local_4c = 0;\n    local_44 = 0;\n    local_40 = 0;\n    local_3c = 0;\n    local_38 = 0;\n    local_34 = 0;\n    local_30 = 0;\n    if (0 < *(short *)(param_2 + 0x2a)) {\n      piVar16 = (int *)(*param_3 + 4);\n      iVar17 = 0;\n      pcVar1 = (code *)(PTR_LAB_0015b6c0 + 0x4814);\n      pcVar2 = (code *)(PTR_LAB_0015b65c + 0x5914);\n      pcVar3 = (code *)(PTR_LAB_0015b740 + 0x75dc);\n      pcVar4 = (code *)(PTR_LAB_0015b700 + 0x7748);\n      pcVar5 = (code *)(PTR_LAB_0015b6d8 + -0x23a0);\n      do {\n        iVar10 = *piVar16;\n        iVar7 = (*pcVar1)(&local_4c,iVar10,0,0,0);\n        iVar15 = (*pcVar2)(iVar10);\n        *(char *)((int)piVar14 + 0xd) = (char)iVar15;\n        if (iVar7 != 0) {\n          uVar8 = (*(code *)PTR_strlen_0015b9c4)(iVar7);\n          iVar15 = *piVar14;\n          uVar8 = uVar8 & 0x3fffffff;\n          if (iVar15 == 0) {\n            uVar9 = 0;\n            uVar13 = uVar8;\n          }\n          else {\n            uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);\n            uVar9 = uVar9 & 0x3fffffff;\n            uVar13 = uVar8 + uVar9;\n          }\n          iVar15 = (*pcVar4)(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f);\n          *piVar14 = iVar15;\n          if (iVar15 == 0) {\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n            *(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;\n          }\n        }\n        if (iVar15 == 0) {\n          *(undefined1 *)((int)piVar14 + 0xd) = 0x41;\n        }\n        piVar12 = param_1;\n        piVar6 = (int *)(*pcVar3)();\n        if ((piVar6 != (int *)0x0) && (piVar14[2] == 0)) {\n          iVar10 = *piVar6;\n          piVar12 = piVar11;\n          iVar15 = (*pcVar5)();\n          piVar14[2] = iVar15;\n        }\n        iVar17 = iVar17 + 1;\n        piVar14 = piVar14 + 4;\n        piVar16 = piVar16 + 5;\n      } while (iVar17 < *(short *)(param_2 + 0x2a));\n    }\n    *(undefined2 *)(param_2 + 0x2e) = 1;\n  }\n  if (local_2c == *(int *)puVar18) {\n    return;\n  }\n  puVar18 = PTR___stack_chk_fail_0015ba10;\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  puVar18 = puVar18 + 0xea668;\n  if ((*(uint *)(iVar10 + 8) & 0x80) != 0) {\n    return;\n  }\n  *(uint *)(iVar10 + 8) = *(uint *)(iVar10 + 8) | 0x80;\n  piVar11 = *(int **)(iVar10 + 0x20);\n  iVar17 = *piVar12;\n  iVar10 = *piVar11;\n  piVar12 = piVar11 + 2;\n  if (iVar10 < 1) {\n    return;\n  }\n  iVar15 = 0;\n  do {\n    while ((*(uint *)(piVar12[4] + 0x24) & 2) == 0) {\nLAB_00078fb0:\n      iVar15 = iVar15 + 1;\n      piVar12 = piVar12 + 0x12;\n      if (iVar10 <= iVar15) {\n        return;\n      }\n    }\n    iVar7 = piVar12[5];\n    if (piVar12[5] != 0) {\n      do {\n        iVar10 = iVar7;\n        iVar7 = *(int *)(iVar10 + 0x34);\n      } while (*(int *)(iVar10 + 0x34) != 0);\n      FUN_00078cd0(iVar17,piVar12[4],iVar10,iVar10 + 0x20,puVar18);\n      iVar10 = *piVar11;\n      goto LAB_00078fb0;\n    }\n    iVar15 = iVar15 + 1;\n    piVar12 = piVar12 + 0x12;\n    if (iVar10 <= iVar15) {\n      return;\n    }\n  } while( true );\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "code *pcVar2;" type_identifier (pointer_declarator "*pcVar2" * identifier) ;) (declaration "code *pcVar3;" type_identifier (pointer_declarator "*pcVar3" * identifier) ;) (declaration "code *pcVar4;" type_identifier (pointer_declarator "*pcVar4" * identifier) ;) (declaration "code *pcVar5;" type_identifier (pointer_declarator "*pcVar5" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "int *piVar11;" primitive_type (pointer_declarator "*piVar11" * identifier) ;) (declaration "int *piVar12;" primitive_type (pointer_declarator "*piVar12" * identifier) ;) (declaration "uint uVar13;" type_identifier identifier ;) (declaration "int *piVar14;" primitive_type (pointer_declarator "*piVar14" * identifier) ;) (declaration "int iVar15;" primitive_type identifier ;) (declaration "int *piVar16;" primitive_type (pointer_declarator "*piVar16" * identifier) ;) (declaration "int iVar17;" primitive_type identifier ;) (declaration "undefined *puVar18;" type_identifier (pointer_declarator "*puVar18" * identifier) ;) (declaration "undefined4 local_4c;" type_identifier identifier ;) (declaration "undefined4 local_48;" type_identifier identifier ;) (declaration "undefined4 local_44;" type_identifier identifier ;) (declaration "undefined4 local_40;" type_identifier identifier ;) (declaration "undefined4 local_3c;" type_identifier identifier ;) (declaration "undefined4 local_38;" type_identifier identifier ;) (declaration "undefined4 local_34;" type_identifier identifier ;) (declaration "undefined4 local_30;" type_identifier identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar18 = PTR___stack_chk_guard_0015ba2c;" (assignment_expression "puVar18 = PTR___stack_chk_guard_0015ba2c" identifier = identifier) ;) (expression_statement "piVar11 = (int *)*param_1;" (assignment_expression "piVar11 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_0015ba2c;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_0015ba2c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0015ba2c" * (cast_expression "(int *)PTR___stack_chk_guard_0015ba2c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "piVar12 = piVar11;" (assignment_expression "piVar12 = piVar11" identifier = identifier) ;) (expression_statement "iVar10 = param_2;" (assignment_expression "iVar10 = param_2" identifier = identifier) ;) (if_statement "if (*(char *)((int)piVar11 + 0x51) == '\0') {\n    local_48 = *param_4;\n    piVar14 = *(int **)(param_2 + 4);\n    local_4c = 0;\n    local_44 = 0;\n    local_40 = 0;\n    local_3c = 0;\n    local_38 = 0;\n    local_34 = 0;\n    local_30 = 0;\n    if (0 < *(short *)(param_2 + 0x2a)) {\n      piVar16 = (int *)(*param_3 + 4);\n      iVar17 = 0;\n      pcVar1 = (code *)(PTR_LAB_0015b6c0 + 0x4814);\n      pcVar2 = (code *)(PTR_LAB_0015b65c + 0x5914);\n      pcVar3 = (code *)(PTR_LAB_0015b740 + 0x75dc);\n      pcVar4 = (code *)(PTR_LAB_0015b700 + 0x7748);\n      pcVar5 = (code *)(PTR_LAB_0015b6d8 + -0x23a0);\n      do {\n        iVar10 = *piVar16;\n        iVar7 = (*pcVar1)(&local_4c,iVar10,0,0,0);\n        iVar15 = (*pcVar2)(iVar10);\n        *(char *)((int)piVar14 + 0xd) = (char)iVar15;\n        if (iVar7 != 0) {\n          uVar8 = (*(code *)PTR_strlen_0015b9c4)(iVar7);\n          iVar15 = *piVar14;\n          uVar8 = uVar8 & 0x3fffffff;\n          if (iVar15 == 0) {\n            uVar9 = 0;\n            uVar13 = uVar8;\n          }\n          else {\n            uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);\n            uVar9 = uVar9 & 0x3fffffff;\n            uVar13 = uVar8 + uVar9;\n          }\n          iVar15 = (*pcVar4)(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f);\n          *piVar14 = iVar15;\n          if (iVar15 == 0) {\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n            *(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;\n          }\n        }\n        if (iVar15 == 0) {\n          *(undefined1 *)((int)piVar14 + 0xd) = 0x41;\n        }\n        piVar12 = param_1;\n        piVar6 = (int *)(*pcVar3)();\n        if ((piVar6 != (int *)0x0) && (piVar14[2] == 0)) {\n          iVar10 = *piVar6;\n          piVar12 = piVar11;\n          iVar15 = (*pcVar5)();\n          piVar14[2] = iVar15;\n        }\n        iVar17 = iVar17 + 1;\n        piVar14 = piVar14 + 4;\n        piVar16 = piVar16 + 5;\n      } while (iVar17 < *(short *)(param_2 + 0x2a));\n    }\n    *(undefined2 *)(param_2 + 0x2e) = 1;\n  }" if (parenthesized_expression "(*(char *)((int)piVar11 + 0x51) == '\0')" ( (binary_expression "*(char *)((int)piVar11 + 0x51) == '\0'" (pointer_expression "*(char *)((int)piVar11 + 0x51)" * (cast_expression "(char *)((int)piVar11 + 0x51)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar11 + 0x51)" ( (binary_expression "(int)piVar11 + 0x51" (cast_expression "(int)piVar11" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    local_48 = *param_4;\n    piVar14 = *(int **)(param_2 + 4);\n    local_4c = 0;\n    local_44 = 0;\n    local_40 = 0;\n    local_3c = 0;\n    local_38 = 0;\n    local_34 = 0;\n    local_30 = 0;\n    if (0 < *(short *)(param_2 + 0x2a)) {\n      piVar16 = (int *)(*param_3 + 4);\n      iVar17 = 0;\n      pcVar1 = (code *)(PTR_LAB_0015b6c0 + 0x4814);\n      pcVar2 = (code *)(PTR_LAB_0015b65c + 0x5914);\n      pcVar3 = (code *)(PTR_LAB_0015b740 + 0x75dc);\n      pcVar4 = (code *)(PTR_LAB_0015b700 + 0x7748);\n      pcVar5 = (code *)(PTR_LAB_0015b6d8 + -0x23a0);\n      do {\n        iVar10 = *piVar16;\n        iVar7 = (*pcVar1)(&local_4c,iVar10,0,0,0);\n        iVar15 = (*pcVar2)(iVar10);\n        *(char *)((int)piVar14 + 0xd) = (char)iVar15;\n        if (iVar7 != 0) {\n          uVar8 = (*(code *)PTR_strlen_0015b9c4)(iVar7);\n          iVar15 = *piVar14;\n          uVar8 = uVar8 & 0x3fffffff;\n          if (iVar15 == 0) {\n            uVar9 = 0;\n            uVar13 = uVar8;\n          }\n          else {\n            uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);\n            uVar9 = uVar9 & 0x3fffffff;\n            uVar13 = uVar8 + uVar9;\n          }\n          iVar15 = (*pcVar4)(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f);\n          *piVar14 = iVar15;\n          if (iVar15 == 0) {\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n            *(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;\n          }\n        }\n        if (iVar15 == 0) {\n          *(undefined1 *)((int)piVar14 + 0xd) = 0x41;\n        }\n        piVar12 = param_1;\n        piVar6 = (int *)(*pcVar3)();\n        if ((piVar6 != (int *)0x0) && (piVar14[2] == 0)) {\n          iVar10 = *piVar6;\n          piVar12 = piVar11;\n          iVar15 = (*pcVar5)();\n          piVar14[2] = iVar15;\n        }\n        iVar17 = iVar17 + 1;\n        piVar14 = piVar14 + 4;\n        piVar16 = piVar16 + 5;\n      } while (iVar17 < *(short *)(param_2 + 0x2a));\n    }\n    *(undefined2 *)(param_2 + 0x2e) = 1;\n  }" { (expression_statement "local_48 = *param_4;" (assignment_expression "local_48 = *param_4" identifier = (pointer_expression "*param_4" * identifier)) ;) (expression_statement "piVar14 = *(int **)(param_2 + 4);" (assignment_expression "piVar14 = *(int **)(param_2 + 4)" identifier = (pointer_expression "*(int **)(param_2 + 4)" * (cast_expression "(int **)(param_2 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (expression_statement "local_4c = 0;" (assignment_expression "local_4c = 0" identifier = number_literal) ;) (expression_statement "local_44 = 0;" (assignment_expression "local_44 = 0" identifier = number_literal) ;) (expression_statement "local_40 = 0;" (assignment_expression "local_40 = 0" identifier = number_literal) ;) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" identifier = number_literal) ;) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (if_statement "if (0 < *(short *)(param_2 + 0x2a)) {\n      piVar16 = (int *)(*param_3 + 4);\n      iVar17 = 0;\n      pcVar1 = (code *)(PTR_LAB_0015b6c0 + 0x4814);\n      pcVar2 = (code *)(PTR_LAB_0015b65c + 0x5914);\n      pcVar3 = (code *)(PTR_LAB_0015b740 + 0x75dc);\n      pcVar4 = (code *)(PTR_LAB_0015b700 + 0x7748);\n      pcVar5 = (code *)(PTR_LAB_0015b6d8 + -0x23a0);\n      do {\n        iVar10 = *piVar16;\n        iVar7 = (*pcVar1)(&local_4c,iVar10,0,0,0);\n        iVar15 = (*pcVar2)(iVar10);\n        *(char *)((int)piVar14 + 0xd) = (char)iVar15;\n        if (iVar7 != 0) {\n          uVar8 = (*(code *)PTR_strlen_0015b9c4)(iVar7);\n          iVar15 = *piVar14;\n          uVar8 = uVar8 & 0x3fffffff;\n          if (iVar15 == 0) {\n            uVar9 = 0;\n            uVar13 = uVar8;\n          }\n          else {\n            uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);\n            uVar9 = uVar9 & 0x3fffffff;\n            uVar13 = uVar8 + uVar9;\n          }\n          iVar15 = (*pcVar4)(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f);\n          *piVar14 = iVar15;\n          if (iVar15 == 0) {\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n            *(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;\n          }\n        }\n        if (iVar15 == 0) {\n          *(undefined1 *)((int)piVar14 + 0xd) = 0x41;\n        }\n        piVar12 = param_1;\n        piVar6 = (int *)(*pcVar3)();\n        if ((piVar6 != (int *)0x0) && (piVar14[2] == 0)) {\n          iVar10 = *piVar6;\n          piVar12 = piVar11;\n          iVar15 = (*pcVar5)();\n          piVar14[2] = iVar15;\n        }\n        iVar17 = iVar17 + 1;\n        piVar14 = piVar14 + 4;\n        piVar16 = piVar16 + 5;\n      } while (iVar17 < *(short *)(param_2 + 0x2a));\n    }" if (parenthesized_expression "(0 < *(short *)(param_2 + 0x2a))" ( (binary_expression "0 < *(short *)(param_2 + 0x2a)" number_literal < (pointer_expression "*(short *)(param_2 + 0x2a)" * (cast_expression "(short *)(param_2 + 0x2a)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2a)" ( (binary_expression "param_2 + 0x2a" identifier + number_literal) ))))) )) (compound_statement "{\n      piVar16 = (int *)(*param_3 + 4);\n      iVar17 = 0;\n      pcVar1 = (code *)(PTR_LAB_0015b6c0 + 0x4814);\n      pcVar2 = (code *)(PTR_LAB_0015b65c + 0x5914);\n      pcVar3 = (code *)(PTR_LAB_0015b740 + 0x75dc);\n      pcVar4 = (code *)(PTR_LAB_0015b700 + 0x7748);\n      pcVar5 = (code *)(PTR_LAB_0015b6d8 + -0x23a0);\n      do {\n        iVar10 = *piVar16;\n        iVar7 = (*pcVar1)(&local_4c,iVar10,0,0,0);\n        iVar15 = (*pcVar2)(iVar10);\n        *(char *)((int)piVar14 + 0xd) = (char)iVar15;\n        if (iVar7 != 0) {\n          uVar8 = (*(code *)PTR_strlen_0015b9c4)(iVar7);\n          iVar15 = *piVar14;\n          uVar8 = uVar8 & 0x3fffffff;\n          if (iVar15 == 0) {\n            uVar9 = 0;\n            uVar13 = uVar8;\n          }\n          else {\n            uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);\n            uVar9 = uVar9 & 0x3fffffff;\n            uVar13 = uVar8 + uVar9;\n          }\n          iVar15 = (*pcVar4)(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f);\n          *piVar14 = iVar15;\n          if (iVar15 == 0) {\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n            *(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;\n          }\n        }\n        if (iVar15 == 0) {\n          *(undefined1 *)((int)piVar14 + 0xd) = 0x41;\n        }\n        piVar12 = param_1;\n        piVar6 = (int *)(*pcVar3)();\n        if ((piVar6 != (int *)0x0) && (piVar14[2] == 0)) {\n          iVar10 = *piVar6;\n          piVar12 = piVar11;\n          iVar15 = (*pcVar5)();\n          piVar14[2] = iVar15;\n        }\n        iVar17 = iVar17 + 1;\n        piVar14 = piVar14 + 4;\n        piVar16 = piVar16 + 5;\n      } while (iVar17 < *(short *)(param_2 + 0x2a));\n    }" { (expression_statement "piVar16 = (int *)(*param_3 + 4);" (assignment_expression "piVar16 = (int *)(*param_3 + 4)" identifier = (cast_expression "(int *)(*param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_3 + 4)" ( (binary_expression "*param_3 + 4" (pointer_expression "*param_3" * identifier) + number_literal) )))) ;) (expression_statement "iVar17 = 0;" (assignment_expression "iVar17 = 0" identifier = number_literal) ;) (expression_statement "pcVar1 = (code *)(PTR_LAB_0015b6c0 + 0x4814);" (assignment_expression "pcVar1 = (code *)(PTR_LAB_0015b6c0 + 0x4814)" identifier = (cast_expression "(code *)(PTR_LAB_0015b6c0 + 0x4814)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b6c0 + 0x4814)" ( (binary_expression "PTR_LAB_0015b6c0 + 0x4814" identifier + number_literal) )))) ;) (expression_statement "pcVar2 = (code *)(PTR_LAB_0015b65c + 0x5914);" (assignment_expression "pcVar2 = (code *)(PTR_LAB_0015b65c + 0x5914)" identifier = (cast_expression "(code *)(PTR_LAB_0015b65c + 0x5914)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b65c + 0x5914)" ( (binary_expression "PTR_LAB_0015b65c + 0x5914" identifier + number_literal) )))) ;) (expression_statement "pcVar3 = (code *)(PTR_LAB_0015b740 + 0x75dc);" (assignment_expression "pcVar3 = (code *)(PTR_LAB_0015b740 + 0x75dc)" identifier = (cast_expression "(code *)(PTR_LAB_0015b740 + 0x75dc)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b740 + 0x75dc)" ( (binary_expression "PTR_LAB_0015b740 + 0x75dc" identifier + number_literal) )))) ;) (expression_statement "pcVar4 = (code *)(PTR_LAB_0015b700 + 0x7748);" (assignment_expression "pcVar4 = (code *)(PTR_LAB_0015b700 + 0x7748)" identifier = (cast_expression "(code *)(PTR_LAB_0015b700 + 0x7748)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b700 + 0x7748)" ( (binary_expression "PTR_LAB_0015b700 + 0x7748" identifier + number_literal) )))) ;) (expression_statement "pcVar5 = (code *)(PTR_LAB_0015b6d8 + -0x23a0);" (assignment_expression "pcVar5 = (code *)(PTR_LAB_0015b6d8 + -0x23a0)" identifier = (cast_expression "(code *)(PTR_LAB_0015b6d8 + -0x23a0)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b6d8 + -0x23a0)" ( (binary_expression "PTR_LAB_0015b6d8 + -0x23a0" identifier + number_literal) )))) ;) (do_statement "do {\n        iVar10 = *piVar16;\n        iVar7 = (*pcVar1)(&local_4c,iVar10,0,0,0);\n        iVar15 = (*pcVar2)(iVar10);\n        *(char *)((int)piVar14 + 0xd) = (char)iVar15;\n        if (iVar7 != 0) {\n          uVar8 = (*(code *)PTR_strlen_0015b9c4)(iVar7);\n          iVar15 = *piVar14;\n          uVar8 = uVar8 & 0x3fffffff;\n          if (iVar15 == 0) {\n            uVar9 = 0;\n            uVar13 = uVar8;\n          }\n          else {\n            uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);\n            uVar9 = uVar9 & 0x3fffffff;\n            uVar13 = uVar8 + uVar9;\n          }\n          iVar15 = (*pcVar4)(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f);\n          *piVar14 = iVar15;\n          if (iVar15 == 0) {\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n            *(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;\n          }\n        }\n        if (iVar15 == 0) {\n          *(undefined1 *)((int)piVar14 + 0xd) = 0x41;\n        }\n        piVar12 = param_1;\n        piVar6 = (int *)(*pcVar3)();\n        if ((piVar6 != (int *)0x0) && (piVar14[2] == 0)) {\n          iVar10 = *piVar6;\n          piVar12 = piVar11;\n          iVar15 = (*pcVar5)();\n          piVar14[2] = iVar15;\n        }\n        iVar17 = iVar17 + 1;\n        piVar14 = piVar14 + 4;\n        piVar16 = piVar16 + 5;\n      } while (iVar17 < *(short *)(param_2 + 0x2a));" do (compound_statement "{\n        iVar10 = *piVar16;\n        iVar7 = (*pcVar1)(&local_4c,iVar10,0,0,0);\n        iVar15 = (*pcVar2)(iVar10);\n        *(char *)((int)piVar14 + 0xd) = (char)iVar15;\n        if (iVar7 != 0) {\n          uVar8 = (*(code *)PTR_strlen_0015b9c4)(iVar7);\n          iVar15 = *piVar14;\n          uVar8 = uVar8 & 0x3fffffff;\n          if (iVar15 == 0) {\n            uVar9 = 0;\n            uVar13 = uVar8;\n          }\n          else {\n            uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);\n            uVar9 = uVar9 & 0x3fffffff;\n            uVar13 = uVar8 + uVar9;\n          }\n          iVar15 = (*pcVar4)(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f);\n          *piVar14 = iVar15;\n          if (iVar15 == 0) {\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n            *(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;\n          }\n        }\n        if (iVar15 == 0) {\n          *(undefined1 *)((int)piVar14 + 0xd) = 0x41;\n        }\n        piVar12 = param_1;\n        piVar6 = (int *)(*pcVar3)();\n        if ((piVar6 != (int *)0x0) && (piVar14[2] == 0)) {\n          iVar10 = *piVar6;\n          piVar12 = piVar11;\n          iVar15 = (*pcVar5)();\n          piVar14[2] = iVar15;\n        }\n        iVar17 = iVar17 + 1;\n        piVar14 = piVar14 + 4;\n        piVar16 = piVar16 + 5;\n      }" { (expression_statement "iVar10 = *piVar16;" (assignment_expression "iVar10 = *piVar16" identifier = (pointer_expression "*piVar16" * identifier)) ;) (expression_statement "iVar7 = (*pcVar1)(&local_4c,iVar10,0,0,0);" (assignment_expression "iVar7 = (*pcVar1)(&local_4c,iVar10,0,0,0)" identifier = (call_expression "(*pcVar1)(&local_4c,iVar10,0,0,0)" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "(&local_4c,iVar10,0,0,0)" ( (pointer_expression "&local_4c" & identifier) , identifier , number_literal , number_literal , number_literal )))) ;) (expression_statement "iVar15 = (*pcVar2)(iVar10);" (assignment_expression "iVar15 = (*pcVar2)(iVar10)" identifier = (call_expression "(*pcVar2)(iVar10)" (parenthesized_expression "(*pcVar2)" ( (pointer_expression "*pcVar2" * identifier) )) (argument_list "(iVar10)" ( identifier )))) ;) (expression_statement "*(char *)((int)piVar14 + 0xd) = (char)iVar15;" (assignment_expression "*(char *)((int)piVar14 + 0xd) = (char)iVar15" (pointer_expression "*(char *)((int)piVar14 + 0xd)" * (cast_expression "(char *)((int)piVar14 + 0xd)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar14 + 0xd)" ( (binary_expression "(int)piVar14 + 0xd" (cast_expression "(int)piVar14" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (cast_expression "(char)iVar15" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (if_statement "if (iVar7 != 0) {\n          uVar8 = (*(code *)PTR_strlen_0015b9c4)(iVar7);\n          iVar15 = *piVar14;\n          uVar8 = uVar8 & 0x3fffffff;\n          if (iVar15 == 0) {\n            uVar9 = 0;\n            uVar13 = uVar8;\n          }\n          else {\n            uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);\n            uVar9 = uVar9 & 0x3fffffff;\n            uVar13 = uVar8 + uVar9;\n          }\n          iVar15 = (*pcVar4)(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f);\n          *piVar14 = iVar15;\n          if (iVar15 == 0) {\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n            *(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;\n          }\n        }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n          uVar8 = (*(code *)PTR_strlen_0015b9c4)(iVar7);\n          iVar15 = *piVar14;\n          uVar8 = uVar8 & 0x3fffffff;\n          if (iVar15 == 0) {\n            uVar9 = 0;\n            uVar13 = uVar8;\n          }\n          else {\n            uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);\n            uVar9 = uVar9 & 0x3fffffff;\n            uVar13 = uVar8 + uVar9;\n          }\n          iVar15 = (*pcVar4)(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f);\n          *piVar14 = iVar15;\n          if (iVar15 == 0) {\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n            *(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;\n          }\n        }" { (expression_statement "uVar8 = (*(code *)PTR_strlen_0015b9c4)(iVar7);" (assignment_expression "uVar8 = (*(code *)PTR_strlen_0015b9c4)(iVar7)" identifier = (call_expression "(*(code *)PTR_strlen_0015b9c4)(iVar7)" (parenthesized_expression "(*(code *)PTR_strlen_0015b9c4)" ( (pointer_expression "*(code *)PTR_strlen_0015b9c4" * (cast_expression "(code *)PTR_strlen_0015b9c4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7)" ( identifier )))) ;) (expression_statement "iVar15 = *piVar14;" (assignment_expression "iVar15 = *piVar14" identifier = (pointer_expression "*piVar14" * identifier)) ;) (expression_statement "uVar8 = uVar8 & 0x3fffffff;" (assignment_expression "uVar8 = uVar8 & 0x3fffffff" identifier = (binary_expression "uVar8 & 0x3fffffff" identifier & number_literal)) ;) (if_statement "if (iVar15 == 0) {\n            uVar9 = 0;\n            uVar13 = uVar8;\n          }\n          else {\n            uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);\n            uVar9 = uVar9 & 0x3fffffff;\n            uVar13 = uVar8 + uVar9;\n          }" if (parenthesized_expression "(iVar15 == 0)" ( (binary_expression "iVar15 == 0" identifier == number_literal) )) (compound_statement "{\n            uVar9 = 0;\n            uVar13 = uVar8;\n          }" { (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (expression_statement "uVar13 = uVar8;" (assignment_expression "uVar13 = uVar8" identifier = identifier) ;) }) (else_clause "else {\n            uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);\n            uVar9 = uVar9 & 0x3fffffff;\n            uVar13 = uVar8 + uVar9;\n          }" else (compound_statement "{\n            uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);\n            uVar9 = uVar9 & 0x3fffffff;\n            uVar13 = uVar8 + uVar9;\n          }" { (expression_statement "uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);" (assignment_expression "uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15)" identifier = (call_expression "(*(code *)PTR_strlen_0015b9c4)(iVar15)" (parenthesized_expression "(*(code *)PTR_strlen_0015b9c4)" ( (pointer_expression "*(code *)PTR_strlen_0015b9c4" * (cast_expression "(code *)PTR_strlen_0015b9c4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar15)" ( identifier )))) ;) (expression_statement "uVar9 = uVar9 & 0x3fffffff;" (assignment_expression "uVar9 = uVar9 & 0x3fffffff" identifier = (binary_expression "uVar9 & 0x3fffffff" identifier & number_literal)) ;) (expression_statement "uVar13 = uVar8 + uVar9;" (assignment_expression "uVar13 = uVar8 + uVar9" identifier = (binary_expression "uVar8 + uVar9" identifier + identifier)) ;) }))) (expression_statement "iVar15 = (*pcVar4)(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f);" (assignment_expression "iVar15 = (*pcVar4)(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f)" identifier = (call_expression "(*pcVar4)(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f)" (parenthesized_expression "(*pcVar4)" ( (pointer_expression "*pcVar4" * identifier) )) (argument_list "(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f)" ( identifier , identifier , (binary_expression "(int)(uVar13 + 2) >> 0x1f" (cast_expression "(int)(uVar13 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar13 + 2)" ( (binary_expression "uVar13 + 2" identifier + number_literal) ))) >> number_literal) )))) ;) (expression_statement "*piVar14 = iVar15;" (assignment_expression "*piVar14 = iVar15" (pointer_expression "*piVar14" * identifier) = identifier) ;) (if_statement "if (iVar15 == 0) {\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n            *(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;\n          }" if (parenthesized_expression "(iVar15 == 0)" ( (binary_expression "iVar15 == 0" identifier == number_literal) )) (compound_statement "{\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n          }" { (expression_statement "iVar15 = (int)*(char *)((int)piVar14 + 0xd);" (assignment_expression "iVar15 = (int)*(char *)((int)piVar14 + 0xd)" identifier = (cast_expression "(int)*(char *)((int)piVar14 + 0xd)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(char *)((int)piVar14 + 0xd)" * (cast_expression "(char *)((int)piVar14 + 0xd)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar14 + 0xd)" ( (binary_expression "(int)piVar14 + 0xd" (cast_expression "(int)piVar14" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))))) ;) }) (else_clause "else {\n            (*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n            *(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;\n          }" else (compound_statement "{\n            (*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n            *(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;\n          }" { (expression_statement "(*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);" (call_expression "(*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1)" (parenthesized_expression "(*(code *)PTR_memcpy_0015ba30)" ( (pointer_expression "*(code *)PTR_memcpy_0015ba30" * (cast_expression "(code *)PTR_memcpy_0015ba30" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar15 + uVar9 + 1,iVar7,uVar8 + 1)" ( (binary_expression "iVar15 + uVar9 + 1" (binary_expression "iVar15 + uVar9" identifier + identifier) + number_literal) , identifier , (binary_expression "uVar8 + 1" identifier + number_literal) ))) ;) (expression_statement "iVar15 = (int)*(char *)((int)piVar14 + 0xd);" (assignment_expression "iVar15 = (int)*(char *)((int)piVar14 + 0xd)" identifier = (cast_expression "(int)*(char *)((int)piVar14 + 0xd)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(char *)((int)piVar14 + 0xd)" * (cast_expression "(char *)((int)piVar14 + 0xd)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar14 + 0xd)" ( (binary_expression "(int)piVar14 + 0xd" (cast_expression "(int)piVar14" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))))) ;) (expression_statement "*(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;" (assignment_expression "*(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4" (pointer_expression "*(byte *)((int)piVar14 + 0xf)" * (cast_expression "(byte *)((int)piVar14 + 0xf)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar14 + 0xf)" ( (binary_expression "(int)piVar14 + 0xf" (cast_expression "(int)piVar14" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "*(byte *)((int)piVar14 + 0xf) | 4" (pointer_expression "*(byte *)((int)piVar14 + 0xf)" * (cast_expression "(byte *)((int)piVar14 + 0xf)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar14 + 0xf)" ( (binary_expression "(int)piVar14 + 0xf" (cast_expression "(int)piVar14" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) | number_literal)) ;) }))) })) (if_statement "if (iVar15 == 0) {\n          *(undefined1 *)((int)piVar14 + 0xd) = 0x41;\n        }" if (parenthesized_expression "(iVar15 == 0)" ( (binary_expression "iVar15 == 0" identifier == number_literal) )) (compound_statement "{\n          *(undefined1 *)((int)piVar14 + 0xd) = 0x41;\n        }" { (expression_statement "*(undefined1 *)((int)piVar14 + 0xd) = 0x41;" (assignment_expression "*(undefined1 *)((int)piVar14 + 0xd) = 0x41" (pointer_expression "*(undefined1 *)((int)piVar14 + 0xd)" * (cast_expression "(undefined1 *)((int)piVar14 + 0xd)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar14 + 0xd)" ( (binary_expression "(int)piVar14 + 0xd" (cast_expression "(int)piVar14" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) })) (expression_statement "piVar12 = param_1;" (assignment_expression "piVar12 = param_1" identifier = identifier) ;) (expression_statement "piVar6 = (int *)(*pcVar3)();" (assignment_expression "piVar6 = (int *)(*pcVar3)()" identifier = (cast_expression "(int *)(*pcVar3)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*pcVar3)()" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "()" ( ))))) ;) (if_statement "if ((piVar6 != (int *)0x0) && (piVar14[2] == 0)) {\n          iVar10 = *piVar6;\n          piVar12 = piVar11;\n          iVar15 = (*pcVar5)();\n          piVar14[2] = iVar15;\n        }" if (parenthesized_expression "((piVar6 != (int *)0x0) && (piVar14[2] == 0))" ( (binary_expression "(piVar6 != (int *)0x0) && (piVar14[2] == 0)" (parenthesized_expression "(piVar6 != (int *)0x0)" ( (binary_expression "piVar6 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(piVar14[2] == 0)" ( (binary_expression "piVar14[2] == 0" (subscript_expression "piVar14[2]" identifier [ number_literal ]) == number_literal) ))) )) (compound_statement "{\n          iVar10 = *piVar6;\n          piVar12 = piVar11;\n          iVar15 = (*pcVar5)();\n          piVar14[2] = iVar15;\n        }" { (expression_statement "iVar10 = *piVar6;" (assignment_expression "iVar10 = *piVar6" identifier = (pointer_expression "*piVar6" * identifier)) ;) (expression_statement "piVar12 = piVar11;" (assignment_expression "piVar12 = piVar11" identifier = identifier) ;) (expression_statement "iVar15 = (*pcVar5)();" (assignment_expression "iVar15 = (*pcVar5)()" identifier = (call_expression "(*pcVar5)()" (parenthesized_expression "(*pcVar5)" ( (pointer_expression "*pcVar5" * identifier) )) (argument_list "()" ( )))) ;) (expression_statement "piVar14[2] = iVar15;" (assignment_expression "piVar14[2] = iVar15" (subscript_expression "piVar14[2]" identifier [ number_literal ]) = identifier) ;) })) (expression_statement "iVar17 = iVar17 + 1;" (assignment_expression "iVar17 = iVar17 + 1" identifier = (binary_expression "iVar17 + 1" identifier + number_literal)) ;) (expression_statement "piVar14 = piVar14 + 4;" (assignment_expression "piVar14 = piVar14 + 4" identifier = (binary_expression "piVar14 + 4" identifier + number_literal)) ;) (expression_statement "piVar16 = piVar16 + 5;" (assignment_expression "piVar16 = piVar16 + 5" identifier = (binary_expression "piVar16 + 5" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar17 < *(short *)(param_2 + 0x2a))" ( (binary_expression "iVar17 < *(short *)(param_2 + 0x2a)" identifier < (pointer_expression "*(short *)(param_2 + 0x2a)" * (cast_expression "(short *)(param_2 + 0x2a)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2a)" ( (binary_expression "param_2 + 0x2a" identifier + number_literal) ))))) )) ;) })) (expression_statement "*(undefined2 *)(param_2 + 0x2e) = 1;" (assignment_expression "*(undefined2 *)(param_2 + 0x2e) = 1" (pointer_expression "*(undefined2 *)(param_2 + 0x2e)" * (cast_expression "(undefined2 *)(param_2 + 0x2e)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2e)" ( (binary_expression "param_2 + 0x2e" identifier + number_literal) )))) = number_literal) ;) })) (if_statement "if (local_2c == *(int *)puVar18) {\n    return;\n  }" if (parenthesized_expression "(local_2c == *(int *)puVar18)" ( (binary_expression "local_2c == *(int *)puVar18" identifier == (pointer_expression "*(int *)puVar18" * (cast_expression "(int *)puVar18" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "puVar18 = PTR___stack_chk_fail_0015ba10;" (assignment_expression "puVar18 = PTR___stack_chk_fail_0015ba10" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0015ba10)();" (call_expression "(*(code *)PTR___stack_chk_fail_0015ba10)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0015ba10)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0015ba10" * (cast_expression "(code *)PTR___stack_chk_fail_0015ba10" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puVar18 = puVar18 + 0xea668;" (assignment_expression "puVar18 = puVar18 + 0xea668" identifier = (binary_expression "puVar18 + 0xea668" identifier + number_literal)) ;) (if_statement "if ((*(uint *)(iVar10 + 8) & 0x80) != 0) {\n    return;\n  }" if (parenthesized_expression "((*(uint *)(iVar10 + 8) & 0x80) != 0)" ( (binary_expression "(*(uint *)(iVar10 + 8) & 0x80) != 0" (parenthesized_expression "(*(uint *)(iVar10 + 8) & 0x80)" ( (binary_expression "*(uint *)(iVar10 + 8) & 0x80" (pointer_expression "*(uint *)(iVar10 + 8)" * (cast_expression "(uint *)(iVar10 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar10 + 8)" ( (binary_expression "iVar10 + 8" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "*(uint *)(iVar10 + 8) = *(uint *)(iVar10 + 8) | 0x80;" (assignment_expression "*(uint *)(iVar10 + 8) = *(uint *)(iVar10 + 8) | 0x80" (pointer_expression "*(uint *)(iVar10 + 8)" * (cast_expression "(uint *)(iVar10 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar10 + 8)" ( (binary_expression "iVar10 + 8" identifier + number_literal) )))) = (binary_expression "*(uint *)(iVar10 + 8) | 0x80" (pointer_expression "*(uint *)(iVar10 + 8)" * (cast_expression "(uint *)(iVar10 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar10 + 8)" ( (binary_expression "iVar10 + 8" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "piVar11 = *(int **)(iVar10 + 0x20);" (assignment_expression "piVar11 = *(int **)(iVar10 + 0x20)" identifier = (pointer_expression "*(int **)(iVar10 + 0x20)" * (cast_expression "(int **)(iVar10 + 0x20)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar10 + 0x20)" ( (binary_expression "iVar10 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "iVar17 = *piVar12;" (assignment_expression "iVar17 = *piVar12" identifier = (pointer_expression "*piVar12" * identifier)) ;) (expression_statement "iVar10 = *piVar11;" (assignment_expression "iVar10 = *piVar11" identifier = (pointer_expression "*piVar11" * identifier)) ;) (expression_statement "piVar12 = piVar11 + 2;" (assignment_expression "piVar12 = piVar11 + 2" identifier = (binary_expression "piVar11 + 2" identifier + number_literal)) ;) (if_statement "if (iVar10 < 1) {\n    return;\n  }" if (parenthesized_expression "(iVar10 < 1)" ( (binary_expression "iVar10 < 1" identifier < number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "iVar15 = 0;" (assignment_expression "iVar15 = 0" identifier = number_literal) ;) (do_statement "do {\n    while ((*(uint *)(piVar12[4] + 0x24) & 2) == 0) {\nLAB_00078fb0:\n      iVar15 = iVar15 + 1;\n      piVar12 = piVar12 + 0x12;\n      if (iVar10 <= iVar15) {\n        return;\n      }\n    }\n    iVar7 = piVar12[5];\n    if (piVar12[5] != 0) {\n      do {\n        iVar10 = iVar7;\n        iVar7 = *(int *)(iVar10 + 0x34);\n      } while (*(int *)(iVar10 + 0x34) != 0);\n      FUN_00078cd0(iVar17,piVar12[4],iVar10,iVar10 + 0x20,puVar18);\n      iVar10 = *piVar11;\n      goto LAB_00078fb0;\n    }\n    iVar15 = iVar15 + 1;\n    piVar12 = piVar12 + 0x12;\n    if (iVar10 <= iVar15) {\n      return;\n    }\n  } while( true );" do (compound_statement "{\n    while ((*(uint *)(piVar12[4] + 0x24) & 2) == 0) {\nLAB_00078fb0:\n      iVar15 = iVar15 + 1;\n      piVar12 = piVar12 + 0x12;\n      if (iVar10 <= iVar15) {\n        return;\n      }\n    }\n    iVar7 = piVar12[5];\n    if (piVar12[5] != 0) {\n      do {\n        iVar10 = iVar7;\n        iVar7 = *(int *)(iVar10 + 0x34);\n      } while (*(int *)(iVar10 + 0x34) != 0);\n      FUN_00078cd0(iVar17,piVar12[4],iVar10,iVar10 + 0x20,puVar18);\n      iVar10 = *piVar11;\n      goto LAB_00078fb0;\n    }\n    iVar15 = iVar15 + 1;\n    piVar12 = piVar12 + 0x12;\n    if (iVar10 <= iVar15) {\n      return;\n    }\n  }" { (while_statement "while ((*(uint *)(piVar12[4] + 0x24) & 2) == 0) {\nLAB_00078fb0:\n      iVar15 = iVar15 + 1;\n      piVar12 = piVar12 + 0x12;\n      if (iVar10 <= iVar15) {\n        return;\n      }\n    }" while (parenthesized_expression "((*(uint *)(piVar12[4] + 0x24) & 2) == 0)" ( (binary_expression "(*(uint *)(piVar12[4] + 0x24) & 2) == 0" (parenthesized_expression "(*(uint *)(piVar12[4] + 0x24) & 2)" ( (binary_expression "*(uint *)(piVar12[4] + 0x24) & 2" (pointer_expression "*(uint *)(piVar12[4] + 0x24)" * (cast_expression "(uint *)(piVar12[4] + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar12[4] + 0x24)" ( (binary_expression "piVar12[4] + 0x24" (subscript_expression "piVar12[4]" identifier [ number_literal ]) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\nLAB_00078fb0:\n      iVar15 = iVar15 + 1;\n      piVar12 = piVar12 + 0x12;\n      if (iVar10 <= iVar15) {\n        return;\n      }\n    }" { (labeled_statement "LAB_00078fb0:\n      iVar15 = iVar15 + 1;" statement_identifier : (expression_statement "iVar15 = iVar15 + 1;" (assignment_expression "iVar15 = iVar15 + 1" identifier = (binary_expression "iVar15 + 1" identifier + number_literal)) ;)) (expression_statement "piVar12 = piVar12 + 0x12;" (assignment_expression "piVar12 = piVar12 + 0x12" identifier = (binary_expression "piVar12 + 0x12" identifier + number_literal)) ;) (if_statement "if (iVar10 <= iVar15) {\n        return;\n      }" if (parenthesized_expression "(iVar10 <= iVar15)" ( (binary_expression "iVar10 <= iVar15" identifier <= identifier) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) })) (expression_statement "iVar7 = piVar12[5];" (assignment_expression "iVar7 = piVar12[5]" identifier = (subscript_expression "piVar12[5]" identifier [ number_literal ])) ;) (if_statement "if (piVar12[5] != 0) {\n      do {\n        iVar10 = iVar7;\n        iVar7 = *(int *)(iVar10 + 0x34);\n      } while (*(int *)(iVar10 + 0x34) != 0);\n      FUN_00078cd0(iVar17,piVar12[4],iVar10,iVar10 + 0x20,puVar18);\n      iVar10 = *piVar11;\n      goto LAB_00078fb0;\n    }" if (parenthesized_expression "(piVar12[5] != 0)" ( (binary_expression "piVar12[5] != 0" (subscript_expression "piVar12[5]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      do {\n        iVar10 = iVar7;\n        iVar7 = *(int *)(iVar10 + 0x34);\n      } while (*(int *)(iVar10 + 0x34) != 0);\n      FUN_00078cd0(iVar17,piVar12[4],iVar10,iVar10 + 0x20,puVar18);\n      iVar10 = *piVar11;\n      goto LAB_00078fb0;\n    }" { (do_statement "do {\n        iVar10 = iVar7;\n        iVar7 = *(int *)(iVar10 + 0x34);\n      } while (*(int *)(iVar10 + 0x34) != 0);" do (compound_statement "{\n        iVar10 = iVar7;\n        iVar7 = *(int *)(iVar10 + 0x34);\n      }" { (expression_statement "iVar10 = iVar7;" (assignment_expression "iVar10 = iVar7" identifier = identifier) ;) (expression_statement "iVar7 = *(int *)(iVar10 + 0x34);" (assignment_expression "iVar7 = *(int *)(iVar10 + 0x34)" identifier = (pointer_expression "*(int *)(iVar10 + 0x34)" * (cast_expression "(int *)(iVar10 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar10 + 0x34)" ( (binary_expression "iVar10 + 0x34" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(*(int *)(iVar10 + 0x34) != 0)" ( (binary_expression "*(int *)(iVar10 + 0x34) != 0" (pointer_expression "*(int *)(iVar10 + 0x34)" * (cast_expression "(int *)(iVar10 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar10 + 0x34)" ( (binary_expression "iVar10 + 0x34" identifier + number_literal) )))) != number_literal) )) ;) (expression_statement "FUN_00078cd0(iVar17,piVar12[4],iVar10,iVar10 + 0x20,puVar18);" (call_expression "FUN_00078cd0(iVar17,piVar12[4],iVar10,iVar10 + 0x20,puVar18)" identifier (argument_list "(iVar17,piVar12[4],iVar10,iVar10 + 0x20,puVar18)" ( identifier , (subscript_expression "piVar12[4]" identifier [ number_literal ]) , identifier , (binary_expression "iVar10 + 0x20" identifier + number_literal) , identifier ))) ;) (expression_statement "iVar10 = *piVar11;" (assignment_expression "iVar10 = *piVar11" identifier = (pointer_expression "*piVar11" * identifier)) ;) (goto_statement "goto LAB_00078fb0;" goto statement_identifier ;) })) (expression_statement "iVar15 = iVar15 + 1;" (assignment_expression "iVar15 = iVar15 + 1" identifier = (binary_expression "iVar15 + 1" identifier + number_literal)) ;) (expression_statement "piVar12 = piVar12 + 0x12;" (assignment_expression "piVar12 = piVar12 + 0x12" identifier = (binary_expression "piVar12 + 0x12" identifier + number_literal)) ;) (if_statement "if (iVar10 <= iVar15) {\n      return;\n    }" if (parenthesized_expression "(iVar10 <= iVar15)" ( (binary_expression "iVar10 <= iVar15" identifier <= identifier) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "/* DWARF original prototype: void sqlite3SelectAddColumnTypeAndCollation(Parse * pParse, Table *\n   pTab, Select * pSelect, Select * pSelect) */\n\nvoid sqlite3SelectAddColumnTypeAndCollation\n               (Parse *pParse,Table *pTab,Select *pSelect,Select *pSelect_1)\n\n{\n  undefined *puVar1;\n  Select *pSVar2;\n  code *pcVar3;\n  code *pcVar4;\n  code *pcVar5;\n  code *pcVar6;\n  code *pcVar7;\n  undefined4 *puVar8;\n  int iVar9;\n  int iVar10;\n  uint uVar11;\n  uint uVar12;\n  int iVar13;\n  sqlite3 *psVar14;\n  char *pcVar15;\n  Select *pSelect_00;\n  uint uVar16;\n  Column *pCVar17;\n  int *piVar18;\n  Table *pTVar19;\n  int iVar20;\n  ExprList_item *pEVar21;\n  sqlite3 *psVar22;\n  int *piVar23;\n  NameContext sNC;\n  \n  puVar1 = PTR___stack_chk_guard_0015ba2c;\n  psVar14 = pParse->db;\n  iVar13 = *(int *)PTR___stack_chk_guard_0015ba2c;\n  psVar22 = psVar14;\n  pTVar19 = pTab;\n  if (psVar14->mallocFailed == '\0') {\n    sNC.pSrcList = (SrcList *)pSelect_1->pEList;\n    pCVar17 = pTab->aCol;\n    sNC.pParse = (Parse *)0x0;\n    sNC.uNC.pEList = (ExprList *)0x0;\n    sNC.pNext = (NameContext *)0x0;\n    sNC.nRef = 0;\n    sNC.nErr = 0;\n    sNC.ncFlags = 0;\n    sNC._26_2_ = 0;\n    sNC.pWinSelect = (Select *)0x0;\n    if (0 < pTab->nCol) {\n      pEVar21 = pSelect->pEList->a;\n      iVar20 = 0;\n      pcVar3 = (code *)(PTR_LAB_0015b6c0 + 0x4814);\n      pcVar4 = (code *)(PTR_LAB_0015b65c + 0x5914);\n      pcVar5 = (code *)(PTR_LAB_0015b740 + 0x75dc);\n      pcVar6 = (code *)(PTR_LAB_0015b700 + 0x7748);\n      pcVar7 = (code *)(PTR_LAB_0015b6d8 + -0x23a0);\n      do {\n        pTVar19 = (Table *)pEVar21->pExpr;\n        iVar9 = (*pcVar3)(&sNC,pTVar19,0,0,0);\n        iVar10 = (*pcVar4)(pTVar19);\n        pCVar17->affinity = (char)iVar10;\n        if (iVar9 != 0) {\n          uVar11 = (*(code *)PTR_strlen_0015b9c4)(iVar9);\n          pcVar15 = pCVar17->zName;\n          uVar11 = uVar11 & 0x3fffffff;\n          if (pcVar15 == (char *)0x0) {\n            uVar12 = 0;\n            uVar16 = uVar11;\n          }\n          else {\n            uVar12 = (*(code *)PTR_strlen_0015b9c4)(pcVar15);\n            uVar12 = uVar12 & 0x3fffffff;\n            uVar16 = uVar11 + uVar12;\n          }\n          pcVar15 = (char *)(*pcVar6)(psVar14,pcVar15,(int)(uVar16 + 2) >> 0x1f);\n          pCVar17->zName = pcVar15;\n          if (pcVar15 == (char *)0x0) {\n            iVar10 = (int)pCVar17->affinity;\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(pcVar15 + uVar12 + 1,iVar9,uVar11 + 1);\n            iVar10 = (int)pCVar17->affinity;\n            pCVar17->colFlags = pCVar17->colFlags | 4;\n          }\n        }\n        if (iVar10 == 0) {\n          pCVar17->affinity = 'A';\n        }\n        psVar22 = (sqlite3 *)pParse;\n        puVar8 = (undefined4 *)(*pcVar5)();\n        if ((puVar8 != (undefined4 *)0x0) && (pCVar17->zColl == (char *)0x0)) {\n          pTVar19 = (Table *)*puVar8;\n          psVar22 = psVar14;\n          pcVar15 = (char *)(*pcVar7)();\n          pCVar17->zColl = pcVar15;\n        }\n        iVar20 = iVar20 + 1;\n        pCVar17 = pCVar17 + 1;\n        pEVar21 = pEVar21 + 1;\n      } while (iVar20 < pTab->nCol);\n    }\n    pTab->szTabRow = 1;\n  }\n  if (iVar13 == *(int *)puVar1) {\n    return;\n  }\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  if (((uint)pTVar19->pIndex & 0x80) != 0) {\n    return;\n  }\n  pTVar19->pIndex = (Index *)((uint)pTVar19->pIndex | 0x80);\n  piVar23 = (int *)pTVar19->nTabRef;\n  psVar22 = (sqlite3 *)psVar22->pVfs;\n  iVar13 = *piVar23;\n  piVar18 = piVar23 + 2;\n  if (iVar13 < 1) {\n    return;\n  }\n  iVar20 = 0;\n  do {\n    while ((((Table *)piVar18[4])->tabFlags & 2) == 0) {\nLAB_00078fb0:\n      iVar20 = iVar20 + 1;\n      piVar18 = piVar18 + 0x12;\n      if (iVar13 <= iVar20) {\n        return;\n      }\n    }\n    pSVar2 = (Select *)piVar18[5];\n    if ((Select *)piVar18[5] != (Select *)0x0) {\n      do {\n        pSelect_00 = pSVar2;\n        pSVar2 = pSelect_00->pPrior;\n      } while (pSelect_00->pPrior != (Select *)0x0);\n      sqlite3SelectAddColumnTypeAndCollation\n                ((Parse *)psVar22,(Table *)piVar18[4],pSelect_00,(Select *)&pSelect_00->pSrc);\n      iVar13 = *piVar23;\n      goto LAB_00078fb0;\n    }\n    iVar20 = iVar20 + 1;\n    piVar18 = piVar18 + 0x12;\n    if (iVar13 <= iVar20) {\n      return;\n    }\n  } while( true );\n}\n\n" comment (function_definition "void sqlite3SelectAddColumnTypeAndCollation\n               (Parse *pParse,Table *pTab,Select *pSelect,Select *pSelect_1)\n\n{\n  undefined *puVar1;\n  Select *pSVar2;\n  code *pcVar3;\n  code *pcVar4;\n  code *pcVar5;\n  code *pcVar6;\n  code *pcVar7;\n  undefined4 *puVar8;\n  int iVar9;\n  int iVar10;\n  uint uVar11;\n  uint uVar12;\n  int iVar13;\n  sqlite3 *psVar14;\n  char *pcVar15;\n  Select *pSelect_00;\n  uint uVar16;\n  Column *pCVar17;\n  int *piVar18;\n  Table *pTVar19;\n  int iVar20;\n  ExprList_item *pEVar21;\n  sqlite3 *psVar22;\n  int *piVar23;\n  NameContext sNC;\n  \n  puVar1 = PTR___stack_chk_guard_0015ba2c;\n  psVar14 = pParse->db;\n  iVar13 = *(int *)PTR___stack_chk_guard_0015ba2c;\n  psVar22 = psVar14;\n  pTVar19 = pTab;\n  if (psVar14->mallocFailed == '\0') {\n    sNC.pSrcList = (SrcList *)pSelect_1->pEList;\n    pCVar17 = pTab->aCol;\n    sNC.pParse = (Parse *)0x0;\n    sNC.uNC.pEList = (ExprList *)0x0;\n    sNC.pNext = (NameContext *)0x0;\n    sNC.nRef = 0;\n    sNC.nErr = 0;\n    sNC.ncFlags = 0;\n    sNC._26_2_ = 0;\n    sNC.pWinSelect = (Select *)0x0;\n    if (0 < pTab->nCol) {\n      pEVar21 = pSelect->pEList->a;\n      iVar20 = 0;\n      pcVar3 = (code *)(PTR_LAB_0015b6c0 + 0x4814);\n      pcVar4 = (code *)(PTR_LAB_0015b65c + 0x5914);\n      pcVar5 = (code *)(PTR_LAB_0015b740 + 0x75dc);\n      pcVar6 = (code *)(PTR_LAB_0015b700 + 0x7748);\n      pcVar7 = (code *)(PTR_LAB_0015b6d8 + -0x23a0);\n      do {\n        pTVar19 = (Table *)pEVar21->pExpr;\n        iVar9 = (*pcVar3)(&sNC,pTVar19,0,0,0);\n        iVar10 = (*pcVar4)(pTVar19);\n        pCVar17->affinity = (char)iVar10;\n        if (iVar9 != 0) {\n          uVar11 = (*(code *)PTR_strlen_0015b9c4)(iVar9);\n          pcVar15 = pCVar17->zName;\n          uVar11 = uVar11 & 0x3fffffff;\n          if (pcVar15 == (char *)0x0) {\n            uVar12 = 0;\n            uVar16 = uVar11;\n          }\n          else {\n            uVar12 = (*(code *)PTR_strlen_0015b9c4)(pcVar15);\n            uVar12 = uVar12 & 0x3fffffff;\n            uVar16 = uVar11 + uVar12;\n          }\n          pcVar15 = (char *)(*pcVar6)(psVar14,pcVar15,(int)(uVar16 + 2) >> 0x1f);\n          pCVar17->zName = pcVar15;\n          if (pcVar15 == (char *)0x0) {\n            iVar10 = (int)pCVar17->affinity;\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(pcVar15 + uVar12 + 1,iVar9,uVar11 + 1);\n            iVar10 = (int)pCVar17->affinity;\n            pCVar17->colFlags = pCVar17->colFlags | 4;\n          }\n        }\n        if (iVar10 == 0) {\n          pCVar17->affinity = 'A';\n        }\n        psVar22 = (sqlite3 *)pParse;\n        puVar8 = (undefined4 *)(*pcVar5)();\n        if ((puVar8 != (undefined4 *)0x0) && (pCVar17->zColl == (char *)0x0)) {\n          pTVar19 = (Table *)*puVar8;\n          psVar22 = psVar14;\n          pcVar15 = (char *)(*pcVar7)();\n          pCVar17->zColl = pcVar15;\n        }\n        iVar20 = iVar20 + 1;\n        pCVar17 = pCVar17 + 1;\n        pEVar21 = pEVar21 + 1;\n      } while (iVar20 < pTab->nCol);\n    }\n    pTab->szTabRow = 1;\n  }\n  if (iVar13 == *(int *)puVar1) {\n    return;\n  }\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  if (((uint)pTVar19->pIndex & 0x80) != 0) {\n    return;\n  }\n  pTVar19->pIndex = (Index *)((uint)pTVar19->pIndex | 0x80);\n  piVar23 = (int *)pTVar19->nTabRef;\n  psVar22 = (sqlite3 *)psVar22->pVfs;\n  iVar13 = *piVar23;\n  piVar18 = piVar23 + 2;\n  if (iVar13 < 1) {\n    return;\n  }\n  iVar20 = 0;\n  do {\n    while ((((Table *)piVar18[4])->tabFlags & 2) == 0) {\nLAB_00078fb0:\n      iVar20 = iVar20 + 1;\n      piVar18 = piVar18 + 0x12;\n      if (iVar13 <= iVar20) {\n        return;\n      }\n    }\n    pSVar2 = (Select *)piVar18[5];\n    if ((Select *)piVar18[5] != (Select *)0x0) {\n      do {\n        pSelect_00 = pSVar2;\n        pSVar2 = pSelect_00->pPrior;\n      } while (pSelect_00->pPrior != (Select *)0x0);\n      sqlite3SelectAddColumnTypeAndCollation\n                ((Parse *)psVar22,(Table *)piVar18[4],pSelect_00,(Select *)&pSelect_00->pSrc);\n      iVar13 = *piVar23;\n      goto LAB_00078fb0;\n    }\n    iVar20 = iVar20 + 1;\n    piVar18 = piVar18 + 0x12;\n    if (iVar13 <= iVar20) {\n      return;\n    }\n  } while( true );\n}" primitive_type (function_declarator "sqlite3SelectAddColumnTypeAndCollation\n               (Parse *pParse,Table *pTab,Select *pSelect,Select *pSelect_1)" identifier (parameter_list "(Parse *pParse,Table *pTab,Select *pSelect,Select *pSelect_1)" ( (parameter_declaration "Parse *pParse" type_identifier (pointer_declarator "*pParse" * identifier)) , (parameter_declaration "Table *pTab" type_identifier (pointer_declarator "*pTab" * identifier)) , (parameter_declaration "Select *pSelect" type_identifier (pointer_declarator "*pSelect" * identifier)) , (parameter_declaration "Select *pSelect_1" type_identifier (pointer_declarator "*pSelect_1" * identifier)) ))) (compound_statement "{\n  undefined *puVar1;\n  Select *pSVar2;\n  code *pcVar3;\n  code *pcVar4;\n  code *pcVar5;\n  code *pcVar6;\n  code *pcVar7;\n  undefined4 *puVar8;\n  int iVar9;\n  int iVar10;\n  uint uVar11;\n  uint uVar12;\n  int iVar13;\n  sqlite3 *psVar14;\n  char *pcVar15;\n  Select *pSelect_00;\n  uint uVar16;\n  Column *pCVar17;\n  int *piVar18;\n  Table *pTVar19;\n  int iVar20;\n  ExprList_item *pEVar21;\n  sqlite3 *psVar22;\n  int *piVar23;\n  NameContext sNC;\n  \n  puVar1 = PTR___stack_chk_guard_0015ba2c;\n  psVar14 = pParse->db;\n  iVar13 = *(int *)PTR___stack_chk_guard_0015ba2c;\n  psVar22 = psVar14;\n  pTVar19 = pTab;\n  if (psVar14->mallocFailed == '\0') {\n    sNC.pSrcList = (SrcList *)pSelect_1->pEList;\n    pCVar17 = pTab->aCol;\n    sNC.pParse = (Parse *)0x0;\n    sNC.uNC.pEList = (ExprList *)0x0;\n    sNC.pNext = (NameContext *)0x0;\n    sNC.nRef = 0;\n    sNC.nErr = 0;\n    sNC.ncFlags = 0;\n    sNC._26_2_ = 0;\n    sNC.pWinSelect = (Select *)0x0;\n    if (0 < pTab->nCol) {\n      pEVar21 = pSelect->pEList->a;\n      iVar20 = 0;\n      pcVar3 = (code *)(PTR_LAB_0015b6c0 + 0x4814);\n      pcVar4 = (code *)(PTR_LAB_0015b65c + 0x5914);\n      pcVar5 = (code *)(PTR_LAB_0015b740 + 0x75dc);\n      pcVar6 = (code *)(PTR_LAB_0015b700 + 0x7748);\n      pcVar7 = (code *)(PTR_LAB_0015b6d8 + -0x23a0);\n      do {\n        pTVar19 = (Table *)pEVar21->pExpr;\n        iVar9 = (*pcVar3)(&sNC,pTVar19,0,0,0);\n        iVar10 = (*pcVar4)(pTVar19);\n        pCVar17->affinity = (char)iVar10;\n        if (iVar9 != 0) {\n          uVar11 = (*(code *)PTR_strlen_0015b9c4)(iVar9);\n          pcVar15 = pCVar17->zName;\n          uVar11 = uVar11 & 0x3fffffff;\n          if (pcVar15 == (char *)0x0) {\n            uVar12 = 0;\n            uVar16 = uVar11;\n          }\n          else {\n            uVar12 = (*(code *)PTR_strlen_0015b9c4)(pcVar15);\n            uVar12 = uVar12 & 0x3fffffff;\n            uVar16 = uVar11 + uVar12;\n          }\n          pcVar15 = (char *)(*pcVar6)(psVar14,pcVar15,(int)(uVar16 + 2) >> 0x1f);\n          pCVar17->zName = pcVar15;\n          if (pcVar15 == (char *)0x0) {\n            iVar10 = (int)pCVar17->affinity;\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(pcVar15 + uVar12 + 1,iVar9,uVar11 + 1);\n            iVar10 = (int)pCVar17->affinity;\n            pCVar17->colFlags = pCVar17->colFlags | 4;\n          }\n        }\n        if (iVar10 == 0) {\n          pCVar17->affinity = 'A';\n        }\n        psVar22 = (sqlite3 *)pParse;\n        puVar8 = (undefined4 *)(*pcVar5)();\n        if ((puVar8 != (undefined4 *)0x0) && (pCVar17->zColl == (char *)0x0)) {\n          pTVar19 = (Table *)*puVar8;\n          psVar22 = psVar14;\n          pcVar15 = (char *)(*pcVar7)();\n          pCVar17->zColl = pcVar15;\n        }\n        iVar20 = iVar20 + 1;\n        pCVar17 = pCVar17 + 1;\n        pEVar21 = pEVar21 + 1;\n      } while (iVar20 < pTab->nCol);\n    }\n    pTab->szTabRow = 1;\n  }\n  if (iVar13 == *(int *)puVar1) {\n    return;\n  }\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  if (((uint)pTVar19->pIndex & 0x80) != 0) {\n    return;\n  }\n  pTVar19->pIndex = (Index *)((uint)pTVar19->pIndex | 0x80);\n  piVar23 = (int *)pTVar19->nTabRef;\n  psVar22 = (sqlite3 *)psVar22->pVfs;\n  iVar13 = *piVar23;\n  piVar18 = piVar23 + 2;\n  if (iVar13 < 1) {\n    return;\n  }\n  iVar20 = 0;\n  do {\n    while ((((Table *)piVar18[4])->tabFlags & 2) == 0) {\nLAB_00078fb0:\n      iVar20 = iVar20 + 1;\n      piVar18 = piVar18 + 0x12;\n      if (iVar13 <= iVar20) {\n        return;\n      }\n    }\n    pSVar2 = (Select *)piVar18[5];\n    if ((Select *)piVar18[5] != (Select *)0x0) {\n      do {\n        pSelect_00 = pSVar2;\n        pSVar2 = pSelect_00->pPrior;\n      } while (pSelect_00->pPrior != (Select *)0x0);\n      sqlite3SelectAddColumnTypeAndCollation\n                ((Parse *)psVar22,(Table *)piVar18[4],pSelect_00,(Select *)&pSelect_00->pSrc);\n      iVar13 = *piVar23;\n      goto LAB_00078fb0;\n    }\n    iVar20 = iVar20 + 1;\n    piVar18 = piVar18 + 0x12;\n    if (iVar13 <= iVar20) {\n      return;\n    }\n  } while( true );\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "Select *pSVar2;" type_identifier (pointer_declarator "*pSVar2" * identifier) ;) (declaration "code *pcVar3;" type_identifier (pointer_declarator "*pcVar3" * identifier) ;) (declaration "code *pcVar4;" type_identifier (pointer_declarator "*pcVar4" * identifier) ;) (declaration "code *pcVar5;" type_identifier (pointer_declarator "*pcVar5" * identifier) ;) (declaration "code *pcVar6;" type_identifier (pointer_declarator "*pcVar6" * identifier) ;) (declaration "code *pcVar7;" type_identifier (pointer_declarator "*pcVar7" * identifier) ;) (declaration "undefined4 *puVar8;" type_identifier (pointer_declarator "*puVar8" * identifier) ;) (declaration "int iVar9;" primitive_type identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "uint uVar11;" type_identifier identifier ;) (declaration "uint uVar12;" type_identifier identifier ;) (declaration "int iVar13;" primitive_type identifier ;) (declaration "sqlite3 *psVar14;" type_identifier (pointer_declarator "*psVar14" * identifier) ;) (declaration "char *pcVar15;" primitive_type (pointer_declarator "*pcVar15" * identifier) ;) (declaration "Select *pSelect_00;" type_identifier (pointer_declarator "*pSelect_00" * identifier) ;) (declaration "uint uVar16;" type_identifier identifier ;) (declaration "Column *pCVar17;" type_identifier (pointer_declarator "*pCVar17" * identifier) ;) (declaration "int *piVar18;" primitive_type (pointer_declarator "*piVar18" * identifier) ;) (declaration "Table *pTVar19;" type_identifier (pointer_declarator "*pTVar19" * identifier) ;) (declaration "int iVar20;" primitive_type identifier ;) (declaration "ExprList_item *pEVar21;" type_identifier (pointer_declarator "*pEVar21" * identifier) ;) (declaration "sqlite3 *psVar22;" type_identifier (pointer_declarator "*psVar22" * identifier) ;) (declaration "int *piVar23;" primitive_type (pointer_declarator "*piVar23" * identifier) ;) (declaration "NameContext sNC;" type_identifier identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_0015ba2c;" (assignment_expression "puVar1 = PTR___stack_chk_guard_0015ba2c" identifier = identifier) ;) (expression_statement "psVar14 = pParse->db;" (assignment_expression "psVar14 = pParse->db" identifier = (field_expression "pParse->db" identifier -> field_identifier)) ;) (expression_statement "iVar13 = *(int *)PTR___stack_chk_guard_0015ba2c;" (assignment_expression "iVar13 = *(int *)PTR___stack_chk_guard_0015ba2c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0015ba2c" * (cast_expression "(int *)PTR___stack_chk_guard_0015ba2c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "psVar22 = psVar14;" (assignment_expression "psVar22 = psVar14" identifier = identifier) ;) (expression_statement "pTVar19 = pTab;" (assignment_expression "pTVar19 = pTab" identifier = identifier) ;) (if_statement "if (psVar14->mallocFailed == '\0') {\n    sNC.pSrcList = (SrcList *)pSelect_1->pEList;\n    pCVar17 = pTab->aCol;\n    sNC.pParse = (Parse *)0x0;\n    sNC.uNC.pEList = (ExprList *)0x0;\n    sNC.pNext = (NameContext *)0x0;\n    sNC.nRef = 0;\n    sNC.nErr = 0;\n    sNC.ncFlags = 0;\n    sNC._26_2_ = 0;\n    sNC.pWinSelect = (Select *)0x0;\n    if (0 < pTab->nCol) {\n      pEVar21 = pSelect->pEList->a;\n      iVar20 = 0;\n      pcVar3 = (code *)(PTR_LAB_0015b6c0 + 0x4814);\n      pcVar4 = (code *)(PTR_LAB_0015b65c + 0x5914);\n      pcVar5 = (code *)(PTR_LAB_0015b740 + 0x75dc);\n      pcVar6 = (code *)(PTR_LAB_0015b700 + 0x7748);\n      pcVar7 = (code *)(PTR_LAB_0015b6d8 + -0x23a0);\n      do {\n        pTVar19 = (Table *)pEVar21->pExpr;\n        iVar9 = (*pcVar3)(&sNC,pTVar19,0,0,0);\n        iVar10 = (*pcVar4)(pTVar19);\n        pCVar17->affinity = (char)iVar10;\n        if (iVar9 != 0) {\n          uVar11 = (*(code *)PTR_strlen_0015b9c4)(iVar9);\n          pcVar15 = pCVar17->zName;\n          uVar11 = uVar11 & 0x3fffffff;\n          if (pcVar15 == (char *)0x0) {\n            uVar12 = 0;\n            uVar16 = uVar11;\n          }\n          else {\n            uVar12 = (*(code *)PTR_strlen_0015b9c4)(pcVar15);\n            uVar12 = uVar12 & 0x3fffffff;\n            uVar16 = uVar11 + uVar12;\n          }\n          pcVar15 = (char *)(*pcVar6)(psVar14,pcVar15,(int)(uVar16 + 2) >> 0x1f);\n          pCVar17->zName = pcVar15;\n          if (pcVar15 == (char *)0x0) {\n            iVar10 = (int)pCVar17->affinity;\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(pcVar15 + uVar12 + 1,iVar9,uVar11 + 1);\n            iVar10 = (int)pCVar17->affinity;\n            pCVar17->colFlags = pCVar17->colFlags | 4;\n          }\n        }\n        if (iVar10 == 0) {\n          pCVar17->affinity = 'A';\n        }\n        psVar22 = (sqlite3 *)pParse;\n        puVar8 = (undefined4 *)(*pcVar5)();\n        if ((puVar8 != (undefined4 *)0x0) && (pCVar17->zColl == (char *)0x0)) {\n          pTVar19 = (Table *)*puVar8;\n          psVar22 = psVar14;\n          pcVar15 = (char *)(*pcVar7)();\n          pCVar17->zColl = pcVar15;\n        }\n        iVar20 = iVar20 + 1;\n        pCVar17 = pCVar17 + 1;\n        pEVar21 = pEVar21 + 1;\n      } while (iVar20 < pTab->nCol);\n    }\n    pTab->szTabRow = 1;\n  }" if (parenthesized_expression "(psVar14->mallocFailed == '\0')" ( (binary_expression "psVar14->mallocFailed == '\0'" (field_expression "psVar14->mallocFailed" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    sNC.pSrcList = (SrcList *)pSelect_1->pEList;\n    pCVar17 = pTab->aCol;\n    sNC.pParse = (Parse *)0x0;\n    sNC.uNC.pEList = (ExprList *)0x0;\n    sNC.pNext = (NameContext *)0x0;\n    sNC.nRef = 0;\n    sNC.nErr = 0;\n    sNC.ncFlags = 0;\n    sNC._26_2_ = 0;\n    sNC.pWinSelect = (Select *)0x0;\n    if (0 < pTab->nCol) {\n      pEVar21 = pSelect->pEList->a;\n      iVar20 = 0;\n      pcVar3 = (code *)(PTR_LAB_0015b6c0 + 0x4814);\n      pcVar4 = (code *)(PTR_LAB_0015b65c + 0x5914);\n      pcVar5 = (code *)(PTR_LAB_0015b740 + 0x75dc);\n      pcVar6 = (code *)(PTR_LAB_0015b700 + 0x7748);\n      pcVar7 = (code *)(PTR_LAB_0015b6d8 + -0x23a0);\n      do {\n        pTVar19 = (Table *)pEVar21->pExpr;\n        iVar9 = (*pcVar3)(&sNC,pTVar19,0,0,0);\n        iVar10 = (*pcVar4)(pTVar19);\n        pCVar17->affinity = (char)iVar10;\n        if (iVar9 != 0) {\n          uVar11 = (*(code *)PTR_strlen_0015b9c4)(iVar9);\n          pcVar15 = pCVar17->zName;\n          uVar11 = uVar11 & 0x3fffffff;\n          if (pcVar15 == (char *)0x0) {\n            uVar12 = 0;\n            uVar16 = uVar11;\n          }\n          else {\n            uVar12 = (*(code *)PTR_strlen_0015b9c4)(pcVar15);\n            uVar12 = uVar12 & 0x3fffffff;\n            uVar16 = uVar11 + uVar12;\n          }\n          pcVar15 = (char *)(*pcVar6)(psVar14,pcVar15,(int)(uVar16 + 2) >> 0x1f);\n          pCVar17->zName = pcVar15;\n          if (pcVar15 == (char *)0x0) {\n            iVar10 = (int)pCVar17->affinity;\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(pcVar15 + uVar12 + 1,iVar9,uVar11 + 1);\n            iVar10 = (int)pCVar17->affinity;\n            pCVar17->colFlags = pCVar17->colFlags | 4;\n          }\n        }\n        if (iVar10 == 0) {\n          pCVar17->affinity = 'A';\n        }\n        psVar22 = (sqlite3 *)pParse;\n        puVar8 = (undefined4 *)(*pcVar5)();\n        if ((puVar8 != (undefined4 *)0x0) && (pCVar17->zColl == (char *)0x0)) {\n          pTVar19 = (Table *)*puVar8;\n          psVar22 = psVar14;\n          pcVar15 = (char *)(*pcVar7)();\n          pCVar17->zColl = pcVar15;\n        }\n        iVar20 = iVar20 + 1;\n        pCVar17 = pCVar17 + 1;\n        pEVar21 = pEVar21 + 1;\n      } while (iVar20 < pTab->nCol);\n    }\n    pTab->szTabRow = 1;\n  }" { (expression_statement "sNC.pSrcList = (SrcList *)pSelect_1->pEList;" (assignment_expression "sNC.pSrcList = (SrcList *)pSelect_1->pEList" (field_expression "sNC.pSrcList" identifier . field_identifier) = (cast_expression "(SrcList *)pSelect_1->pEList" ( (type_descriptor "SrcList *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pSelect_1->pEList" identifier -> field_identifier))) ;) (expression_statement "pCVar17 = pTab->aCol;" (assignment_expression "pCVar17 = pTab->aCol" identifier = (field_expression "pTab->aCol" identifier -> field_identifier)) ;) (expression_statement "sNC.pParse = (Parse *)0x0;" (assignment_expression "sNC.pParse = (Parse *)0x0" (field_expression "sNC.pParse" identifier . field_identifier) = (cast_expression "(Parse *)0x0" ( (type_descriptor "Parse *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "sNC.uNC.pEList = (ExprList *)0x0;" (assignment_expression "sNC.uNC.pEList = (ExprList *)0x0" (field_expression "sNC.uNC.pEList" (field_expression "sNC.uNC" identifier . field_identifier) . field_identifier) = (cast_expression "(ExprList *)0x0" ( (type_descriptor "ExprList *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "sNC.pNext = (NameContext *)0x0;" (assignment_expression "sNC.pNext = (NameContext *)0x0" (field_expression "sNC.pNext" identifier . field_identifier) = (cast_expression "(NameContext *)0x0" ( (type_descriptor "NameContext *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "sNC.nRef = 0;" (assignment_expression "sNC.nRef = 0" (field_expression "sNC.nRef" identifier . field_identifier) = number_literal) ;) (expression_statement "sNC.nErr = 0;" (assignment_expression "sNC.nErr = 0" (field_expression "sNC.nErr" identifier . field_identifier) = number_literal) ;) (expression_statement "sNC.ncFlags = 0;" (assignment_expression "sNC.ncFlags = 0" (field_expression "sNC.ncFlags" identifier . field_identifier) = number_literal) ;) (expression_statement "sNC._26_2_ = 0;" (assignment_expression "sNC._26_2_ = 0" (field_expression "sNC._26_2_" identifier . field_identifier) = number_literal) ;) (expression_statement "sNC.pWinSelect = (Select *)0x0;" (assignment_expression "sNC.pWinSelect = (Select *)0x0" (field_expression "sNC.pWinSelect" identifier . field_identifier) = (cast_expression "(Select *)0x0" ( (type_descriptor "Select *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (0 < pTab->nCol) {\n      pEVar21 = pSelect->pEList->a;\n      iVar20 = 0;\n      pcVar3 = (code *)(PTR_LAB_0015b6c0 + 0x4814);\n      pcVar4 = (code *)(PTR_LAB_0015b65c + 0x5914);\n      pcVar5 = (code *)(PTR_LAB_0015b740 + 0x75dc);\n      pcVar6 = (code *)(PTR_LAB_0015b700 + 0x7748);\n      pcVar7 = (code *)(PTR_LAB_0015b6d8 + -0x23a0);\n      do {\n        pTVar19 = (Table *)pEVar21->pExpr;\n        iVar9 = (*pcVar3)(&sNC,pTVar19,0,0,0);\n        iVar10 = (*pcVar4)(pTVar19);\n        pCVar17->affinity = (char)iVar10;\n        if (iVar9 != 0) {\n          uVar11 = (*(code *)PTR_strlen_0015b9c4)(iVar9);\n          pcVar15 = pCVar17->zName;\n          uVar11 = uVar11 & 0x3fffffff;\n          if (pcVar15 == (char *)0x0) {\n            uVar12 = 0;\n            uVar16 = uVar11;\n          }\n          else {\n            uVar12 = (*(code *)PTR_strlen_0015b9c4)(pcVar15);\n            uVar12 = uVar12 & 0x3fffffff;\n            uVar16 = uVar11 + uVar12;\n          }\n          pcVar15 = (char *)(*pcVar6)(psVar14,pcVar15,(int)(uVar16 + 2) >> 0x1f);\n          pCVar17->zName = pcVar15;\n          if (pcVar15 == (char *)0x0) {\n            iVar10 = (int)pCVar17->affinity;\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(pcVar15 + uVar12 + 1,iVar9,uVar11 + 1);\n            iVar10 = (int)pCVar17->affinity;\n            pCVar17->colFlags = pCVar17->colFlags | 4;\n          }\n        }\n        if (iVar10 == 0) {\n          pCVar17->affinity = 'A';\n        }\n        psVar22 = (sqlite3 *)pParse;\n        puVar8 = (undefined4 *)(*pcVar5)();\n        if ((puVar8 != (undefined4 *)0x0) && (pCVar17->zColl == (char *)0x0)) {\n          pTVar19 = (Table *)*puVar8;\n          psVar22 = psVar14;\n          pcVar15 = (char *)(*pcVar7)();\n          pCVar17->zColl = pcVar15;\n        }\n        iVar20 = iVar20 + 1;\n        pCVar17 = pCVar17 + 1;\n        pEVar21 = pEVar21 + 1;\n      } while (iVar20 < pTab->nCol);\n    }" if (parenthesized_expression "(0 < pTab->nCol)" ( (binary_expression "0 < pTab->nCol" number_literal < (field_expression "pTab->nCol" identifier -> field_identifier)) )) (compound_statement "{\n      pEVar21 = pSelect->pEList->a;\n      iVar20 = 0;\n      pcVar3 = (code *)(PTR_LAB_0015b6c0 + 0x4814);\n      pcVar4 = (code *)(PTR_LAB_0015b65c + 0x5914);\n      pcVar5 = (code *)(PTR_LAB_0015b740 + 0x75dc);\n      pcVar6 = (code *)(PTR_LAB_0015b700 + 0x7748);\n      pcVar7 = (code *)(PTR_LAB_0015b6d8 + -0x23a0);\n      do {\n        pTVar19 = (Table *)pEVar21->pExpr;\n        iVar9 = (*pcVar3)(&sNC,pTVar19,0,0,0);\n        iVar10 = (*pcVar4)(pTVar19);\n        pCVar17->affinity = (char)iVar10;\n        if (iVar9 != 0) {\n          uVar11 = (*(code *)PTR_strlen_0015b9c4)(iVar9);\n          pcVar15 = pCVar17->zName;\n          uVar11 = uVar11 & 0x3fffffff;\n          if (pcVar15 == (char *)0x0) {\n            uVar12 = 0;\n            uVar16 = uVar11;\n          }\n          else {\n            uVar12 = (*(code *)PTR_strlen_0015b9c4)(pcVar15);\n            uVar12 = uVar12 & 0x3fffffff;\n            uVar16 = uVar11 + uVar12;\n          }\n          pcVar15 = (char *)(*pcVar6)(psVar14,pcVar15,(int)(uVar16 + 2) >> 0x1f);\n          pCVar17->zName = pcVar15;\n          if (pcVar15 == (char *)0x0) {\n            iVar10 = (int)pCVar17->affinity;\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(pcVar15 + uVar12 + 1,iVar9,uVar11 + 1);\n            iVar10 = (int)pCVar17->affinity;\n            pCVar17->colFlags = pCVar17->colFlags | 4;\n          }\n        }\n        if (iVar10 == 0) {\n          pCVar17->affinity = 'A';\n        }\n        psVar22 = (sqlite3 *)pParse;\n        puVar8 = (undefined4 *)(*pcVar5)();\n        if ((puVar8 != (undefined4 *)0x0) && (pCVar17->zColl == (char *)0x0)) {\n          pTVar19 = (Table *)*puVar8;\n          psVar22 = psVar14;\n          pcVar15 = (char *)(*pcVar7)();\n          pCVar17->zColl = pcVar15;\n        }\n        iVar20 = iVar20 + 1;\n        pCVar17 = pCVar17 + 1;\n        pEVar21 = pEVar21 + 1;\n      } while (iVar20 < pTab->nCol);\n    }" { (expression_statement "pEVar21 = pSelect->pEList->a;" (assignment_expression "pEVar21 = pSelect->pEList->a" identifier = (field_expression "pSelect->pEList->a" (field_expression "pSelect->pEList" identifier -> field_identifier) -> field_identifier)) ;) (expression_statement "iVar20 = 0;" (assignment_expression "iVar20 = 0" identifier = number_literal) ;) (expression_statement "pcVar3 = (code *)(PTR_LAB_0015b6c0 + 0x4814);" (assignment_expression "pcVar3 = (code *)(PTR_LAB_0015b6c0 + 0x4814)" identifier = (cast_expression "(code *)(PTR_LAB_0015b6c0 + 0x4814)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b6c0 + 0x4814)" ( (binary_expression "PTR_LAB_0015b6c0 + 0x4814" identifier + number_literal) )))) ;) (expression_statement "pcVar4 = (code *)(PTR_LAB_0015b65c + 0x5914);" (assignment_expression "pcVar4 = (code *)(PTR_LAB_0015b65c + 0x5914)" identifier = (cast_expression "(code *)(PTR_LAB_0015b65c + 0x5914)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b65c + 0x5914)" ( (binary_expression "PTR_LAB_0015b65c + 0x5914" identifier + number_literal) )))) ;) (expression_statement "pcVar5 = (code *)(PTR_LAB_0015b740 + 0x75dc);" (assignment_expression "pcVar5 = (code *)(PTR_LAB_0015b740 + 0x75dc)" identifier = (cast_expression "(code *)(PTR_LAB_0015b740 + 0x75dc)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b740 + 0x75dc)" ( (binary_expression "PTR_LAB_0015b740 + 0x75dc" identifier + number_literal) )))) ;) (expression_statement "pcVar6 = (code *)(PTR_LAB_0015b700 + 0x7748);" (assignment_expression "pcVar6 = (code *)(PTR_LAB_0015b700 + 0x7748)" identifier = (cast_expression "(code *)(PTR_LAB_0015b700 + 0x7748)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b700 + 0x7748)" ( (binary_expression "PTR_LAB_0015b700 + 0x7748" identifier + number_literal) )))) ;) (expression_statement "pcVar7 = (code *)(PTR_LAB_0015b6d8 + -0x23a0);" (assignment_expression "pcVar7 = (code *)(PTR_LAB_0015b6d8 + -0x23a0)" identifier = (cast_expression "(code *)(PTR_LAB_0015b6d8 + -0x23a0)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b6d8 + -0x23a0)" ( (binary_expression "PTR_LAB_0015b6d8 + -0x23a0" identifier + number_literal) )))) ;) (do_statement "do {\n        pTVar19 = (Table *)pEVar21->pExpr;\n        iVar9 = (*pcVar3)(&sNC,pTVar19,0,0,0);\n        iVar10 = (*pcVar4)(pTVar19);\n        pCVar17->affinity = (char)iVar10;\n        if (iVar9 != 0) {\n          uVar11 = (*(code *)PTR_strlen_0015b9c4)(iVar9);\n          pcVar15 = pCVar17->zName;\n          uVar11 = uVar11 & 0x3fffffff;\n          if (pcVar15 == (char *)0x0) {\n            uVar12 = 0;\n            uVar16 = uVar11;\n          }\n          else {\n            uVar12 = (*(code *)PTR_strlen_0015b9c4)(pcVar15);\n            uVar12 = uVar12 & 0x3fffffff;\n            uVar16 = uVar11 + uVar12;\n          }\n          pcVar15 = (char *)(*pcVar6)(psVar14,pcVar15,(int)(uVar16 + 2) >> 0x1f);\n          pCVar17->zName = pcVar15;\n          if (pcVar15 == (char *)0x0) {\n            iVar10 = (int)pCVar17->affinity;\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(pcVar15 + uVar12 + 1,iVar9,uVar11 + 1);\n            iVar10 = (int)pCVar17->affinity;\n            pCVar17->colFlags = pCVar17->colFlags | 4;\n          }\n        }\n        if (iVar10 == 0) {\n          pCVar17->affinity = 'A';\n        }\n        psVar22 = (sqlite3 *)pParse;\n        puVar8 = (undefined4 *)(*pcVar5)();\n        if ((puVar8 != (undefined4 *)0x0) && (pCVar17->zColl == (char *)0x0)) {\n          pTVar19 = (Table *)*puVar8;\n          psVar22 = psVar14;\n          pcVar15 = (char *)(*pcVar7)();\n          pCVar17->zColl = pcVar15;\n        }\n        iVar20 = iVar20 + 1;\n        pCVar17 = pCVar17 + 1;\n        pEVar21 = pEVar21 + 1;\n      } while (iVar20 < pTab->nCol);" do (compound_statement "{\n        pTVar19 = (Table *)pEVar21->pExpr;\n        iVar9 = (*pcVar3)(&sNC,pTVar19,0,0,0);\n        iVar10 = (*pcVar4)(pTVar19);\n        pCVar17->affinity = (char)iVar10;\n        if (iVar9 != 0) {\n          uVar11 = (*(code *)PTR_strlen_0015b9c4)(iVar9);\n          pcVar15 = pCVar17->zName;\n          uVar11 = uVar11 & 0x3fffffff;\n          if (pcVar15 == (char *)0x0) {\n            uVar12 = 0;\n            uVar16 = uVar11;\n          }\n          else {\n            uVar12 = (*(code *)PTR_strlen_0015b9c4)(pcVar15);\n            uVar12 = uVar12 & 0x3fffffff;\n            uVar16 = uVar11 + uVar12;\n          }\n          pcVar15 = (char *)(*pcVar6)(psVar14,pcVar15,(int)(uVar16 + 2) >> 0x1f);\n          pCVar17->zName = pcVar15;\n          if (pcVar15 == (char *)0x0) {\n            iVar10 = (int)pCVar17->affinity;\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(pcVar15 + uVar12 + 1,iVar9,uVar11 + 1);\n            iVar10 = (int)pCVar17->affinity;\n            pCVar17->colFlags = pCVar17->colFlags | 4;\n          }\n        }\n        if (iVar10 == 0) {\n          pCVar17->affinity = 'A';\n        }\n        psVar22 = (sqlite3 *)pParse;\n        puVar8 = (undefined4 *)(*pcVar5)();\n        if ((puVar8 != (undefined4 *)0x0) && (pCVar17->zColl == (char *)0x0)) {\n          pTVar19 = (Table *)*puVar8;\n          psVar22 = psVar14;\n          pcVar15 = (char *)(*pcVar7)();\n          pCVar17->zColl = pcVar15;\n        }\n        iVar20 = iVar20 + 1;\n        pCVar17 = pCVar17 + 1;\n        pEVar21 = pEVar21 + 1;\n      }" { (expression_statement "pTVar19 = (Table *)pEVar21->pExpr;" (assignment_expression "pTVar19 = (Table *)pEVar21->pExpr" identifier = (cast_expression "(Table *)pEVar21->pExpr" ( (type_descriptor "Table *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pEVar21->pExpr" identifier -> field_identifier))) ;) (expression_statement "iVar9 = (*pcVar3)(&sNC,pTVar19,0,0,0);" (assignment_expression "iVar9 = (*pcVar3)(&sNC,pTVar19,0,0,0)" identifier = (call_expression "(*pcVar3)(&sNC,pTVar19,0,0,0)" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "(&sNC,pTVar19,0,0,0)" ( (pointer_expression "&sNC" & identifier) , identifier , number_literal , number_literal , number_literal )))) ;) (expression_statement "iVar10 = (*pcVar4)(pTVar19);" (assignment_expression "iVar10 = (*pcVar4)(pTVar19)" identifier = (call_expression "(*pcVar4)(pTVar19)" (parenthesized_expression "(*pcVar4)" ( (pointer_expression "*pcVar4" * identifier) )) (argument_list "(pTVar19)" ( identifier )))) ;) (expression_statement "pCVar17->affinity = (char)iVar10;" (assignment_expression "pCVar17->affinity = (char)iVar10" (field_expression "pCVar17->affinity" identifier -> field_identifier) = (cast_expression "(char)iVar10" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (if_statement "if (iVar9 != 0) {\n          uVar11 = (*(code *)PTR_strlen_0015b9c4)(iVar9);\n          pcVar15 = pCVar17->zName;\n          uVar11 = uVar11 & 0x3fffffff;\n          if (pcVar15 == (char *)0x0) {\n            uVar12 = 0;\n            uVar16 = uVar11;\n          }\n          else {\n            uVar12 = (*(code *)PTR_strlen_0015b9c4)(pcVar15);\n            uVar12 = uVar12 & 0x3fffffff;\n            uVar16 = uVar11 + uVar12;\n          }\n          pcVar15 = (char *)(*pcVar6)(psVar14,pcVar15,(int)(uVar16 + 2) >> 0x1f);\n          pCVar17->zName = pcVar15;\n          if (pcVar15 == (char *)0x0) {\n            iVar10 = (int)pCVar17->affinity;\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(pcVar15 + uVar12 + 1,iVar9,uVar11 + 1);\n            iVar10 = (int)pCVar17->affinity;\n            pCVar17->colFlags = pCVar17->colFlags | 4;\n          }\n        }" if (parenthesized_expression "(iVar9 != 0)" ( (binary_expression "iVar9 != 0" identifier != number_literal) )) (compound_statement "{\n          uVar11 = (*(code *)PTR_strlen_0015b9c4)(iVar9);\n          pcVar15 = pCVar17->zName;\n          uVar11 = uVar11 & 0x3fffffff;\n          if (pcVar15 == (char *)0x0) {\n            uVar12 = 0;\n            uVar16 = uVar11;\n          }\n          else {\n            uVar12 = (*(code *)PTR_strlen_0015b9c4)(pcVar15);\n            uVar12 = uVar12 & 0x3fffffff;\n            uVar16 = uVar11 + uVar12;\n          }\n          pcVar15 = (char *)(*pcVar6)(psVar14,pcVar15,(int)(uVar16 + 2) >> 0x1f);\n          pCVar17->zName = pcVar15;\n          if (pcVar15 == (char *)0x0) {\n            iVar10 = (int)pCVar17->affinity;\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(pcVar15 + uVar12 + 1,iVar9,uVar11 + 1);\n            iVar10 = (int)pCVar17->affinity;\n            pCVar17->colFlags = pCVar17->colFlags | 4;\n          }\n        }" { (expression_statement "uVar11 = (*(code *)PTR_strlen_0015b9c4)(iVar9);" (assignment_expression "uVar11 = (*(code *)PTR_strlen_0015b9c4)(iVar9)" identifier = (call_expression "(*(code *)PTR_strlen_0015b9c4)(iVar9)" (parenthesized_expression "(*(code *)PTR_strlen_0015b9c4)" ( (pointer_expression "*(code *)PTR_strlen_0015b9c4" * (cast_expression "(code *)PTR_strlen_0015b9c4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar9)" ( identifier )))) ;) (expression_statement "pcVar15 = pCVar17->zName;" (assignment_expression "pcVar15 = pCVar17->zName" identifier = (field_expression "pCVar17->zName" identifier -> field_identifier)) ;) (expression_statement "uVar11 = uVar11 & 0x3fffffff;" (assignment_expression "uVar11 = uVar11 & 0x3fffffff" identifier = (binary_expression "uVar11 & 0x3fffffff" identifier & number_literal)) ;) (if_statement "if (pcVar15 == (char *)0x0) {\n            uVar12 = 0;\n            uVar16 = uVar11;\n          }\n          else {\n            uVar12 = (*(code *)PTR_strlen_0015b9c4)(pcVar15);\n            uVar12 = uVar12 & 0x3fffffff;\n            uVar16 = uVar11 + uVar12;\n          }" if (parenthesized_expression "(pcVar15 == (char *)0x0)" ( (binary_expression "pcVar15 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            uVar12 = 0;\n            uVar16 = uVar11;\n          }" { (expression_statement "uVar12 = 0;" (assignment_expression "uVar12 = 0" identifier = number_literal) ;) (expression_statement "uVar16 = uVar11;" (assignment_expression "uVar16 = uVar11" identifier = identifier) ;) }) (else_clause "else {\n            uVar12 = (*(code *)PTR_strlen_0015b9c4)(pcVar15);\n            uVar12 = uVar12 & 0x3fffffff;\n            uVar16 = uVar11 + uVar12;\n          }" else (compound_statement "{\n            uVar12 = (*(code *)PTR_strlen_0015b9c4)(pcVar15);\n            uVar12 = uVar12 & 0x3fffffff;\n            uVar16 = uVar11 + uVar12;\n          }" { (expression_statement "uVar12 = (*(code *)PTR_strlen_0015b9c4)(pcVar15);" (assignment_expression "uVar12 = (*(code *)PTR_strlen_0015b9c4)(pcVar15)" identifier = (call_expression "(*(code *)PTR_strlen_0015b9c4)(pcVar15)" (parenthesized_expression "(*(code *)PTR_strlen_0015b9c4)" ( (pointer_expression "*(code *)PTR_strlen_0015b9c4" * (cast_expression "(code *)PTR_strlen_0015b9c4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar15)" ( identifier )))) ;) (expression_statement "uVar12 = uVar12 & 0x3fffffff;" (assignment_expression "uVar12 = uVar12 & 0x3fffffff" identifier = (binary_expression "uVar12 & 0x3fffffff" identifier & number_literal)) ;) (expression_statement "uVar16 = uVar11 + uVar12;" (assignment_expression "uVar16 = uVar11 + uVar12" identifier = (binary_expression "uVar11 + uVar12" identifier + identifier)) ;) }))) (expression_statement "pcVar15 = (char *)(*pcVar6)(psVar14,pcVar15,(int)(uVar16 + 2) >> 0x1f);" (assignment_expression "pcVar15 = (char *)(*pcVar6)(psVar14,pcVar15,(int)(uVar16 + 2) >> 0x1f)" identifier = (cast_expression "(char *)(*pcVar6)(psVar14,pcVar15,(int)(uVar16 + 2) >> 0x1f)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*pcVar6)(psVar14,pcVar15,(int)(uVar16 + 2) >> 0x1f)" (parenthesized_expression "(*pcVar6)" ( (pointer_expression "*pcVar6" * identifier) )) (argument_list "(psVar14,pcVar15,(int)(uVar16 + 2) >> 0x1f)" ( identifier , identifier , (binary_expression "(int)(uVar16 + 2) >> 0x1f" (cast_expression "(int)(uVar16 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar16 + 2)" ( (binary_expression "uVar16 + 2" identifier + number_literal) ))) >> number_literal) ))))) ;) (expression_statement "pCVar17->zName = pcVar15;" (assignment_expression "pCVar17->zName = pcVar15" (field_expression "pCVar17->zName" identifier -> field_identifier) = identifier) ;) (if_statement "if (pcVar15 == (char *)0x0) {\n            iVar10 = (int)pCVar17->affinity;\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(pcVar15 + uVar12 + 1,iVar9,uVar11 + 1);\n            iVar10 = (int)pCVar17->affinity;\n            pCVar17->colFlags = pCVar17->colFlags | 4;\n          }" if (parenthesized_expression "(pcVar15 == (char *)0x0)" ( (binary_expression "pcVar15 == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n            iVar10 = (int)pCVar17->affinity;\n          }" { (expression_statement "iVar10 = (int)pCVar17->affinity;" (assignment_expression "iVar10 = (int)pCVar17->affinity" identifier = (cast_expression "(int)pCVar17->affinity" ( (type_descriptor "int" primitive_type) ) (field_expression "pCVar17->affinity" identifier -> field_identifier))) ;) }) (else_clause "else {\n            (*(code *)PTR_memcpy_0015ba30)(pcVar15 + uVar12 + 1,iVar9,uVar11 + 1);\n            iVar10 = (int)pCVar17->affinity;\n            pCVar17->colFlags = pCVar17->colFlags | 4;\n          }" else (compound_statement "{\n            (*(code *)PTR_memcpy_0015ba30)(pcVar15 + uVar12 + 1,iVar9,uVar11 + 1);\n            iVar10 = (int)pCVar17->affinity;\n            pCVar17->colFlags = pCVar17->colFlags | 4;\n          }" { (expression_statement "(*(code *)PTR_memcpy_0015ba30)(pcVar15 + uVar12 + 1,iVar9,uVar11 + 1);" (call_expression "(*(code *)PTR_memcpy_0015ba30)(pcVar15 + uVar12 + 1,iVar9,uVar11 + 1)" (parenthesized_expression "(*(code *)PTR_memcpy_0015ba30)" ( (pointer_expression "*(code *)PTR_memcpy_0015ba30" * (cast_expression "(code *)PTR_memcpy_0015ba30" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(pcVar15 + uVar12 + 1,iVar9,uVar11 + 1)" ( (binary_expression "pcVar15 + uVar12 + 1" (binary_expression "pcVar15 + uVar12" identifier + identifier) + number_literal) , identifier , (binary_expression "uVar11 + 1" identifier + number_literal) ))) ;) (expression_statement "iVar10 = (int)pCVar17->affinity;" (assignment_expression "iVar10 = (int)pCVar17->affinity" identifier = (cast_expression "(int)pCVar17->affinity" ( (type_descriptor "int" primitive_type) ) (field_expression "pCVar17->affinity" identifier -> field_identifier))) ;) (expression_statement "pCVar17->colFlags = pCVar17->colFlags | 4;" (assignment_expression "pCVar17->colFlags = pCVar17->colFlags | 4" (field_expression "pCVar17->colFlags" identifier -> field_identifier) = (binary_expression "pCVar17->colFlags | 4" (field_expression "pCVar17->colFlags" identifier -> field_identifier) | number_literal)) ;) }))) })) (if_statement "if (iVar10 == 0) {\n          pCVar17->affinity = 'A';\n        }" if (parenthesized_expression "(iVar10 == 0)" ( (binary_expression "iVar10 == 0" identifier == number_literal) )) (compound_statement "{\n          pCVar17->affinity = 'A';\n        }" { (expression_statement "pCVar17->affinity = 'A';" (assignment_expression "pCVar17->affinity = 'A'" (field_expression "pCVar17->affinity" identifier -> field_identifier) = (char_literal "'A'" ' character ')) ;) })) (expression_statement "psVar22 = (sqlite3 *)pParse;" (assignment_expression "psVar22 = (sqlite3 *)pParse" identifier = (cast_expression "(sqlite3 *)pParse" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) ;) (expression_statement "puVar8 = (undefined4 *)(*pcVar5)();" (assignment_expression "puVar8 = (undefined4 *)(*pcVar5)()" identifier = (cast_expression "(undefined4 *)(*pcVar5)()" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*pcVar5)()" (parenthesized_expression "(*pcVar5)" ( (pointer_expression "*pcVar5" * identifier) )) (argument_list "()" ( ))))) ;) (if_statement "if ((puVar8 != (undefined4 *)0x0) && (pCVar17->zColl == (char *)0x0)) {\n          pTVar19 = (Table *)*puVar8;\n          psVar22 = psVar14;\n          pcVar15 = (char *)(*pcVar7)();\n          pCVar17->zColl = pcVar15;\n        }" if (parenthesized_expression "((puVar8 != (undefined4 *)0x0) && (pCVar17->zColl == (char *)0x0))" ( (binary_expression "(puVar8 != (undefined4 *)0x0) && (pCVar17->zColl == (char *)0x0)" (parenthesized_expression "(puVar8 != (undefined4 *)0x0)" ( (binary_expression "puVar8 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(pCVar17->zColl == (char *)0x0)" ( (binary_expression "pCVar17->zColl == (char *)0x0" (field_expression "pCVar17->zColl" identifier -> field_identifier) == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n          pTVar19 = (Table *)*puVar8;\n          psVar22 = psVar14;\n          pcVar15 = (char *)(*pcVar7)();\n          pCVar17->zColl = pcVar15;\n        }" { (expression_statement "pTVar19 = (Table *)*puVar8;" (assignment_expression "pTVar19 = (Table *)*puVar8" identifier = (cast_expression "(Table *)*puVar8" ( (type_descriptor "Table *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "*puVar8" * identifier))) ;) (expression_statement "psVar22 = psVar14;" (assignment_expression "psVar22 = psVar14" identifier = identifier) ;) (expression_statement "pcVar15 = (char *)(*pcVar7)();" (assignment_expression "pcVar15 = (char *)(*pcVar7)()" identifier = (cast_expression "(char *)(*pcVar7)()" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*pcVar7)()" (parenthesized_expression "(*pcVar7)" ( (pointer_expression "*pcVar7" * identifier) )) (argument_list "()" ( ))))) ;) (expression_statement "pCVar17->zColl = pcVar15;" (assignment_expression "pCVar17->zColl = pcVar15" (field_expression "pCVar17->zColl" identifier -> field_identifier) = identifier) ;) })) (expression_statement "iVar20 = iVar20 + 1;" (assignment_expression "iVar20 = iVar20 + 1" identifier = (binary_expression "iVar20 + 1" identifier + number_literal)) ;) (expression_statement "pCVar17 = pCVar17 + 1;" (assignment_expression "pCVar17 = pCVar17 + 1" identifier = (binary_expression "pCVar17 + 1" identifier + number_literal)) ;) (expression_statement "pEVar21 = pEVar21 + 1;" (assignment_expression "pEVar21 = pEVar21 + 1" identifier = (binary_expression "pEVar21 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar20 < pTab->nCol)" ( (binary_expression "iVar20 < pTab->nCol" identifier < (field_expression "pTab->nCol" identifier -> field_identifier)) )) ;) })) (expression_statement "pTab->szTabRow = 1;" (assignment_expression "pTab->szTabRow = 1" (field_expression "pTab->szTabRow" identifier -> field_identifier) = number_literal) ;) })) (if_statement "if (iVar13 == *(int *)puVar1) {\n    return;\n  }" if (parenthesized_expression "(iVar13 == *(int *)puVar1)" ( (binary_expression "iVar13 == *(int *)puVar1" identifier == (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "(*(code *)PTR___stack_chk_fail_0015ba10)();" (call_expression "(*(code *)PTR___stack_chk_fail_0015ba10)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0015ba10)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0015ba10" * (cast_expression "(code *)PTR___stack_chk_fail_0015ba10" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (if_statement "if (((uint)pTVar19->pIndex & 0x80) != 0) {\n    return;\n  }" if (parenthesized_expression "(((uint)pTVar19->pIndex & 0x80) != 0)" ( (binary_expression "((uint)pTVar19->pIndex & 0x80) != 0" (parenthesized_expression "((uint)pTVar19->pIndex & 0x80)" ( (binary_expression "(uint)pTVar19->pIndex & 0x80" (cast_expression "(uint)pTVar19->pIndex" ( (type_descriptor "uint" type_identifier) ) (field_expression "pTVar19->pIndex" identifier -> field_identifier)) & number_literal) )) != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "pTVar19->pIndex = (Index *)((uint)pTVar19->pIndex | 0x80);" (assignment_expression "pTVar19->pIndex = (Index *)((uint)pTVar19->pIndex | 0x80)" (field_expression "pTVar19->pIndex" identifier -> field_identifier) = (cast_expression "(Index *)((uint)pTVar19->pIndex | 0x80)" ( (type_descriptor "Index *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)pTVar19->pIndex | 0x80)" ( (binary_expression "(uint)pTVar19->pIndex | 0x80" (cast_expression "(uint)pTVar19->pIndex" ( (type_descriptor "uint" type_identifier) ) (field_expression "pTVar19->pIndex" identifier -> field_identifier)) | number_literal) )))) ;) (expression_statement "piVar23 = (int *)pTVar19->nTabRef;" (assignment_expression "piVar23 = (int *)pTVar19->nTabRef" identifier = (cast_expression "(int *)pTVar19->nTabRef" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (field_expression "pTVar19->nTabRef" identifier -> field_identifier))) ;) (expression_statement "psVar22 = (sqlite3 *)psVar22->pVfs;" (assignment_expression "psVar22 = (sqlite3 *)psVar22->pVfs" identifier = (cast_expression "(sqlite3 *)psVar22->pVfs" ( (type_descriptor "sqlite3 *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "psVar22->pVfs" identifier -> field_identifier))) ;) (expression_statement "iVar13 = *piVar23;" (assignment_expression "iVar13 = *piVar23" identifier = (pointer_expression "*piVar23" * identifier)) ;) (expression_statement "piVar18 = piVar23 + 2;" (assignment_expression "piVar18 = piVar23 + 2" identifier = (binary_expression "piVar23 + 2" identifier + number_literal)) ;) (if_statement "if (iVar13 < 1) {\n    return;\n  }" if (parenthesized_expression "(iVar13 < 1)" ( (binary_expression "iVar13 < 1" identifier < number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "iVar20 = 0;" (assignment_expression "iVar20 = 0" identifier = number_literal) ;) (do_statement "do {\n    while ((((Table *)piVar18[4])->tabFlags & 2) == 0) {\nLAB_00078fb0:\n      iVar20 = iVar20 + 1;\n      piVar18 = piVar18 + 0x12;\n      if (iVar13 <= iVar20) {\n        return;\n      }\n    }\n    pSVar2 = (Select *)piVar18[5];\n    if ((Select *)piVar18[5] != (Select *)0x0) {\n      do {\n        pSelect_00 = pSVar2;\n        pSVar2 = pSelect_00->pPrior;\n      } while (pSelect_00->pPrior != (Select *)0x0);\n      sqlite3SelectAddColumnTypeAndCollation\n                ((Parse *)psVar22,(Table *)piVar18[4],pSelect_00,(Select *)&pSelect_00->pSrc);\n      iVar13 = *piVar23;\n      goto LAB_00078fb0;\n    }\n    iVar20 = iVar20 + 1;\n    piVar18 = piVar18 + 0x12;\n    if (iVar13 <= iVar20) {\n      return;\n    }\n  } while( true );" do (compound_statement "{\n    while ((((Table *)piVar18[4])->tabFlags & 2) == 0) {\nLAB_00078fb0:\n      iVar20 = iVar20 + 1;\n      piVar18 = piVar18 + 0x12;\n      if (iVar13 <= iVar20) {\n        return;\n      }\n    }\n    pSVar2 = (Select *)piVar18[5];\n    if ((Select *)piVar18[5] != (Select *)0x0) {\n      do {\n        pSelect_00 = pSVar2;\n        pSVar2 = pSelect_00->pPrior;\n      } while (pSelect_00->pPrior != (Select *)0x0);\n      sqlite3SelectAddColumnTypeAndCollation\n                ((Parse *)psVar22,(Table *)piVar18[4],pSelect_00,(Select *)&pSelect_00->pSrc);\n      iVar13 = *piVar23;\n      goto LAB_00078fb0;\n    }\n    iVar20 = iVar20 + 1;\n    piVar18 = piVar18 + 0x12;\n    if (iVar13 <= iVar20) {\n      return;\n    }\n  }" { (while_statement "while ((((Table *)piVar18[4])->tabFlags & 2) == 0) {\nLAB_00078fb0:\n      iVar20 = iVar20 + 1;\n      piVar18 = piVar18 + 0x12;\n      if (iVar13 <= iVar20) {\n        return;\n      }\n    }" while (parenthesized_expression "((((Table *)piVar18[4])->tabFlags & 2) == 0)" ( (binary_expression "(((Table *)piVar18[4])->tabFlags & 2) == 0" (parenthesized_expression "(((Table *)piVar18[4])->tabFlags & 2)" ( (binary_expression "((Table *)piVar18[4])->tabFlags & 2" (field_expression "((Table *)piVar18[4])->tabFlags" (parenthesized_expression "((Table *)piVar18[4])" ( (cast_expression "(Table *)piVar18[4]" ( (type_descriptor "Table *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar18[4]" identifier [ number_literal ])) )) -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\nLAB_00078fb0:\n      iVar20 = iVar20 + 1;\n      piVar18 = piVar18 + 0x12;\n      if (iVar13 <= iVar20) {\n        return;\n      }\n    }" { (labeled_statement "LAB_00078fb0:\n      iVar20 = iVar20 + 1;" statement_identifier : (expression_statement "iVar20 = iVar20 + 1;" (assignment_expression "iVar20 = iVar20 + 1" identifier = (binary_expression "iVar20 + 1" identifier + number_literal)) ;)) (expression_statement "piVar18 = piVar18 + 0x12;" (assignment_expression "piVar18 = piVar18 + 0x12" identifier = (binary_expression "piVar18 + 0x12" identifier + number_literal)) ;) (if_statement "if (iVar13 <= iVar20) {\n        return;\n      }" if (parenthesized_expression "(iVar13 <= iVar20)" ( (binary_expression "iVar13 <= iVar20" identifier <= identifier) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) })) (expression_statement "pSVar2 = (Select *)piVar18[5];" (assignment_expression "pSVar2 = (Select *)piVar18[5]" identifier = (cast_expression "(Select *)piVar18[5]" ( (type_descriptor "Select *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar18[5]" identifier [ number_literal ]))) ;) (if_statement "if ((Select *)piVar18[5] != (Select *)0x0) {\n      do {\n        pSelect_00 = pSVar2;\n        pSVar2 = pSelect_00->pPrior;\n      } while (pSelect_00->pPrior != (Select *)0x0);\n      sqlite3SelectAddColumnTypeAndCollation\n                ((Parse *)psVar22,(Table *)piVar18[4],pSelect_00,(Select *)&pSelect_00->pSrc);\n      iVar13 = *piVar23;\n      goto LAB_00078fb0;\n    }" if (parenthesized_expression "((Select *)piVar18[5] != (Select *)0x0)" ( (binary_expression "(Select *)piVar18[5] != (Select *)0x0" (cast_expression "(Select *)piVar18[5]" ( (type_descriptor "Select *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar18[5]" identifier [ number_literal ])) != (cast_expression "(Select *)0x0" ( (type_descriptor "Select *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      do {\n        pSelect_00 = pSVar2;\n        pSVar2 = pSelect_00->pPrior;\n      } while (pSelect_00->pPrior != (Select *)0x0);\n      sqlite3SelectAddColumnTypeAndCollation\n                ((Parse *)psVar22,(Table *)piVar18[4],pSelect_00,(Select *)&pSelect_00->pSrc);\n      iVar13 = *piVar23;\n      goto LAB_00078fb0;\n    }" { (do_statement "do {\n        pSelect_00 = pSVar2;\n        pSVar2 = pSelect_00->pPrior;\n      } while (pSelect_00->pPrior != (Select *)0x0);" do (compound_statement "{\n        pSelect_00 = pSVar2;\n        pSVar2 = pSelect_00->pPrior;\n      }" { (expression_statement "pSelect_00 = pSVar2;" (assignment_expression "pSelect_00 = pSVar2" identifier = identifier) ;) (expression_statement "pSVar2 = pSelect_00->pPrior;" (assignment_expression "pSVar2 = pSelect_00->pPrior" identifier = (field_expression "pSelect_00->pPrior" identifier -> field_identifier)) ;) }) while (parenthesized_expression "(pSelect_00->pPrior != (Select *)0x0)" ( (binary_expression "pSelect_00->pPrior != (Select *)0x0" (field_expression "pSelect_00->pPrior" identifier -> field_identifier) != (cast_expression "(Select *)0x0" ( (type_descriptor "Select *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) ;) (expression_statement "sqlite3SelectAddColumnTypeAndCollation\n                ((Parse *)psVar22,(Table *)piVar18[4],pSelect_00,(Select *)&pSelect_00->pSrc);" (call_expression "sqlite3SelectAddColumnTypeAndCollation\n                ((Parse *)psVar22,(Table *)piVar18[4],pSelect_00,(Select *)&pSelect_00->pSrc)" identifier (argument_list "((Parse *)psVar22,(Table *)piVar18[4],pSelect_00,(Select *)&pSelect_00->pSrc)" ( (cast_expression "(Parse *)psVar22" ( (type_descriptor "Parse *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) , (cast_expression "(Table *)piVar18[4]" ( (type_descriptor "Table *" type_identifier (abstract_pointer_declarator "*" *)) ) (subscript_expression "piVar18[4]" identifier [ number_literal ])) , identifier , (cast_expression "(Select *)&pSelect_00->pSrc" ( (type_descriptor "Select *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pSelect_00->pSrc" & (field_expression "pSelect_00->pSrc" identifier -> field_identifier))) ))) ;) (expression_statement "iVar13 = *piVar23;" (assignment_expression "iVar13 = *piVar23" identifier = (pointer_expression "*piVar23" * identifier)) ;) (goto_statement "goto LAB_00078fb0;" goto statement_identifier ;) })) (expression_statement "iVar20 = iVar20 + 1;" (assignment_expression "iVar20 = iVar20 + 1" identifier = (binary_expression "iVar20 + 1" identifier + number_literal)) ;) (expression_statement "piVar18 = piVar18 + 0x12;" (assignment_expression "piVar18 = piVar18 + 0x12" identifier = (binary_expression "piVar18 + 0x12" identifier + number_literal)) ;) (if_statement "if (iVar13 <= iVar20) {\n      return;\n    }" if (parenthesized_expression "(iVar13 <= iVar20)" ( (binary_expression "iVar13 <= iVar20" identifier <= identifier) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit "void FUN_00078cd0(int *param_1,int param_2,int *param_3,undefined4 *param_4)\n\n{\n  code *pcVar1;\n  code *pcVar2;\n  code *pcVar3;\n  code *pcVar4;\n  code *pcVar5;\n  int *piVar6;\n  int iVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  int *piVar11;\n  int *piVar12;\n  uint uVar13;\n  int *piVar14;\n  int iVar15;\n  int *piVar16;\n  int iVar17;\n  undefined *puVar18;\n  undefined4 local_4c;\n  undefined4 local_48;\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined4 local_3c;\n  undefined4 local_38;\n  undefined4 local_34;\n  undefined4 local_30;\n  int local_2c;\n  \n  puVar18 = PTR___stack_chk_guard_0015ba2c;\n  piVar11 = (int *)*param_1;\n  local_2c = *(int *)PTR___stack_chk_guard_0015ba2c;\n  piVar12 = piVar11;\n  iVar10 = param_2;\n  if (*(char *)((int)piVar11 + 0x51) == '\0') {\n    local_48 = *param_4;\n    piVar14 = *(int **)(param_2 + 4);\n    local_4c = 0;\n    local_44 = 0;\n    local_40 = 0;\n    local_3c = 0;\n    local_38 = 0;\n    local_34 = 0;\n    local_30 = 0;\n    if (0 < *(short *)(param_2 + 0x2a)) {\n      piVar16 = (int *)(*param_3 + 4);\n      iVar17 = 0;\n      pcVar1 = (code *)(PTR_LAB_0015b6c0 + 0x4814);\n      pcVar2 = (code *)(PTR_LAB_0015b65c + 0x5914);\n      pcVar3 = (code *)(PTR_LAB_0015b740 + 0x75dc);\n      pcVar4 = (code *)(PTR_LAB_0015b700 + 0x7748);\n      pcVar5 = (code *)(PTR_LAB_0015b6d8 + -0x23a0);\n      do {\n        iVar10 = *piVar16;\n        iVar7 = (*pcVar1)(&local_4c,iVar10,0,0,0);\n        iVar15 = (*pcVar2)(iVar10);\n        *(char *)((int)piVar14 + 0xd) = (char)iVar15;\n        if (iVar7 != 0) {\n          uVar8 = (*(code *)PTR_strlen_0015b9c4)(iVar7);\n          iVar15 = *piVar14;\n          uVar8 = uVar8 & 0x3fffffff;\n          if (iVar15 == 0) {\n            uVar9 = 0;\n            uVar13 = uVar8;\n          }\n          else {\n            uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);\n            uVar9 = uVar9 & 0x3fffffff;\n            uVar13 = uVar8 + uVar9;\n          }\n          iVar15 = (*pcVar4)(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f);\n          *piVar14 = iVar15;\n          if (iVar15 == 0) {\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n            *(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;\n          }\n        }\n        if (iVar15 == 0) {\n          *(undefined1 *)((int)piVar14 + 0xd) = 0x41;\n        }\n        piVar12 = param_1;\n        piVar6 = (int *)(*pcVar3)();\n        if ((piVar6 != (int *)0x0) && (piVar14[2] == 0)) {\n          iVar10 = *piVar6;\n          piVar12 = piVar11;\n          iVar15 = (*pcVar5)();\n          piVar14[2] = iVar15;\n        }\n        iVar17 = iVar17 + 1;\n        piVar14 = piVar14 + 4;\n        piVar16 = piVar16 + 5;\n      } while (iVar17 < *(short *)(param_2 + 0x2a));\n    }\n    *(undefined2 *)(param_2 + 0x2e) = 1;\n  }\n  if (local_2c == *(int *)puVar18) {\n    return;\n  }\n  puVar18 = PTR___stack_chk_fail_0015ba10;\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  puVar18 = puVar18 + 0xea668;\n  if ((*(uint *)(iVar10 + 8) & 0x80) != 0) {\n    return;\n  }\n  *(uint *)(iVar10 + 8) = *(uint *)(iVar10 + 8) | 0x80;\n  piVar11 = *(int **)(iVar10 + 0x20);\n  iVar17 = *piVar12;\n  iVar10 = *piVar11;\n  piVar12 = piVar11 + 2;\n  if (iVar10 < 1) {\n    return;\n  }\n  iVar15 = 0;\n  do {\n    while ((*(uint *)(piVar12[4] + 0x24) & 2) == 0) {\nLAB_00078fb0:\n      iVar15 = iVar15 + 1;\n      piVar12 = piVar12 + 0x12;\n      if (iVar10 <= iVar15) {\n        return;\n      }\n    }\n    iVar7 = piVar12[5];\n    if (piVar12[5] != 0) {\n      do {\n        iVar10 = iVar7;\n        iVar7 = *(int *)(iVar10 + 0x34);\n      } while (*(int *)(iVar10 + 0x34) != 0);\n      FUN_00078cd0(iVar17,piVar12[4],iVar10,iVar10 + 0x20,puVar18);\n      iVar10 = *piVar11;\n      goto LAB_00078fb0;\n    }\n    iVar15 = iVar15 + 1;\n    piVar12 = piVar12 + 0x12;\n    if (iVar10 <= iVar15) {\n      return;\n    }\n  } while( true );\n}\n\n" (function_definition "void FUN_00078cd0(int *param_1,int param_2,int *param_3,undefined4 *param_4)\n\n{\n  code *pcVar1;\n  code *pcVar2;\n  code *pcVar3;\n  code *pcVar4;\n  code *pcVar5;\n  int *piVar6;\n  int iVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  int *piVar11;\n  int *piVar12;\n  uint uVar13;\n  int *piVar14;\n  int iVar15;\n  int *piVar16;\n  int iVar17;\n  undefined *puVar18;\n  undefined4 local_4c;\n  undefined4 local_48;\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined4 local_3c;\n  undefined4 local_38;\n  undefined4 local_34;\n  undefined4 local_30;\n  int local_2c;\n  \n  puVar18 = PTR___stack_chk_guard_0015ba2c;\n  piVar11 = (int *)*param_1;\n  local_2c = *(int *)PTR___stack_chk_guard_0015ba2c;\n  piVar12 = piVar11;\n  iVar10 = param_2;\n  if (*(char *)((int)piVar11 + 0x51) == '\0') {\n    local_48 = *param_4;\n    piVar14 = *(int **)(param_2 + 4);\n    local_4c = 0;\n    local_44 = 0;\n    local_40 = 0;\n    local_3c = 0;\n    local_38 = 0;\n    local_34 = 0;\n    local_30 = 0;\n    if (0 < *(short *)(param_2 + 0x2a)) {\n      piVar16 = (int *)(*param_3 + 4);\n      iVar17 = 0;\n      pcVar1 = (code *)(PTR_LAB_0015b6c0 + 0x4814);\n      pcVar2 = (code *)(PTR_LAB_0015b65c + 0x5914);\n      pcVar3 = (code *)(PTR_LAB_0015b740 + 0x75dc);\n      pcVar4 = (code *)(PTR_LAB_0015b700 + 0x7748);\n      pcVar5 = (code *)(PTR_LAB_0015b6d8 + -0x23a0);\n      do {\n        iVar10 = *piVar16;\n        iVar7 = (*pcVar1)(&local_4c,iVar10,0,0,0);\n        iVar15 = (*pcVar2)(iVar10);\n        *(char *)((int)piVar14 + 0xd) = (char)iVar15;\n        if (iVar7 != 0) {\n          uVar8 = (*(code *)PTR_strlen_0015b9c4)(iVar7);\n          iVar15 = *piVar14;\n          uVar8 = uVar8 & 0x3fffffff;\n          if (iVar15 == 0) {\n            uVar9 = 0;\n            uVar13 = uVar8;\n          }\n          else {\n            uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);\n            uVar9 = uVar9 & 0x3fffffff;\n            uVar13 = uVar8 + uVar9;\n          }\n          iVar15 = (*pcVar4)(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f);\n          *piVar14 = iVar15;\n          if (iVar15 == 0) {\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n            *(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;\n          }\n        }\n        if (iVar15 == 0) {\n          *(undefined1 *)((int)piVar14 + 0xd) = 0x41;\n        }\n        piVar12 = param_1;\n        piVar6 = (int *)(*pcVar3)();\n        if ((piVar6 != (int *)0x0) && (piVar14[2] == 0)) {\n          iVar10 = *piVar6;\n          piVar12 = piVar11;\n          iVar15 = (*pcVar5)();\n          piVar14[2] = iVar15;\n        }\n        iVar17 = iVar17 + 1;\n        piVar14 = piVar14 + 4;\n        piVar16 = piVar16 + 5;\n      } while (iVar17 < *(short *)(param_2 + 0x2a));\n    }\n    *(undefined2 *)(param_2 + 0x2e) = 1;\n  }\n  if (local_2c == *(int *)puVar18) {\n    return;\n  }\n  puVar18 = PTR___stack_chk_fail_0015ba10;\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  puVar18 = puVar18 + 0xea668;\n  if ((*(uint *)(iVar10 + 8) & 0x80) != 0) {\n    return;\n  }\n  *(uint *)(iVar10 + 8) = *(uint *)(iVar10 + 8) | 0x80;\n  piVar11 = *(int **)(iVar10 + 0x20);\n  iVar17 = *piVar12;\n  iVar10 = *piVar11;\n  piVar12 = piVar11 + 2;\n  if (iVar10 < 1) {\n    return;\n  }\n  iVar15 = 0;\n  do {\n    while ((*(uint *)(piVar12[4] + 0x24) & 2) == 0) {\nLAB_00078fb0:\n      iVar15 = iVar15 + 1;\n      piVar12 = piVar12 + 0x12;\n      if (iVar10 <= iVar15) {\n        return;\n      }\n    }\n    iVar7 = piVar12[5];\n    if (piVar12[5] != 0) {\n      do {\n        iVar10 = iVar7;\n        iVar7 = *(int *)(iVar10 + 0x34);\n      } while (*(int *)(iVar10 + 0x34) != 0);\n      FUN_00078cd0(iVar17,piVar12[4],iVar10,iVar10 + 0x20,puVar18);\n      iVar10 = *piVar11;\n      goto LAB_00078fb0;\n    }\n    iVar15 = iVar15 + 1;\n    piVar12 = piVar12 + 0x12;\n    if (iVar10 <= iVar15) {\n      return;\n    }\n  } while( true );\n}" primitive_type (function_declarator "FUN_00078cd0(int *param_1,int param_2,int *param_3,undefined4 *param_4)" identifier (parameter_list "(int *param_1,int param_2,int *param_3,undefined4 *param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) ))) (compound_statement "{\n  code *pcVar1;\n  code *pcVar2;\n  code *pcVar3;\n  code *pcVar4;\n  code *pcVar5;\n  int *piVar6;\n  int iVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  int *piVar11;\n  int *piVar12;\n  uint uVar13;\n  int *piVar14;\n  int iVar15;\n  int *piVar16;\n  int iVar17;\n  undefined *puVar18;\n  undefined4 local_4c;\n  undefined4 local_48;\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined4 local_3c;\n  undefined4 local_38;\n  undefined4 local_34;\n  undefined4 local_30;\n  int local_2c;\n  \n  puVar18 = PTR___stack_chk_guard_0015ba2c;\n  piVar11 = (int *)*param_1;\n  local_2c = *(int *)PTR___stack_chk_guard_0015ba2c;\n  piVar12 = piVar11;\n  iVar10 = param_2;\n  if (*(char *)((int)piVar11 + 0x51) == '\0') {\n    local_48 = *param_4;\n    piVar14 = *(int **)(param_2 + 4);\n    local_4c = 0;\n    local_44 = 0;\n    local_40 = 0;\n    local_3c = 0;\n    local_38 = 0;\n    local_34 = 0;\n    local_30 = 0;\n    if (0 < *(short *)(param_2 + 0x2a)) {\n      piVar16 = (int *)(*param_3 + 4);\n      iVar17 = 0;\n      pcVar1 = (code *)(PTR_LAB_0015b6c0 + 0x4814);\n      pcVar2 = (code *)(PTR_LAB_0015b65c + 0x5914);\n      pcVar3 = (code *)(PTR_LAB_0015b740 + 0x75dc);\n      pcVar4 = (code *)(PTR_LAB_0015b700 + 0x7748);\n      pcVar5 = (code *)(PTR_LAB_0015b6d8 + -0x23a0);\n      do {\n        iVar10 = *piVar16;\n        iVar7 = (*pcVar1)(&local_4c,iVar10,0,0,0);\n        iVar15 = (*pcVar2)(iVar10);\n        *(char *)((int)piVar14 + 0xd) = (char)iVar15;\n        if (iVar7 != 0) {\n          uVar8 = (*(code *)PTR_strlen_0015b9c4)(iVar7);\n          iVar15 = *piVar14;\n          uVar8 = uVar8 & 0x3fffffff;\n          if (iVar15 == 0) {\n            uVar9 = 0;\n            uVar13 = uVar8;\n          }\n          else {\n            uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);\n            uVar9 = uVar9 & 0x3fffffff;\n            uVar13 = uVar8 + uVar9;\n          }\n          iVar15 = (*pcVar4)(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f);\n          *piVar14 = iVar15;\n          if (iVar15 == 0) {\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n            *(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;\n          }\n        }\n        if (iVar15 == 0) {\n          *(undefined1 *)((int)piVar14 + 0xd) = 0x41;\n        }\n        piVar12 = param_1;\n        piVar6 = (int *)(*pcVar3)();\n        if ((piVar6 != (int *)0x0) && (piVar14[2] == 0)) {\n          iVar10 = *piVar6;\n          piVar12 = piVar11;\n          iVar15 = (*pcVar5)();\n          piVar14[2] = iVar15;\n        }\n        iVar17 = iVar17 + 1;\n        piVar14 = piVar14 + 4;\n        piVar16 = piVar16 + 5;\n      } while (iVar17 < *(short *)(param_2 + 0x2a));\n    }\n    *(undefined2 *)(param_2 + 0x2e) = 1;\n  }\n  if (local_2c == *(int *)puVar18) {\n    return;\n  }\n  puVar18 = PTR___stack_chk_fail_0015ba10;\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  puVar18 = puVar18 + 0xea668;\n  if ((*(uint *)(iVar10 + 8) & 0x80) != 0) {\n    return;\n  }\n  *(uint *)(iVar10 + 8) = *(uint *)(iVar10 + 8) | 0x80;\n  piVar11 = *(int **)(iVar10 + 0x20);\n  iVar17 = *piVar12;\n  iVar10 = *piVar11;\n  piVar12 = piVar11 + 2;\n  if (iVar10 < 1) {\n    return;\n  }\n  iVar15 = 0;\n  do {\n    while ((*(uint *)(piVar12[4] + 0x24) & 2) == 0) {\nLAB_00078fb0:\n      iVar15 = iVar15 + 1;\n      piVar12 = piVar12 + 0x12;\n      if (iVar10 <= iVar15) {\n        return;\n      }\n    }\n    iVar7 = piVar12[5];\n    if (piVar12[5] != 0) {\n      do {\n        iVar10 = iVar7;\n        iVar7 = *(int *)(iVar10 + 0x34);\n      } while (*(int *)(iVar10 + 0x34) != 0);\n      FUN_00078cd0(iVar17,piVar12[4],iVar10,iVar10 + 0x20,puVar18);\n      iVar10 = *piVar11;\n      goto LAB_00078fb0;\n    }\n    iVar15 = iVar15 + 1;\n    piVar12 = piVar12 + 0x12;\n    if (iVar10 <= iVar15) {\n      return;\n    }\n  } while( true );\n}" { (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "code *pcVar2;" type_identifier (pointer_declarator "*pcVar2" * identifier) ;) (declaration "code *pcVar3;" type_identifier (pointer_declarator "*pcVar3" * identifier) ;) (declaration "code *pcVar4;" type_identifier (pointer_declarator "*pcVar4" * identifier) ;) (declaration "code *pcVar5;" type_identifier (pointer_declarator "*pcVar5" * identifier) ;) (declaration "int *piVar6;" primitive_type (pointer_declarator "*piVar6" * identifier) ;) (declaration "int iVar7;" primitive_type identifier ;) (declaration "uint uVar8;" type_identifier identifier ;) (declaration "uint uVar9;" type_identifier identifier ;) (declaration "int iVar10;" primitive_type identifier ;) (declaration "int *piVar11;" primitive_type (pointer_declarator "*piVar11" * identifier) ;) (declaration "int *piVar12;" primitive_type (pointer_declarator "*piVar12" * identifier) ;) (declaration "uint uVar13;" type_identifier identifier ;) (declaration "int *piVar14;" primitive_type (pointer_declarator "*piVar14" * identifier) ;) (declaration "int iVar15;" primitive_type identifier ;) (declaration "int *piVar16;" primitive_type (pointer_declarator "*piVar16" * identifier) ;) (declaration "int iVar17;" primitive_type identifier ;) (declaration "undefined *puVar18;" type_identifier (pointer_declarator "*puVar18" * identifier) ;) (declaration "undefined4 local_4c;" type_identifier identifier ;) (declaration "undefined4 local_48;" type_identifier identifier ;) (declaration "undefined4 local_44;" type_identifier identifier ;) (declaration "undefined4 local_40;" type_identifier identifier ;) (declaration "undefined4 local_3c;" type_identifier identifier ;) (declaration "undefined4 local_38;" type_identifier identifier ;) (declaration "undefined4 local_34;" type_identifier identifier ;) (declaration "undefined4 local_30;" type_identifier identifier ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar18 = PTR___stack_chk_guard_0015ba2c;" (assignment_expression "puVar18 = PTR___stack_chk_guard_0015ba2c" identifier = identifier) ;) (expression_statement "piVar11 = (int *)*param_1;" (assignment_expression "piVar11 = (int *)*param_1" identifier = (cast_expression "(int *)*param_1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "*param_1" * identifier))) ;) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_0015ba2c;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_0015ba2c" identifier = (pointer_expression "*(int *)PTR___stack_chk_guard_0015ba2c" * (cast_expression "(int *)PTR___stack_chk_guard_0015ba2c" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) (expression_statement "piVar12 = piVar11;" (assignment_expression "piVar12 = piVar11" identifier = identifier) ;) (expression_statement "iVar10 = param_2;" (assignment_expression "iVar10 = param_2" identifier = identifier) ;) (if_statement "if (*(char *)((int)piVar11 + 0x51) == '\0') {\n    local_48 = *param_4;\n    piVar14 = *(int **)(param_2 + 4);\n    local_4c = 0;\n    local_44 = 0;\n    local_40 = 0;\n    local_3c = 0;\n    local_38 = 0;\n    local_34 = 0;\n    local_30 = 0;\n    if (0 < *(short *)(param_2 + 0x2a)) {\n      piVar16 = (int *)(*param_3 + 4);\n      iVar17 = 0;\n      pcVar1 = (code *)(PTR_LAB_0015b6c0 + 0x4814);\n      pcVar2 = (code *)(PTR_LAB_0015b65c + 0x5914);\n      pcVar3 = (code *)(PTR_LAB_0015b740 + 0x75dc);\n      pcVar4 = (code *)(PTR_LAB_0015b700 + 0x7748);\n      pcVar5 = (code *)(PTR_LAB_0015b6d8 + -0x23a0);\n      do {\n        iVar10 = *piVar16;\n        iVar7 = (*pcVar1)(&local_4c,iVar10,0,0,0);\n        iVar15 = (*pcVar2)(iVar10);\n        *(char *)((int)piVar14 + 0xd) = (char)iVar15;\n        if (iVar7 != 0) {\n          uVar8 = (*(code *)PTR_strlen_0015b9c4)(iVar7);\n          iVar15 = *piVar14;\n          uVar8 = uVar8 & 0x3fffffff;\n          if (iVar15 == 0) {\n            uVar9 = 0;\n            uVar13 = uVar8;\n          }\n          else {\n            uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);\n            uVar9 = uVar9 & 0x3fffffff;\n            uVar13 = uVar8 + uVar9;\n          }\n          iVar15 = (*pcVar4)(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f);\n          *piVar14 = iVar15;\n          if (iVar15 == 0) {\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n            *(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;\n          }\n        }\n        if (iVar15 == 0) {\n          *(undefined1 *)((int)piVar14 + 0xd) = 0x41;\n        }\n        piVar12 = param_1;\n        piVar6 = (int *)(*pcVar3)();\n        if ((piVar6 != (int *)0x0) && (piVar14[2] == 0)) {\n          iVar10 = *piVar6;\n          piVar12 = piVar11;\n          iVar15 = (*pcVar5)();\n          piVar14[2] = iVar15;\n        }\n        iVar17 = iVar17 + 1;\n        piVar14 = piVar14 + 4;\n        piVar16 = piVar16 + 5;\n      } while (iVar17 < *(short *)(param_2 + 0x2a));\n    }\n    *(undefined2 *)(param_2 + 0x2e) = 1;\n  }" if (parenthesized_expression "(*(char *)((int)piVar11 + 0x51) == '\0')" ( (binary_expression "*(char *)((int)piVar11 + 0x51) == '\0'" (pointer_expression "*(char *)((int)piVar11 + 0x51)" * (cast_expression "(char *)((int)piVar11 + 0x51)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar11 + 0x51)" ( (binary_expression "(int)piVar11 + 0x51" (cast_expression "(int)piVar11" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    local_48 = *param_4;\n    piVar14 = *(int **)(param_2 + 4);\n    local_4c = 0;\n    local_44 = 0;\n    local_40 = 0;\n    local_3c = 0;\n    local_38 = 0;\n    local_34 = 0;\n    local_30 = 0;\n    if (0 < *(short *)(param_2 + 0x2a)) {\n      piVar16 = (int *)(*param_3 + 4);\n      iVar17 = 0;\n      pcVar1 = (code *)(PTR_LAB_0015b6c0 + 0x4814);\n      pcVar2 = (code *)(PTR_LAB_0015b65c + 0x5914);\n      pcVar3 = (code *)(PTR_LAB_0015b740 + 0x75dc);\n      pcVar4 = (code *)(PTR_LAB_0015b700 + 0x7748);\n      pcVar5 = (code *)(PTR_LAB_0015b6d8 + -0x23a0);\n      do {\n        iVar10 = *piVar16;\n        iVar7 = (*pcVar1)(&local_4c,iVar10,0,0,0);\n        iVar15 = (*pcVar2)(iVar10);\n        *(char *)((int)piVar14 + 0xd) = (char)iVar15;\n        if (iVar7 != 0) {\n          uVar8 = (*(code *)PTR_strlen_0015b9c4)(iVar7);\n          iVar15 = *piVar14;\n          uVar8 = uVar8 & 0x3fffffff;\n          if (iVar15 == 0) {\n            uVar9 = 0;\n            uVar13 = uVar8;\n          }\n          else {\n            uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);\n            uVar9 = uVar9 & 0x3fffffff;\n            uVar13 = uVar8 + uVar9;\n          }\n          iVar15 = (*pcVar4)(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f);\n          *piVar14 = iVar15;\n          if (iVar15 == 0) {\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n            *(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;\n          }\n        }\n        if (iVar15 == 0) {\n          *(undefined1 *)((int)piVar14 + 0xd) = 0x41;\n        }\n        piVar12 = param_1;\n        piVar6 = (int *)(*pcVar3)();\n        if ((piVar6 != (int *)0x0) && (piVar14[2] == 0)) {\n          iVar10 = *piVar6;\n          piVar12 = piVar11;\n          iVar15 = (*pcVar5)();\n          piVar14[2] = iVar15;\n        }\n        iVar17 = iVar17 + 1;\n        piVar14 = piVar14 + 4;\n        piVar16 = piVar16 + 5;\n      } while (iVar17 < *(short *)(param_2 + 0x2a));\n    }\n    *(undefined2 *)(param_2 + 0x2e) = 1;\n  }" { (expression_statement "local_48 = *param_4;" (assignment_expression "local_48 = *param_4" identifier = (pointer_expression "*param_4" * identifier)) ;) (expression_statement "piVar14 = *(int **)(param_2 + 4);" (assignment_expression "piVar14 = *(int **)(param_2 + 4)" identifier = (pointer_expression "*(int **)(param_2 + 4)" * (cast_expression "(int **)(param_2 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_2 + 4)" ( (binary_expression "param_2 + 4" identifier + number_literal) ))))) ;) (expression_statement "local_4c = 0;" (assignment_expression "local_4c = 0" identifier = number_literal) ;) (expression_statement "local_44 = 0;" (assignment_expression "local_44 = 0" identifier = number_literal) ;) (expression_statement "local_40 = 0;" (assignment_expression "local_40 = 0" identifier = number_literal) ;) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" identifier = number_literal) ;) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" identifier = number_literal) ;) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" identifier = number_literal) ;) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" identifier = number_literal) ;) (if_statement "if (0 < *(short *)(param_2 + 0x2a)) {\n      piVar16 = (int *)(*param_3 + 4);\n      iVar17 = 0;\n      pcVar1 = (code *)(PTR_LAB_0015b6c0 + 0x4814);\n      pcVar2 = (code *)(PTR_LAB_0015b65c + 0x5914);\n      pcVar3 = (code *)(PTR_LAB_0015b740 + 0x75dc);\n      pcVar4 = (code *)(PTR_LAB_0015b700 + 0x7748);\n      pcVar5 = (code *)(PTR_LAB_0015b6d8 + -0x23a0);\n      do {\n        iVar10 = *piVar16;\n        iVar7 = (*pcVar1)(&local_4c,iVar10,0,0,0);\n        iVar15 = (*pcVar2)(iVar10);\n        *(char *)((int)piVar14 + 0xd) = (char)iVar15;\n        if (iVar7 != 0) {\n          uVar8 = (*(code *)PTR_strlen_0015b9c4)(iVar7);\n          iVar15 = *piVar14;\n          uVar8 = uVar8 & 0x3fffffff;\n          if (iVar15 == 0) {\n            uVar9 = 0;\n            uVar13 = uVar8;\n          }\n          else {\n            uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);\n            uVar9 = uVar9 & 0x3fffffff;\n            uVar13 = uVar8 + uVar9;\n          }\n          iVar15 = (*pcVar4)(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f);\n          *piVar14 = iVar15;\n          if (iVar15 == 0) {\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n            *(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;\n          }\n        }\n        if (iVar15 == 0) {\n          *(undefined1 *)((int)piVar14 + 0xd) = 0x41;\n        }\n        piVar12 = param_1;\n        piVar6 = (int *)(*pcVar3)();\n        if ((piVar6 != (int *)0x0) && (piVar14[2] == 0)) {\n          iVar10 = *piVar6;\n          piVar12 = piVar11;\n          iVar15 = (*pcVar5)();\n          piVar14[2] = iVar15;\n        }\n        iVar17 = iVar17 + 1;\n        piVar14 = piVar14 + 4;\n        piVar16 = piVar16 + 5;\n      } while (iVar17 < *(short *)(param_2 + 0x2a));\n    }" if (parenthesized_expression "(0 < *(short *)(param_2 + 0x2a))" ( (binary_expression "0 < *(short *)(param_2 + 0x2a)" number_literal < (pointer_expression "*(short *)(param_2 + 0x2a)" * (cast_expression "(short *)(param_2 + 0x2a)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2a)" ( (binary_expression "param_2 + 0x2a" identifier + number_literal) ))))) )) (compound_statement "{\n      piVar16 = (int *)(*param_3 + 4);\n      iVar17 = 0;\n      pcVar1 = (code *)(PTR_LAB_0015b6c0 + 0x4814);\n      pcVar2 = (code *)(PTR_LAB_0015b65c + 0x5914);\n      pcVar3 = (code *)(PTR_LAB_0015b740 + 0x75dc);\n      pcVar4 = (code *)(PTR_LAB_0015b700 + 0x7748);\n      pcVar5 = (code *)(PTR_LAB_0015b6d8 + -0x23a0);\n      do {\n        iVar10 = *piVar16;\n        iVar7 = (*pcVar1)(&local_4c,iVar10,0,0,0);\n        iVar15 = (*pcVar2)(iVar10);\n        *(char *)((int)piVar14 + 0xd) = (char)iVar15;\n        if (iVar7 != 0) {\n          uVar8 = (*(code *)PTR_strlen_0015b9c4)(iVar7);\n          iVar15 = *piVar14;\n          uVar8 = uVar8 & 0x3fffffff;\n          if (iVar15 == 0) {\n            uVar9 = 0;\n            uVar13 = uVar8;\n          }\n          else {\n            uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);\n            uVar9 = uVar9 & 0x3fffffff;\n            uVar13 = uVar8 + uVar9;\n          }\n          iVar15 = (*pcVar4)(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f);\n          *piVar14 = iVar15;\n          if (iVar15 == 0) {\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n            *(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;\n          }\n        }\n        if (iVar15 == 0) {\n          *(undefined1 *)((int)piVar14 + 0xd) = 0x41;\n        }\n        piVar12 = param_1;\n        piVar6 = (int *)(*pcVar3)();\n        if ((piVar6 != (int *)0x0) && (piVar14[2] == 0)) {\n          iVar10 = *piVar6;\n          piVar12 = piVar11;\n          iVar15 = (*pcVar5)();\n          piVar14[2] = iVar15;\n        }\n        iVar17 = iVar17 + 1;\n        piVar14 = piVar14 + 4;\n        piVar16 = piVar16 + 5;\n      } while (iVar17 < *(short *)(param_2 + 0x2a));\n    }" { (expression_statement "piVar16 = (int *)(*param_3 + 4);" (assignment_expression "piVar16 = (int *)(*param_3 + 4)" identifier = (cast_expression "(int *)(*param_3 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_3 + 4)" ( (binary_expression "*param_3 + 4" (pointer_expression "*param_3" * identifier) + number_literal) )))) ;) (expression_statement "iVar17 = 0;" (assignment_expression "iVar17 = 0" identifier = number_literal) ;) (expression_statement "pcVar1 = (code *)(PTR_LAB_0015b6c0 + 0x4814);" (assignment_expression "pcVar1 = (code *)(PTR_LAB_0015b6c0 + 0x4814)" identifier = (cast_expression "(code *)(PTR_LAB_0015b6c0 + 0x4814)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b6c0 + 0x4814)" ( (binary_expression "PTR_LAB_0015b6c0 + 0x4814" identifier + number_literal) )))) ;) (expression_statement "pcVar2 = (code *)(PTR_LAB_0015b65c + 0x5914);" (assignment_expression "pcVar2 = (code *)(PTR_LAB_0015b65c + 0x5914)" identifier = (cast_expression "(code *)(PTR_LAB_0015b65c + 0x5914)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b65c + 0x5914)" ( (binary_expression "PTR_LAB_0015b65c + 0x5914" identifier + number_literal) )))) ;) (expression_statement "pcVar3 = (code *)(PTR_LAB_0015b740 + 0x75dc);" (assignment_expression "pcVar3 = (code *)(PTR_LAB_0015b740 + 0x75dc)" identifier = (cast_expression "(code *)(PTR_LAB_0015b740 + 0x75dc)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b740 + 0x75dc)" ( (binary_expression "PTR_LAB_0015b740 + 0x75dc" identifier + number_literal) )))) ;) (expression_statement "pcVar4 = (code *)(PTR_LAB_0015b700 + 0x7748);" (assignment_expression "pcVar4 = (code *)(PTR_LAB_0015b700 + 0x7748)" identifier = (cast_expression "(code *)(PTR_LAB_0015b700 + 0x7748)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b700 + 0x7748)" ( (binary_expression "PTR_LAB_0015b700 + 0x7748" identifier + number_literal) )))) ;) (expression_statement "pcVar5 = (code *)(PTR_LAB_0015b6d8 + -0x23a0);" (assignment_expression "pcVar5 = (code *)(PTR_LAB_0015b6d8 + -0x23a0)" identifier = (cast_expression "(code *)(PTR_LAB_0015b6d8 + -0x23a0)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b6d8 + -0x23a0)" ( (binary_expression "PTR_LAB_0015b6d8 + -0x23a0" identifier + number_literal) )))) ;) (do_statement "do {\n        iVar10 = *piVar16;\n        iVar7 = (*pcVar1)(&local_4c,iVar10,0,0,0);\n        iVar15 = (*pcVar2)(iVar10);\n        *(char *)((int)piVar14 + 0xd) = (char)iVar15;\n        if (iVar7 != 0) {\n          uVar8 = (*(code *)PTR_strlen_0015b9c4)(iVar7);\n          iVar15 = *piVar14;\n          uVar8 = uVar8 & 0x3fffffff;\n          if (iVar15 == 0) {\n            uVar9 = 0;\n            uVar13 = uVar8;\n          }\n          else {\n            uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);\n            uVar9 = uVar9 & 0x3fffffff;\n            uVar13 = uVar8 + uVar9;\n          }\n          iVar15 = (*pcVar4)(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f);\n          *piVar14 = iVar15;\n          if (iVar15 == 0) {\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n            *(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;\n          }\n        }\n        if (iVar15 == 0) {\n          *(undefined1 *)((int)piVar14 + 0xd) = 0x41;\n        }\n        piVar12 = param_1;\n        piVar6 = (int *)(*pcVar3)();\n        if ((piVar6 != (int *)0x0) && (piVar14[2] == 0)) {\n          iVar10 = *piVar6;\n          piVar12 = piVar11;\n          iVar15 = (*pcVar5)();\n          piVar14[2] = iVar15;\n        }\n        iVar17 = iVar17 + 1;\n        piVar14 = piVar14 + 4;\n        piVar16 = piVar16 + 5;\n      } while (iVar17 < *(short *)(param_2 + 0x2a));" do (compound_statement "{\n        iVar10 = *piVar16;\n        iVar7 = (*pcVar1)(&local_4c,iVar10,0,0,0);\n        iVar15 = (*pcVar2)(iVar10);\n        *(char *)((int)piVar14 + 0xd) = (char)iVar15;\n        if (iVar7 != 0) {\n          uVar8 = (*(code *)PTR_strlen_0015b9c4)(iVar7);\n          iVar15 = *piVar14;\n          uVar8 = uVar8 & 0x3fffffff;\n          if (iVar15 == 0) {\n            uVar9 = 0;\n            uVar13 = uVar8;\n          }\n          else {\n            uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);\n            uVar9 = uVar9 & 0x3fffffff;\n            uVar13 = uVar8 + uVar9;\n          }\n          iVar15 = (*pcVar4)(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f);\n          *piVar14 = iVar15;\n          if (iVar15 == 0) {\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n            *(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;\n          }\n        }\n        if (iVar15 == 0) {\n          *(undefined1 *)((int)piVar14 + 0xd) = 0x41;\n        }\n        piVar12 = param_1;\n        piVar6 = (int *)(*pcVar3)();\n        if ((piVar6 != (int *)0x0) && (piVar14[2] == 0)) {\n          iVar10 = *piVar6;\n          piVar12 = piVar11;\n          iVar15 = (*pcVar5)();\n          piVar14[2] = iVar15;\n        }\n        iVar17 = iVar17 + 1;\n        piVar14 = piVar14 + 4;\n        piVar16 = piVar16 + 5;\n      }" { (expression_statement "iVar10 = *piVar16;" (assignment_expression "iVar10 = *piVar16" identifier = (pointer_expression "*piVar16" * identifier)) ;) (expression_statement "iVar7 = (*pcVar1)(&local_4c,iVar10,0,0,0);" (assignment_expression "iVar7 = (*pcVar1)(&local_4c,iVar10,0,0,0)" identifier = (call_expression "(*pcVar1)(&local_4c,iVar10,0,0,0)" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "(&local_4c,iVar10,0,0,0)" ( (pointer_expression "&local_4c" & identifier) , identifier , number_literal , number_literal , number_literal )))) ;) (expression_statement "iVar15 = (*pcVar2)(iVar10);" (assignment_expression "iVar15 = (*pcVar2)(iVar10)" identifier = (call_expression "(*pcVar2)(iVar10)" (parenthesized_expression "(*pcVar2)" ( (pointer_expression "*pcVar2" * identifier) )) (argument_list "(iVar10)" ( identifier )))) ;) (expression_statement "*(char *)((int)piVar14 + 0xd) = (char)iVar15;" (assignment_expression "*(char *)((int)piVar14 + 0xd) = (char)iVar15" (pointer_expression "*(char *)((int)piVar14 + 0xd)" * (cast_expression "(char *)((int)piVar14 + 0xd)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar14 + 0xd)" ( (binary_expression "(int)piVar14 + 0xd" (cast_expression "(int)piVar14" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (cast_expression "(char)iVar15" ( (type_descriptor "char" primitive_type) ) identifier)) ;) (if_statement "if (iVar7 != 0) {\n          uVar8 = (*(code *)PTR_strlen_0015b9c4)(iVar7);\n          iVar15 = *piVar14;\n          uVar8 = uVar8 & 0x3fffffff;\n          if (iVar15 == 0) {\n            uVar9 = 0;\n            uVar13 = uVar8;\n          }\n          else {\n            uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);\n            uVar9 = uVar9 & 0x3fffffff;\n            uVar13 = uVar8 + uVar9;\n          }\n          iVar15 = (*pcVar4)(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f);\n          *piVar14 = iVar15;\n          if (iVar15 == 0) {\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n            *(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;\n          }\n        }" if (parenthesized_expression "(iVar7 != 0)" ( (binary_expression "iVar7 != 0" identifier != number_literal) )) (compound_statement "{\n          uVar8 = (*(code *)PTR_strlen_0015b9c4)(iVar7);\n          iVar15 = *piVar14;\n          uVar8 = uVar8 & 0x3fffffff;\n          if (iVar15 == 0) {\n            uVar9 = 0;\n            uVar13 = uVar8;\n          }\n          else {\n            uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);\n            uVar9 = uVar9 & 0x3fffffff;\n            uVar13 = uVar8 + uVar9;\n          }\n          iVar15 = (*pcVar4)(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f);\n          *piVar14 = iVar15;\n          if (iVar15 == 0) {\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n            *(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;\n          }\n        }" { (expression_statement "uVar8 = (*(code *)PTR_strlen_0015b9c4)(iVar7);" (assignment_expression "uVar8 = (*(code *)PTR_strlen_0015b9c4)(iVar7)" identifier = (call_expression "(*(code *)PTR_strlen_0015b9c4)(iVar7)" (parenthesized_expression "(*(code *)PTR_strlen_0015b9c4)" ( (pointer_expression "*(code *)PTR_strlen_0015b9c4" * (cast_expression "(code *)PTR_strlen_0015b9c4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar7)" ( identifier )))) ;) (expression_statement "iVar15 = *piVar14;" (assignment_expression "iVar15 = *piVar14" identifier = (pointer_expression "*piVar14" * identifier)) ;) (expression_statement "uVar8 = uVar8 & 0x3fffffff;" (assignment_expression "uVar8 = uVar8 & 0x3fffffff" identifier = (binary_expression "uVar8 & 0x3fffffff" identifier & number_literal)) ;) (if_statement "if (iVar15 == 0) {\n            uVar9 = 0;\n            uVar13 = uVar8;\n          }\n          else {\n            uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);\n            uVar9 = uVar9 & 0x3fffffff;\n            uVar13 = uVar8 + uVar9;\n          }" if (parenthesized_expression "(iVar15 == 0)" ( (binary_expression "iVar15 == 0" identifier == number_literal) )) (compound_statement "{\n            uVar9 = 0;\n            uVar13 = uVar8;\n          }" { (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" identifier = number_literal) ;) (expression_statement "uVar13 = uVar8;" (assignment_expression "uVar13 = uVar8" identifier = identifier) ;) }) (else_clause "else {\n            uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);\n            uVar9 = uVar9 & 0x3fffffff;\n            uVar13 = uVar8 + uVar9;\n          }" else (compound_statement "{\n            uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);\n            uVar9 = uVar9 & 0x3fffffff;\n            uVar13 = uVar8 + uVar9;\n          }" { (expression_statement "uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);" (assignment_expression "uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15)" identifier = (call_expression "(*(code *)PTR_strlen_0015b9c4)(iVar15)" (parenthesized_expression "(*(code *)PTR_strlen_0015b9c4)" ( (pointer_expression "*(code *)PTR_strlen_0015b9c4" * (cast_expression "(code *)PTR_strlen_0015b9c4" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar15)" ( identifier )))) ;) (expression_statement "uVar9 = uVar9 & 0x3fffffff;" (assignment_expression "uVar9 = uVar9 & 0x3fffffff" identifier = (binary_expression "uVar9 & 0x3fffffff" identifier & number_literal)) ;) (expression_statement "uVar13 = uVar8 + uVar9;" (assignment_expression "uVar13 = uVar8 + uVar9" identifier = (binary_expression "uVar8 + uVar9" identifier + identifier)) ;) }))) (expression_statement "iVar15 = (*pcVar4)(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f);" (assignment_expression "iVar15 = (*pcVar4)(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f)" identifier = (call_expression "(*pcVar4)(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f)" (parenthesized_expression "(*pcVar4)" ( (pointer_expression "*pcVar4" * identifier) )) (argument_list "(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f)" ( identifier , identifier , (binary_expression "(int)(uVar13 + 2) >> 0x1f" (cast_expression "(int)(uVar13 + 2)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "(uVar13 + 2)" ( (binary_expression "uVar13 + 2" identifier + number_literal) ))) >> number_literal) )))) ;) (expression_statement "*piVar14 = iVar15;" (assignment_expression "*piVar14 = iVar15" (pointer_expression "*piVar14" * identifier) = identifier) ;) (if_statement "if (iVar15 == 0) {\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n            *(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;\n          }" if (parenthesized_expression "(iVar15 == 0)" ( (binary_expression "iVar15 == 0" identifier == number_literal) )) (compound_statement "{\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n          }" { (expression_statement "iVar15 = (int)*(char *)((int)piVar14 + 0xd);" (assignment_expression "iVar15 = (int)*(char *)((int)piVar14 + 0xd)" identifier = (cast_expression "(int)*(char *)((int)piVar14 + 0xd)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(char *)((int)piVar14 + 0xd)" * (cast_expression "(char *)((int)piVar14 + 0xd)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar14 + 0xd)" ( (binary_expression "(int)piVar14 + 0xd" (cast_expression "(int)piVar14" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))))) ;) }) (else_clause "else {\n            (*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n            *(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;\n          }" else (compound_statement "{\n            (*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n            *(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;\n          }" { (expression_statement "(*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);" (call_expression "(*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1)" (parenthesized_expression "(*(code *)PTR_memcpy_0015ba30)" ( (pointer_expression "*(code *)PTR_memcpy_0015ba30" * (cast_expression "(code *)PTR_memcpy_0015ba30" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "(iVar15 + uVar9 + 1,iVar7,uVar8 + 1)" ( (binary_expression "iVar15 + uVar9 + 1" (binary_expression "iVar15 + uVar9" identifier + identifier) + number_literal) , identifier , (binary_expression "uVar8 + 1" identifier + number_literal) ))) ;) (expression_statement "iVar15 = (int)*(char *)((int)piVar14 + 0xd);" (assignment_expression "iVar15 = (int)*(char *)((int)piVar14 + 0xd)" identifier = (cast_expression "(int)*(char *)((int)piVar14 + 0xd)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(char *)((int)piVar14 + 0xd)" * (cast_expression "(char *)((int)piVar14 + 0xd)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar14 + 0xd)" ( (binary_expression "(int)piVar14 + 0xd" (cast_expression "(int)piVar14" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))))) ;) (expression_statement "*(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;" (assignment_expression "*(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4" (pointer_expression "*(byte *)((int)piVar14 + 0xf)" * (cast_expression "(byte *)((int)piVar14 + 0xf)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar14 + 0xf)" ( (binary_expression "(int)piVar14 + 0xf" (cast_expression "(int)piVar14" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = (binary_expression "*(byte *)((int)piVar14 + 0xf) | 4" (pointer_expression "*(byte *)((int)piVar14 + 0xf)" * (cast_expression "(byte *)((int)piVar14 + 0xf)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar14 + 0xf)" ( (binary_expression "(int)piVar14 + 0xf" (cast_expression "(int)piVar14" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) | number_literal)) ;) }))) })) (if_statement "if (iVar15 == 0) {\n          *(undefined1 *)((int)piVar14 + 0xd) = 0x41;\n        }" if (parenthesized_expression "(iVar15 == 0)" ( (binary_expression "iVar15 == 0" identifier == number_literal) )) (compound_statement "{\n          *(undefined1 *)((int)piVar14 + 0xd) = 0x41;\n        }" { (expression_statement "*(undefined1 *)((int)piVar14 + 0xd) = 0x41;" (assignment_expression "*(undefined1 *)((int)piVar14 + 0xd) = 0x41" (pointer_expression "*(undefined1 *)((int)piVar14 + 0xd)" * (cast_expression "(undefined1 *)((int)piVar14 + 0xd)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar14 + 0xd)" ( (binary_expression "(int)piVar14 + 0xd" (cast_expression "(int)piVar14" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) })) (expression_statement "piVar12 = param_1;" (assignment_expression "piVar12 = param_1" identifier = identifier) ;) (expression_statement "piVar6 = (int *)(*pcVar3)();" (assignment_expression "piVar6 = (int *)(*pcVar3)()" identifier = (cast_expression "(int *)(*pcVar3)()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*pcVar3)()" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "()" ( ))))) ;) (if_statement "if ((piVar6 != (int *)0x0) && (piVar14[2] == 0)) {\n          iVar10 = *piVar6;\n          piVar12 = piVar11;\n          iVar15 = (*pcVar5)();\n          piVar14[2] = iVar15;\n        }" if (parenthesized_expression "((piVar6 != (int *)0x0) && (piVar14[2] == 0))" ( (binary_expression "(piVar6 != (int *)0x0) && (piVar14[2] == 0)" (parenthesized_expression "(piVar6 != (int *)0x0)" ( (binary_expression "piVar6 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(piVar14[2] == 0)" ( (binary_expression "piVar14[2] == 0" (subscript_expression "piVar14[2]" identifier [ number_literal ]) == number_literal) ))) )) (compound_statement "{\n          iVar10 = *piVar6;\n          piVar12 = piVar11;\n          iVar15 = (*pcVar5)();\n          piVar14[2] = iVar15;\n        }" { (expression_statement "iVar10 = *piVar6;" (assignment_expression "iVar10 = *piVar6" identifier = (pointer_expression "*piVar6" * identifier)) ;) (expression_statement "piVar12 = piVar11;" (assignment_expression "piVar12 = piVar11" identifier = identifier) ;) (expression_statement "iVar15 = (*pcVar5)();" (assignment_expression "iVar15 = (*pcVar5)()" identifier = (call_expression "(*pcVar5)()" (parenthesized_expression "(*pcVar5)" ( (pointer_expression "*pcVar5" * identifier) )) (argument_list "()" ( )))) ;) (expression_statement "piVar14[2] = iVar15;" (assignment_expression "piVar14[2] = iVar15" (subscript_expression "piVar14[2]" identifier [ number_literal ]) = identifier) ;) })) (expression_statement "iVar17 = iVar17 + 1;" (assignment_expression "iVar17 = iVar17 + 1" identifier = (binary_expression "iVar17 + 1" identifier + number_literal)) ;) (expression_statement "piVar14 = piVar14 + 4;" (assignment_expression "piVar14 = piVar14 + 4" identifier = (binary_expression "piVar14 + 4" identifier + number_literal)) ;) (expression_statement "piVar16 = piVar16 + 5;" (assignment_expression "piVar16 = piVar16 + 5" identifier = (binary_expression "piVar16 + 5" identifier + number_literal)) ;) }) while (parenthesized_expression "(iVar17 < *(short *)(param_2 + 0x2a))" ( (binary_expression "iVar17 < *(short *)(param_2 + 0x2a)" identifier < (pointer_expression "*(short *)(param_2 + 0x2a)" * (cast_expression "(short *)(param_2 + 0x2a)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2a)" ( (binary_expression "param_2 + 0x2a" identifier + number_literal) ))))) )) ;) })) (expression_statement "*(undefined2 *)(param_2 + 0x2e) = 1;" (assignment_expression "*(undefined2 *)(param_2 + 0x2e) = 1" (pointer_expression "*(undefined2 *)(param_2 + 0x2e)" * (cast_expression "(undefined2 *)(param_2 + 0x2e)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x2e)" ( (binary_expression "param_2 + 0x2e" identifier + number_literal) )))) = number_literal) ;) })) (if_statement "if (local_2c == *(int *)puVar18) {\n    return;\n  }" if (parenthesized_expression "(local_2c == *(int *)puVar18)" ( (binary_expression "local_2c == *(int *)puVar18" identifier == (pointer_expression "*(int *)puVar18" * (cast_expression "(int *)puVar18" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "puVar18 = PTR___stack_chk_fail_0015ba10;" (assignment_expression "puVar18 = PTR___stack_chk_fail_0015ba10" identifier = identifier) ;) (expression_statement "(*(code *)PTR___stack_chk_fail_0015ba10)();" (call_expression "(*(code *)PTR___stack_chk_fail_0015ba10)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0015ba10)" ( (pointer_expression "*(code *)PTR___stack_chk_fail_0015ba10" * (cast_expression "(code *)PTR___stack_chk_fail_0015ba10" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier)) )) (argument_list "()" ( ))) ;) (expression_statement "puVar18 = puVar18 + 0xea668;" (assignment_expression "puVar18 = puVar18 + 0xea668" identifier = (binary_expression "puVar18 + 0xea668" identifier + number_literal)) ;) (if_statement "if ((*(uint *)(iVar10 + 8) & 0x80) != 0) {\n    return;\n  }" if (parenthesized_expression "((*(uint *)(iVar10 + 8) & 0x80) != 0)" ( (binary_expression "(*(uint *)(iVar10 + 8) & 0x80) != 0" (parenthesized_expression "(*(uint *)(iVar10 + 8) & 0x80)" ( (binary_expression "*(uint *)(iVar10 + 8) & 0x80" (pointer_expression "*(uint *)(iVar10 + 8)" * (cast_expression "(uint *)(iVar10 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar10 + 8)" ( (binary_expression "iVar10 + 8" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "*(uint *)(iVar10 + 8) = *(uint *)(iVar10 + 8) | 0x80;" (assignment_expression "*(uint *)(iVar10 + 8) = *(uint *)(iVar10 + 8) | 0x80" (pointer_expression "*(uint *)(iVar10 + 8)" * (cast_expression "(uint *)(iVar10 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar10 + 8)" ( (binary_expression "iVar10 + 8" identifier + number_literal) )))) = (binary_expression "*(uint *)(iVar10 + 8) | 0x80" (pointer_expression "*(uint *)(iVar10 + 8)" * (cast_expression "(uint *)(iVar10 + 8)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar10 + 8)" ( (binary_expression "iVar10 + 8" identifier + number_literal) )))) | number_literal)) ;) (expression_statement "piVar11 = *(int **)(iVar10 + 0x20);" (assignment_expression "piVar11 = *(int **)(iVar10 + 0x20)" identifier = (pointer_expression "*(int **)(iVar10 + 0x20)" * (cast_expression "(int **)(iVar10 + 0x20)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar10 + 0x20)" ( (binary_expression "iVar10 + 0x20" identifier + number_literal) ))))) ;) (expression_statement "iVar17 = *piVar12;" (assignment_expression "iVar17 = *piVar12" identifier = (pointer_expression "*piVar12" * identifier)) ;) (expression_statement "iVar10 = *piVar11;" (assignment_expression "iVar10 = *piVar11" identifier = (pointer_expression "*piVar11" * identifier)) ;) (expression_statement "piVar12 = piVar11 + 2;" (assignment_expression "piVar12 = piVar11 + 2" identifier = (binary_expression "piVar11 + 2" identifier + number_literal)) ;) (if_statement "if (iVar10 < 1) {\n    return;\n  }" if (parenthesized_expression "(iVar10 < 1)" ( (binary_expression "iVar10 < 1" identifier < number_literal) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "iVar15 = 0;" (assignment_expression "iVar15 = 0" identifier = number_literal) ;) (do_statement "do {\n    while ((*(uint *)(piVar12[4] + 0x24) & 2) == 0) {\nLAB_00078fb0:\n      iVar15 = iVar15 + 1;\n      piVar12 = piVar12 + 0x12;\n      if (iVar10 <= iVar15) {\n        return;\n      }\n    }\n    iVar7 = piVar12[5];\n    if (piVar12[5] != 0) {\n      do {\n        iVar10 = iVar7;\n        iVar7 = *(int *)(iVar10 + 0x34);\n      } while (*(int *)(iVar10 + 0x34) != 0);\n      FUN_00078cd0(iVar17,piVar12[4],iVar10,iVar10 + 0x20,puVar18);\n      iVar10 = *piVar11;\n      goto LAB_00078fb0;\n    }\n    iVar15 = iVar15 + 1;\n    piVar12 = piVar12 + 0x12;\n    if (iVar10 <= iVar15) {\n      return;\n    }\n  } while( true );" do (compound_statement "{\n    while ((*(uint *)(piVar12[4] + 0x24) & 2) == 0) {\nLAB_00078fb0:\n      iVar15 = iVar15 + 1;\n      piVar12 = piVar12 + 0x12;\n      if (iVar10 <= iVar15) {\n        return;\n      }\n    }\n    iVar7 = piVar12[5];\n    if (piVar12[5] != 0) {\n      do {\n        iVar10 = iVar7;\n        iVar7 = *(int *)(iVar10 + 0x34);\n      } while (*(int *)(iVar10 + 0x34) != 0);\n      FUN_00078cd0(iVar17,piVar12[4],iVar10,iVar10 + 0x20,puVar18);\n      iVar10 = *piVar11;\n      goto LAB_00078fb0;\n    }\n    iVar15 = iVar15 + 1;\n    piVar12 = piVar12 + 0x12;\n    if (iVar10 <= iVar15) {\n      return;\n    }\n  }" { (while_statement "while ((*(uint *)(piVar12[4] + 0x24) & 2) == 0) {\nLAB_00078fb0:\n      iVar15 = iVar15 + 1;\n      piVar12 = piVar12 + 0x12;\n      if (iVar10 <= iVar15) {\n        return;\n      }\n    }" while (parenthesized_expression "((*(uint *)(piVar12[4] + 0x24) & 2) == 0)" ( (binary_expression "(*(uint *)(piVar12[4] + 0x24) & 2) == 0" (parenthesized_expression "(*(uint *)(piVar12[4] + 0x24) & 2)" ( (binary_expression "*(uint *)(piVar12[4] + 0x24) & 2" (pointer_expression "*(uint *)(piVar12[4] + 0x24)" * (cast_expression "(uint *)(piVar12[4] + 0x24)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar12[4] + 0x24)" ( (binary_expression "piVar12[4] + 0x24" (subscript_expression "piVar12[4]" identifier [ number_literal ]) + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\nLAB_00078fb0:\n      iVar15 = iVar15 + 1;\n      piVar12 = piVar12 + 0x12;\n      if (iVar10 <= iVar15) {\n        return;\n      }\n    }" { (labeled_statement "LAB_00078fb0:\n      iVar15 = iVar15 + 1;" statement_identifier : (expression_statement "iVar15 = iVar15 + 1;" (assignment_expression "iVar15 = iVar15 + 1" identifier = (binary_expression "iVar15 + 1" identifier + number_literal)) ;)) (expression_statement "piVar12 = piVar12 + 0x12;" (assignment_expression "piVar12 = piVar12 + 0x12" identifier = (binary_expression "piVar12 + 0x12" identifier + number_literal)) ;) (if_statement "if (iVar10 <= iVar15) {\n        return;\n      }" if (parenthesized_expression "(iVar10 <= iVar15)" ( (binary_expression "iVar10 <= iVar15" identifier <= identifier) )) (compound_statement "{\n        return;\n      }" { (return_statement "return;" return ;) })) })) (expression_statement "iVar7 = piVar12[5];" (assignment_expression "iVar7 = piVar12[5]" identifier = (subscript_expression "piVar12[5]" identifier [ number_literal ])) ;) (if_statement "if (piVar12[5] != 0) {\n      do {\n        iVar10 = iVar7;\n        iVar7 = *(int *)(iVar10 + 0x34);\n      } while (*(int *)(iVar10 + 0x34) != 0);\n      FUN_00078cd0(iVar17,piVar12[4],iVar10,iVar10 + 0x20,puVar18);\n      iVar10 = *piVar11;\n      goto LAB_00078fb0;\n    }" if (parenthesized_expression "(piVar12[5] != 0)" ( (binary_expression "piVar12[5] != 0" (subscript_expression "piVar12[5]" identifier [ number_literal ]) != number_literal) )) (compound_statement "{\n      do {\n        iVar10 = iVar7;\n        iVar7 = *(int *)(iVar10 + 0x34);\n      } while (*(int *)(iVar10 + 0x34) != 0);\n      FUN_00078cd0(iVar17,piVar12[4],iVar10,iVar10 + 0x20,puVar18);\n      iVar10 = *piVar11;\n      goto LAB_00078fb0;\n    }" { (do_statement "do {\n        iVar10 = iVar7;\n        iVar7 = *(int *)(iVar10 + 0x34);\n      } while (*(int *)(iVar10 + 0x34) != 0);" do (compound_statement "{\n        iVar10 = iVar7;\n        iVar7 = *(int *)(iVar10 + 0x34);\n      }" { (expression_statement "iVar10 = iVar7;" (assignment_expression "iVar10 = iVar7" identifier = identifier) ;) (expression_statement "iVar7 = *(int *)(iVar10 + 0x34);" (assignment_expression "iVar7 = *(int *)(iVar10 + 0x34)" identifier = (pointer_expression "*(int *)(iVar10 + 0x34)" * (cast_expression "(int *)(iVar10 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar10 + 0x34)" ( (binary_expression "iVar10 + 0x34" identifier + number_literal) ))))) ;) }) while (parenthesized_expression "(*(int *)(iVar10 + 0x34) != 0)" ( (binary_expression "*(int *)(iVar10 + 0x34) != 0" (pointer_expression "*(int *)(iVar10 + 0x34)" * (cast_expression "(int *)(iVar10 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar10 + 0x34)" ( (binary_expression "iVar10 + 0x34" identifier + number_literal) )))) != number_literal) )) ;) (expression_statement "FUN_00078cd0(iVar17,piVar12[4],iVar10,iVar10 + 0x20,puVar18);" (call_expression "FUN_00078cd0(iVar17,piVar12[4],iVar10,iVar10 + 0x20,puVar18)" identifier (argument_list "(iVar17,piVar12[4],iVar10,iVar10 + 0x20,puVar18)" ( identifier , (subscript_expression "piVar12[4]" identifier [ number_literal ]) , identifier , (binary_expression "iVar10 + 0x20" identifier + number_literal) , identifier ))) ;) (expression_statement "iVar10 = *piVar11;" (assignment_expression "iVar10 = *piVar11" identifier = (pointer_expression "*piVar11" * identifier)) ;) (goto_statement "goto LAB_00078fb0;" goto statement_identifier ;) })) (expression_statement "iVar15 = iVar15 + 1;" (assignment_expression "iVar15 = iVar15 + 1" identifier = (binary_expression "iVar15 + 1" identifier + number_literal)) ;) (expression_statement "piVar12 = piVar12 + 0x12;" (assignment_expression "piVar12 = piVar12 + 0x12" identifier = (binary_expression "piVar12 + 0x12" identifier + number_literal)) ;) (if_statement "if (iVar10 <= iVar15) {\n      return;\n    }" if (parenthesized_expression "(iVar10 <= iVar15)" ( (binary_expression "iVar10 <= iVar15" identifier <= identifier) )) (compound_statement "{\n      return;\n    }" { (return_statement "return;" return ;) })) }) while (parenthesized_expression "( true )" ( true )) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (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 (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression * IDENT))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (pointer_expression & IDENT) , IDENT , LIT , LIT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( IDENT )))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT & LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + IDENT)) ;) }))) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( IDENT , IDENT , (binary_expression (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))) >> LIT) )))) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( (binary_expression (binary_expression IDENT + IDENT) + LIT) , IDENT , (binary_expression IDENT + LIT) ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) | LIT)) ;) }))) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + LIT) )))) = LIT) ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression IDENT < (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT)) )) (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (return_statement return ;) })) (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (while_statement while (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (labeled_statement statement_identifier : (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;)) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (return_statement return ;) })) })) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (if_statement if (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ LIT ]) != LIT) )) (compound_statement { (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) while (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , (subscript_expression IDENT [ LIT ]) , IDENT , (binary_expression IDENT + LIT) , IDENT ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (goto_statement goto statement_identifier ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT <= IDENT) )) (compound_statement { (return_statement return ;) })) }) while (parenthesized_expression ( BOOL )) ;) })))
(function_definition "void FUN_00078cd0(int *param_1,int param_2,int *param_3,undefined4 *param_4)\n\n{\n  code *pcVar1;\n  code *pcVar2;\n  code *pcVar3;\n  code *pcVar4;\n  code *pcVar5;\n  int *piVar6;\n  int iVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  int *piVar11;\n  int *piVar12;\n  uint uVar13;\n  int *piVar14;\n  int iVar15;\n  int *piVar16;\n  int iVar17;\n  undefined *puVar18;\n  undefined4 local_4c;\n  undefined4 local_48;\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined4 local_3c;\n  undefined4 local_38;\n  undefined4 local_34;\n  undefined4 local_30;\n  int local_2c;\n  \n  puVar18 = PTR___stack_chk_guard_0015ba2c;\n  piVar11 = (int *)*param_1;\n  local_2c = *(int *)PTR___stack_chk_guard_0015ba2c;\n  piVar12 = piVar11;\n  iVar10 = param_2;\n  if (*(char *)((int)piVar11 + 0x51) == '\0') {\n    local_48 = *param_4;\n    piVar14 = *(int **)(param_2 + 4);\n    local_4c = 0;\n    local_44 = 0;\n    local_40 = 0;\n    local_3c = 0;\n    local_38 = 0;\n    local_34 = 0;\n    local_30 = 0;\n    if (0 < *(short *)(param_2 + 0x2a)) {\n      piVar16 = (int *)(*param_3 + 4);\n      iVar17 = 0;\n      pcVar1 = (code *)(PTR_LAB_0015b6c0 + 0x4814);\n      pcVar2 = (code *)(PTR_LAB_0015b65c + 0x5914);\n      pcVar3 = (code *)(PTR_LAB_0015b740 + 0x75dc);\n      pcVar4 = (code *)(PTR_LAB_0015b700 + 0x7748);\n      pcVar5 = (code *)(PTR_LAB_0015b6d8 + -0x23a0);\n      do {\n        iVar10 = *piVar16;\n        iVar7 = (*pcVar1)(&local_4c,iVar10,0,0,0);\n        iVar15 = (*pcVar2)(iVar10);\n        *(char *)((int)piVar14 + 0xd) = (char)iVar15;\n        if (iVar7 != 0) {\n          uVar8 = (*(code *)PTR_strlen_0015b9c4)(iVar7);\n          iVar15 = *piVar14;\n          uVar8 = uVar8 & 0x3fffffff;\n          if (iVar15 == 0) {\n            uVar9 = 0;\n            uVar13 = uVar8;\n          }\n          else {\n            uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);\n            uVar9 = uVar9 & 0x3fffffff;\n            uVar13 = uVar8 + uVar9;\n          }\n          iVar15 = (*pcVar4)(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f);\n          *piVar14 = iVar15;\n          if (iVar15 == 0) {\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n            *(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;\n          }\n        }\n        if (iVar15 == 0) {\n          *(undefined1 *)((int)piVar14 + 0xd) = 0x41;\n        }\n        piVar12 = param_1;\n        piVar6 = (int *)(*pcVar3)();\n        if ((piVar6 != (int *)0x0) && (piVar14[2] == 0)) {\n          iVar10 = *piVar6;\n          piVar12 = piVar11;\n          iVar15 = (*pcVar5)();\n          piVar14[2] = iVar15;\n        }\n        iVar17 = iVar17 + 1;\n        piVar14 = piVar14 + 4;\n        piVar16 = piVar16 + 5;\n      } while (iVar17 < *(short *)(param_2 + 0x2a));\n    }\n    *(undefined2 *)(param_2 + 0x2e) = 1;\n  }\n  if (local_2c == *(int *)puVar18) {\n    return;\n  }\n  puVar18 = PTR___stack_chk_fail_0015ba10;\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  puVar18 = puVar18 + 0xea668;\n  if ((*(uint *)(iVar10 + 8) & 0x80) != 0) {\n    return;\n  }\n  *(uint *)(iVar10 + 8) = *(uint *)(iVar10 + 8) | 0x80;\n  piVar11 = *(int **)(iVar10 + 0x20);\n  iVar17 = *piVar12;\n  iVar10 = *piVar11;\n  piVar12 = piVar11 + 2;\n  if (iVar10 < 1) {\n    return;\n  }\n  iVar15 = 0;\n  do {\n    while ((*(uint *)(piVar12[4] + 0x24) & 2) == 0) {\nLAB_00078fb0:\n      iVar15 = iVar15 + 1;\n      piVar12 = piVar12 + 0x12;\n      if (iVar10 <= iVar15) {\n        return;\n      }\n    }\n    iVar7 = piVar12[5];\n    if (piVar12[5] != 0) {\n      do {\n        iVar10 = iVar7;\n        iVar7 = *(int *)(iVar10 + 0x34);\n      } while (*(int *)(iVar10 + 0x34) != 0);\n      FUN_00078cd0(iVar17,piVar12[4],iVar10,iVar10 + 0x20,puVar18);\n      iVar10 = *piVar11;\n      goto LAB_00078fb0;\n    }\n    iVar15 = iVar15 + 1;\n    piVar12 = piVar12 + 0x12;\n    if (iVar10 <= iVar15) {\n      return;\n    }\n  } while( true );\n}" (primitive_type "void") (function_declarator "FUN_00078cd0(int *param_1,int param_2,int *param_3,undefined4 *param_4)" (identifier "FUN_00078cd0") (parameter_list "(int *param_1,int param_2,int *param_3,undefined4 *param_4)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "undefined4 *param_4" (type_identifier "undefined4") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) () ")"))) (compound_statement "{\n  code *pcVar1;\n  code *pcVar2;\n  code *pcVar3;\n  code *pcVar4;\n  code *pcVar5;\n  int *piVar6;\n  int iVar7;\n  uint uVar8;\n  uint uVar9;\n  int iVar10;\n  int *piVar11;\n  int *piVar12;\n  uint uVar13;\n  int *piVar14;\n  int iVar15;\n  int *piVar16;\n  int iVar17;\n  undefined *puVar18;\n  undefined4 local_4c;\n  undefined4 local_48;\n  undefined4 local_44;\n  undefined4 local_40;\n  undefined4 local_3c;\n  undefined4 local_38;\n  undefined4 local_34;\n  undefined4 local_30;\n  int local_2c;\n  \n  puVar18 = PTR___stack_chk_guard_0015ba2c;\n  piVar11 = (int *)*param_1;\n  local_2c = *(int *)PTR___stack_chk_guard_0015ba2c;\n  piVar12 = piVar11;\n  iVar10 = param_2;\n  if (*(char *)((int)piVar11 + 0x51) == '\0') {\n    local_48 = *param_4;\n    piVar14 = *(int **)(param_2 + 4);\n    local_4c = 0;\n    local_44 = 0;\n    local_40 = 0;\n    local_3c = 0;\n    local_38 = 0;\n    local_34 = 0;\n    local_30 = 0;\n    if (0 < *(short *)(param_2 + 0x2a)) {\n      piVar16 = (int *)(*param_3 + 4);\n      iVar17 = 0;\n      pcVar1 = (code *)(PTR_LAB_0015b6c0 + 0x4814);\n      pcVar2 = (code *)(PTR_LAB_0015b65c + 0x5914);\n      pcVar3 = (code *)(PTR_LAB_0015b740 + 0x75dc);\n      pcVar4 = (code *)(PTR_LAB_0015b700 + 0x7748);\n      pcVar5 = (code *)(PTR_LAB_0015b6d8 + -0x23a0);\n      do {\n        iVar10 = *piVar16;\n        iVar7 = (*pcVar1)(&local_4c,iVar10,0,0,0);\n        iVar15 = (*pcVar2)(iVar10);\n        *(char *)((int)piVar14 + 0xd) = (char)iVar15;\n        if (iVar7 != 0) {\n          uVar8 = (*(code *)PTR_strlen_0015b9c4)(iVar7);\n          iVar15 = *piVar14;\n          uVar8 = uVar8 & 0x3fffffff;\n          if (iVar15 == 0) {\n            uVar9 = 0;\n            uVar13 = uVar8;\n          }\n          else {\n            uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);\n            uVar9 = uVar9 & 0x3fffffff;\n            uVar13 = uVar8 + uVar9;\n          }\n          iVar15 = (*pcVar4)(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f);\n          *piVar14 = iVar15;\n          if (iVar15 == 0) {\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n            *(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;\n          }\n        }\n        if (iVar15 == 0) {\n          *(undefined1 *)((int)piVar14 + 0xd) = 0x41;\n        }\n        piVar12 = param_1;\n        piVar6 = (int *)(*pcVar3)();\n        if ((piVar6 != (int *)0x0) && (piVar14[2] == 0)) {\n          iVar10 = *piVar6;\n          piVar12 = piVar11;\n          iVar15 = (*pcVar5)();\n          piVar14[2] = iVar15;\n        }\n        iVar17 = iVar17 + 1;\n        piVar14 = piVar14 + 4;\n        piVar16 = piVar16 + 5;\n      } while (iVar17 < *(short *)(param_2 + 0x2a));\n    }\n    *(undefined2 *)(param_2 + 0x2e) = 1;\n  }\n  if (local_2c == *(int *)puVar18) {\n    return;\n  }\n  puVar18 = PTR___stack_chk_fail_0015ba10;\n  (*(code *)PTR___stack_chk_fail_0015ba10)();\n  puVar18 = puVar18 + 0xea668;\n  if ((*(uint *)(iVar10 + 8) & 0x80) != 0) {\n    return;\n  }\n  *(uint *)(iVar10 + 8) = *(uint *)(iVar10 + 8) | 0x80;\n  piVar11 = *(int **)(iVar10 + 0x20);\n  iVar17 = *piVar12;\n  iVar10 = *piVar11;\n  piVar12 = piVar11 + 2;\n  if (iVar10 < 1) {\n    return;\n  }\n  iVar15 = 0;\n  do {\n    while ((*(uint *)(piVar12[4] + 0x24) & 2) == 0) {\nLAB_00078fb0:\n      iVar15 = iVar15 + 1;\n      piVar12 = piVar12 + 0x12;\n      if (iVar10 <= iVar15) {\n        return;\n      }\n    }\n    iVar7 = piVar12[5];\n    if (piVar12[5] != 0) {\n      do {\n        iVar10 = iVar7;\n        iVar7 = *(int *)(iVar10 + 0x34);\n      } while (*(int *)(iVar10 + 0x34) != 0);\n      FUN_00078cd0(iVar17,piVar12[4],iVar10,iVar10 + 0x20,puVar18);\n      iVar10 = *piVar11;\n      goto LAB_00078fb0;\n    }\n    iVar15 = iVar15 + 1;\n    piVar12 = piVar12 + 0x12;\n    if (iVar10 <= iVar15) {\n      return;\n    }\n  } while( true );\n}" ({ "{") (declaration "code *pcVar1;" (type_identifier "code") (pointer_declarator "*pcVar1" (* "*") (identifier "pcVar1")) (; ";")) (declaration "code *pcVar2;" (type_identifier "code") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (declaration "code *pcVar3;" (type_identifier "code") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "code *pcVar4;" (type_identifier "code") (pointer_declarator "*pcVar4" (* "*") (identifier "pcVar4")) (; ";")) (declaration "code *pcVar5;" (type_identifier "code") (pointer_declarator "*pcVar5" (* "*") (identifier "pcVar5")) (; ";")) (declaration "int *piVar6;" (primitive_type "int") (pointer_declarator "*piVar6" (* "*") (identifier "piVar6")) (; ";")) (declaration "int iVar7;" (primitive_type "int") (identifier "iVar7") (; ";")) (declaration "uint uVar8;" (type_identifier "uint") (identifier "uVar8") (; ";")) (declaration "uint uVar9;" (type_identifier "uint") (identifier "uVar9") (; ";")) (declaration "int iVar10;" (primitive_type "int") (identifier "iVar10") (; ";")) (declaration "int *piVar11;" (primitive_type "int") (pointer_declarator "*piVar11" (* "*") (identifier "piVar11")) (; ";")) (declaration "int *piVar12;" (primitive_type "int") (pointer_declarator "*piVar12" (* "*") (identifier "piVar12")) (; ";")) (declaration "uint uVar13;" (type_identifier "uint") (identifier "uVar13") (; ";")) (declaration "int *piVar14;" (primitive_type "int") (pointer_declarator "*piVar14" (* "*") (identifier "piVar14")) (; ";")) (declaration "int iVar15;" (primitive_type "int") (identifier "iVar15") (; ";")) (declaration "int *piVar16;" (primitive_type "int") (pointer_declarator "*piVar16" (* "*") (identifier "piVar16")) (; ";")) (declaration "int iVar17;" (primitive_type "int") (identifier "iVar17") (; ";")) (declaration "undefined *puVar18;" (type_identifier "undefined") (pointer_declarator "*puVar18" (* "*") (identifier "puVar18")) (; ";")) (declaration "undefined4 local_4c;" (type_identifier "undefined4") (identifier "local_4c") (; ";")) (declaration "undefined4 local_48;" (type_identifier "undefined4") (identifier "local_48") (; ";")) (declaration "undefined4 local_44;" (type_identifier "undefined4") (identifier "local_44") (; ";")) (declaration "undefined4 local_40;" (type_identifier "undefined4") (identifier "local_40") (; ";")) (declaration "undefined4 local_3c;" (type_identifier "undefined4") (identifier "local_3c") (; ";")) (declaration "undefined4 local_38;" (type_identifier "undefined4") (identifier "local_38") (; ";")) (declaration "undefined4 local_34;" (type_identifier "undefined4") (identifier "local_34") (; ";")) (declaration "undefined4 local_30;" (type_identifier "undefined4") (identifier "local_30") (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (expression_statement "puVar18 = PTR___stack_chk_guard_0015ba2c;" (assignment_expression "puVar18 = PTR___stack_chk_guard_0015ba2c" (identifier "puVar18") (= "=") (identifier "PTR___stack_chk_guard_0015ba2c")) (; ";")) (expression_statement "piVar11 = (int *)*param_1;" (assignment_expression "piVar11 = (int *)*param_1" (identifier "piVar11") (= "=") (cast_expression "(int *)*param_1" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "*param_1" (* "*") (identifier "param_1")))) (; ";")) (expression_statement "local_2c = *(int *)PTR___stack_chk_guard_0015ba2c;" (assignment_expression "local_2c = *(int *)PTR___stack_chk_guard_0015ba2c" (identifier "local_2c") (= "=") (pointer_expression "*(int *)PTR___stack_chk_guard_0015ba2c" (* "*") (cast_expression "(int *)PTR___stack_chk_guard_0015ba2c" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_guard_0015ba2c")))) (; ";")) (expression_statement "piVar12 = piVar11;" (assignment_expression "piVar12 = piVar11" (identifier "piVar12") (= "=") (identifier "piVar11")) (; ";")) (expression_statement "iVar10 = param_2;" (assignment_expression "iVar10 = param_2" (identifier "iVar10") (= "=") (identifier "param_2")) (; ";")) (if_statement "if (*(char *)((int)piVar11 + 0x51) == '\0') {\n    local_48 = *param_4;\n    piVar14 = *(int **)(param_2 + 4);\n    local_4c = 0;\n    local_44 = 0;\n    local_40 = 0;\n    local_3c = 0;\n    local_38 = 0;\n    local_34 = 0;\n    local_30 = 0;\n    if (0 < *(short *)(param_2 + 0x2a)) {\n      piVar16 = (int *)(*param_3 + 4);\n      iVar17 = 0;\n      pcVar1 = (code *)(PTR_LAB_0015b6c0 + 0x4814);\n      pcVar2 = (code *)(PTR_LAB_0015b65c + 0x5914);\n      pcVar3 = (code *)(PTR_LAB_0015b740 + 0x75dc);\n      pcVar4 = (code *)(PTR_LAB_0015b700 + 0x7748);\n      pcVar5 = (code *)(PTR_LAB_0015b6d8 + -0x23a0);\n      do {\n        iVar10 = *piVar16;\n        iVar7 = (*pcVar1)(&local_4c,iVar10,0,0,0);\n        iVar15 = (*pcVar2)(iVar10);\n        *(char *)((int)piVar14 + 0xd) = (char)iVar15;\n        if (iVar7 != 0) {\n          uVar8 = (*(code *)PTR_strlen_0015b9c4)(iVar7);\n          iVar15 = *piVar14;\n          uVar8 = uVar8 & 0x3fffffff;\n          if (iVar15 == 0) {\n            uVar9 = 0;\n            uVar13 = uVar8;\n          }\n          else {\n            uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);\n            uVar9 = uVar9 & 0x3fffffff;\n            uVar13 = uVar8 + uVar9;\n          }\n          iVar15 = (*pcVar4)(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f);\n          *piVar14 = iVar15;\n          if (iVar15 == 0) {\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n            *(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;\n          }\n        }\n        if (iVar15 == 0) {\n          *(undefined1 *)((int)piVar14 + 0xd) = 0x41;\n        }\n        piVar12 = param_1;\n        piVar6 = (int *)(*pcVar3)();\n        if ((piVar6 != (int *)0x0) && (piVar14[2] == 0)) {\n          iVar10 = *piVar6;\n          piVar12 = piVar11;\n          iVar15 = (*pcVar5)();\n          piVar14[2] = iVar15;\n        }\n        iVar17 = iVar17 + 1;\n        piVar14 = piVar14 + 4;\n        piVar16 = piVar16 + 5;\n      } while (iVar17 < *(short *)(param_2 + 0x2a));\n    }\n    *(undefined2 *)(param_2 + 0x2e) = 1;\n  }" (if "if") (parenthesized_expression "(*(char *)((int)piVar11 + 0x51) == '\0')" (( "(") (binary_expression "*(char *)((int)piVar11 + 0x51) == '\0'" (pointer_expression "*(char *)((int)piVar11 + 0x51)" (* "*") (cast_expression "(char *)((int)piVar11 + 0x51)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar11 + 0x51)" (( "(") (binary_expression "(int)piVar11 + 0x51" (cast_expression "(int)piVar11" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar11")) (+ "+") (number_literal "0x51")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    local_48 = *param_4;\n    piVar14 = *(int **)(param_2 + 4);\n    local_4c = 0;\n    local_44 = 0;\n    local_40 = 0;\n    local_3c = 0;\n    local_38 = 0;\n    local_34 = 0;\n    local_30 = 0;\n    if (0 < *(short *)(param_2 + 0x2a)) {\n      piVar16 = (int *)(*param_3 + 4);\n      iVar17 = 0;\n      pcVar1 = (code *)(PTR_LAB_0015b6c0 + 0x4814);\n      pcVar2 = (code *)(PTR_LAB_0015b65c + 0x5914);\n      pcVar3 = (code *)(PTR_LAB_0015b740 + 0x75dc);\n      pcVar4 = (code *)(PTR_LAB_0015b700 + 0x7748);\n      pcVar5 = (code *)(PTR_LAB_0015b6d8 + -0x23a0);\n      do {\n        iVar10 = *piVar16;\n        iVar7 = (*pcVar1)(&local_4c,iVar10,0,0,0);\n        iVar15 = (*pcVar2)(iVar10);\n        *(char *)((int)piVar14 + 0xd) = (char)iVar15;\n        if (iVar7 != 0) {\n          uVar8 = (*(code *)PTR_strlen_0015b9c4)(iVar7);\n          iVar15 = *piVar14;\n          uVar8 = uVar8 & 0x3fffffff;\n          if (iVar15 == 0) {\n            uVar9 = 0;\n            uVar13 = uVar8;\n          }\n          else {\n            uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);\n            uVar9 = uVar9 & 0x3fffffff;\n            uVar13 = uVar8 + uVar9;\n          }\n          iVar15 = (*pcVar4)(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f);\n          *piVar14 = iVar15;\n          if (iVar15 == 0) {\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n            *(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;\n          }\n        }\n        if (iVar15 == 0) {\n          *(undefined1 *)((int)piVar14 + 0xd) = 0x41;\n        }\n        piVar12 = param_1;\n        piVar6 = (int *)(*pcVar3)();\n        if ((piVar6 != (int *)0x0) && (piVar14[2] == 0)) {\n          iVar10 = *piVar6;\n          piVar12 = piVar11;\n          iVar15 = (*pcVar5)();\n          piVar14[2] = iVar15;\n        }\n        iVar17 = iVar17 + 1;\n        piVar14 = piVar14 + 4;\n        piVar16 = piVar16 + 5;\n      } while (iVar17 < *(short *)(param_2 + 0x2a));\n    }\n    *(undefined2 *)(param_2 + 0x2e) = 1;\n  }" ({ "{") (expression_statement "local_48 = *param_4;" (assignment_expression "local_48 = *param_4" (identifier "local_48") (= "=") (pointer_expression "*param_4" (* "*") (identifier "param_4"))) (; ";")) (expression_statement "piVar14 = *(int **)(param_2 + 4);" (assignment_expression "piVar14 = *(int **)(param_2 + 4)" (identifier "piVar14") (= "=") (pointer_expression "*(int **)(param_2 + 4)" (* "*") (cast_expression "(int **)(param_2 + 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_2 + 4)" (( "(") (binary_expression "param_2 + 4" (identifier "param_2") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "local_4c = 0;" (assignment_expression "local_4c = 0" (identifier "local_4c") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_44 = 0;" (assignment_expression "local_44 = 0" (identifier "local_44") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_40 = 0;" (assignment_expression "local_40 = 0" (identifier "local_40") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_3c = 0;" (assignment_expression "local_3c = 0" (identifier "local_3c") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_38 = 0;" (assignment_expression "local_38 = 0" (identifier "local_38") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_34 = 0;" (assignment_expression "local_34 = 0" (identifier "local_34") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_30 = 0;" (assignment_expression "local_30 = 0" (identifier "local_30") (= "=") (number_literal "0")) (; ";")) (if_statement "if (0 < *(short *)(param_2 + 0x2a)) {\n      piVar16 = (int *)(*param_3 + 4);\n      iVar17 = 0;\n      pcVar1 = (code *)(PTR_LAB_0015b6c0 + 0x4814);\n      pcVar2 = (code *)(PTR_LAB_0015b65c + 0x5914);\n      pcVar3 = (code *)(PTR_LAB_0015b740 + 0x75dc);\n      pcVar4 = (code *)(PTR_LAB_0015b700 + 0x7748);\n      pcVar5 = (code *)(PTR_LAB_0015b6d8 + -0x23a0);\n      do {\n        iVar10 = *piVar16;\n        iVar7 = (*pcVar1)(&local_4c,iVar10,0,0,0);\n        iVar15 = (*pcVar2)(iVar10);\n        *(char *)((int)piVar14 + 0xd) = (char)iVar15;\n        if (iVar7 != 0) {\n          uVar8 = (*(code *)PTR_strlen_0015b9c4)(iVar7);\n          iVar15 = *piVar14;\n          uVar8 = uVar8 & 0x3fffffff;\n          if (iVar15 == 0) {\n            uVar9 = 0;\n            uVar13 = uVar8;\n          }\n          else {\n            uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);\n            uVar9 = uVar9 & 0x3fffffff;\n            uVar13 = uVar8 + uVar9;\n          }\n          iVar15 = (*pcVar4)(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f);\n          *piVar14 = iVar15;\n          if (iVar15 == 0) {\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n            *(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;\n          }\n        }\n        if (iVar15 == 0) {\n          *(undefined1 *)((int)piVar14 + 0xd) = 0x41;\n        }\n        piVar12 = param_1;\n        piVar6 = (int *)(*pcVar3)();\n        if ((piVar6 != (int *)0x0) && (piVar14[2] == 0)) {\n          iVar10 = *piVar6;\n          piVar12 = piVar11;\n          iVar15 = (*pcVar5)();\n          piVar14[2] = iVar15;\n        }\n        iVar17 = iVar17 + 1;\n        piVar14 = piVar14 + 4;\n        piVar16 = piVar16 + 5;\n      } while (iVar17 < *(short *)(param_2 + 0x2a));\n    }" (if "if") (parenthesized_expression "(0 < *(short *)(param_2 + 0x2a))" (( "(") (binary_expression "0 < *(short *)(param_2 + 0x2a)" (number_literal "0") (< "<") (pointer_expression "*(short *)(param_2 + 0x2a)" (* "*") (cast_expression "(short *)(param_2 + 0x2a)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x2a)" (( "(") (binary_expression "param_2 + 0x2a" (identifier "param_2") (+ "+") (number_literal "0x2a")) () ")"))))) () ")")) (compound_statement "{\n      piVar16 = (int *)(*param_3 + 4);\n      iVar17 = 0;\n      pcVar1 = (code *)(PTR_LAB_0015b6c0 + 0x4814);\n      pcVar2 = (code *)(PTR_LAB_0015b65c + 0x5914);\n      pcVar3 = (code *)(PTR_LAB_0015b740 + 0x75dc);\n      pcVar4 = (code *)(PTR_LAB_0015b700 + 0x7748);\n      pcVar5 = (code *)(PTR_LAB_0015b6d8 + -0x23a0);\n      do {\n        iVar10 = *piVar16;\n        iVar7 = (*pcVar1)(&local_4c,iVar10,0,0,0);\n        iVar15 = (*pcVar2)(iVar10);\n        *(char *)((int)piVar14 + 0xd) = (char)iVar15;\n        if (iVar7 != 0) {\n          uVar8 = (*(code *)PTR_strlen_0015b9c4)(iVar7);\n          iVar15 = *piVar14;\n          uVar8 = uVar8 & 0x3fffffff;\n          if (iVar15 == 0) {\n            uVar9 = 0;\n            uVar13 = uVar8;\n          }\n          else {\n            uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);\n            uVar9 = uVar9 & 0x3fffffff;\n            uVar13 = uVar8 + uVar9;\n          }\n          iVar15 = (*pcVar4)(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f);\n          *piVar14 = iVar15;\n          if (iVar15 == 0) {\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n            *(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;\n          }\n        }\n        if (iVar15 == 0) {\n          *(undefined1 *)((int)piVar14 + 0xd) = 0x41;\n        }\n        piVar12 = param_1;\n        piVar6 = (int *)(*pcVar3)();\n        if ((piVar6 != (int *)0x0) && (piVar14[2] == 0)) {\n          iVar10 = *piVar6;\n          piVar12 = piVar11;\n          iVar15 = (*pcVar5)();\n          piVar14[2] = iVar15;\n        }\n        iVar17 = iVar17 + 1;\n        piVar14 = piVar14 + 4;\n        piVar16 = piVar16 + 5;\n      } while (iVar17 < *(short *)(param_2 + 0x2a));\n    }" ({ "{") (expression_statement "piVar16 = (int *)(*param_3 + 4);" (assignment_expression "piVar16 = (int *)(*param_3 + 4)" (identifier "piVar16") (= "=") (cast_expression "(int *)(*param_3 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_3 + 4)" (( "(") (binary_expression "*param_3 + 4" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (+ "+") (number_literal "4")) () ")")))) (; ";")) (expression_statement "iVar17 = 0;" (assignment_expression "iVar17 = 0" (identifier "iVar17") (= "=") (number_literal "0")) (; ";")) (expression_statement "pcVar1 = (code *)(PTR_LAB_0015b6c0 + 0x4814);" (assignment_expression "pcVar1 = (code *)(PTR_LAB_0015b6c0 + 0x4814)" (identifier "pcVar1") (= "=") (cast_expression "(code *)(PTR_LAB_0015b6c0 + 0x4814)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_0015b6c0 + 0x4814)" (( "(") (binary_expression "PTR_LAB_0015b6c0 + 0x4814" (identifier "PTR_LAB_0015b6c0") (+ "+") (number_literal "0x4814")) () ")")))) (; ";")) (expression_statement "pcVar2 = (code *)(PTR_LAB_0015b65c + 0x5914);" (assignment_expression "pcVar2 = (code *)(PTR_LAB_0015b65c + 0x5914)" (identifier "pcVar2") (= "=") (cast_expression "(code *)(PTR_LAB_0015b65c + 0x5914)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_0015b65c + 0x5914)" (( "(") (binary_expression "PTR_LAB_0015b65c + 0x5914" (identifier "PTR_LAB_0015b65c") (+ "+") (number_literal "0x5914")) () ")")))) (; ";")) (expression_statement "pcVar3 = (code *)(PTR_LAB_0015b740 + 0x75dc);" (assignment_expression "pcVar3 = (code *)(PTR_LAB_0015b740 + 0x75dc)" (identifier "pcVar3") (= "=") (cast_expression "(code *)(PTR_LAB_0015b740 + 0x75dc)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_0015b740 + 0x75dc)" (( "(") (binary_expression "PTR_LAB_0015b740 + 0x75dc" (identifier "PTR_LAB_0015b740") (+ "+") (number_literal "0x75dc")) () ")")))) (; ";")) (expression_statement "pcVar4 = (code *)(PTR_LAB_0015b700 + 0x7748);" (assignment_expression "pcVar4 = (code *)(PTR_LAB_0015b700 + 0x7748)" (identifier "pcVar4") (= "=") (cast_expression "(code *)(PTR_LAB_0015b700 + 0x7748)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_0015b700 + 0x7748)" (( "(") (binary_expression "PTR_LAB_0015b700 + 0x7748" (identifier "PTR_LAB_0015b700") (+ "+") (number_literal "0x7748")) () ")")))) (; ";")) (expression_statement "pcVar5 = (code *)(PTR_LAB_0015b6d8 + -0x23a0);" (assignment_expression "pcVar5 = (code *)(PTR_LAB_0015b6d8 + -0x23a0)" (identifier "pcVar5") (= "=") (cast_expression "(code *)(PTR_LAB_0015b6d8 + -0x23a0)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_0015b6d8 + -0x23a0)" (( "(") (binary_expression "PTR_LAB_0015b6d8 + -0x23a0" (identifier "PTR_LAB_0015b6d8") (+ "+") (number_literal "-0x23a0")) () ")")))) (; ";")) (do_statement "do {\n        iVar10 = *piVar16;\n        iVar7 = (*pcVar1)(&local_4c,iVar10,0,0,0);\n        iVar15 = (*pcVar2)(iVar10);\n        *(char *)((int)piVar14 + 0xd) = (char)iVar15;\n        if (iVar7 != 0) {\n          uVar8 = (*(code *)PTR_strlen_0015b9c4)(iVar7);\n          iVar15 = *piVar14;\n          uVar8 = uVar8 & 0x3fffffff;\n          if (iVar15 == 0) {\n            uVar9 = 0;\n            uVar13 = uVar8;\n          }\n          else {\n            uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);\n            uVar9 = uVar9 & 0x3fffffff;\n            uVar13 = uVar8 + uVar9;\n          }\n          iVar15 = (*pcVar4)(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f);\n          *piVar14 = iVar15;\n          if (iVar15 == 0) {\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n            *(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;\n          }\n        }\n        if (iVar15 == 0) {\n          *(undefined1 *)((int)piVar14 + 0xd) = 0x41;\n        }\n        piVar12 = param_1;\n        piVar6 = (int *)(*pcVar3)();\n        if ((piVar6 != (int *)0x0) && (piVar14[2] == 0)) {\n          iVar10 = *piVar6;\n          piVar12 = piVar11;\n          iVar15 = (*pcVar5)();\n          piVar14[2] = iVar15;\n        }\n        iVar17 = iVar17 + 1;\n        piVar14 = piVar14 + 4;\n        piVar16 = piVar16 + 5;\n      } while (iVar17 < *(short *)(param_2 + 0x2a));" (do "do") (compound_statement "{\n        iVar10 = *piVar16;\n        iVar7 = (*pcVar1)(&local_4c,iVar10,0,0,0);\n        iVar15 = (*pcVar2)(iVar10);\n        *(char *)((int)piVar14 + 0xd) = (char)iVar15;\n        if (iVar7 != 0) {\n          uVar8 = (*(code *)PTR_strlen_0015b9c4)(iVar7);\n          iVar15 = *piVar14;\n          uVar8 = uVar8 & 0x3fffffff;\n          if (iVar15 == 0) {\n            uVar9 = 0;\n            uVar13 = uVar8;\n          }\n          else {\n            uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);\n            uVar9 = uVar9 & 0x3fffffff;\n            uVar13 = uVar8 + uVar9;\n          }\n          iVar15 = (*pcVar4)(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f);\n          *piVar14 = iVar15;\n          if (iVar15 == 0) {\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n            *(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;\n          }\n        }\n        if (iVar15 == 0) {\n          *(undefined1 *)((int)piVar14 + 0xd) = 0x41;\n        }\n        piVar12 = param_1;\n        piVar6 = (int *)(*pcVar3)();\n        if ((piVar6 != (int *)0x0) && (piVar14[2] == 0)) {\n          iVar10 = *piVar6;\n          piVar12 = piVar11;\n          iVar15 = (*pcVar5)();\n          piVar14[2] = iVar15;\n        }\n        iVar17 = iVar17 + 1;\n        piVar14 = piVar14 + 4;\n        piVar16 = piVar16 + 5;\n      }" ({ "{") (expression_statement "iVar10 = *piVar16;" (assignment_expression "iVar10 = *piVar16" (identifier "iVar10") (= "=") (pointer_expression "*piVar16" (* "*") (identifier "piVar16"))) (; ";")) (expression_statement "iVar7 = (*pcVar1)(&local_4c,iVar10,0,0,0);" (assignment_expression "iVar7 = (*pcVar1)(&local_4c,iVar10,0,0,0)" (identifier "iVar7") (= "=") (call_expression "(*pcVar1)(&local_4c,iVar10,0,0,0)" (parenthesized_expression "(*pcVar1)" (( "(") (pointer_expression "*pcVar1" (* "*") (identifier "pcVar1")) () ")")) (argument_list "(&local_4c,iVar10,0,0,0)" (( "(") (pointer_expression "&local_4c" (& "&") (identifier "local_4c")) (, ",") (identifier "iVar10") (, ",") (number_literal "0") (, ",") (number_literal "0") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "iVar15 = (*pcVar2)(iVar10);" (assignment_expression "iVar15 = (*pcVar2)(iVar10)" (identifier "iVar15") (= "=") (call_expression "(*pcVar2)(iVar10)" (parenthesized_expression "(*pcVar2)" (( "(") (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) () ")")) (argument_list "(iVar10)" (( "(") (identifier "iVar10") () ")")))) (; ";")) (expression_statement "*(char *)((int)piVar14 + 0xd) = (char)iVar15;" (assignment_expression "*(char *)((int)piVar14 + 0xd) = (char)iVar15" (pointer_expression "*(char *)((int)piVar14 + 0xd)" (* "*") (cast_expression "(char *)((int)piVar14 + 0xd)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar14 + 0xd)" (( "(") (binary_expression "(int)piVar14 + 0xd" (cast_expression "(int)piVar14" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar14")) (+ "+") (number_literal "0xd")) () ")")))) (= "=") (cast_expression "(char)iVar15" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "iVar15"))) (; ";")) (if_statement "if (iVar7 != 0) {\n          uVar8 = (*(code *)PTR_strlen_0015b9c4)(iVar7);\n          iVar15 = *piVar14;\n          uVar8 = uVar8 & 0x3fffffff;\n          if (iVar15 == 0) {\n            uVar9 = 0;\n            uVar13 = uVar8;\n          }\n          else {\n            uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);\n            uVar9 = uVar9 & 0x3fffffff;\n            uVar13 = uVar8 + uVar9;\n          }\n          iVar15 = (*pcVar4)(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f);\n          *piVar14 = iVar15;\n          if (iVar15 == 0) {\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n            *(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;\n          }\n        }" (if "if") (parenthesized_expression "(iVar7 != 0)" (( "(") (binary_expression "iVar7 != 0" (identifier "iVar7") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n          uVar8 = (*(code *)PTR_strlen_0015b9c4)(iVar7);\n          iVar15 = *piVar14;\n          uVar8 = uVar8 & 0x3fffffff;\n          if (iVar15 == 0) {\n            uVar9 = 0;\n            uVar13 = uVar8;\n          }\n          else {\n            uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);\n            uVar9 = uVar9 & 0x3fffffff;\n            uVar13 = uVar8 + uVar9;\n          }\n          iVar15 = (*pcVar4)(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f);\n          *piVar14 = iVar15;\n          if (iVar15 == 0) {\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n            *(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;\n          }\n        }" ({ "{") (expression_statement "uVar8 = (*(code *)PTR_strlen_0015b9c4)(iVar7);" (assignment_expression "uVar8 = (*(code *)PTR_strlen_0015b9c4)(iVar7)" (identifier "uVar8") (= "=") (call_expression "(*(code *)PTR_strlen_0015b9c4)(iVar7)" (parenthesized_expression "(*(code *)PTR_strlen_0015b9c4)" (( "(") (pointer_expression "*(code *)PTR_strlen_0015b9c4" (* "*") (cast_expression "(code *)PTR_strlen_0015b9c4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0015b9c4"))) () ")")) (argument_list "(iVar7)" (( "(") (identifier "iVar7") () ")")))) (; ";")) (expression_statement "iVar15 = *piVar14;" (assignment_expression "iVar15 = *piVar14" (identifier "iVar15") (= "=") (pointer_expression "*piVar14" (* "*") (identifier "piVar14"))) (; ";")) (expression_statement "uVar8 = uVar8 & 0x3fffffff;" (assignment_expression "uVar8 = uVar8 & 0x3fffffff" (identifier "uVar8") (= "=") (binary_expression "uVar8 & 0x3fffffff" (identifier "uVar8") (& "&") (number_literal "0x3fffffff"))) (; ";")) (if_statement "if (iVar15 == 0) {\n            uVar9 = 0;\n            uVar13 = uVar8;\n          }\n          else {\n            uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);\n            uVar9 = uVar9 & 0x3fffffff;\n            uVar13 = uVar8 + uVar9;\n          }" (if "if") (parenthesized_expression "(iVar15 == 0)" (( "(") (binary_expression "iVar15 == 0" (identifier "iVar15") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            uVar9 = 0;\n            uVar13 = uVar8;\n          }" ({ "{") (expression_statement "uVar9 = 0;" (assignment_expression "uVar9 = 0" (identifier "uVar9") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar13 = uVar8;" (assignment_expression "uVar13 = uVar8" (identifier "uVar13") (= "=") (identifier "uVar8")) (; ";")) (} "}")) (else_clause "else {\n            uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);\n            uVar9 = uVar9 & 0x3fffffff;\n            uVar13 = uVar8 + uVar9;\n          }" (else "else") (compound_statement "{\n            uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);\n            uVar9 = uVar9 & 0x3fffffff;\n            uVar13 = uVar8 + uVar9;\n          }" ({ "{") (expression_statement "uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);" (assignment_expression "uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15)" (identifier "uVar9") (= "=") (call_expression "(*(code *)PTR_strlen_0015b9c4)(iVar15)" (parenthesized_expression "(*(code *)PTR_strlen_0015b9c4)" (( "(") (pointer_expression "*(code *)PTR_strlen_0015b9c4" (* "*") (cast_expression "(code *)PTR_strlen_0015b9c4" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_strlen_0015b9c4"))) () ")")) (argument_list "(iVar15)" (( "(") (identifier "iVar15") () ")")))) (; ";")) (expression_statement "uVar9 = uVar9 & 0x3fffffff;" (assignment_expression "uVar9 = uVar9 & 0x3fffffff" (identifier "uVar9") (= "=") (binary_expression "uVar9 & 0x3fffffff" (identifier "uVar9") (& "&") (number_literal "0x3fffffff"))) (; ";")) (expression_statement "uVar13 = uVar8 + uVar9;" (assignment_expression "uVar13 = uVar8 + uVar9" (identifier "uVar13") (= "=") (binary_expression "uVar8 + uVar9" (identifier "uVar8") (+ "+") (identifier "uVar9"))) (; ";")) (} "}")))) (expression_statement "iVar15 = (*pcVar4)(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f);" (assignment_expression "iVar15 = (*pcVar4)(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f)" (identifier "iVar15") (= "=") (call_expression "(*pcVar4)(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f)" (parenthesized_expression "(*pcVar4)" (( "(") (pointer_expression "*pcVar4" (* "*") (identifier "pcVar4")) () ")")) (argument_list "(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f)" (( "(") (identifier "piVar11") (, ",") (identifier "iVar15") (, ",") (binary_expression "(int)(uVar13 + 2) >> 0x1f" (cast_expression "(int)(uVar13 + 2)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "(uVar13 + 2)" (( "(") (binary_expression "uVar13 + 2" (identifier "uVar13") (+ "+") (number_literal "2")) () ")"))) (>> ">>") (number_literal "0x1f")) () ")")))) (; ";")) (expression_statement "*piVar14 = iVar15;" (assignment_expression "*piVar14 = iVar15" (pointer_expression "*piVar14" (* "*") (identifier "piVar14")) (= "=") (identifier "iVar15")) (; ";")) (if_statement "if (iVar15 == 0) {\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n          }\n          else {\n            (*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n            *(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;\n          }" (if "if") (parenthesized_expression "(iVar15 == 0)" (( "(") (binary_expression "iVar15 == 0" (identifier "iVar15") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n          }" ({ "{") (expression_statement "iVar15 = (int)*(char *)((int)piVar14 + 0xd);" (assignment_expression "iVar15 = (int)*(char *)((int)piVar14 + 0xd)" (identifier "iVar15") (= "=") (cast_expression "(int)*(char *)((int)piVar14 + 0xd)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*(char *)((int)piVar14 + 0xd)" (* "*") (cast_expression "(char *)((int)piVar14 + 0xd)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar14 + 0xd)" (( "(") (binary_expression "(int)piVar14 + 0xd" (cast_expression "(int)piVar14" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar14")) (+ "+") (number_literal "0xd")) () ")")))))) (; ";")) (} "}")) (else_clause "else {\n            (*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n            *(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;\n          }" (else "else") (compound_statement "{\n            (*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);\n            iVar15 = (int)*(char *)((int)piVar14 + 0xd);\n            *(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;\n          }" ({ "{") (expression_statement "(*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);" (call_expression "(*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1)" (parenthesized_expression "(*(code *)PTR_memcpy_0015ba30)" (( "(") (pointer_expression "*(code *)PTR_memcpy_0015ba30" (* "*") (cast_expression "(code *)PTR_memcpy_0015ba30" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR_memcpy_0015ba30"))) () ")")) (argument_list "(iVar15 + uVar9 + 1,iVar7,uVar8 + 1)" (( "(") (binary_expression "iVar15 + uVar9 + 1" (binary_expression "iVar15 + uVar9" (identifier "iVar15") (+ "+") (identifier "uVar9")) (+ "+") (number_literal "1")) (, ",") (identifier "iVar7") (, ",") (binary_expression "uVar8 + 1" (identifier "uVar8") (+ "+") (number_literal "1")) () ")"))) (; ";")) (expression_statement "iVar15 = (int)*(char *)((int)piVar14 + 0xd);" (assignment_expression "iVar15 = (int)*(char *)((int)piVar14 + 0xd)" (identifier "iVar15") (= "=") (cast_expression "(int)*(char *)((int)piVar14 + 0xd)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*(char *)((int)piVar14 + 0xd)" (* "*") (cast_expression "(char *)((int)piVar14 + 0xd)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar14 + 0xd)" (( "(") (binary_expression "(int)piVar14 + 0xd" (cast_expression "(int)piVar14" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar14")) (+ "+") (number_literal "0xd")) () ")")))))) (; ";")) (expression_statement "*(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;" (assignment_expression "*(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4" (pointer_expression "*(byte *)((int)piVar14 + 0xf)" (* "*") (cast_expression "(byte *)((int)piVar14 + 0xf)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar14 + 0xf)" (( "(") (binary_expression "(int)piVar14 + 0xf" (cast_expression "(int)piVar14" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar14")) (+ "+") (number_literal "0xf")) () ")")))) (= "=") (binary_expression "*(byte *)((int)piVar14 + 0xf) | 4" (pointer_expression "*(byte *)((int)piVar14 + 0xf)" (* "*") (cast_expression "(byte *)((int)piVar14 + 0xf)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar14 + 0xf)" (( "(") (binary_expression "(int)piVar14 + 0xf" (cast_expression "(int)piVar14" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar14")) (+ "+") (number_literal "0xf")) () ")")))) (| "|") (number_literal "4"))) (; ";")) (} "}")))) (} "}"))) (if_statement "if (iVar15 == 0) {\n          *(undefined1 *)((int)piVar14 + 0xd) = 0x41;\n        }" (if "if") (parenthesized_expression "(iVar15 == 0)" (( "(") (binary_expression "iVar15 == 0" (identifier "iVar15") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n          *(undefined1 *)((int)piVar14 + 0xd) = 0x41;\n        }" ({ "{") (expression_statement "*(undefined1 *)((int)piVar14 + 0xd) = 0x41;" (assignment_expression "*(undefined1 *)((int)piVar14 + 0xd) = 0x41" (pointer_expression "*(undefined1 *)((int)piVar14 + 0xd)" (* "*") (cast_expression "(undefined1 *)((int)piVar14 + 0xd)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar14 + 0xd)" (( "(") (binary_expression "(int)piVar14 + 0xd" (cast_expression "(int)piVar14" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar14")) (+ "+") (number_literal "0xd")) () ")")))) (= "=") (number_literal "0x41")) (; ";")) (} "}"))) (expression_statement "piVar12 = param_1;" (assignment_expression "piVar12 = param_1" (identifier "piVar12") (= "=") (identifier "param_1")) (; ";")) (expression_statement "piVar6 = (int *)(*pcVar3)();" (assignment_expression "piVar6 = (int *)(*pcVar3)()" (identifier "piVar6") (= "=") (cast_expression "(int *)(*pcVar3)()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*pcVar3)()" (parenthesized_expression "(*pcVar3)" (( "(") (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) () ")")) (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if ((piVar6 != (int *)0x0) && (piVar14[2] == 0)) {\n          iVar10 = *piVar6;\n          piVar12 = piVar11;\n          iVar15 = (*pcVar5)();\n          piVar14[2] = iVar15;\n        }" (if "if") (parenthesized_expression "((piVar6 != (int *)0x0) && (piVar14[2] == 0))" (( "(") (binary_expression "(piVar6 != (int *)0x0) && (piVar14[2] == 0)" (parenthesized_expression "(piVar6 != (int *)0x0)" (( "(") (binary_expression "piVar6 != (int *)0x0" (identifier "piVar6") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(piVar14[2] == 0)" (( "(") (binary_expression "piVar14[2] == 0" (subscript_expression "piVar14[2]" (identifier "piVar14") ([ "[") (number_literal "2") (] "]")) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n          iVar10 = *piVar6;\n          piVar12 = piVar11;\n          iVar15 = (*pcVar5)();\n          piVar14[2] = iVar15;\n        }" ({ "{") (expression_statement "iVar10 = *piVar6;" (assignment_expression "iVar10 = *piVar6" (identifier "iVar10") (= "=") (pointer_expression "*piVar6" (* "*") (identifier "piVar6"))) (; ";")) (expression_statement "piVar12 = piVar11;" (assignment_expression "piVar12 = piVar11" (identifier "piVar12") (= "=") (identifier "piVar11")) (; ";")) (expression_statement "iVar15 = (*pcVar5)();" (assignment_expression "iVar15 = (*pcVar5)()" (identifier "iVar15") (= "=") (call_expression "(*pcVar5)()" (parenthesized_expression "(*pcVar5)" (( "(") (pointer_expression "*pcVar5" (* "*") (identifier "pcVar5")) () ")")) (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "piVar14[2] = iVar15;" (assignment_expression "piVar14[2] = iVar15" (subscript_expression "piVar14[2]" (identifier "piVar14") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "iVar15")) (; ";")) (} "}"))) (expression_statement "iVar17 = iVar17 + 1;" (assignment_expression "iVar17 = iVar17 + 1" (identifier "iVar17") (= "=") (binary_expression "iVar17 + 1" (identifier "iVar17") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "piVar14 = piVar14 + 4;" (assignment_expression "piVar14 = piVar14 + 4" (identifier "piVar14") (= "=") (binary_expression "piVar14 + 4" (identifier "piVar14") (+ "+") (number_literal "4"))) (; ";")) (expression_statement "piVar16 = piVar16 + 5;" (assignment_expression "piVar16 = piVar16 + 5" (identifier "piVar16") (= "=") (binary_expression "piVar16 + 5" (identifier "piVar16") (+ "+") (number_literal "5"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(iVar17 < *(short *)(param_2 + 0x2a))" (( "(") (binary_expression "iVar17 < *(short *)(param_2 + 0x2a)" (identifier "iVar17") (< "<") (pointer_expression "*(short *)(param_2 + 0x2a)" (* "*") (cast_expression "(short *)(param_2 + 0x2a)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x2a)" (( "(") (binary_expression "param_2 + 0x2a" (identifier "param_2") (+ "+") (number_literal "0x2a")) () ")"))))) () ")")) (; ";")) (} "}"))) (expression_statement "*(undefined2 *)(param_2 + 0x2e) = 1;" (assignment_expression "*(undefined2 *)(param_2 + 0x2e) = 1" (pointer_expression "*(undefined2 *)(param_2 + 0x2e)" (* "*") (cast_expression "(undefined2 *)(param_2 + 0x2e)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x2e)" (( "(") (binary_expression "param_2 + 0x2e" (identifier "param_2") (+ "+") (number_literal "0x2e")) () ")")))) (= "=") (number_literal "1")) (; ";")) (} "}"))) (if_statement "if (local_2c == *(int *)puVar18) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_2c == *(int *)puVar18)" (( "(") (binary_expression "local_2c == *(int *)puVar18" (identifier "local_2c") (== "==") (pointer_expression "*(int *)puVar18" (* "*") (cast_expression "(int *)puVar18" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar18")))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "puVar18 = PTR___stack_chk_fail_0015ba10;" (assignment_expression "puVar18 = PTR___stack_chk_fail_0015ba10" (identifier "puVar18") (= "=") (identifier "PTR___stack_chk_fail_0015ba10")) (; ";")) (expression_statement "(*(code *)PTR___stack_chk_fail_0015ba10)();" (call_expression "(*(code *)PTR___stack_chk_fail_0015ba10)()" (parenthesized_expression "(*(code *)PTR___stack_chk_fail_0015ba10)" (( "(") (pointer_expression "*(code *)PTR___stack_chk_fail_0015ba10" (* "*") (cast_expression "(code *)PTR___stack_chk_fail_0015ba10" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "PTR___stack_chk_fail_0015ba10"))) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "puVar18 = puVar18 + 0xea668;" (assignment_expression "puVar18 = puVar18 + 0xea668" (identifier "puVar18") (= "=") (binary_expression "puVar18 + 0xea668" (identifier "puVar18") (+ "+") (number_literal "0xea668"))) (; ";")) (if_statement "if ((*(uint *)(iVar10 + 8) & 0x80) != 0) {\n    return;\n  }" (if "if") (parenthesized_expression "((*(uint *)(iVar10 + 8) & 0x80) != 0)" (( "(") (binary_expression "(*(uint *)(iVar10 + 8) & 0x80) != 0" (parenthesized_expression "(*(uint *)(iVar10 + 8) & 0x80)" (( "(") (binary_expression "*(uint *)(iVar10 + 8) & 0x80" (pointer_expression "*(uint *)(iVar10 + 8)" (* "*") (cast_expression "(uint *)(iVar10 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar10 + 8)" (( "(") (binary_expression "iVar10 + 8" (identifier "iVar10") (+ "+") (number_literal "8")) () ")")))) (& "&") (number_literal "0x80")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "*(uint *)(iVar10 + 8) = *(uint *)(iVar10 + 8) | 0x80;" (assignment_expression "*(uint *)(iVar10 + 8) = *(uint *)(iVar10 + 8) | 0x80" (pointer_expression "*(uint *)(iVar10 + 8)" (* "*") (cast_expression "(uint *)(iVar10 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar10 + 8)" (( "(") (binary_expression "iVar10 + 8" (identifier "iVar10") (+ "+") (number_literal "8")) () ")")))) (= "=") (binary_expression "*(uint *)(iVar10 + 8) | 0x80" (pointer_expression "*(uint *)(iVar10 + 8)" (* "*") (cast_expression "(uint *)(iVar10 + 8)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar10 + 8)" (( "(") (binary_expression "iVar10 + 8" (identifier "iVar10") (+ "+") (number_literal "8")) () ")")))) (| "|") (number_literal "0x80"))) (; ";")) (expression_statement "piVar11 = *(int **)(iVar10 + 0x20);" (assignment_expression "piVar11 = *(int **)(iVar10 + 0x20)" (identifier "piVar11") (= "=") (pointer_expression "*(int **)(iVar10 + 0x20)" (* "*") (cast_expression "(int **)(iVar10 + 0x20)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar10 + 0x20)" (( "(") (binary_expression "iVar10 + 0x20" (identifier "iVar10") (+ "+") (number_literal "0x20")) () ")"))))) (; ";")) (expression_statement "iVar17 = *piVar12;" (assignment_expression "iVar17 = *piVar12" (identifier "iVar17") (= "=") (pointer_expression "*piVar12" (* "*") (identifier "piVar12"))) (; ";")) (expression_statement "iVar10 = *piVar11;" (assignment_expression "iVar10 = *piVar11" (identifier "iVar10") (= "=") (pointer_expression "*piVar11" (* "*") (identifier "piVar11"))) (; ";")) (expression_statement "piVar12 = piVar11 + 2;" (assignment_expression "piVar12 = piVar11 + 2" (identifier "piVar12") (= "=") (binary_expression "piVar11 + 2" (identifier "piVar11") (+ "+") (number_literal "2"))) (; ";")) (if_statement "if (iVar10 < 1) {\n    return;\n  }" (if "if") (parenthesized_expression "(iVar10 < 1)" (( "(") (binary_expression "iVar10 < 1" (identifier "iVar10") (< "<") (number_literal "1")) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "iVar15 = 0;" (assignment_expression "iVar15 = 0" (identifier "iVar15") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n    while ((*(uint *)(piVar12[4] + 0x24) & 2) == 0) {\nLAB_00078fb0:\n      iVar15 = iVar15 + 1;\n      piVar12 = piVar12 + 0x12;\n      if (iVar10 <= iVar15) {\n        return;\n      }\n    }\n    iVar7 = piVar12[5];\n    if (piVar12[5] != 0) {\n      do {\n        iVar10 = iVar7;\n        iVar7 = *(int *)(iVar10 + 0x34);\n      } while (*(int *)(iVar10 + 0x34) != 0);\n      FUN_00078cd0(iVar17,piVar12[4],iVar10,iVar10 + 0x20,puVar18);\n      iVar10 = *piVar11;\n      goto LAB_00078fb0;\n    }\n    iVar15 = iVar15 + 1;\n    piVar12 = piVar12 + 0x12;\n    if (iVar10 <= iVar15) {\n      return;\n    }\n  } while( true );" (do "do") (compound_statement "{\n    while ((*(uint *)(piVar12[4] + 0x24) & 2) == 0) {\nLAB_00078fb0:\n      iVar15 = iVar15 + 1;\n      piVar12 = piVar12 + 0x12;\n      if (iVar10 <= iVar15) {\n        return;\n      }\n    }\n    iVar7 = piVar12[5];\n    if (piVar12[5] != 0) {\n      do {\n        iVar10 = iVar7;\n        iVar7 = *(int *)(iVar10 + 0x34);\n      } while (*(int *)(iVar10 + 0x34) != 0);\n      FUN_00078cd0(iVar17,piVar12[4],iVar10,iVar10 + 0x20,puVar18);\n      iVar10 = *piVar11;\n      goto LAB_00078fb0;\n    }\n    iVar15 = iVar15 + 1;\n    piVar12 = piVar12 + 0x12;\n    if (iVar10 <= iVar15) {\n      return;\n    }\n  }" ({ "{") (while_statement "while ((*(uint *)(piVar12[4] + 0x24) & 2) == 0) {\nLAB_00078fb0:\n      iVar15 = iVar15 + 1;\n      piVar12 = piVar12 + 0x12;\n      if (iVar10 <= iVar15) {\n        return;\n      }\n    }" (while "while") (parenthesized_expression "((*(uint *)(piVar12[4] + 0x24) & 2) == 0)" (( "(") (binary_expression "(*(uint *)(piVar12[4] + 0x24) & 2) == 0" (parenthesized_expression "(*(uint *)(piVar12[4] + 0x24) & 2)" (( "(") (binary_expression "*(uint *)(piVar12[4] + 0x24) & 2" (pointer_expression "*(uint *)(piVar12[4] + 0x24)" (* "*") (cast_expression "(uint *)(piVar12[4] + 0x24)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar12[4] + 0x24)" (( "(") (binary_expression "piVar12[4] + 0x24" (subscript_expression "piVar12[4]" (identifier "piVar12") ([ "[") (number_literal "4") (] "]")) (+ "+") (number_literal "0x24")) () ")")))) (& "&") (number_literal "2")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\nLAB_00078fb0:\n      iVar15 = iVar15 + 1;\n      piVar12 = piVar12 + 0x12;\n      if (iVar10 <= iVar15) {\n        return;\n      }\n    }" ({ "{") (labeled_statement "LAB_00078fb0:\n      iVar15 = iVar15 + 1;" (statement_identifier "LAB_00078fb0") (: ":") (expression_statement "iVar15 = iVar15 + 1;" (assignment_expression "iVar15 = iVar15 + 1" (identifier "iVar15") (= "=") (binary_expression "iVar15 + 1" (identifier "iVar15") (+ "+") (number_literal "1"))) (; ";"))) (expression_statement "piVar12 = piVar12 + 0x12;" (assignment_expression "piVar12 = piVar12 + 0x12" (identifier "piVar12") (= "=") (binary_expression "piVar12 + 0x12" (identifier "piVar12") (+ "+") (number_literal "0x12"))) (; ";")) (if_statement "if (iVar10 <= iVar15) {\n        return;\n      }" (if "if") (parenthesized_expression "(iVar10 <= iVar15)" (( "(") (binary_expression "iVar10 <= iVar15" (identifier "iVar10") (<= "<=") (identifier "iVar15")) () ")")) (compound_statement "{\n        return;\n      }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}"))) (expression_statement "iVar7 = piVar12[5];" (assignment_expression "iVar7 = piVar12[5]" (identifier "iVar7") (= "=") (subscript_expression "piVar12[5]" (identifier "piVar12") ([ "[") (number_literal "5") (] "]"))) (; ";")) (if_statement "if (piVar12[5] != 0) {\n      do {\n        iVar10 = iVar7;\n        iVar7 = *(int *)(iVar10 + 0x34);\n      } while (*(int *)(iVar10 + 0x34) != 0);\n      FUN_00078cd0(iVar17,piVar12[4],iVar10,iVar10 + 0x20,puVar18);\n      iVar10 = *piVar11;\n      goto LAB_00078fb0;\n    }" (if "if") (parenthesized_expression "(piVar12[5] != 0)" (( "(") (binary_expression "piVar12[5] != 0" (subscript_expression "piVar12[5]" (identifier "piVar12") ([ "[") (number_literal "5") (] "]")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      do {\n        iVar10 = iVar7;\n        iVar7 = *(int *)(iVar10 + 0x34);\n      } while (*(int *)(iVar10 + 0x34) != 0);\n      FUN_00078cd0(iVar17,piVar12[4],iVar10,iVar10 + 0x20,puVar18);\n      iVar10 = *piVar11;\n      goto LAB_00078fb0;\n    }" ({ "{") (do_statement "do {\n        iVar10 = iVar7;\n        iVar7 = *(int *)(iVar10 + 0x34);\n      } while (*(int *)(iVar10 + 0x34) != 0);" (do "do") (compound_statement "{\n        iVar10 = iVar7;\n        iVar7 = *(int *)(iVar10 + 0x34);\n      }" ({ "{") (expression_statement "iVar10 = iVar7;" (assignment_expression "iVar10 = iVar7" (identifier "iVar10") (= "=") (identifier "iVar7")) (; ";")) (expression_statement "iVar7 = *(int *)(iVar10 + 0x34);" (assignment_expression "iVar7 = *(int *)(iVar10 + 0x34)" (identifier "iVar7") (= "=") (pointer_expression "*(int *)(iVar10 + 0x34)" (* "*") (cast_expression "(int *)(iVar10 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar10 + 0x34)" (( "(") (binary_expression "iVar10 + 0x34" (identifier "iVar10") (+ "+") (number_literal "0x34")) () ")"))))) (; ";")) (} "}")) (while "while") (parenthesized_expression "(*(int *)(iVar10 + 0x34) != 0)" (( "(") (binary_expression "*(int *)(iVar10 + 0x34) != 0" (pointer_expression "*(int *)(iVar10 + 0x34)" (* "*") (cast_expression "(int *)(iVar10 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar10 + 0x34)" (( "(") (binary_expression "iVar10 + 0x34" (identifier "iVar10") (+ "+") (number_literal "0x34")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (; ";")) (expression_statement "FUN_00078cd0(iVar17,piVar12[4],iVar10,iVar10 + 0x20,puVar18);" (call_expression "FUN_00078cd0(iVar17,piVar12[4],iVar10,iVar10 + 0x20,puVar18)" (identifier "FUN_00078cd0") (argument_list "(iVar17,piVar12[4],iVar10,iVar10 + 0x20,puVar18)" (( "(") (identifier "iVar17") (, ",") (subscript_expression "piVar12[4]" (identifier "piVar12") ([ "[") (number_literal "4") (] "]")) (, ",") (identifier "iVar10") (, ",") (binary_expression "iVar10 + 0x20" (identifier "iVar10") (+ "+") (number_literal "0x20")) (, ",") (identifier "puVar18") () ")"))) (; ";")) (expression_statement "iVar10 = *piVar11;" (assignment_expression "iVar10 = *piVar11" (identifier "iVar10") (= "=") (pointer_expression "*piVar11" (* "*") (identifier "piVar11"))) (; ";")) (goto_statement "goto LAB_00078fb0;" (goto "goto") (statement_identifier "LAB_00078fb0") (; ";")) (} "}"))) (expression_statement "iVar15 = iVar15 + 1;" (assignment_expression "iVar15 = iVar15 + 1" (identifier "iVar15") (= "=") (binary_expression "iVar15 + 1" (identifier "iVar15") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "piVar12 = piVar12 + 0x12;" (assignment_expression "piVar12 = piVar12 + 0x12" (identifier "piVar12") (= "=") (binary_expression "piVar12 + 0x12" (identifier "piVar12") (+ "+") (number_literal "0x12"))) (; ";")) (if_statement "if (iVar10 <= iVar15) {\n      return;\n    }" (if "if") (parenthesized_expression "(iVar10 <= iVar15)" (( "(") (binary_expression "iVar10 <= iVar15" (identifier "iVar10") (<= "<=") (identifier "iVar15")) () ")")) (compound_statement "{\n      return;\n    }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (} "}")) (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (; ";")) (} "}")))

/* DWARF original prototype: void sqlite3SelectAddColumnTypeAndCollation(Parse * pParse, Table *
   pTab, Select * pSelect, Select * pSelect) */

void function_1
               (type_1 *pParse,type_2 *pTab,type_3 *pSelect,type_3 *pSelect_1)

{
  type_4 *puVar1;
  type_3 *pSVar2;
  type_5 *pcVar3;
  type_5 *pcVar4;
  type_5 *pcVar5;
  type_5 *pcVar6;
  type_5 *pcVar7;
  type_6 *var_12;
  int var_6;
  int var_11;
  type_7 var_7;
  type_7 var_9;
  int var_16;
  type_8 *psVar14;
  char *var_8;
  type_3 *pSelect_00;
  type_7 var_10;
  type_9 *var_14;
  int *var_18;
  type_2 *pTVar19;
  int var_13;
  type_10 *var_15;
  type_8 *psVar22;
  int *var_17;
  type_11 sNC;
  
  puVar1 = PTR___stack_chk_guard_0015ba2c;
  psVar14 = pParse->db;
  var_16 = *(int *)PTR___stack_chk_guard_0015ba2c;
  psVar22 = psVar14;
  pTVar19 = pTab;
  if (psVar14->mallocFailed == '\0') {
    sNC.pSrcList = (type_12 *)pSelect_1->pEList;
    var_14 = pTab->aCol;
    sNC.pParse = (type_1 *)0x0;
    sNC.uNC.pEList = (type_13 *)0x0;
    sNC.pNext = (type_11 *)0x0;
    sNC.nRef = 0;
    sNC.nErr = 0;
    sNC.ncFlags = 0;
    sNC._26_2_ = 0;
    sNC.pWinSelect = (type_3 *)0x0;
    if (0 < pTab->nCol) {
      var_15 = pSelect->pEList->a;
      var_13 = 0;
      pcVar3 = (type_5 *)(var_1 + 0x4814);
      pcVar4 = (type_5 *)(var_2 + 0x5914);
      pcVar5 = (type_5 *)(var_3 + 0x75dc);
      pcVar6 = (type_5 *)(var_4 + 0x7748);
      pcVar7 = (type_5 *)(var_5 + -0x23a0);
      do {
        pTVar19 = (type_2 *)var_15->pExpr;
        var_6 = (*pcVar3)(&sNC,pTVar19,0,0,0);
        var_11 = (*pcVar4)(pTVar19);
        var_14->affinity = (char)var_11;
        if (var_6 != 0) {
          var_7 = (*(type_5 *)PTR_strlen_0015b9c4)(var_6);
          var_8 = var_14->zName;
          var_7 = var_7 & 0x3fffffff;
          if (var_8 == (char *)0x0) {
            var_9 = 0;
            var_10 = var_7;
          }
          else {
            var_9 = (*(type_5 *)PTR_strlen_0015b9c4)(var_8);
            var_9 = var_9 & 0x3fffffff;
            var_10 = var_7 + var_9;
          }
          var_8 = (char *)(*pcVar6)(psVar14,var_8,(int)(var_10 + 2) >> 0x1f);
          var_14->zName = var_8;
          if (var_8 == (char *)0x0) {
            var_11 = (int)var_14->affinity;
          }
          else {
            (*(type_5 *)PTR_memcpy_0015ba30)(var_8 + var_9 + 1,var_6,var_7 + 1);
            var_11 = (int)var_14->affinity;
            var_14->colFlags = var_14->colFlags | 4;
          }
        }
        if (var_11 == 0) {
          var_14->affinity = 'A';
        }
        psVar22 = (type_8 *)pParse;
        var_12 = (type_6 *)(*pcVar5)();
        if ((var_12 != (type_6 *)0x0) && (var_14->zColl == (char *)0x0)) {
          pTVar19 = (type_2 *)*var_12;
          psVar22 = psVar14;
          var_8 = (char *)(*pcVar7)();
          var_14->zColl = var_8;
        }
        var_13 = var_13 + 1;
        var_14 = var_14 + 1;
        var_15 = var_15 + 1;
      } while (var_13 < pTab->nCol);
    }
    pTab->szTabRow = 1;
  }
  if (var_16 == *(int *)puVar1) {
    return;
  }
  (*(type_5 *)PTR___stack_chk_fail_0015ba10)();
  if (((type_7)pTVar19->pIndex & 0x80) != 0) {
    return;
  }
  pTVar19->pIndex = (type_14 *)((type_7)pTVar19->pIndex | 0x80);
  var_17 = (int *)pTVar19->nTabRef;
  psVar22 = (type_8 *)psVar22->pVfs;
  var_16 = *var_17;
  var_18 = var_17 + 2;
  if (var_16 < 1) {
    return;
  }
  var_13 = 0;
  do {
    while ((((type_2 *)var_18[4])->tabFlags & 2) == 0) {
LAB_00078fb0:
      var_13 = var_13 + 1;
      var_18 = var_18 + 0x12;
      if (var_16 <= var_13) {
        return;
      }
    }
    pSVar2 = (type_3 *)var_18[5];
    if ((type_3 *)var_18[5] != (type_3 *)0x0) {
      do {
        pSelect_00 = pSVar2;
        pSVar2 = pSelect_00->pPrior;
      } while (pSelect_00->pPrior != (type_3 *)0x0);
      function_1
                ((type_1 *)psVar22,(type_2 *)var_18[4],pSelect_00,(type_3 *)&pSelect_00->pSrc);
      var_16 = *var_17;
      goto LAB_00078fb0;
    }
    var_13 = var_13 + 1;
    var_18 = var_18 + 0x12;
    if (var_16 <= var_13) {
      return;
    }
  } while( true );
}


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

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

{
  code *pcVar1;
  code *pcVar2;
  code *pcVar3;
  code *pcVar4;
  code *pcVar5;
  int *piVar6;
  int iVar7;
  uint uVar8;
  uint uVar9;
  int iVar10;
  int *piVar11;
  int *piVar12;
  uint uVar13;
  int *piVar14;
  int iVar15;
  int *piVar16;
  int iVar17;
  undefined *puVar18;
  undefined4 local_4c;
  undefined4 local_48;
  undefined4 local_44;
  undefined4 local_40;
  undefined4 local_3c;
  undefined4 local_38;
  undefined4 local_34;
  undefined4 local_30;
  int local_2c;
  
  puVar18 = PTR___stack_chk_guard_0015ba2c;
  piVar11 = (int *)*param_1;
  local_2c = *(int *)PTR___stack_chk_guard_0015ba2c;
  piVar12 = piVar11;
  iVar10 = param_2;
  if (*(char *)((int)piVar11 + 0x51) == '\0') {
    local_48 = *param_4;
    piVar14 = *(int **)(param_2 + 4);
    local_4c = 0;
    local_44 = 0;
    local_40 = 0;
    local_3c = 0;
    local_38 = 0;
    local_34 = 0;
    local_30 = 0;
    if (0 < *(short *)(param_2 + 0x2a)) {
      piVar16 = (int *)(*param_3 + 4);
      iVar17 = 0;
      pcVar1 = (code *)(PTR_LAB_0015b6c0 + 0x4814);
      pcVar2 = (code *)(PTR_LAB_0015b65c + 0x5914);
      pcVar3 = (code *)(PTR_LAB_0015b740 + 0x75dc);
      pcVar4 = (code *)(PTR_LAB_0015b700 + 0x7748);
      pcVar5 = (code *)(PTR_LAB_0015b6d8 + -0x23a0);
      do {
        iVar10 = *piVar16;
        iVar7 = (*pcVar1)(&local_4c,iVar10,0,0,0);
        iVar15 = (*pcVar2)(iVar10);
        *(char *)((int)piVar14 + 0xd) = (char)iVar15;
        if (iVar7 != 0) {
          uVar8 = (*(code *)PTR_strlen_0015b9c4)(iVar7);
          iVar15 = *piVar14;
          uVar8 = uVar8 & 0x3fffffff;
          if (iVar15 == 0) {
            uVar9 = 0;
            uVar13 = uVar8;
          }
          else {
            uVar9 = (*(code *)PTR_strlen_0015b9c4)(iVar15);
            uVar9 = uVar9 & 0x3fffffff;
            uVar13 = uVar8 + uVar9;
          }
          iVar15 = (*pcVar4)(piVar11,iVar15,(int)(uVar13 + 2) >> 0x1f);
          *piVar14 = iVar15;
          if (iVar15 == 0) {
            iVar15 = (int)*(char *)((int)piVar14 + 0xd);
          }
          else {
            (*(code *)PTR_memcpy_0015ba30)(iVar15 + uVar9 + 1,iVar7,uVar8 + 1);
            iVar15 = (int)*(char *)((int)piVar14 + 0xd);
            *(byte *)((int)piVar14 + 0xf) = *(byte *)((int)piVar14 + 0xf) | 4;
          }
        }
        if (iVar15 == 0) {
          *(undefined1 *)((int)piVar14 + 0xd) = 0x41;
        }
        piVar12 = param_1;
        piVar6 = (int *)(*pcVar3)();
        if ((piVar6 != (int *)0x0) && (piVar14[2] == 0)) {
          iVar10 = *piVar6;
          piVar12 = piVar11;
          iVar15 = (*pcVar5)();
          piVar14[2] = iVar15;
        }
        iVar17 = iVar17 + 1;
        piVar14 = piVar14 + 4;
        piVar16 = piVar16 + 5;
      } while (iVar17 < *(short *)(param_2 + 0x2a));
    }
    *(undefined2 *)(param_2 + 0x2e) = 1;
  }
  if (local_2c == *(int *)puVar18) {
    return;
  }
  puVar18 = PTR___stack_chk_fail_0015ba10;
  (*(code *)PTR___stack_chk_fail_0015ba10)();
  puVar18 = puVar18 + 0xea668;
  if ((*(uint *)(iVar10 + 8) & 0x80) != 0) {
    return;
  }
  *(uint *)(iVar10 + 8) = *(uint *)(iVar10 + 8) | 0x80;
  piVar11 = *(int **)(iVar10 + 0x20);
  iVar17 = *piVar12;
  iVar10 = *piVar11;
  piVar12 = piVar11 + 2;
  if (iVar10 < 1) {
    return;
  }
  iVar15 = 0;
  do {
    while ((*(uint *)(piVar12[4] + 0x24) & 2) == 0) {
LAB_00078fb0:
      iVar15 = iVar15 + 1;
      piVar12 = piVar12 + 0x12;
      if (iVar10 <= iVar15) {
        return;
      }
    }
    iVar7 = piVar12[5];
    if (piVar12[5] != 0) {
      do {
        iVar10 = iVar7;
        iVar7 = *(int *)(iVar10 + 0x34);
      } while (*(int *)(iVar10 + 0x34) != 0);
      MASKED(iVar17,piVar12[4],iVar10,iVar10 + 0x20,puVar18);
      iVar10 = *piVar11;
      goto LAB_00078fb0;
    }
    iVar15 = iVar15 + 1;
    piVar12 = piVar12 + 0x12;
    if (iVar10 <= iVar15) {
      return;
    }
  } while( true );
}

