
With * sqlite3WithAdd(Parse *pParse,With *pWith,Token *pName,ExprList *pArglist,Select *pQuery)

{
  sqlite3 *db;
  int iVar1;
  char *zLeft;
  With *pWVar2;
  long lVar3;
  
  db = pParse->db;
  zLeft = sqlite3NameFromToken(db,pName);
  if ((zLeft == (char *)0x0) || (pWith == (With *)0x0)) {
    if (pWith == (With *)0x0) {
      pWVar2 = (With *)sqlite3DbMallocZero(db,0x30);
      goto LAB_0016435c;
    }
  }
  else if (0 < pWith->nCte) {
    lVar3 = 0;
    do {
      iVar1 = sqlite3StrICmp(zLeft,pWith->a[lVar3].zName);
      if (iVar1 == 0) {
        sqlite3ErrorMsg(pParse,"duplicate WITH table name: %s",zLeft);
      }
      lVar3 = lVar3 + 1;
    } while ((int)lVar3 < pWith->nCte);
  }
  pWVar2 = (With *)sqlite3DbRealloc(db,pWith,(long)pWith->nCte * 0x20 + 0x30);
LAB_0016435c:
  if (db->mallocFailed == '\0') {
    iVar1 = pWVar2->nCte;
    pWVar2->a[iVar1].pSelect = pQuery;
    pWVar2->a[iVar1].pCols = pArglist;
    pWVar2->a[iVar1].zName = zLeft;
    pWVar2->a[iVar1].zCteErr = (char *)0x0;
    pWVar2->nCte = iVar1 + 1;
    pWith = pWVar2;
  }
  else {
    sqlite3ExprListDelete(db,pArglist);
    sqlite3SelectDelete(db,pQuery);
    sqlite3DbFree(db,zLeft);
  }
  return pWith;
}



int * FUN_001642b4(long *param_1,int *param_2,undefined8 param_3,undefined8 param_4,
                  undefined8 param_5)

{
  long lVar1;
  int iVar2;
  long lVar3;
  int *piVar4;
  long lVar5;
  
  lVar1 = *param_1;
  lVar3 = FUN_00137c32(lVar1,param_3);
  if ((lVar3 == 0) || (param_2 == (int *)0x0)) {
    if (param_2 == (int *)0x0) {
      piVar4 = (int *)FUN_0013730e(lVar1,0x30);
      goto LAB_0016435c;
    }
  }
  else if (0 < *param_2) {
    lVar5 = 0;
    do {
      iVar2 = FUN_0012ad2f(lVar3,*(undefined8 *)(param_2 + lVar5 * 8 + 4));
      if (iVar2 == 0) {
        FUN_0015f67f(param_1,"duplicate WITH table name: %s",lVar3);
      }
      lVar5 = lVar5 + 1;
    } while ((int)lVar5 < *param_2);
  }
  piVar4 = (int *)FUN_0015006b(lVar1,param_2,(long)*param_2 * 0x20 + 0x30);
LAB_0016435c:
  if (*(char *)(lVar1 + 0x61) == '\0') {
    iVar2 = *piVar4;
    *(undefined8 *)(piVar4 + (long)iVar2 * 8 + 8) = param_5;
    *(undefined8 *)(piVar4 + (long)iVar2 * 8 + 6) = param_4;
    *(long *)(piVar4 + (long)iVar2 * 8 + 4) = lVar3;
    (piVar4 + (long)iVar2 * 8 + 10)[0] = 0;
    (piVar4 + (long)iVar2 * 8 + 10)[1] = 0;
    *piVar4 = iVar2 + 1;
    param_2 = piVar4;
  }
  else {
    FUN_00144a33(lVar1,param_4);
    FUN_0014490a(lVar1,param_5);
    FUN_00141394(lVar1,lVar3);
  }
  return param_2;
}


PUSH R15
PUSH R14
PUSH R13
PUSH R12
PUSH RBP
PUSH RBX
SUB RSP,0x18
MOV R14,RDI
MOV RBP,RSI
MOV qword ptr [RSP],RCX
MOV qword ptr [RSP + 0x8],R8
MOV R13,qword ptr [RDI]
MOV RSI,RDX
MOV RDI,R13
CALL 0x00137c32
MOV R12,RAX
TEST RAX,RAX
JZ 0x00164331
TEST RBP,RBP
JZ 0x00164331
CMP dword ptr [RBP],0x0
JLE 0x00164345
MOV EBX,0x0
LEA R15,[0x1f4147]
JMP 0x00164317
MOV RDX,R12
MOV RSI,R15
MOV RDI,R14
CALL 0x0015f67f
ADD RBX,0x1
CMP dword ptr [RBP],EBX
JLE 0x00164345
MOV RAX,RBX
SHL RAX,0x5
MOV RSI,qword ptr [RBP + RAX*0x1 + 0x10]
MOV RDI,R12
CALL 0x0012ad2f
TEST EAX,EAX
JNZ 0x0016430e
JMP 0x00164300
TEST RBP,RBP
JNZ 0x00164345
MOV ESI,0x30
MOV RDI,R13
CALL 0x0013730e
JMP 0x0016435c
MOVSXD RDX,dword ptr [RBP]
SHL RDX,0x5
ADD RDX,0x30
MOV RSI,RBP
MOV RDI,R13
CALL 0x0015006b
CMP byte ptr [R13 + 0x61],0x0
JNZ 0x001643a0
MOV ECX,dword ptr [RAX]
MOVSXD RDX,ECX
SHL RDX,0x5
ADD RDX,RAX
MOV RDI,qword ptr [RSP + 0x8]
MOV qword ptr [RDX + 0x20],RDI
MOV RDI,qword ptr [RSP]
MOV qword ptr [RDX + 0x18],RDI
MOV qword ptr [RDX + 0x10],R12
MOV qword ptr [RDX + 0x28],0x0
ADD ECX,0x1
MOV dword ptr [RAX],ECX
ADD RSP,0x18
POP RBX
POP RBP
POP R12
POP R13
POP R14
POP R15
RET
MOV RSI,qword ptr [RSP]
MOV RDI,R13
CALL 0x00144a33
MOV RSI,qword ptr [RSP + 0x8]
MOV RDI,R13
CALL 0x0014490a
MOV RSI,R12
MOV RDI,R13
CALL 0x00141394
MOV RAX,RBP
JMP 0x00164391
(translation_unit "int * FUN_001642b4(long *param_1,int *param_2,undefined8 param_3,undefined8 param_4,\n                  undefined8 param_5)\n\n{\n  long lVar1;\n  int iVar2;\n  long lVar3;\n  int *piVar4;\n  long lVar5;\n  \n  lVar1 = *param_1;\n  lVar3 = FUN_00137c32(lVar1,param_3);\n  if ((lVar3 == 0) || (param_2 == (int *)0x0)) {\n    if (param_2 == (int *)0x0) {\n      piVar4 = (int *)FUN_0013730e(lVar1,0x30);\n      goto LAB_0016435c;\n    }\n  }\n  else if (0 < *param_2) {\n    lVar5 = 0;\n    do {\n      iVar2 = FUN_0012ad2f(lVar3,*(undefined8 *)(param_2 + lVar5 * 8 + 4));\n      if (iVar2 == 0) {\n        FUN_0015f67f(param_1,"duplicate WITH table name: %s",lVar3);\n      }\n      lVar5 = lVar5 + 1;\n    } while ((int)lVar5 < *param_2);\n  }\n  piVar4 = (int *)FUN_0015006b(lVar1,param_2,(long)*param_2 * 0x20 + 0x30);\nLAB_0016435c:\n  if (*(char *)(lVar1 + 0x61) == '\0') {\n    iVar2 = *piVar4;\n    *(undefined8 *)(piVar4 + (long)iVar2 * 8 + 8) = param_5;\n    *(undefined8 *)(piVar4 + (long)iVar2 * 8 + 6) = param_4;\n    *(long *)(piVar4 + (long)iVar2 * 8 + 4) = lVar3;\n    (piVar4 + (long)iVar2 * 8 + 10)[0] = 0;\n    (piVar4 + (long)iVar2 * 8 + 10)[1] = 0;\n    *piVar4 = iVar2 + 1;\n    param_2 = piVar4;\n  }\n  else {\n    FUN_00144a33(lVar1,param_4);\n    FUN_0014490a(lVar1,param_5);\n    FUN_00141394(lVar1,lVar3);\n  }\n  return param_2;\n}\n\n" (function_definition "int * FUN_001642b4(long *param_1,int *param_2,undefined8 param_3,undefined8 param_4,\n                  undefined8 param_5)\n\n{\n  long lVar1;\n  int iVar2;\n  long lVar3;\n  int *piVar4;\n  long lVar5;\n  \n  lVar1 = *param_1;\n  lVar3 = FUN_00137c32(lVar1,param_3);\n  if ((lVar3 == 0) || (param_2 == (int *)0x0)) {\n    if (param_2 == (int *)0x0) {\n      piVar4 = (int *)FUN_0013730e(lVar1,0x30);\n      goto LAB_0016435c;\n    }\n  }\n  else if (0 < *param_2) {\n    lVar5 = 0;\n    do {\n      iVar2 = FUN_0012ad2f(lVar3,*(undefined8 *)(param_2 + lVar5 * 8 + 4));\n      if (iVar2 == 0) {\n        FUN_0015f67f(param_1,"duplicate WITH table name: %s",lVar3);\n      }\n      lVar5 = lVar5 + 1;\n    } while ((int)lVar5 < *param_2);\n  }\n  piVar4 = (int *)FUN_0015006b(lVar1,param_2,(long)*param_2 * 0x20 + 0x30);\nLAB_0016435c:\n  if (*(char *)(lVar1 + 0x61) == '\0') {\n    iVar2 = *piVar4;\n    *(undefined8 *)(piVar4 + (long)iVar2 * 8 + 8) = param_5;\n    *(undefined8 *)(piVar4 + (long)iVar2 * 8 + 6) = param_4;\n    *(long *)(piVar4 + (long)iVar2 * 8 + 4) = lVar3;\n    (piVar4 + (long)iVar2 * 8 + 10)[0] = 0;\n    (piVar4 + (long)iVar2 * 8 + 10)[1] = 0;\n    *piVar4 = iVar2 + 1;\n    param_2 = piVar4;\n  }\n  else {\n    FUN_00144a33(lVar1,param_4);\n    FUN_0014490a(lVar1,param_5);\n    FUN_00141394(lVar1,lVar3);\n  }\n  return param_2;\n}" primitive_type (pointer_declarator "* FUN_001642b4(long *param_1,int *param_2,undefined8 param_3,undefined8 param_4,\n                  undefined8 param_5)" * (function_declarator "FUN_001642b4(long *param_1,int *param_2,undefined8 param_3,undefined8 param_4,\n                  undefined8 param_5)" identifier (parameter_list "(long *param_1,int *param_2,undefined8 param_3,undefined8 param_4,\n                  undefined8 param_5)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) , (parameter_declaration "undefined8 param_5" type_identifier identifier) )))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  long lVar3;\n  int *piVar4;\n  long lVar5;\n  \n  lVar1 = *param_1;\n  lVar3 = FUN_00137c32(lVar1,param_3);\n  if ((lVar3 == 0) || (param_2 == (int *)0x0)) {\n    if (param_2 == (int *)0x0) {\n      piVar4 = (int *)FUN_0013730e(lVar1,0x30);\n      goto LAB_0016435c;\n    }\n  }\n  else if (0 < *param_2) {\n    lVar5 = 0;\n    do {\n      iVar2 = FUN_0012ad2f(lVar3,*(undefined8 *)(param_2 + lVar5 * 8 + 4));\n      if (iVar2 == 0) {\n        FUN_0015f67f(param_1,"duplicate WITH table name: %s",lVar3);\n      }\n      lVar5 = lVar5 + 1;\n    } while ((int)lVar5 < *param_2);\n  }\n  piVar4 = (int *)FUN_0015006b(lVar1,param_2,(long)*param_2 * 0x20 + 0x30);\nLAB_0016435c:\n  if (*(char *)(lVar1 + 0x61) == '\0') {\n    iVar2 = *piVar4;\n    *(undefined8 *)(piVar4 + (long)iVar2 * 8 + 8) = param_5;\n    *(undefined8 *)(piVar4 + (long)iVar2 * 8 + 6) = param_4;\n    *(long *)(piVar4 + (long)iVar2 * 8 + 4) = lVar3;\n    (piVar4 + (long)iVar2 * 8 + 10)[0] = 0;\n    (piVar4 + (long)iVar2 * 8 + 10)[1] = 0;\n    *piVar4 = iVar2 + 1;\n    param_2 = piVar4;\n  }\n  else {\n    FUN_00144a33(lVar1,param_4);\n    FUN_0014490a(lVar1,param_5);\n    FUN_00141394(lVar1,lVar3);\n  }\n  return param_2;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar1 = *param_1;" (assignment_expression "lVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "lVar3 = FUN_00137c32(lVar1,param_3);" (assignment_expression "lVar3 = FUN_00137c32(lVar1,param_3)" identifier = (call_expression "FUN_00137c32(lVar1,param_3)" identifier (argument_list "(lVar1,param_3)" ( identifier , identifier )))) ;) (if_statement "if ((lVar3 == 0) || (param_2 == (int *)0x0)) {\n    if (param_2 == (int *)0x0) {\n      piVar4 = (int *)FUN_0013730e(lVar1,0x30);\n      goto LAB_0016435c;\n    }\n  }\n  else if (0 < *param_2) {\n    lVar5 = 0;\n    do {\n      iVar2 = FUN_0012ad2f(lVar3,*(undefined8 *)(param_2 + lVar5 * 8 + 4));\n      if (iVar2 == 0) {\n        FUN_0015f67f(param_1,"duplicate WITH table name: %s",lVar3);\n      }\n      lVar5 = lVar5 + 1;\n    } while ((int)lVar5 < *param_2);\n  }" if (parenthesized_expression "((lVar3 == 0) || (param_2 == (int *)0x0))" ( (binary_expression "(lVar3 == 0) || (param_2 == (int *)0x0)" (parenthesized_expression "(lVar3 == 0)" ( (binary_expression "lVar3 == 0" identifier == number_literal) )) || (parenthesized_expression "(param_2 == (int *)0x0)" ( (binary_expression "param_2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    if (param_2 == (int *)0x0) {\n      piVar4 = (int *)FUN_0013730e(lVar1,0x30);\n      goto LAB_0016435c;\n    }\n  }" { (if_statement "if (param_2 == (int *)0x0) {\n      piVar4 = (int *)FUN_0013730e(lVar1,0x30);\n      goto LAB_0016435c;\n    }" if (parenthesized_expression "(param_2 == (int *)0x0)" ( (binary_expression "param_2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      piVar4 = (int *)FUN_0013730e(lVar1,0x30);\n      goto LAB_0016435c;\n    }" { (expression_statement "piVar4 = (int *)FUN_0013730e(lVar1,0x30);" (assignment_expression "piVar4 = (int *)FUN_0013730e(lVar1,0x30)" identifier = (cast_expression "(int *)FUN_0013730e(lVar1,0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0013730e(lVar1,0x30)" identifier (argument_list "(lVar1,0x30)" ( identifier , number_literal ))))) ;) (goto_statement "goto LAB_0016435c;" goto statement_identifier ;) })) }) (else_clause "else if (0 < *param_2) {\n    lVar5 = 0;\n    do {\n      iVar2 = FUN_0012ad2f(lVar3,*(undefined8 *)(param_2 + lVar5 * 8 + 4));\n      if (iVar2 == 0) {\n        FUN_0015f67f(param_1,"duplicate WITH table name: %s",lVar3);\n      }\n      lVar5 = lVar5 + 1;\n    } while ((int)lVar5 < *param_2);\n  }" else (if_statement "if (0 < *param_2) {\n    lVar5 = 0;\n    do {\n      iVar2 = FUN_0012ad2f(lVar3,*(undefined8 *)(param_2 + lVar5 * 8 + 4));\n      if (iVar2 == 0) {\n        FUN_0015f67f(param_1,"duplicate WITH table name: %s",lVar3);\n      }\n      lVar5 = lVar5 + 1;\n    } while ((int)lVar5 < *param_2);\n  }" if (parenthesized_expression "(0 < *param_2)" ( (binary_expression "0 < *param_2" number_literal < (pointer_expression "*param_2" * identifier)) )) (compound_statement "{\n    lVar5 = 0;\n    do {\n      iVar2 = FUN_0012ad2f(lVar3,*(undefined8 *)(param_2 + lVar5 * 8 + 4));\n      if (iVar2 == 0) {\n        FUN_0015f67f(param_1,"duplicate WITH table name: %s",lVar3);\n      }\n      lVar5 = lVar5 + 1;\n    } while ((int)lVar5 < *param_2);\n  }" { (expression_statement "lVar5 = 0;" (assignment_expression "lVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n      iVar2 = FUN_0012ad2f(lVar3,*(undefined8 *)(param_2 + lVar5 * 8 + 4));\n      if (iVar2 == 0) {\n        FUN_0015f67f(param_1,"duplicate WITH table name: %s",lVar3);\n      }\n      lVar5 = lVar5 + 1;\n    } while ((int)lVar5 < *param_2);" do (compound_statement "{\n      iVar2 = FUN_0012ad2f(lVar3,*(undefined8 *)(param_2 + lVar5 * 8 + 4));\n      if (iVar2 == 0) {\n        FUN_0015f67f(param_1,"duplicate WITH table name: %s",lVar3);\n      }\n      lVar5 = lVar5 + 1;\n    }" { (expression_statement "iVar2 = FUN_0012ad2f(lVar3,*(undefined8 *)(param_2 + lVar5 * 8 + 4));" (assignment_expression "iVar2 = FUN_0012ad2f(lVar3,*(undefined8 *)(param_2 + lVar5 * 8 + 4))" identifier = (call_expression "FUN_0012ad2f(lVar3,*(undefined8 *)(param_2 + lVar5 * 8 + 4))" identifier (argument_list "(lVar3,*(undefined8 *)(param_2 + lVar5 * 8 + 4))" ( identifier , (pointer_expression "*(undefined8 *)(param_2 + lVar5 * 8 + 4)" * (cast_expression "(undefined8 *)(param_2 + lVar5 * 8 + 4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + lVar5 * 8 + 4)" ( (binary_expression "param_2 + lVar5 * 8 + 4" (binary_expression "param_2 + lVar5 * 8" identifier + (binary_expression "lVar5 * 8" identifier * number_literal)) + number_literal) )))) )))) ;) (if_statement "if (iVar2 == 0) {\n        FUN_0015f67f(param_1,"duplicate WITH table name: %s",lVar3);\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        FUN_0015f67f(param_1,"duplicate WITH table name: %s",lVar3);\n      }" { (expression_statement "FUN_0015f67f(param_1,"duplicate WITH table name: %s",lVar3);" (call_expression "FUN_0015f67f(param_1,"duplicate WITH table name: %s",lVar3)" identifier (argument_list "(param_1,"duplicate WITH table name: %s",lVar3)" ( identifier , (string_literal ""duplicate WITH table name: %s"" " string_content ") , identifier ))) ;) })) (expression_statement "lVar5 = lVar5 + 1;" (assignment_expression "lVar5 = lVar5 + 1" identifier = (binary_expression "lVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((int)lVar5 < *param_2)" ( (binary_expression "(int)lVar5 < *param_2" (cast_expression "(int)lVar5" ( (type_descriptor "int" primitive_type) ) identifier) < (pointer_expression "*param_2" * identifier)) )) ;) })))) (expression_statement "piVar4 = (int *)FUN_0015006b(lVar1,param_2,(long)*param_2 * 0x20 + 0x30);" (assignment_expression "piVar4 = (int *)FUN_0015006b(lVar1,param_2,(long)*param_2 * 0x20 + 0x30)" identifier = (cast_expression "(int *)FUN_0015006b(lVar1,param_2,(long)*param_2 * 0x20 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0015006b(lVar1,param_2,(long)*param_2 * 0x20 + 0x30)" identifier (argument_list "(lVar1,param_2,(long)*param_2 * 0x20 + 0x30)" ( identifier , identifier , (binary_expression "(long)*param_2 * 0x20 + 0x30" (binary_expression "(long)*param_2 * 0x20" (cast_expression "(long)*param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*param_2" * identifier)) * number_literal) + number_literal) ))))) ;) (labeled_statement "LAB_0016435c:\n  if (*(char *)(lVar1 + 0x61) == '\0') {\n    iVar2 = *piVar4;\n    *(undefined8 *)(piVar4 + (long)iVar2 * 8 + 8) = param_5;\n    *(undefined8 *)(piVar4 + (long)iVar2 * 8 + 6) = param_4;\n    *(long *)(piVar4 + (long)iVar2 * 8 + 4) = lVar3;\n    (piVar4 + (long)iVar2 * 8 + 10)[0] = 0;\n    (piVar4 + (long)iVar2 * 8 + 10)[1] = 0;\n    *piVar4 = iVar2 + 1;\n    param_2 = piVar4;\n  }\n  else {\n    FUN_00144a33(lVar1,param_4);\n    FUN_0014490a(lVar1,param_5);\n    FUN_00141394(lVar1,lVar3);\n  }" statement_identifier : (if_statement "if (*(char *)(lVar1 + 0x61) == '\0') {\n    iVar2 = *piVar4;\n    *(undefined8 *)(piVar4 + (long)iVar2 * 8 + 8) = param_5;\n    *(undefined8 *)(piVar4 + (long)iVar2 * 8 + 6) = param_4;\n    *(long *)(piVar4 + (long)iVar2 * 8 + 4) = lVar3;\n    (piVar4 + (long)iVar2 * 8 + 10)[0] = 0;\n    (piVar4 + (long)iVar2 * 8 + 10)[1] = 0;\n    *piVar4 = iVar2 + 1;\n    param_2 = piVar4;\n  }\n  else {\n    FUN_00144a33(lVar1,param_4);\n    FUN_0014490a(lVar1,param_5);\n    FUN_00141394(lVar1,lVar3);\n  }" if (parenthesized_expression "(*(char *)(lVar1 + 0x61) == '\0')" ( (binary_expression "*(char *)(lVar1 + 0x61) == '\0'" (pointer_expression "*(char *)(lVar1 + 0x61)" * (cast_expression "(char *)(lVar1 + 0x61)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x61)" ( (binary_expression "lVar1 + 0x61" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar2 = *piVar4;\n    *(undefined8 *)(piVar4 + (long)iVar2 * 8 + 8) = param_5;\n    *(undefined8 *)(piVar4 + (long)iVar2 * 8 + 6) = param_4;\n    *(long *)(piVar4 + (long)iVar2 * 8 + 4) = lVar3;\n    (piVar4 + (long)iVar2 * 8 + 10)[0] = 0;\n    (piVar4 + (long)iVar2 * 8 + 10)[1] = 0;\n    *piVar4 = iVar2 + 1;\n    param_2 = piVar4;\n  }" { (expression_statement "iVar2 = *piVar4;" (assignment_expression "iVar2 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "*(undefined8 *)(piVar4 + (long)iVar2 * 8 + 8) = param_5;" (assignment_expression "*(undefined8 *)(piVar4 + (long)iVar2 * 8 + 8) = param_5" (pointer_expression "*(undefined8 *)(piVar4 + (long)iVar2 * 8 + 8)" * (cast_expression "(undefined8 *)(piVar4 + (long)iVar2 * 8 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar4 + (long)iVar2 * 8 + 8)" ( (binary_expression "piVar4 + (long)iVar2 * 8 + 8" (binary_expression "piVar4 + (long)iVar2 * 8" identifier + (binary_expression "(long)iVar2 * 8" (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(piVar4 + (long)iVar2 * 8 + 6) = param_4;" (assignment_expression "*(undefined8 *)(piVar4 + (long)iVar2 * 8 + 6) = param_4" (pointer_expression "*(undefined8 *)(piVar4 + (long)iVar2 * 8 + 6)" * (cast_expression "(undefined8 *)(piVar4 + (long)iVar2 * 8 + 6)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar4 + (long)iVar2 * 8 + 6)" ( (binary_expression "piVar4 + (long)iVar2 * 8 + 6" (binary_expression "piVar4 + (long)iVar2 * 8" identifier + (binary_expression "(long)iVar2 * 8" (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) + number_literal) )))) = identifier) ;) (expression_statement "*(long *)(piVar4 + (long)iVar2 * 8 + 4) = lVar3;" (assignment_expression "*(long *)(piVar4 + (long)iVar2 * 8 + 4) = lVar3" (pointer_expression "*(long *)(piVar4 + (long)iVar2 * 8 + 4)" * (cast_expression "(long *)(piVar4 + (long)iVar2 * 8 + 4)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar4 + (long)iVar2 * 8 + 4)" ( (binary_expression "piVar4 + (long)iVar2 * 8 + 4" (binary_expression "piVar4 + (long)iVar2 * 8" identifier + (binary_expression "(long)iVar2 * 8" (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) + number_literal) )))) = identifier) ;) (expression_statement "(piVar4 + (long)iVar2 * 8 + 10)[0] = 0;" (assignment_expression "(piVar4 + (long)iVar2 * 8 + 10)[0] = 0" (subscript_expression "(piVar4 + (long)iVar2 * 8 + 10)[0]" (parenthesized_expression "(piVar4 + (long)iVar2 * 8 + 10)" ( (binary_expression "piVar4 + (long)iVar2 * 8 + 10" (binary_expression "piVar4 + (long)iVar2 * 8" identifier + (binary_expression "(long)iVar2 * 8" (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) + number_literal) )) [ number_literal ]) = number_literal) ;) (expression_statement "(piVar4 + (long)iVar2 * 8 + 10)[1] = 0;" (assignment_expression "(piVar4 + (long)iVar2 * 8 + 10)[1] = 0" (subscript_expression "(piVar4 + (long)iVar2 * 8 + 10)[1]" (parenthesized_expression "(piVar4 + (long)iVar2 * 8 + 10)" ( (binary_expression "piVar4 + (long)iVar2 * 8 + 10" (binary_expression "piVar4 + (long)iVar2 * 8" identifier + (binary_expression "(long)iVar2 * 8" (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) + number_literal) )) [ number_literal ]) = number_literal) ;) (expression_statement "*piVar4 = iVar2 + 1;" (assignment_expression "*piVar4 = iVar2 + 1" (pointer_expression "*piVar4" * identifier) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "param_2 = piVar4;" (assignment_expression "param_2 = piVar4" identifier = identifier) ;) }) (else_clause "else {\n    FUN_00144a33(lVar1,param_4);\n    FUN_0014490a(lVar1,param_5);\n    FUN_00141394(lVar1,lVar3);\n  }" else (compound_statement "{\n    FUN_00144a33(lVar1,param_4);\n    FUN_0014490a(lVar1,param_5);\n    FUN_00141394(lVar1,lVar3);\n  }" { (expression_statement "FUN_00144a33(lVar1,param_4);" (call_expression "FUN_00144a33(lVar1,param_4)" identifier (argument_list "(lVar1,param_4)" ( identifier , identifier ))) ;) (expression_statement "FUN_0014490a(lVar1,param_5);" (call_expression "FUN_0014490a(lVar1,param_5)" identifier (argument_list "(lVar1,param_5)" ( identifier , identifier ))) ;) (expression_statement "FUN_00141394(lVar1,lVar3);" (call_expression "FUN_00141394(lVar1,lVar3)" identifier (argument_list "(lVar1,lVar3)" ( identifier , identifier ))) ;) })))) (return_statement "return param_2;" return identifier ;) })))
(translation_unit "With * sqlite3WithAdd(Parse *pParse,With *pWith,Token *pName,ExprList *pArglist,Select *pQuery)\n\n{\n  sqlite3 *db;\n  int iVar1;\n  char *zLeft;\n  With *pWVar2;\n  long lVar3;\n  \n  db = pParse->db;\n  zLeft = sqlite3NameFromToken(db,pName);\n  if ((zLeft == (char *)0x0) || (pWith == (With *)0x0)) {\n    if (pWith == (With *)0x0) {\n      pWVar2 = (With *)sqlite3DbMallocZero(db,0x30);\n      goto LAB_0016435c;\n    }\n  }\n  else if (0 < pWith->nCte) {\n    lVar3 = 0;\n    do {\n      iVar1 = sqlite3StrICmp(zLeft,pWith->a[lVar3].zName);\n      if (iVar1 == 0) {\n        sqlite3ErrorMsg(pParse,"duplicate WITH table name: %s",zLeft);\n      }\n      lVar3 = lVar3 + 1;\n    } while ((int)lVar3 < pWith->nCte);\n  }\n  pWVar2 = (With *)sqlite3DbRealloc(db,pWith,(long)pWith->nCte * 0x20 + 0x30);\nLAB_0016435c:\n  if (db->mallocFailed == '\0') {\n    iVar1 = pWVar2->nCte;\n    pWVar2->a[iVar1].pSelect = pQuery;\n    pWVar2->a[iVar1].pCols = pArglist;\n    pWVar2->a[iVar1].zName = zLeft;\n    pWVar2->a[iVar1].zCteErr = (char *)0x0;\n    pWVar2->nCte = iVar1 + 1;\n    pWith = pWVar2;\n  }\n  else {\n    sqlite3ExprListDelete(db,pArglist);\n    sqlite3SelectDelete(db,pQuery);\n    sqlite3DbFree(db,zLeft);\n  }\n  return pWith;\n}\n\n" (function_definition "With * sqlite3WithAdd(Parse *pParse,With *pWith,Token *pName,ExprList *pArglist,Select *pQuery)\n\n{\n  sqlite3 *db;\n  int iVar1;\n  char *zLeft;\n  With *pWVar2;\n  long lVar3;\n  \n  db = pParse->db;\n  zLeft = sqlite3NameFromToken(db,pName);\n  if ((zLeft == (char *)0x0) || (pWith == (With *)0x0)) {\n    if (pWith == (With *)0x0) {\n      pWVar2 = (With *)sqlite3DbMallocZero(db,0x30);\n      goto LAB_0016435c;\n    }\n  }\n  else if (0 < pWith->nCte) {\n    lVar3 = 0;\n    do {\n      iVar1 = sqlite3StrICmp(zLeft,pWith->a[lVar3].zName);\n      if (iVar1 == 0) {\n        sqlite3ErrorMsg(pParse,"duplicate WITH table name: %s",zLeft);\n      }\n      lVar3 = lVar3 + 1;\n    } while ((int)lVar3 < pWith->nCte);\n  }\n  pWVar2 = (With *)sqlite3DbRealloc(db,pWith,(long)pWith->nCte * 0x20 + 0x30);\nLAB_0016435c:\n  if (db->mallocFailed == '\0') {\n    iVar1 = pWVar2->nCte;\n    pWVar2->a[iVar1].pSelect = pQuery;\n    pWVar2->a[iVar1].pCols = pArglist;\n    pWVar2->a[iVar1].zName = zLeft;\n    pWVar2->a[iVar1].zCteErr = (char *)0x0;\n    pWVar2->nCte = iVar1 + 1;\n    pWith = pWVar2;\n  }\n  else {\n    sqlite3ExprListDelete(db,pArglist);\n    sqlite3SelectDelete(db,pQuery);\n    sqlite3DbFree(db,zLeft);\n  }\n  return pWith;\n}" type_identifier (pointer_declarator "* sqlite3WithAdd(Parse *pParse,With *pWith,Token *pName,ExprList *pArglist,Select *pQuery)" * (function_declarator "sqlite3WithAdd(Parse *pParse,With *pWith,Token *pName,ExprList *pArglist,Select *pQuery)" identifier (parameter_list "(Parse *pParse,With *pWith,Token *pName,ExprList *pArglist,Select *pQuery)" ( (parameter_declaration "Parse *pParse" type_identifier (pointer_declarator "*pParse" * identifier)) , (parameter_declaration "With *pWith" type_identifier (pointer_declarator "*pWith" * identifier)) , (parameter_declaration "Token *pName" type_identifier (pointer_declarator "*pName" * identifier)) , (parameter_declaration "ExprList *pArglist" type_identifier (pointer_declarator "*pArglist" * identifier)) , (parameter_declaration "Select *pQuery" type_identifier (pointer_declarator "*pQuery" * identifier)) )))) (compound_statement "{\n  sqlite3 *db;\n  int iVar1;\n  char *zLeft;\n  With *pWVar2;\n  long lVar3;\n  \n  db = pParse->db;\n  zLeft = sqlite3NameFromToken(db,pName);\n  if ((zLeft == (char *)0x0) || (pWith == (With *)0x0)) {\n    if (pWith == (With *)0x0) {\n      pWVar2 = (With *)sqlite3DbMallocZero(db,0x30);\n      goto LAB_0016435c;\n    }\n  }\n  else if (0 < pWith->nCte) {\n    lVar3 = 0;\n    do {\n      iVar1 = sqlite3StrICmp(zLeft,pWith->a[lVar3].zName);\n      if (iVar1 == 0) {\n        sqlite3ErrorMsg(pParse,"duplicate WITH table name: %s",zLeft);\n      }\n      lVar3 = lVar3 + 1;\n    } while ((int)lVar3 < pWith->nCte);\n  }\n  pWVar2 = (With *)sqlite3DbRealloc(db,pWith,(long)pWith->nCte * 0x20 + 0x30);\nLAB_0016435c:\n  if (db->mallocFailed == '\0') {\n    iVar1 = pWVar2->nCte;\n    pWVar2->a[iVar1].pSelect = pQuery;\n    pWVar2->a[iVar1].pCols = pArglist;\n    pWVar2->a[iVar1].zName = zLeft;\n    pWVar2->a[iVar1].zCteErr = (char *)0x0;\n    pWVar2->nCte = iVar1 + 1;\n    pWith = pWVar2;\n  }\n  else {\n    sqlite3ExprListDelete(db,pArglist);\n    sqlite3SelectDelete(db,pQuery);\n    sqlite3DbFree(db,zLeft);\n  }\n  return pWith;\n}" { (declaration "sqlite3 *db;" type_identifier (pointer_declarator "*db" * identifier) ;) (declaration "int iVar1;" primitive_type identifier ;) (declaration "char *zLeft;" primitive_type (pointer_declarator "*zLeft" * identifier) ;) (declaration "With *pWVar2;" type_identifier (pointer_declarator "*pWVar2" * identifier) ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (expression_statement "db = pParse->db;" (assignment_expression "db = pParse->db" identifier = (field_expression "pParse->db" identifier -> field_identifier)) ;) (expression_statement "zLeft = sqlite3NameFromToken(db,pName);" (assignment_expression "zLeft = sqlite3NameFromToken(db,pName)" identifier = (call_expression "sqlite3NameFromToken(db,pName)" identifier (argument_list "(db,pName)" ( identifier , identifier )))) ;) (if_statement "if ((zLeft == (char *)0x0) || (pWith == (With *)0x0)) {\n    if (pWith == (With *)0x0) {\n      pWVar2 = (With *)sqlite3DbMallocZero(db,0x30);\n      goto LAB_0016435c;\n    }\n  }\n  else if (0 < pWith->nCte) {\n    lVar3 = 0;\n    do {\n      iVar1 = sqlite3StrICmp(zLeft,pWith->a[lVar3].zName);\n      if (iVar1 == 0) {\n        sqlite3ErrorMsg(pParse,"duplicate WITH table name: %s",zLeft);\n      }\n      lVar3 = lVar3 + 1;\n    } while ((int)lVar3 < pWith->nCte);\n  }" if (parenthesized_expression "((zLeft == (char *)0x0) || (pWith == (With *)0x0))" ( (binary_expression "(zLeft == (char *)0x0) || (pWith == (With *)0x0)" (parenthesized_expression "(zLeft == (char *)0x0)" ( (binary_expression "zLeft == (char *)0x0" identifier == (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) || (parenthesized_expression "(pWith == (With *)0x0)" ( (binary_expression "pWith == (With *)0x0" identifier == (cast_expression "(With *)0x0" ( (type_descriptor "With *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    if (pWith == (With *)0x0) {\n      pWVar2 = (With *)sqlite3DbMallocZero(db,0x30);\n      goto LAB_0016435c;\n    }\n  }" { (if_statement "if (pWith == (With *)0x0) {\n      pWVar2 = (With *)sqlite3DbMallocZero(db,0x30);\n      goto LAB_0016435c;\n    }" if (parenthesized_expression "(pWith == (With *)0x0)" ( (binary_expression "pWith == (With *)0x0" identifier == (cast_expression "(With *)0x0" ( (type_descriptor "With *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      pWVar2 = (With *)sqlite3DbMallocZero(db,0x30);\n      goto LAB_0016435c;\n    }" { (expression_statement "pWVar2 = (With *)sqlite3DbMallocZero(db,0x30);" (assignment_expression "pWVar2 = (With *)sqlite3DbMallocZero(db,0x30)" identifier = (cast_expression "(With *)sqlite3DbMallocZero(db,0x30)" ( (type_descriptor "With *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3DbMallocZero(db,0x30)" identifier (argument_list "(db,0x30)" ( identifier , number_literal ))))) ;) (goto_statement "goto LAB_0016435c;" goto statement_identifier ;) })) }) (else_clause "else if (0 < pWith->nCte) {\n    lVar3 = 0;\n    do {\n      iVar1 = sqlite3StrICmp(zLeft,pWith->a[lVar3].zName);\n      if (iVar1 == 0) {\n        sqlite3ErrorMsg(pParse,"duplicate WITH table name: %s",zLeft);\n      }\n      lVar3 = lVar3 + 1;\n    } while ((int)lVar3 < pWith->nCte);\n  }" else (if_statement "if (0 < pWith->nCte) {\n    lVar3 = 0;\n    do {\n      iVar1 = sqlite3StrICmp(zLeft,pWith->a[lVar3].zName);\n      if (iVar1 == 0) {\n        sqlite3ErrorMsg(pParse,"duplicate WITH table name: %s",zLeft);\n      }\n      lVar3 = lVar3 + 1;\n    } while ((int)lVar3 < pWith->nCte);\n  }" if (parenthesized_expression "(0 < pWith->nCte)" ( (binary_expression "0 < pWith->nCte" number_literal < (field_expression "pWith->nCte" identifier -> field_identifier)) )) (compound_statement "{\n    lVar3 = 0;\n    do {\n      iVar1 = sqlite3StrICmp(zLeft,pWith->a[lVar3].zName);\n      if (iVar1 == 0) {\n        sqlite3ErrorMsg(pParse,"duplicate WITH table name: %s",zLeft);\n      }\n      lVar3 = lVar3 + 1;\n    } while ((int)lVar3 < pWith->nCte);\n  }" { (expression_statement "lVar3 = 0;" (assignment_expression "lVar3 = 0" identifier = number_literal) ;) (do_statement "do {\n      iVar1 = sqlite3StrICmp(zLeft,pWith->a[lVar3].zName);\n      if (iVar1 == 0) {\n        sqlite3ErrorMsg(pParse,"duplicate WITH table name: %s",zLeft);\n      }\n      lVar3 = lVar3 + 1;\n    } while ((int)lVar3 < pWith->nCte);" do (compound_statement "{\n      iVar1 = sqlite3StrICmp(zLeft,pWith->a[lVar3].zName);\n      if (iVar1 == 0) {\n        sqlite3ErrorMsg(pParse,"duplicate WITH table name: %s",zLeft);\n      }\n      lVar3 = lVar3 + 1;\n    }" { (expression_statement "iVar1 = sqlite3StrICmp(zLeft,pWith->a[lVar3].zName);" (assignment_expression "iVar1 = sqlite3StrICmp(zLeft,pWith->a[lVar3].zName)" identifier = (call_expression "sqlite3StrICmp(zLeft,pWith->a[lVar3].zName)" identifier (argument_list "(zLeft,pWith->a[lVar3].zName)" ( identifier , (field_expression "pWith->a[lVar3].zName" (subscript_expression "pWith->a[lVar3]" (field_expression "pWith->a" identifier -> field_identifier) [ identifier ]) . field_identifier) )))) ;) (if_statement "if (iVar1 == 0) {\n        sqlite3ErrorMsg(pParse,"duplicate WITH table name: %s",zLeft);\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n        sqlite3ErrorMsg(pParse,"duplicate WITH table name: %s",zLeft);\n      }" { (expression_statement "sqlite3ErrorMsg(pParse,"duplicate WITH table name: %s",zLeft);" (call_expression "sqlite3ErrorMsg(pParse,"duplicate WITH table name: %s",zLeft)" identifier (argument_list "(pParse,"duplicate WITH table name: %s",zLeft)" ( identifier , (string_literal ""duplicate WITH table name: %s"" " string_content ") , identifier ))) ;) })) (expression_statement "lVar3 = lVar3 + 1;" (assignment_expression "lVar3 = lVar3 + 1" identifier = (binary_expression "lVar3 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((int)lVar3 < pWith->nCte)" ( (binary_expression "(int)lVar3 < pWith->nCte" (cast_expression "(int)lVar3" ( (type_descriptor "int" primitive_type) ) identifier) < (field_expression "pWith->nCte" identifier -> field_identifier)) )) ;) })))) (expression_statement "pWVar2 = (With *)sqlite3DbRealloc(db,pWith,(long)pWith->nCte * 0x20 + 0x30);" (assignment_expression "pWVar2 = (With *)sqlite3DbRealloc(db,pWith,(long)pWith->nCte * 0x20 + 0x30)" identifier = (cast_expression "(With *)sqlite3DbRealloc(db,pWith,(long)pWith->nCte * 0x20 + 0x30)" ( (type_descriptor "With *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "sqlite3DbRealloc(db,pWith,(long)pWith->nCte * 0x20 + 0x30)" identifier (argument_list "(db,pWith,(long)pWith->nCte * 0x20 + 0x30)" ( identifier , identifier , (binary_expression "(long)pWith->nCte * 0x20 + 0x30" (binary_expression "(long)pWith->nCte * 0x20" (cast_expression "(long)pWith->nCte" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (field_expression "pWith->nCte" identifier -> field_identifier)) * number_literal) + number_literal) ))))) ;) (labeled_statement "LAB_0016435c:\n  if (db->mallocFailed == '\0') {\n    iVar1 = pWVar2->nCte;\n    pWVar2->a[iVar1].pSelect = pQuery;\n    pWVar2->a[iVar1].pCols = pArglist;\n    pWVar2->a[iVar1].zName = zLeft;\n    pWVar2->a[iVar1].zCteErr = (char *)0x0;\n    pWVar2->nCte = iVar1 + 1;\n    pWith = pWVar2;\n  }\n  else {\n    sqlite3ExprListDelete(db,pArglist);\n    sqlite3SelectDelete(db,pQuery);\n    sqlite3DbFree(db,zLeft);\n  }" statement_identifier : (if_statement "if (db->mallocFailed == '\0') {\n    iVar1 = pWVar2->nCte;\n    pWVar2->a[iVar1].pSelect = pQuery;\n    pWVar2->a[iVar1].pCols = pArglist;\n    pWVar2->a[iVar1].zName = zLeft;\n    pWVar2->a[iVar1].zCteErr = (char *)0x0;\n    pWVar2->nCte = iVar1 + 1;\n    pWith = pWVar2;\n  }\n  else {\n    sqlite3ExprListDelete(db,pArglist);\n    sqlite3SelectDelete(db,pQuery);\n    sqlite3DbFree(db,zLeft);\n  }" if (parenthesized_expression "(db->mallocFailed == '\0')" ( (binary_expression "db->mallocFailed == '\0'" (field_expression "db->mallocFailed" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar1 = pWVar2->nCte;\n    pWVar2->a[iVar1].pSelect = pQuery;\n    pWVar2->a[iVar1].pCols = pArglist;\n    pWVar2->a[iVar1].zName = zLeft;\n    pWVar2->a[iVar1].zCteErr = (char *)0x0;\n    pWVar2->nCte = iVar1 + 1;\n    pWith = pWVar2;\n  }" { (expression_statement "iVar1 = pWVar2->nCte;" (assignment_expression "iVar1 = pWVar2->nCte" identifier = (field_expression "pWVar2->nCte" identifier -> field_identifier)) ;) (expression_statement "pWVar2->a[iVar1].pSelect = pQuery;" (assignment_expression "pWVar2->a[iVar1].pSelect = pQuery" (field_expression "pWVar2->a[iVar1].pSelect" (subscript_expression "pWVar2->a[iVar1]" (field_expression "pWVar2->a" identifier -> field_identifier) [ identifier ]) . field_identifier) = identifier) ;) (expression_statement "pWVar2->a[iVar1].pCols = pArglist;" (assignment_expression "pWVar2->a[iVar1].pCols = pArglist" (field_expression "pWVar2->a[iVar1].pCols" (subscript_expression "pWVar2->a[iVar1]" (field_expression "pWVar2->a" identifier -> field_identifier) [ identifier ]) . field_identifier) = identifier) ;) (expression_statement "pWVar2->a[iVar1].zName = zLeft;" (assignment_expression "pWVar2->a[iVar1].zName = zLeft" (field_expression "pWVar2->a[iVar1].zName" (subscript_expression "pWVar2->a[iVar1]" (field_expression "pWVar2->a" identifier -> field_identifier) [ identifier ]) . field_identifier) = identifier) ;) (expression_statement "pWVar2->a[iVar1].zCteErr = (char *)0x0;" (assignment_expression "pWVar2->a[iVar1].zCteErr = (char *)0x0" (field_expression "pWVar2->a[iVar1].zCteErr" (subscript_expression "pWVar2->a[iVar1]" (field_expression "pWVar2->a" identifier -> field_identifier) [ identifier ]) . field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pWVar2->nCte = iVar1 + 1;" (assignment_expression "pWVar2->nCte = iVar1 + 1" (field_expression "pWVar2->nCte" identifier -> field_identifier) = (binary_expression "iVar1 + 1" identifier + number_literal)) ;) (expression_statement "pWith = pWVar2;" (assignment_expression "pWith = pWVar2" identifier = identifier) ;) }) (else_clause "else {\n    sqlite3ExprListDelete(db,pArglist);\n    sqlite3SelectDelete(db,pQuery);\n    sqlite3DbFree(db,zLeft);\n  }" else (compound_statement "{\n    sqlite3ExprListDelete(db,pArglist);\n    sqlite3SelectDelete(db,pQuery);\n    sqlite3DbFree(db,zLeft);\n  }" { (expression_statement "sqlite3ExprListDelete(db,pArglist);" (call_expression "sqlite3ExprListDelete(db,pArglist)" identifier (argument_list "(db,pArglist)" ( identifier , identifier ))) ;) (expression_statement "sqlite3SelectDelete(db,pQuery);" (call_expression "sqlite3SelectDelete(db,pQuery)" identifier (argument_list "(db,pQuery)" ( identifier , identifier ))) ;) (expression_statement "sqlite3DbFree(db,zLeft);" (call_expression "sqlite3DbFree(db,zLeft)" identifier (argument_list "(db,zLeft)" ( identifier , identifier ))) ;) })))) (return_statement "return pWith;" return identifier ;) })))
(translation_unit "int * FUN_001642b4(long *param_1,int *param_2,undefined8 param_3,undefined8 param_4,\n                  undefined8 param_5)\n\n{\n  long lVar1;\n  int iVar2;\n  long lVar3;\n  int *piVar4;\n  long lVar5;\n  \n  lVar1 = *param_1;\n  lVar3 = FUN_00137c32(lVar1,param_3);\n  if ((lVar3 == 0) || (param_2 == (int *)0x0)) {\n    if (param_2 == (int *)0x0) {\n      piVar4 = (int *)FUN_0013730e(lVar1,0x30);\n      goto LAB_0016435c;\n    }\n  }\n  else if (0 < *param_2) {\n    lVar5 = 0;\n    do {\n      iVar2 = FUN_0012ad2f(lVar3,*(undefined8 *)(param_2 + lVar5 * 8 + 4));\n      if (iVar2 == 0) {\n        FUN_0015f67f(param_1,"duplicate WITH table name: %s",lVar3);\n      }\n      lVar5 = lVar5 + 1;\n    } while ((int)lVar5 < *param_2);\n  }\n  piVar4 = (int *)FUN_0015006b(lVar1,param_2,(long)*param_2 * 0x20 + 0x30);\nLAB_0016435c:\n  if (*(char *)(lVar1 + 0x61) == '\0') {\n    iVar2 = *piVar4;\n    *(undefined8 *)(piVar4 + (long)iVar2 * 8 + 8) = param_5;\n    *(undefined8 *)(piVar4 + (long)iVar2 * 8 + 6) = param_4;\n    *(long *)(piVar4 + (long)iVar2 * 8 + 4) = lVar3;\n    (piVar4 + (long)iVar2 * 8 + 10)[0] = 0;\n    (piVar4 + (long)iVar2 * 8 + 10)[1] = 0;\n    *piVar4 = iVar2 + 1;\n    param_2 = piVar4;\n  }\n  else {\n    FUN_00144a33(lVar1,param_4);\n    FUN_0014490a(lVar1,param_5);\n    FUN_00141394(lVar1,lVar3);\n  }\n  return param_2;\n}\n\n" (function_definition "int * FUN_001642b4(long *param_1,int *param_2,undefined8 param_3,undefined8 param_4,\n                  undefined8 param_5)\n\n{\n  long lVar1;\n  int iVar2;\n  long lVar3;\n  int *piVar4;\n  long lVar5;\n  \n  lVar1 = *param_1;\n  lVar3 = FUN_00137c32(lVar1,param_3);\n  if ((lVar3 == 0) || (param_2 == (int *)0x0)) {\n    if (param_2 == (int *)0x0) {\n      piVar4 = (int *)FUN_0013730e(lVar1,0x30);\n      goto LAB_0016435c;\n    }\n  }\n  else if (0 < *param_2) {\n    lVar5 = 0;\n    do {\n      iVar2 = FUN_0012ad2f(lVar3,*(undefined8 *)(param_2 + lVar5 * 8 + 4));\n      if (iVar2 == 0) {\n        FUN_0015f67f(param_1,"duplicate WITH table name: %s",lVar3);\n      }\n      lVar5 = lVar5 + 1;\n    } while ((int)lVar5 < *param_2);\n  }\n  piVar4 = (int *)FUN_0015006b(lVar1,param_2,(long)*param_2 * 0x20 + 0x30);\nLAB_0016435c:\n  if (*(char *)(lVar1 + 0x61) == '\0') {\n    iVar2 = *piVar4;\n    *(undefined8 *)(piVar4 + (long)iVar2 * 8 + 8) = param_5;\n    *(undefined8 *)(piVar4 + (long)iVar2 * 8 + 6) = param_4;\n    *(long *)(piVar4 + (long)iVar2 * 8 + 4) = lVar3;\n    (piVar4 + (long)iVar2 * 8 + 10)[0] = 0;\n    (piVar4 + (long)iVar2 * 8 + 10)[1] = 0;\n    *piVar4 = iVar2 + 1;\n    param_2 = piVar4;\n  }\n  else {\n    FUN_00144a33(lVar1,param_4);\n    FUN_0014490a(lVar1,param_5);\n    FUN_00141394(lVar1,lVar3);\n  }\n  return param_2;\n}" primitive_type (pointer_declarator "* FUN_001642b4(long *param_1,int *param_2,undefined8 param_3,undefined8 param_4,\n                  undefined8 param_5)" * (function_declarator "FUN_001642b4(long *param_1,int *param_2,undefined8 param_3,undefined8 param_4,\n                  undefined8 param_5)" identifier (parameter_list "(long *param_1,int *param_2,undefined8 param_3,undefined8 param_4,\n                  undefined8 param_5)" ( (parameter_declaration "long *param_1" (sized_type_specifier "long" long) (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int *param_2" primitive_type (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "undefined8 param_3" type_identifier identifier) , (parameter_declaration "undefined8 param_4" type_identifier identifier) , (parameter_declaration "undefined8 param_5" type_identifier identifier) )))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  long lVar3;\n  int *piVar4;\n  long lVar5;\n  \n  lVar1 = *param_1;\n  lVar3 = FUN_00137c32(lVar1,param_3);\n  if ((lVar3 == 0) || (param_2 == (int *)0x0)) {\n    if (param_2 == (int *)0x0) {\n      piVar4 = (int *)FUN_0013730e(lVar1,0x30);\n      goto LAB_0016435c;\n    }\n  }\n  else if (0 < *param_2) {\n    lVar5 = 0;\n    do {\n      iVar2 = FUN_0012ad2f(lVar3,*(undefined8 *)(param_2 + lVar5 * 8 + 4));\n      if (iVar2 == 0) {\n        FUN_0015f67f(param_1,"duplicate WITH table name: %s",lVar3);\n      }\n      lVar5 = lVar5 + 1;\n    } while ((int)lVar5 < *param_2);\n  }\n  piVar4 = (int *)FUN_0015006b(lVar1,param_2,(long)*param_2 * 0x20 + 0x30);\nLAB_0016435c:\n  if (*(char *)(lVar1 + 0x61) == '\0') {\n    iVar2 = *piVar4;\n    *(undefined8 *)(piVar4 + (long)iVar2 * 8 + 8) = param_5;\n    *(undefined8 *)(piVar4 + (long)iVar2 * 8 + 6) = param_4;\n    *(long *)(piVar4 + (long)iVar2 * 8 + 4) = lVar3;\n    (piVar4 + (long)iVar2 * 8 + 10)[0] = 0;\n    (piVar4 + (long)iVar2 * 8 + 10)[1] = 0;\n    *piVar4 = iVar2 + 1;\n    param_2 = piVar4;\n  }\n  else {\n    FUN_00144a33(lVar1,param_4);\n    FUN_0014490a(lVar1,param_5);\n    FUN_00141394(lVar1,lVar3);\n  }\n  return param_2;\n}" { (declaration "long lVar1;" (sized_type_specifier "long" long) identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "long lVar3;" (sized_type_specifier "long" long) identifier ;) (declaration "int *piVar4;" primitive_type (pointer_declarator "*piVar4" * identifier) ;) (declaration "long lVar5;" (sized_type_specifier "long" long) identifier ;) (expression_statement "lVar1 = *param_1;" (assignment_expression "lVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) (expression_statement "lVar3 = FUN_00137c32(lVar1,param_3);" (assignment_expression "lVar3 = FUN_00137c32(lVar1,param_3)" identifier = (call_expression "FUN_00137c32(lVar1,param_3)" identifier (argument_list "(lVar1,param_3)" ( identifier , identifier )))) ;) (if_statement "if ((lVar3 == 0) || (param_2 == (int *)0x0)) {\n    if (param_2 == (int *)0x0) {\n      piVar4 = (int *)FUN_0013730e(lVar1,0x30);\n      goto LAB_0016435c;\n    }\n  }\n  else if (0 < *param_2) {\n    lVar5 = 0;\n    do {\n      iVar2 = FUN_0012ad2f(lVar3,*(undefined8 *)(param_2 + lVar5 * 8 + 4));\n      if (iVar2 == 0) {\n        FUN_0015f67f(param_1,"duplicate WITH table name: %s",lVar3);\n      }\n      lVar5 = lVar5 + 1;\n    } while ((int)lVar5 < *param_2);\n  }" if (parenthesized_expression "((lVar3 == 0) || (param_2 == (int *)0x0))" ( (binary_expression "(lVar3 == 0) || (param_2 == (int *)0x0)" (parenthesized_expression "(lVar3 == 0)" ( (binary_expression "lVar3 == 0" identifier == number_literal) )) || (parenthesized_expression "(param_2 == (int *)0x0)" ( (binary_expression "param_2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    if (param_2 == (int *)0x0) {\n      piVar4 = (int *)FUN_0013730e(lVar1,0x30);\n      goto LAB_0016435c;\n    }\n  }" { (if_statement "if (param_2 == (int *)0x0) {\n      piVar4 = (int *)FUN_0013730e(lVar1,0x30);\n      goto LAB_0016435c;\n    }" if (parenthesized_expression "(param_2 == (int *)0x0)" ( (binary_expression "param_2 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      piVar4 = (int *)FUN_0013730e(lVar1,0x30);\n      goto LAB_0016435c;\n    }" { (expression_statement "piVar4 = (int *)FUN_0013730e(lVar1,0x30);" (assignment_expression "piVar4 = (int *)FUN_0013730e(lVar1,0x30)" identifier = (cast_expression "(int *)FUN_0013730e(lVar1,0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0013730e(lVar1,0x30)" identifier (argument_list "(lVar1,0x30)" ( identifier , number_literal ))))) ;) (goto_statement "goto LAB_0016435c;" goto statement_identifier ;) })) }) (else_clause "else if (0 < *param_2) {\n    lVar5 = 0;\n    do {\n      iVar2 = FUN_0012ad2f(lVar3,*(undefined8 *)(param_2 + lVar5 * 8 + 4));\n      if (iVar2 == 0) {\n        FUN_0015f67f(param_1,"duplicate WITH table name: %s",lVar3);\n      }\n      lVar5 = lVar5 + 1;\n    } while ((int)lVar5 < *param_2);\n  }" else (if_statement "if (0 < *param_2) {\n    lVar5 = 0;\n    do {\n      iVar2 = FUN_0012ad2f(lVar3,*(undefined8 *)(param_2 + lVar5 * 8 + 4));\n      if (iVar2 == 0) {\n        FUN_0015f67f(param_1,"duplicate WITH table name: %s",lVar3);\n      }\n      lVar5 = lVar5 + 1;\n    } while ((int)lVar5 < *param_2);\n  }" if (parenthesized_expression "(0 < *param_2)" ( (binary_expression "0 < *param_2" number_literal < (pointer_expression "*param_2" * identifier)) )) (compound_statement "{\n    lVar5 = 0;\n    do {\n      iVar2 = FUN_0012ad2f(lVar3,*(undefined8 *)(param_2 + lVar5 * 8 + 4));\n      if (iVar2 == 0) {\n        FUN_0015f67f(param_1,"duplicate WITH table name: %s",lVar3);\n      }\n      lVar5 = lVar5 + 1;\n    } while ((int)lVar5 < *param_2);\n  }" { (expression_statement "lVar5 = 0;" (assignment_expression "lVar5 = 0" identifier = number_literal) ;) (do_statement "do {\n      iVar2 = FUN_0012ad2f(lVar3,*(undefined8 *)(param_2 + lVar5 * 8 + 4));\n      if (iVar2 == 0) {\n        FUN_0015f67f(param_1,"duplicate WITH table name: %s",lVar3);\n      }\n      lVar5 = lVar5 + 1;\n    } while ((int)lVar5 < *param_2);" do (compound_statement "{\n      iVar2 = FUN_0012ad2f(lVar3,*(undefined8 *)(param_2 + lVar5 * 8 + 4));\n      if (iVar2 == 0) {\n        FUN_0015f67f(param_1,"duplicate WITH table name: %s",lVar3);\n      }\n      lVar5 = lVar5 + 1;\n    }" { (expression_statement "iVar2 = FUN_0012ad2f(lVar3,*(undefined8 *)(param_2 + lVar5 * 8 + 4));" (assignment_expression "iVar2 = FUN_0012ad2f(lVar3,*(undefined8 *)(param_2 + lVar5 * 8 + 4))" identifier = (call_expression "FUN_0012ad2f(lVar3,*(undefined8 *)(param_2 + lVar5 * 8 + 4))" identifier (argument_list "(lVar3,*(undefined8 *)(param_2 + lVar5 * 8 + 4))" ( identifier , (pointer_expression "*(undefined8 *)(param_2 + lVar5 * 8 + 4)" * (cast_expression "(undefined8 *)(param_2 + lVar5 * 8 + 4)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + lVar5 * 8 + 4)" ( (binary_expression "param_2 + lVar5 * 8 + 4" (binary_expression "param_2 + lVar5 * 8" identifier + (binary_expression "lVar5 * 8" identifier * number_literal)) + number_literal) )))) )))) ;) (if_statement "if (iVar2 == 0) {\n        FUN_0015f67f(param_1,"duplicate WITH table name: %s",lVar3);\n      }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n        FUN_0015f67f(param_1,"duplicate WITH table name: %s",lVar3);\n      }" { (expression_statement "FUN_0015f67f(param_1,"duplicate WITH table name: %s",lVar3);" (call_expression "FUN_0015f67f(param_1,"duplicate WITH table name: %s",lVar3)" identifier (argument_list "(param_1,"duplicate WITH table name: %s",lVar3)" ( identifier , (string_literal ""duplicate WITH table name: %s"" " string_content ") , identifier ))) ;) })) (expression_statement "lVar5 = lVar5 + 1;" (assignment_expression "lVar5 = lVar5 + 1" identifier = (binary_expression "lVar5 + 1" identifier + number_literal)) ;) }) while (parenthesized_expression "((int)lVar5 < *param_2)" ( (binary_expression "(int)lVar5 < *param_2" (cast_expression "(int)lVar5" ( (type_descriptor "int" primitive_type) ) identifier) < (pointer_expression "*param_2" * identifier)) )) ;) })))) (expression_statement "piVar4 = (int *)FUN_0015006b(lVar1,param_2,(long)*param_2 * 0x20 + 0x30);" (assignment_expression "piVar4 = (int *)FUN_0015006b(lVar1,param_2,(long)*param_2 * 0x20 + 0x30)" identifier = (cast_expression "(int *)FUN_0015006b(lVar1,param_2,(long)*param_2 * 0x20 + 0x30)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0015006b(lVar1,param_2,(long)*param_2 * 0x20 + 0x30)" identifier (argument_list "(lVar1,param_2,(long)*param_2 * 0x20 + 0x30)" ( identifier , identifier , (binary_expression "(long)*param_2 * 0x20 + 0x30" (binary_expression "(long)*param_2 * 0x20" (cast_expression "(long)*param_2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "*param_2" * identifier)) * number_literal) + number_literal) ))))) ;) (labeled_statement "LAB_0016435c:\n  if (*(char *)(lVar1 + 0x61) == '\0') {\n    iVar2 = *piVar4;\n    *(undefined8 *)(piVar4 + (long)iVar2 * 8 + 8) = param_5;\n    *(undefined8 *)(piVar4 + (long)iVar2 * 8 + 6) = param_4;\n    *(long *)(piVar4 + (long)iVar2 * 8 + 4) = lVar3;\n    (piVar4 + (long)iVar2 * 8 + 10)[0] = 0;\n    (piVar4 + (long)iVar2 * 8 + 10)[1] = 0;\n    *piVar4 = iVar2 + 1;\n    param_2 = piVar4;\n  }\n  else {\n    FUN_00144a33(lVar1,param_4);\n    FUN_0014490a(lVar1,param_5);\n    FUN_00141394(lVar1,lVar3);\n  }" statement_identifier : (if_statement "if (*(char *)(lVar1 + 0x61) == '\0') {\n    iVar2 = *piVar4;\n    *(undefined8 *)(piVar4 + (long)iVar2 * 8 + 8) = param_5;\n    *(undefined8 *)(piVar4 + (long)iVar2 * 8 + 6) = param_4;\n    *(long *)(piVar4 + (long)iVar2 * 8 + 4) = lVar3;\n    (piVar4 + (long)iVar2 * 8 + 10)[0] = 0;\n    (piVar4 + (long)iVar2 * 8 + 10)[1] = 0;\n    *piVar4 = iVar2 + 1;\n    param_2 = piVar4;\n  }\n  else {\n    FUN_00144a33(lVar1,param_4);\n    FUN_0014490a(lVar1,param_5);\n    FUN_00141394(lVar1,lVar3);\n  }" if (parenthesized_expression "(*(char *)(lVar1 + 0x61) == '\0')" ( (binary_expression "*(char *)(lVar1 + 0x61) == '\0'" (pointer_expression "*(char *)(lVar1 + 0x61)" * (cast_expression "(char *)(lVar1 + 0x61)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(lVar1 + 0x61)" ( (binary_expression "lVar1 + 0x61" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    iVar2 = *piVar4;\n    *(undefined8 *)(piVar4 + (long)iVar2 * 8 + 8) = param_5;\n    *(undefined8 *)(piVar4 + (long)iVar2 * 8 + 6) = param_4;\n    *(long *)(piVar4 + (long)iVar2 * 8 + 4) = lVar3;\n    (piVar4 + (long)iVar2 * 8 + 10)[0] = 0;\n    (piVar4 + (long)iVar2 * 8 + 10)[1] = 0;\n    *piVar4 = iVar2 + 1;\n    param_2 = piVar4;\n  }" { (expression_statement "iVar2 = *piVar4;" (assignment_expression "iVar2 = *piVar4" identifier = (pointer_expression "*piVar4" * identifier)) ;) (expression_statement "*(undefined8 *)(piVar4 + (long)iVar2 * 8 + 8) = param_5;" (assignment_expression "*(undefined8 *)(piVar4 + (long)iVar2 * 8 + 8) = param_5" (pointer_expression "*(undefined8 *)(piVar4 + (long)iVar2 * 8 + 8)" * (cast_expression "(undefined8 *)(piVar4 + (long)iVar2 * 8 + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar4 + (long)iVar2 * 8 + 8)" ( (binary_expression "piVar4 + (long)iVar2 * 8 + 8" (binary_expression "piVar4 + (long)iVar2 * 8" identifier + (binary_expression "(long)iVar2 * 8" (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) + number_literal) )))) = identifier) ;) (expression_statement "*(undefined8 *)(piVar4 + (long)iVar2 * 8 + 6) = param_4;" (assignment_expression "*(undefined8 *)(piVar4 + (long)iVar2 * 8 + 6) = param_4" (pointer_expression "*(undefined8 *)(piVar4 + (long)iVar2 * 8 + 6)" * (cast_expression "(undefined8 *)(piVar4 + (long)iVar2 * 8 + 6)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar4 + (long)iVar2 * 8 + 6)" ( (binary_expression "piVar4 + (long)iVar2 * 8 + 6" (binary_expression "piVar4 + (long)iVar2 * 8" identifier + (binary_expression "(long)iVar2 * 8" (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) + number_literal) )))) = identifier) ;) (expression_statement "*(long *)(piVar4 + (long)iVar2 * 8 + 4) = lVar3;" (assignment_expression "*(long *)(piVar4 + (long)iVar2 * 8 + 4) = lVar3" (pointer_expression "*(long *)(piVar4 + (long)iVar2 * 8 + 4)" * (cast_expression "(long *)(piVar4 + (long)iVar2 * 8 + 4)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(piVar4 + (long)iVar2 * 8 + 4)" ( (binary_expression "piVar4 + (long)iVar2 * 8 + 4" (binary_expression "piVar4 + (long)iVar2 * 8" identifier + (binary_expression "(long)iVar2 * 8" (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) + number_literal) )))) = identifier) ;) (expression_statement "(piVar4 + (long)iVar2 * 8 + 10)[0] = 0;" (assignment_expression "(piVar4 + (long)iVar2 * 8 + 10)[0] = 0" (subscript_expression "(piVar4 + (long)iVar2 * 8 + 10)[0]" (parenthesized_expression "(piVar4 + (long)iVar2 * 8 + 10)" ( (binary_expression "piVar4 + (long)iVar2 * 8 + 10" (binary_expression "piVar4 + (long)iVar2 * 8" identifier + (binary_expression "(long)iVar2 * 8" (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) + number_literal) )) [ number_literal ]) = number_literal) ;) (expression_statement "(piVar4 + (long)iVar2 * 8 + 10)[1] = 0;" (assignment_expression "(piVar4 + (long)iVar2 * 8 + 10)[1] = 0" (subscript_expression "(piVar4 + (long)iVar2 * 8 + 10)[1]" (parenthesized_expression "(piVar4 + (long)iVar2 * 8 + 10)" ( (binary_expression "piVar4 + (long)iVar2 * 8 + 10" (binary_expression "piVar4 + (long)iVar2 * 8" identifier + (binary_expression "(long)iVar2 * 8" (cast_expression "(long)iVar2" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) identifier) * number_literal)) + number_literal) )) [ number_literal ]) = number_literal) ;) (expression_statement "*piVar4 = iVar2 + 1;" (assignment_expression "*piVar4 = iVar2 + 1" (pointer_expression "*piVar4" * identifier) = (binary_expression "iVar2 + 1" identifier + number_literal)) ;) (expression_statement "param_2 = piVar4;" (assignment_expression "param_2 = piVar4" identifier = identifier) ;) }) (else_clause "else {\n    FUN_00144a33(lVar1,param_4);\n    FUN_0014490a(lVar1,param_5);\n    FUN_00141394(lVar1,lVar3);\n  }" else (compound_statement "{\n    FUN_00144a33(lVar1,param_4);\n    FUN_0014490a(lVar1,param_5);\n    FUN_00141394(lVar1,lVar3);\n  }" { (expression_statement "FUN_00144a33(lVar1,param_4);" (call_expression "FUN_00144a33(lVar1,param_4)" identifier (argument_list "(lVar1,param_4)" ( identifier , identifier ))) ;) (expression_statement "FUN_0014490a(lVar1,param_5);" (call_expression "FUN_0014490a(lVar1,param_5)" identifier (argument_list "(lVar1,param_5)" ( identifier , identifier ))) ;) (expression_statement "FUN_00141394(lVar1,lVar3);" (call_expression "FUN_00141394(lVar1,lVar3)" identifier (argument_list "(lVar1,lVar3)" ( identifier , identifier ))) ;) })))) (return_statement "return param_2;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) )))) (compound_statement { (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE IDENT ;) (declaration (sized_type_specifier long) IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration (sized_type_specifier long) IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT == LIT) )) || (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) ))) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , LIT ))))) ;) (goto_statement goto statement_identifier ;) })) }) (else_clause else (if_statement if (parenthesized_expression ( (binary_expression LIT < (pointer_expression * IDENT)) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) (do_statement do (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( IDENT , (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression IDENT * LIT)) + LIT) )))) )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , (string_literal " string_content ") , IDENT ))) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression IDENT + LIT)) ;) }) while (parenthesized_expression ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) < (pointer_expression * IDENT)) )) ;) })))) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( IDENT , IDENT , (binary_expression (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) (pointer_expression * IDENT)) * LIT) + LIT) ))))) ;) (labeled_statement statement_identifier : (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) * LIT)) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) * LIT)) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) * LIT)) + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) * LIT)) + LIT) )) [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression (parenthesized_expression ( (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor (sized_type_specifier long)) ) IDENT) * LIT)) + LIT) )) [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = (binary_expression IDENT + LIT)) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) }) (else_clause else (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })))) (return_statement return IDENT ;) })))
(function_definition "int * FUN_001642b4(long *param_1,int *param_2,undefined8 param_3,undefined8 param_4,\n                  undefined8 param_5)\n\n{\n  long lVar1;\n  int iVar2;\n  long lVar3;\n  int *piVar4;\n  long lVar5;\n  \n  lVar1 = *param_1;\n  lVar3 = FUN_00137c32(lVar1,param_3);\n  if ((lVar3 == 0) || (param_2 == (int *)0x0)) {\n    if (param_2 == (int *)0x0) {\n      piVar4 = (int *)FUN_0013730e(lVar1,0x30);\n      goto LAB_0016435c;\n    }\n  }\n  else if (0 < *param_2) {\n    lVar5 = 0;\n    do {\n      iVar2 = FUN_0012ad2f(lVar3,*(undefined8 *)(param_2 + lVar5 * 8 + 4));\n      if (iVar2 == 0) {\n        FUN_0015f67f(param_1,"duplicate WITH table name: %s",lVar3);\n      }\n      lVar5 = lVar5 + 1;\n    } while ((int)lVar5 < *param_2);\n  }\n  piVar4 = (int *)FUN_0015006b(lVar1,param_2,(long)*param_2 * 0x20 + 0x30);\nLAB_0016435c:\n  if (*(char *)(lVar1 + 0x61) == '\0') {\n    iVar2 = *piVar4;\n    *(undefined8 *)(piVar4 + (long)iVar2 * 8 + 8) = param_5;\n    *(undefined8 *)(piVar4 + (long)iVar2 * 8 + 6) = param_4;\n    *(long *)(piVar4 + (long)iVar2 * 8 + 4) = lVar3;\n    (piVar4 + (long)iVar2 * 8 + 10)[0] = 0;\n    (piVar4 + (long)iVar2 * 8 + 10)[1] = 0;\n    *piVar4 = iVar2 + 1;\n    param_2 = piVar4;\n  }\n  else {\n    FUN_00144a33(lVar1,param_4);\n    FUN_0014490a(lVar1,param_5);\n    FUN_00141394(lVar1,lVar3);\n  }\n  return param_2;\n}" (primitive_type "int") (pointer_declarator "* FUN_001642b4(long *param_1,int *param_2,undefined8 param_3,undefined8 param_4,\n                  undefined8 param_5)" (* "*") (function_declarator "FUN_001642b4(long *param_1,int *param_2,undefined8 param_3,undefined8 param_4,\n                  undefined8 param_5)" (identifier "FUN_001642b4") (parameter_list "(long *param_1,int *param_2,undefined8 param_3,undefined8 param_4,\n                  undefined8 param_5)" (( "(") (parameter_declaration "long *param_1" (sized_type_specifier "long" (long "long")) (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int *param_2" (primitive_type "int") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "undefined8 param_3" (type_identifier "undefined8") (identifier "param_3")) (, ",") (parameter_declaration "undefined8 param_4" (type_identifier "undefined8") (identifier "param_4")) (, ",") (parameter_declaration "undefined8 param_5" (type_identifier "undefined8") (identifier "param_5")) () ")")))) (compound_statement "{\n  long lVar1;\n  int iVar2;\n  long lVar3;\n  int *piVar4;\n  long lVar5;\n  \n  lVar1 = *param_1;\n  lVar3 = FUN_00137c32(lVar1,param_3);\n  if ((lVar3 == 0) || (param_2 == (int *)0x0)) {\n    if (param_2 == (int *)0x0) {\n      piVar4 = (int *)FUN_0013730e(lVar1,0x30);\n      goto LAB_0016435c;\n    }\n  }\n  else if (0 < *param_2) {\n    lVar5 = 0;\n    do {\n      iVar2 = FUN_0012ad2f(lVar3,*(undefined8 *)(param_2 + lVar5 * 8 + 4));\n      if (iVar2 == 0) {\n        FUN_0015f67f(param_1,"duplicate WITH table name: %s",lVar3);\n      }\n      lVar5 = lVar5 + 1;\n    } while ((int)lVar5 < *param_2);\n  }\n  piVar4 = (int *)FUN_0015006b(lVar1,param_2,(long)*param_2 * 0x20 + 0x30);\nLAB_0016435c:\n  if (*(char *)(lVar1 + 0x61) == '\0') {\n    iVar2 = *piVar4;\n    *(undefined8 *)(piVar4 + (long)iVar2 * 8 + 8) = param_5;\n    *(undefined8 *)(piVar4 + (long)iVar2 * 8 + 6) = param_4;\n    *(long *)(piVar4 + (long)iVar2 * 8 + 4) = lVar3;\n    (piVar4 + (long)iVar2 * 8 + 10)[0] = 0;\n    (piVar4 + (long)iVar2 * 8 + 10)[1] = 0;\n    *piVar4 = iVar2 + 1;\n    param_2 = piVar4;\n  }\n  else {\n    FUN_00144a33(lVar1,param_4);\n    FUN_0014490a(lVar1,param_5);\n    FUN_00141394(lVar1,lVar3);\n  }\n  return param_2;\n}" ({ "{") (declaration "long lVar1;" (sized_type_specifier "long" (long "long")) (identifier "lVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "long lVar3;" (sized_type_specifier "long" (long "long")) (identifier "lVar3") (; ";")) (declaration "int *piVar4;" (primitive_type "int") (pointer_declarator "*piVar4" (* "*") (identifier "piVar4")) (; ";")) (declaration "long lVar5;" (sized_type_specifier "long" (long "long")) (identifier "lVar5") (; ";")) (expression_statement "lVar1 = *param_1;" (assignment_expression "lVar1 = *param_1" (identifier "lVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (expression_statement "lVar3 = FUN_00137c32(lVar1,param_3);" (assignment_expression "lVar3 = FUN_00137c32(lVar1,param_3)" (identifier "lVar3") (= "=") (call_expression "FUN_00137c32(lVar1,param_3)" (identifier "FUN_00137c32") (argument_list "(lVar1,param_3)" (( "(") (identifier "lVar1") (, ",") (identifier "param_3") () ")")))) (; ";")) (if_statement "if ((lVar3 == 0) || (param_2 == (int *)0x0)) {\n    if (param_2 == (int *)0x0) {\n      piVar4 = (int *)FUN_0013730e(lVar1,0x30);\n      goto LAB_0016435c;\n    }\n  }\n  else if (0 < *param_2) {\n    lVar5 = 0;\n    do {\n      iVar2 = FUN_0012ad2f(lVar3,*(undefined8 *)(param_2 + lVar5 * 8 + 4));\n      if (iVar2 == 0) {\n        FUN_0015f67f(param_1,"duplicate WITH table name: %s",lVar3);\n      }\n      lVar5 = lVar5 + 1;\n    } while ((int)lVar5 < *param_2);\n  }" (if "if") (parenthesized_expression "((lVar3 == 0) || (param_2 == (int *)0x0))" (( "(") (binary_expression "(lVar3 == 0) || (param_2 == (int *)0x0)" (parenthesized_expression "(lVar3 == 0)" (( "(") (binary_expression "lVar3 == 0" (identifier "lVar3") (== "==") (number_literal "0")) () ")")) (|| "||") (parenthesized_expression "(param_2 == (int *)0x0)" (( "(") (binary_expression "param_2 == (int *)0x0" (identifier "param_2") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")"))) () ")")) (compound_statement "{\n    if (param_2 == (int *)0x0) {\n      piVar4 = (int *)FUN_0013730e(lVar1,0x30);\n      goto LAB_0016435c;\n    }\n  }" ({ "{") (if_statement "if (param_2 == (int *)0x0) {\n      piVar4 = (int *)FUN_0013730e(lVar1,0x30);\n      goto LAB_0016435c;\n    }" (if "if") (parenthesized_expression "(param_2 == (int *)0x0)" (( "(") (binary_expression "param_2 == (int *)0x0" (identifier "param_2") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      piVar4 = (int *)FUN_0013730e(lVar1,0x30);\n      goto LAB_0016435c;\n    }" ({ "{") (expression_statement "piVar4 = (int *)FUN_0013730e(lVar1,0x30);" (assignment_expression "piVar4 = (int *)FUN_0013730e(lVar1,0x30)" (identifier "piVar4") (= "=") (cast_expression "(int *)FUN_0013730e(lVar1,0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0013730e(lVar1,0x30)" (identifier "FUN_0013730e") (argument_list "(lVar1,0x30)" (( "(") (identifier "lVar1") (, ",") (number_literal "0x30") () ")"))))) (; ";")) (goto_statement "goto LAB_0016435c;" (goto "goto") (statement_identifier "LAB_0016435c") (; ";")) (} "}"))) (} "}")) (else_clause "else if (0 < *param_2) {\n    lVar5 = 0;\n    do {\n      iVar2 = FUN_0012ad2f(lVar3,*(undefined8 *)(param_2 + lVar5 * 8 + 4));\n      if (iVar2 == 0) {\n        FUN_0015f67f(param_1,"duplicate WITH table name: %s",lVar3);\n      }\n      lVar5 = lVar5 + 1;\n    } while ((int)lVar5 < *param_2);\n  }" (else "else") (if_statement "if (0 < *param_2) {\n    lVar5 = 0;\n    do {\n      iVar2 = FUN_0012ad2f(lVar3,*(undefined8 *)(param_2 + lVar5 * 8 + 4));\n      if (iVar2 == 0) {\n        FUN_0015f67f(param_1,"duplicate WITH table name: %s",lVar3);\n      }\n      lVar5 = lVar5 + 1;\n    } while ((int)lVar5 < *param_2);\n  }" (if "if") (parenthesized_expression "(0 < *param_2)" (( "(") (binary_expression "0 < *param_2" (number_literal "0") (< "<") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) () ")")) (compound_statement "{\n    lVar5 = 0;\n    do {\n      iVar2 = FUN_0012ad2f(lVar3,*(undefined8 *)(param_2 + lVar5 * 8 + 4));\n      if (iVar2 == 0) {\n        FUN_0015f67f(param_1,"duplicate WITH table name: %s",lVar3);\n      }\n      lVar5 = lVar5 + 1;\n    } while ((int)lVar5 < *param_2);\n  }" ({ "{") (expression_statement "lVar5 = 0;" (assignment_expression "lVar5 = 0" (identifier "lVar5") (= "=") (number_literal "0")) (; ";")) (do_statement "do {\n      iVar2 = FUN_0012ad2f(lVar3,*(undefined8 *)(param_2 + lVar5 * 8 + 4));\n      if (iVar2 == 0) {\n        FUN_0015f67f(param_1,"duplicate WITH table name: %s",lVar3);\n      }\n      lVar5 = lVar5 + 1;\n    } while ((int)lVar5 < *param_2);" (do "do") (compound_statement "{\n      iVar2 = FUN_0012ad2f(lVar3,*(undefined8 *)(param_2 + lVar5 * 8 + 4));\n      if (iVar2 == 0) {\n        FUN_0015f67f(param_1,"duplicate WITH table name: %s",lVar3);\n      }\n      lVar5 = lVar5 + 1;\n    }" ({ "{") (expression_statement "iVar2 = FUN_0012ad2f(lVar3,*(undefined8 *)(param_2 + lVar5 * 8 + 4));" (assignment_expression "iVar2 = FUN_0012ad2f(lVar3,*(undefined8 *)(param_2 + lVar5 * 8 + 4))" (identifier "iVar2") (= "=") (call_expression "FUN_0012ad2f(lVar3,*(undefined8 *)(param_2 + lVar5 * 8 + 4))" (identifier "FUN_0012ad2f") (argument_list "(lVar3,*(undefined8 *)(param_2 + lVar5 * 8 + 4))" (( "(") (identifier "lVar3") (, ",") (pointer_expression "*(undefined8 *)(param_2 + lVar5 * 8 + 4)" (* "*") (cast_expression "(undefined8 *)(param_2 + lVar5 * 8 + 4)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + lVar5 * 8 + 4)" (( "(") (binary_expression "param_2 + lVar5 * 8 + 4" (binary_expression "param_2 + lVar5 * 8" (identifier "param_2") (+ "+") (binary_expression "lVar5 * 8" (identifier "lVar5") (* "*") (number_literal "8"))) (+ "+") (number_literal "4")) () ")")))) () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n        FUN_0015f67f(param_1,"duplicate WITH table name: %s",lVar3);\n      }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n        FUN_0015f67f(param_1,"duplicate WITH table name: %s",lVar3);\n      }" ({ "{") (expression_statement "FUN_0015f67f(param_1,"duplicate WITH table name: %s",lVar3);" (call_expression "FUN_0015f67f(param_1,"duplicate WITH table name: %s",lVar3)" (identifier "FUN_0015f67f") (argument_list "(param_1,"duplicate WITH table name: %s",lVar3)" (( "(") (identifier "param_1") (, ",") (string_literal ""duplicate WITH table name: %s"" (" """) (string_content "duplicate WITH table name: %s") (" """)) (, ",") (identifier "lVar3") () ")"))) (; ";")) (} "}"))) (expression_statement "lVar5 = lVar5 + 1;" (assignment_expression "lVar5 = lVar5 + 1" (identifier "lVar5") (= "=") (binary_expression "lVar5 + 1" (identifier "lVar5") (+ "+") (number_literal "1"))) (; ";")) (} "}")) (while "while") (parenthesized_expression "((int)lVar5 < *param_2)" (( "(") (binary_expression "(int)lVar5 < *param_2" (cast_expression "(int)lVar5" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "lVar5")) (< "<") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) () ")")) (; ";")) (} "}"))))) (expression_statement "piVar4 = (int *)FUN_0015006b(lVar1,param_2,(long)*param_2 * 0x20 + 0x30);" (assignment_expression "piVar4 = (int *)FUN_0015006b(lVar1,param_2,(long)*param_2 * 0x20 + 0x30)" (identifier "piVar4") (= "=") (cast_expression "(int *)FUN_0015006b(lVar1,param_2,(long)*param_2 * 0x20 + 0x30)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0015006b(lVar1,param_2,(long)*param_2 * 0x20 + 0x30)" (identifier "FUN_0015006b") (argument_list "(lVar1,param_2,(long)*param_2 * 0x20 + 0x30)" (( "(") (identifier "lVar1") (, ",") (identifier "param_2") (, ",") (binary_expression "(long)*param_2 * 0x20 + 0x30" (binary_expression "(long)*param_2 * 0x20" (cast_expression "(long)*param_2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (pointer_expression "*param_2" (* "*") (identifier "param_2"))) (* "*") (number_literal "0x20")) (+ "+") (number_literal "0x30")) () ")"))))) (; ";")) (labeled_statement "LAB_0016435c:\n  if (*(char *)(lVar1 + 0x61) == '\0') {\n    iVar2 = *piVar4;\n    *(undefined8 *)(piVar4 + (long)iVar2 * 8 + 8) = param_5;\n    *(undefined8 *)(piVar4 + (long)iVar2 * 8 + 6) = param_4;\n    *(long *)(piVar4 + (long)iVar2 * 8 + 4) = lVar3;\n    (piVar4 + (long)iVar2 * 8 + 10)[0] = 0;\n    (piVar4 + (long)iVar2 * 8 + 10)[1] = 0;\n    *piVar4 = iVar2 + 1;\n    param_2 = piVar4;\n  }\n  else {\n    FUN_00144a33(lVar1,param_4);\n    FUN_0014490a(lVar1,param_5);\n    FUN_00141394(lVar1,lVar3);\n  }" (statement_identifier "LAB_0016435c") (: ":") (if_statement "if (*(char *)(lVar1 + 0x61) == '\0') {\n    iVar2 = *piVar4;\n    *(undefined8 *)(piVar4 + (long)iVar2 * 8 + 8) = param_5;\n    *(undefined8 *)(piVar4 + (long)iVar2 * 8 + 6) = param_4;\n    *(long *)(piVar4 + (long)iVar2 * 8 + 4) = lVar3;\n    (piVar4 + (long)iVar2 * 8 + 10)[0] = 0;\n    (piVar4 + (long)iVar2 * 8 + 10)[1] = 0;\n    *piVar4 = iVar2 + 1;\n    param_2 = piVar4;\n  }\n  else {\n    FUN_00144a33(lVar1,param_4);\n    FUN_0014490a(lVar1,param_5);\n    FUN_00141394(lVar1,lVar3);\n  }" (if "if") (parenthesized_expression "(*(char *)(lVar1 + 0x61) == '\0')" (( "(") (binary_expression "*(char *)(lVar1 + 0x61) == '\0'" (pointer_expression "*(char *)(lVar1 + 0x61)" (* "*") (cast_expression "(char *)(lVar1 + 0x61)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(lVar1 + 0x61)" (( "(") (binary_expression "lVar1 + 0x61" (identifier "lVar1") (+ "+") (number_literal "0x61")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    iVar2 = *piVar4;\n    *(undefined8 *)(piVar4 + (long)iVar2 * 8 + 8) = param_5;\n    *(undefined8 *)(piVar4 + (long)iVar2 * 8 + 6) = param_4;\n    *(long *)(piVar4 + (long)iVar2 * 8 + 4) = lVar3;\n    (piVar4 + (long)iVar2 * 8 + 10)[0] = 0;\n    (piVar4 + (long)iVar2 * 8 + 10)[1] = 0;\n    *piVar4 = iVar2 + 1;\n    param_2 = piVar4;\n  }" ({ "{") (expression_statement "iVar2 = *piVar4;" (assignment_expression "iVar2 = *piVar4" (identifier "iVar2") (= "=") (pointer_expression "*piVar4" (* "*") (identifier "piVar4"))) (; ";")) (expression_statement "*(undefined8 *)(piVar4 + (long)iVar2 * 8 + 8) = param_5;" (assignment_expression "*(undefined8 *)(piVar4 + (long)iVar2 * 8 + 8) = param_5" (pointer_expression "*(undefined8 *)(piVar4 + (long)iVar2 * 8 + 8)" (* "*") (cast_expression "(undefined8 *)(piVar4 + (long)iVar2 * 8 + 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar4 + (long)iVar2 * 8 + 8)" (( "(") (binary_expression "piVar4 + (long)iVar2 * 8 + 8" (binary_expression "piVar4 + (long)iVar2 * 8" (identifier "piVar4") (+ "+") (binary_expression "(long)iVar2 * 8" (cast_expression "(long)iVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar2")) (* "*") (number_literal "8"))) (+ "+") (number_literal "8")) () ")")))) (= "=") (identifier "param_5")) (; ";")) (expression_statement "*(undefined8 *)(piVar4 + (long)iVar2 * 8 + 6) = param_4;" (assignment_expression "*(undefined8 *)(piVar4 + (long)iVar2 * 8 + 6) = param_4" (pointer_expression "*(undefined8 *)(piVar4 + (long)iVar2 * 8 + 6)" (* "*") (cast_expression "(undefined8 *)(piVar4 + (long)iVar2 * 8 + 6)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar4 + (long)iVar2 * 8 + 6)" (( "(") (binary_expression "piVar4 + (long)iVar2 * 8 + 6" (binary_expression "piVar4 + (long)iVar2 * 8" (identifier "piVar4") (+ "+") (binary_expression "(long)iVar2 * 8" (cast_expression "(long)iVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar2")) (* "*") (number_literal "8"))) (+ "+") (number_literal "6")) () ")")))) (= "=") (identifier "param_4")) (; ";")) (expression_statement "*(long *)(piVar4 + (long)iVar2 * 8 + 4) = lVar3;" (assignment_expression "*(long *)(piVar4 + (long)iVar2 * 8 + 4) = lVar3" (pointer_expression "*(long *)(piVar4 + (long)iVar2 * 8 + 4)" (* "*") (cast_expression "(long *)(piVar4 + (long)iVar2 * 8 + 4)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(piVar4 + (long)iVar2 * 8 + 4)" (( "(") (binary_expression "piVar4 + (long)iVar2 * 8 + 4" (binary_expression "piVar4 + (long)iVar2 * 8" (identifier "piVar4") (+ "+") (binary_expression "(long)iVar2 * 8" (cast_expression "(long)iVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar2")) (* "*") (number_literal "8"))) (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "lVar3")) (; ";")) (expression_statement "(piVar4 + (long)iVar2 * 8 + 10)[0] = 0;" (assignment_expression "(piVar4 + (long)iVar2 * 8 + 10)[0] = 0" (subscript_expression "(piVar4 + (long)iVar2 * 8 + 10)[0]" (parenthesized_expression "(piVar4 + (long)iVar2 * 8 + 10)" (( "(") (binary_expression "piVar4 + (long)iVar2 * 8 + 10" (binary_expression "piVar4 + (long)iVar2 * 8" (identifier "piVar4") (+ "+") (binary_expression "(long)iVar2 * 8" (cast_expression "(long)iVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar2")) (* "*") (number_literal "8"))) (+ "+") (number_literal "10")) () ")")) ([ "[") (number_literal "0") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "(piVar4 + (long)iVar2 * 8 + 10)[1] = 0;" (assignment_expression "(piVar4 + (long)iVar2 * 8 + 10)[1] = 0" (subscript_expression "(piVar4 + (long)iVar2 * 8 + 10)[1]" (parenthesized_expression "(piVar4 + (long)iVar2 * 8 + 10)" (( "(") (binary_expression "piVar4 + (long)iVar2 * 8 + 10" (binary_expression "piVar4 + (long)iVar2 * 8" (identifier "piVar4") (+ "+") (binary_expression "(long)iVar2 * 8" (cast_expression "(long)iVar2" (( "(") (type_descriptor "long" (sized_type_specifier "long" (long "long"))) () ")") (identifier "iVar2")) (* "*") (number_literal "8"))) (+ "+") (number_literal "10")) () ")")) ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "*piVar4 = iVar2 + 1;" (assignment_expression "*piVar4 = iVar2 + 1" (pointer_expression "*piVar4" (* "*") (identifier "piVar4")) (= "=") (binary_expression "iVar2 + 1" (identifier "iVar2") (+ "+") (number_literal "1"))) (; ";")) (expression_statement "param_2 = piVar4;" (assignment_expression "param_2 = piVar4" (identifier "param_2") (= "=") (identifier "piVar4")) (; ";")) (} "}")) (else_clause "else {\n    FUN_00144a33(lVar1,param_4);\n    FUN_0014490a(lVar1,param_5);\n    FUN_00141394(lVar1,lVar3);\n  }" (else "else") (compound_statement "{\n    FUN_00144a33(lVar1,param_4);\n    FUN_0014490a(lVar1,param_5);\n    FUN_00141394(lVar1,lVar3);\n  }" ({ "{") (expression_statement "FUN_00144a33(lVar1,param_4);" (call_expression "FUN_00144a33(lVar1,param_4)" (identifier "FUN_00144a33") (argument_list "(lVar1,param_4)" (( "(") (identifier "lVar1") (, ",") (identifier "param_4") () ")"))) (; ";")) (expression_statement "FUN_0014490a(lVar1,param_5);" (call_expression "FUN_0014490a(lVar1,param_5)" (identifier "FUN_0014490a") (argument_list "(lVar1,param_5)" (( "(") (identifier "lVar1") (, ",") (identifier "param_5") () ")"))) (; ";")) (expression_statement "FUN_00141394(lVar1,lVar3);" (call_expression "FUN_00141394(lVar1,lVar3)" (identifier "FUN_00141394") (argument_list "(lVar1,lVar3)" (( "(") (identifier "lVar1") (, ",") (identifier "lVar3") () ")"))) (; ";")) (} "}"))))) (return_statement "return param_2;" (return "return") (identifier "param_2") (; ";")) (} "}")))

type_1 * function_1(type_2 *pParse,type_1 *var_3,type_3 *pName,type_4 *pArglist,type_5 *pQuery)

{
  type_6 *db;
  int var_6;
  char *var_2;
  type_1 *pWVar2;
  long var_8;
  
  db = pParse->db;
  var_2 = var_1(db,pName);
  if ((var_2 == (char *)0x0) || (var_3 == (type_1 *)0x0)) {
    if (var_3 == (type_1 *)0x0) {
      pWVar2 = (type_1 *)var_4(db,0x30);
      goto LAB_0016435c;
    }
  }
  else if (0 < var_3->nCte) {
    var_8 = 0;
    do {
      var_6 = var_5(var_2,var_3->a[var_8].zName);
      if (var_6 == 0) {
        var_7(pParse,"duplicate WITH table name: %s",var_2);
      }
      var_8 = var_8 + 1;
    } while ((int)var_8 < var_3->nCte);
  }
  pWVar2 = (type_1 *)var_9(db,var_3,(long)var_3->nCte * 0x20 + 0x30);
LAB_0016435c:
  if (db->mallocFailed == '\0') {
    var_6 = pWVar2->nCte;
    pWVar2->a[var_6].pSelect = pQuery;
    pWVar2->a[var_6].pCols = pArglist;
    pWVar2->a[var_6].zName = var_2;
    pWVar2->a[var_6].zCteErr = (char *)0x0;
    pWVar2->nCte = var_6 + 1;
    var_3 = pWVar2;
  }
  else {
    var_10(db,pArglist);
    var_11(db,pQuery);
    var_12(db,var_2);
  }
  return var_3;
}


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

int * MASKED(long *param_1,int *param_2,undefined8 param_3,undefined8 param_4,
                  undefined8 param_5)

{
  long lVar1;
  int iVar2;
  long lVar3;
  int *piVar4;
  long lVar5;
  
  lVar1 = *param_1;
  lVar3 = FUN_00137c32(lVar1,param_3);
  if ((lVar3 == 0) || (param_2 == (int *)0x0)) {
    if (param_2 == (int *)0x0) {
      piVar4 = (int *)FUN_0013730e(lVar1,0x30);
      goto LAB_0016435c;
    }
  }
  else if (0 < *param_2) {
    lVar5 = 0;
    do {
      iVar2 = FUN_0012ad2f(lVar3,*(undefined8 *)(param_2 + lVar5 * 8 + 4));
      if (iVar2 == 0) {
        FUN_0015f67f(param_1,"duplicate WITH table name: %s",lVar3);
      }
      lVar5 = lVar5 + 1;
    } while ((int)lVar5 < *param_2);
  }
  piVar4 = (int *)FUN_0015006b(lVar1,param_2,(long)*param_2 * 0x20 + 0x30);
LAB_0016435c:
  if (*(char *)(lVar1 + 0x61) == '\0') {
    iVar2 = *piVar4;
    *(undefined8 *)(piVar4 + (long)iVar2 * 8 + 8) = param_5;
    *(undefined8 *)(piVar4 + (long)iVar2 * 8 + 6) = param_4;
    *(long *)(piVar4 + (long)iVar2 * 8 + 4) = lVar3;
    (piVar4 + (long)iVar2 * 8 + 10)[0] = 0;
    (piVar4 + (long)iVar2 * 8 + 10)[1] = 0;
    *piVar4 = iVar2 + 1;
    param_2 = piVar4;
  }
  else {
    FUN_00144a33(lVar1,param_4);
    FUN_0014490a(lVar1,param_5);
    FUN_00141394(lVar1,lVar3);
  }
  return param_2;
}

