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

{
  long lVar1;
  u32 uVar2;
  Select *p;
  Expr *pExpr;
  long in_FS_OFFSET;
  Select standin;
  
  lVar1 = *(long *)(in_FS_OFFSET + 0x28);
  p = (Select *)sqlite3DbMallocRawNN(pParse->db,0x80);
  if (p == (Select *)0x0) {
    p = &standin;
  }
  if (pEList == (ExprList *)0x0) {
    pExpr = sqlite3Expr(pParse->db,0xa8,(char *)0x0);
    pEList = sqlite3ExprListAppend(pParse,(ExprList *)0x0,pExpr);
  }
  p->pEList = pEList;
  p->op = '\x7f';
  p->selFlags = selFlags;
  p->iLimit = 0;
  p->iOffset = 0;
  uVar2 = pParse->nSelect + 1;
  pParse->nSelect = uVar2;
  p->selId = uVar2;
  p->addrOpenEphm[0] = -1;
  p->addrOpenEphm[1] = -1;
  p->nSelectRow = 0;
  if (pSrc == (SrcList *)0x0) {
    pSrc = (SrcList *)sqlite3DbMallocZero(pParse->db,0x78);
  }
  p->pSrc = pSrc;
  p->pWhere = pWhere;
  p->pGroupBy = pGroupBy;
  p->pHaving = pHaving;
  p->pOrderBy = pOrderBy;
  p->pPrior = (Select *)0x0;
  p->pNext = (Select *)0x0;
  p->pLimit = pLimit;
  p->pWith = (With *)0x0;
  p->pWin = (Window *)0x0;
  p->pWinDefn = (Window *)0x0;
  if (pParse->db->mallocFailed != '\0') {
    clearSelect(pParse->db,p,(uint)(p != &standin));
    p = (Select *)0x0;
  }
  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {
    return p;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}



long * FUN_001545c7(long *param_1,long param_2,long param_3,long param_4,long param_5,long param_6,
                   long param_7,undefined4 param_8,long param_9)

{
  int iVar1;
  long *plVar2;
  undefined8 uVar3;
  long in_FS_OFFSET;
  long local_c8 [17];
  long local_40;
  
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  plVar2 = (long *)FUN_0012aae5(*param_1,0x80);
  if (plVar2 == (long *)0x0) {
    plVar2 = local_c8;
  }
  if (param_2 == 0) {
    uVar3 = FUN_0013a1b2(*param_1,0xa8,0);
    param_2 = FUN_00154287(param_1,0,uVar3);
  }
  *plVar2 = param_2;
  *(undefined1 *)(plVar2 + 1) = 0x7f;
  *(undefined4 *)((long)plVar2 + 0xc) = param_8;
  *(undefined4 *)(plVar2 + 2) = 0;
  *(undefined4 *)((long)plVar2 + 0x14) = 0;
  iVar1 = *(int *)((long)param_1 + 0x84) + 1;
  *(int *)((long)param_1 + 0x84) = iVar1;
  *(int *)(plVar2 + 3) = iVar1;
  *(undefined4 *)((long)plVar2 + 0x1c) = 0xffffffff;
  *(undefined4 *)(plVar2 + 4) = 0xffffffff;
  *(undefined2 *)((long)plVar2 + 10) = 0;
  if (param_3 == 0) {
    param_3 = FUN_0013730e(*param_1,0x78);
  }
  plVar2[5] = param_3;
  plVar2[6] = param_4;
  plVar2[7] = param_5;
  plVar2[8] = param_6;
  plVar2[9] = param_7;
  plVar2[10] = 0;
  plVar2[0xb] = 0;
  plVar2[0xc] = param_9;
  plVar2[0xd] = 0;
  plVar2[0xe] = 0;
  plVar2[0xf] = 0;
  if (*(char *)(*param_1 + 0x61) != '\0') {
    FUN_0014481c(*param_1,plVar2,plVar2 != local_c8);
    plVar2 = (long *)0x0;
  }
  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {
    return plVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0xb8
MOV RBP,RDI
MOV R13,RSI
MOV R12,RDX
MOV qword ptr [RSP + 0x8],RCX
MOV qword ptr [RSP + 0x10],R8
MOV qword ptr [RSP + 0x18],R9
MOV R15,qword ptr [RSP + 0xf0]
MOV R14,qword ptr [RSP + 0x100]
MOV RAX,qword ptr FS:[0x28]
MOV qword ptr [RSP + 0xa8],RAX
XOR EAX,EAX
MOV ESI,0x80
MOV RDI,qword ptr [RDI]
CALL 0x0012aae5
MOV RBX,RAX
LEA RAX,[RSP + 0x20]
TEST RBX,RBX
CMOVZ RBX,RAX
TEST R13,R13
JZ 0x00154707
MOV qword ptr [RBX],R13
MOV byte ptr [RBX + 0x8],0x7f
MOV EAX,dword ptr [RSP + 0xf8]
MOV dword ptr [RBX + 0xc],EAX
MOV dword ptr [RBX + 0x10],0x0
MOV dword ptr [RBX + 0x14],0x0
MOV EAX,dword ptr [RBP + 0x84]
ADD EAX,0x1
MOV dword ptr [RBP + 0x84],EAX
MOV dword ptr [RBX + 0x18],EAX
MOV dword ptr [RBX + 0x1c],0xffffffff
MOV dword ptr [RBX + 0x20],0xffffffff
MOV word ptr [RBX + 0xa],0x0
TEST R12,R12
JZ 0x00154732
MOV qword ptr [RBX + 0x28],R12
MOV RAX,qword ptr [RSP + 0x8]
MOV qword ptr [RBX + 0x30],RAX
MOV RAX,qword ptr [RSP + 0x10]
MOV qword ptr [RBX + 0x38],RAX
MOV RAX,qword ptr [RSP + 0x18]
MOV qword ptr [RBX + 0x40],RAX
MOV qword ptr [RBX + 0x48],R15
MOV qword ptr [RBX + 0x50],0x0
MOV qword ptr [RBX + 0x58],0x0
MOV qword ptr [RBX + 0x60],R14
MOV qword ptr [RBX + 0x68],0x0
MOV qword ptr [RBX + 0x70],0x0
MOV qword ptr [RBX + 0x78],0x0
MOV RDI,qword ptr [RBP]
CMP byte ptr [RDI + 0x61],0x0
JNZ 0x00154748
MOV RAX,RBX
MOV RCX,qword ptr [RSP + 0xa8]
XOR RCX,qword ptr FS:[0x28]
JNZ 0x00154768
ADD RSP,0xb8
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
MOV EDX,0x0
MOV ESI,0xa8
MOV RDI,qword ptr [RBP]
CALL 0x0013a1b2
MOV RDX,RAX
MOV ESI,0x0
MOV RDI,RBP
CALL 0x00154287
MOV R13,RAX
JMP 0x00154638
MOV ESI,0x78
MOV RDI,qword ptr [RBP]
CALL 0x0013730e
MOV R12,RAX
JMP 0x00154686
LEA RAX,[RSP + 0x20]
CMP RBX,RAX
SETNZ DL
MOVZX EDX,DL
MOV RSI,RBX
CALL 0x0014481c
MOV EBX,0x0
JMP 0x001546df
CALL 0x0010e4d0
(translation_unit "long * FUN_001545c7(long *param_1,long param_2,long param_3,long param_4,long param_5,long param_6,\n                   long param_7,undefined4 param_8,long param_9)\n\n{\n  int iVar1;\n  long *plVar2;\n  undefined8 uVar3;\n  long in_FS_OFFSET;\n  long local_c8 [17];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  plVar2 = (long *)FUN_0012aae5(*param_1,0x80);\n  if (plVar2 == (long *)0x0) {\n    plVar2 = local_c8;\n  }\n  if (param_2 == 0) {\n    uVar3 = FUN_0013a1b2(*param_1,0xa8,0);\n    param_2 = FUN_00154287(param_1,0,uVar3);\n  }\n  *plVar2 = param_2;\n  *(undefined1 *)(plVar2 + 1) = 0x7f;\n  *(undefined4 *)((long)plVar2 + 0xc) = param_8;\n  *(undefined4 *)(plVar2 + 2) = 0;\n  *(undefined4 *)((long)plVar2 + 0x14) = 0;\n  iVar1 = *(int *)((long)param_1 + 0x84) + 1;\n  *(int *)((long)param_1 + 0x84) = iVar1;\n  *(int *)(plVar2 + 3) = iVar1;\n  *(undefined4 *)((long)plVar2 + 0x1c) = 0xffffffff;\n  *(undefined4 *)(plVar2 + 4) = 0xffffffff;\n  *(undefined2 *)((long)plVar2 + 10) = 0;\n  if (param_3 == 0) {\n    param_3 = FUN_0013730e(*param_1,0x78);\n  }\n  plVar2[5] = param_3;\n  plVar2[6] = param_4;\n  plVar2[7] = param_5;\n  plVar2[8] = param_6;\n  plVar2[9] = param_7;\n  plVar2[10] = 0;\n  plVar2[0xb] = 0;\n  plVar2[0xc] = param_9;\n  plVar2[0xd] = 0;\n  plVar2[0xe] = 0;\n  plVar2[0xf] = 0;\n  if (*(char *)(*param_1 + 0x61) != '\0') {\n    FUN_0014481c(*param_1,plVar2,plVar2 != local_c8);\n    plVar2 = (long *)0x0;\n  }\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return plVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}\n\n" (function_definition "long * FUN_001545c7(long *param_1,long param_2,long param_3,long param_4,long param_5,long param_6,\n                   long param_7,undefined4 param_8,long param_9)\n\n{\n  int iVar1;\n  long *plVar2;\n  undefined8 uVar3;\n  long in_FS_OFFSET;\n  long local_c8 [17];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  plVar2 = (long *)FUN_0012aae5(*param_1,0x80);\n  if (plVar2 == (long *)0x0) {\n    plVar2 = local_c8;\n  }\n  if (param_2 == 0) {\n    uVar3 = FUN_0013a1b2(*param_1,0xa8,0);\n    param_2 = FUN_00154287(param_1,0,uVar3);\n  }\n  *plVar2 = param_2;\n  *(undefined1 *)(plVar2 + 1) = 0x7f;\n  *(undefined4 *)((long)plVar2 + 0xc) = param_8;\n  *(undefined4 *)(plVar2 + 2) = 0;\n  *(undefined4 *)((long)plVar2 + 0x14) = 0;\n  iVar1 = *(int *)((long)param_1 + 0x84) + 1;\n  *(int *)((long)param_1 + 0x84) = iVar1;\n  *(int *)(plVar2 + 3) = iVar1;\n  *(undefined4 *)((long)plVar2 + 0x1c) = 0xffffffff;\n  *(undefined4 *)(plVar2 + 4) = 0xffffffff;\n  *(undefined2 *)((long)plVar2 + 10) = 0;\n  if (param_3 == 0) {\n    param_3 = FUN_0013730e(*param_1,0x78);\n  }\n  plVar2[5] = param_3;\n  plVar2[6] = param_4;\n  plVar2[7] = param_5;\n  plVar2[8] = param_6;\n  plVar2[9] = param_7;\n  plVar2[10] = 0;\n  plVar2[0xb] = 0;\n  plVar2[0xc] = param_9;\n  plVar2[0xd] = 0;\n  plVar2[0xe] = 0;\n  plVar2[0xf] = 0;\n  if (*(char *)(*param_1 + 0x61) != '\0') {\n    FUN_0014481c(*param_1,plVar2,plVar2 != local_c8);\n    plVar2 = (long *)0x0;\n  }\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return plVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" (sized_type_specifier "long" long) (pointer_declarator "* FUN_001545c7(long *param_1,long param_2,long param_3,long param_4,long param_5,long param_6,\n                   long param_7,undefined4 param_8,long param_9)" * (function_declarator "FUN_001545c7(long *param_1,long param_2,long param_3,long param_4,long param_5,long param_6,\n                   long param_7,undefined4 param_8,long param_9)" identifier (parameter_list "(long *param_1,long param_2,long param_3,long param_4,long param_5,long param_6,\n                   long param_7,undefined4 param_8,long param_9)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_4" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_5" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_6" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_7" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined4 param_8" type_identifier identifier) , (parameter_declaration "long param_9" (sized_type_specifier "long" long) identifier) )))) (compound_statement "{\n  int iVar1;\n  long *plVar2;\n  undefined8 uVar3;\n  long in_FS_OFFSET;\n  long local_c8 [17];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  plVar2 = (long *)FUN_0012aae5(*param_1,0x80);\n  if (plVar2 == (long *)0x0) {\n    plVar2 = local_c8;\n  }\n  if (param_2 == 0) {\n    uVar3 = FUN_0013a1b2(*param_1,0xa8,0);\n    param_2 = FUN_00154287(param_1,0,uVar3);\n  }\n  *plVar2 = param_2;\n  *(undefined1 *)(plVar2 + 1) = 0x7f;\n  *(undefined4 *)((long)plVar2 + 0xc) = param_8;\n  *(undefined4 *)(plVar2 + 2) = 0;\n  *(undefined4 *)((long)plVar2 + 0x14) = 0;\n  iVar1 = *(int *)((long)param_1 + 0x84) + 1;\n  *(int *)((long)param_1 + 0x84) = iVar1;\n  *(int *)(plVar2 + 3) = iVar1;\n  *(undefined4 *)((long)plVar2 + 0x1c) = 0xffffffff;\n  *(undefined4 *)(plVar2 + 4) = 0xffffffff;\n  *(undefined2 *)((long)plVar2 + 10) = 0;\n  if (param_3 == 0) {\n    param_3 = FUN_0013730e(*param_1,0x78);\n  }\n  plVar2[5] = param_3;\n  plVar2[6] = param_4;\n  plVar2[7] = param_5;\n  plVar2[8] = param_6;\n  plVar2[9] = param_7;\n  plVar2[10] = 0;\n  plVar2[0xb] = 0;\n  plVar2[0xc] = param_9;\n  plVar2[0xd] = 0;\n  plVar2[0xe] = 0;\n  plVar2[0xf] = 0;\n  if (*(char *)(*param_1 + 0x61) != '\0') {\n    FUN_0014481c(*param_1,plVar2,plVar2 != local_c8);\n    plVar2 = (long *)0x0;\n  }\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return plVar2;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "long local_c8 [17];" (sized_type_specifier "long" long) (array_declarator "local_c8 [17]" identifier [ number_literal ]) ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "plVar2 = (long *)FUN_0012aae5(*param_1,0x80);" (assignment_expression "plVar2 = (long *)FUN_0012aae5(*param_1,0x80)" identifier = (cast_expression "(long *)FUN_0012aae5(*param_1,0x80)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0012aae5(*param_1,0x80)" identifier (argument_list "(*param_1,0x80)" ( (pointer_expression "*param_1" * identifier) , number_literal ))))) ;) (if_statement "if (plVar2 == (long *)0x0) {\n    plVar2 = local_c8;\n  }" if (parenthesized_expression "(plVar2 == (long *)0x0)" ( (binary_expression "plVar2 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    plVar2 = local_c8;\n  }" { (expression_statement "plVar2 = local_c8;" (assignment_expression "plVar2 = local_c8" identifier = identifier) ;) })) (if_statement "if (param_2 == 0) {\n    uVar3 = FUN_0013a1b2(*param_1,0xa8,0);\n    param_2 = FUN_00154287(param_1,0,uVar3);\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar3 = FUN_0013a1b2(*param_1,0xa8,0);\n    param_2 = FUN_00154287(param_1,0,uVar3);\n  }" { (expression_statement "uVar3 = FUN_0013a1b2(*param_1,0xa8,0);" (assignment_expression "uVar3 = FUN_0013a1b2(*param_1,0xa8,0)" identifier = (call_expression "FUN_0013a1b2(*param_1,0xa8,0)" identifier (argument_list "(*param_1,0xa8,0)" ( (pointer_expression "*param_1" * identifier) , number_literal , number_literal )))) ;) (expression_statement "param_2 = FUN_00154287(param_1,0,uVar3);" (assignment_expression "param_2 = FUN_00154287(param_1,0,uVar3)" identifier = (call_expression "FUN_00154287(param_1,0,uVar3)" identifier (argument_list "(param_1,0,uVar3)" ( identifier , number_literal , identifier )))) ;) })) (expression_statement "*plVar2 = param_2;" (assignment_expression "*plVar2 = param_2" (pointer_expression "*plVar2" * identifier) = identifier) ;) (expression_statement "*(undefined1 *)(plVar2 + 1) = 0x7f;" (assignment_expression "*(undefined1 *)(plVar2 + 1) = 0x7f" (pointer_expression "*(undefined1 *)(plVar2 + 1)" * (cast_expression "(undefined1 *)(plVar2 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar2 + 1)" ( (binary_expression "plVar2 + 1" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((long)plVar2 + 0xc) = param_8;" (assignment_expression "*(undefined4 *)((long)plVar2 + 0xc) = param_8" (pointer_expression "*(undefined4 *)((long)plVar2 + 0xc)" * (cast_expression "(undefined4 *)((long)plVar2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar2 + 0xc)" ( (binary_expression "(long)plVar2 + 0xc" (cast_expression "(long)plVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(plVar2 + 2) = 0;" (assignment_expression "*(undefined4 *)(plVar2 + 2) = 0" (pointer_expression "*(undefined4 *)(plVar2 + 2)" * (cast_expression "(undefined4 *)(plVar2 + 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar2 + 2)" ( (binary_expression "plVar2 + 2" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((long)plVar2 + 0x14) = 0;" (assignment_expression "*(undefined4 *)((long)plVar2 + 0x14) = 0" (pointer_expression "*(undefined4 *)((long)plVar2 + 0x14)" * (cast_expression "(undefined4 *)((long)plVar2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar2 + 0x14)" ( (binary_expression "(long)plVar2 + 0x14" (cast_expression "(long)plVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "iVar1 = *(int *)((long)param_1 + 0x84) + 1;" (assignment_expression "iVar1 = *(int *)((long)param_1 + 0x84) + 1" identifier = (binary_expression "*(int *)((long)param_1 + 0x84) + 1" (pointer_expression "*(int *)((long)param_1 + 0x84)" * (cast_expression "(int *)((long)param_1 + 0x84)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x84)" ( (binary_expression "(long)param_1 + 0x84" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)((long)param_1 + 0x84) = iVar1;" (assignment_expression "*(int *)((long)param_1 + 0x84) = iVar1" (pointer_expression "*(int *)((long)param_1 + 0x84)" * (cast_expression "(int *)((long)param_1 + 0x84)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x84)" ( (binary_expression "(long)param_1 + 0x84" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(plVar2 + 3) = iVar1;" (assignment_expression "*(int *)(plVar2 + 3) = iVar1" (pointer_expression "*(int *)(plVar2 + 3)" * (cast_expression "(int *)(plVar2 + 3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar2 + 3)" ( (binary_expression "plVar2 + 3" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((long)plVar2 + 0x1c) = 0xffffffff;" (assignment_expression "*(undefined4 *)((long)plVar2 + 0x1c) = 0xffffffff" (pointer_expression "*(undefined4 *)((long)plVar2 + 0x1c)" * (cast_expression "(undefined4 *)((long)plVar2 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar2 + 0x1c)" ( (binary_expression "(long)plVar2 + 0x1c" (cast_expression "(long)plVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(plVar2 + 4) = 0xffffffff;" (assignment_expression "*(undefined4 *)(plVar2 + 4) = 0xffffffff" (pointer_expression "*(undefined4 *)(plVar2 + 4)" * (cast_expression "(undefined4 *)(plVar2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar2 + 4)" ( (binary_expression "plVar2 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined2 *)((long)plVar2 + 10) = 0;" (assignment_expression "*(undefined2 *)((long)plVar2 + 10) = 0" (pointer_expression "*(undefined2 *)((long)plVar2 + 10)" * (cast_expression "(undefined2 *)((long)plVar2 + 10)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar2 + 10)" ( (binary_expression "(long)plVar2 + 10" (cast_expression "(long)plVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (if_statement "if (param_3 == 0) {\n    param_3 = FUN_0013730e(*param_1,0x78);\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    param_3 = FUN_0013730e(*param_1,0x78);\n  }" { (expression_statement "param_3 = FUN_0013730e(*param_1,0x78);" (assignment_expression "param_3 = FUN_0013730e(*param_1,0x78)" identifier = (call_expression "FUN_0013730e(*param_1,0x78)" identifier (argument_list "(*param_1,0x78)" ( (pointer_expression "*param_1" * identifier) , number_literal )))) ;) })) (expression_statement "plVar2[5] = param_3;" (assignment_expression "plVar2[5] = param_3" (subscript_expression "plVar2[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "plVar2[6] = param_4;" (assignment_expression "plVar2[6] = param_4" (subscript_expression "plVar2[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "plVar2[7] = param_5;" (assignment_expression "plVar2[7] = param_5" (subscript_expression "plVar2[7]" identifier [ number_literal ]) = identifier) ;) (expression_statement "plVar2[8] = param_6;" (assignment_expression "plVar2[8] = param_6" (subscript_expression "plVar2[8]" identifier [ number_literal ]) = identifier) ;) (expression_statement "plVar2[9] = param_7;" (assignment_expression "plVar2[9] = param_7" (subscript_expression "plVar2[9]" identifier [ number_literal ]) = identifier) ;) (expression_statement "plVar2[10] = 0;" (assignment_expression "plVar2[10] = 0" (subscript_expression "plVar2[10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "plVar2[0xb] = 0;" (assignment_expression "plVar2[0xb] = 0" (subscript_expression "plVar2[0xb]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "plVar2[0xc] = param_9;" (assignment_expression "plVar2[0xc] = param_9" (subscript_expression "plVar2[0xc]" identifier [ number_literal ]) = identifier) ;) (expression_statement "plVar2[0xd] = 0;" (assignment_expression "plVar2[0xd] = 0" (subscript_expression "plVar2[0xd]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "plVar2[0xe] = 0;" (assignment_expression "plVar2[0xe] = 0" (subscript_expression "plVar2[0xe]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "plVar2[0xf] = 0;" (assignment_expression "plVar2[0xf] = 0" (subscript_expression "plVar2[0xf]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (*(char *)(*param_1 + 0x61) != '\0') {\n    FUN_0014481c(*param_1,plVar2,plVar2 != local_c8);\n    plVar2 = (long *)0x0;\n  }" if (parenthesized_expression "(*(char *)(*param_1 + 0x61) != '\0')" ( (binary_expression "*(char *)(*param_1 + 0x61) != '\0'" (pointer_expression "*(char *)(*param_1 + 0x61)" * (cast_expression "(char *)(*param_1 + 0x61)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x61)" ( (binary_expression "*param_1 + 0x61" (pointer_expression "*param_1" * identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_0014481c(*param_1,plVar2,plVar2 != local_c8);\n    plVar2 = (long *)0x0;\n  }" { (expression_statement "FUN_0014481c(*param_1,plVar2,plVar2 != local_c8);" (call_expression "FUN_0014481c(*param_1,plVar2,plVar2 != local_c8)" identifier (argument_list "(*param_1,plVar2,plVar2 != local_c8)" ( (pointer_expression "*param_1" * identifier) , identifier , (binary_expression "plVar2 != local_c8" identifier != identifier) ))) ;) (expression_statement "plVar2 = (long *)0x0;" (assignment_expression "plVar2 = (long *)0x0" identifier = (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return plVar2;\n  }" if (parenthesized_expression "(local_40 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return plVar2;\n  }" { (return_statement "return plVar2;" return identifier ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(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  long lVar1;\n  u32 uVar2;\n  Select *p;\n  Expr *pExpr;\n  long in_FS_OFFSET;\n  Select standin;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  p = (Select *)sqlite3DbMallocRawNN(pParse->db,0x80);\n  if (p == (Select *)0x0) {\n    p = &standin;\n  }\n  if (pEList == (ExprList *)0x0) {\n    pExpr = sqlite3Expr(pParse->db,0xa8,(char *)0x0);\n    pEList = sqlite3ExprListAppend(pParse,(ExprList *)0x0,pExpr);\n  }\n  p->pEList = pEList;\n  p->op = '\x7f';\n  p->selFlags = selFlags;\n  p->iLimit = 0;\n  p->iOffset = 0;\n  uVar2 = pParse->nSelect + 1;\n  pParse->nSelect = uVar2;\n  p->selId = uVar2;\n  p->addrOpenEphm[0] = -1;\n  p->addrOpenEphm[1] = -1;\n  p->nSelectRow = 0;\n  if (pSrc == (SrcList *)0x0) {\n    pSrc = (SrcList *)sqlite3DbMallocZero(pParse->db,0x78);\n  }\n  p->pSrc = pSrc;\n  p->pWhere = pWhere;\n  p->pGroupBy = pGroupBy;\n  p->pHaving = pHaving;\n  p->pOrderBy = pOrderBy;\n  p->pPrior = (Select *)0x0;\n  p->pNext = (Select *)0x0;\n  p->pLimit = pLimit;\n  p->pWith = (With *)0x0;\n  p->pWin = (Window *)0x0;\n  p->pWinDefn = (Window *)0x0;\n  if (pParse->db->mallocFailed != '\0') {\n    clearSelect(pParse->db,p,(uint)(p != &standin));\n    p = (Select *)0x0;\n  }\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return p;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\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  long lVar1;\n  u32 uVar2;\n  Select *p;\n  Expr *pExpr;\n  long in_FS_OFFSET;\n  Select standin;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  p = (Select *)sqlite3DbMallocRawNN(pParse->db,0x80);\n  if (p == (Select *)0x0) {\n    p = &standin;\n  }\n  if (pEList == (ExprList *)0x0) {\n    pExpr = sqlite3Expr(pParse->db,0xa8,(char *)0x0);\n    pEList = sqlite3ExprListAppend(pParse,(ExprList *)0x0,pExpr);\n  }\n  p->pEList = pEList;\n  p->op = '\x7f';\n  p->selFlags = selFlags;\n  p->iLimit = 0;\n  p->iOffset = 0;\n  uVar2 = pParse->nSelect + 1;\n  pParse->nSelect = uVar2;\n  p->selId = uVar2;\n  p->addrOpenEphm[0] = -1;\n  p->addrOpenEphm[1] = -1;\n  p->nSelectRow = 0;\n  if (pSrc == (SrcList *)0x0) {\n    pSrc = (SrcList *)sqlite3DbMallocZero(pParse->db,0x78);\n  }\n  p->pSrc = pSrc;\n  p->pWhere = pWhere;\n  p->pGroupBy = pGroupBy;\n  p->pHaving = pHaving;\n  p->pOrderBy = pOrderBy;\n  p->pPrior = (Select *)0x0;\n  p->pNext = (Select *)0x0;\n  p->pLimit = pLimit;\n  p->pWith = (With *)0x0;\n  p->pWin = (Window *)0x0;\n  p->pWinDefn = (Window *)0x0;\n  if (pParse->db->mallocFailed != '\0') {\n    clearSelect(pParse->db,p,(uint)(p != &standin));\n    p = (Select *)0x0;\n  }\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return p;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\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  long lVar1;\n  u32 uVar2;\n  Select *p;\n  Expr *pExpr;\n  long in_FS_OFFSET;\n  Select standin;\n  \n  lVar1 = *(long *)(in_FS_OFFSET + 0x28);\n  p = (Select *)sqlite3DbMallocRawNN(pParse->db,0x80);\n  if (p == (Select *)0x0) {\n    p = &standin;\n  }\n  if (pEList == (ExprList *)0x0) {\n    pExpr = sqlite3Expr(pParse->db,0xa8,(char *)0x0);\n    pEList = sqlite3ExprListAppend(pParse,(ExprList *)0x0,pExpr);\n  }\n  p->pEList = pEList;\n  p->op = '\x7f';\n  p->selFlags = selFlags;\n  p->iLimit = 0;\n  p->iOffset = 0;\n  uVar2 = pParse->nSelect + 1;\n  pParse->nSelect = uVar2;\n  p->selId = uVar2;\n  p->addrOpenEphm[0] = -1;\n  p->addrOpenEphm[1] = -1;\n  p->nSelectRow = 0;\n  if (pSrc == (SrcList *)0x0) {\n    pSrc = (SrcList *)sqlite3DbMallocZero(pParse->db,0x78);\n  }\n  p->pSrc = pSrc;\n  p->pWhere = pWhere;\n  p->pGroupBy = pGroupBy;\n  p->pHaving = pHaving;\n  p->pOrderBy = pOrderBy;\n  p->pPrior = (Select *)0x0;\n  p->pNext = (Select *)0x0;\n  p->pLimit = pLimit;\n  p->pWith = (With *)0x0;\n  p->pWin = (Window *)0x0;\n  p->pWinDefn = (Window *)0x0;\n  if (pParse->db->mallocFailed != '\0') {\n    clearSelect(pParse->db,p,(uint)(p != &standin));\n    p = (Select *)0x0;\n  }\n  if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return p;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail();\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "u32 uVar2;" type_identifier identifier ;) (declaration "Select *p;" type_identifier (pointer_declarator "*p" * identifier) ;) (declaration "Expr *pExpr;" type_identifier (pointer_declarator "*pExpr" * identifier) ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "Select standin;" type_identifier identifier ;) (expression_statement "lVar1 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "lVar1 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "p = (Select *)sqlite3DbMallocRawNN(pParse->db,0x80);" (assignment_expression "p = (Select *)sqlite3DbMallocRawNN(pParse->db,0x80)" identifier = (cast_expression "(Select *)sqlite3DbMallocRawNN(pParse->db,0x80)" ( (type_descriptor "Select *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3DbMallocRawNN(pParse->db,0x80)" identifier (argument_list "(pParse->db,0x80)" ( (field_expression "pParse->db" identifier -> field_identifier) , number_literal ))))) ;) (if_statement "if (p == (Select *)0x0) {\n    p = &standin;\n  }" if (parenthesized_expression "(p == (Select *)0x0)" ( (binary_expression "p == (Select *)0x0" identifier == (cast_expression "(Select *)0x0" ( (type_descriptor "Select *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    p = &standin;\n  }" { (expression_statement "p = &standin;" (assignment_expression "p = &standin" identifier = (pointer_expression "&standin" & identifier)) ;) })) (if_statement "if (pEList == (ExprList *)0x0) {\n    pExpr = sqlite3Expr(pParse->db,0xa8,(char *)0x0);\n    pEList = sqlite3ExprListAppend(pParse,(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    pExpr = sqlite3Expr(pParse->db,0xa8,(char *)0x0);\n    pEList = sqlite3ExprListAppend(pParse,(ExprList *)0x0,pExpr);\n  }" { (expression_statement "pExpr = sqlite3Expr(pParse->db,0xa8,(char *)0x0);" (assignment_expression "pExpr = sqlite3Expr(pParse->db,0xa8,(char *)0x0)" identifier = (call_expression "sqlite3Expr(pParse->db,0xa8,(char *)0x0)" identifier (argument_list "(pParse->db,0xa8,(char *)0x0)" ( (field_expression "pParse->db" identifier -> field_identifier) , number_literal , (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (expression_statement "pEList = sqlite3ExprListAppend(pParse,(ExprList *)0x0,pExpr);" (assignment_expression "pEList = sqlite3ExprListAppend(pParse,(ExprList *)0x0,pExpr)" identifier = (call_expression "sqlite3ExprListAppend(pParse,(ExprList *)0x0,pExpr)" identifier (argument_list "(pParse,(ExprList *)0x0,pExpr)" ( identifier , (cast_expression "(ExprList *)0x0" ( (type_descriptor "ExprList *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) , identifier )))) ;) })) (expression_statement "p->pEList = pEList;" (assignment_expression "p->pEList = pEList" (field_expression "p->pEList" identifier -> field_identifier) = identifier) ;) (expression_statement "p->op = '\x7f';" (assignment_expression "p->op = '\x7f'" (field_expression "p->op" identifier -> field_identifier) = (char_literal "'\x7f'" ' escape_sequence ')) ;) (expression_statement "p->selFlags = selFlags;" (assignment_expression "p->selFlags = selFlags" (field_expression "p->selFlags" identifier -> field_identifier) = identifier) ;) (expression_statement "p->iLimit = 0;" (assignment_expression "p->iLimit = 0" (field_expression "p->iLimit" identifier -> field_identifier) = number_literal) ;) (expression_statement "p->iOffset = 0;" (assignment_expression "p->iOffset = 0" (field_expression "p->iOffset" identifier -> field_identifier) = number_literal) ;) (expression_statement "uVar2 = pParse->nSelect + 1;" (assignment_expression "uVar2 = pParse->nSelect + 1" identifier = (binary_expression "pParse->nSelect + 1" (field_expression "pParse->nSelect" identifier -> field_identifier) + number_literal)) ;) (expression_statement "pParse->nSelect = uVar2;" (assignment_expression "pParse->nSelect = uVar2" (field_expression "pParse->nSelect" identifier -> field_identifier) = identifier) ;) (expression_statement "p->selId = uVar2;" (assignment_expression "p->selId = uVar2" (field_expression "p->selId" identifier -> field_identifier) = identifier) ;) (expression_statement "p->addrOpenEphm[0] = -1;" (assignment_expression "p->addrOpenEphm[0] = -1" (subscript_expression "p->addrOpenEphm[0]" (field_expression "p->addrOpenEphm" identifier -> field_identifier) [ number_literal ]) = number_literal) ;) (expression_statement "p->addrOpenEphm[1] = -1;" (assignment_expression "p->addrOpenEphm[1] = -1" (subscript_expression "p->addrOpenEphm[1]" (field_expression "p->addrOpenEphm" identifier -> field_identifier) [ number_literal ]) = number_literal) ;) (expression_statement "p->nSelectRow = 0;" (assignment_expression "p->nSelectRow = 0" (field_expression "p->nSelectRow" identifier -> field_identifier) = number_literal) ;) (if_statement "if (pSrc == (SrcList *)0x0) {\n    pSrc = (SrcList *)sqlite3DbMallocZero(pParse->db,0x78);\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 *)sqlite3DbMallocZero(pParse->db,0x78);\n  }" { (expression_statement "pSrc = (SrcList *)sqlite3DbMallocZero(pParse->db,0x78);" (assignment_expression "pSrc = (SrcList *)sqlite3DbMallocZero(pParse->db,0x78)" identifier = (cast_expression "(SrcList *)sqlite3DbMallocZero(pParse->db,0x78)" ( (type_descriptor "SrcList *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3DbMallocZero(pParse->db,0x78)" identifier (argument_list "(pParse->db,0x78)" ( (field_expression "pParse->db" identifier -> field_identifier) , number_literal ))))) ;) })) (expression_statement "p->pSrc = pSrc;" (assignment_expression "p->pSrc = pSrc" (field_expression "p->pSrc" identifier -> field_identifier) = identifier) ;) (expression_statement "p->pWhere = pWhere;" (assignment_expression "p->pWhere = pWhere" (field_expression "p->pWhere" identifier -> field_identifier) = identifier) ;) (expression_statement "p->pGroupBy = pGroupBy;" (assignment_expression "p->pGroupBy = pGroupBy" (field_expression "p->pGroupBy" identifier -> field_identifier) = identifier) ;) (expression_statement "p->pHaving = pHaving;" (assignment_expression "p->pHaving = pHaving" (field_expression "p->pHaving" identifier -> field_identifier) = identifier) ;) (expression_statement "p->pOrderBy = pOrderBy;" (assignment_expression "p->pOrderBy = pOrderBy" (field_expression "p->pOrderBy" identifier -> field_identifier) = identifier) ;) (expression_statement "p->pPrior = (Select *)0x0;" (assignment_expression "p->pPrior = (Select *)0x0" (field_expression "p->pPrior" identifier -> field_identifier) = (cast_expression "(Select *)0x0" ( (type_descriptor "Select *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "p->pNext = (Select *)0x0;" (assignment_expression "p->pNext = (Select *)0x0" (field_expression "p->pNext" identifier -> field_identifier) = (cast_expression "(Select *)0x0" ( (type_descriptor "Select *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "p->pLimit = pLimit;" (assignment_expression "p->pLimit = pLimit" (field_expression "p->pLimit" identifier -> field_identifier) = identifier) ;) (expression_statement "p->pWith = (With *)0x0;" (assignment_expression "p->pWith = (With *)0x0" (field_expression "p->pWith" identifier -> field_identifier) = (cast_expression "(With *)0x0" ( (type_descriptor "With *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "p->pWin = (Window *)0x0;" (assignment_expression "p->pWin = (Window *)0x0" (field_expression "p->pWin" identifier -> field_identifier) = (cast_expression "(Window *)0x0" ( (type_descriptor "Window *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "p->pWinDefn = (Window *)0x0;" (assignment_expression "p->pWinDefn = (Window *)0x0" (field_expression "p->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,p,(uint)(p != &standin));\n    p = (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,p,(uint)(p != &standin));\n    p = (Select *)0x0;\n  }" { (expression_statement "clearSelect(pParse->db,p,(uint)(p != &standin));" (call_expression "clearSelect(pParse->db,p,(uint)(p != &standin))" identifier (argument_list "(pParse->db,p,(uint)(p != &standin))" ( (field_expression "pParse->db" identifier -> field_identifier) , identifier , (call_expression "(uint)(p != &standin)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(p != &standin)" ( (binary_expression "p != &standin" identifier != (pointer_expression "&standin" & identifier)) ))) ))) ;) (expression_statement "p = (Select *)0x0;" (assignment_expression "p = (Select *)0x0" identifier = (cast_expression "(Select *)0x0" ( (type_descriptor "Select *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (if_statement "if (lVar1 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return p;\n  }" if (parenthesized_expression "(lVar1 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "lVar1 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return p;\n  }" { (return_statement "return p;" return identifier ;) })) comment (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "long * FUN_001545c7(long *param_1,long param_2,long param_3,long param_4,long param_5,long param_6,\n                   long param_7,undefined4 param_8,long param_9)\n\n{\n  int iVar1;\n  long *plVar2;\n  undefined8 uVar3;\n  long in_FS_OFFSET;\n  long local_c8 [17];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  plVar2 = (long *)FUN_0012aae5(*param_1,0x80);\n  if (plVar2 == (long *)0x0) {\n    plVar2 = local_c8;\n  }\n  if (param_2 == 0) {\n    uVar3 = FUN_0013a1b2(*param_1,0xa8,0);\n    param_2 = FUN_00154287(param_1,0,uVar3);\n  }\n  *plVar2 = param_2;\n  *(undefined1 *)(plVar2 + 1) = 0x7f;\n  *(undefined4 *)((long)plVar2 + 0xc) = param_8;\n  *(undefined4 *)(plVar2 + 2) = 0;\n  *(undefined4 *)((long)plVar2 + 0x14) = 0;\n  iVar1 = *(int *)((long)param_1 + 0x84) + 1;\n  *(int *)((long)param_1 + 0x84) = iVar1;\n  *(int *)(plVar2 + 3) = iVar1;\n  *(undefined4 *)((long)plVar2 + 0x1c) = 0xffffffff;\n  *(undefined4 *)(plVar2 + 4) = 0xffffffff;\n  *(undefined2 *)((long)plVar2 + 10) = 0;\n  if (param_3 == 0) {\n    param_3 = FUN_0013730e(*param_1,0x78);\n  }\n  plVar2[5] = param_3;\n  plVar2[6] = param_4;\n  plVar2[7] = param_5;\n  plVar2[8] = param_6;\n  plVar2[9] = param_7;\n  plVar2[10] = 0;\n  plVar2[0xb] = 0;\n  plVar2[0xc] = param_9;\n  plVar2[0xd] = 0;\n  plVar2[0xe] = 0;\n  plVar2[0xf] = 0;\n  if (*(char *)(*param_1 + 0x61) != '\0') {\n    FUN_0014481c(*param_1,plVar2,plVar2 != local_c8);\n    plVar2 = (long *)0x0;\n  }\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return plVar2;\n  }\n                    \n  __stack_chk_fail();\n}\n\n" (function_definition "long * FUN_001545c7(long *param_1,long param_2,long param_3,long param_4,long param_5,long param_6,\n                   long param_7,undefined4 param_8,long param_9)\n\n{\n  int iVar1;\n  long *plVar2;\n  undefined8 uVar3;\n  long in_FS_OFFSET;\n  long local_c8 [17];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  plVar2 = (long *)FUN_0012aae5(*param_1,0x80);\n  if (plVar2 == (long *)0x0) {\n    plVar2 = local_c8;\n  }\n  if (param_2 == 0) {\n    uVar3 = FUN_0013a1b2(*param_1,0xa8,0);\n    param_2 = FUN_00154287(param_1,0,uVar3);\n  }\n  *plVar2 = param_2;\n  *(undefined1 *)(plVar2 + 1) = 0x7f;\n  *(undefined4 *)((long)plVar2 + 0xc) = param_8;\n  *(undefined4 *)(plVar2 + 2) = 0;\n  *(undefined4 *)((long)plVar2 + 0x14) = 0;\n  iVar1 = *(int *)((long)param_1 + 0x84) + 1;\n  *(int *)((long)param_1 + 0x84) = iVar1;\n  *(int *)(plVar2 + 3) = iVar1;\n  *(undefined4 *)((long)plVar2 + 0x1c) = 0xffffffff;\n  *(undefined4 *)(plVar2 + 4) = 0xffffffff;\n  *(undefined2 *)((long)plVar2 + 10) = 0;\n  if (param_3 == 0) {\n    param_3 = FUN_0013730e(*param_1,0x78);\n  }\n  plVar2[5] = param_3;\n  plVar2[6] = param_4;\n  plVar2[7] = param_5;\n  plVar2[8] = param_6;\n  plVar2[9] = param_7;\n  plVar2[10] = 0;\n  plVar2[0xb] = 0;\n  plVar2[0xc] = param_9;\n  plVar2[0xd] = 0;\n  plVar2[0xe] = 0;\n  plVar2[0xf] = 0;\n  if (*(char *)(*param_1 + 0x61) != '\0') {\n    FUN_0014481c(*param_1,plVar2,plVar2 != local_c8);\n    plVar2 = (long *)0x0;\n  }\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return plVar2;\n  }\n                    \n  __stack_chk_fail();\n}" (sized_type_specifier "long" long) (pointer_declarator "* FUN_001545c7(long *param_1,long param_2,long param_3,long param_4,long param_5,long param_6,\n                   long param_7,undefined4 param_8,long param_9)" * (function_declarator "FUN_001545c7(long *param_1,long param_2,long param_3,long param_4,long param_5,long param_6,\n                   long param_7,undefined4 param_8,long param_9)" identifier (parameter_list "(long *param_1,long param_2,long param_3,long param_4,long param_5,long param_6,\n                   long param_7,undefined4 param_8,long param_9)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_3" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_4" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_5" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_6" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_7" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined4 param_8" type_identifier identifier) , (parameter_declaration "long param_9" (sized_type_specifier "long" long) identifier) )))) (compound_statement "{\n  int iVar1;\n  long *plVar2;\n  undefined8 uVar3;\n  long in_FS_OFFSET;\n  long local_c8 [17];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  plVar2 = (long *)FUN_0012aae5(*param_1,0x80);\n  if (plVar2 == (long *)0x0) {\n    plVar2 = local_c8;\n  }\n  if (param_2 == 0) {\n    uVar3 = FUN_0013a1b2(*param_1,0xa8,0);\n    param_2 = FUN_00154287(param_1,0,uVar3);\n  }\n  *plVar2 = param_2;\n  *(undefined1 *)(plVar2 + 1) = 0x7f;\n  *(undefined4 *)((long)plVar2 + 0xc) = param_8;\n  *(undefined4 *)(plVar2 + 2) = 0;\n  *(undefined4 *)((long)plVar2 + 0x14) = 0;\n  iVar1 = *(int *)((long)param_1 + 0x84) + 1;\n  *(int *)((long)param_1 + 0x84) = iVar1;\n  *(int *)(plVar2 + 3) = iVar1;\n  *(undefined4 *)((long)plVar2 + 0x1c) = 0xffffffff;\n  *(undefined4 *)(plVar2 + 4) = 0xffffffff;\n  *(undefined2 *)((long)plVar2 + 10) = 0;\n  if (param_3 == 0) {\n    param_3 = FUN_0013730e(*param_1,0x78);\n  }\n  plVar2[5] = param_3;\n  plVar2[6] = param_4;\n  plVar2[7] = param_5;\n  plVar2[8] = param_6;\n  plVar2[9] = param_7;\n  plVar2[10] = 0;\n  plVar2[0xb] = 0;\n  plVar2[0xc] = param_9;\n  plVar2[0xd] = 0;\n  plVar2[0xe] = 0;\n  plVar2[0xf] = 0;\n  if (*(char *)(*param_1 + 0x61) != '\0') {\n    FUN_0014481c(*param_1,plVar2,plVar2 != local_c8);\n    plVar2 = (long *)0x0;\n  }\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return plVar2;\n  }\n                    \n  __stack_chk_fail();\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "long *plVar2;" (sized_type_specifier "long" long) (pointer_declarator "*plVar2" * identifier) ;) (declaration "undefined8 uVar3;" type_identifier identifier ;) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" long) identifier ;) (declaration "long local_c8 [17];" (sized_type_specifier "long" long) (array_declarator "local_c8 [17]" identifier [ number_literal ]) ;) (declaration "long local_40;" (sized_type_specifier "long" long) identifier ;) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" identifier = (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) ;) (expression_statement "plVar2 = (long *)FUN_0012aae5(*param_1,0x80);" (assignment_expression "plVar2 = (long *)FUN_0012aae5(*param_1,0x80)" identifier = (cast_expression "(long *)FUN_0012aae5(*param_1,0x80)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0012aae5(*param_1,0x80)" identifier (argument_list "(*param_1,0x80)" ( (pointer_expression "*param_1" * identifier) , number_literal ))))) ;) (if_statement "if (plVar2 == (long *)0x0) {\n    plVar2 = local_c8;\n  }" if (parenthesized_expression "(plVar2 == (long *)0x0)" ( (binary_expression "plVar2 == (long *)0x0" identifier == (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    plVar2 = local_c8;\n  }" { (expression_statement "plVar2 = local_c8;" (assignment_expression "plVar2 = local_c8" identifier = identifier) ;) })) (if_statement "if (param_2 == 0) {\n    uVar3 = FUN_0013a1b2(*param_1,0xa8,0);\n    param_2 = FUN_00154287(param_1,0,uVar3);\n  }" if (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) (compound_statement "{\n    uVar3 = FUN_0013a1b2(*param_1,0xa8,0);\n    param_2 = FUN_00154287(param_1,0,uVar3);\n  }" { (expression_statement "uVar3 = FUN_0013a1b2(*param_1,0xa8,0);" (assignment_expression "uVar3 = FUN_0013a1b2(*param_1,0xa8,0)" identifier = (call_expression "FUN_0013a1b2(*param_1,0xa8,0)" identifier (argument_list "(*param_1,0xa8,0)" ( (pointer_expression "*param_1" * identifier) , number_literal , number_literal )))) ;) (expression_statement "param_2 = FUN_00154287(param_1,0,uVar3);" (assignment_expression "param_2 = FUN_00154287(param_1,0,uVar3)" identifier = (call_expression "FUN_00154287(param_1,0,uVar3)" identifier (argument_list "(param_1,0,uVar3)" ( identifier , number_literal , identifier )))) ;) })) (expression_statement "*plVar2 = param_2;" (assignment_expression "*plVar2 = param_2" (pointer_expression "*plVar2" * identifier) = identifier) ;) (expression_statement "*(undefined1 *)(plVar2 + 1) = 0x7f;" (assignment_expression "*(undefined1 *)(plVar2 + 1) = 0x7f" (pointer_expression "*(undefined1 *)(plVar2 + 1)" * (cast_expression "(undefined1 *)(plVar2 + 1)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar2 + 1)" ( (binary_expression "plVar2 + 1" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((long)plVar2 + 0xc) = param_8;" (assignment_expression "*(undefined4 *)((long)plVar2 + 0xc) = param_8" (pointer_expression "*(undefined4 *)((long)plVar2 + 0xc)" * (cast_expression "(undefined4 *)((long)plVar2 + 0xc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar2 + 0xc)" ( (binary_expression "(long)plVar2 + 0xc" (cast_expression "(long)plVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(plVar2 + 2) = 0;" (assignment_expression "*(undefined4 *)(plVar2 + 2) = 0" (pointer_expression "*(undefined4 *)(plVar2 + 2)" * (cast_expression "(undefined4 *)(plVar2 + 2)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar2 + 2)" ( (binary_expression "plVar2 + 2" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)((long)plVar2 + 0x14) = 0;" (assignment_expression "*(undefined4 *)((long)plVar2 + 0x14) = 0" (pointer_expression "*(undefined4 *)((long)plVar2 + 0x14)" * (cast_expression "(undefined4 *)((long)plVar2 + 0x14)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar2 + 0x14)" ( (binary_expression "(long)plVar2 + 0x14" (cast_expression "(long)plVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "iVar1 = *(int *)((long)param_1 + 0x84) + 1;" (assignment_expression "iVar1 = *(int *)((long)param_1 + 0x84) + 1" identifier = (binary_expression "*(int *)((long)param_1 + 0x84) + 1" (pointer_expression "*(int *)((long)param_1 + 0x84)" * (cast_expression "(int *)((long)param_1 + 0x84)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x84)" ( (binary_expression "(long)param_1 + 0x84" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) + number_literal)) ;) (expression_statement "*(int *)((long)param_1 + 0x84) = iVar1;" (assignment_expression "*(int *)((long)param_1 + 0x84) = iVar1" (pointer_expression "*(int *)((long)param_1 + 0x84)" * (cast_expression "(int *)((long)param_1 + 0x84)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)param_1 + 0x84)" ( (binary_expression "(long)param_1 + 0x84" (cast_expression "(long)param_1" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(plVar2 + 3) = iVar1;" (assignment_expression "*(int *)(plVar2 + 3) = iVar1" (pointer_expression "*(int *)(plVar2 + 3)" * (cast_expression "(int *)(plVar2 + 3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar2 + 3)" ( (binary_expression "plVar2 + 3" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)((long)plVar2 + 0x1c) = 0xffffffff;" (assignment_expression "*(undefined4 *)((long)plVar2 + 0x1c) = 0xffffffff" (pointer_expression "*(undefined4 *)((long)plVar2 + 0x1c)" * (cast_expression "(undefined4 *)((long)plVar2 + 0x1c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar2 + 0x1c)" ( (binary_expression "(long)plVar2 + 0x1c" (cast_expression "(long)plVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined4 *)(plVar2 + 4) = 0xffffffff;" (assignment_expression "*(undefined4 *)(plVar2 + 4) = 0xffffffff" (pointer_expression "*(undefined4 *)(plVar2 + 4)" * (cast_expression "(undefined4 *)(plVar2 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(plVar2 + 4)" ( (binary_expression "plVar2 + 4" identifier + number_literal) )))) = number_literal) ;) (expression_statement "*(undefined2 *)((long)plVar2 + 10) = 0;" (assignment_expression "*(undefined2 *)((long)plVar2 + 10) = 0" (pointer_expression "*(undefined2 *)((long)plVar2 + 10)" * (cast_expression "(undefined2 *)((long)plVar2 + 10)" ( (type_descriptor "undefined2 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)plVar2 + 10)" ( (binary_expression "(long)plVar2 + 10" (cast_expression "(long)plVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) + number_literal) )))) = number_literal) ;) (if_statement "if (param_3 == 0) {\n    param_3 = FUN_0013730e(*param_1,0x78);\n  }" if (parenthesized_expression "(param_3 == 0)" ( (binary_expression "param_3 == 0" identifier == number_literal) )) (compound_statement "{\n    param_3 = FUN_0013730e(*param_1,0x78);\n  }" { (expression_statement "param_3 = FUN_0013730e(*param_1,0x78);" (assignment_expression "param_3 = FUN_0013730e(*param_1,0x78)" identifier = (call_expression "FUN_0013730e(*param_1,0x78)" identifier (argument_list "(*param_1,0x78)" ( (pointer_expression "*param_1" * identifier) , number_literal )))) ;) })) (expression_statement "plVar2[5] = param_3;" (assignment_expression "plVar2[5] = param_3" (subscript_expression "plVar2[5]" identifier [ number_literal ]) = identifier) ;) (expression_statement "plVar2[6] = param_4;" (assignment_expression "plVar2[6] = param_4" (subscript_expression "plVar2[6]" identifier [ number_literal ]) = identifier) ;) (expression_statement "plVar2[7] = param_5;" (assignment_expression "plVar2[7] = param_5" (subscript_expression "plVar2[7]" identifier [ number_literal ]) = identifier) ;) (expression_statement "plVar2[8] = param_6;" (assignment_expression "plVar2[8] = param_6" (subscript_expression "plVar2[8]" identifier [ number_literal ]) = identifier) ;) (expression_statement "plVar2[9] = param_7;" (assignment_expression "plVar2[9] = param_7" (subscript_expression "plVar2[9]" identifier [ number_literal ]) = identifier) ;) (expression_statement "plVar2[10] = 0;" (assignment_expression "plVar2[10] = 0" (subscript_expression "plVar2[10]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "plVar2[0xb] = 0;" (assignment_expression "plVar2[0xb] = 0" (subscript_expression "plVar2[0xb]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "plVar2[0xc] = param_9;" (assignment_expression "plVar2[0xc] = param_9" (subscript_expression "plVar2[0xc]" identifier [ number_literal ]) = identifier) ;) (expression_statement "plVar2[0xd] = 0;" (assignment_expression "plVar2[0xd] = 0" (subscript_expression "plVar2[0xd]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "plVar2[0xe] = 0;" (assignment_expression "plVar2[0xe] = 0" (subscript_expression "plVar2[0xe]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "plVar2[0xf] = 0;" (assignment_expression "plVar2[0xf] = 0" (subscript_expression "plVar2[0xf]" identifier [ number_literal ]) = number_literal) ;) (if_statement "if (*(char *)(*param_1 + 0x61) != '\0') {\n    FUN_0014481c(*param_1,plVar2,plVar2 != local_c8);\n    plVar2 = (long *)0x0;\n  }" if (parenthesized_expression "(*(char *)(*param_1 + 0x61) != '\0')" ( (binary_expression "*(char *)(*param_1 + 0x61) != '\0'" (pointer_expression "*(char *)(*param_1 + 0x61)" * (cast_expression "(char *)(*param_1 + 0x61)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x61)" ( (binary_expression "*param_1 + 0x61" (pointer_expression "*param_1" * identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_0014481c(*param_1,plVar2,plVar2 != local_c8);\n    plVar2 = (long *)0x0;\n  }" { (expression_statement "FUN_0014481c(*param_1,plVar2,plVar2 != local_c8);" (call_expression "FUN_0014481c(*param_1,plVar2,plVar2 != local_c8)" identifier (argument_list "(*param_1,plVar2,plVar2 != local_c8)" ( (pointer_expression "*param_1" * identifier) , identifier , (binary_expression "plVar2 != local_c8" identifier != identifier) ))) ;) (expression_statement "plVar2 = (long *)0x0;" (assignment_expression "plVar2 = (long *)0x0" identifier = (cast_expression "(long *)0x0" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) number_literal)) ;) })) (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return plVar2;\n  }" if (parenthesized_expression "(local_40 == *(long *)(in_FS_OFFSET + 0x28))" ( (binary_expression "local_40 == *(long *)(in_FS_OFFSET + 0x28)" identifier == (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" * (cast_expression "(long *)(in_FS_OFFSET + 0x28)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_FS_OFFSET + 0x28)" ( (binary_expression "in_FS_OFFSET + 0x28" identifier + number_literal) ))))) )) (compound_statement "{\n    return plVar2;\n  }" { (return_statement "return plVar2;" return identifier ;) })) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition (sized_type_specifier long) (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration (sized_type_specifier long) (array_declarator IDENT [ LIT ]) ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , LIT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor (sized_type_specifier long) (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 = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , LIT , LIT )))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , LIT , IDENT )))) ;) })) (expression_statement (assignment_expression (pointer_expression * IDENT) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) 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 (sized_type_specifier long)) ) IDENT) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) + LIT) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (pointer_expression * IDENT) , LIT )))) ;) })) (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 (sized_type_specifier long) (abstract_pointer_declarator *)) ) LIT)) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return IDENT ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "long * FUN_001545c7(long *param_1,long param_2,long param_3,long param_4,long param_5,long param_6,\n                   long param_7,undefined4 param_8,long param_9)\n\n{\n  int iVar1;\n  long *plVar2;\n  undefined8 uVar3;\n  long in_FS_OFFSET;\n  long local_c8 [17];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  plVar2 = (long *)FUN_0012aae5(*param_1,0x80);\n  if (plVar2 == (long *)0x0) {\n    plVar2 = local_c8;\n  }\n  if (param_2 == 0) {\n    uVar3 = FUN_0013a1b2(*param_1,0xa8,0);\n    param_2 = FUN_00154287(param_1,0,uVar3);\n  }\n  *plVar2 = param_2;\n  *(undefined1 *)(plVar2 + 1) = 0x7f;\n  *(undefined4 *)((long)plVar2 + 0xc) = param_8;\n  *(undefined4 *)(plVar2 + 2) = 0;\n  *(undefined4 *)((long)plVar2 + 0x14) = 0;\n  iVar1 = *(int *)((long)param_1 + 0x84) + 1;\n  *(int *)((long)param_1 + 0x84) = iVar1;\n  *(int *)(plVar2 + 3) = iVar1;\n  *(undefined4 *)((long)plVar2 + 0x1c) = 0xffffffff;\n  *(undefined4 *)(plVar2 + 4) = 0xffffffff;\n  *(undefined2 *)((long)plVar2 + 10) = 0;\n  if (param_3 == 0) {\n    param_3 = FUN_0013730e(*param_1,0x78);\n  }\n  plVar2[5] = param_3;\n  plVar2[6] = param_4;\n  plVar2[7] = param_5;\n  plVar2[8] = param_6;\n  plVar2[9] = param_7;\n  plVar2[10] = 0;\n  plVar2[0xb] = 0;\n  plVar2[0xc] = param_9;\n  plVar2[0xd] = 0;\n  plVar2[0xe] = 0;\n  plVar2[0xf] = 0;\n  if (*(char *)(*param_1 + 0x61) != '\0') {\n    FUN_0014481c(*param_1,plVar2,plVar2 != local_c8);\n    plVar2 = (long *)0x0;\n  }\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return plVar2;\n  }\n                    \n  __stack_chk_fail();\n}" (sized_type_specifier "long" (long "long")) (pointer_declarator "* FUN_001545c7(long *param_1,long param_2,long param_3,long param_4,long param_5,long param_6,\n                   long param_7,undefined4 param_8,long param_9)" (* "*") (function_declarator "FUN_001545c7(long *param_1,long param_2,long param_3,long param_4,long param_5,long param_6,\n                   long param_7,undefined4 param_8,long param_9)" (identifier "FUN_001545c7") (parameter_list "(long *param_1,long param_2,long param_3,long param_4,long param_5,long param_6,\n                   long param_7,undefined4 param_8,long param_9)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) (, ",") (parameter_declaration "long param_3" (sized_type_specifier "long" (long "long")) (identifier "param_3")) (, ",") (parameter_declaration "long param_4" (sized_type_specifier "long" (long "long")) (identifier "param_4")) (, ",") (parameter_declaration "long param_5" (sized_type_specifier "long" (long "long")) (identifier "param_5")) (, ",") (parameter_declaration "long param_6" (sized_type_specifier "long" (long "long")) (identifier "param_6")) (, ",") (parameter_declaration "long param_7" (sized_type_specifier "long" (long "long")) (identifier "param_7")) (, ",") (parameter_declaration "undefined4 param_8" (type_identifier "undefined4") (identifier "param_8")) (, ",") (parameter_declaration "long param_9" (sized_type_specifier "long" (long "long")) (identifier "param_9")) () ")")))) (compound_statement "{\n  int iVar1;\n  long *plVar2;\n  undefined8 uVar3;\n  long in_FS_OFFSET;\n  long local_c8 [17];\n  long local_40;\n  \n  local_40 = *(long *)(in_FS_OFFSET + 0x28);\n  plVar2 = (long *)FUN_0012aae5(*param_1,0x80);\n  if (plVar2 == (long *)0x0) {\n    plVar2 = local_c8;\n  }\n  if (param_2 == 0) {\n    uVar3 = FUN_0013a1b2(*param_1,0xa8,0);\n    param_2 = FUN_00154287(param_1,0,uVar3);\n  }\n  *plVar2 = param_2;\n  *(undefined1 *)(plVar2 + 1) = 0x7f;\n  *(undefined4 *)((long)plVar2 + 0xc) = param_8;\n  *(undefined4 *)(plVar2 + 2) = 0;\n  *(undefined4 *)((long)plVar2 + 0x14) = 0;\n  iVar1 = *(int *)((long)param_1 + 0x84) + 1;\n  *(int *)((long)param_1 + 0x84) = iVar1;\n  *(int *)(plVar2 + 3) = iVar1;\n  *(undefined4 *)((long)plVar2 + 0x1c) = 0xffffffff;\n  *(undefined4 *)(plVar2 + 4) = 0xffffffff;\n  *(undefined2 *)((long)plVar2 + 10) = 0;\n  if (param_3 == 0) {\n    param_3 = FUN_0013730e(*param_1,0x78);\n  }\n  plVar2[5] = param_3;\n  plVar2[6] = param_4;\n  plVar2[7] = param_5;\n  plVar2[8] = param_6;\n  plVar2[9] = param_7;\n  plVar2[10] = 0;\n  plVar2[0xb] = 0;\n  plVar2[0xc] = param_9;\n  plVar2[0xd] = 0;\n  plVar2[0xe] = 0;\n  plVar2[0xf] = 0;\n  if (*(char *)(*param_1 + 0x61) != '\0') {\n    FUN_0014481c(*param_1,plVar2,plVar2 != local_c8);\n    plVar2 = (long *)0x0;\n  }\n  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return plVar2;\n  }\n                    \n  __stack_chk_fail();\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "long *plVar2;" (sized_type_specifier "long" (long "long")) (pointer_declarator "*plVar2" (* "*") (identifier "plVar2")) (; ";")) (declaration "undefined8 uVar3;" (type_identifier "undefined8") (identifier "uVar3") (; ";")) (declaration "long in_FS_OFFSET;" (sized_type_specifier "long" (long "long")) (identifier "in_FS_OFFSET") (; ";")) (declaration "long local_c8 [17];" (sized_type_specifier "long" (long "long")) (array_declarator "local_c8 [17]" (identifier "local_c8") ([ "[") (number_literal "17") (] "]")) (; ";")) (declaration "long local_40;" (sized_type_specifier "long" (long "long")) (identifier "local_40") (; ";")) (expression_statement "local_40 = *(long *)(in_FS_OFFSET + 0x28);" (assignment_expression "local_40 = *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (= "=") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) (; ";")) (expression_statement "plVar2 = (long *)FUN_0012aae5(*param_1,0x80);" (assignment_expression "plVar2 = (long *)FUN_0012aae5(*param_1,0x80)" (identifier "plVar2") (= "=") (cast_expression "(long *)FUN_0012aae5(*param_1,0x80)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0012aae5(*param_1,0x80)" (identifier "FUN_0012aae5") (argument_list "(*param_1,0x80)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (number_literal "0x80") () ")"))))) (; ";")) (if_statement "if (plVar2 == (long *)0x0) {\n    plVar2 = local_c8;\n  }" (if "if") (parenthesized_expression "(plVar2 == (long *)0x0)" (( "(") (binary_expression "plVar2 == (long *)0x0" (identifier "plVar2") (== "==") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    plVar2 = local_c8;\n  }" ({ "{") (expression_statement "plVar2 = local_c8;" (assignment_expression "plVar2 = local_c8" (identifier "plVar2") (= "=") (identifier "local_c8")) (; ";")) (} "}"))) (if_statement "if (param_2 == 0) {\n    uVar3 = FUN_0013a1b2(*param_1,0xa8,0);\n    param_2 = FUN_00154287(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    uVar3 = FUN_0013a1b2(*param_1,0xa8,0);\n    param_2 = FUN_00154287(param_1,0,uVar3);\n  }" ({ "{") (expression_statement "uVar3 = FUN_0013a1b2(*param_1,0xa8,0);" (assignment_expression "uVar3 = FUN_0013a1b2(*param_1,0xa8,0)" (identifier "uVar3") (= "=") (call_expression "FUN_0013a1b2(*param_1,0xa8,0)" (identifier "FUN_0013a1b2") (argument_list "(*param_1,0xa8,0)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (number_literal "0xa8") (, ",") (number_literal "0") () ")")))) (; ";")) (expression_statement "param_2 = FUN_00154287(param_1,0,uVar3);" (assignment_expression "param_2 = FUN_00154287(param_1,0,uVar3)" (identifier "param_2") (= "=") (call_expression "FUN_00154287(param_1,0,uVar3)" (identifier "FUN_00154287") (argument_list "(param_1,0,uVar3)" (( "(") (identifier "param_1") (, ",") (number_literal "0") (, ",") (identifier "uVar3") () ")")))) (; ";")) (} "}"))) (expression_statement "*plVar2 = param_2;" (assignment_expression "*plVar2 = param_2" (pointer_expression "*plVar2" (* "*") (identifier "plVar2")) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(undefined1 *)(plVar2 + 1) = 0x7f;" (assignment_expression "*(undefined1 *)(plVar2 + 1) = 0x7f" (pointer_expression "*(undefined1 *)(plVar2 + 1)" (* "*") (cast_expression "(undefined1 *)(plVar2 + 1)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(plVar2 + 1)" (( "(") (binary_expression "plVar2 + 1" (identifier "plVar2") (+ "+") (number_literal "1")) () ")")))) (= "=") (number_literal "0x7f")) (; ";")) (expression_statement "*(undefined4 *)((long)plVar2 + 0xc) = param_8;" (assignment_expression "*(undefined4 *)((long)plVar2 + 0xc) = param_8" (pointer_expression "*(undefined4 *)((long)plVar2 + 0xc)" (* "*") (cast_expression "(undefined4 *)((long)plVar2 + 0xc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)plVar2 + 0xc)" (( "(") (binary_expression "(long)plVar2 + 0xc" (cast_expression "(long)plVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "plVar2")) (+ "+") (number_literal "0xc")) () ")")))) (= "=") (identifier "param_8")) (; ";")) (expression_statement "*(undefined4 *)(plVar2 + 2) = 0;" (assignment_expression "*(undefined4 *)(plVar2 + 2) = 0" (pointer_expression "*(undefined4 *)(plVar2 + 2)" (* "*") (cast_expression "(undefined4 *)(plVar2 + 2)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(plVar2 + 2)" (( "(") (binary_expression "plVar2 + 2" (identifier "plVar2") (+ "+") (number_literal "2")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "*(undefined4 *)((long)plVar2 + 0x14) = 0;" (assignment_expression "*(undefined4 *)((long)plVar2 + 0x14) = 0" (pointer_expression "*(undefined4 *)((long)plVar2 + 0x14)" (* "*") (cast_expression "(undefined4 *)((long)plVar2 + 0x14)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)plVar2 + 0x14)" (( "(") (binary_expression "(long)plVar2 + 0x14" (cast_expression "(long)plVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "plVar2")) (+ "+") (number_literal "0x14")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar1 = *(int *)((long)param_1 + 0x84) + 1;" (assignment_expression "iVar1 = *(int *)((long)param_1 + 0x84) + 1" (identifier "iVar1") (= "=") (binary_expression "*(int *)((long)param_1 + 0x84) + 1" (pointer_expression "*(int *)((long)param_1 + 0x84)" (* "*") (cast_expression "(int *)((long)param_1 + 0x84)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x84)" (( "(") (binary_expression "(long)param_1 + 0x84" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x84")) () ")")))) (+ "+") (number_literal "1"))) (; ";")) (expression_statement "*(int *)((long)param_1 + 0x84) = iVar1;" (assignment_expression "*(int *)((long)param_1 + 0x84) = iVar1" (pointer_expression "*(int *)((long)param_1 + 0x84)" (* "*") (cast_expression "(int *)((long)param_1 + 0x84)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)param_1 + 0x84)" (( "(") (binary_expression "(long)param_1 + 0x84" (cast_expression "(long)param_1" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "param_1")) (+ "+") (number_literal "0x84")) () ")")))) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "*(int *)(plVar2 + 3) = iVar1;" (assignment_expression "*(int *)(plVar2 + 3) = iVar1" (pointer_expression "*(int *)(plVar2 + 3)" (* "*") (cast_expression "(int *)(plVar2 + 3)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(plVar2 + 3)" (( "(") (binary_expression "plVar2 + 3" (identifier "plVar2") (+ "+") (number_literal "3")) () ")")))) (= "=") (identifier "iVar1")) (; ";")) (expression_statement "*(undefined4 *)((long)plVar2 + 0x1c) = 0xffffffff;" (assignment_expression "*(undefined4 *)((long)plVar2 + 0x1c) = 0xffffffff" (pointer_expression "*(undefined4 *)((long)plVar2 + 0x1c)" (* "*") (cast_expression "(undefined4 *)((long)plVar2 + 0x1c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)plVar2 + 0x1c)" (( "(") (binary_expression "(long)plVar2 + 0x1c" (cast_expression "(long)plVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "plVar2")) (+ "+") (number_literal "0x1c")) () ")")))) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "*(undefined4 *)(plVar2 + 4) = 0xffffffff;" (assignment_expression "*(undefined4 *)(plVar2 + 4) = 0xffffffff" (pointer_expression "*(undefined4 *)(plVar2 + 4)" (* "*") (cast_expression "(undefined4 *)(plVar2 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(plVar2 + 4)" (( "(") (binary_expression "plVar2 + 4" (identifier "plVar2") (+ "+") (number_literal "4")) () ")")))) (= "=") (number_literal "0xffffffff")) (; ";")) (expression_statement "*(undefined2 *)((long)plVar2 + 10) = 0;" (assignment_expression "*(undefined2 *)((long)plVar2 + 10) = 0" (pointer_expression "*(undefined2 *)((long)plVar2 + 10)" (* "*") (cast_expression "(undefined2 *)((long)plVar2 + 10)" (( "(") (type_descriptor "undefined2 *" (type_identifier "undefined2") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((long)plVar2 + 10)" (( "(") (binary_expression "(long)plVar2 + 10" (cast_expression "(long)plVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "plVar2")) (+ "+") (number_literal "10")) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_3 == 0) {\n    param_3 = FUN_0013730e(*param_1,0x78);\n  }" (if "if") (parenthesized_expression "(param_3 == 0)" (( "(") (binary_expression "param_3 == 0" (identifier "param_3") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    param_3 = FUN_0013730e(*param_1,0x78);\n  }" ({ "{") (expression_statement "param_3 = FUN_0013730e(*param_1,0x78);" (assignment_expression "param_3 = FUN_0013730e(*param_1,0x78)" (identifier "param_3") (= "=") (call_expression "FUN_0013730e(*param_1,0x78)" (identifier "FUN_0013730e") (argument_list "(*param_1,0x78)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (number_literal "0x78") () ")")))) (; ";")) (} "}"))) (expression_statement "plVar2[5] = param_3;" (assignment_expression "plVar2[5] = param_3" (subscript_expression "plVar2[5]" (identifier "plVar2") ([ "[") (number_literal "5") (] "]")) (= "=") (identifier "param_3")) (; ";")) (expression_statement "plVar2[6] = param_4;" (assignment_expression "plVar2[6] = param_4" (subscript_expression "plVar2[6]" (identifier "plVar2") ([ "[") (number_literal "6") (] "]")) (= "=") (identifier "param_4")) (; ";")) (expression_statement "plVar2[7] = param_5;" (assignment_expression "plVar2[7] = param_5" (subscript_expression "plVar2[7]" (identifier "plVar2") ([ "[") (number_literal "7") (] "]")) (= "=") (identifier "param_5")) (; ";")) (expression_statement "plVar2[8] = param_6;" (assignment_expression "plVar2[8] = param_6" (subscript_expression "plVar2[8]" (identifier "plVar2") ([ "[") (number_literal "8") (] "]")) (= "=") (identifier "param_6")) (; ";")) (expression_statement "plVar2[9] = param_7;" (assignment_expression "plVar2[9] = param_7" (subscript_expression "plVar2[9]" (identifier "plVar2") ([ "[") (number_literal "9") (] "]")) (= "=") (identifier "param_7")) (; ";")) (expression_statement "plVar2[10] = 0;" (assignment_expression "plVar2[10] = 0" (subscript_expression "plVar2[10]" (identifier "plVar2") ([ "[") (number_literal "10") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "plVar2[0xb] = 0;" (assignment_expression "plVar2[0xb] = 0" (subscript_expression "plVar2[0xb]" (identifier "plVar2") ([ "[") (number_literal "0xb") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "plVar2[0xc] = param_9;" (assignment_expression "plVar2[0xc] = param_9" (subscript_expression "plVar2[0xc]" (identifier "plVar2") ([ "[") (number_literal "0xc") (] "]")) (= "=") (identifier "param_9")) (; ";")) (expression_statement "plVar2[0xd] = 0;" (assignment_expression "plVar2[0xd] = 0" (subscript_expression "plVar2[0xd]" (identifier "plVar2") ([ "[") (number_literal "0xd") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "plVar2[0xe] = 0;" (assignment_expression "plVar2[0xe] = 0" (subscript_expression "plVar2[0xe]" (identifier "plVar2") ([ "[") (number_literal "0xe") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "plVar2[0xf] = 0;" (assignment_expression "plVar2[0xf] = 0" (subscript_expression "plVar2[0xf]" (identifier "plVar2") ([ "[") (number_literal "0xf") (] "]")) (= "=") (number_literal "0")) (; ";")) (if_statement "if (*(char *)(*param_1 + 0x61) != '\0') {\n    FUN_0014481c(*param_1,plVar2,plVar2 != local_c8);\n    plVar2 = (long *)0x0;\n  }" (if "if") (parenthesized_expression "(*(char *)(*param_1 + 0x61) != '\0')" (( "(") (binary_expression "*(char *)(*param_1 + 0x61) != '\0'" (pointer_expression "*(char *)(*param_1 + 0x61)" (* "*") (cast_expression "(char *)(*param_1 + 0x61)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0x61)" (( "(") (binary_expression "*param_1 + 0x61" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x61")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    FUN_0014481c(*param_1,plVar2,plVar2 != local_c8);\n    plVar2 = (long *)0x0;\n  }" ({ "{") (expression_statement "FUN_0014481c(*param_1,plVar2,plVar2 != local_c8);" (call_expression "FUN_0014481c(*param_1,plVar2,plVar2 != local_c8)" (identifier "FUN_0014481c") (argument_list "(*param_1,plVar2,plVar2 != local_c8)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (identifier "plVar2") (, ",") (binary_expression "plVar2 != local_c8" (identifier "plVar2") (!= "!=") (identifier "local_c8")) () ")"))) (; ";")) (expression_statement "plVar2 = (long *)0x0;" (assignment_expression "plVar2 = (long *)0x0" (identifier "plVar2") (= "=") (cast_expression "(long *)0x0" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) (; ";")) (} "}"))) (if_statement "if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {\n    return plVar2;\n  }" (if "if") (parenthesized_expression "(local_40 == *(long *)(in_FS_OFFSET + 0x28))" (( "(") (binary_expression "local_40 == *(long *)(in_FS_OFFSET + 0x28)" (identifier "local_40") (== "==") (pointer_expression "*(long *)(in_FS_OFFSET + 0x28)" (* "*") (cast_expression "(long *)(in_FS_OFFSET + 0x28)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_FS_OFFSET + 0x28)" (( "(") (binary_expression "in_FS_OFFSET + 0x28" (identifier "in_FS_OFFSET") (+ "+") (number_literal "0x28")) () ")"))))) () ")")) (compound_statement "{\n    return plVar2;\n  }" ({ "{") (return_statement "return plVar2;" (return "return") (identifier "plVar2") (; ";")) (} "}"))) (expression_statement "__stack_chk_fail();" (call_expression "__stack_chk_fail()" (identifier "__stack_chk_fail") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

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

{
  long var_10;
  type_6 uVar2;
  type_1 *var_3;
  type_5 *pExpr;
  long var_1;
  type_1 standin;
  
  var_10 = *(long *)(var_1 + 0x28);
  var_3 = (type_1 *)var_2(pParse->db,0x80);
  if (var_3 == (type_1 *)0x0) {
    var_3 = &standin;
  }
  if (var_4 == (type_3 *)0x0) {
    pExpr = var_5(pParse->db,0xa8,(char *)0x0);
    var_4 = var_6(pParse,(type_3 *)0x0,pExpr);
  }
  var_3->var_4 = var_4;
  var_3->op = '\x7f';
  var_3->selFlags = selFlags;
  var_3->iLimit = 0;
  var_3->iOffset = 0;
  uVar2 = pParse->nSelect + 1;
  pParse->nSelect = uVar2;
  var_3->selId = uVar2;
  var_3->addrOpenEphm[0] = -1;
  var_3->addrOpenEphm[1] = -1;
  var_3->nSelectRow = 0;
  if (var_7 == (type_4 *)0x0) {
    var_7 = (type_4 *)var_8(pParse->db,0x78);
  }
  var_3->var_7 = var_7;
  var_3->pWhere = pWhere;
  var_3->pGroupBy = pGroupBy;
  var_3->pHaving = pHaving;
  var_3->pOrderBy = pOrderBy;
  var_3->pPrior = (type_1 *)0x0;
  var_3->pNext = (type_1 *)0x0;
  var_3->pLimit = pLimit;
  var_3->pWith = (type_7 *)0x0;
  var_3->pWin = (type_8 *)0x0;
  var_3->pWinDefn = (type_8 *)0x0;
  if (pParse->db->mallocFailed != '\0') {
    var_9(pParse->db,var_3,(uint)(var_3 != &standin));
    var_3 = (type_1 *)0x0;
  }
  if (var_10 == *(long *)(var_1 + 0x28)) {
    return var_3;
  }
                    /* WARNING: Subroutine does not return */
  var_11();
}


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

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

{
  int iVar1;
  long *plVar2;
  undefined8 uVar3;
  long in_FS_OFFSET;
  long local_c8 [17];
  long local_40;
  
  local_40 = *(long *)(in_FS_OFFSET + 0x28);
  plVar2 = (long *)FUN_0012aae5(*param_1,0x80);
  if (plVar2 == (long *)0x0) {
    plVar2 = local_c8;
  }
  if (param_2 == 0) {
    uVar3 = FUN_0013a1b2(*param_1,0xa8,0);
    param_2 = FUN_00154287(param_1,0,uVar3);
  }
  *plVar2 = param_2;
  *(undefined1 *)(plVar2 + 1) = 0x7f;
  *(undefined4 *)((long)plVar2 + 0xc) = param_8;
  *(undefined4 *)(plVar2 + 2) = 0;
  *(undefined4 *)((long)plVar2 + 0x14) = 0;
  iVar1 = *(int *)((long)param_1 + 0x84) + 1;
  *(int *)((long)param_1 + 0x84) = iVar1;
  *(int *)(plVar2 + 3) = iVar1;
  *(undefined4 *)((long)plVar2 + 0x1c) = 0xffffffff;
  *(undefined4 *)(plVar2 + 4) = 0xffffffff;
  *(undefined2 *)((long)plVar2 + 10) = 0;
  if (param_3 == 0) {
    param_3 = FUN_0013730e(*param_1,0x78);
  }
  plVar2[5] = param_3;
  plVar2[6] = param_4;
  plVar2[7] = param_5;
  plVar2[8] = param_6;
  plVar2[9] = param_7;
  plVar2[10] = 0;
  plVar2[0xb] = 0;
  plVar2[0xc] = param_9;
  plVar2[0xd] = 0;
  plVar2[0xe] = 0;
  plVar2[0xf] = 0;
  if (*(char *)(*param_1 + 0x61) != '\0') {
    FUN_0014481c(*param_1,plVar2,plVar2 != local_c8);
    plVar2 = (long *)0x0;
  }
  if (local_40 == *(long *)(in_FS_OFFSET + 0x28)) {
    return plVar2;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail();
}

