
Select * sqlite3SelectNew(Parse *pParse,ExprList *pEList,SrcList *pSrc,Expr *pWhere,
                         ExprList *pGroupBy,Expr *pHaving,ExprList *pOrderBy,u32 selFlags,
                         Expr *pLimit)

{
  undefined *puVar1;
  Select *pSVar2;
  u32 uVar3;
  Expr *pExpr;
  int iVar4;
  Token x;
  Select standin;
  
  puVar1 = PTR___stack_chk_guard_0015ba2c;
  iVar4 = *(int *)PTR___stack_chk_guard_0015ba2c;
  if ((pParse->db->mallocFailed != '\0') ||
     (pSVar2 = (Select *)(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(pParse->db,iVar4,0,0x4c),
     pSVar2 == (Select *)0x0)) {
    pSVar2 = &standin;
  }
  if (pEList == (ExprList *)0x0) {
    x.z = (char *)0x0;
    x.n = 0;
    pExpr = (Expr *)(*(code *)(PTR_LAB_0015b6d8 + -0x1cc0))(pParse->db,0xa8,&x,0);
    pEList = sqlite3ExprListAppend((Parse *)pParse->db,(ExprList *)0x0,pExpr);
  }
  pSVar2->pEList = pEList;
  pSVar2->iLimit = 0;
  pSVar2->selFlags = selFlags;
  pSVar2->iOffset = 0;
  pSVar2->op = '\x7f';
  uVar3 = pParse->nSelect + 1;
  pParse->nSelect = uVar3;
  pSVar2->selId = uVar3;
  pSVar2->addrOpenEphm[0] = -1;
  pSVar2->addrOpenEphm[1] = -1;
  pSVar2->nSelectRow = 0;
  if (pSrc == (SrcList *)0x0) {
    pSrc = (SrcList *)(*(code *)(PTR_LAB_0015b6d8 + -0x2a40))(pParse->db);
  }
  pSVar2->pSrc = pSrc;
  pSVar2->pWhere = pWhere;
  pSVar2->pGroupBy = pGroupBy;
  pSVar2->pHaving = pHaving;
  pSVar2->pOrderBy = pOrderBy;
  pSVar2->pPrior = (Select *)0x0;
  pSVar2->pNext = (Select *)0x0;
  pSVar2->pLimit = pLimit;
  pSVar2->pWith = (With *)0x0;
  pSVar2->pWin = (Window *)0x0;
  pSVar2->pWinDefn = (Window *)0x0;
  if (pParse->db->mallocFailed != '\0') {
    clearSelect(pParse->db,pSVar2,(uint)(pSVar2 != &standin));
    pSVar2 = (Select *)0x0;
  }
  if (iVar4 != *(int *)puVar1) {
    pSVar2 = (Select *)(*(code *)PTR___stack_chk_fail_0015ba10)();
    return pSVar2;
  }
  return pSVar2;
}



int * FUN_000600ec(int *param_1,int param_2,int param_3,int param_4,int param_5,int param_6,
                  int param_7,int param_8,int param_9)

{
  int *piVar1;
  int iVar2;
  undefined4 uVar3;
  int iVar4;
  undefined *puVar5;
  undefined4 local_80;
  undefined4 local_7c;
  int local_78 [19];
  int local_2c;
  
  puVar5 = PTR___stack_chk_guard_0015ba2c;
  local_2c = *(int *)PTR___stack_chk_guard_0015ba2c;
  if ((*(char *)(*param_1 + 0x51) != '\0') ||
     (piVar1 = (int *)(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(*param_1,local_2c,0,0x4c),
     piVar1 == (int *)0x0)) {
    piVar1 = local_78;
  }
  if (param_2 == 0) {
    local_80 = 0;
    local_7c = 0;
    uVar3 = (*(code *)(PTR_LAB_0015b6d8 + -0x1cc0))(*param_1,0xa8,&local_80,0);
    param_2 = FUN_0005fad4(*param_1,0,uVar3);
  }
  *piVar1 = param_2;
  piVar1[3] = 0;
  piVar1[2] = param_8;
  piVar1[4] = 0;
  *(undefined1 *)(piVar1 + 1) = 0x7f;
  iVar2 = param_1[0x19];
  param_1[0x19] = iVar2 + 1;
  piVar1[5] = iVar2 + 1;
  piVar1[6] = -1;
  piVar1[7] = -1;
  *(undefined2 *)((int)piVar1 + 6) = 0;
  if (param_3 == 0) {
    param_3 = (*(code *)(PTR_LAB_0015b6d8 + -0x2a40))(*param_1);
  }
  piVar1[8] = param_3;
  piVar1[9] = param_4;
  piVar1[10] = param_5;
  piVar1[0xb] = param_6;
  piVar1[0xc] = param_7;
  piVar1[0xd] = 0;
  piVar1[0xe] = 0;
  piVar1[0xf] = param_9;
  piVar1[0x10] = 0;
  piVar1[0x11] = 0;
  piVar1[0x12] = 0;
  if (*(char *)(*param_1 + 0x51) != '\0') {
    FUN_00047a00(*param_1,piVar1,piVar1 != local_78);
    piVar1 = (int *)0x0;
  }
  if (local_2c != *(int *)puVar5) {
    iVar2 = local_2c;
    puVar5 = PTR___stack_chk_fail_0015ba10;
    (*(code *)PTR___stack_chk_fail_0015ba10)();
    if (*(int *)(iVar2 + 0x154) % 5 == 0) {
      iVar4 = FUN_00057704();
      if (iVar4 != 0) {
        (**(code **)(puVar5 + 0xfb6c0))(iVar4 + *(int *)(iVar2 + 0x154) * 4,0,0x14);
        *(int *)(iVar2 + 0x16c) = iVar4;
        return (int *)0x0;
      }
      piVar1 = (int *)&DAT_00000007;
    }
    else {
      piVar1 = (int *)0x0;
    }
    return piVar1;
  }
  return piVar1;
}


lui gp,0x10
addiu gp,gp,0x34c4
addu gp,gp,t9
addiu sp,sp,-0xa0
sw s8,0x98(sp)
or s8,a1,zero
sw s7,0x94(sp)
or s7,a2,zero
sw s6,0x90(sp)
or s6,a3,zero
sw s5,0x8c(sp)
sw s4,0x88(sp)
sw s3,0x84(sp)
sw s2,0x80(sp)
sw s1,0x7c(sp)
or s1,a0,zero
sw gp,0x10(sp)
sw ra,0x9c(sp)
sw s0,0x78(sp)
lw s2,-0x7b84(gp)
lw a0,0x0(a0)
lw v1,0xc0(sp)
lw s5,0xb0(sp)
lw a1,0x0(s2)
lbu v0,0x51(a0)
lw s4,0xb4(sp)
lw s3,0xb8(sp)
sw v1,0x1c(sp)
sw a1,0x74(sp)
bne v0,zero,0x0006024c
_lw t9,-0x7ed8(gp)
li a3,0x4c
addiu t9,t9,-0x2b10
jalr t9
_or a2,zero,zero
lw gp,0x10(sp)
beq v0,zero,0x0006024c
_or s0,v0,zero
beq s8,zero,0x00060258
_lw t9,-0x7ed8(gp)
lw v0,0xbc(sp)
li a0,-0x1
sw s8,0x0(s0)
sw zero,0xc(s0)
sw v0,0x8(s0)
li v0,0x7f
sw zero,0x10(s0)
sb v0,0x4(s0)
lw v0,0x64(s1)
addiu v0,v0,0x1
sw v0,0x64(s1)
sw v0,0x14(s0)
sw a0,0x18(s0)
sw a0,0x1c(s0)
beq s7,zero,0x000602a0
_sh zero,0x6(s0)
lw v0,0x1c(sp)
sw s7,0x20(s0)
sw s6,0x24(s0)
sw s5,0x28(s0)
sw s4,0x2c(s0)
sw s3,0x30(s0)
sw zero,0x34(s0)
sw zero,0x38(s0)
sw v0,0x3c(s0)
sw zero,0x40(s0)
sw zero,0x44(s0)
sw zero,0x48(s0)
lw a0,0x0(s1)
lbu v0,0x51(a0)
bne v0,zero,0x000602c4
_lw t9,-0x7ef0(gp)
lw a0,0x74(sp)
or v0,s0,zero
lw v1,0x0(s2)
bne a0,v1,0x000602e8
_lw ra,0x9c(sp)
lw s8,0x98(sp)
lw s7,0x94(sp)
lw s6,0x90(sp)
lw s5,0x8c(sp)
lw s4,0x88(sp)
lw s3,0x84(sp)
lw s2,0x80(sp)
lw s1,0x7c(sp)
lw s0,0x78(sp)
jr ra
_addiu sp,sp,0xa0
bne s8,zero,0x0006018c
_addiu s0,sp,0x28
lw t9,-0x7ed8(gp)
or a3,zero,zero
lw a0,0x0(s1)
addiu a2,sp,0x20
li a1,0xa8
sw zero,0x20(sp)
addiu t9,t9,-0x1cc0
jalr t9
_sw zero,0x24(sp)
or a1,zero,zero
lw gp,0x10(sp)
or a2,v0,zero
lw t9,-0x7ea0(gp)
addiu t9,t9,-0x52c
bal 0x0005fad4
_lw a0,0x0(s1)
lw gp,0x10(sp)
b 0x0006018c
_or s8,v0,zero
lw t9,-0x7ed8(gp)
li a3,0x50
lw a0,0x0(s1)
addiu t9,t9,-0x2a40
jalr t9
_or a2,zero,zero
lw gp,0x10(sp)
b 0x000601cc
_or s7,v0,zero
addiu a2,sp,0x28
or a1,s0,zero
xor a2,s0,a2
addiu t9,t9,0x7a00
bal 0x00047a00
_sltu a2,zero,a2
or s0,zero,zero
b 0x0006020c
_lw gp,0x10(sp)
lw t9,-0x7ba0(gp)
jalr t9
_nop
(translation_unit "int * FUN_000600ec(int *param_1,int param_2,int param_3,int param_4,int param_5,int param_6,\n                  int param_7,int param_8,int param_9)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined *puVar5;\n  undefined4 local_80;\n  undefined4 local_7c;\n  int local_78 [19];\n  int local_2c;\n  \n  puVar5 = PTR___stack_chk_guard_0015ba2c;\n  local_2c = *(int *)PTR___stack_chk_guard_0015ba2c;\n  if ((*(char *)(*param_1 + 0x51) != '\0') ||\n     (piVar1 = (int *)(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(*param_1,local_2c,0,0x4c),\n     piVar1 == (int *)0x0)) {\n    piVar1 = local_78;\n  }\n  if (param_2 == 0) {\n    local_80 = 0;\n    local_7c = 0;\n    uVar3 = (*(code *)(PTR_LAB_0015b6d8 + -0x1cc0))(*param_1,0xa8,&local_80,0);\n    param_2 = FUN_0005fad4(*param_1,0,uVar3);\n  }\n  *piVar1 = param_2;\n  piVar1[3] = 0;\n  piVar1[2] = param_8;\n  piVar1[4] = 0;\n  *(undefined1 *)(piVar1 + 1) = 0x7f;\n  iVar2 = param_1[0x19];\n  param_1[0x19] = iVar2 + 1;\n  piVar1[5] = iVar2 + 1;\n  piVar1[6] = -1;\n  piVar1[7] = -1;\n  *(undefined2 *)((int)piVar1 + 6) = 0;\n  if (param_3 == 0) {\n    param_3 = (*(code *)(PTR_LAB_0015b6d8 + -0x2a40))(*param_1);\n  }\n  piVar1[8] = param_3;\n  piVar1[9] = param_4;\n  piVar1[10] = param_5;\n  piVar1[0xb] = param_6;\n  piVar1[0xc] = param_7;\n  piVar1[0xd] = 0;\n  piVar1[0xe] = 0;\n  piVar1[0xf] = param_9;\n  piVar1[0x10] = 0;\n  piVar1[0x11] = 0;\n  piVar1[0x12] = 0;\n  if (*(char *)(*param_1 + 0x51) != '\0') {\n    FUN_00047a00(*param_1,piVar1,piVar1 != local_78);\n    piVar1 = (int *)0x0;\n  }\n  if (local_2c != *(int *)puVar5) {\n    iVar2 = local_2c;\n    puVar5 = PTR___stack_chk_fail_0015ba10;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    if (*(int *)(iVar2 + 0x154) % 5 == 0) {\n      iVar4 = FUN_00057704();\n      if (iVar4 != 0) {\n        (**(code **)(puVar5 + 0xfb6c0))(iVar4 + *(int *)(iVar2 + 0x154) * 4,0,0x14);\n        *(int *)(iVar2 + 0x16c) = iVar4;\n        return (int *)0x0;\n      }\n      piVar1 = (int *)&DAT_00000007;\n    }\n    else {\n      piVar1 = (int *)0x0;\n    }\n    return piVar1;\n  }\n  return piVar1;\n}\n\n" (function_definition "int * FUN_000600ec(int *param_1,int param_2,int param_3,int param_4,int param_5,int param_6,\n                  int param_7,int param_8,int param_9)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined *puVar5;\n  undefined4 local_80;\n  undefined4 local_7c;\n  int local_78 [19];\n  int local_2c;\n  \n  puVar5 = PTR___stack_chk_guard_0015ba2c;\n  local_2c = *(int *)PTR___stack_chk_guard_0015ba2c;\n  if ((*(char *)(*param_1 + 0x51) != '\0') ||\n     (piVar1 = (int *)(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(*param_1,local_2c,0,0x4c),\n     piVar1 == (int *)0x0)) {\n    piVar1 = local_78;\n  }\n  if (param_2 == 0) {\n    local_80 = 0;\n    local_7c = 0;\n    uVar3 = (*(code *)(PTR_LAB_0015b6d8 + -0x1cc0))(*param_1,0xa8,&local_80,0);\n    param_2 = FUN_0005fad4(*param_1,0,uVar3);\n  }\n  *piVar1 = param_2;\n  piVar1[3] = 0;\n  piVar1[2] = param_8;\n  piVar1[4] = 0;\n  *(undefined1 *)(piVar1 + 1) = 0x7f;\n  iVar2 = param_1[0x19];\n  param_1[0x19] = iVar2 + 1;\n  piVar1[5] = iVar2 + 1;\n  piVar1[6] = -1;\n  piVar1[7] = -1;\n  *(undefined2 *)((int)piVar1 + 6) = 0;\n  if (param_3 == 0) {\n    param_3 = (*(code *)(PTR_LAB_0015b6d8 + -0x2a40))(*param_1);\n  }\n  piVar1[8] = param_3;\n  piVar1[9] = param_4;\n  piVar1[10] = param_5;\n  piVar1[0xb] = param_6;\n  piVar1[0xc] = param_7;\n  piVar1[0xd] = 0;\n  piVar1[0xe] = 0;\n  piVar1[0xf] = param_9;\n  piVar1[0x10] = 0;\n  piVar1[0x11] = 0;\n  piVar1[0x12] = 0;\n  if (*(char *)(*param_1 + 0x51) != '\0') {\n    FUN_00047a00(*param_1,piVar1,piVar1 != local_78);\n    piVar1 = (int *)0x0;\n  }\n  if (local_2c != *(int *)puVar5) {\n    iVar2 = local_2c;\n    puVar5 = PTR___stack_chk_fail_0015ba10;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    if (*(int *)(iVar2 + 0x154) % 5 == 0) {\n      iVar4 = FUN_00057704();\n      if (iVar4 != 0) {\n        (**(code **)(puVar5 + 0xfb6c0))(iVar4 + *(int *)(iVar2 + 0x154) * 4,0,0x14);\n        *(int *)(iVar2 + 0x16c) = iVar4;\n        return (int *)0x0;\n      }\n      piVar1 = (int *)&DAT_00000007;\n    }\n    else {\n      piVar1 = (int *)0x0;\n    }\n    return piVar1;\n  }\n  return piVar1;\n}" primitive_type (pointer_declarator "* FUN_000600ec(int *param_1,int param_2,int param_3,int param_4,int param_5,int param_6,\n                  int param_7,int param_8,int param_9)" * (function_declarator "FUN_000600ec(int *param_1,int param_2,int param_3,int param_4,int param_5,int param_6,\n                  int param_7,int param_8,int param_9)" identifier (parameter_list "(int *param_1,int param_2,int param_3,int param_4,int param_5,int param_6,\n                  int param_7,int param_8,int param_9)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "int param_6" primitive_type identifier) , (parameter_declaration "int param_7" primitive_type identifier) , (parameter_declaration "int param_8" primitive_type identifier) , (parameter_declaration "int param_9" primitive_type identifier) )))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined *puVar5;\n  undefined4 local_80;\n  undefined4 local_7c;\n  int local_78 [19];\n  int local_2c;\n  \n  puVar5 = PTR___stack_chk_guard_0015ba2c;\n  local_2c = *(int *)PTR___stack_chk_guard_0015ba2c;\n  if ((*(char *)(*param_1 + 0x51) != '\0') ||\n     (piVar1 = (int *)(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(*param_1,local_2c,0,0x4c),\n     piVar1 == (int *)0x0)) {\n    piVar1 = local_78;\n  }\n  if (param_2 == 0) {\n    local_80 = 0;\n    local_7c = 0;\n    uVar3 = (*(code *)(PTR_LAB_0015b6d8 + -0x1cc0))(*param_1,0xa8,&local_80,0);\n    param_2 = FUN_0005fad4(*param_1,0,uVar3);\n  }\n  *piVar1 = param_2;\n  piVar1[3] = 0;\n  piVar1[2] = param_8;\n  piVar1[4] = 0;\n  *(undefined1 *)(piVar1 + 1) = 0x7f;\n  iVar2 = param_1[0x19];\n  param_1[0x19] = iVar2 + 1;\n  piVar1[5] = iVar2 + 1;\n  piVar1[6] = -1;\n  piVar1[7] = -1;\n  *(undefined2 *)((int)piVar1 + 6) = 0;\n  if (param_3 == 0) {\n    param_3 = (*(code *)(PTR_LAB_0015b6d8 + -0x2a40))(*param_1);\n  }\n  piVar1[8] = param_3;\n  piVar1[9] = param_4;\n  piVar1[10] = param_5;\n  piVar1[0xb] = param_6;\n  piVar1[0xc] = param_7;\n  piVar1[0xd] = 0;\n  piVar1[0xe] = 0;\n  piVar1[0xf] = param_9;\n  piVar1[0x10] = 0;\n  piVar1[0x11] = 0;\n  piVar1[0x12] = 0;\n  if (*(char *)(*param_1 + 0x51) != '\0') {\n    FUN_00047a00(*param_1,piVar1,piVar1 != local_78);\n    piVar1 = (int *)0x0;\n  }\n  if (local_2c != *(int *)puVar5) {\n    iVar2 = local_2c;\n    puVar5 = PTR___stack_chk_fail_0015ba10;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    if (*(int *)(iVar2 + 0x154) % 5 == 0) {\n      iVar4 = FUN_00057704();\n      if (iVar4 != 0) {\n        (**(code **)(puVar5 + 0xfb6c0))(iVar4 + *(int *)(iVar2 + 0x154) * 4,0,0x14);\n        *(int *)(iVar2 + 0x16c) = iVar4;\n        return (int *)0x0;\n      }\n      piVar1 = (int *)&DAT_00000007;\n    }\n    else {\n      piVar1 = (int *)0x0;\n    }\n    return piVar1;\n  }\n  return piVar1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 local_80;" type_identifier identifier ;) (declaration "undefined4 local_7c;" type_identifier identifier ;) (declaration "int local_78 [19];" primitive_type (array_declarator "local_78 [19]" identifier [ number_literal ]) ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar5 = PTR___stack_chk_guard_0015ba2c;" (assignment_expression "puVar5 = PTR___stack_chk_guard_0015ba2c" identifier = 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))) ;) (if_statement "if ((*(char *)(*param_1 + 0x51) != '\0') ||\n     (piVar1 = (int *)(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(*param_1,local_2c,0,0x4c),\n     piVar1 == (int *)0x0)) {\n    piVar1 = local_78;\n  }" if (parenthesized_expression "((*(char *)(*param_1 + 0x51) != '\0') ||\n     (piVar1 = (int *)(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(*param_1,local_2c,0,0x4c),\n     piVar1 == (int *)0x0))" ( (binary_expression "(*(char *)(*param_1 + 0x51) != '\0') ||\n     (piVar1 = (int *)(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(*param_1,local_2c,0,0x4c),\n     piVar1 == (int *)0x0)" (parenthesized_expression "(*(char *)(*param_1 + 0x51) != '\0')" ( (binary_expression "*(char *)(*param_1 + 0x51) != '\0'" (pointer_expression "*(char *)(*param_1 + 0x51)" * (cast_expression "(char *)(*param_1 + 0x51)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x51)" ( (binary_expression "*param_1 + 0x51" (pointer_expression "*param_1" * identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(piVar1 = (int *)(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(*param_1,local_2c,0,0x4c),\n     piVar1 == (int *)0x0)" ( (comma_expression "piVar1 = (int *)(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(*param_1,local_2c,0,0x4c),\n     piVar1 == (int *)0x0" (assignment_expression "piVar1 = (int *)(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(*param_1,local_2c,0,0x4c)" identifier = (cast_expression "(int *)(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(*param_1,local_2c,0,0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(*param_1,local_2c,0,0x4c)" (parenthesized_expression "(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))" ( (pointer_expression "*(code *)(PTR_LAB_0015b6d8 + -0x2b10)" * (cast_expression "(code *)(PTR_LAB_0015b6d8 + -0x2b10)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b6d8 + -0x2b10)" ( (binary_expression "PTR_LAB_0015b6d8 + -0x2b10" identifier + number_literal) )))) )) (argument_list "(*param_1,local_2c,0,0x4c)" ( (pointer_expression "*param_1" * identifier) , identifier , number_literal , number_literal ))))) , (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    piVar1 = local_78;\n  }" { (expression_statement "piVar1 = local_78;" (assignment_expression "piVar1 = local_78" identifier = identifier) ;) })) (if_statement "if (param_2 == 0) {\n    local_80 = 0;\n    local_7c = 0;\n    uVar3 = (*(code *)(PTR_LAB_0015b6d8 + -0x1cc0))(*param_1,0xa8,&local_80,0);\n    param_2 = FUN_0005fad4(*param_1,0,uVar3);\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    local_80 = 0;\n    local_7c = 0;\n    uVar3 = (*(code *)(PTR_LAB_0015b6d8 + -0x1cc0))(*param_1,0xa8,&local_80,0);\n    param_2 = FUN_0005fad4(*param_1,0,uVar3);\n  }" { (expression_statement "local_80 = 0;" (assignment_expression "local_80 = 0" identifier = number_literal) ;) (expression_statement "local_7c = 0;" (assignment_expression "local_7c = 0" identifier = number_literal) ;) (expression_statement "uVar3 = (*(code *)(PTR_LAB_0015b6d8 + -0x1cc0))(*param_1,0xa8,&local_80,0);" (assignment_expression "uVar3 = (*(code *)(PTR_LAB_0015b6d8 + -0x1cc0))(*param_1,0xa8,&local_80,0)" identifier = (call_expression "(*(code *)(PTR_LAB_0015b6d8 + -0x1cc0))(*param_1,0xa8,&local_80,0)" (parenthesized_expression "(*(code *)(PTR_LAB_0015b6d8 + -0x1cc0))" ( (pointer_expression "*(code *)(PTR_LAB_0015b6d8 + -0x1cc0)" * (cast_expression "(code *)(PTR_LAB_0015b6d8 + -0x1cc0)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b6d8 + -0x1cc0)" ( (binary_expression "PTR_LAB_0015b6d8 + -0x1cc0" identifier + number_literal) )))) )) (argument_list "(*param_1,0xa8,&local_80,0)" ( (pointer_expression "*param_1" * identifier) , number_literal , (pointer_expression "&local_80" & identifier) , number_literal )))) ;) (expression_statement "param_2 = FUN_0005fad4(*param_1,0,uVar3);" (assignment_expression "param_2 = FUN_0005fad4(*param_1,0,uVar3)" identifier = (call_expression "FUN_0005fad4(*param_1,0,uVar3)" identifier (argument_list "(*param_1,0,uVar3)" ( (pointer_expression "*param_1" * identifier) , number_literal , identifier )))) ;) })) (expression_statement "*piVar1 = param_2;" (assignment_expression "*piVar1 = param_2" (pointer_expression "*piVar1" * identifier) = identifier) ;) (expression_statement "piVar1[3] = 0;" (assignment_expression "piVar1[3] = 0" (subscript_expression "piVar1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[2] = param_8;" (assignment_expression "piVar1[2] = param_8" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1[4] = 0;" (assignment_expression "piVar1[4] = 0" (subscript_expression "piVar1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined1 *)(piVar1 + 1) = 0x7f;" (assignment_expression "*(undefined1 *)(piVar1 + 1) = 0x7f" (pointer_expression "*(undefined1 *)(piVar1 + 1)" * (cast_expression "(undefined1 *)(piVar1 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 1)" ( (binary_expression "piVar1 + 1" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar2 = param_1[0x19];" (assignment_expression "iVar2 = param_1[0x19]" identifier = (subscript_expression "param_1[0x19]" identifier [ number_literal ])) ;) (expression_statement "param_1[0x19] = iVar2 + 1;" (assignment_expression "param_1[0x19] = iVar2 + 1" (subscript_expression "param_1[0x19]" identifier [ number_literal ]) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "piVar1[5] = iVar2 + 1;" (assignment_expression "piVar1[5] = iVar2 + 1" (subscript_expression "piVar1[5]" identifier [ number_literal ]) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "piVar1[6] = -1;" (assignment_expression "piVar1[6] = -1" (subscript_expression "piVar1[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[7] = -1;" (assignment_expression "piVar1[7] = -1" (subscript_expression "piVar1[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined2 *)((int)piVar1 + 6) = 0;" (assignment_expression "*(undefined2 *)((int)piVar1 + 6) = 0" (pointer_expression "*(undefined2 *)((int)piVar1 + 6)" * (cast_expression "(undefined2 *)((int)piVar1 + 6)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar1 + 6)" ( (binary_expression "(int)piVar1 + 6" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (if_statement "if (param_3 == 0) {\n    param_3 = (*(code *)(PTR_LAB_0015b6d8 + -0x2a40))(*param_1);\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    param_3 = (*(code *)(PTR_LAB_0015b6d8 + -0x2a40))(*param_1);\n  }" { (expression_statement "param_3 = (*(code *)(PTR_LAB_0015b6d8 + -0x2a40))(*param_1);" (assignment_expression "param_3 = (*(code *)(PTR_LAB_0015b6d8 + -0x2a40))(*param_1)" identifier = (call_expression "(*(code *)(PTR_LAB_0015b6d8 + -0x2a40))(*param_1)" (parenthesized_expression "(*(code *)(PTR_LAB_0015b6d8 + -0x2a40))" ( (pointer_expression "*(code *)(PTR_LAB_0015b6d8 + -0x2a40)" * (cast_expression "(code *)(PTR_LAB_0015b6d8 + -0x2a40)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b6d8 + -0x2a40)" ( (binary_expression "PTR_LAB_0015b6d8 + -0x2a40" identifier + number_literal) )))) )) (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) )))) ;) })) (expression_statement "piVar1[8] = param_3;" (assignment_expression "piVar1[8] = param_3" (subscript_expression "piVar1[8]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1[9] = param_4;" (assignment_expression "piVar1[9] = param_4" (subscript_expression "piVar1[9]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1[10] = param_5;" (assignment_expression "piVar1[10] = param_5" (subscript_expression "piVar1[10]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1[0xb] = param_6;" (assignment_expression "piVar1[0xb] = param_6" (subscript_expression "piVar1[0xb]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1[0xc] = param_7;" (assignment_expression "piVar1[0xc] = param_7" (subscript_expression "piVar1[0xc]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1[0xd] = 0;" (assignment_expression "piVar1[0xd] = 0" (subscript_expression "piVar1[0xd]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[0xe] = 0;" (assignment_expression "piVar1[0xe] = 0" (subscript_expression "piVar1[0xe]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[0xf] = param_9;" (assignment_expression "piVar1[0xf] = param_9" (subscript_expression "piVar1[0xf]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1[0x10] = 0;" (assignment_expression "piVar1[0x10] = 0" (subscript_expression "piVar1[0x10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[0x11] = 0;" (assignment_expression "piVar1[0x11] = 0" (subscript_expression "piVar1[0x11]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[0x12] = 0;" (assignment_expression "piVar1[0x12] = 0" (subscript_expression "piVar1[0x12]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (*(char *)(*param_1 + 0x51) != '\0') {\n    FUN_00047a00(*param_1,piVar1,piVar1 != local_78);\n    piVar1 = (int *)0x0;\n  }" if (parenthesized_expression "(*(char *)(*param_1 + 0x51) != '\0')" ( (binary_expression "*(char *)(*param_1 + 0x51) != '\0'" (pointer_expression "*(char *)(*param_1 + 0x51)" * (cast_expression "(char *)(*param_1 + 0x51)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x51)" ( (binary_expression "*param_1 + 0x51" (pointer_expression "*param_1" * identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_00047a00(*param_1,piVar1,piVar1 != local_78);\n    piVar1 = (int *)0x0;\n  }" { (expression_statement "FUN_00047a00(*param_1,piVar1,piVar1 != local_78);" (call_expression "FUN_00047a00(*param_1,piVar1,piVar1 != local_78)" identifier (argument_list "(*param_1,piVar1,piVar1 != local_78)" ( (pointer_expression "*param_1" * identifier) , identifier , (binary_expression "piVar1 != local_78" identifier != identifier) ))) ;) (expression_statement "piVar1 = (int *)0x0;" (assignment_expression "piVar1 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (if_statement "if (local_2c != *(int *)puVar5) {\n    iVar2 = local_2c;\n    puVar5 = PTR___stack_chk_fail_0015ba10;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    if (*(int *)(iVar2 + 0x154) % 5 == 0) {\n      iVar4 = FUN_00057704();\n      if (iVar4 != 0) {\n        (**(code **)(puVar5 + 0xfb6c0))(iVar4 + *(int *)(iVar2 + 0x154) * 4,0,0x14);\n        *(int *)(iVar2 + 0x16c) = iVar4;\n        return (int *)0x0;\n      }\n      piVar1 = (int *)&DAT_00000007;\n    }\n    else {\n      piVar1 = (int *)0x0;\n    }\n    return piVar1;\n  }" if (parenthesized_expression "(local_2c != *(int *)puVar5)" ( (binary_expression "local_2c != *(int *)puVar5" identifier != (pointer_expression "*(int *)puVar5" * (cast_expression "(int *)puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    iVar2 = local_2c;\n    puVar5 = PTR___stack_chk_fail_0015ba10;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    if (*(int *)(iVar2 + 0x154) % 5 == 0) {\n      iVar4 = FUN_00057704();\n      if (iVar4 != 0) {\n        (**(code **)(puVar5 + 0xfb6c0))(iVar4 + *(int *)(iVar2 + 0x154) * 4,0,0x14);\n        *(int *)(iVar2 + 0x16c) = iVar4;\n        return (int *)0x0;\n      }\n      piVar1 = (int *)&DAT_00000007;\n    }\n    else {\n      piVar1 = (int *)0x0;\n    }\n    return piVar1;\n  }" { (expression_statement "iVar2 = local_2c;" (assignment_expression "iVar2 = local_2c" identifier = identifier) ;) (expression_statement "puVar5 = PTR___stack_chk_fail_0015ba10;" (assignment_expression "puVar5 = 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 "()" ( ))) ;) (if_statement "if (*(int *)(iVar2 + 0x154) % 5 == 0) {\n      iVar4 = FUN_00057704();\n      if (iVar4 != 0) {\n        (**(code **)(puVar5 + 0xfb6c0))(iVar4 + *(int *)(iVar2 + 0x154) * 4,0,0x14);\n        *(int *)(iVar2 + 0x16c) = iVar4;\n        return (int *)0x0;\n      }\n      piVar1 = (int *)&DAT_00000007;\n    }\n    else {\n      piVar1 = (int *)0x0;\n    }" if (parenthesized_expression "(*(int *)(iVar2 + 0x154) % 5 == 0)" ( (binary_expression "*(int *)(iVar2 + 0x154) % 5 == 0" (binary_expression "*(int *)(iVar2 + 0x154) % 5" (pointer_expression "*(int *)(iVar2 + 0x154)" * (cast_expression "(int *)(iVar2 + 0x154)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x154)" ( (binary_expression "iVar2 + 0x154" identifier + number_literal) )))) % number_literal) == number_literal) )) (compound_statement "{\n      iVar4 = FUN_00057704();\n      if (iVar4 != 0) {\n        (**(code **)(puVar5 + 0xfb6c0))(iVar4 + *(int *)(iVar2 + 0x154) * 4,0,0x14);\n        *(int *)(iVar2 + 0x16c) = iVar4;\n        return (int *)0x0;\n      }\n      piVar1 = (int *)&DAT_00000007;\n    }" { (expression_statement "iVar4 = FUN_00057704();" (assignment_expression "iVar4 = FUN_00057704()" identifier = (call_expression "FUN_00057704()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar4 != 0) {\n        (**(code **)(puVar5 + 0xfb6c0))(iVar4 + *(int *)(iVar2 + 0x154) * 4,0,0x14);\n        *(int *)(iVar2 + 0x16c) = iVar4;\n        return (int *)0x0;\n      }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n        (**(code **)(puVar5 + 0xfb6c0))(iVar4 + *(int *)(iVar2 + 0x154) * 4,0,0x14);\n        *(int *)(iVar2 + 0x16c) = iVar4;\n        return (int *)0x0;\n      }" { (expression_statement "(**(code **)(puVar5 + 0xfb6c0))(iVar4 + *(int *)(iVar2 + 0x154) * 4,0,0x14);" (call_expression "(**(code **)(puVar5 + 0xfb6c0))(iVar4 + *(int *)(iVar2 + 0x154) * 4,0,0x14)" (parenthesized_expression "(**(code **)(puVar5 + 0xfb6c0))" ( (pointer_expression "**(code **)(puVar5 + 0xfb6c0)" * (pointer_expression "*(code **)(puVar5 + 0xfb6c0)" * (cast_expression "(code **)(puVar5 + 0xfb6c0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0xfb6c0)" ( (binary_expression "puVar5 + 0xfb6c0" identifier + number_literal) ))))) )) (argument_list "(iVar4 + *(int *)(iVar2 + 0x154) * 4,0,0x14)" ( (binary_expression "iVar4 + *(int *)(iVar2 + 0x154) * 4" identifier + (binary_expression "*(int *)(iVar2 + 0x154) * 4" (pointer_expression "*(int *)(iVar2 + 0x154)" * (cast_expression "(int *)(iVar2 + 0x154)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x154)" ( (binary_expression "iVar2 + 0x154" identifier + number_literal) )))) * number_literal)) , number_literal , number_literal ))) ;) (expression_statement "*(int *)(iVar2 + 0x16c) = iVar4;" (assignment_expression "*(int *)(iVar2 + 0x16c) = iVar4" (pointer_expression "*(int *)(iVar2 + 0x16c)" * (cast_expression "(int *)(iVar2 + 0x16c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x16c)" ( (binary_expression "iVar2 + 0x16c" identifier + number_literal) )))) = identifier) ;) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "piVar1 = (int *)&DAT_00000007;" (assignment_expression "piVar1 = (int *)&DAT_00000007" identifier = (cast_expression "(int *)&DAT_00000007" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_00000007" & identifier))) ;) }) (else_clause "else {\n      piVar1 = (int *)0x0;\n    }" else (compound_statement "{\n      piVar1 = (int *)0x0;\n    }" { (expression_statement "piVar1 = (int *)0x0;" (assignment_expression "piVar1 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }))) (return_statement "return piVar1;" return identifier ;) })) (return_statement "return piVar1;" return identifier ;) })))
(translation_unit "Select * sqlite3SelectNew(Parse *pParse,ExprList *pEList,SrcList *pSrc,Expr *pWhere,\n                         ExprList *pGroupBy,Expr *pHaving,ExprList *pOrderBy,u32 selFlags,\n                         Expr *pLimit)\n\n{\n  undefined *puVar1;\n  Select *pSVar2;\n  u32 uVar3;\n  Expr *pExpr;\n  int iVar4;\n  Token x;\n  Select standin;\n  \n  puVar1 = PTR___stack_chk_guard_0015ba2c;\n  iVar4 = *(int *)PTR___stack_chk_guard_0015ba2c;\n  if ((pParse->db->mallocFailed != '\0') ||\n     (pSVar2 = (Select *)(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(pParse->db,iVar4,0,0x4c),\n     pSVar2 == (Select *)0x0)) {\n    pSVar2 = &standin;\n  }\n  if (pEList == (ExprList *)0x0) {\n    x.z = (char *)0x0;\n    x.n = 0;\n    pExpr = (Expr *)(*(code *)(PTR_LAB_0015b6d8 + -0x1cc0))(pParse->db,0xa8,&x,0);\n    pEList = sqlite3ExprListAppend((Parse *)pParse->db,(ExprList *)0x0,pExpr);\n  }\n  pSVar2->pEList = pEList;\n  pSVar2->iLimit = 0;\n  pSVar2->selFlags = selFlags;\n  pSVar2->iOffset = 0;\n  pSVar2->op = '\x7f';\n  uVar3 = pParse->nSelect + 1;\n  pParse->nSelect = uVar3;\n  pSVar2->selId = uVar3;\n  pSVar2->addrOpenEphm[0] = -1;\n  pSVar2->addrOpenEphm[1] = -1;\n  pSVar2->nSelectRow = 0;\n  if (pSrc == (SrcList *)0x0) {\n    pSrc = (SrcList *)(*(code *)(PTR_LAB_0015b6d8 + -0x2a40))(pParse->db);\n  }\n  pSVar2->pSrc = pSrc;\n  pSVar2->pWhere = pWhere;\n  pSVar2->pGroupBy = pGroupBy;\n  pSVar2->pHaving = pHaving;\n  pSVar2->pOrderBy = pOrderBy;\n  pSVar2->pPrior = (Select *)0x0;\n  pSVar2->pNext = (Select *)0x0;\n  pSVar2->pLimit = pLimit;\n  pSVar2->pWith = (With *)0x0;\n  pSVar2->pWin = (Window *)0x0;\n  pSVar2->pWinDefn = (Window *)0x0;\n  if (pParse->db->mallocFailed != '\0') {\n    clearSelect(pParse->db,pSVar2,(uint)(pSVar2 != &standin));\n    pSVar2 = (Select *)0x0;\n  }\n  if (iVar4 != *(int *)puVar1) {\n    pSVar2 = (Select *)(*(code *)PTR___stack_chk_fail_0015ba10)();\n    return pSVar2;\n  }\n  return pSVar2;\n}\n\n" (function_definition "Select * sqlite3SelectNew(Parse *pParse,ExprList *pEList,SrcList *pSrc,Expr *pWhere,\n                         ExprList *pGroupBy,Expr *pHaving,ExprList *pOrderBy,u32 selFlags,\n                         Expr *pLimit)\n\n{\n  undefined *puVar1;\n  Select *pSVar2;\n  u32 uVar3;\n  Expr *pExpr;\n  int iVar4;\n  Token x;\n  Select standin;\n  \n  puVar1 = PTR___stack_chk_guard_0015ba2c;\n  iVar4 = *(int *)PTR___stack_chk_guard_0015ba2c;\n  if ((pParse->db->mallocFailed != '\0') ||\n     (pSVar2 = (Select *)(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(pParse->db,iVar4,0,0x4c),\n     pSVar2 == (Select *)0x0)) {\n    pSVar2 = &standin;\n  }\n  if (pEList == (ExprList *)0x0) {\n    x.z = (char *)0x0;\n    x.n = 0;\n    pExpr = (Expr *)(*(code *)(PTR_LAB_0015b6d8 + -0x1cc0))(pParse->db,0xa8,&x,0);\n    pEList = sqlite3ExprListAppend((Parse *)pParse->db,(ExprList *)0x0,pExpr);\n  }\n  pSVar2->pEList = pEList;\n  pSVar2->iLimit = 0;\n  pSVar2->selFlags = selFlags;\n  pSVar2->iOffset = 0;\n  pSVar2->op = '\x7f';\n  uVar3 = pParse->nSelect + 1;\n  pParse->nSelect = uVar3;\n  pSVar2->selId = uVar3;\n  pSVar2->addrOpenEphm[0] = -1;\n  pSVar2->addrOpenEphm[1] = -1;\n  pSVar2->nSelectRow = 0;\n  if (pSrc == (SrcList *)0x0) {\n    pSrc = (SrcList *)(*(code *)(PTR_LAB_0015b6d8 + -0x2a40))(pParse->db);\n  }\n  pSVar2->pSrc = pSrc;\n  pSVar2->pWhere = pWhere;\n  pSVar2->pGroupBy = pGroupBy;\n  pSVar2->pHaving = pHaving;\n  pSVar2->pOrderBy = pOrderBy;\n  pSVar2->pPrior = (Select *)0x0;\n  pSVar2->pNext = (Select *)0x0;\n  pSVar2->pLimit = pLimit;\n  pSVar2->pWith = (With *)0x0;\n  pSVar2->pWin = (Window *)0x0;\n  pSVar2->pWinDefn = (Window *)0x0;\n  if (pParse->db->mallocFailed != '\0') {\n    clearSelect(pParse->db,pSVar2,(uint)(pSVar2 != &standin));\n    pSVar2 = (Select *)0x0;\n  }\n  if (iVar4 != *(int *)puVar1) {\n    pSVar2 = (Select *)(*(code *)PTR___stack_chk_fail_0015ba10)();\n    return pSVar2;\n  }\n  return pSVar2;\n}" type_identifier (pointer_declarator "* sqlite3SelectNew(Parse *pParse,ExprList *pEList,SrcList *pSrc,Expr *pWhere,\n                         ExprList *pGroupBy,Expr *pHaving,ExprList *pOrderBy,u32 selFlags,\n                         Expr *pLimit)" * (function_declarator "sqlite3SelectNew(Parse *pParse,ExprList *pEList,SrcList *pSrc,Expr *pWhere,\n                         ExprList *pGroupBy,Expr *pHaving,ExprList *pOrderBy,u32 selFlags,\n                         Expr *pLimit)" identifier (parameter_list "(Parse *pParse,ExprList *pEList,SrcList *pSrc,Expr *pWhere,\n                         ExprList *pGroupBy,Expr *pHaving,ExprList *pOrderBy,u32 selFlags,\n                         Expr *pLimit)" ( (parameter_declaration "Parse *pParse" type_identifier (pointer_declarator "*pParse" * identifier)) , (parameter_declaration "ExprList *pEList" type_identifier (pointer_declarator "*pEList" * identifier)) , (parameter_declaration "SrcList *pSrc" type_identifier (pointer_declarator "*pSrc" * identifier)) , (parameter_declaration "Expr *pWhere" type_identifier (pointer_declarator "*pWhere" * identifier)) , (parameter_declaration "ExprList *pGroupBy" type_identifier (pointer_declarator "*pGroupBy" * identifier)) , (parameter_declaration "Expr *pHaving" type_identifier (pointer_declarator "*pHaving" * identifier)) , (parameter_declaration "ExprList *pOrderBy" type_identifier (pointer_declarator "*pOrderBy" * identifier)) , (parameter_declaration "u32 selFlags" type_identifier identifier) , (parameter_declaration "Expr *pLimit" type_identifier (pointer_declarator "*pLimit" * identifier)) )))) (compound_statement "{\n  undefined *puVar1;\n  Select *pSVar2;\n  u32 uVar3;\n  Expr *pExpr;\n  int iVar4;\n  Token x;\n  Select standin;\n  \n  puVar1 = PTR___stack_chk_guard_0015ba2c;\n  iVar4 = *(int *)PTR___stack_chk_guard_0015ba2c;\n  if ((pParse->db->mallocFailed != '\0') ||\n     (pSVar2 = (Select *)(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(pParse->db,iVar4,0,0x4c),\n     pSVar2 == (Select *)0x0)) {\n    pSVar2 = &standin;\n  }\n  if (pEList == (ExprList *)0x0) {\n    x.z = (char *)0x0;\n    x.n = 0;\n    pExpr = (Expr *)(*(code *)(PTR_LAB_0015b6d8 + -0x1cc0))(pParse->db,0xa8,&x,0);\n    pEList = sqlite3ExprListAppend((Parse *)pParse->db,(ExprList *)0x0,pExpr);\n  }\n  pSVar2->pEList = pEList;\n  pSVar2->iLimit = 0;\n  pSVar2->selFlags = selFlags;\n  pSVar2->iOffset = 0;\n  pSVar2->op = '\x7f';\n  uVar3 = pParse->nSelect + 1;\n  pParse->nSelect = uVar3;\n  pSVar2->selId = uVar3;\n  pSVar2->addrOpenEphm[0] = -1;\n  pSVar2->addrOpenEphm[1] = -1;\n  pSVar2->nSelectRow = 0;\n  if (pSrc == (SrcList *)0x0) {\n    pSrc = (SrcList *)(*(code *)(PTR_LAB_0015b6d8 + -0x2a40))(pParse->db);\n  }\n  pSVar2->pSrc = pSrc;\n  pSVar2->pWhere = pWhere;\n  pSVar2->pGroupBy = pGroupBy;\n  pSVar2->pHaving = pHaving;\n  pSVar2->pOrderBy = pOrderBy;\n  pSVar2->pPrior = (Select *)0x0;\n  pSVar2->pNext = (Select *)0x0;\n  pSVar2->pLimit = pLimit;\n  pSVar2->pWith = (With *)0x0;\n  pSVar2->pWin = (Window *)0x0;\n  pSVar2->pWinDefn = (Window *)0x0;\n  if (pParse->db->mallocFailed != '\0') {\n    clearSelect(pParse->db,pSVar2,(uint)(pSVar2 != &standin));\n    pSVar2 = (Select *)0x0;\n  }\n  if (iVar4 != *(int *)puVar1) {\n    pSVar2 = (Select *)(*(code *)PTR___stack_chk_fail_0015ba10)();\n    return pSVar2;\n  }\n  return pSVar2;\n}" { (declaration "undefined *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (declaration "Select *pSVar2;" type_identifier (pointer_declarator "*pSVar2" * identifier) ;) (declaration "u32 uVar3;" type_identifier identifier ;) (declaration "Expr *pExpr;" type_identifier (pointer_declarator "*pExpr" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "Token x;" type_identifier identifier ;) (declaration "Select standin;" type_identifier identifier ;) (expression_statement "puVar1 = PTR___stack_chk_guard_0015ba2c;" (assignment_expression "puVar1 = PTR___stack_chk_guard_0015ba2c" identifier = identifier) ;) (expression_statement "iVar4 = *(int *)PTR___stack_chk_guard_0015ba2c;" (assignment_expression "iVar4 = *(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))) ;) (if_statement "if ((pParse->db->mallocFailed != '\0') ||\n     (pSVar2 = (Select *)(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(pParse->db,iVar4,0,0x4c),\n     pSVar2 == (Select *)0x0)) {\n    pSVar2 = &standin;\n  }" if (parenthesized_expression "((pParse->db->mallocFailed != '\0') ||\n     (pSVar2 = (Select *)(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(pParse->db,iVar4,0,0x4c),\n     pSVar2 == (Select *)0x0))" ( (binary_expression "(pParse->db->mallocFailed != '\0') ||\n     (pSVar2 = (Select *)(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(pParse->db,iVar4,0,0x4c),\n     pSVar2 == (Select *)0x0)" (parenthesized_expression "(pParse->db->mallocFailed != '\0')" ( (binary_expression "pParse->db->mallocFailed != '\0'" (field_expression "pParse->db->mallocFailed" (field_expression "pParse->db" identifier -> field_identifier) -> field_identifier) != (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(pSVar2 = (Select *)(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(pParse->db,iVar4,0,0x4c),\n     pSVar2 == (Select *)0x0)" ( (comma_expression "pSVar2 = (Select *)(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(pParse->db,iVar4,0,0x4c),\n     pSVar2 == (Select *)0x0" (assignment_expression "pSVar2 = (Select *)(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(pParse->db,iVar4,0,0x4c)" identifier = (cast_expression "(Select *)(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(pParse->db,iVar4,0,0x4c)" ( (type_descriptor "Select *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(pParse->db,iVar4,0,0x4c)" (parenthesized_expression "(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))" ( (pointer_expression "*(code *)(PTR_LAB_0015b6d8 + -0x2b10)" * (cast_expression "(code *)(PTR_LAB_0015b6d8 + -0x2b10)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b6d8 + -0x2b10)" ( (binary_expression "PTR_LAB_0015b6d8 + -0x2b10" identifier + number_literal) )))) )) (argument_list "(pParse->db,iVar4,0,0x4c)" ( (field_expression "pParse->db" identifier -> field_identifier) , identifier , number_literal , number_literal ))))) , (binary_expression "pSVar2 == (Select *)0x0" identifier == (cast_expression "(Select *)0x0" ( (type_descriptor "Select *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    pSVar2 = &standin;\n  }" { (expression_statement "pSVar2 = &standin;" (assignment_expression "pSVar2 = &standin" identifier = (pointer_expression "&standin" & identifier)) ;) })) (if_statement "if (pEList == (ExprList *)0x0) {\n    x.z = (char *)0x0;\n    x.n = 0;\n    pExpr = (Expr *)(*(code *)(PTR_LAB_0015b6d8 + -0x1cc0))(pParse->db,0xa8,&x,0);\n    pEList = sqlite3ExprListAppend((Parse *)pParse->db,(ExprList *)0x0,pExpr);\n  }" if (parenthesized_expression "(pEList == (ExprList *)0x0)" ( (binary_expression "pEList == (ExprList *)0x0" identifier == (cast_expression "(ExprList *)0x0" ( (type_descriptor "ExprList *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    x.z = (char *)0x0;\n    x.n = 0;\n    pExpr = (Expr *)(*(code *)(PTR_LAB_0015b6d8 + -0x1cc0))(pParse->db,0xa8,&x,0);\n    pEList = sqlite3ExprListAppend((Parse *)pParse->db,(ExprList *)0x0,pExpr);\n  }" { (expression_statement "x.z = (char *)0x0;" (assignment_expression "x.z = (char *)0x0" (field_expression "x.z" identifier . field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "x.n = 0;" (assignment_expression "x.n = 0" (field_expression "x.n" identifier . field_identifier) = number_literal) ;) (expression_statement "pExpr = (Expr *)(*(code *)(PTR_LAB_0015b6d8 + -0x1cc0))(pParse->db,0xa8,&x,0);" (assignment_expression "pExpr = (Expr *)(*(code *)(PTR_LAB_0015b6d8 + -0x1cc0))(pParse->db,0xa8,&x,0)" identifier = (cast_expression "(Expr *)(*(code *)(PTR_LAB_0015b6d8 + -0x1cc0))(pParse->db,0xa8,&x,0)" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)(PTR_LAB_0015b6d8 + -0x1cc0))(pParse->db,0xa8,&x,0)" (parenthesized_expression "(*(code *)(PTR_LAB_0015b6d8 + -0x1cc0))" ( (pointer_expression "*(code *)(PTR_LAB_0015b6d8 + -0x1cc0)" * (cast_expression "(code *)(PTR_LAB_0015b6d8 + -0x1cc0)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b6d8 + -0x1cc0)" ( (binary_expression "PTR_LAB_0015b6d8 + -0x1cc0" identifier + number_literal) )))) )) (argument_list "(pParse->db,0xa8,&x,0)" ( (field_expression "pParse->db" identifier -> field_identifier) , number_literal , (pointer_expression "&x" & identifier) , number_literal ))))) ;) (expression_statement "pEList = sqlite3ExprListAppend((Parse *)pParse->db,(ExprList *)0x0,pExpr);" (assignment_expression "pEList = sqlite3ExprListAppend((Parse *)pParse->db,(ExprList *)0x0,pExpr)" identifier = (call_expression "sqlite3ExprListAppend((Parse *)pParse->db,(ExprList *)0x0,pExpr)" identifier (argument_list "((Parse *)pParse->db,(ExprList *)0x0,pExpr)" ( (cast_expression "(Parse *)pParse->db" ( (type_descriptor "Parse *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pParse->db" identifier -> field_identifier)) , (cast_expression "(ExprList *)0x0" ( (type_descriptor "ExprList *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , identifier )))) ;) })) (expression_statement "pSVar2->pEList = pEList;" (assignment_expression "pSVar2->pEList = pEList" (field_expression "pSVar2->pEList" identifier -> field_identifier) = identifier) ;) (expression_statement "pSVar2->iLimit = 0;" (assignment_expression "pSVar2->iLimit = 0" (field_expression "pSVar2->iLimit" identifier -> field_identifier) = number_literal) ;) (expression_statement "pSVar2->selFlags = selFlags;" (assignment_expression "pSVar2->selFlags = selFlags" (field_expression "pSVar2->selFlags" identifier -> field_identifier) = identifier) ;) (expression_statement "pSVar2->iOffset = 0;" (assignment_expression "pSVar2->iOffset = 0" (field_expression "pSVar2->iOffset" identifier -> field_identifier) = number_literal) ;) (expression_statement "pSVar2->op = '\x7f';" (assignment_expression "pSVar2->op = '\x7f'" (field_expression "pSVar2->op" identifier -> field_identifier) = (char_literal "'\x7f'" ' escape_sequence ')) ;) (expression_statement "uVar3 = pParse->nSelect + 1;" (assignment_expression "uVar3 = pParse->nSelect + 1" identifier = (binary_expression "pParse->nSelect + 1" (field_expression "pParse->nSelect" identifier -> field_identifier) + number_literal)) ;) (expression_statement "pParse->nSelect = uVar3;" (assignment_expression "pParse->nSelect = uVar3" (field_expression "pParse->nSelect" identifier -> field_identifier) = identifier) ;) (expression_statement "pSVar2->selId = uVar3;" (assignment_expression "pSVar2->selId = uVar3" (field_expression "pSVar2->selId" identifier -> field_identifier) = identifier) ;) (expression_statement "pSVar2->addrOpenEphm[0] = -1;" (assignment_expression "pSVar2->addrOpenEphm[0] = -1" (subscript_expression "pSVar2->addrOpenEphm[0]" (field_expression "pSVar2->addrOpenEphm" identifier -> field_identifier) [ number_literal ]) = number_literal) ;) (expression_statement "pSVar2->addrOpenEphm[1] = -1;" (assignment_expression "pSVar2->addrOpenEphm[1] = -1" (subscript_expression "pSVar2->addrOpenEphm[1]" (field_expression "pSVar2->addrOpenEphm" identifier -> field_identifier) [ number_literal ]) = number_literal) ;) (expression_statement "pSVar2->nSelectRow = 0;" (assignment_expression "pSVar2->nSelectRow = 0" (field_expression "pSVar2->nSelectRow" identifier -> field_identifier) = number_literal) ;) (if_statement "if (pSrc == (SrcList *)0x0) {\n    pSrc = (SrcList *)(*(code *)(PTR_LAB_0015b6d8 + -0x2a40))(pParse->db);\n  }" if (parenthesized_expression "(pSrc == (SrcList *)0x0)" ( (binary_expression "pSrc == (SrcList *)0x0" identifier == (cast_expression "(SrcList *)0x0" ( (type_descriptor "SrcList *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pSrc = (SrcList *)(*(code *)(PTR_LAB_0015b6d8 + -0x2a40))(pParse->db);\n  }" { (expression_statement "pSrc = (SrcList *)(*(code *)(PTR_LAB_0015b6d8 + -0x2a40))(pParse->db);" (assignment_expression "pSrc = (SrcList *)(*(code *)(PTR_LAB_0015b6d8 + -0x2a40))(pParse->db)" identifier = (cast_expression "(SrcList *)(*(code *)(PTR_LAB_0015b6d8 + -0x2a40))(pParse->db)" ( (type_descriptor "SrcList *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)(PTR_LAB_0015b6d8 + -0x2a40))(pParse->db)" (parenthesized_expression "(*(code *)(PTR_LAB_0015b6d8 + -0x2a40))" ( (pointer_expression "*(code *)(PTR_LAB_0015b6d8 + -0x2a40)" * (cast_expression "(code *)(PTR_LAB_0015b6d8 + -0x2a40)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b6d8 + -0x2a40)" ( (binary_expression "PTR_LAB_0015b6d8 + -0x2a40" identifier + number_literal) )))) )) (argument_list "(pParse->db)" ( (field_expression "pParse->db" identifier -> field_identifier) ))))) ;) })) (expression_statement "pSVar2->pSrc = pSrc;" (assignment_expression "pSVar2->pSrc = pSrc" (field_expression "pSVar2->pSrc" identifier -> field_identifier) = identifier) ;) (expression_statement "pSVar2->pWhere = pWhere;" (assignment_expression "pSVar2->pWhere = pWhere" (field_expression "pSVar2->pWhere" identifier -> field_identifier) = identifier) ;) (expression_statement "pSVar2->pGroupBy = pGroupBy;" (assignment_expression "pSVar2->pGroupBy = pGroupBy" (field_expression "pSVar2->pGroupBy" identifier -> field_identifier) = identifier) ;) (expression_statement "pSVar2->pHaving = pHaving;" (assignment_expression "pSVar2->pHaving = pHaving" (field_expression "pSVar2->pHaving" identifier -> field_identifier) = identifier) ;) (expression_statement "pSVar2->pOrderBy = pOrderBy;" (assignment_expression "pSVar2->pOrderBy = pOrderBy" (field_expression "pSVar2->pOrderBy" identifier -> field_identifier) = identifier) ;) (expression_statement "pSVar2->pPrior = (Select *)0x0;" (assignment_expression "pSVar2->pPrior = (Select *)0x0" (field_expression "pSVar2->pPrior" identifier -> field_identifier) = (cast_expression "(Select *)0x0" ( (type_descriptor "Select *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pSVar2->pNext = (Select *)0x0;" (assignment_expression "pSVar2->pNext = (Select *)0x0" (field_expression "pSVar2->pNext" identifier -> field_identifier) = (cast_expression "(Select *)0x0" ( (type_descriptor "Select *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pSVar2->pLimit = pLimit;" (assignment_expression "pSVar2->pLimit = pLimit" (field_expression "pSVar2->pLimit" identifier -> field_identifier) = identifier) ;) (expression_statement "pSVar2->pWith = (With *)0x0;" (assignment_expression "pSVar2->pWith = (With *)0x0" (field_expression "pSVar2->pWith" identifier -> field_identifier) = (cast_expression "(With *)0x0" ( (type_descriptor "With *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pSVar2->pWin = (Window *)0x0;" (assignment_expression "pSVar2->pWin = (Window *)0x0" (field_expression "pSVar2->pWin" identifier -> field_identifier) = (cast_expression "(Window *)0x0" ( (type_descriptor "Window *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pSVar2->pWinDefn = (Window *)0x0;" (assignment_expression "pSVar2->pWinDefn = (Window *)0x0" (field_expression "pSVar2->pWinDefn" identifier -> field_identifier) = (cast_expression "(Window *)0x0" ( (type_descriptor "Window *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (if_statement "if (pParse->db->mallocFailed != '\0') {\n    clearSelect(pParse->db,pSVar2,(uint)(pSVar2 != &standin));\n    pSVar2 = (Select *)0x0;\n  }" if (parenthesized_expression "(pParse->db->mallocFailed != '\0')" ( (binary_expression "pParse->db->mallocFailed != '\0'" (field_expression "pParse->db->mallocFailed" (field_expression "pParse->db" identifier -> field_identifier) -> field_identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    clearSelect(pParse->db,pSVar2,(uint)(pSVar2 != &standin));\n    pSVar2 = (Select *)0x0;\n  }" { (expression_statement "clearSelect(pParse->db,pSVar2,(uint)(pSVar2 != &standin));" (call_expression "clearSelect(pParse->db,pSVar2,(uint)(pSVar2 != &standin))" identifier (argument_list "(pParse->db,pSVar2,(uint)(pSVar2 != &standin))" ( (field_expression "pParse->db" identifier -> field_identifier) , identifier , (call_expression "(uint)(pSVar2 != &standin)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(pSVar2 != &standin)" ( (binary_expression "pSVar2 != &standin" identifier != (pointer_expression "&standin" & identifier)) ))) ))) ;) (expression_statement "pSVar2 = (Select *)0x0;" (assignment_expression "pSVar2 = (Select *)0x0" identifier = (cast_expression "(Select *)0x0" ( (type_descriptor "Select *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (if_statement "if (iVar4 != *(int *)puVar1) {\n    pSVar2 = (Select *)(*(code *)PTR___stack_chk_fail_0015ba10)();\n    return pSVar2;\n  }" if (parenthesized_expression "(iVar4 != *(int *)puVar1)" ( (binary_expression "iVar4 != *(int *)puVar1" identifier != (pointer_expression "*(int *)puVar1" * (cast_expression "(int *)puVar1" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    pSVar2 = (Select *)(*(code *)PTR___stack_chk_fail_0015ba10)();\n    return pSVar2;\n  }" { (expression_statement "pSVar2 = (Select *)(*(code *)PTR___stack_chk_fail_0015ba10)();" (assignment_expression "pSVar2 = (Select *)(*(code *)PTR___stack_chk_fail_0015ba10)()" identifier = (cast_expression "(Select *)(*(code *)PTR___stack_chk_fail_0015ba10)()" ( (type_descriptor "Select *" type_identifier (abstract_pointer_declarator "*" *)) ) (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 "()" ( ))))) ;) (return_statement "return pSVar2;" return identifier ;) })) (return_statement "return pSVar2;" return identifier ;) })))
(translation_unit "int * FUN_000600ec(int *param_1,int param_2,int param_3,int param_4,int param_5,int param_6,\n                  int param_7,int param_8,int param_9)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined *puVar5;\n  undefined4 local_80;\n  undefined4 local_7c;\n  int local_78 [19];\n  int local_2c;\n  \n  puVar5 = PTR___stack_chk_guard_0015ba2c;\n  local_2c = *(int *)PTR___stack_chk_guard_0015ba2c;\n  if ((*(char *)(*param_1 + 0x51) != '\0') ||\n     (piVar1 = (int *)(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(*param_1,local_2c,0,0x4c),\n     piVar1 == (int *)0x0)) {\n    piVar1 = local_78;\n  }\n  if (param_2 == 0) {\n    local_80 = 0;\n    local_7c = 0;\n    uVar3 = (*(code *)(PTR_LAB_0015b6d8 + -0x1cc0))(*param_1,0xa8,&local_80,0);\n    param_2 = FUN_0005fad4(*param_1,0,uVar3);\n  }\n  *piVar1 = param_2;\n  piVar1[3] = 0;\n  piVar1[2] = param_8;\n  piVar1[4] = 0;\n  *(undefined1 *)(piVar1 + 1) = 0x7f;\n  iVar2 = param_1[0x19];\n  param_1[0x19] = iVar2 + 1;\n  piVar1[5] = iVar2 + 1;\n  piVar1[6] = -1;\n  piVar1[7] = -1;\n  *(undefined2 *)((int)piVar1 + 6) = 0;\n  if (param_3 == 0) {\n    param_3 = (*(code *)(PTR_LAB_0015b6d8 + -0x2a40))(*param_1);\n  }\n  piVar1[8] = param_3;\n  piVar1[9] = param_4;\n  piVar1[10] = param_5;\n  piVar1[0xb] = param_6;\n  piVar1[0xc] = param_7;\n  piVar1[0xd] = 0;\n  piVar1[0xe] = 0;\n  piVar1[0xf] = param_9;\n  piVar1[0x10] = 0;\n  piVar1[0x11] = 0;\n  piVar1[0x12] = 0;\n  if (*(char *)(*param_1 + 0x51) != '\0') {\n    FUN_00047a00(*param_1,piVar1,piVar1 != local_78);\n    piVar1 = (int *)0x0;\n  }\n  if (local_2c != *(int *)puVar5) {\n    iVar2 = local_2c;\n    puVar5 = PTR___stack_chk_fail_0015ba10;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    if (*(int *)(iVar2 + 0x154) % 5 == 0) {\n      iVar4 = FUN_00057704();\n      if (iVar4 != 0) {\n        (**(code **)(puVar5 + 0xfb6c0))(iVar4 + *(int *)(iVar2 + 0x154) * 4,0,0x14);\n        *(int *)(iVar2 + 0x16c) = iVar4;\n        return (int *)0x0;\n      }\n      piVar1 = (int *)&DAT_00000007;\n    }\n    else {\n      piVar1 = (int *)0x0;\n    }\n    return piVar1;\n  }\n  return piVar1;\n}\n\n" (function_definition "int * FUN_000600ec(int *param_1,int param_2,int param_3,int param_4,int param_5,int param_6,\n                  int param_7,int param_8,int param_9)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined *puVar5;\n  undefined4 local_80;\n  undefined4 local_7c;\n  int local_78 [19];\n  int local_2c;\n  \n  puVar5 = PTR___stack_chk_guard_0015ba2c;\n  local_2c = *(int *)PTR___stack_chk_guard_0015ba2c;\n  if ((*(char *)(*param_1 + 0x51) != '\0') ||\n     (piVar1 = (int *)(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(*param_1,local_2c,0,0x4c),\n     piVar1 == (int *)0x0)) {\n    piVar1 = local_78;\n  }\n  if (param_2 == 0) {\n    local_80 = 0;\n    local_7c = 0;\n    uVar3 = (*(code *)(PTR_LAB_0015b6d8 + -0x1cc0))(*param_1,0xa8,&local_80,0);\n    param_2 = FUN_0005fad4(*param_1,0,uVar3);\n  }\n  *piVar1 = param_2;\n  piVar1[3] = 0;\n  piVar1[2] = param_8;\n  piVar1[4] = 0;\n  *(undefined1 *)(piVar1 + 1) = 0x7f;\n  iVar2 = param_1[0x19];\n  param_1[0x19] = iVar2 + 1;\n  piVar1[5] = iVar2 + 1;\n  piVar1[6] = -1;\n  piVar1[7] = -1;\n  *(undefined2 *)((int)piVar1 + 6) = 0;\n  if (param_3 == 0) {\n    param_3 = (*(code *)(PTR_LAB_0015b6d8 + -0x2a40))(*param_1);\n  }\n  piVar1[8] = param_3;\n  piVar1[9] = param_4;\n  piVar1[10] = param_5;\n  piVar1[0xb] = param_6;\n  piVar1[0xc] = param_7;\n  piVar1[0xd] = 0;\n  piVar1[0xe] = 0;\n  piVar1[0xf] = param_9;\n  piVar1[0x10] = 0;\n  piVar1[0x11] = 0;\n  piVar1[0x12] = 0;\n  if (*(char *)(*param_1 + 0x51) != '\0') {\n    FUN_00047a00(*param_1,piVar1,piVar1 != local_78);\n    piVar1 = (int *)0x0;\n  }\n  if (local_2c != *(int *)puVar5) {\n    iVar2 = local_2c;\n    puVar5 = PTR___stack_chk_fail_0015ba10;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    if (*(int *)(iVar2 + 0x154) % 5 == 0) {\n      iVar4 = FUN_00057704();\n      if (iVar4 != 0) {\n        (**(code **)(puVar5 + 0xfb6c0))(iVar4 + *(int *)(iVar2 + 0x154) * 4,0,0x14);\n        *(int *)(iVar2 + 0x16c) = iVar4;\n        return (int *)0x0;\n      }\n      piVar1 = (int *)&DAT_00000007;\n    }\n    else {\n      piVar1 = (int *)0x0;\n    }\n    return piVar1;\n  }\n  return piVar1;\n}" primitive_type (pointer_declarator "* FUN_000600ec(int *param_1,int param_2,int param_3,int param_4,int param_5,int param_6,\n                  int param_7,int param_8,int param_9)" * (function_declarator "FUN_000600ec(int *param_1,int param_2,int param_3,int param_4,int param_5,int param_6,\n                  int param_7,int param_8,int param_9)" identifier (parameter_list "(int *param_1,int param_2,int param_3,int param_4,int param_5,int param_6,\n                  int param_7,int param_8,int param_9)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int param_3" primitive_type identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "int param_6" primitive_type identifier) , (parameter_declaration "int param_7" primitive_type identifier) , (parameter_declaration "int param_8" primitive_type identifier) , (parameter_declaration "int param_9" primitive_type identifier) )))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined *puVar5;\n  undefined4 local_80;\n  undefined4 local_7c;\n  int local_78 [19];\n  int local_2c;\n  \n  puVar5 = PTR___stack_chk_guard_0015ba2c;\n  local_2c = *(int *)PTR___stack_chk_guard_0015ba2c;\n  if ((*(char *)(*param_1 + 0x51) != '\0') ||\n     (piVar1 = (int *)(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(*param_1,local_2c,0,0x4c),\n     piVar1 == (int *)0x0)) {\n    piVar1 = local_78;\n  }\n  if (param_2 == 0) {\n    local_80 = 0;\n    local_7c = 0;\n    uVar3 = (*(code *)(PTR_LAB_0015b6d8 + -0x1cc0))(*param_1,0xa8,&local_80,0);\n    param_2 = FUN_0005fad4(*param_1,0,uVar3);\n  }\n  *piVar1 = param_2;\n  piVar1[3] = 0;\n  piVar1[2] = param_8;\n  piVar1[4] = 0;\n  *(undefined1 *)(piVar1 + 1) = 0x7f;\n  iVar2 = param_1[0x19];\n  param_1[0x19] = iVar2 + 1;\n  piVar1[5] = iVar2 + 1;\n  piVar1[6] = -1;\n  piVar1[7] = -1;\n  *(undefined2 *)((int)piVar1 + 6) = 0;\n  if (param_3 == 0) {\n    param_3 = (*(code *)(PTR_LAB_0015b6d8 + -0x2a40))(*param_1);\n  }\n  piVar1[8] = param_3;\n  piVar1[9] = param_4;\n  piVar1[10] = param_5;\n  piVar1[0xb] = param_6;\n  piVar1[0xc] = param_7;\n  piVar1[0xd] = 0;\n  piVar1[0xe] = 0;\n  piVar1[0xf] = param_9;\n  piVar1[0x10] = 0;\n  piVar1[0x11] = 0;\n  piVar1[0x12] = 0;\n  if (*(char *)(*param_1 + 0x51) != '\0') {\n    FUN_00047a00(*param_1,piVar1,piVar1 != local_78);\n    piVar1 = (int *)0x0;\n  }\n  if (local_2c != *(int *)puVar5) {\n    iVar2 = local_2c;\n    puVar5 = PTR___stack_chk_fail_0015ba10;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    if (*(int *)(iVar2 + 0x154) % 5 == 0) {\n      iVar4 = FUN_00057704();\n      if (iVar4 != 0) {\n        (**(code **)(puVar5 + 0xfb6c0))(iVar4 + *(int *)(iVar2 + 0x154) * 4,0,0x14);\n        *(int *)(iVar2 + 0x16c) = iVar4;\n        return (int *)0x0;\n      }\n      piVar1 = (int *)&DAT_00000007;\n    }\n    else {\n      piVar1 = (int *)0x0;\n    }\n    return piVar1;\n  }\n  return piVar1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined4 uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "undefined4 local_80;" type_identifier identifier ;) (declaration "undefined4 local_7c;" type_identifier identifier ;) (declaration "int local_78 [19];" primitive_type (array_declarator "local_78 [19]" identifier [ number_literal ]) ;) (declaration "int local_2c;" primitive_type identifier ;) (expression_statement "puVar5 = PTR___stack_chk_guard_0015ba2c;" (assignment_expression "puVar5 = PTR___stack_chk_guard_0015ba2c" identifier = 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))) ;) (if_statement "if ((*(char *)(*param_1 + 0x51) != '\0') ||\n     (piVar1 = (int *)(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(*param_1,local_2c,0,0x4c),\n     piVar1 == (int *)0x0)) {\n    piVar1 = local_78;\n  }" if (parenthesized_expression "((*(char *)(*param_1 + 0x51) != '\0') ||\n     (piVar1 = (int *)(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(*param_1,local_2c,0,0x4c),\n     piVar1 == (int *)0x0))" ( (binary_expression "(*(char *)(*param_1 + 0x51) != '\0') ||\n     (piVar1 = (int *)(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(*param_1,local_2c,0,0x4c),\n     piVar1 == (int *)0x0)" (parenthesized_expression "(*(char *)(*param_1 + 0x51) != '\0')" ( (binary_expression "*(char *)(*param_1 + 0x51) != '\0'" (pointer_expression "*(char *)(*param_1 + 0x51)" * (cast_expression "(char *)(*param_1 + 0x51)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x51)" ( (binary_expression "*param_1 + 0x51" (pointer_expression "*param_1" * identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) || (parenthesized_expression "(piVar1 = (int *)(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(*param_1,local_2c,0,0x4c),\n     piVar1 == (int *)0x0)" ( (comma_expression "piVar1 = (int *)(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(*param_1,local_2c,0,0x4c),\n     piVar1 == (int *)0x0" (assignment_expression "piVar1 = (int *)(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(*param_1,local_2c,0,0x4c)" identifier = (cast_expression "(int *)(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(*param_1,local_2c,0,0x4c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(*param_1,local_2c,0,0x4c)" (parenthesized_expression "(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))" ( (pointer_expression "*(code *)(PTR_LAB_0015b6d8 + -0x2b10)" * (cast_expression "(code *)(PTR_LAB_0015b6d8 + -0x2b10)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b6d8 + -0x2b10)" ( (binary_expression "PTR_LAB_0015b6d8 + -0x2b10" identifier + number_literal) )))) )) (argument_list "(*param_1,local_2c,0,0x4c)" ( (pointer_expression "*param_1" * identifier) , identifier , number_literal , number_literal ))))) , (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    piVar1 = local_78;\n  }" { (expression_statement "piVar1 = local_78;" (assignment_expression "piVar1 = local_78" identifier = identifier) ;) })) (if_statement "if (param_2 == 0) {\n    local_80 = 0;\n    local_7c = 0;\n    uVar3 = (*(code *)(PTR_LAB_0015b6d8 + -0x1cc0))(*param_1,0xa8,&local_80,0);\n    param_2 = FUN_0005fad4(*param_1,0,uVar3);\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    local_80 = 0;\n    local_7c = 0;\n    uVar3 = (*(code *)(PTR_LAB_0015b6d8 + -0x1cc0))(*param_1,0xa8,&local_80,0);\n    param_2 = FUN_0005fad4(*param_1,0,uVar3);\n  }" { (expression_statement "local_80 = 0;" (assignment_expression "local_80 = 0" identifier = number_literal) ;) (expression_statement "local_7c = 0;" (assignment_expression "local_7c = 0" identifier = number_literal) ;) (expression_statement "uVar3 = (*(code *)(PTR_LAB_0015b6d8 + -0x1cc0))(*param_1,0xa8,&local_80,0);" (assignment_expression "uVar3 = (*(code *)(PTR_LAB_0015b6d8 + -0x1cc0))(*param_1,0xa8,&local_80,0)" identifier = (call_expression "(*(code *)(PTR_LAB_0015b6d8 + -0x1cc0))(*param_1,0xa8,&local_80,0)" (parenthesized_expression "(*(code *)(PTR_LAB_0015b6d8 + -0x1cc0))" ( (pointer_expression "*(code *)(PTR_LAB_0015b6d8 + -0x1cc0)" * (cast_expression "(code *)(PTR_LAB_0015b6d8 + -0x1cc0)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b6d8 + -0x1cc0)" ( (binary_expression "PTR_LAB_0015b6d8 + -0x1cc0" identifier + number_literal) )))) )) (argument_list "(*param_1,0xa8,&local_80,0)" ( (pointer_expression "*param_1" * identifier) , number_literal , (pointer_expression "&local_80" & identifier) , number_literal )))) ;) (expression_statement "param_2 = FUN_0005fad4(*param_1,0,uVar3);" (assignment_expression "param_2 = FUN_0005fad4(*param_1,0,uVar3)" identifier = (call_expression "FUN_0005fad4(*param_1,0,uVar3)" identifier (argument_list "(*param_1,0,uVar3)" ( (pointer_expression "*param_1" * identifier) , number_literal , identifier )))) ;) })) (expression_statement "*piVar1 = param_2;" (assignment_expression "*piVar1 = param_2" (pointer_expression "*piVar1" * identifier) = identifier) ;) (expression_statement "piVar1[3] = 0;" (assignment_expression "piVar1[3] = 0" (subscript_expression "piVar1[3]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[2] = param_8;" (assignment_expression "piVar1[2] = param_8" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1[4] = 0;" (assignment_expression "piVar1[4] = 0" (subscript_expression "piVar1[4]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined1 *)(piVar1 + 1) = 0x7f;" (assignment_expression "*(undefined1 *)(piVar1 + 1) = 0x7f" (pointer_expression "*(undefined1 *)(piVar1 + 1)" * (cast_expression "(undefined1 *)(piVar1 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar1 + 1)" ( (binary_expression "piVar1 + 1" identifier + number_literal) )))) = number_literal) ;) (expression_statement "iVar2 = param_1[0x19];" (assignment_expression "iVar2 = param_1[0x19]" identifier = (subscript_expression "param_1[0x19]" identifier [ number_literal ])) ;) (expression_statement "param_1[0x19] = iVar2 + 1;" (assignment_expression "param_1[0x19] = iVar2 + 1" (subscript_expression "param_1[0x19]" identifier [ number_literal ]) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "piVar1[5] = iVar2 + 1;" (assignment_expression "piVar1[5] = iVar2 + 1" (subscript_expression "piVar1[5]" identifier [ number_literal ]) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "piVar1[6] = -1;" (assignment_expression "piVar1[6] = -1" (subscript_expression "piVar1[6]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[7] = -1;" (assignment_expression "piVar1[7] = -1" (subscript_expression "piVar1[7]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*(undefined2 *)((int)piVar1 + 6) = 0;" (assignment_expression "*(undefined2 *)((int)piVar1 + 6) = 0" (pointer_expression "*(undefined2 *)((int)piVar1 + 6)" * (cast_expression "(undefined2 *)((int)piVar1 + 6)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((int)piVar1 + 6)" ( (binary_expression "(int)piVar1 + 6" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + number_literal) )))) = number_literal) ;) (if_statement "if (param_3 == 0) {\n    param_3 = (*(code *)(PTR_LAB_0015b6d8 + -0x2a40))(*param_1);\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    param_3 = (*(code *)(PTR_LAB_0015b6d8 + -0x2a40))(*param_1);\n  }" { (expression_statement "param_3 = (*(code *)(PTR_LAB_0015b6d8 + -0x2a40))(*param_1);" (assignment_expression "param_3 = (*(code *)(PTR_LAB_0015b6d8 + -0x2a40))(*param_1)" identifier = (call_expression "(*(code *)(PTR_LAB_0015b6d8 + -0x2a40))(*param_1)" (parenthesized_expression "(*(code *)(PTR_LAB_0015b6d8 + -0x2a40))" ( (pointer_expression "*(code *)(PTR_LAB_0015b6d8 + -0x2a40)" * (cast_expression "(code *)(PTR_LAB_0015b6d8 + -0x2a40)" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(PTR_LAB_0015b6d8 + -0x2a40)" ( (binary_expression "PTR_LAB_0015b6d8 + -0x2a40" identifier + number_literal) )))) )) (argument_list "(*param_1)" ( (pointer_expression "*param_1" * identifier) )))) ;) })) (expression_statement "piVar1[8] = param_3;" (assignment_expression "piVar1[8] = param_3" (subscript_expression "piVar1[8]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1[9] = param_4;" (assignment_expression "piVar1[9] = param_4" (subscript_expression "piVar1[9]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1[10] = param_5;" (assignment_expression "piVar1[10] = param_5" (subscript_expression "piVar1[10]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1[0xb] = param_6;" (assignment_expression "piVar1[0xb] = param_6" (subscript_expression "piVar1[0xb]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1[0xc] = param_7;" (assignment_expression "piVar1[0xc] = param_7" (subscript_expression "piVar1[0xc]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1[0xd] = 0;" (assignment_expression "piVar1[0xd] = 0" (subscript_expression "piVar1[0xd]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[0xe] = 0;" (assignment_expression "piVar1[0xe] = 0" (subscript_expression "piVar1[0xe]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[0xf] = param_9;" (assignment_expression "piVar1[0xf] = param_9" (subscript_expression "piVar1[0xf]" identifier [ number_literal ]) = identifier) ;) (expression_statement "piVar1[0x10] = 0;" (assignment_expression "piVar1[0x10] = 0" (subscript_expression "piVar1[0x10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[0x11] = 0;" (assignment_expression "piVar1[0x11] = 0" (subscript_expression "piVar1[0x11]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[0x12] = 0;" (assignment_expression "piVar1[0x12] = 0" (subscript_expression "piVar1[0x12]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (*(char *)(*param_1 + 0x51) != '\0') {\n    FUN_00047a00(*param_1,piVar1,piVar1 != local_78);\n    piVar1 = (int *)0x0;\n  }" if (parenthesized_expression "(*(char *)(*param_1 + 0x51) != '\0')" ( (binary_expression "*(char *)(*param_1 + 0x51) != '\0'" (pointer_expression "*(char *)(*param_1 + 0x51)" * (cast_expression "(char *)(*param_1 + 0x51)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x51)" ( (binary_expression "*param_1 + 0x51" (pointer_expression "*param_1" * identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_00047a00(*param_1,piVar1,piVar1 != local_78);\n    piVar1 = (int *)0x0;\n  }" { (expression_statement "FUN_00047a00(*param_1,piVar1,piVar1 != local_78);" (call_expression "FUN_00047a00(*param_1,piVar1,piVar1 != local_78)" identifier (argument_list "(*param_1,piVar1,piVar1 != local_78)" ( (pointer_expression "*param_1" * identifier) , identifier , (binary_expression "piVar1 != local_78" identifier != identifier) ))) ;) (expression_statement "piVar1 = (int *)0x0;" (assignment_expression "piVar1 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (if_statement "if (local_2c != *(int *)puVar5) {\n    iVar2 = local_2c;\n    puVar5 = PTR___stack_chk_fail_0015ba10;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    if (*(int *)(iVar2 + 0x154) % 5 == 0) {\n      iVar4 = FUN_00057704();\n      if (iVar4 != 0) {\n        (**(code **)(puVar5 + 0xfb6c0))(iVar4 + *(int *)(iVar2 + 0x154) * 4,0,0x14);\n        *(int *)(iVar2 + 0x16c) = iVar4;\n        return (int *)0x0;\n      }\n      piVar1 = (int *)&DAT_00000007;\n    }\n    else {\n      piVar1 = (int *)0x0;\n    }\n    return piVar1;\n  }" if (parenthesized_expression "(local_2c != *(int *)puVar5)" ( (binary_expression "local_2c != *(int *)puVar5" identifier != (pointer_expression "*(int *)puVar5" * (cast_expression "(int *)puVar5" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) )) (compound_statement "{\n    iVar2 = local_2c;\n    puVar5 = PTR___stack_chk_fail_0015ba10;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    if (*(int *)(iVar2 + 0x154) % 5 == 0) {\n      iVar4 = FUN_00057704();\n      if (iVar4 != 0) {\n        (**(code **)(puVar5 + 0xfb6c0))(iVar4 + *(int *)(iVar2 + 0x154) * 4,0,0x14);\n        *(int *)(iVar2 + 0x16c) = iVar4;\n        return (int *)0x0;\n      }\n      piVar1 = (int *)&DAT_00000007;\n    }\n    else {\n      piVar1 = (int *)0x0;\n    }\n    return piVar1;\n  }" { (expression_statement "iVar2 = local_2c;" (assignment_expression "iVar2 = local_2c" identifier = identifier) ;) (expression_statement "puVar5 = PTR___stack_chk_fail_0015ba10;" (assignment_expression "puVar5 = 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 "()" ( ))) ;) (if_statement "if (*(int *)(iVar2 + 0x154) % 5 == 0) {\n      iVar4 = FUN_00057704();\n      if (iVar4 != 0) {\n        (**(code **)(puVar5 + 0xfb6c0))(iVar4 + *(int *)(iVar2 + 0x154) * 4,0,0x14);\n        *(int *)(iVar2 + 0x16c) = iVar4;\n        return (int *)0x0;\n      }\n      piVar1 = (int *)&DAT_00000007;\n    }\n    else {\n      piVar1 = (int *)0x0;\n    }" if (parenthesized_expression "(*(int *)(iVar2 + 0x154) % 5 == 0)" ( (binary_expression "*(int *)(iVar2 + 0x154) % 5 == 0" (binary_expression "*(int *)(iVar2 + 0x154) % 5" (pointer_expression "*(int *)(iVar2 + 0x154)" * (cast_expression "(int *)(iVar2 + 0x154)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x154)" ( (binary_expression "iVar2 + 0x154" identifier + number_literal) )))) % number_literal) == number_literal) )) (compound_statement "{\n      iVar4 = FUN_00057704();\n      if (iVar4 != 0) {\n        (**(code **)(puVar5 + 0xfb6c0))(iVar4 + *(int *)(iVar2 + 0x154) * 4,0,0x14);\n        *(int *)(iVar2 + 0x16c) = iVar4;\n        return (int *)0x0;\n      }\n      piVar1 = (int *)&DAT_00000007;\n    }" { (expression_statement "iVar4 = FUN_00057704();" (assignment_expression "iVar4 = FUN_00057704()" identifier = (call_expression "FUN_00057704()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar4 != 0) {\n        (**(code **)(puVar5 + 0xfb6c0))(iVar4 + *(int *)(iVar2 + 0x154) * 4,0,0x14);\n        *(int *)(iVar2 + 0x16c) = iVar4;\n        return (int *)0x0;\n      }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n        (**(code **)(puVar5 + 0xfb6c0))(iVar4 + *(int *)(iVar2 + 0x154) * 4,0,0x14);\n        *(int *)(iVar2 + 0x16c) = iVar4;\n        return (int *)0x0;\n      }" { (expression_statement "(**(code **)(puVar5 + 0xfb6c0))(iVar4 + *(int *)(iVar2 + 0x154) * 4,0,0x14);" (call_expression "(**(code **)(puVar5 + 0xfb6c0))(iVar4 + *(int *)(iVar2 + 0x154) * 4,0,0x14)" (parenthesized_expression "(**(code **)(puVar5 + 0xfb6c0))" ( (pointer_expression "**(code **)(puVar5 + 0xfb6c0)" * (pointer_expression "*(code **)(puVar5 + 0xfb6c0)" * (cast_expression "(code **)(puVar5 + 0xfb6c0)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(puVar5 + 0xfb6c0)" ( (binary_expression "puVar5 + 0xfb6c0" identifier + number_literal) ))))) )) (argument_list "(iVar4 + *(int *)(iVar2 + 0x154) * 4,0,0x14)" ( (binary_expression "iVar4 + *(int *)(iVar2 + 0x154) * 4" identifier + (binary_expression "*(int *)(iVar2 + 0x154) * 4" (pointer_expression "*(int *)(iVar2 + 0x154)" * (cast_expression "(int *)(iVar2 + 0x154)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x154)" ( (binary_expression "iVar2 + 0x154" identifier + number_literal) )))) * number_literal)) , number_literal , number_literal ))) ;) (expression_statement "*(int *)(iVar2 + 0x16c) = iVar4;" (assignment_expression "*(int *)(iVar2 + 0x16c) = iVar4" (pointer_expression "*(int *)(iVar2 + 0x16c)" * (cast_expression "(int *)(iVar2 + 0x16c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x16c)" ( (binary_expression "iVar2 + 0x16c" identifier + number_literal) )))) = identifier) ;) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "piVar1 = (int *)&DAT_00000007;" (assignment_expression "piVar1 = (int *)&DAT_00000007" identifier = (cast_expression "(int *)&DAT_00000007" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&DAT_00000007" & identifier))) ;) }) (else_clause "else {\n      piVar1 = (int *)0x0;\n    }" else (compound_statement "{\n      piVar1 = (int *)0x0;\n    }" { (expression_statement "piVar1 = (int *)0x0;" (assignment_expression "piVar1 = (int *)0x0" identifier = (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) }))) (return_statement "return piVar1;" return identifier ;) })) (return_statement "return piVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (array_declarator IDENT [ LIT ]) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) ;) (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 (pointer_expression * IDENT) + LIT) )))) != (char_literal ' escape_sequence ')) )) || (parenthesized_expression ( (comma_expression (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( (pointer_expression * IDENT) , IDENT , LIT , LIT ))))) , (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT))) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( (pointer_expression * IDENT) , LIT , (pointer_expression & IDENT) , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , LIT , IDENT )))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = 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) )))) = LIT) ;) (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 *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) )) (argument_list ( (pointer_expression * IDENT) )))) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , IDENT , (binary_expression IDENT != IDENT) ))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) IDENT))) )) (compound_statement { (expression_statement (assignment_expression IDENT = IDENT) ;) (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 ( ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) % LIT) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (binary_expression IDENT + (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) * LIT)) , LIT , LIT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (pointer_expression & IDENT))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ;) }))) (return_statement return IDENT ;) })) (return_statement return IDENT ;) })))
(function_definition "int * FUN_000600ec(int *param_1,int param_2,int param_3,int param_4,int param_5,int param_6,\n                  int param_7,int param_8,int param_9)\n\n{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined *puVar5;\n  undefined4 local_80;\n  undefined4 local_7c;\n  int local_78 [19];\n  int local_2c;\n  \n  puVar5 = PTR___stack_chk_guard_0015ba2c;\n  local_2c = *(int *)PTR___stack_chk_guard_0015ba2c;\n  if ((*(char *)(*param_1 + 0x51) != '\0') ||\n     (piVar1 = (int *)(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(*param_1,local_2c,0,0x4c),\n     piVar1 == (int *)0x0)) {\n    piVar1 = local_78;\n  }\n  if (param_2 == 0) {\n    local_80 = 0;\n    local_7c = 0;\n    uVar3 = (*(code *)(PTR_LAB_0015b6d8 + -0x1cc0))(*param_1,0xa8,&local_80,0);\n    param_2 = FUN_0005fad4(*param_1,0,uVar3);\n  }\n  *piVar1 = param_2;\n  piVar1[3] = 0;\n  piVar1[2] = param_8;\n  piVar1[4] = 0;\n  *(undefined1 *)(piVar1 + 1) = 0x7f;\n  iVar2 = param_1[0x19];\n  param_1[0x19] = iVar2 + 1;\n  piVar1[5] = iVar2 + 1;\n  piVar1[6] = -1;\n  piVar1[7] = -1;\n  *(undefined2 *)((int)piVar1 + 6) = 0;\n  if (param_3 == 0) {\n    param_3 = (*(code *)(PTR_LAB_0015b6d8 + -0x2a40))(*param_1);\n  }\n  piVar1[8] = param_3;\n  piVar1[9] = param_4;\n  piVar1[10] = param_5;\n  piVar1[0xb] = param_6;\n  piVar1[0xc] = param_7;\n  piVar1[0xd] = 0;\n  piVar1[0xe] = 0;\n  piVar1[0xf] = param_9;\n  piVar1[0x10] = 0;\n  piVar1[0x11] = 0;\n  piVar1[0x12] = 0;\n  if (*(char *)(*param_1 + 0x51) != '\0') {\n    FUN_00047a00(*param_1,piVar1,piVar1 != local_78);\n    piVar1 = (int *)0x0;\n  }\n  if (local_2c != *(int *)puVar5) {\n    iVar2 = local_2c;\n    puVar5 = PTR___stack_chk_fail_0015ba10;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    if (*(int *)(iVar2 + 0x154) % 5 == 0) {\n      iVar4 = FUN_00057704();\n      if (iVar4 != 0) {\n        (**(code **)(puVar5 + 0xfb6c0))(iVar4 + *(int *)(iVar2 + 0x154) * 4,0,0x14);\n        *(int *)(iVar2 + 0x16c) = iVar4;\n        return (int *)0x0;\n      }\n      piVar1 = (int *)&DAT_00000007;\n    }\n    else {\n      piVar1 = (int *)0x0;\n    }\n    return piVar1;\n  }\n  return piVar1;\n}" (primitive_type "int") (pointer_declarator "* FUN_000600ec(int *param_1,int param_2,int param_3,int param_4,int param_5,int param_6,\n                  int param_7,int param_8,int param_9)" (* "*") (function_declarator "FUN_000600ec(int *param_1,int param_2,int param_3,int param_4,int param_5,int param_6,\n                  int param_7,int param_8,int param_9)" (identifier "FUN_000600ec") (parameter_list "(int *param_1,int param_2,int param_3,int param_4,int param_5,int param_6,\n                  int param_7,int param_8,int param_9)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int param_3" (primitive_type "int") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) (, ",") (parameter_declaration "int param_6" (primitive_type "int") (identifier "param_6")) (, ",") (parameter_declaration "int param_7" (primitive_type "int") (identifier "param_7")) (, ",") (parameter_declaration "int param_8" (primitive_type "int") (identifier "param_8")) (, ",") (parameter_declaration "int param_9" (primitive_type "int") (identifier "param_9")) () ")")))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  undefined4 uVar3;\n  int iVar4;\n  undefined *puVar5;\n  undefined4 local_80;\n  undefined4 local_7c;\n  int local_78 [19];\n  int local_2c;\n  \n  puVar5 = PTR___stack_chk_guard_0015ba2c;\n  local_2c = *(int *)PTR___stack_chk_guard_0015ba2c;\n  if ((*(char *)(*param_1 + 0x51) != '\0') ||\n     (piVar1 = (int *)(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(*param_1,local_2c,0,0x4c),\n     piVar1 == (int *)0x0)) {\n    piVar1 = local_78;\n  }\n  if (param_2 == 0) {\n    local_80 = 0;\n    local_7c = 0;\n    uVar3 = (*(code *)(PTR_LAB_0015b6d8 + -0x1cc0))(*param_1,0xa8,&local_80,0);\n    param_2 = FUN_0005fad4(*param_1,0,uVar3);\n  }\n  *piVar1 = param_2;\n  piVar1[3] = 0;\n  piVar1[2] = param_8;\n  piVar1[4] = 0;\n  *(undefined1 *)(piVar1 + 1) = 0x7f;\n  iVar2 = param_1[0x19];\n  param_1[0x19] = iVar2 + 1;\n  piVar1[5] = iVar2 + 1;\n  piVar1[6] = -1;\n  piVar1[7] = -1;\n  *(undefined2 *)((int)piVar1 + 6) = 0;\n  if (param_3 == 0) {\n    param_3 = (*(code *)(PTR_LAB_0015b6d8 + -0x2a40))(*param_1);\n  }\n  piVar1[8] = param_3;\n  piVar1[9] = param_4;\n  piVar1[10] = param_5;\n  piVar1[0xb] = param_6;\n  piVar1[0xc] = param_7;\n  piVar1[0xd] = 0;\n  piVar1[0xe] = 0;\n  piVar1[0xf] = param_9;\n  piVar1[0x10] = 0;\n  piVar1[0x11] = 0;\n  piVar1[0x12] = 0;\n  if (*(char *)(*param_1 + 0x51) != '\0') {\n    FUN_00047a00(*param_1,piVar1,piVar1 != local_78);\n    piVar1 = (int *)0x0;\n  }\n  if (local_2c != *(int *)puVar5) {\n    iVar2 = local_2c;\n    puVar5 = PTR___stack_chk_fail_0015ba10;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    if (*(int *)(iVar2 + 0x154) % 5 == 0) {\n      iVar4 = FUN_00057704();\n      if (iVar4 != 0) {\n        (**(code **)(puVar5 + 0xfb6c0))(iVar4 + *(int *)(iVar2 + 0x154) * 4,0,0x14);\n        *(int *)(iVar2 + 0x16c) = iVar4;\n        return (int *)0x0;\n      }\n      piVar1 = (int *)&DAT_00000007;\n    }\n    else {\n      piVar1 = (int *)0x0;\n    }\n    return piVar1;\n  }\n  return piVar1;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined4 uVar3;" (type_identifier "undefined4") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined *puVar5;" (type_identifier "undefined") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "undefined4 local_80;" (type_identifier "undefined4") (identifier "local_80") (; ";")) (declaration "undefined4 local_7c;" (type_identifier "undefined4") (identifier "local_7c") (; ";")) (declaration "int local_78 [19];" (primitive_type "int") (array_declarator "local_78 [19]" (identifier "local_78") ([ "[") (number_literal "19") (] "]")) (; ";")) (declaration "int local_2c;" (primitive_type "int") (identifier "local_2c") (; ";")) (expression_statement "puVar5 = PTR___stack_chk_guard_0015ba2c;" (assignment_expression "puVar5 = PTR___stack_chk_guard_0015ba2c" (identifier "puVar5") (= "=") (identifier "PTR___stack_chk_guard_0015ba2c")) (; ";")) (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")))) (; ";")) (if_statement "if ((*(char *)(*param_1 + 0x51) != '\0') ||\n     (piVar1 = (int *)(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(*param_1,local_2c,0,0x4c),\n     piVar1 == (int *)0x0)) {\n    piVar1 = local_78;\n  }" (if "if") (parenthesized_expression "((*(char *)(*param_1 + 0x51) != '\0') ||\n     (piVar1 = (int *)(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(*param_1,local_2c,0,0x4c),\n     piVar1 == (int *)0x0))" (( "(") (binary_expression "(*(char *)(*param_1 + 0x51) != '\0') ||\n     (piVar1 = (int *)(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(*param_1,local_2c,0,0x4c),\n     piVar1 == (int *)0x0)" (parenthesized_expression "(*(char *)(*param_1 + 0x51) != '\0')" (( "(") (binary_expression "*(char *)(*param_1 + 0x51) != '\0'" (pointer_expression "*(char *)(*param_1 + 0x51)" (* "*") (cast_expression "(char *)(*param_1 + 0x51)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0x51)" (( "(") (binary_expression "*param_1 + 0x51" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x51")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(piVar1 = (int *)(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(*param_1,local_2c,0,0x4c),\n     piVar1 == (int *)0x0)" (( "(") (comma_expression "piVar1 = (int *)(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(*param_1,local_2c,0,0x4c),\n     piVar1 == (int *)0x0" (assignment_expression "piVar1 = (int *)(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(*param_1,local_2c,0,0x4c)" (identifier "piVar1") (= "=") (cast_expression "(int *)(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(*param_1,local_2c,0,0x4c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(*param_1,local_2c,0,0x4c)" (parenthesized_expression "(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))" (( "(") (pointer_expression "*(code *)(PTR_LAB_0015b6d8 + -0x2b10)" (* "*") (cast_expression "(code *)(PTR_LAB_0015b6d8 + -0x2b10)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_0015b6d8 + -0x2b10)" (( "(") (binary_expression "PTR_LAB_0015b6d8 + -0x2b10" (identifier "PTR_LAB_0015b6d8") (+ "+") (number_literal "-0x2b10")) () ")")))) () ")")) (argument_list "(*param_1,local_2c,0,0x4c)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (identifier "local_2c") (, ",") (number_literal "0") (, ",") (number_literal "0x4c") () ")"))))) (, ",") (binary_expression "piVar1 == (int *)0x0" (identifier "piVar1") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")))) () ")"))) () ")")) (compound_statement "{\n    piVar1 = local_78;\n  }" ({ "{") (expression_statement "piVar1 = local_78;" (assignment_expression "piVar1 = local_78" (identifier "piVar1") (= "=") (identifier "local_78")) (; ";")) (} "}"))) (if_statement "if (param_2 == 0) {\n    local_80 = 0;\n    local_7c = 0;\n    uVar3 = (*(code *)(PTR_LAB_0015b6d8 + -0x1cc0))(*param_1,0xa8,&local_80,0);\n    param_2 = FUN_0005fad4(*param_1,0,uVar3);\n  }" (if "if") (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    local_80 = 0;\n    local_7c = 0;\n    uVar3 = (*(code *)(PTR_LAB_0015b6d8 + -0x1cc0))(*param_1,0xa8,&local_80,0);\n    param_2 = FUN_0005fad4(*param_1,0,uVar3);\n  }" ({ "{") (expression_statement "local_80 = 0;" (assignment_expression "local_80 = 0" (identifier "local_80") (= "=") (number_literal "0")) (; ";")) (expression_statement "local_7c = 0;" (assignment_expression "local_7c = 0" (identifier "local_7c") (= "=") (number_literal "0")) (; ";")) (expression_statement "uVar3 = (*(code *)(PTR_LAB_0015b6d8 + -0x1cc0))(*param_1,0xa8,&local_80,0);" (assignment_expression "uVar3 = (*(code *)(PTR_LAB_0015b6d8 + -0x1cc0))(*param_1,0xa8,&local_80,0)" (identifier "uVar3") (= "=") (call_expression "(*(code *)(PTR_LAB_0015b6d8 + -0x1cc0))(*param_1,0xa8,&local_80,0)" (parenthesized_expression "(*(code *)(PTR_LAB_0015b6d8 + -0x1cc0))" (( "(") (pointer_expression "*(code *)(PTR_LAB_0015b6d8 + -0x1cc0)" (* "*") (cast_expression "(code *)(PTR_LAB_0015b6d8 + -0x1cc0)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_0015b6d8 + -0x1cc0)" (( "(") (binary_expression "PTR_LAB_0015b6d8 + -0x1cc0" (identifier "PTR_LAB_0015b6d8") (+ "+") (number_literal "-0x1cc0")) () ")")))) () ")")) (argument_list "(*param_1,0xa8,&local_80,0)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (number_literal "0xa8") (, ",") (pointer_expression "&local_80" (& "&") (identifier "local_80")) (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "param_2 = FUN_0005fad4(*param_1,0,uVar3);" (assignment_expression "param_2 = FUN_0005fad4(*param_1,0,uVar3)" (identifier "param_2") (= "=") (call_expression "FUN_0005fad4(*param_1,0,uVar3)" (identifier "FUN_0005fad4") (argument_list "(*param_1,0,uVar3)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (number_literal "0") (, ",") (identifier "uVar3") () ")")))) (; ";")) (} "}"))) (expression_statement "*piVar1 = param_2;" (assignment_expression "*piVar1 = param_2" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "piVar1[3] = 0;" (assignment_expression "piVar1[3] = 0" (subscript_expression "piVar1[3]" (identifier "piVar1") ([ "[") (number_literal "3") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar1[2] = param_8;" (assignment_expression "piVar1[2] = param_8" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (identifier "param_8")) (; ";")) (expression_statement "piVar1[4] = 0;" (assignment_expression "piVar1[4] = 0" (subscript_expression "piVar1[4]" (identifier "piVar1") ([ "[") (number_literal "4") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined1 *)(piVar1 + 1) = 0x7f;" (assignment_expression "*(undefined1 *)(piVar1 + 1) = 0x7f" (pointer_expression "*(undefined1 *)(piVar1 + 1)" (* "*") (cast_expression "(undefined1 *)(piVar1 + 1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar1 + 1)" (( "(") (binary_expression "piVar1 + 1" (identifier "piVar1") (+ "+") (number_literal "1")) () ")")))) (= "=") (number_literal "0x7f")) (; ";")) (expression_statement "iVar2 = param_1[0x19];" (assignment_expression "iVar2 = param_1[0x19]" (identifier "iVar2") (= "=") (subscript_expression "param_1[0x19]" (identifier "param_1") ([ "[") (number_literal "0x19") (] "]"))) (; ";")) (expression_statement "param_1[0x19] = iVar2 + 1;" (assignment_expression "param_1[0x19] = iVar2 + 1" (subscript_expression "param_1[0x19]" (identifier "param_1") ([ "[") (number_literal "0x19") (] "]")) (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "piVar1[5] = iVar2 + 1;" (assignment_expression "piVar1[5] = iVar2 + 1" (subscript_expression "piVar1[5]" (identifier "piVar1") ([ "[") (number_literal "5") (] "]")) (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "piVar1[6] = -1;" (assignment_expression "piVar1[6] = -1" (subscript_expression "piVar1[6]" (identifier "piVar1") ([ "[") (number_literal "6") (] "]")) (= "=") (number_literal "-1")) (; ";")) (expression_statement "piVar1[7] = -1;" (assignment_expression "piVar1[7] = -1" (subscript_expression "piVar1[7]" (identifier "piVar1") ([ "[") (number_literal "7") (] "]")) (= "=") (number_literal "-1")) (; ";")) (expression_statement "*(undefined2 *)((int)piVar1 + 6) = 0;" (assignment_expression "*(undefined2 *)((int)piVar1 + 6) = 0" (pointer_expression "*(undefined2 *)((int)piVar1 + 6)" (* "*") (cast_expression "(undefined2 *)((int)piVar1 + 6)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((int)piVar1 + 6)" (( "(") (binary_expression "(int)piVar1 + 6" (cast_expression "(int)piVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar1")) (+ "+") (number_literal "6")) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_3 == 0) {\n    param_3 = (*(code *)(PTR_LAB_0015b6d8 + -0x2a40))(*param_1);\n  }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    param_3 = (*(code *)(PTR_LAB_0015b6d8 + -0x2a40))(*param_1);\n  }" ({ "{") (expression_statement "param_3 = (*(code *)(PTR_LAB_0015b6d8 + -0x2a40))(*param_1);" (assignment_expression "param_3 = (*(code *)(PTR_LAB_0015b6d8 + -0x2a40))(*param_1)" (identifier "param_3") (= "=") (call_expression "(*(code *)(PTR_LAB_0015b6d8 + -0x2a40))(*param_1)" (parenthesized_expression "(*(code *)(PTR_LAB_0015b6d8 + -0x2a40))" (( "(") (pointer_expression "*(code *)(PTR_LAB_0015b6d8 + -0x2a40)" (* "*") (cast_expression "(code *)(PTR_LAB_0015b6d8 + -0x2a40)" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(PTR_LAB_0015b6d8 + -0x2a40)" (( "(") (binary_expression "PTR_LAB_0015b6d8 + -0x2a40" (identifier "PTR_LAB_0015b6d8") (+ "+") (number_literal "-0x2a40")) () ")")))) () ")")) (argument_list "(*param_1)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) () ")")))) (; ";")) (} "}"))) (expression_statement "piVar1[8] = param_3;" (assignment_expression "piVar1[8] = param_3" (subscript_expression "piVar1[8]" (identifier "piVar1") ([ "[") (number_literal "8") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "piVar1[9] = param_4;" (assignment_expression "piVar1[9] = param_4" (subscript_expression "piVar1[9]" (identifier "piVar1") ([ "[") (number_literal "9") (] "]")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "piVar1[10] = param_5;" (assignment_expression "piVar1[10] = param_5" (subscript_expression "piVar1[10]" (identifier "piVar1") ([ "[") (number_literal "10") (] "]")) (= "=") (identifier "param_5")) (; ";")) (expression_statement "piVar1[0xb] = param_6;" (assignment_expression "piVar1[0xb] = param_6" (subscript_expression "piVar1[0xb]" (identifier "piVar1") ([ "[") (number_literal "0xb") (] "]")) (= "=") (identifier "param_6")) (; ";")) (expression_statement "piVar1[0xc] = param_7;" (assignment_expression "piVar1[0xc] = param_7" (subscript_expression "piVar1[0xc]" (identifier "piVar1") ([ "[") (number_literal "0xc") (] "]")) (= "=") (identifier "param_7")) (; ";")) (expression_statement "piVar1[0xd] = 0;" (assignment_expression "piVar1[0xd] = 0" (subscript_expression "piVar1[0xd]" (identifier "piVar1") ([ "[") (number_literal "0xd") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar1[0xe] = 0;" (assignment_expression "piVar1[0xe] = 0" (subscript_expression "piVar1[0xe]" (identifier "piVar1") ([ "[") (number_literal "0xe") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar1[0xf] = param_9;" (assignment_expression "piVar1[0xf] = param_9" (subscript_expression "piVar1[0xf]" (identifier "piVar1") ([ "[") (number_literal "0xf") (] "]")) (= "=") (identifier "param_9")) (; ";")) (expression_statement "piVar1[0x10] = 0;" (assignment_expression "piVar1[0x10] = 0" (subscript_expression "piVar1[0x10]" (identifier "piVar1") ([ "[") (number_literal "0x10") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar1[0x11] = 0;" (assignment_expression "piVar1[0x11] = 0" (subscript_expression "piVar1[0x11]" (identifier "piVar1") ([ "[") (number_literal "0x11") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar1[0x12] = 0;" (assignment_expression "piVar1[0x12] = 0" (subscript_expression "piVar1[0x12]" (identifier "piVar1") ([ "[") (number_literal "0x12") (] "]")) (= "=") (number_literal "0")) (; ";")) (if_statement "if (*(char *)(*param_1 + 0x51) != '\0') {\n    FUN_00047a00(*param_1,piVar1,piVar1 != local_78);\n    piVar1 = (int *)0x0;\n  }" (if "if") (parenthesized_expression "(*(char *)(*param_1 + 0x51) != '\0')" (( "(") (binary_expression "*(char *)(*param_1 + 0x51) != '\0'" (pointer_expression "*(char *)(*param_1 + 0x51)" (* "*") (cast_expression "(char *)(*param_1 + 0x51)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0x51)" (( "(") (binary_expression "*param_1 + 0x51" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x51")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    FUN_00047a00(*param_1,piVar1,piVar1 != local_78);\n    piVar1 = (int *)0x0;\n  }" ({ "{") (expression_statement "FUN_00047a00(*param_1,piVar1,piVar1 != local_78);" (call_expression "FUN_00047a00(*param_1,piVar1,piVar1 != local_78)" (identifier "FUN_00047a00") (argument_list "(*param_1,piVar1,piVar1 != local_78)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (identifier "piVar1") (, ",") (binary_expression "piVar1 != local_78" (identifier "piVar1") (!= "!=") (identifier "local_78")) () ")"))) (; ";")) (expression_statement "piVar1 = (int *)0x0;" (assignment_expression "piVar1 = (int *)0x0" (identifier "piVar1") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}"))) (if_statement "if (local_2c != *(int *)puVar5) {\n    iVar2 = local_2c;\n    puVar5 = PTR___stack_chk_fail_0015ba10;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    if (*(int *)(iVar2 + 0x154) % 5 == 0) {\n      iVar4 = FUN_00057704();\n      if (iVar4 != 0) {\n        (**(code **)(puVar5 + 0xfb6c0))(iVar4 + *(int *)(iVar2 + 0x154) * 4,0,0x14);\n        *(int *)(iVar2 + 0x16c) = iVar4;\n        return (int *)0x0;\n      }\n      piVar1 = (int *)&DAT_00000007;\n    }\n    else {\n      piVar1 = (int *)0x0;\n    }\n    return piVar1;\n  }" (if "if") (parenthesized_expression "(local_2c != *(int *)puVar5)" (( "(") (binary_expression "local_2c != *(int *)puVar5" (identifier "local_2c") (!= "!=") (pointer_expression "*(int *)puVar5" (* "*") (cast_expression "(int *)puVar5" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (identifier "puVar5")))) () ")")) (compound_statement "{\n    iVar2 = local_2c;\n    puVar5 = PTR___stack_chk_fail_0015ba10;\n    (*(code *)PTR___stack_chk_fail_0015ba10)();\n    if (*(int *)(iVar2 + 0x154) % 5 == 0) {\n      iVar4 = FUN_00057704();\n      if (iVar4 != 0) {\n        (**(code **)(puVar5 + 0xfb6c0))(iVar4 + *(int *)(iVar2 + 0x154) * 4,0,0x14);\n        *(int *)(iVar2 + 0x16c) = iVar4;\n        return (int *)0x0;\n      }\n      piVar1 = (int *)&DAT_00000007;\n    }\n    else {\n      piVar1 = (int *)0x0;\n    }\n    return piVar1;\n  }" ({ "{") (expression_statement "iVar2 = local_2c;" (assignment_expression "iVar2 = local_2c" (identifier "iVar2") (= "=") (identifier "local_2c")) (; ";")) (expression_statement "puVar5 = PTR___stack_chk_fail_0015ba10;" (assignment_expression "puVar5 = PTR___stack_chk_fail_0015ba10" (identifier "puVar5") (= "=") (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 "()" (( "(") () ")"))) (; ";")) (if_statement "if (*(int *)(iVar2 + 0x154) % 5 == 0) {\n      iVar4 = FUN_00057704();\n      if (iVar4 != 0) {\n        (**(code **)(puVar5 + 0xfb6c0))(iVar4 + *(int *)(iVar2 + 0x154) * 4,0,0x14);\n        *(int *)(iVar2 + 0x16c) = iVar4;\n        return (int *)0x0;\n      }\n      piVar1 = (int *)&DAT_00000007;\n    }\n    else {\n      piVar1 = (int *)0x0;\n    }" (if "if") (parenthesized_expression "(*(int *)(iVar2 + 0x154) % 5 == 0)" (( "(") (binary_expression "*(int *)(iVar2 + 0x154) % 5 == 0" (binary_expression "*(int *)(iVar2 + 0x154) % 5" (pointer_expression "*(int *)(iVar2 + 0x154)" (* "*") (cast_expression "(int *)(iVar2 + 0x154)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x154)" (( "(") (binary_expression "iVar2 + 0x154" (identifier "iVar2") (+ "+") (number_literal "0x154")) () ")")))) (% "%") (number_literal "5")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n      iVar4 = FUN_00057704();\n      if (iVar4 != 0) {\n        (**(code **)(puVar5 + 0xfb6c0))(iVar4 + *(int *)(iVar2 + 0x154) * 4,0,0x14);\n        *(int *)(iVar2 + 0x16c) = iVar4;\n        return (int *)0x0;\n      }\n      piVar1 = (int *)&DAT_00000007;\n    }" ({ "{") (expression_statement "iVar4 = FUN_00057704();" (assignment_expression "iVar4 = FUN_00057704()" (identifier "iVar4") (= "=") (call_expression "FUN_00057704()" (identifier "FUN_00057704") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar4 != 0) {\n        (**(code **)(puVar5 + 0xfb6c0))(iVar4 + *(int *)(iVar2 + 0x154) * 4,0,0x14);\n        *(int *)(iVar2 + 0x16c) = iVar4;\n        return (int *)0x0;\n      }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        (**(code **)(puVar5 + 0xfb6c0))(iVar4 + *(int *)(iVar2 + 0x154) * 4,0,0x14);\n        *(int *)(iVar2 + 0x16c) = iVar4;\n        return (int *)0x0;\n      }" ({ "{") (expression_statement "(**(code **)(puVar5 + 0xfb6c0))(iVar4 + *(int *)(iVar2 + 0x154) * 4,0,0x14);" (call_expression "(**(code **)(puVar5 + 0xfb6c0))(iVar4 + *(int *)(iVar2 + 0x154) * 4,0,0x14)" (parenthesized_expression "(**(code **)(puVar5 + 0xfb6c0))" (( "(") (pointer_expression "**(code **)(puVar5 + 0xfb6c0)" (* "*") (pointer_expression "*(code **)(puVar5 + 0xfb6c0)" (* "*") (cast_expression "(code **)(puVar5 + 0xfb6c0)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(puVar5 + 0xfb6c0)" (( "(") (binary_expression "puVar5 + 0xfb6c0" (identifier "puVar5") (+ "+") (number_literal "0xfb6c0")) () ")"))))) () ")")) (argument_list "(iVar4 + *(int *)(iVar2 + 0x154) * 4,0,0x14)" (( "(") (binary_expression "iVar4 + *(int *)(iVar2 + 0x154) * 4" (identifier "iVar4") (+ "+") (binary_expression "*(int *)(iVar2 + 0x154) * 4" (pointer_expression "*(int *)(iVar2 + 0x154)" (* "*") (cast_expression "(int *)(iVar2 + 0x154)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x154)" (( "(") (binary_expression "iVar2 + 0x154" (identifier "iVar2") (+ "+") (number_literal "0x154")) () ")")))) (* "*") (number_literal "4"))) (, ",") (number_literal "0") (, ",") (number_literal "0x14") () ")"))) (; ";")) (expression_statement "*(int *)(iVar2 + 0x16c) = iVar4;" (assignment_expression "*(int *)(iVar2 + 0x16c) = iVar4" (pointer_expression "*(int *)(iVar2 + 0x16c)" (* "*") (cast_expression "(int *)(iVar2 + 0x16c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x16c)" (( "(") (binary_expression "iVar2 + 0x16c" (identifier "iVar2") (+ "+") (number_literal "0x16c")) () ")")))) (= "=") (identifier "iVar4")) (; ";")) (return_statement "return (int *)0x0;" (return "return") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (expression_statement "piVar1 = (int *)&DAT_00000007;" (assignment_expression "piVar1 = (int *)&DAT_00000007" (identifier "piVar1") (= "=") (cast_expression "(int *)&DAT_00000007" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (pointer_expression "&DAT_00000007" (& "&") (identifier "DAT_00000007")))) (; ";")) (} "}")) (else_clause "else {\n      piVar1 = (int *)0x0;\n    }" (else "else") (compound_statement "{\n      piVar1 = (int *)0x0;\n    }" ({ "{") (expression_statement "piVar1 = (int *)0x0;" (assignment_expression "piVar1 = (int *)0x0" (identifier "piVar1") (= "=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}")))) (return_statement "return piVar1;" (return "return") (identifier "piVar1") (; ";")) (} "}"))) (return_statement "return piVar1;" (return "return") (identifier "piVar1") (; ";")) (} "}")))

type_1 * function_1(type_2 *pParse,type_3 *var_3,type_4 *var_5,type_5 *pWhere,
                         type_3 *pGroupBy,type_5 *pHaving,type_3 *pOrderBy,type_6 selFlags,
                         type_5 *pLimit)

{
  type_7 *puVar1;
  type_1 *var_2;
  type_6 uVar3;
  type_5 *pExpr;
  int var_7;
  type_8 x;
  type_1 standin;
  
  puVar1 = PTR___stack_chk_guard_0015ba2c;
  var_7 = *(int *)PTR___stack_chk_guard_0015ba2c;
  if ((pParse->db->mallocFailed != '\0') ||
     (var_2 = (type_1 *)(*(type_9 *)(var_1 + -0x2b10))(pParse->db,var_7,0,0x4c),
     var_2 == (type_1 *)0x0)) {
    var_2 = &standin;
  }
  if (var_3 == (type_3 *)0x0) {
    x.z = (char *)0x0;
    x.n = 0;
    pExpr = (type_5 *)(*(type_9 *)(var_1 + -0x1cc0))(pParse->db,0xa8,&x,0);
    var_3 = var_4((type_2 *)pParse->db,(type_3 *)0x0,pExpr);
  }
  var_2->var_3 = var_3;
  var_2->iLimit = 0;
  var_2->selFlags = selFlags;
  var_2->iOffset = 0;
  var_2->op = '\x7f';
  uVar3 = pParse->nSelect + 1;
  pParse->nSelect = uVar3;
  var_2->selId = uVar3;
  var_2->addrOpenEphm[0] = -1;
  var_2->addrOpenEphm[1] = -1;
  var_2->nSelectRow = 0;
  if (var_5 == (type_4 *)0x0) {
    var_5 = (type_4 *)(*(type_9 *)(var_1 + -0x2a40))(pParse->db);
  }
  var_2->var_5 = var_5;
  var_2->pWhere = pWhere;
  var_2->pGroupBy = pGroupBy;
  var_2->pHaving = pHaving;
  var_2->pOrderBy = pOrderBy;
  var_2->pPrior = (type_1 *)0x0;
  var_2->pNext = (type_1 *)0x0;
  var_2->pLimit = pLimit;
  var_2->pWith = (type_10 *)0x0;
  var_2->pWin = (type_11 *)0x0;
  var_2->pWinDefn = (type_11 *)0x0;
  if (pParse->db->mallocFailed != '\0') {
    var_6(pParse->db,var_2,(uint)(var_2 != &standin));
    var_2 = (type_1 *)0x0;
  }
  if (var_7 != *(int *)puVar1) {
    var_2 = (type_1 *)(*(type_9 *)PTR___stack_chk_fail_0015ba10)();
    return var_2;
  }
  return var_2;
}


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

int * MASKED(int *param_1,int param_2,int param_3,int param_4,int param_5,int param_6,
                  int param_7,int param_8,int param_9)

{
  int *piVar1;
  int iVar2;
  undefined4 uVar3;
  int iVar4;
  undefined *puVar5;
  undefined4 local_80;
  undefined4 local_7c;
  int local_78 [19];
  int local_2c;
  
  puVar5 = PTR___stack_chk_guard_0015ba2c;
  local_2c = *(int *)PTR___stack_chk_guard_0015ba2c;
  if ((*(char *)(*param_1 + 0x51) != '\0') ||
     (piVar1 = (int *)(*(code *)(PTR_LAB_0015b6d8 + -0x2b10))(*param_1,local_2c,0,0x4c),
     piVar1 == (int *)0x0)) {
    piVar1 = local_78;
  }
  if (param_2 == 0) {
    local_80 = 0;
    local_7c = 0;
    uVar3 = (*(code *)(PTR_LAB_0015b6d8 + -0x1cc0))(*param_1,0xa8,&local_80,0);
    param_2 = FUN_0005fad4(*param_1,0,uVar3);
  }
  *piVar1 = param_2;
  piVar1[3] = 0;
  piVar1[2] = param_8;
  piVar1[4] = 0;
  *(undefined1 *)(piVar1 + 1) = 0x7f;
  iVar2 = param_1[0x19];
  param_1[0x19] = iVar2 + 1;
  piVar1[5] = iVar2 + 1;
  piVar1[6] = -1;
  piVar1[7] = -1;
  *(undefined2 *)((int)piVar1 + 6) = 0;
  if (param_3 == 0) {
    param_3 = (*(code *)(PTR_LAB_0015b6d8 + -0x2a40))(*param_1);
  }
  piVar1[8] = param_3;
  piVar1[9] = param_4;
  piVar1[10] = param_5;
  piVar1[0xb] = param_6;
  piVar1[0xc] = param_7;
  piVar1[0xd] = 0;
  piVar1[0xe] = 0;
  piVar1[0xf] = param_9;
  piVar1[0x10] = 0;
  piVar1[0x11] = 0;
  piVar1[0x12] = 0;
  if (*(char *)(*param_1 + 0x51) != '\0') {
    FUN_00047a00(*param_1,piVar1,piVar1 != local_78);
    piVar1 = (int *)0x0;
  }
  if (local_2c != *(int *)puVar5) {
    iVar2 = local_2c;
    puVar5 = PTR___stack_chk_fail_0015ba10;
    (*(code *)PTR___stack_chk_fail_0015ba10)();
    if (*(int *)(iVar2 + 0x154) % 5 == 0) {
      iVar4 = FUN_00057704();
      if (iVar4 != 0) {
        (**(code **)(puVar5 + 0xfb6c0))(iVar4 + *(int *)(iVar2 + 0x154) * 4,0,0x14);
        *(int *)(iVar2 + 0x16c) = iVar4;
        return (int *)0x0;
      }
      piVar1 = (int *)&DAT_00000007;
    }
    else {
      piVar1 = (int *)0x0;
    }
    return piVar1;
  }
  return piVar1;
}

