
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

SrcList * __regparm3
sqlite3SrcListAppendFromTerm
          (Parse *pParse,SrcList *p,Token *pTable,Token *pDatabase,Token *pAlias,Select *pSubquery,
          Expr *pOn,IdList *pUsing)

{
  sqlite3 *db;
  int iVar1;
  uint uVar2;
  SrcList *pSVar3;
  char *pcVar4;
  
  db = pParse->db;
  if ((p == (SrcList *)0x0) && ((pOn != (Expr *)0x0 || (pUsing != (IdList *)0x0)))) {
    pcVar4 = "USING";
    if (pOn != (Expr *)0x0) {
      pcVar4 = "ON";
    }
    sqlite3ErrorMsg(pParse,"a JOIN clause is required before %s",pcVar4);
LAB_0004683d:
    if (pOn != (Expr *)0x0) {
      sqlite3ExprDeleteNN(db,pOn);
    }
    if (pUsing != (IdList *)0x0) {
      sqlite3IdListDelete(db,pUsing);
    }
    if (pSubquery == (Select *)0x0) {
      return (SrcList *)0x0;
    }
    clearSelect(db,pSubquery,1);
    return (SrcList *)0x0;
  }
  pSVar3 = sqlite3SrcListAppend(pParse,p,pTable,pDatabase);
  if (pSVar3 == (SrcList *)0x0) goto LAB_0004683d;
  iVar1 = pSVar3->nSrc;
  if ((1 < pParse->eParseMode) && (pcVar4 = pSVar3->a[iVar1 + -1].zName, pcVar4 != (char *)0x0)) {
    if ((pDatabase != (Token *)0x0) && (pDatabase->z != (char *)0x0)) {
      pTable = pDatabase;
    }
    if (pParse->eParseMode != 3) {
      sqlite3RenameTokenMap(pParse,pcVar4,pTable);
      uVar2 = pAlias->n;
      goto joined_r0x000467cf;
    }
  }
  uVar2 = pAlias->n;
joined_r0x000467cf:
  if (uVar2 != 0) {
    pcVar4 = sqlite3NameFromToken(db,pAlias);
    pSVar3->a[iVar1 + -1].zAlias = pcVar4;
  }
  pSVar3->a[iVar1 + -1].pSelect = pSubquery;
  pSVar3->a[iVar1 + -1].pOn = pOn;
  pSVar3->a[iVar1 + -1].pUsing = pUsing;
  return pSVar3;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int * __regparm2
FUN_00046750(int param_1,int param_2,undefined4 param_3,int param_4,int param_5,int param_6,
            int param_7)

{
  int iVar1;
  int *piVar2;
  char *pcVar3;
  int iVar4;
  
  if ((param_2 == 0) && ((param_6 != 0 || (param_7 != 0)))) {
    pcVar3 = "USING";
    if (param_6 != 0) {
      pcVar3 = "ON";
    }
    FUN_0003c160(param_1,"a JOIN clause is required before %s",pcVar3);
  }
  else {
    piVar2 = (int *)FUN_00046650(param_3);
    if (piVar2 != (int *)0x0) {
      iVar1 = *piVar2 + -1;
      if (((*(byte *)(param_1 + 0xcc) < 2) || (piVar2[iVar1 * 0x11 + 4] == 0)) ||
         (*(byte *)(param_1 + 0xcc) == 3)) {
        iVar4 = *(int *)(param_4 + 4);
      }
      else {
        FUN_0002f900();
        iVar4 = *(int *)(param_4 + 4);
      }
      if (iVar4 != 0) {
        iVar4 = FUN_0002ed70();
        piVar2[iVar1 * 0x11 + 5] = iVar4;
      }
      piVar2[iVar1 * 0x11 + 7] = param_5;
      piVar2[iVar1 * 0x11 + 0xd] = param_6;
      piVar2[iVar1 * 0x11 + 0xe] = param_7;
      return piVar2;
    }
  }
  if (param_6 != 0) {
    FUN_000432e0();
  }
  if (param_7 != 0) {
    FUN_0002a250();
  }
  if (param_5 == 0) {
    return (int *)0x0;
  }
  FUN_00043210();
  return (int *)0x0;
}


PUSH EBP
PUSH EDI
MOV EDI,EAX
PUSH ESI
PUSH EBX
MOV EBP,ECX
CALL 0x0001d810
ADD EBX,0x978a3
SUB ESP,0x1c
MOV EAX,dword ptr [EAX]
TEST EDX,EDX
MOV dword ptr [ESP + 0xc],EAX
JZ 0x00046800
SUB ESP,0xc
MOV ECX,EBP
MOV EAX,EDI
PUSH dword ptr [ESP + 0x3c]
CALL 0x00046650
ADD ESP,0x10
TEST EAX,EAX
MOV ESI,EAX
JZ 0x0004683d
MOV EAX,dword ptr [EAX]
LEA EBX,[EAX + -0x1]
MOVZX EAX,byte ptr [EDI + 0xcc]
CMP AL,0x1
JBE 0x000467c6
IMUL EDX,EBX,0x44
MOV EDX,dword ptr [ESI + EDX*0x1 + 0x10]
TEST EDX,EDX
JZ 0x000467c6
MOV ECX,dword ptr [ESP + 0x30]
TEST ECX,ECX
JZ 0x000467be
MOV ECX,dword ptr [ESP + 0x30]
CMP dword ptr [ECX],0x0
CMOVNZ EBP,ECX
CMP AL,0x3
JNZ 0x000468b0
MOV EAX,dword ptr [ESP + 0x34]
MOV EDI,dword ptr [EAX + 0x4]
TEST EDI,EDI
JNZ 0x00046898
IMUL EBX,EBX,0x44
MOV EAX,dword ptr [ESP + 0x38]
ADD EBX,ESI
MOV dword ptr [EBX + 0x1c],EAX
MOV EAX,dword ptr [ESP + 0x3c]
MOV dword ptr [EBX + 0x34],EAX
MOV EAX,dword ptr [ESP + 0x40]
MOV dword ptr [EBX + 0x38],EAX
ADD ESP,0x1c
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,dword ptr [ESP + 0x3c]
TEST EAX,EAX
JNZ 0x00046814
MOV EAX,dword ptr [ESP + 0x40]
TEST EAX,EAX
JZ 0x00046774
MOV ESI,dword ptr [ESP + 0x3c]
LEA EDX,[EBX + 0xfffcc6e5]
LEA EAX,[EBX + 0xfffcc5e0]
TEST ESI,ESI
CMOVNZ EAX,EDX
SUB ESP,0x4
PUSH EAX
LEA EAX,[EBX + 0xfffcec38]
PUSH EAX
PUSH EDI
CALL 0x0003c160
ADD ESP,0x10
MOV ECX,dword ptr [ESP + 0x3c]
TEST ECX,ECX
JZ 0x00046852
MOV EDX,dword ptr [ESP + 0x3c]
MOV EAX,dword ptr [ESP + 0xc]
CALL 0x000432e0
MOV EDX,dword ptr [ESP + 0x40]
TEST EDX,EDX
JZ 0x00046867
MOV EDX,dword ptr [ESP + 0x40]
MOV EAX,dword ptr [ESP + 0xc]
CALL 0x0002a250
MOV EAX,dword ptr [ESP + 0x38]
XOR ESI,ESI
TEST EAX,EAX
JZ 0x000467ef
MOV EAX,dword ptr [ESP + 0xc]
MOV EDX,dword ptr [ESP + 0x38]
MOV ECX,0x1
CALL 0x00043210
ADD ESP,0x1c
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDX,EAX
MOV EAX,dword ptr [ESP + 0xc]
CALL 0x0002ed70
IMUL EDX,EBX,0x44
MOV dword ptr [ESI + EDX*0x1 + 0x14],EAX
JMP 0x000467d5
MOV EAX,EDI
MOV ECX,EBP
CALL 0x0002f900
MOV EAX,dword ptr [ESP + 0x34]
MOV EDI,dword ptr [EAX + 0x4]
TEST EDI,EDI
JZ 0x000467d5
JMP 0x00046898
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint * __regparm2\nFUN_00046750(int param_1,int param_2,undefined4 param_3,int param_4,int param_5,int param_6,\n            int param_7)\n\n{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  int iVar4;\n  \n  if ((param_2 == 0) && ((param_6 != 0 || (param_7 != 0)))) {\n    pcVar3 = "USING";\n    if (param_6 != 0) {\n      pcVar3 = "ON";\n    }\n    FUN_0003c160(param_1,"a JOIN clause is required before %s",pcVar3);\n  }\n  else {\n    piVar2 = (int *)FUN_00046650(param_3);\n    if (piVar2 != (int *)0x0) {\n      iVar1 = *piVar2 + -1;\n      if (((*(byte *)(param_1 + 0xcc) < 2) || (piVar2[iVar1 * 0x11 + 4] == 0)) ||\n         (*(byte *)(param_1 + 0xcc) == 3)) {\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      else {\n        FUN_0002f900();\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      if (iVar4 != 0) {\n        iVar4 = FUN_0002ed70();\n        piVar2[iVar1 * 0x11 + 5] = iVar4;\n      }\n      piVar2[iVar1 * 0x11 + 7] = param_5;\n      piVar2[iVar1 * 0x11 + 0xd] = param_6;\n      piVar2[iVar1 * 0x11 + 0xe] = param_7;\n      return piVar2;\n    }\n  }\n  if (param_6 != 0) {\n    FUN_000432e0();\n  }\n  if (param_7 != 0) {\n    FUN_0002a250();\n  }\n  if (param_5 == 0) {\n    return (int *)0x0;\n  }\n  FUN_00043210();\n  return (int *)0x0;\n}\n\n" comment (function_definition "int * __regparm2\nFUN_00046750(int param_1,int param_2,undefined4 param_3,int param_4,int param_5,int param_6,\n            int param_7)\n\n{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  int iVar4;\n  \n  if ((param_2 == 0) && ((param_6 != 0 || (param_7 != 0)))) {\n    pcVar3 = "USING";\n    if (param_6 != 0) {\n      pcVar3 = "ON";\n    }\n    FUN_0003c160(param_1,"a JOIN clause is required before %s",pcVar3);\n  }\n  else {\n    piVar2 = (int *)FUN_00046650(param_3);\n    if (piVar2 != (int *)0x0) {\n      iVar1 = *piVar2 + -1;\n      if (((*(byte *)(param_1 + 0xcc) < 2) || (piVar2[iVar1 * 0x11 + 4] == 0)) ||\n         (*(byte *)(param_1 + 0xcc) == 3)) {\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      else {\n        FUN_0002f900();\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      if (iVar4 != 0) {\n        iVar4 = FUN_0002ed70();\n        piVar2[iVar1 * 0x11 + 5] = iVar4;\n      }\n      piVar2[iVar1 * 0x11 + 7] = param_5;\n      piVar2[iVar1 * 0x11 + 0xd] = param_6;\n      piVar2[iVar1 * 0x11 + 0xe] = param_7;\n      return piVar2;\n    }\n  }\n  if (param_6 != 0) {\n    FUN_000432e0();\n  }\n  if (param_7 != 0) {\n    FUN_0002a250();\n  }\n  if (param_5 == 0) {\n    return (int *)0x0;\n  }\n  FUN_00043210();\n  return (int *)0x0;\n}" primitive_type (pointer_declarator "* __regparm2\nFUN_00046750(int param_1,int param_2,undefined4 param_3,int param_4,int param_5,int param_6,\n            int param_7)" * (ERROR "__regparm2" identifier) (function_declarator "FUN_00046750(int param_1,int param_2,undefined4 param_3,int param_4,int param_5,int param_6,\n            int param_7)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3,int param_4,int param_5,int param_6,\n            int param_7)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "int param_6" primitive_type identifier) , (parameter_declaration "int param_7" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  int iVar4;\n  \n  if ((param_2 == 0) && ((param_6 != 0 || (param_7 != 0)))) {\n    pcVar3 = "USING";\n    if (param_6 != 0) {\n      pcVar3 = "ON";\n    }\n    FUN_0003c160(param_1,"a JOIN clause is required before %s",pcVar3);\n  }\n  else {\n    piVar2 = (int *)FUN_00046650(param_3);\n    if (piVar2 != (int *)0x0) {\n      iVar1 = *piVar2 + -1;\n      if (((*(byte *)(param_1 + 0xcc) < 2) || (piVar2[iVar1 * 0x11 + 4] == 0)) ||\n         (*(byte *)(param_1 + 0xcc) == 3)) {\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      else {\n        FUN_0002f900();\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      if (iVar4 != 0) {\n        iVar4 = FUN_0002ed70();\n        piVar2[iVar1 * 0x11 + 5] = iVar4;\n      }\n      piVar2[iVar1 * 0x11 + 7] = param_5;\n      piVar2[iVar1 * 0x11 + 0xd] = param_6;\n      piVar2[iVar1 * 0x11 + 0xe] = param_7;\n      return piVar2;\n    }\n  }\n  if (param_6 != 0) {\n    FUN_000432e0();\n  }\n  if (param_7 != 0) {\n    FUN_0002a250();\n  }\n  if (param_5 == 0) {\n    return (int *)0x0;\n  }\n  FUN_00043210();\n  return (int *)0x0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (if_statement "if ((param_2 == 0) && ((param_6 != 0 || (param_7 != 0)))) {\n    pcVar3 = "USING";\n    if (param_6 != 0) {\n      pcVar3 = "ON";\n    }\n    FUN_0003c160(param_1,"a JOIN clause is required before %s",pcVar3);\n  }\n  else {\n    piVar2 = (int *)FUN_00046650(param_3);\n    if (piVar2 != (int *)0x0) {\n      iVar1 = *piVar2 + -1;\n      if (((*(byte *)(param_1 + 0xcc) < 2) || (piVar2[iVar1 * 0x11 + 4] == 0)) ||\n         (*(byte *)(param_1 + 0xcc) == 3)) {\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      else {\n        FUN_0002f900();\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      if (iVar4 != 0) {\n        iVar4 = FUN_0002ed70();\n        piVar2[iVar1 * 0x11 + 5] = iVar4;\n      }\n      piVar2[iVar1 * 0x11 + 7] = param_5;\n      piVar2[iVar1 * 0x11 + 0xd] = param_6;\n      piVar2[iVar1 * 0x11 + 0xe] = param_7;\n      return piVar2;\n    }\n  }" if (parenthesized_expression "((param_2 == 0) && ((param_6 != 0 || (param_7 != 0))))" ( (binary_expression "(param_2 == 0) && ((param_6 != 0 || (param_7 != 0)))" (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) && (parenthesized_expression "((param_6 != 0 || (param_7 != 0)))" ( (parenthesized_expression "(param_6 != 0 || (param_7 != 0))" ( (binary_expression "param_6 != 0 || (param_7 != 0)" (binary_expression "param_6 != 0" identifier != number_literal) || (parenthesized_expression "(param_7 != 0)" ( (binary_expression "param_7 != 0" identifier != number_literal) ))) )) ))) )) (compound_statement "{\n    pcVar3 = "USING";\n    if (param_6 != 0) {\n      pcVar3 = "ON";\n    }\n    FUN_0003c160(param_1,"a JOIN clause is required before %s",pcVar3);\n  }" { (expression_statement "pcVar3 = "USING";" (assignment_expression "pcVar3 = "USING"" identifier = (string_literal ""USING"" " string_content ")) ;) (if_statement "if (param_6 != 0) {\n      pcVar3 = "ON";\n    }" if (parenthesized_expression "(param_6 != 0)" ( (binary_expression "param_6 != 0" identifier != number_literal) )) (compound_statement "{\n      pcVar3 = "ON";\n    }" { (expression_statement "pcVar3 = "ON";" (assignment_expression "pcVar3 = "ON"" identifier = (string_literal ""ON"" " string_content ")) ;) })) (expression_statement "FUN_0003c160(param_1,"a JOIN clause is required before %s",pcVar3);" (call_expression "FUN_0003c160(param_1,"a JOIN clause is required before %s",pcVar3)" identifier (argument_list "(param_1,"a JOIN clause is required before %s",pcVar3)" ( identifier , (string_literal ""a JOIN clause is required before %s"" " string_content ") , identifier ))) ;) }) (else_clause "else {\n    piVar2 = (int *)FUN_00046650(param_3);\n    if (piVar2 != (int *)0x0) {\n      iVar1 = *piVar2 + -1;\n      if (((*(byte *)(param_1 + 0xcc) < 2) || (piVar2[iVar1 * 0x11 + 4] == 0)) ||\n         (*(byte *)(param_1 + 0xcc) == 3)) {\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      else {\n        FUN_0002f900();\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      if (iVar4 != 0) {\n        iVar4 = FUN_0002ed70();\n        piVar2[iVar1 * 0x11 + 5] = iVar4;\n      }\n      piVar2[iVar1 * 0x11 + 7] = param_5;\n      piVar2[iVar1 * 0x11 + 0xd] = param_6;\n      piVar2[iVar1 * 0x11 + 0xe] = param_7;\n      return piVar2;\n    }\n  }" else (compound_statement "{\n    piVar2 = (int *)FUN_00046650(param_3);\n    if (piVar2 != (int *)0x0) {\n      iVar1 = *piVar2 + -1;\n      if (((*(byte *)(param_1 + 0xcc) < 2) || (piVar2[iVar1 * 0x11 + 4] == 0)) ||\n         (*(byte *)(param_1 + 0xcc) == 3)) {\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      else {\n        FUN_0002f900();\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      if (iVar4 != 0) {\n        iVar4 = FUN_0002ed70();\n        piVar2[iVar1 * 0x11 + 5] = iVar4;\n      }\n      piVar2[iVar1 * 0x11 + 7] = param_5;\n      piVar2[iVar1 * 0x11 + 0xd] = param_6;\n      piVar2[iVar1 * 0x11 + 0xe] = param_7;\n      return piVar2;\n    }\n  }" { (expression_statement "piVar2 = (int *)FUN_00046650(param_3);" (assignment_expression "piVar2 = (int *)FUN_00046650(param_3)" identifier = (cast_expression "(int *)FUN_00046650(param_3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00046650(param_3)" identifier (argument_list "(param_3)" ( identifier ))))) ;) (if_statement "if (piVar2 != (int *)0x0) {\n      iVar1 = *piVar2 + -1;\n      if (((*(byte *)(param_1 + 0xcc) < 2) || (piVar2[iVar1 * 0x11 + 4] == 0)) ||\n         (*(byte *)(param_1 + 0xcc) == 3)) {\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      else {\n        FUN_0002f900();\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      if (iVar4 != 0) {\n        iVar4 = FUN_0002ed70();\n        piVar2[iVar1 * 0x11 + 5] = iVar4;\n      }\n      piVar2[iVar1 * 0x11 + 7] = param_5;\n      piVar2[iVar1 * 0x11 + 0xd] = param_6;\n      piVar2[iVar1 * 0x11 + 0xe] = param_7;\n      return piVar2;\n    }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar1 = *piVar2 + -1;\n      if (((*(byte *)(param_1 + 0xcc) < 2) || (piVar2[iVar1 * 0x11 + 4] == 0)) ||\n         (*(byte *)(param_1 + 0xcc) == 3)) {\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      else {\n        FUN_0002f900();\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      if (iVar4 != 0) {\n        iVar4 = FUN_0002ed70();\n        piVar2[iVar1 * 0x11 + 5] = iVar4;\n      }\n      piVar2[iVar1 * 0x11 + 7] = param_5;\n      piVar2[iVar1 * 0x11 + 0xd] = param_6;\n      piVar2[iVar1 * 0x11 + 0xe] = param_7;\n      return piVar2;\n    }" { (expression_statement "iVar1 = *piVar2 + -1;" (assignment_expression "iVar1 = *piVar2 + -1" identifier = (binary_expression "*piVar2 + -1" (pointer_expression "*piVar2" * identifier) + number_literal)) ;) (if_statement "if (((*(byte *)(param_1 + 0xcc) < 2) || (piVar2[iVar1 * 0x11 + 4] == 0)) ||\n         (*(byte *)(param_1 + 0xcc) == 3)) {\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      else {\n        FUN_0002f900();\n        iVar4 = *(int *)(param_4 + 4);\n      }" if (parenthesized_expression "(((*(byte *)(param_1 + 0xcc) < 2) || (piVar2[iVar1 * 0x11 + 4] == 0)) ||\n         (*(byte *)(param_1 + 0xcc) == 3))" ( (binary_expression "((*(byte *)(param_1 + 0xcc) < 2) || (piVar2[iVar1 * 0x11 + 4] == 0)) ||\n         (*(byte *)(param_1 + 0xcc) == 3)" (parenthesized_expression "((*(byte *)(param_1 + 0xcc) < 2) || (piVar2[iVar1 * 0x11 + 4] == 0))" ( (binary_expression "(*(byte *)(param_1 + 0xcc) < 2) || (piVar2[iVar1 * 0x11 + 4] == 0)" (parenthesized_expression "(*(byte *)(param_1 + 0xcc) < 2)" ( (binary_expression "*(byte *)(param_1 + 0xcc) < 2" (pointer_expression "*(byte *)(param_1 + 0xcc)" * (cast_expression "(byte *)(param_1 + 0xcc)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xcc)" ( (binary_expression "param_1 + 0xcc" identifier + number_literal) )))) < number_literal) )) || (parenthesized_expression "(piVar2[iVar1 * 0x11 + 4] == 0)" ( (binary_expression "piVar2[iVar1 * 0x11 + 4] == 0" (subscript_expression "piVar2[iVar1 * 0x11 + 4]" identifier [ (binary_expression "iVar1 * 0x11 + 4" (binary_expression "iVar1 * 0x11" identifier * number_literal) + number_literal) ]) == number_literal) ))) )) || (parenthesized_expression "(*(byte *)(param_1 + 0xcc) == 3)" ( (binary_expression "*(byte *)(param_1 + 0xcc) == 3" (pointer_expression "*(byte *)(param_1 + 0xcc)" * (cast_expression "(byte *)(param_1 + 0xcc)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xcc)" ( (binary_expression "param_1 + 0xcc" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n        iVar4 = *(int *)(param_4 + 4);\n      }" { (expression_statement "iVar4 = *(int *)(param_4 + 4);" (assignment_expression "iVar4 = *(int *)(param_4 + 4)" identifier = (pointer_expression "*(int *)(param_4 + 4)" * (cast_expression "(int *)(param_4 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 4)" ( (binary_expression "param_4 + 4" identifier + number_literal) ))))) ;) }) (else_clause "else {\n        FUN_0002f900();\n        iVar4 = *(int *)(param_4 + 4);\n      }" else (compound_statement "{\n        FUN_0002f900();\n        iVar4 = *(int *)(param_4 + 4);\n      }" { (expression_statement "FUN_0002f900();" (call_expression "FUN_0002f900()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar4 = *(int *)(param_4 + 4);" (assignment_expression "iVar4 = *(int *)(param_4 + 4)" identifier = (pointer_expression "*(int *)(param_4 + 4)" * (cast_expression "(int *)(param_4 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 4)" ( (binary_expression "param_4 + 4" identifier + number_literal) ))))) ;) }))) (if_statement "if (iVar4 != 0) {\n        iVar4 = FUN_0002ed70();\n        piVar2[iVar1 * 0x11 + 5] = iVar4;\n      }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar4 = FUN_0002ed70();\n        piVar2[iVar1 * 0x11 + 5] = iVar4;\n      }" { (expression_statement "iVar4 = FUN_0002ed70();" (assignment_expression "iVar4 = FUN_0002ed70()" identifier = (call_expression "FUN_0002ed70()" identifier (argument_list "()" ( )))) ;) (expression_statement "piVar2[iVar1 * 0x11 + 5] = iVar4;" (assignment_expression "piVar2[iVar1 * 0x11 + 5] = iVar4" (subscript_expression "piVar2[iVar1 * 0x11 + 5]" identifier [ (binary_expression "iVar1 * 0x11 + 5" (binary_expression "iVar1 * 0x11" identifier * number_literal) + number_literal) ]) = identifier) ;) })) (expression_statement "piVar2[iVar1 * 0x11 + 7] = param_5;" (assignment_expression "piVar2[iVar1 * 0x11 + 7] = param_5" (subscript_expression "piVar2[iVar1 * 0x11 + 7]" identifier [ (binary_expression "iVar1 * 0x11 + 7" (binary_expression "iVar1 * 0x11" identifier * number_literal) + number_literal) ]) = identifier) ;) (expression_statement "piVar2[iVar1 * 0x11 + 0xd] = param_6;" (assignment_expression "piVar2[iVar1 * 0x11 + 0xd] = param_6" (subscript_expression "piVar2[iVar1 * 0x11 + 0xd]" identifier [ (binary_expression "iVar1 * 0x11 + 0xd" (binary_expression "iVar1 * 0x11" identifier * number_literal) + number_literal) ]) = identifier) ;) (expression_statement "piVar2[iVar1 * 0x11 + 0xe] = param_7;" (assignment_expression "piVar2[iVar1 * 0x11 + 0xe] = param_7" (subscript_expression "piVar2[iVar1 * 0x11 + 0xe]" identifier [ (binary_expression "iVar1 * 0x11 + 0xe" (binary_expression "iVar1 * 0x11" identifier * number_literal) + number_literal) ]) = identifier) ;) (return_statement "return piVar2;" return identifier ;) })) }))) (if_statement "if (param_6 != 0) {\n    FUN_000432e0();\n  }" if (parenthesized_expression "(param_6 != 0)" ( (binary_expression "param_6 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_000432e0();\n  }" { (expression_statement "FUN_000432e0();" (call_expression "FUN_000432e0()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (param_7 != 0) {\n    FUN_0002a250();\n  }" if (parenthesized_expression "(param_7 != 0)" ( (binary_expression "param_7 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_0002a250();\n  }" { (expression_statement "FUN_0002a250();" (call_expression "FUN_0002a250()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (param_5 == 0) {\n    return (int *)0x0;\n  }" if (parenthesized_expression "(param_5 == 0)" ( (binary_expression "param_5 == 0" identifier == number_literal) )) (compound_statement "{\n    return (int *)0x0;\n  }" { (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "FUN_00043210();" (call_expression "FUN_00043210()" identifier (argument_list "()" ( ))) ;) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nSrcList * __regparm3\nsqlite3SrcListAppendFromTerm\n          (Parse *pParse,SrcList *p,Token *pTable,Token *pDatabase,Token *pAlias,Select *pSubquery,\n          Expr *pOn,IdList *pUsing)\n\n{\n  sqlite3 *db;\n  int iVar1;\n  uint uVar2;\n  SrcList *pSVar3;\n  char *pcVar4;\n  \n  db = pParse->db;\n  if ((p == (SrcList *)0x0) && ((pOn != (Expr *)0x0 || (pUsing != (IdList *)0x0)))) {\n    pcVar4 = "USING";\n    if (pOn != (Expr *)0x0) {\n      pcVar4 = "ON";\n    }\n    sqlite3ErrorMsg(pParse,"a JOIN clause is required before %s",pcVar4);\nLAB_0004683d:\n    if (pOn != (Expr *)0x0) {\n      sqlite3ExprDeleteNN(db,pOn);\n    }\n    if (pUsing != (IdList *)0x0) {\n      sqlite3IdListDelete(db,pUsing);\n    }\n    if (pSubquery == (Select *)0x0) {\n      return (SrcList *)0x0;\n    }\n    clearSelect(db,pSubquery,1);\n    return (SrcList *)0x0;\n  }\n  pSVar3 = sqlite3SrcListAppend(pParse,p,pTable,pDatabase);\n  if (pSVar3 == (SrcList *)0x0) goto LAB_0004683d;\n  iVar1 = pSVar3->nSrc;\n  if ((1 < pParse->eParseMode) && (pcVar4 = pSVar3->a[iVar1 + -1].zName, pcVar4 != (char *)0x0)) {\n    if ((pDatabase != (Token *)0x0) && (pDatabase->z != (char *)0x0)) {\n      pTable = pDatabase;\n    }\n    if (pParse->eParseMode != 3) {\n      sqlite3RenameTokenMap(pParse,pcVar4,pTable);\n      uVar2 = pAlias->n;\n      goto joined_r0x000467cf;\n    }\n  }\n  uVar2 = pAlias->n;\njoined_r0x000467cf:\n  if (uVar2 != 0) {\n    pcVar4 = sqlite3NameFromToken(db,pAlias);\n    pSVar3->a[iVar1 + -1].zAlias = pcVar4;\n  }\n  pSVar3->a[iVar1 + -1].pSelect = pSubquery;\n  pSVar3->a[iVar1 + -1].pOn = pOn;\n  pSVar3->a[iVar1 + -1].pUsing = pUsing;\n  return pSVar3;\n}\n\n" comment (ERROR "SrcList * __regparm3\nsqlite3SrcListAppendFromTerm\n          (Parse *pParse,SrcList *p,Token *pTable,Token *pDatabase,Token *pAlias,Select *pSubquery,\n          Expr *pOn,IdList *pUsing)" (binary_expression "SrcList * __regparm3\nsqlite3SrcListAppendFromTerm\n          (Parse *pParse,SrcList *p,Token *pTable,Token *pDatabase,Token *pAlias,Select *pSubquery,\n          Expr *pOn,IdList *pUsing)" identifier * (ERROR "__regparm3" identifier) (call_expression "sqlite3SrcListAppendFromTerm\n          (Parse *pParse,SrcList *p,Token *pTable,Token *pDatabase,Token *pAlias,Select *pSubquery,\n          Expr *pOn,IdList *pUsing)" identifier (argument_list "(Parse *pParse,SrcList *p,Token *pTable,Token *pDatabase,Token *pAlias,Select *pSubquery,\n          Expr *pOn,IdList *pUsing)" ( (binary_expression "Parse *pParse" identifier * identifier) , (binary_expression "SrcList *p" identifier * identifier) , (binary_expression "Token *pTable" identifier * identifier) , (binary_expression "Token *pDatabase" identifier * identifier) , (binary_expression "Token *pAlias" identifier * identifier) , (binary_expression "Select *pSubquery" identifier * identifier) , (binary_expression "Expr *pOn" identifier * identifier) , (binary_expression "IdList *pUsing" identifier * identifier) ))))) (compound_statement "{\n  sqlite3 *db;\n  int iVar1;\n  uint uVar2;\n  SrcList *pSVar3;\n  char *pcVar4;\n  \n  db = pParse->db;\n  if ((p == (SrcList *)0x0) && ((pOn != (Expr *)0x0 || (pUsing != (IdList *)0x0)))) {\n    pcVar4 = "USING";\n    if (pOn != (Expr *)0x0) {\n      pcVar4 = "ON";\n    }\n    sqlite3ErrorMsg(pParse,"a JOIN clause is required before %s",pcVar4);\nLAB_0004683d:\n    if (pOn != (Expr *)0x0) {\n      sqlite3ExprDeleteNN(db,pOn);\n    }\n    if (pUsing != (IdList *)0x0) {\n      sqlite3IdListDelete(db,pUsing);\n    }\n    if (pSubquery == (Select *)0x0) {\n      return (SrcList *)0x0;\n    }\n    clearSelect(db,pSubquery,1);\n    return (SrcList *)0x0;\n  }\n  pSVar3 = sqlite3SrcListAppend(pParse,p,pTable,pDatabase);\n  if (pSVar3 == (SrcList *)0x0) goto LAB_0004683d;\n  iVar1 = pSVar3->nSrc;\n  if ((1 < pParse->eParseMode) && (pcVar4 = pSVar3->a[iVar1 + -1].zName, pcVar4 != (char *)0x0)) {\n    if ((pDatabase != (Token *)0x0) && (pDatabase->z != (char *)0x0)) {\n      pTable = pDatabase;\n    }\n    if (pParse->eParseMode != 3) {\n      sqlite3RenameTokenMap(pParse,pcVar4,pTable);\n      uVar2 = pAlias->n;\n      goto joined_r0x000467cf;\n    }\n  }\n  uVar2 = pAlias->n;\njoined_r0x000467cf:\n  if (uVar2 != 0) {\n    pcVar4 = sqlite3NameFromToken(db,pAlias);\n    pSVar3->a[iVar1 + -1].zAlias = pcVar4;\n  }\n  pSVar3->a[iVar1 + -1].pSelect = pSubquery;\n  pSVar3->a[iVar1 + -1].pOn = pOn;\n  pSVar3->a[iVar1 + -1].pUsing = pUsing;\n  return pSVar3;\n}" { (declaration "sqlite3 *db;" type_identifier (pointer_declarator "*db" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "uint uVar2;" type_identifier identifier ;) (declaration "SrcList *pSVar3;" type_identifier (pointer_declarator "*pSVar3" * identifier) ;) (declaration "char *pcVar4;" primitive_type (pointer_declarator "*pcVar4" * identifier) ;) (expression_statement "db = pParse->db;" (assignment_expression "db = pParse->db" identifier = (field_expression "pParse->db" identifier -> field_identifier)) ;) (if_statement "if ((p == (SrcList *)0x0) && ((pOn != (Expr *)0x0 || (pUsing != (IdList *)0x0)))) {\n    pcVar4 = "USING";\n    if (pOn != (Expr *)0x0) {\n      pcVar4 = "ON";\n    }\n    sqlite3ErrorMsg(pParse,"a JOIN clause is required before %s",pcVar4);\nLAB_0004683d:\n    if (pOn != (Expr *)0x0) {\n      sqlite3ExprDeleteNN(db,pOn);\n    }\n    if (pUsing != (IdList *)0x0) {\n      sqlite3IdListDelete(db,pUsing);\n    }\n    if (pSubquery == (Select *)0x0) {\n      return (SrcList *)0x0;\n    }\n    clearSelect(db,pSubquery,1);\n    return (SrcList *)0x0;\n  }" if (parenthesized_expression "((p == (SrcList *)0x0) && ((pOn != (Expr *)0x0 || (pUsing != (IdList *)0x0))))" ( (binary_expression "(p == (SrcList *)0x0) && ((pOn != (Expr *)0x0 || (pUsing != (IdList *)0x0)))" (parenthesized_expression "(p == (SrcList *)0x0)" ( (binary_expression "p == (SrcList *)0x0" identifier == (cast_expression "(SrcList *)0x0" ( (type_descriptor "SrcList *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "((pOn != (Expr *)0x0 || (pUsing != (IdList *)0x0)))" ( (parenthesized_expression "(pOn != (Expr *)0x0 || (pUsing != (IdList *)0x0))" ( (binary_expression "pOn != (Expr *)0x0 || (pUsing != (IdList *)0x0)" (binary_expression "pOn != (Expr *)0x0" identifier != (cast_expression "(Expr *)0x0" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) || (parenthesized_expression "(pUsing != (IdList *)0x0)" ( (binary_expression "pUsing != (IdList *)0x0" identifier != (cast_expression "(IdList *)0x0" ( (type_descriptor "IdList *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) ))) )) (compound_statement "{\n    pcVar4 = "USING";\n    if (pOn != (Expr *)0x0) {\n      pcVar4 = "ON";\n    }\n    sqlite3ErrorMsg(pParse,"a JOIN clause is required before %s",pcVar4);\nLAB_0004683d:\n    if (pOn != (Expr *)0x0) {\n      sqlite3ExprDeleteNN(db,pOn);\n    }\n    if (pUsing != (IdList *)0x0) {\n      sqlite3IdListDelete(db,pUsing);\n    }\n    if (pSubquery == (Select *)0x0) {\n      return (SrcList *)0x0;\n    }\n    clearSelect(db,pSubquery,1);\n    return (SrcList *)0x0;\n  }" { (expression_statement "pcVar4 = "USING";" (assignment_expression "pcVar4 = "USING"" identifier = (string_literal ""USING"" " string_content ")) ;) (if_statement "if (pOn != (Expr *)0x0) {\n      pcVar4 = "ON";\n    }" if (parenthesized_expression "(pOn != (Expr *)0x0)" ( (binary_expression "pOn != (Expr *)0x0" identifier != (cast_expression "(Expr *)0x0" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pcVar4 = "ON";\n    }" { (expression_statement "pcVar4 = "ON";" (assignment_expression "pcVar4 = "ON"" identifier = (string_literal ""ON"" " string_content ")) ;) })) (expression_statement "sqlite3ErrorMsg(pParse,"a JOIN clause is required before %s",pcVar4);" (call_expression "sqlite3ErrorMsg(pParse,"a JOIN clause is required before %s",pcVar4)" identifier (argument_list "(pParse,"a JOIN clause is required before %s",pcVar4)" ( identifier , (string_literal ""a JOIN clause is required before %s"" " string_content ") , identifier ))) ;) (labeled_statement "LAB_0004683d:\n    if (pOn != (Expr *)0x0) {\n      sqlite3ExprDeleteNN(db,pOn);\n    }" statement_identifier : (if_statement "if (pOn != (Expr *)0x0) {\n      sqlite3ExprDeleteNN(db,pOn);\n    }" if (parenthesized_expression "(pOn != (Expr *)0x0)" ( (binary_expression "pOn != (Expr *)0x0" identifier != (cast_expression "(Expr *)0x0" ( (type_descriptor "Expr *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      sqlite3ExprDeleteNN(db,pOn);\n    }" { (expression_statement "sqlite3ExprDeleteNN(db,pOn);" (call_expression "sqlite3ExprDeleteNN(db,pOn)" identifier (argument_list "(db,pOn)" ( identifier , identifier ))) ;) }))) (if_statement "if (pUsing != (IdList *)0x0) {\n      sqlite3IdListDelete(db,pUsing);\n    }" if (parenthesized_expression "(pUsing != (IdList *)0x0)" ( (binary_expression "pUsing != (IdList *)0x0" identifier != (cast_expression "(IdList *)0x0" ( (type_descriptor "IdList *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      sqlite3IdListDelete(db,pUsing);\n    }" { (expression_statement "sqlite3IdListDelete(db,pUsing);" (call_expression "sqlite3IdListDelete(db,pUsing)" identifier (argument_list "(db,pUsing)" ( identifier , identifier ))) ;) })) (if_statement "if (pSubquery == (Select *)0x0) {\n      return (SrcList *)0x0;\n    }" if (parenthesized_expression "(pSubquery == (Select *)0x0)" ( (binary_expression "pSubquery == (Select *)0x0" identifier == (cast_expression "(Select *)0x0" ( (type_descriptor "Select *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return (SrcList *)0x0;\n    }" { (return_statement "return (SrcList *)0x0;" return (cast_expression "(SrcList *)0x0" ( (type_descriptor "SrcList *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "clearSelect(db,pSubquery,1);" (call_expression "clearSelect(db,pSubquery,1)" identifier (argument_list "(db,pSubquery,1)" ( identifier , identifier , number_literal ))) ;) (return_statement "return (SrcList *)0x0;" return (cast_expression "(SrcList *)0x0" ( (type_descriptor "SrcList *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "pSVar3 = sqlite3SrcListAppend(pParse,p,pTable,pDatabase);" (assignment_expression "pSVar3 = sqlite3SrcListAppend(pParse,p,pTable,pDatabase)" identifier = (call_expression "sqlite3SrcListAppend(pParse,p,pTable,pDatabase)" identifier (argument_list "(pParse,p,pTable,pDatabase)" ( identifier , identifier , identifier , identifier )))) ;) (if_statement "if (pSVar3 == (SrcList *)0x0) goto LAB_0004683d;" if (parenthesized_expression "(pSVar3 == (SrcList *)0x0)" ( (binary_expression "pSVar3 == (SrcList *)0x0" identifier == (cast_expression "(SrcList *)0x0" ( (type_descriptor "SrcList *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (goto_statement "goto LAB_0004683d;" goto statement_identifier ;)) (expression_statement "iVar1 = pSVar3->nSrc;" (assignment_expression "iVar1 = pSVar3->nSrc" identifier = (field_expression "pSVar3->nSrc" identifier -> field_identifier)) ;) (if_statement "if ((1 < pParse->eParseMode) && (pcVar4 = pSVar3->a[iVar1 + -1].zName, pcVar4 != (char *)0x0)) {\n    if ((pDatabase != (Token *)0x0) && (pDatabase->z != (char *)0x0)) {\n      pTable = pDatabase;\n    }\n    if (pParse->eParseMode != 3) {\n      sqlite3RenameTokenMap(pParse,pcVar4,pTable);\n      uVar2 = pAlias->n;\n      goto joined_r0x000467cf;\n    }\n  }" if (parenthesized_expression "((1 < pParse->eParseMode) && (pcVar4 = pSVar3->a[iVar1 + -1].zName, pcVar4 != (char *)0x0))" ( (binary_expression "(1 < pParse->eParseMode) && (pcVar4 = pSVar3->a[iVar1 + -1].zName, pcVar4 != (char *)0x0)" (parenthesized_expression "(1 < pParse->eParseMode)" ( (binary_expression "1 < pParse->eParseMode" number_literal < (field_expression "pParse->eParseMode" identifier -> field_identifier)) )) && (parenthesized_expression "(pcVar4 = pSVar3->a[iVar1 + -1].zName, pcVar4 != (char *)0x0)" ( (comma_expression "pcVar4 = pSVar3->a[iVar1 + -1].zName, pcVar4 != (char *)0x0" (assignment_expression "pcVar4 = pSVar3->a[iVar1 + -1].zName" identifier = (field_expression "pSVar3->a[iVar1 + -1].zName" (subscript_expression "pSVar3->a[iVar1 + -1]" (field_expression "pSVar3->a" identifier -> field_identifier) [ (binary_expression "iVar1 + -1" identifier + number_literal) ]) . field_identifier)) , (binary_expression "pcVar4 != (char *)0x0" identifier != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal))) ))) )) (compound_statement "{\n    if ((pDatabase != (Token *)0x0) && (pDatabase->z != (char *)0x0)) {\n      pTable = pDatabase;\n    }\n    if (pParse->eParseMode != 3) {\n      sqlite3RenameTokenMap(pParse,pcVar4,pTable);\n      uVar2 = pAlias->n;\n      goto joined_r0x000467cf;\n    }\n  }" { (if_statement "if ((pDatabase != (Token *)0x0) && (pDatabase->z != (char *)0x0)) {\n      pTable = pDatabase;\n    }" if (parenthesized_expression "((pDatabase != (Token *)0x0) && (pDatabase->z != (char *)0x0))" ( (binary_expression "(pDatabase != (Token *)0x0) && (pDatabase->z != (char *)0x0)" (parenthesized_expression "(pDatabase != (Token *)0x0)" ( (binary_expression "pDatabase != (Token *)0x0" identifier != (cast_expression "(Token *)0x0" ( (type_descriptor "Token *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(pDatabase->z != (char *)0x0)" ( (binary_expression "pDatabase->z != (char *)0x0" (field_expression "pDatabase->z" identifier -> field_identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n      pTable = pDatabase;\n    }" { (expression_statement "pTable = pDatabase;" (assignment_expression "pTable = pDatabase" identifier = identifier) ;) })) (if_statement "if (pParse->eParseMode != 3) {\n      sqlite3RenameTokenMap(pParse,pcVar4,pTable);\n      uVar2 = pAlias->n;\n      goto joined_r0x000467cf;\n    }" if (parenthesized_expression "(pParse->eParseMode != 3)" ( (binary_expression "pParse->eParseMode != 3" (field_expression "pParse->eParseMode" identifier -> field_identifier) != number_literal) )) (compound_statement "{\n      sqlite3RenameTokenMap(pParse,pcVar4,pTable);\n      uVar2 = pAlias->n;\n      goto joined_r0x000467cf;\n    }" { (expression_statement "sqlite3RenameTokenMap(pParse,pcVar4,pTable);" (call_expression "sqlite3RenameTokenMap(pParse,pcVar4,pTable)" identifier (argument_list "(pParse,pcVar4,pTable)" ( identifier , identifier , identifier ))) ;) (expression_statement "uVar2 = pAlias->n;" (assignment_expression "uVar2 = pAlias->n" identifier = (field_expression "pAlias->n" identifier -> field_identifier)) ;) (goto_statement "goto joined_r0x000467cf;" goto statement_identifier ;) })) })) (expression_statement "uVar2 = pAlias->n;" (assignment_expression "uVar2 = pAlias->n" identifier = (field_expression "pAlias->n" identifier -> field_identifier)) ;) (labeled_statement "joined_r0x000467cf:\n  if (uVar2 != 0) {\n    pcVar4 = sqlite3NameFromToken(db,pAlias);\n    pSVar3->a[iVar1 + -1].zAlias = pcVar4;\n  }" statement_identifier : (if_statement "if (uVar2 != 0) {\n    pcVar4 = sqlite3NameFromToken(db,pAlias);\n    pSVar3->a[iVar1 + -1].zAlias = pcVar4;\n  }" if (parenthesized_expression "(uVar2 != 0)" ( (binary_expression "uVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    pcVar4 = sqlite3NameFromToken(db,pAlias);\n    pSVar3->a[iVar1 + -1].zAlias = pcVar4;\n  }" { (expression_statement "pcVar4 = sqlite3NameFromToken(db,pAlias);" (assignment_expression "pcVar4 = sqlite3NameFromToken(db,pAlias)" identifier = (call_expression "sqlite3NameFromToken(db,pAlias)" identifier (argument_list "(db,pAlias)" ( identifier , identifier )))) ;) (expression_statement "pSVar3->a[iVar1 + -1].zAlias = pcVar4;" (assignment_expression "pSVar3->a[iVar1 + -1].zAlias = pcVar4" (field_expression "pSVar3->a[iVar1 + -1].zAlias" (subscript_expression "pSVar3->a[iVar1 + -1]" (field_expression "pSVar3->a" identifier -> field_identifier) [ (binary_expression "iVar1 + -1" identifier + number_literal) ]) . field_identifier) = identifier) ;) }))) (expression_statement "pSVar3->a[iVar1 + -1].pSelect = pSubquery;" (assignment_expression "pSVar3->a[iVar1 + -1].pSelect = pSubquery" (field_expression "pSVar3->a[iVar1 + -1].pSelect" (subscript_expression "pSVar3->a[iVar1 + -1]" (field_expression "pSVar3->a" identifier -> field_identifier) [ (binary_expression "iVar1 + -1" identifier + number_literal) ]) . field_identifier) = identifier) ;) (expression_statement "pSVar3->a[iVar1 + -1].pOn = pOn;" (assignment_expression "pSVar3->a[iVar1 + -1].pOn = pOn" (field_expression "pSVar3->a[iVar1 + -1].pOn" (subscript_expression "pSVar3->a[iVar1 + -1]" (field_expression "pSVar3->a" identifier -> field_identifier) [ (binary_expression "iVar1 + -1" identifier + number_literal) ]) . field_identifier) = identifier) ;) (expression_statement "pSVar3->a[iVar1 + -1].pUsing = pUsing;" (assignment_expression "pSVar3->a[iVar1 + -1].pUsing = pUsing" (field_expression "pSVar3->a[iVar1 + -1].pUsing" (subscript_expression "pSVar3->a[iVar1 + -1]" (field_expression "pSVar3->a" identifier -> field_identifier) [ (binary_expression "iVar1 + -1" identifier + number_literal) ]) . field_identifier) = identifier) ;) (return_statement "return pSVar3;" return identifier ;) }))
(translation_unit "int * __regparm2\nFUN_00046750(int param_1,int param_2,undefined4 param_3,int param_4,int param_5,int param_6,\n            int param_7)\n\n{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  int iVar4;\n  \n  if ((param_2 == 0) && ((param_6 != 0 || (param_7 != 0)))) {\n    pcVar3 = "USING";\n    if (param_6 != 0) {\n      pcVar3 = "ON";\n    }\n    FUN_0003c160(param_1,"a JOIN clause is required before %s",pcVar3);\n  }\n  else {\n    piVar2 = (int *)FUN_00046650(param_3);\n    if (piVar2 != (int *)0x0) {\n      iVar1 = *piVar2 + -1;\n      if (((*(byte *)(param_1 + 0xcc) < 2) || (piVar2[iVar1 * 0x11 + 4] == 0)) ||\n         (*(byte *)(param_1 + 0xcc) == 3)) {\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      else {\n        FUN_0002f900();\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      if (iVar4 != 0) {\n        iVar4 = FUN_0002ed70();\n        piVar2[iVar1 * 0x11 + 5] = iVar4;\n      }\n      piVar2[iVar1 * 0x11 + 7] = param_5;\n      piVar2[iVar1 * 0x11 + 0xd] = param_6;\n      piVar2[iVar1 * 0x11 + 0xe] = param_7;\n      return piVar2;\n    }\n  }\n  if (param_6 != 0) {\n    FUN_000432e0();\n  }\n  if (param_7 != 0) {\n    FUN_0002a250();\n  }\n  if (param_5 == 0) {\n    return (int *)0x0;\n  }\n  FUN_00043210();\n  return (int *)0x0;\n}\n\n" (function_definition "int * __regparm2\nFUN_00046750(int param_1,int param_2,undefined4 param_3,int param_4,int param_5,int param_6,\n            int param_7)\n\n{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  int iVar4;\n  \n  if ((param_2 == 0) && ((param_6 != 0 || (param_7 != 0)))) {\n    pcVar3 = "USING";\n    if (param_6 != 0) {\n      pcVar3 = "ON";\n    }\n    FUN_0003c160(param_1,"a JOIN clause is required before %s",pcVar3);\n  }\n  else {\n    piVar2 = (int *)FUN_00046650(param_3);\n    if (piVar2 != (int *)0x0) {\n      iVar1 = *piVar2 + -1;\n      if (((*(byte *)(param_1 + 0xcc) < 2) || (piVar2[iVar1 * 0x11 + 4] == 0)) ||\n         (*(byte *)(param_1 + 0xcc) == 3)) {\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      else {\n        FUN_0002f900();\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      if (iVar4 != 0) {\n        iVar4 = FUN_0002ed70();\n        piVar2[iVar1 * 0x11 + 5] = iVar4;\n      }\n      piVar2[iVar1 * 0x11 + 7] = param_5;\n      piVar2[iVar1 * 0x11 + 0xd] = param_6;\n      piVar2[iVar1 * 0x11 + 0xe] = param_7;\n      return piVar2;\n    }\n  }\n  if (param_6 != 0) {\n    FUN_000432e0();\n  }\n  if (param_7 != 0) {\n    FUN_0002a250();\n  }\n  if (param_5 == 0) {\n    return (int *)0x0;\n  }\n  FUN_00043210();\n  return (int *)0x0;\n}" primitive_type (pointer_declarator "* __regparm2\nFUN_00046750(int param_1,int param_2,undefined4 param_3,int param_4,int param_5,int param_6,\n            int param_7)" * (ERROR "__regparm2" identifier) (function_declarator "FUN_00046750(int param_1,int param_2,undefined4 param_3,int param_4,int param_5,int param_6,\n            int param_7)" identifier (parameter_list "(int param_1,int param_2,undefined4 param_3,int param_4,int param_5,int param_6,\n            int param_7)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "int param_4" primitive_type identifier) , (parameter_declaration "int param_5" primitive_type identifier) , (parameter_declaration "int param_6" primitive_type identifier) , (parameter_declaration "int param_7" primitive_type identifier) )))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  int iVar4;\n  \n  if ((param_2 == 0) && ((param_6 != 0 || (param_7 != 0)))) {\n    pcVar3 = "USING";\n    if (param_6 != 0) {\n      pcVar3 = "ON";\n    }\n    FUN_0003c160(param_1,"a JOIN clause is required before %s",pcVar3);\n  }\n  else {\n    piVar2 = (int *)FUN_00046650(param_3);\n    if (piVar2 != (int *)0x0) {\n      iVar1 = *piVar2 + -1;\n      if (((*(byte *)(param_1 + 0xcc) < 2) || (piVar2[iVar1 * 0x11 + 4] == 0)) ||\n         (*(byte *)(param_1 + 0xcc) == 3)) {\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      else {\n        FUN_0002f900();\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      if (iVar4 != 0) {\n        iVar4 = FUN_0002ed70();\n        piVar2[iVar1 * 0x11 + 5] = iVar4;\n      }\n      piVar2[iVar1 * 0x11 + 7] = param_5;\n      piVar2[iVar1 * 0x11 + 0xd] = param_6;\n      piVar2[iVar1 * 0x11 + 0xe] = param_7;\n      return piVar2;\n    }\n  }\n  if (param_6 != 0) {\n    FUN_000432e0();\n  }\n  if (param_7 != 0) {\n    FUN_0002a250();\n  }\n  if (param_5 == 0) {\n    return (int *)0x0;\n  }\n  FUN_00043210();\n  return (int *)0x0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int *piVar2;" primitive_type (pointer_declarator "*piVar2" * identifier) ;) (declaration "char *pcVar3;" primitive_type (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (if_statement "if ((param_2 == 0) && ((param_6 != 0 || (param_7 != 0)))) {\n    pcVar3 = "USING";\n    if (param_6 != 0) {\n      pcVar3 = "ON";\n    }\n    FUN_0003c160(param_1,"a JOIN clause is required before %s",pcVar3);\n  }\n  else {\n    piVar2 = (int *)FUN_00046650(param_3);\n    if (piVar2 != (int *)0x0) {\n      iVar1 = *piVar2 + -1;\n      if (((*(byte *)(param_1 + 0xcc) < 2) || (piVar2[iVar1 * 0x11 + 4] == 0)) ||\n         (*(byte *)(param_1 + 0xcc) == 3)) {\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      else {\n        FUN_0002f900();\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      if (iVar4 != 0) {\n        iVar4 = FUN_0002ed70();\n        piVar2[iVar1 * 0x11 + 5] = iVar4;\n      }\n      piVar2[iVar1 * 0x11 + 7] = param_5;\n      piVar2[iVar1 * 0x11 + 0xd] = param_6;\n      piVar2[iVar1 * 0x11 + 0xe] = param_7;\n      return piVar2;\n    }\n  }" if (parenthesized_expression "((param_2 == 0) && ((param_6 != 0 || (param_7 != 0))))" ( (binary_expression "(param_2 == 0) && ((param_6 != 0 || (param_7 != 0)))" (parenthesized_expression "(param_2 == 0)" ( (binary_expression "param_2 == 0" identifier == number_literal) )) && (parenthesized_expression "((param_6 != 0 || (param_7 != 0)))" ( (parenthesized_expression "(param_6 != 0 || (param_7 != 0))" ( (binary_expression "param_6 != 0 || (param_7 != 0)" (binary_expression "param_6 != 0" identifier != number_literal) || (parenthesized_expression "(param_7 != 0)" ( (binary_expression "param_7 != 0" identifier != number_literal) ))) )) ))) )) (compound_statement "{\n    pcVar3 = "USING";\n    if (param_6 != 0) {\n      pcVar3 = "ON";\n    }\n    FUN_0003c160(param_1,"a JOIN clause is required before %s",pcVar3);\n  }" { (expression_statement "pcVar3 = "USING";" (assignment_expression "pcVar3 = "USING"" identifier = (string_literal ""USING"" " string_content ")) ;) (if_statement "if (param_6 != 0) {\n      pcVar3 = "ON";\n    }" if (parenthesized_expression "(param_6 != 0)" ( (binary_expression "param_6 != 0" identifier != number_literal) )) (compound_statement "{\n      pcVar3 = "ON";\n    }" { (expression_statement "pcVar3 = "ON";" (assignment_expression "pcVar3 = "ON"" identifier = (string_literal ""ON"" " string_content ")) ;) })) (expression_statement "FUN_0003c160(param_1,"a JOIN clause is required before %s",pcVar3);" (call_expression "FUN_0003c160(param_1,"a JOIN clause is required before %s",pcVar3)" identifier (argument_list "(param_1,"a JOIN clause is required before %s",pcVar3)" ( identifier , (string_literal ""a JOIN clause is required before %s"" " string_content ") , identifier ))) ;) }) (else_clause "else {\n    piVar2 = (int *)FUN_00046650(param_3);\n    if (piVar2 != (int *)0x0) {\n      iVar1 = *piVar2 + -1;\n      if (((*(byte *)(param_1 + 0xcc) < 2) || (piVar2[iVar1 * 0x11 + 4] == 0)) ||\n         (*(byte *)(param_1 + 0xcc) == 3)) {\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      else {\n        FUN_0002f900();\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      if (iVar4 != 0) {\n        iVar4 = FUN_0002ed70();\n        piVar2[iVar1 * 0x11 + 5] = iVar4;\n      }\n      piVar2[iVar1 * 0x11 + 7] = param_5;\n      piVar2[iVar1 * 0x11 + 0xd] = param_6;\n      piVar2[iVar1 * 0x11 + 0xe] = param_7;\n      return piVar2;\n    }\n  }" else (compound_statement "{\n    piVar2 = (int *)FUN_00046650(param_3);\n    if (piVar2 != (int *)0x0) {\n      iVar1 = *piVar2 + -1;\n      if (((*(byte *)(param_1 + 0xcc) < 2) || (piVar2[iVar1 * 0x11 + 4] == 0)) ||\n         (*(byte *)(param_1 + 0xcc) == 3)) {\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      else {\n        FUN_0002f900();\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      if (iVar4 != 0) {\n        iVar4 = FUN_0002ed70();\n        piVar2[iVar1 * 0x11 + 5] = iVar4;\n      }\n      piVar2[iVar1 * 0x11 + 7] = param_5;\n      piVar2[iVar1 * 0x11 + 0xd] = param_6;\n      piVar2[iVar1 * 0x11 + 0xe] = param_7;\n      return piVar2;\n    }\n  }" { (expression_statement "piVar2 = (int *)FUN_00046650(param_3);" (assignment_expression "piVar2 = (int *)FUN_00046650(param_3)" identifier = (cast_expression "(int *)FUN_00046650(param_3)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_00046650(param_3)" identifier (argument_list "(param_3)" ( identifier ))))) ;) (if_statement "if (piVar2 != (int *)0x0) {\n      iVar1 = *piVar2 + -1;\n      if (((*(byte *)(param_1 + 0xcc) < 2) || (piVar2[iVar1 * 0x11 + 4] == 0)) ||\n         (*(byte *)(param_1 + 0xcc) == 3)) {\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      else {\n        FUN_0002f900();\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      if (iVar4 != 0) {\n        iVar4 = FUN_0002ed70();\n        piVar2[iVar1 * 0x11 + 5] = iVar4;\n      }\n      piVar2[iVar1 * 0x11 + 7] = param_5;\n      piVar2[iVar1 * 0x11 + 0xd] = param_6;\n      piVar2[iVar1 * 0x11 + 0xe] = param_7;\n      return piVar2;\n    }" if (parenthesized_expression "(piVar2 != (int *)0x0)" ( (binary_expression "piVar2 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      iVar1 = *piVar2 + -1;\n      if (((*(byte *)(param_1 + 0xcc) < 2) || (piVar2[iVar1 * 0x11 + 4] == 0)) ||\n         (*(byte *)(param_1 + 0xcc) == 3)) {\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      else {\n        FUN_0002f900();\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      if (iVar4 != 0) {\n        iVar4 = FUN_0002ed70();\n        piVar2[iVar1 * 0x11 + 5] = iVar4;\n      }\n      piVar2[iVar1 * 0x11 + 7] = param_5;\n      piVar2[iVar1 * 0x11 + 0xd] = param_6;\n      piVar2[iVar1 * 0x11 + 0xe] = param_7;\n      return piVar2;\n    }" { (expression_statement "iVar1 = *piVar2 + -1;" (assignment_expression "iVar1 = *piVar2 + -1" identifier = (binary_expression "*piVar2 + -1" (pointer_expression "*piVar2" * identifier) + number_literal)) ;) (if_statement "if (((*(byte *)(param_1 + 0xcc) < 2) || (piVar2[iVar1 * 0x11 + 4] == 0)) ||\n         (*(byte *)(param_1 + 0xcc) == 3)) {\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      else {\n        FUN_0002f900();\n        iVar4 = *(int *)(param_4 + 4);\n      }" if (parenthesized_expression "(((*(byte *)(param_1 + 0xcc) < 2) || (piVar2[iVar1 * 0x11 + 4] == 0)) ||\n         (*(byte *)(param_1 + 0xcc) == 3))" ( (binary_expression "((*(byte *)(param_1 + 0xcc) < 2) || (piVar2[iVar1 * 0x11 + 4] == 0)) ||\n         (*(byte *)(param_1 + 0xcc) == 3)" (parenthesized_expression "((*(byte *)(param_1 + 0xcc) < 2) || (piVar2[iVar1 * 0x11 + 4] == 0))" ( (binary_expression "(*(byte *)(param_1 + 0xcc) < 2) || (piVar2[iVar1 * 0x11 + 4] == 0)" (parenthesized_expression "(*(byte *)(param_1 + 0xcc) < 2)" ( (binary_expression "*(byte *)(param_1 + 0xcc) < 2" (pointer_expression "*(byte *)(param_1 + 0xcc)" * (cast_expression "(byte *)(param_1 + 0xcc)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xcc)" ( (binary_expression "param_1 + 0xcc" identifier + number_literal) )))) < number_literal) )) || (parenthesized_expression "(piVar2[iVar1 * 0x11 + 4] == 0)" ( (binary_expression "piVar2[iVar1 * 0x11 + 4] == 0" (subscript_expression "piVar2[iVar1 * 0x11 + 4]" identifier [ (binary_expression "iVar1 * 0x11 + 4" (binary_expression "iVar1 * 0x11" identifier * number_literal) + number_literal) ]) == number_literal) ))) )) || (parenthesized_expression "(*(byte *)(param_1 + 0xcc) == 3)" ( (binary_expression "*(byte *)(param_1 + 0xcc) == 3" (pointer_expression "*(byte *)(param_1 + 0xcc)" * (cast_expression "(byte *)(param_1 + 0xcc)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xcc)" ( (binary_expression "param_1 + 0xcc" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n        iVar4 = *(int *)(param_4 + 4);\n      }" { (expression_statement "iVar4 = *(int *)(param_4 + 4);" (assignment_expression "iVar4 = *(int *)(param_4 + 4)" identifier = (pointer_expression "*(int *)(param_4 + 4)" * (cast_expression "(int *)(param_4 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 4)" ( (binary_expression "param_4 + 4" identifier + number_literal) ))))) ;) }) (else_clause "else {\n        FUN_0002f900();\n        iVar4 = *(int *)(param_4 + 4);\n      }" else (compound_statement "{\n        FUN_0002f900();\n        iVar4 = *(int *)(param_4 + 4);\n      }" { (expression_statement "FUN_0002f900();" (call_expression "FUN_0002f900()" identifier (argument_list "()" ( ))) ;) (expression_statement "iVar4 = *(int *)(param_4 + 4);" (assignment_expression "iVar4 = *(int *)(param_4 + 4)" identifier = (pointer_expression "*(int *)(param_4 + 4)" * (cast_expression "(int *)(param_4 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 4)" ( (binary_expression "param_4 + 4" identifier + number_literal) ))))) ;) }))) (if_statement "if (iVar4 != 0) {\n        iVar4 = FUN_0002ed70();\n        piVar2[iVar1 * 0x11 + 5] = iVar4;\n      }" if (parenthesized_expression "(iVar4 != 0)" ( (binary_expression "iVar4 != 0" identifier != number_literal) )) (compound_statement "{\n        iVar4 = FUN_0002ed70();\n        piVar2[iVar1 * 0x11 + 5] = iVar4;\n      }" { (expression_statement "iVar4 = FUN_0002ed70();" (assignment_expression "iVar4 = FUN_0002ed70()" identifier = (call_expression "FUN_0002ed70()" identifier (argument_list "()" ( )))) ;) (expression_statement "piVar2[iVar1 * 0x11 + 5] = iVar4;" (assignment_expression "piVar2[iVar1 * 0x11 + 5] = iVar4" (subscript_expression "piVar2[iVar1 * 0x11 + 5]" identifier [ (binary_expression "iVar1 * 0x11 + 5" (binary_expression "iVar1 * 0x11" identifier * number_literal) + number_literal) ]) = identifier) ;) })) (expression_statement "piVar2[iVar1 * 0x11 + 7] = param_5;" (assignment_expression "piVar2[iVar1 * 0x11 + 7] = param_5" (subscript_expression "piVar2[iVar1 * 0x11 + 7]" identifier [ (binary_expression "iVar1 * 0x11 + 7" (binary_expression "iVar1 * 0x11" identifier * number_literal) + number_literal) ]) = identifier) ;) (expression_statement "piVar2[iVar1 * 0x11 + 0xd] = param_6;" (assignment_expression "piVar2[iVar1 * 0x11 + 0xd] = param_6" (subscript_expression "piVar2[iVar1 * 0x11 + 0xd]" identifier [ (binary_expression "iVar1 * 0x11 + 0xd" (binary_expression "iVar1 * 0x11" identifier * number_literal) + number_literal) ]) = identifier) ;) (expression_statement "piVar2[iVar1 * 0x11 + 0xe] = param_7;" (assignment_expression "piVar2[iVar1 * 0x11 + 0xe] = param_7" (subscript_expression "piVar2[iVar1 * 0x11 + 0xe]" identifier [ (binary_expression "iVar1 * 0x11 + 0xe" (binary_expression "iVar1 * 0x11" identifier * number_literal) + number_literal) ]) = identifier) ;) (return_statement "return piVar2;" return identifier ;) })) }))) (if_statement "if (param_6 != 0) {\n    FUN_000432e0();\n  }" if (parenthesized_expression "(param_6 != 0)" ( (binary_expression "param_6 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_000432e0();\n  }" { (expression_statement "FUN_000432e0();" (call_expression "FUN_000432e0()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (param_7 != 0) {\n    FUN_0002a250();\n  }" if (parenthesized_expression "(param_7 != 0)" ( (binary_expression "param_7 != 0" identifier != number_literal) )) (compound_statement "{\n    FUN_0002a250();\n  }" { (expression_statement "FUN_0002a250();" (call_expression "FUN_0002a250()" identifier (argument_list "()" ( ))) ;) })) (if_statement "if (param_5 == 0) {\n    return (int *)0x0;\n  }" if (parenthesized_expression "(param_5 == 0)" ( (binary_expression "param_5 == 0" identifier == number_literal) )) (compound_statement "{\n    return (int *)0x0;\n  }" { (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "FUN_00043210();" (call_expression "FUN_00043210()" identifier (argument_list "()" ( ))) ;) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) && (parenthesized_expression ( (parenthesized_expression ( (binary_expression (binary_expression IDENT != LIT) || (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (string_literal " string_content ")) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT ))) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) + LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) < LIT) )) || (parenthesized_expression ( (binary_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) == LIT) ))) )) || (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) = IDENT) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) = IDENT) ;) (return_statement return IDENT ;) })) }))) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })))
(function_definition "int * __regparm2\nFUN_00046750(int param_1,int param_2,undefined4 param_3,int param_4,int param_5,int param_6,\n            int param_7)\n\n{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  int iVar4;\n  \n  if ((param_2 == 0) && ((param_6 != 0 || (param_7 != 0)))) {\n    pcVar3 = "USING";\n    if (param_6 != 0) {\n      pcVar3 = "ON";\n    }\n    FUN_0003c160(param_1,"a JOIN clause is required before %s",pcVar3);\n  }\n  else {\n    piVar2 = (int *)FUN_00046650(param_3);\n    if (piVar2 != (int *)0x0) {\n      iVar1 = *piVar2 + -1;\n      if (((*(byte *)(param_1 + 0xcc) < 2) || (piVar2[iVar1 * 0x11 + 4] == 0)) ||\n         (*(byte *)(param_1 + 0xcc) == 3)) {\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      else {\n        FUN_0002f900();\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      if (iVar4 != 0) {\n        iVar4 = FUN_0002ed70();\n        piVar2[iVar1 * 0x11 + 5] = iVar4;\n      }\n      piVar2[iVar1 * 0x11 + 7] = param_5;\n      piVar2[iVar1 * 0x11 + 0xd] = param_6;\n      piVar2[iVar1 * 0x11 + 0xe] = param_7;\n      return piVar2;\n    }\n  }\n  if (param_6 != 0) {\n    FUN_000432e0();\n  }\n  if (param_7 != 0) {\n    FUN_0002a250();\n  }\n  if (param_5 == 0) {\n    return (int *)0x0;\n  }\n  FUN_00043210();\n  return (int *)0x0;\n}" (primitive_type "int") (pointer_declarator "* __regparm2\nFUN_00046750(int param_1,int param_2,undefined4 param_3,int param_4,int param_5,int param_6,\n            int param_7)" (* "*") (ERROR "__regparm2" (identifier "__regparm2")) (function_declarator "FUN_00046750(int param_1,int param_2,undefined4 param_3,int param_4,int param_5,int param_6,\n            int param_7)" (identifier "FUN_00046750") (parameter_list "(int param_1,int param_2,undefined4 param_3,int param_4,int param_5,int param_6,\n            int param_7)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "int param_4" (primitive_type "int") (identifier "param_4")) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) (, ",") (parameter_declaration "int param_6" (primitive_type "int") (identifier "param_6")) (, ",") (parameter_declaration "int param_7" (primitive_type "int") (identifier "param_7")) () ")")))) (compound_statement "{\n  int iVar1;\n  int *piVar2;\n  char *pcVar3;\n  int iVar4;\n  \n  if ((param_2 == 0) && ((param_6 != 0 || (param_7 != 0)))) {\n    pcVar3 = "USING";\n    if (param_6 != 0) {\n      pcVar3 = "ON";\n    }\n    FUN_0003c160(param_1,"a JOIN clause is required before %s",pcVar3);\n  }\n  else {\n    piVar2 = (int *)FUN_00046650(param_3);\n    if (piVar2 != (int *)0x0) {\n      iVar1 = *piVar2 + -1;\n      if (((*(byte *)(param_1 + 0xcc) < 2) || (piVar2[iVar1 * 0x11 + 4] == 0)) ||\n         (*(byte *)(param_1 + 0xcc) == 3)) {\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      else {\n        FUN_0002f900();\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      if (iVar4 != 0) {\n        iVar4 = FUN_0002ed70();\n        piVar2[iVar1 * 0x11 + 5] = iVar4;\n      }\n      piVar2[iVar1 * 0x11 + 7] = param_5;\n      piVar2[iVar1 * 0x11 + 0xd] = param_6;\n      piVar2[iVar1 * 0x11 + 0xe] = param_7;\n      return piVar2;\n    }\n  }\n  if (param_6 != 0) {\n    FUN_000432e0();\n  }\n  if (param_7 != 0) {\n    FUN_0002a250();\n  }\n  if (param_5 == 0) {\n    return (int *)0x0;\n  }\n  FUN_00043210();\n  return (int *)0x0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int *piVar2;" (primitive_type "int") (pointer_declarator "*piVar2" (* "*") (identifier "piVar2")) (; ";")) (declaration "char *pcVar3;" (primitive_type "char") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (if_statement "if ((param_2 == 0) && ((param_6 != 0 || (param_7 != 0)))) {\n    pcVar3 = "USING";\n    if (param_6 != 0) {\n      pcVar3 = "ON";\n    }\n    FUN_0003c160(param_1,"a JOIN clause is required before %s",pcVar3);\n  }\n  else {\n    piVar2 = (int *)FUN_00046650(param_3);\n    if (piVar2 != (int *)0x0) {\n      iVar1 = *piVar2 + -1;\n      if (((*(byte *)(param_1 + 0xcc) < 2) || (piVar2[iVar1 * 0x11 + 4] == 0)) ||\n         (*(byte *)(param_1 + 0xcc) == 3)) {\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      else {\n        FUN_0002f900();\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      if (iVar4 != 0) {\n        iVar4 = FUN_0002ed70();\n        piVar2[iVar1 * 0x11 + 5] = iVar4;\n      }\n      piVar2[iVar1 * 0x11 + 7] = param_5;\n      piVar2[iVar1 * 0x11 + 0xd] = param_6;\n      piVar2[iVar1 * 0x11 + 0xe] = param_7;\n      return piVar2;\n    }\n  }" (if "if") (parenthesized_expression "((param_2 == 0) && ((param_6 != 0 || (param_7 != 0))))" (( "(") (binary_expression "(param_2 == 0) && ((param_6 != 0 || (param_7 != 0)))" (parenthesized_expression "(param_2 == 0)" (( "(") (binary_expression "param_2 == 0" (identifier "param_2") (== "==") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "((param_6 != 0 || (param_7 != 0)))" (( "(") (parenthesized_expression "(param_6 != 0 || (param_7 != 0))" (( "(") (binary_expression "param_6 != 0 || (param_7 != 0)" (binary_expression "param_6 != 0" (identifier "param_6") (!= "!=") (number_literal "0")) (|| "||") (parenthesized_expression "(param_7 != 0)" (( "(") (binary_expression "param_7 != 0" (identifier "param_7") (!= "!=") (number_literal "0")) () ")"))) () ")")) () ")"))) () ")")) (compound_statement "{\n    pcVar3 = "USING";\n    if (param_6 != 0) {\n      pcVar3 = "ON";\n    }\n    FUN_0003c160(param_1,"a JOIN clause is required before %s",pcVar3);\n  }" ({ "{") (expression_statement "pcVar3 = "USING";" (assignment_expression "pcVar3 = "USING"" (identifier "pcVar3") (= "=") (string_literal ""USING"" (" """) (string_content "USING") (" """))) (; ";")) (if_statement "if (param_6 != 0) {\n      pcVar3 = "ON";\n    }" (if "if") (parenthesized_expression "(param_6 != 0)" (( "(") (binary_expression "param_6 != 0" (identifier "param_6") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      pcVar3 = "ON";\n    }" ({ "{") (expression_statement "pcVar3 = "ON";" (assignment_expression "pcVar3 = "ON"" (identifier "pcVar3") (= "=") (string_literal ""ON"" (" """) (string_content "ON") (" """))) (; ";")) (} "}"))) (expression_statement "FUN_0003c160(param_1,"a JOIN clause is required before %s",pcVar3);" (call_expression "FUN_0003c160(param_1,"a JOIN clause is required before %s",pcVar3)" (identifier "FUN_0003c160") (argument_list "(param_1,"a JOIN clause is required before %s",pcVar3)" (( "(") (identifier "param_1") (, ",") (string_literal ""a JOIN clause is required before %s"" (" """) (string_content "a JOIN clause is required before %s") (" """)) (, ",") (identifier "pcVar3") () ")"))) (; ";")) (} "}")) (else_clause "else {\n    piVar2 = (int *)FUN_00046650(param_3);\n    if (piVar2 != (int *)0x0) {\n      iVar1 = *piVar2 + -1;\n      if (((*(byte *)(param_1 + 0xcc) < 2) || (piVar2[iVar1 * 0x11 + 4] == 0)) ||\n         (*(byte *)(param_1 + 0xcc) == 3)) {\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      else {\n        FUN_0002f900();\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      if (iVar4 != 0) {\n        iVar4 = FUN_0002ed70();\n        piVar2[iVar1 * 0x11 + 5] = iVar4;\n      }\n      piVar2[iVar1 * 0x11 + 7] = param_5;\n      piVar2[iVar1 * 0x11 + 0xd] = param_6;\n      piVar2[iVar1 * 0x11 + 0xe] = param_7;\n      return piVar2;\n    }\n  }" (else "else") (compound_statement "{\n    piVar2 = (int *)FUN_00046650(param_3);\n    if (piVar2 != (int *)0x0) {\n      iVar1 = *piVar2 + -1;\n      if (((*(byte *)(param_1 + 0xcc) < 2) || (piVar2[iVar1 * 0x11 + 4] == 0)) ||\n         (*(byte *)(param_1 + 0xcc) == 3)) {\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      else {\n        FUN_0002f900();\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      if (iVar4 != 0) {\n        iVar4 = FUN_0002ed70();\n        piVar2[iVar1 * 0x11 + 5] = iVar4;\n      }\n      piVar2[iVar1 * 0x11 + 7] = param_5;\n      piVar2[iVar1 * 0x11 + 0xd] = param_6;\n      piVar2[iVar1 * 0x11 + 0xe] = param_7;\n      return piVar2;\n    }\n  }" ({ "{") (expression_statement "piVar2 = (int *)FUN_00046650(param_3);" (assignment_expression "piVar2 = (int *)FUN_00046650(param_3)" (identifier "piVar2") (= "=") (cast_expression "(int *)FUN_00046650(param_3)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_00046650(param_3)" (identifier "FUN_00046650") (argument_list "(param_3)" (( "(") (identifier "param_3") () ")"))))) (; ";")) (if_statement "if (piVar2 != (int *)0x0) {\n      iVar1 = *piVar2 + -1;\n      if (((*(byte *)(param_1 + 0xcc) < 2) || (piVar2[iVar1 * 0x11 + 4] == 0)) ||\n         (*(byte *)(param_1 + 0xcc) == 3)) {\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      else {\n        FUN_0002f900();\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      if (iVar4 != 0) {\n        iVar4 = FUN_0002ed70();\n        piVar2[iVar1 * 0x11 + 5] = iVar4;\n      }\n      piVar2[iVar1 * 0x11 + 7] = param_5;\n      piVar2[iVar1 * 0x11 + 0xd] = param_6;\n      piVar2[iVar1 * 0x11 + 0xe] = param_7;\n      return piVar2;\n    }" (if "if") (parenthesized_expression "(piVar2 != (int *)0x0)" (( "(") (binary_expression "piVar2 != (int *)0x0" (identifier "piVar2") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      iVar1 = *piVar2 + -1;\n      if (((*(byte *)(param_1 + 0xcc) < 2) || (piVar2[iVar1 * 0x11 + 4] == 0)) ||\n         (*(byte *)(param_1 + 0xcc) == 3)) {\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      else {\n        FUN_0002f900();\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      if (iVar4 != 0) {\n        iVar4 = FUN_0002ed70();\n        piVar2[iVar1 * 0x11 + 5] = iVar4;\n      }\n      piVar2[iVar1 * 0x11 + 7] = param_5;\n      piVar2[iVar1 * 0x11 + 0xd] = param_6;\n      piVar2[iVar1 * 0x11 + 0xe] = param_7;\n      return piVar2;\n    }" ({ "{") (expression_statement "iVar1 = *piVar2 + -1;" (assignment_expression "iVar1 = *piVar2 + -1" (identifier "iVar1") (= "=") (binary_expression "*piVar2 + -1" (pointer_expression "*piVar2" (* "*") (identifier "piVar2")) (+ "+") (number_literal "-1"))) (; ";")) (if_statement "if (((*(byte *)(param_1 + 0xcc) < 2) || (piVar2[iVar1 * 0x11 + 4] == 0)) ||\n         (*(byte *)(param_1 + 0xcc) == 3)) {\n        iVar4 = *(int *)(param_4 + 4);\n      }\n      else {\n        FUN_0002f900();\n        iVar4 = *(int *)(param_4 + 4);\n      }" (if "if") (parenthesized_expression "(((*(byte *)(param_1 + 0xcc) < 2) || (piVar2[iVar1 * 0x11 + 4] == 0)) ||\n         (*(byte *)(param_1 + 0xcc) == 3))" (( "(") (binary_expression "((*(byte *)(param_1 + 0xcc) < 2) || (piVar2[iVar1 * 0x11 + 4] == 0)) ||\n         (*(byte *)(param_1 + 0xcc) == 3)" (parenthesized_expression "((*(byte *)(param_1 + 0xcc) < 2) || (piVar2[iVar1 * 0x11 + 4] == 0))" (( "(") (binary_expression "(*(byte *)(param_1 + 0xcc) < 2) || (piVar2[iVar1 * 0x11 + 4] == 0)" (parenthesized_expression "(*(byte *)(param_1 + 0xcc) < 2)" (( "(") (binary_expression "*(byte *)(param_1 + 0xcc) < 2" (pointer_expression "*(byte *)(param_1 + 0xcc)" (* "*") (cast_expression "(byte *)(param_1 + 0xcc)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xcc)" (( "(") (binary_expression "param_1 + 0xcc" (identifier "param_1") (+ "+") (number_literal "0xcc")) () ")")))) (< "<") (number_literal "2")) () ")")) (|| "||") (parenthesized_expression "(piVar2[iVar1 * 0x11 + 4] == 0)" (( "(") (binary_expression "piVar2[iVar1 * 0x11 + 4] == 0" (subscript_expression "piVar2[iVar1 * 0x11 + 4]" (identifier "piVar2") ([ "[") (binary_expression "iVar1 * 0x11 + 4" (binary_expression "iVar1 * 0x11" (identifier "iVar1") (* "*") (number_literal "0x11")) (+ "+") (number_literal "4")) (] "]")) (== "==") (number_literal "0")) () ")"))) () ")")) (|| "||") (parenthesized_expression "(*(byte *)(param_1 + 0xcc) == 3)" (( "(") (binary_expression "*(byte *)(param_1 + 0xcc) == 3" (pointer_expression "*(byte *)(param_1 + 0xcc)" (* "*") (cast_expression "(byte *)(param_1 + 0xcc)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xcc)" (( "(") (binary_expression "param_1 + 0xcc" (identifier "param_1") (+ "+") (number_literal "0xcc")) () ")")))) (== "==") (number_literal "3")) () ")"))) () ")")) (compound_statement "{\n        iVar4 = *(int *)(param_4 + 4);\n      }" ({ "{") (expression_statement "iVar4 = *(int *)(param_4 + 4);" (assignment_expression "iVar4 = *(int *)(param_4 + 4)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_4 + 4)" (* "*") (cast_expression "(int *)(param_4 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 4)" (( "(") (binary_expression "param_4 + 4" (identifier "param_4") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (} "}")) (else_clause "else {\n        FUN_0002f900();\n        iVar4 = *(int *)(param_4 + 4);\n      }" (else "else") (compound_statement "{\n        FUN_0002f900();\n        iVar4 = *(int *)(param_4 + 4);\n      }" ({ "{") (expression_statement "FUN_0002f900();" (call_expression "FUN_0002f900()" (identifier "FUN_0002f900") (argument_list "()" (( "(") () ")"))) (; ";")) (expression_statement "iVar4 = *(int *)(param_4 + 4);" (assignment_expression "iVar4 = *(int *)(param_4 + 4)" (identifier "iVar4") (= "=") (pointer_expression "*(int *)(param_4 + 4)" (* "*") (cast_expression "(int *)(param_4 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 4)" (( "(") (binary_expression "param_4 + 4" (identifier "param_4") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (} "}")))) (if_statement "if (iVar4 != 0) {\n        iVar4 = FUN_0002ed70();\n        piVar2[iVar1 * 0x11 + 5] = iVar4;\n      }" (if "if") (parenthesized_expression "(iVar4 != 0)" (( "(") (binary_expression "iVar4 != 0" (identifier "iVar4") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n        iVar4 = FUN_0002ed70();\n        piVar2[iVar1 * 0x11 + 5] = iVar4;\n      }" ({ "{") (expression_statement "iVar4 = FUN_0002ed70();" (assignment_expression "iVar4 = FUN_0002ed70()" (identifier "iVar4") (= "=") (call_expression "FUN_0002ed70()" (identifier "FUN_0002ed70") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "piVar2[iVar1 * 0x11 + 5] = iVar4;" (assignment_expression "piVar2[iVar1 * 0x11 + 5] = iVar4" (subscript_expression "piVar2[iVar1 * 0x11 + 5]" (identifier "piVar2") ([ "[") (binary_expression "iVar1 * 0x11 + 5" (binary_expression "iVar1 * 0x11" (identifier "iVar1") (* "*") (number_literal "0x11")) (+ "+") (number_literal "5")) (] "]")) (= "=") (identifier "iVar4")) (; ";")) (} "}"))) (expression_statement "piVar2[iVar1 * 0x11 + 7] = param_5;" (assignment_expression "piVar2[iVar1 * 0x11 + 7] = param_5" (subscript_expression "piVar2[iVar1 * 0x11 + 7]" (identifier "piVar2") ([ "[") (binary_expression "iVar1 * 0x11 + 7" (binary_expression "iVar1 * 0x11" (identifier "iVar1") (* "*") (number_literal "0x11")) (+ "+") (number_literal "7")) (] "]")) (= "=") (identifier "param_5")) (; ";")) (expression_statement "piVar2[iVar1 * 0x11 + 0xd] = param_6;" (assignment_expression "piVar2[iVar1 * 0x11 + 0xd] = param_6" (subscript_expression "piVar2[iVar1 * 0x11 + 0xd]" (identifier "piVar2") ([ "[") (binary_expression "iVar1 * 0x11 + 0xd" (binary_expression "iVar1 * 0x11" (identifier "iVar1") (* "*") (number_literal "0x11")) (+ "+") (number_literal "0xd")) (] "]")) (= "=") (identifier "param_6")) (; ";")) (expression_statement "piVar2[iVar1 * 0x11 + 0xe] = param_7;" (assignment_expression "piVar2[iVar1 * 0x11 + 0xe] = param_7" (subscript_expression "piVar2[iVar1 * 0x11 + 0xe]" (identifier "piVar2") ([ "[") (binary_expression "iVar1 * 0x11 + 0xe" (binary_expression "iVar1 * 0x11" (identifier "iVar1") (* "*") (number_literal "0x11")) (+ "+") (number_literal "0xe")) (] "]")) (= "=") (identifier "param_7")) (; ";")) (return_statement "return piVar2;" (return "return") (identifier "piVar2") (; ";")) (} "}"))) (} "}")))) (if_statement "if (param_6 != 0) {\n    FUN_000432e0();\n  }" (if "if") (parenthesized_expression "(param_6 != 0)" (( "(") (binary_expression "param_6 != 0" (identifier "param_6") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_000432e0();\n  }" ({ "{") (expression_statement "FUN_000432e0();" (call_expression "FUN_000432e0()" (identifier "FUN_000432e0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (if_statement "if (param_7 != 0) {\n    FUN_0002a250();\n  }" (if "if") (parenthesized_expression "(param_7 != 0)" (( "(") (binary_expression "param_7 != 0" (identifier "param_7") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_0002a250();\n  }" ({ "{") (expression_statement "FUN_0002a250();" (call_expression "FUN_0002a250()" (identifier "FUN_0002a250") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (if_statement "if (param_5 == 0) {\n    return (int *)0x0;\n  }" (if "if") (parenthesized_expression "(param_5 == 0)" (( "(") (binary_expression "param_5 == 0" (identifier "param_5") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    return (int *)0x0;\n  }" ({ "{") (return_statement "return (int *)0x0;" (return "return") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (expression_statement "FUN_00043210();" (call_expression "FUN_00043210()" (identifier "FUN_00043210") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return (int *)0x0;" (return "return") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

type_3 * __regparm3
sqlite3SrcListAppendFromTerm
          (Parse *pParse,type_3 *var_1,type_7 *pTable,type_7 *var_13,type_7 *pAlias,type_6 *var_7,
          type_4 *var_2,type_5 *var_3)

{
  type_1 *db;
  int var_11;
  type_2 var_15;
  type_3 *var_10;
  char *var_12;
  
  db = pParse->db;
  if ((var_1 == (type_3 *)0x0) && ((var_2 != (type_4 *)0x0 || (var_3 != (type_5 *)0x0)))) {
    var_12 = "USING";
    if (var_2 != (type_4 *)0x0) {
      var_12 = "ON";
    }
    var_4(pParse,"a JOIN clause is required before %s",var_12);
LAB_0004683d:
    if (var_2 != (type_4 *)0x0) {
      var_5(db,var_2);
    }
    if (var_3 != (type_5 *)0x0) {
      var_6(db,var_3);
    }
    if (var_7 == (type_6 *)0x0) {
      return (type_3 *)0x0;
    }
    var_8(db,var_7,1);
    return (type_3 *)0x0;
  }
  var_10 = var_9(pParse,var_1,pTable,var_13);
  if (var_10 == (type_3 *)0x0) goto LAB_0004683d;
  var_11 = var_10->nSrc;
  if ((1 < pParse->eParseMode) && (var_12 = var_10->a[var_11 + -1].zName, var_12 != (char *)0x0)) {
    if ((var_13 != (type_7 *)0x0) && (var_13->z != (char *)0x0)) {
      pTable = var_13;
    }
    if (pParse->eParseMode != 3) {
      var_14(pParse,var_12,pTable);
      var_15 = pAlias->n;
      goto joined_r0x000467cf;
    }
  }
  var_15 = pAlias->n;
joined_r0x000467cf:
  if (var_15 != 0) {
    var_12 = var_16(db,pAlias);
    var_10->a[var_11 + -1].zAlias = var_12;
  }
  var_10->a[var_11 + -1].pSelect = var_7;
  var_10->a[var_11 + -1].var_2 = var_2;
  var_10->a[var_11 + -1].var_3 = var_3;
  return var_10;
}


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

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

int * __regparm2
MASKED(int param_1,int param_2,undefined4 param_3,int param_4,int param_5,int param_6,
            int param_7)

{
  int iVar1;
  int *piVar2;
  char *pcVar3;
  int iVar4;
  
  if ((param_2 == 0) && ((param_6 != 0 || (param_7 != 0)))) {
    pcVar3 = "USING";
    if (param_6 != 0) {
      pcVar3 = "ON";
    }
    FUN_0003c160(param_1,"a JOIN clause is required before %s",pcVar3);
  }
  else {
    piVar2 = (int *)FUN_00046650(param_3);
    if (piVar2 != (int *)0x0) {
      iVar1 = *piVar2 + -1;
      if (((*(byte *)(param_1 + 0xcc) < 2) || (piVar2[iVar1 * 0x11 + 4] == 0)) ||
         (*(byte *)(param_1 + 0xcc) == 3)) {
        iVar4 = *(int *)(param_4 + 4);
      }
      else {
        FUN_0002f900();
        iVar4 = *(int *)(param_4 + 4);
      }
      if (iVar4 != 0) {
        iVar4 = FUN_0002ed70();
        piVar2[iVar1 * 0x11 + 5] = iVar4;
      }
      piVar2[iVar1 * 0x11 + 7] = param_5;
      piVar2[iVar1 * 0x11 + 0xd] = param_6;
      piVar2[iVar1 * 0x11 + 0xe] = param_7;
      return piVar2;
    }
  }
  if (param_6 != 0) {
    FUN_000432e0();
  }
  if (param_7 != 0) {
    FUN_0002a250();
  }
  if (param_5 == 0) {
    return (int *)0x0;
  }
  FUN_00043210();
  return (int *)0x0;
}

