
SrcList * __regparm3
sqlite3SrcListAppend(Parse *pParse,SrcList *pList,Token *pTable,Token *pDatabase)

{
  sqlite3 *db;
  SrcList *pSVar1;
  char *pcVar2;
  uint uVar3;
  int iVar4;
  undefined4 *puVar5;
  byte bVar6;
  u64 in_stack_ffffffd4;
  
  bVar6 = 0;
  db = pParse->db;
  if (pList == (SrcList *)0x0) {
    if (db->mallocFailed != '\0') {
      return (SrcList *)0x0;
    }
    pSVar1 = (SrcList *)dbMallocRawFinish(db,in_stack_ffffffd4);
    if (pSVar1 == (SrcList *)0x0) {
      return (SrcList *)0x0;
    }
    pSVar1->nAlloc = 1;
    puVar5 = (undefined4 *)((uint)&pSVar1->a[0].zDatabase & 0xfffffffc);
    pSVar1->nSrc = 1;
    pSVar1->a[0].pSchema = (Schema *)0x0;
    pSVar1->a[0].pIBIndex = (Index *)0x0;
    iVar4 = 0;
    uVar3 = (uint)((int)pSVar1 + (0x4c - (int)puVar5)) >> 2;
    for (; uVar3 != 0; uVar3 = uVar3 - 1) {
      *puVar5 = 0;
      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;
    }
    pSVar1->a[0].iCursor = -1;
  }
  else {
    pSVar1 = sqlite3SrcListEnlarge(pParse,pList,1,pList->nSrc);
    if (pSVar1 == (SrcList *)0x0) {
      sqlite3SrcListDelete(db,pList);
      return (SrcList *)0x0;
    }
    iVar4 = pSVar1->nSrc + -1;
  }
  if ((pDatabase != (Token *)0x0) && (pDatabase->z != (char *)0x0)) {
    pcVar2 = sqlite3NameFromToken(db,pDatabase);
    pSVar1->a[iVar4].zName = pcVar2;
    pcVar2 = sqlite3NameFromToken(db,pTable);
    pSVar1->a[iVar4].zDatabase = pcVar2;
    return pSVar1;
  }
  pcVar2 = sqlite3NameFromToken(db,pTable);
  pSVar1->a[iVar4].zName = pcVar2;
  pSVar1->a[iVar4].zDatabase = (char *)0x0;
  return pSVar1;
}



int * __regparm2 FUN_0005f2b0(int *param_1,undefined4 *param_2,int *param_3)

{
  int *piVar1;
  int iVar2;
  uint uVar3;
  int iVar4;
  undefined4 *puVar5;
  byte bVar6;
  
  bVar6 = 0;
  if (param_2 == (undefined4 *)0x0) {
    if (*(char *)(*param_1 + 0x4d) != '\0') {
      return (int *)0x0;
    }
    piVar1 = (int *)FUN_000283a0();
    if (piVar1 == (int *)0x0) {
      return (int *)0x0;
    }
    piVar1[1] = 1;
    *piVar1 = 1;
    piVar1[2] = 0;
    piVar1[0x12] = 0;
    iVar4 = 0;
    puVar5 = (undefined4 *)((uint)(piVar1 + 3) & 0xfffffffc);
    for (uVar3 = (uint)((int)piVar1 + (0x4c - (int)((uint)(piVar1 + 3) & 0xfffffffc))) >> 2;
        uVar3 != 0; uVar3 = uVar3 - 1) {
      *puVar5 = 0;
      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;
    }
    piVar1[0xc] = -1;
  }
  else {
    piVar1 = (int *)FUN_0005f120(*param_2);
    if (piVar1 == (int *)0x0) {
      FUN_0003b750();
      return (int *)0x0;
    }
    iVar4 = *piVar1 + -1;
  }
  if ((param_3 != (int *)0x0) && (*param_3 != 0)) {
    iVar2 = FUN_00028a50();
    piVar1[iVar4 * 0x11 + 4] = iVar2;
    iVar2 = FUN_00028a50();
    piVar1[iVar4 * 0x11 + 3] = iVar2;
    return piVar1;
  }
  iVar2 = FUN_00028a50();
  piVar1[iVar4 * 0x11 + 4] = iVar2;
  piVar1[iVar4 * 0x11 + 3] = 0;
  return piVar1;
}


PUSH EBP
PUSH EDI
PUSH ESI
MOV ESI,EDX
PUSH EBX
SUB ESP,0x1c
MOV EBP,dword ptr [EAX]
MOV dword ptr [ESP + 0xc],ECX
TEST EDX,EDX
JZ 0x0005f350
SUB ESP,0xc
PUSH dword ptr [EDX]
MOV ECX,0x1
CALL 0x0005f120
ADD ESP,0x10
MOV EBX,EAX
TEST EAX,EAX
JZ 0x0005f3c0
MOV EAX,dword ptr [EAX]
LEA ESI,[EAX + -0x1]
MOV ECX,dword ptr [ESP + 0x30]
TEST ECX,ECX
JZ 0x0005f328
MOV EAX,dword ptr [ESP + 0x30]
MOV EDX,dword ptr [EAX]
TEST EDX,EDX
JZ 0x0005f328
IMUL ESI,ESI,0x44
MOV EDX,EAX
MOV EAX,EBP
CALL 0x00028a50
MOV EDX,dword ptr [ESP + 0xc]
ADD ESI,EBX
MOV dword ptr [ESI + 0x10],EAX
MOV EAX,EBP
CALL 0x00028a50
MOV dword ptr [ESI + 0xc],EAX
ADD ESP,0x1c
MOV EAX,EBX
POP EBX
POP ESI
POP EDI
POP EBP
RET
IMUL ESI,ESI,0x44
MOV EDX,dword ptr [ESP + 0xc]
MOV EAX,EBP
CALL 0x00028a50
ADD ESI,EBX
MOV dword ptr [ESI + 0x10],EAX
MOV EAX,EBX
MOV dword ptr [ESI + 0xc],0x0
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CMP byte ptr [EBP + 0x4d],0x0
JNZ 0x0005f3b0
MOV EDX,0x4c
XOR ECX,ECX
MOV EAX,EBP
CALL 0x000283a0
MOV EBX,EAX
TEST EAX,EAX
JZ 0x0005f3b0
LEA EDI,[EAX + 0xc]
LEA ECX,[EAX + 0x8]
MOV dword ptr [EAX + 0x4],0x1
AND EDI,0xfffffffc
MOV dword ptr [EAX],0x1
SUB ECX,EDI
MOV dword ptr [EAX + 0x8],0x0
ADD ECX,0x44
MOV dword ptr [EAX + 0x48],0x0
MOV EAX,ESI
XOR ESI,ESI
SHR ECX,0x2
STOSD.REP ES:EDI
MOV dword ptr [EBX + 0x30],0xffffffff
JMP 0x0005f2e8
ADD ESP,0x1c
XOR EBX,EBX
MOV EAX,EBX
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EDX,ESI
MOV EAX,EBP
CALL 0x0003b750
JMP 0x0005f319
(translation_unit "int * __regparm2 FUN_0005f2b0(int *param_1,undefined4 *param_2,int *param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  if (param_2 == (undefined4 *)0x0) {\n    if (*(char *)(*param_1 + 0x4d) != '\0') {\n      return (int *)0x0;\n    }\n    piVar1 = (int *)FUN_000283a0();\n    if (piVar1 == (int *)0x0) {\n      return (int *)0x0;\n    }\n    piVar1[1] = 1;\n    *piVar1 = 1;\n    piVar1[2] = 0;\n    piVar1[0x12] = 0;\n    iVar4 = 0;\n    puVar5 = (undefined4 *)((uint)(piVar1 + 3) & 0xfffffffc);\n    for (uVar3 = (uint)((int)piVar1 + (0x4c - (int)((uint)(piVar1 + 3) & 0xfffffffc))) >> 2;\n        uVar3 != 0; uVar3 = uVar3 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }\n    piVar1[0xc] = -1;\n  }\n  else {\n    piVar1 = (int *)FUN_0005f120(*param_2);\n    if (piVar1 == (int *)0x0) {\n      FUN_0003b750();\n      return (int *)0x0;\n    }\n    iVar4 = *piVar1 + -1;\n  }\n  if ((param_3 != (int *)0x0) && (*param_3 != 0)) {\n    iVar2 = FUN_00028a50();\n    piVar1[iVar4 * 0x11 + 4] = iVar2;\n    iVar2 = FUN_00028a50();\n    piVar1[iVar4 * 0x11 + 3] = iVar2;\n    return piVar1;\n  }\n  iVar2 = FUN_00028a50();\n  piVar1[iVar4 * 0x11 + 4] = iVar2;\n  piVar1[iVar4 * 0x11 + 3] = 0;\n  return piVar1;\n}\n\n" (function_definition "int * __regparm2 FUN_0005f2b0(int *param_1,undefined4 *param_2,int *param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  if (param_2 == (undefined4 *)0x0) {\n    if (*(char *)(*param_1 + 0x4d) != '\0') {\n      return (int *)0x0;\n    }\n    piVar1 = (int *)FUN_000283a0();\n    if (piVar1 == (int *)0x0) {\n      return (int *)0x0;\n    }\n    piVar1[1] = 1;\n    *piVar1 = 1;\n    piVar1[2] = 0;\n    piVar1[0x12] = 0;\n    iVar4 = 0;\n    puVar5 = (undefined4 *)((uint)(piVar1 + 3) & 0xfffffffc);\n    for (uVar3 = (uint)((int)piVar1 + (0x4c - (int)((uint)(piVar1 + 3) & 0xfffffffc))) >> 2;\n        uVar3 != 0; uVar3 = uVar3 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }\n    piVar1[0xc] = -1;\n  }\n  else {\n    piVar1 = (int *)FUN_0005f120(*param_2);\n    if (piVar1 == (int *)0x0) {\n      FUN_0003b750();\n      return (int *)0x0;\n    }\n    iVar4 = *piVar1 + -1;\n  }\n  if ((param_3 != (int *)0x0) && (*param_3 != 0)) {\n    iVar2 = FUN_00028a50();\n    piVar1[iVar4 * 0x11 + 4] = iVar2;\n    iVar2 = FUN_00028a50();\n    piVar1[iVar4 * 0x11 + 3] = iVar2;\n    return piVar1;\n  }\n  iVar2 = FUN_00028a50();\n  piVar1[iVar4 * 0x11 + 4] = iVar2;\n  piVar1[iVar4 * 0x11 + 3] = 0;\n  return piVar1;\n}" primitive_type (pointer_declarator "* __regparm2 FUN_0005f2b0(int *param_1,undefined4 *param_2,int *param_3)" * (ERROR "__regparm2" identifier) (function_declarator "FUN_0005f2b0(int *param_1,undefined4 *param_2,int *param_3)" identifier (parameter_list "(int *param_1,undefined4 *param_2,int *param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) )))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  if (param_2 == (undefined4 *)0x0) {\n    if (*(char *)(*param_1 + 0x4d) != '\0') {\n      return (int *)0x0;\n    }\n    piVar1 = (int *)FUN_000283a0();\n    if (piVar1 == (int *)0x0) {\n      return (int *)0x0;\n    }\n    piVar1[1] = 1;\n    *piVar1 = 1;\n    piVar1[2] = 0;\n    piVar1[0x12] = 0;\n    iVar4 = 0;\n    puVar5 = (undefined4 *)((uint)(piVar1 + 3) & 0xfffffffc);\n    for (uVar3 = (uint)((int)piVar1 + (0x4c - (int)((uint)(piVar1 + 3) & 0xfffffffc))) >> 2;\n        uVar3 != 0; uVar3 = uVar3 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }\n    piVar1[0xc] = -1;\n  }\n  else {\n    piVar1 = (int *)FUN_0005f120(*param_2);\n    if (piVar1 == (int *)0x0) {\n      FUN_0003b750();\n      return (int *)0x0;\n    }\n    iVar4 = *piVar1 + -1;\n  }\n  if ((param_3 != (int *)0x0) && (*param_3 != 0)) {\n    iVar2 = FUN_00028a50();\n    piVar1[iVar4 * 0x11 + 4] = iVar2;\n    iVar2 = FUN_00028a50();\n    piVar1[iVar4 * 0x11 + 3] = iVar2;\n    return piVar1;\n  }\n  iVar2 = FUN_00028a50();\n  piVar1[iVar4 * 0x11 + 4] = iVar2;\n  piVar1[iVar4 * 0x11 + 3] = 0;\n  return piVar1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "byte bVar6;" type_identifier identifier ;) (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" identifier = number_literal) ;) (if_statement "if (param_2 == (undefined4 *)0x0) {\n    if (*(char *)(*param_1 + 0x4d) != '\0') {\n      return (int *)0x0;\n    }\n    piVar1 = (int *)FUN_000283a0();\n    if (piVar1 == (int *)0x0) {\n      return (int *)0x0;\n    }\n    piVar1[1] = 1;\n    *piVar1 = 1;\n    piVar1[2] = 0;\n    piVar1[0x12] = 0;\n    iVar4 = 0;\n    puVar5 = (undefined4 *)((uint)(piVar1 + 3) & 0xfffffffc);\n    for (uVar3 = (uint)((int)piVar1 + (0x4c - (int)((uint)(piVar1 + 3) & 0xfffffffc))) >> 2;\n        uVar3 != 0; uVar3 = uVar3 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }\n    piVar1[0xc] = -1;\n  }\n  else {\n    piVar1 = (int *)FUN_0005f120(*param_2);\n    if (piVar1 == (int *)0x0) {\n      FUN_0003b750();\n      return (int *)0x0;\n    }\n    iVar4 = *piVar1 + -1;\n  }" if (parenthesized_expression "(param_2 == (undefined4 *)0x0)" ( (binary_expression "param_2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (*(char *)(*param_1 + 0x4d) != '\0') {\n      return (int *)0x0;\n    }\n    piVar1 = (int *)FUN_000283a0();\n    if (piVar1 == (int *)0x0) {\n      return (int *)0x0;\n    }\n    piVar1[1] = 1;\n    *piVar1 = 1;\n    piVar1[2] = 0;\n    piVar1[0x12] = 0;\n    iVar4 = 0;\n    puVar5 = (undefined4 *)((uint)(piVar1 + 3) & 0xfffffffc);\n    for (uVar3 = (uint)((int)piVar1 + (0x4c - (int)((uint)(piVar1 + 3) & 0xfffffffc))) >> 2;\n        uVar3 != 0; uVar3 = uVar3 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }\n    piVar1[0xc] = -1;\n  }" { (if_statement "if (*(char *)(*param_1 + 0x4d) != '\0') {\n      return (int *)0x0;\n    }" if (parenthesized_expression "(*(char *)(*param_1 + 0x4d) != '\0')" ( (binary_expression "*(char *)(*param_1 + 0x4d) != '\0'" (pointer_expression "*(char *)(*param_1 + 0x4d)" * (cast_expression "(char *)(*param_1 + 0x4d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x4d)" ( (binary_expression "*param_1 + 0x4d" (pointer_expression "*param_1" * identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return (int *)0x0;\n    }" { (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "piVar1 = (int *)FUN_000283a0();" (assignment_expression "piVar1 = (int *)FUN_000283a0()" identifier = (cast_expression "(int *)FUN_000283a0()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000283a0()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (piVar1 == (int *)0x0) {\n      return (int *)0x0;\n    }" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return (int *)0x0;\n    }" { (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "piVar1[1] = 1;" (assignment_expression "piVar1[1] = 1" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*piVar1 = 1;" (assignment_expression "*piVar1 = 1" (pointer_expression "*piVar1" * identifier) = number_literal) ;) (expression_statement "piVar1[2] = 0;" (assignment_expression "piVar1[2] = 0" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[0x12] = 0;" (assignment_expression "piVar1[0x12] = 0" (subscript_expression "piVar1[0x12]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "puVar5 = (undefined4 *)((uint)(piVar1 + 3) & 0xfffffffc);" (assignment_expression "puVar5 = (undefined4 *)((uint)(piVar1 + 3) & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)(piVar1 + 3) & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(piVar1 + 3) & 0xfffffffc)" ( (binary_expression "(uint)(piVar1 + 3) & 0xfffffffc" (call_expression "(uint)(piVar1 + 3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(piVar1 + 3)" ( (binary_expression "piVar1 + 3" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar3 = (uint)((int)piVar1 + (0x4c - (int)((uint)(piVar1 + 3) & 0xfffffffc))) >> 2;\n        uVar3 != 0; uVar3 = uVar3 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }" for ( (assignment_expression "uVar3 = (uint)((int)piVar1 + (0x4c - (int)((uint)(piVar1 + 3) & 0xfffffffc))) >> 2" identifier = (binary_expression "(uint)((int)piVar1 + (0x4c - (int)((uint)(piVar1 + 3) & 0xfffffffc))) >> 2" (call_expression "(uint)((int)piVar1 + (0x4c - (int)((uint)(piVar1 + 3) & 0xfffffffc)))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)piVar1 + (0x4c - (int)((uint)(piVar1 + 3) & 0xfffffffc)))" ( (binary_expression "(int)piVar1 + (0x4c - (int)((uint)(piVar1 + 3) & 0xfffffffc))" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x4c - (int)((uint)(piVar1 + 3) & 0xfffffffc))" ( (binary_expression "0x4c - (int)((uint)(piVar1 + 3) & 0xfffffffc)" number_literal - (cast_expression "(int)((uint)(piVar1 + 3) & 0xfffffffc)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)(piVar1 + 3) & 0xfffffffc)" ( (binary_expression "(uint)(piVar1 + 3) & 0xfffffffc" (call_expression "(uint)(piVar1 + 3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(piVar1 + 3)" ( (binary_expression "piVar1 + 3" identifier + number_literal) ))) & number_literal) )))) ))) ))) >> number_literal)) ; (binary_expression "uVar3 != 0" identifier != number_literal) ; (assignment_expression "uVar3 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ) (compound_statement "{\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }" { (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (expression_statement "puVar5 = puVar5 + (uint)bVar6 * -2 + 1;" (assignment_expression "puVar5 = puVar5 + (uint)bVar6 * -2 + 1" identifier = (binary_expression "puVar5 + (uint)bVar6 * -2 + 1" (binary_expression "puVar5 + (uint)bVar6 * -2" identifier + (binary_expression "(uint)bVar6 * -2" (cast_expression "(uint)bVar6" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "piVar1[0xc] = -1;" (assignment_expression "piVar1[0xc] = -1" (subscript_expression "piVar1[0xc]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else {\n    piVar1 = (int *)FUN_0005f120(*param_2);\n    if (piVar1 == (int *)0x0) {\n      FUN_0003b750();\n      return (int *)0x0;\n    }\n    iVar4 = *piVar1 + -1;\n  }" else (compound_statement "{\n    piVar1 = (int *)FUN_0005f120(*param_2);\n    if (piVar1 == (int *)0x0) {\n      FUN_0003b750();\n      return (int *)0x0;\n    }\n    iVar4 = *piVar1 + -1;\n  }" { (expression_statement "piVar1 = (int *)FUN_0005f120(*param_2);" (assignment_expression "piVar1 = (int *)FUN_0005f120(*param_2)" identifier = (cast_expression "(int *)FUN_0005f120(*param_2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0005f120(*param_2)" identifier (argument_list "(*param_2)" ( (pointer_expression "*param_2" * identifier) ))))) ;) (if_statement "if (piVar1 == (int *)0x0) {\n      FUN_0003b750();\n      return (int *)0x0;\n    }" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      FUN_0003b750();\n      return (int *)0x0;\n    }" { (expression_statement "FUN_0003b750();" (call_expression "FUN_0003b750()" identifier (argument_list "()" ( ))) ;) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "iVar4 = *piVar1 + -1;" (assignment_expression "iVar4 = *piVar1 + -1" identifier = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) }))) (if_statement "if ((param_3 != (int *)0x0) && (*param_3 != 0)) {\n    iVar2 = FUN_00028a50();\n    piVar1[iVar4 * 0x11 + 4] = iVar2;\n    iVar2 = FUN_00028a50();\n    piVar1[iVar4 * 0x11 + 3] = iVar2;\n    return piVar1;\n  }" if (parenthesized_expression "((param_3 != (int *)0x0) && (*param_3 != 0))" ( (binary_expression "(param_3 != (int *)0x0) && (*param_3 != 0)" (parenthesized_expression "(param_3 != (int *)0x0)" ( (binary_expression "param_3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*param_3 != 0)" ( (binary_expression "*param_3 != 0" (pointer_expression "*param_3" * identifier) != number_literal) ))) )) (compound_statement "{\n    iVar2 = FUN_00028a50();\n    piVar1[iVar4 * 0x11 + 4] = iVar2;\n    iVar2 = FUN_00028a50();\n    piVar1[iVar4 * 0x11 + 3] = iVar2;\n    return piVar1;\n  }" { (expression_statement "iVar2 = FUN_00028a50();" (assignment_expression "iVar2 = FUN_00028a50()" identifier = (call_expression "FUN_00028a50()" identifier (argument_list "()" ( )))) ;) (expression_statement "piVar1[iVar4 * 0x11 + 4] = iVar2;" (assignment_expression "piVar1[iVar4 * 0x11 + 4] = iVar2" (subscript_expression "piVar1[iVar4 * 0x11 + 4]" identifier [ (binary_expression "iVar4 * 0x11 + 4" (binary_expression "iVar4 * 0x11" identifier * number_literal) + number_literal) ]) = identifier) ;) (expression_statement "iVar2 = FUN_00028a50();" (assignment_expression "iVar2 = FUN_00028a50()" identifier = (call_expression "FUN_00028a50()" identifier (argument_list "()" ( )))) ;) (expression_statement "piVar1[iVar4 * 0x11 + 3] = iVar2;" (assignment_expression "piVar1[iVar4 * 0x11 + 3] = iVar2" (subscript_expression "piVar1[iVar4 * 0x11 + 3]" identifier [ (binary_expression "iVar4 * 0x11 + 3" (binary_expression "iVar4 * 0x11" identifier * number_literal) + number_literal) ]) = identifier) ;) (return_statement "return piVar1;" return identifier ;) })) (expression_statement "iVar2 = FUN_00028a50();" (assignment_expression "iVar2 = FUN_00028a50()" identifier = (call_expression "FUN_00028a50()" identifier (argument_list "()" ( )))) ;) (expression_statement "piVar1[iVar4 * 0x11 + 4] = iVar2;" (assignment_expression "piVar1[iVar4 * 0x11 + 4] = iVar2" (subscript_expression "piVar1[iVar4 * 0x11 + 4]" identifier [ (binary_expression "iVar4 * 0x11 + 4" (binary_expression "iVar4 * 0x11" identifier * number_literal) + number_literal) ]) = identifier) ;) (expression_statement "piVar1[iVar4 * 0x11 + 3] = 0;" (assignment_expression "piVar1[iVar4 * 0x11 + 3] = 0" (subscript_expression "piVar1[iVar4 * 0x11 + 3]" identifier [ (binary_expression "iVar4 * 0x11 + 3" (binary_expression "iVar4 * 0x11" identifier * number_literal) + number_literal) ]) = number_literal) ;) (return_statement "return piVar1;" return identifier ;) })))
(translation_unit "SrcList * __regparm3\nsqlite3SrcListAppend(Parse *pParse,SrcList *pList,Token *pTable,Token *pDatabase)\n\n{\n  sqlite3 *db;\n  SrcList *pSVar1;\n  char *pcVar2;\n  uint uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  byte bVar6;\n  u64 in_stack_ffffffd4;\n  \n  bVar6 = 0;\n  db = pParse->db;\n  if (pList == (SrcList *)0x0) {\n    if (db->mallocFailed != '\0') {\n      return (SrcList *)0x0;\n    }\n    pSVar1 = (SrcList *)dbMallocRawFinish(db,in_stack_ffffffd4);\n    if (pSVar1 == (SrcList *)0x0) {\n      return (SrcList *)0x0;\n    }\n    pSVar1->nAlloc = 1;\n    puVar5 = (undefined4 *)((uint)&pSVar1->a[0].zDatabase & 0xfffffffc);\n    pSVar1->nSrc = 1;\n    pSVar1->a[0].pSchema = (Schema *)0x0;\n    pSVar1->a[0].pIBIndex = (Index *)0x0;\n    iVar4 = 0;\n    uVar3 = (uint)((int)pSVar1 + (0x4c - (int)puVar5)) >> 2;\n    for (; uVar3 != 0; uVar3 = uVar3 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }\n    pSVar1->a[0].iCursor = -1;\n  }\n  else {\n    pSVar1 = sqlite3SrcListEnlarge(pParse,pList,1,pList->nSrc);\n    if (pSVar1 == (SrcList *)0x0) {\n      sqlite3SrcListDelete(db,pList);\n      return (SrcList *)0x0;\n    }\n    iVar4 = pSVar1->nSrc + -1;\n  }\n  if ((pDatabase != (Token *)0x0) && (pDatabase->z != (char *)0x0)) {\n    pcVar2 = sqlite3NameFromToken(db,pDatabase);\n    pSVar1->a[iVar4].zName = pcVar2;\n    pcVar2 = sqlite3NameFromToken(db,pTable);\n    pSVar1->a[iVar4].zDatabase = pcVar2;\n    return pSVar1;\n  }\n  pcVar2 = sqlite3NameFromToken(db,pTable);\n  pSVar1->a[iVar4].zName = pcVar2;\n  pSVar1->a[iVar4].zDatabase = (char *)0x0;\n  return pSVar1;\n}\n\n" (ERROR "SrcList * __regparm3\nsqlite3SrcListAppend(Parse *pParse,SrcList *pList,Token *pTable,Token *pDatabase)" (binary_expression "SrcList * __regparm3\nsqlite3SrcListAppend(Parse *pParse,SrcList *pList,Token *pTable,Token *pDatabase)" identifier * (ERROR "__regparm3" identifier) (call_expression "sqlite3SrcListAppend(Parse *pParse,SrcList *pList,Token *pTable,Token *pDatabase)" identifier (argument_list "(Parse *pParse,SrcList *pList,Token *pTable,Token *pDatabase)" ( (binary_expression "Parse *pParse" identifier * identifier) , (binary_expression "SrcList *pList" identifier * identifier) , (binary_expression "Token *pTable" identifier * identifier) , (binary_expression "Token *pDatabase" identifier * identifier) ))))) (compound_statement "{\n  sqlite3 *db;\n  SrcList *pSVar1;\n  char *pcVar2;\n  uint uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  byte bVar6;\n  u64 in_stack_ffffffd4;\n  \n  bVar6 = 0;\n  db = pParse->db;\n  if (pList == (SrcList *)0x0) {\n    if (db->mallocFailed != '\0') {\n      return (SrcList *)0x0;\n    }\n    pSVar1 = (SrcList *)dbMallocRawFinish(db,in_stack_ffffffd4);\n    if (pSVar1 == (SrcList *)0x0) {\n      return (SrcList *)0x0;\n    }\n    pSVar1->nAlloc = 1;\n    puVar5 = (undefined4 *)((uint)&pSVar1->a[0].zDatabase & 0xfffffffc);\n    pSVar1->nSrc = 1;\n    pSVar1->a[0].pSchema = (Schema *)0x0;\n    pSVar1->a[0].pIBIndex = (Index *)0x0;\n    iVar4 = 0;\n    uVar3 = (uint)((int)pSVar1 + (0x4c - (int)puVar5)) >> 2;\n    for (; uVar3 != 0; uVar3 = uVar3 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }\n    pSVar1->a[0].iCursor = -1;\n  }\n  else {\n    pSVar1 = sqlite3SrcListEnlarge(pParse,pList,1,pList->nSrc);\n    if (pSVar1 == (SrcList *)0x0) {\n      sqlite3SrcListDelete(db,pList);\n      return (SrcList *)0x0;\n    }\n    iVar4 = pSVar1->nSrc + -1;\n  }\n  if ((pDatabase != (Token *)0x0) && (pDatabase->z != (char *)0x0)) {\n    pcVar2 = sqlite3NameFromToken(db,pDatabase);\n    pSVar1->a[iVar4].zName = pcVar2;\n    pcVar2 = sqlite3NameFromToken(db,pTable);\n    pSVar1->a[iVar4].zDatabase = pcVar2;\n    return pSVar1;\n  }\n  pcVar2 = sqlite3NameFromToken(db,pTable);\n  pSVar1->a[iVar4].zName = pcVar2;\n  pSVar1->a[iVar4].zDatabase = (char *)0x0;\n  return pSVar1;\n}" { (declaration "sqlite3 *db;" type_identifier (pointer_declarator "*db" * identifier) ;) (declaration "SrcList *pSVar1;" type_identifier (pointer_declarator "*pSVar1" * identifier) ;) (declaration "char *pcVar2;" primitive_type (pointer_declarator "*pcVar2" * identifier) ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "byte bVar6;" type_identifier identifier ;) (declaration "u64 in_stack_ffffffd4;" type_identifier identifier ;) (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" identifier = number_literal) ;) (expression_statement "db = pParse->db;" (assignment_expression "db = pParse->db" identifier = (field_expression "pParse->db" identifier -> field_identifier)) ;) (if_statement "if (pList == (SrcList *)0x0) {\n    if (db->mallocFailed != '\0') {\n      return (SrcList *)0x0;\n    }\n    pSVar1 = (SrcList *)dbMallocRawFinish(db,in_stack_ffffffd4);\n    if (pSVar1 == (SrcList *)0x0) {\n      return (SrcList *)0x0;\n    }\n    pSVar1->nAlloc = 1;\n    puVar5 = (undefined4 *)((uint)&pSVar1->a[0].zDatabase & 0xfffffffc);\n    pSVar1->nSrc = 1;\n    pSVar1->a[0].pSchema = (Schema *)0x0;\n    pSVar1->a[0].pIBIndex = (Index *)0x0;\n    iVar4 = 0;\n    uVar3 = (uint)((int)pSVar1 + (0x4c - (int)puVar5)) >> 2;\n    for (; uVar3 != 0; uVar3 = uVar3 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }\n    pSVar1->a[0].iCursor = -1;\n  }\n  else {\n    pSVar1 = sqlite3SrcListEnlarge(pParse,pList,1,pList->nSrc);\n    if (pSVar1 == (SrcList *)0x0) {\n      sqlite3SrcListDelete(db,pList);\n      return (SrcList *)0x0;\n    }\n    iVar4 = pSVar1->nSrc + -1;\n  }" if (parenthesized_expression "(pList == (SrcList *)0x0)" ( (binary_expression "pList == (SrcList *)0x0" identifier == (cast_expression "(SrcList *)0x0" ( (type_descriptor "SrcList *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (db->mallocFailed != '\0') {\n      return (SrcList *)0x0;\n    }\n    pSVar1 = (SrcList *)dbMallocRawFinish(db,in_stack_ffffffd4);\n    if (pSVar1 == (SrcList *)0x0) {\n      return (SrcList *)0x0;\n    }\n    pSVar1->nAlloc = 1;\n    puVar5 = (undefined4 *)((uint)&pSVar1->a[0].zDatabase & 0xfffffffc);\n    pSVar1->nSrc = 1;\n    pSVar1->a[0].pSchema = (Schema *)0x0;\n    pSVar1->a[0].pIBIndex = (Index *)0x0;\n    iVar4 = 0;\n    uVar3 = (uint)((int)pSVar1 + (0x4c - (int)puVar5)) >> 2;\n    for (; uVar3 != 0; uVar3 = uVar3 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }\n    pSVar1->a[0].iCursor = -1;\n  }" { (if_statement "if (db->mallocFailed != '\0') {\n      return (SrcList *)0x0;\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      return (SrcList *)0x0;\n    }" { (return_statement "return (SrcList *)0x0;" return (cast_expression "(SrcList *)0x0" ( (type_descriptor "SrcList *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "pSVar1 = (SrcList *)dbMallocRawFinish(db,in_stack_ffffffd4);" (assignment_expression "pSVar1 = (SrcList *)dbMallocRawFinish(db,in_stack_ffffffd4)" identifier = (cast_expression "(SrcList *)dbMallocRawFinish(db,in_stack_ffffffd4)" ( (type_descriptor "SrcList *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "dbMallocRawFinish(db,in_stack_ffffffd4)" identifier (argument_list "(db,in_stack_ffffffd4)" ( identifier , identifier ))))) ;) (if_statement "if (pSVar1 == (SrcList *)0x0) {\n      return (SrcList *)0x0;\n    }" if (parenthesized_expression "(pSVar1 == (SrcList *)0x0)" ( (binary_expression "pSVar1 == (SrcList *)0x0" identifier == (cast_expression "(SrcList *)0x0" ( (type_descriptor "SrcList *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return (SrcList *)0x0;\n    }" { (return_statement "return (SrcList *)0x0;" return (cast_expression "(SrcList *)0x0" ( (type_descriptor "SrcList *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "pSVar1->nAlloc = 1;" (assignment_expression "pSVar1->nAlloc = 1" (field_expression "pSVar1->nAlloc" identifier -> field_identifier) = number_literal) ;) (expression_statement "puVar5 = (undefined4 *)((uint)&pSVar1->a[0].zDatabase & 0xfffffffc);" (assignment_expression "puVar5 = (undefined4 *)((uint)&pSVar1->a[0].zDatabase & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)&pSVar1->a[0].zDatabase & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)&pSVar1->a[0].zDatabase & 0xfffffffc)" ( (binary_expression "(uint)&pSVar1->a[0].zDatabase & 0xfffffffc" (binary_expression "(uint)&pSVar1->a[0].zDatabase" (parenthesized_expression "(uint)" ( identifier )) & (field_expression "pSVar1->a[0].zDatabase" (subscript_expression "pSVar1->a[0]" (field_expression "pSVar1->a" identifier -> field_identifier) [ number_literal ]) . field_identifier)) & number_literal) )))) ;) (expression_statement "pSVar1->nSrc = 1;" (assignment_expression "pSVar1->nSrc = 1" (field_expression "pSVar1->nSrc" identifier -> field_identifier) = number_literal) ;) (expression_statement "pSVar1->a[0].pSchema = (Schema *)0x0;" (assignment_expression "pSVar1->a[0].pSchema = (Schema *)0x0" (field_expression "pSVar1->a[0].pSchema" (subscript_expression "pSVar1->a[0]" (field_expression "pSVar1->a" identifier -> field_identifier) [ number_literal ]) . field_identifier) = (cast_expression "(Schema *)0x0" ( (type_descriptor "Schema *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "pSVar1->a[0].pIBIndex = (Index *)0x0;" (assignment_expression "pSVar1->a[0].pIBIndex = (Index *)0x0" (field_expression "pSVar1->a[0].pIBIndex" (subscript_expression "pSVar1->a[0]" (field_expression "pSVar1->a" identifier -> field_identifier) [ number_literal ]) . field_identifier) = (cast_expression "(Index *)0x0" ( (type_descriptor "Index *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "uVar3 = (uint)((int)pSVar1 + (0x4c - (int)puVar5)) >> 2;" (assignment_expression "uVar3 = (uint)((int)pSVar1 + (0x4c - (int)puVar5)) >> 2" identifier = (binary_expression "(uint)((int)pSVar1 + (0x4c - (int)puVar5)) >> 2" (call_expression "(uint)((int)pSVar1 + (0x4c - (int)puVar5))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)pSVar1 + (0x4c - (int)puVar5))" ( (binary_expression "(int)pSVar1 + (0x4c - (int)puVar5)" (cast_expression "(int)pSVar1" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x4c - (int)puVar5)" ( (binary_expression "0x4c - (int)puVar5" number_literal - (cast_expression "(int)puVar5" ( (type_descriptor "int" primitive_type) ) identifier)) ))) ))) >> number_literal)) ;) (for_statement "for (; uVar3 != 0; uVar3 = uVar3 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }" for ( ; (binary_expression "uVar3 != 0" identifier != number_literal) ; (assignment_expression "uVar3 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ) (compound_statement "{\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }" { (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (expression_statement "puVar5 = puVar5 + (uint)bVar6 * -2 + 1;" (assignment_expression "puVar5 = puVar5 + (uint)bVar6 * -2 + 1" identifier = (binary_expression "puVar5 + (uint)bVar6 * -2 + 1" (binary_expression "puVar5 + (uint)bVar6 * -2" identifier + (binary_expression "(uint)bVar6 * -2" (cast_expression "(uint)bVar6" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "pSVar1->a[0].iCursor = -1;" (assignment_expression "pSVar1->a[0].iCursor = -1" (field_expression "pSVar1->a[0].iCursor" (subscript_expression "pSVar1->a[0]" (field_expression "pSVar1->a" identifier -> field_identifier) [ number_literal ]) . field_identifier) = number_literal) ;) }) (else_clause "else {\n    pSVar1 = sqlite3SrcListEnlarge(pParse,pList,1,pList->nSrc);\n    if (pSVar1 == (SrcList *)0x0) {\n      sqlite3SrcListDelete(db,pList);\n      return (SrcList *)0x0;\n    }\n    iVar4 = pSVar1->nSrc + -1;\n  }" else (compound_statement "{\n    pSVar1 = sqlite3SrcListEnlarge(pParse,pList,1,pList->nSrc);\n    if (pSVar1 == (SrcList *)0x0) {\n      sqlite3SrcListDelete(db,pList);\n      return (SrcList *)0x0;\n    }\n    iVar4 = pSVar1->nSrc + -1;\n  }" { (expression_statement "pSVar1 = sqlite3SrcListEnlarge(pParse,pList,1,pList->nSrc);" (assignment_expression "pSVar1 = sqlite3SrcListEnlarge(pParse,pList,1,pList->nSrc)" identifier = (call_expression "sqlite3SrcListEnlarge(pParse,pList,1,pList->nSrc)" identifier (argument_list "(pParse,pList,1,pList->nSrc)" ( identifier , identifier , number_literal , (field_expression "pList->nSrc" identifier -> field_identifier) )))) ;) (if_statement "if (pSVar1 == (SrcList *)0x0) {\n      sqlite3SrcListDelete(db,pList);\n      return (SrcList *)0x0;\n    }" if (parenthesized_expression "(pSVar1 == (SrcList *)0x0)" ( (binary_expression "pSVar1 == (SrcList *)0x0" identifier == (cast_expression "(SrcList *)0x0" ( (type_descriptor "SrcList *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      sqlite3SrcListDelete(db,pList);\n      return (SrcList *)0x0;\n    }" { (expression_statement "sqlite3SrcListDelete(db,pList);" (call_expression "sqlite3SrcListDelete(db,pList)" identifier (argument_list "(db,pList)" ( identifier , identifier ))) ;) (return_statement "return (SrcList *)0x0;" return (cast_expression "(SrcList *)0x0" ( (type_descriptor "SrcList *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "iVar4 = pSVar1->nSrc + -1;" (assignment_expression "iVar4 = pSVar1->nSrc + -1" identifier = (binary_expression "pSVar1->nSrc + -1" (field_expression "pSVar1->nSrc" identifier -> field_identifier) + number_literal)) ;) }))) (if_statement "if ((pDatabase != (Token *)0x0) && (pDatabase->z != (char *)0x0)) {\n    pcVar2 = sqlite3NameFromToken(db,pDatabase);\n    pSVar1->a[iVar4].zName = pcVar2;\n    pcVar2 = sqlite3NameFromToken(db,pTable);\n    pSVar1->a[iVar4].zDatabase = pcVar2;\n    return pSVar1;\n  }" if (parenthesized_expression "((pDatabase != (Token *)0x0) && (pDatabase->z != (char *)0x0))" ( (binary_expression "(pDatabase != (Token *)0x0) && (pDatabase->z != (char *)0x0)" (parenthesized_expression "(pDatabase != (Token *)0x0)" ( (binary_expression "pDatabase != (Token *)0x0" identifier != (cast_expression "(Token *)0x0" ( (type_descriptor "Token *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(pDatabase->z != (char *)0x0)" ( (binary_expression "pDatabase->z != (char *)0x0" (field_expression "pDatabase->z" identifier -> field_identifier) != (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ))) )) (compound_statement "{\n    pcVar2 = sqlite3NameFromToken(db,pDatabase);\n    pSVar1->a[iVar4].zName = pcVar2;\n    pcVar2 = sqlite3NameFromToken(db,pTable);\n    pSVar1->a[iVar4].zDatabase = pcVar2;\n    return pSVar1;\n  }" { (expression_statement "pcVar2 = sqlite3NameFromToken(db,pDatabase);" (assignment_expression "pcVar2 = sqlite3NameFromToken(db,pDatabase)" identifier = (call_expression "sqlite3NameFromToken(db,pDatabase)" identifier (argument_list "(db,pDatabase)" ( identifier , identifier )))) ;) (expression_statement "pSVar1->a[iVar4].zName = pcVar2;" (assignment_expression "pSVar1->a[iVar4].zName = pcVar2" (field_expression "pSVar1->a[iVar4].zName" (subscript_expression "pSVar1->a[iVar4]" (field_expression "pSVar1->a" identifier -> field_identifier) [ identifier ]) . field_identifier) = identifier) ;) (expression_statement "pcVar2 = sqlite3NameFromToken(db,pTable);" (assignment_expression "pcVar2 = sqlite3NameFromToken(db,pTable)" identifier = (call_expression "sqlite3NameFromToken(db,pTable)" identifier (argument_list "(db,pTable)" ( identifier , identifier )))) ;) (expression_statement "pSVar1->a[iVar4].zDatabase = pcVar2;" (assignment_expression "pSVar1->a[iVar4].zDatabase = pcVar2" (field_expression "pSVar1->a[iVar4].zDatabase" (subscript_expression "pSVar1->a[iVar4]" (field_expression "pSVar1->a" identifier -> field_identifier) [ identifier ]) . field_identifier) = identifier) ;) (return_statement "return pSVar1;" return identifier ;) })) (expression_statement "pcVar2 = sqlite3NameFromToken(db,pTable);" (assignment_expression "pcVar2 = sqlite3NameFromToken(db,pTable)" identifier = (call_expression "sqlite3NameFromToken(db,pTable)" identifier (argument_list "(db,pTable)" ( identifier , identifier )))) ;) (expression_statement "pSVar1->a[iVar4].zName = pcVar2;" (assignment_expression "pSVar1->a[iVar4].zName = pcVar2" (field_expression "pSVar1->a[iVar4].zName" (subscript_expression "pSVar1->a[iVar4]" (field_expression "pSVar1->a" identifier -> field_identifier) [ identifier ]) . field_identifier) = identifier) ;) (expression_statement "pSVar1->a[iVar4].zDatabase = (char *)0x0;" (assignment_expression "pSVar1->a[iVar4].zDatabase = (char *)0x0" (field_expression "pSVar1->a[iVar4].zDatabase" (subscript_expression "pSVar1->a[iVar4]" (field_expression "pSVar1->a" identifier -> field_identifier) [ identifier ]) . field_identifier) = (cast_expression "(char *)0x0" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (return_statement "return pSVar1;" return identifier ;) }))
(translation_unit "int * __regparm2 FUN_0005f2b0(int *param_1,undefined4 *param_2,int *param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  if (param_2 == (undefined4 *)0x0) {\n    if (*(char *)(*param_1 + 0x4d) != '\0') {\n      return (int *)0x0;\n    }\n    piVar1 = (int *)FUN_000283a0();\n    if (piVar1 == (int *)0x0) {\n      return (int *)0x0;\n    }\n    piVar1[1] = 1;\n    *piVar1 = 1;\n    piVar1[2] = 0;\n    piVar1[0x12] = 0;\n    iVar4 = 0;\n    puVar5 = (undefined4 *)((uint)(piVar1 + 3) & 0xfffffffc);\n    for (uVar3 = (uint)((int)piVar1 + (0x4c - (int)((uint)(piVar1 + 3) & 0xfffffffc))) >> 2;\n        uVar3 != 0; uVar3 = uVar3 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }\n    piVar1[0xc] = -1;\n  }\n  else {\n    piVar1 = (int *)FUN_0005f120(*param_2);\n    if (piVar1 == (int *)0x0) {\n      FUN_0003b750();\n      return (int *)0x0;\n    }\n    iVar4 = *piVar1 + -1;\n  }\n  if ((param_3 != (int *)0x0) && (*param_3 != 0)) {\n    iVar2 = FUN_00028a50();\n    piVar1[iVar4 * 0x11 + 4] = iVar2;\n    iVar2 = FUN_00028a50();\n    piVar1[iVar4 * 0x11 + 3] = iVar2;\n    return piVar1;\n  }\n  iVar2 = FUN_00028a50();\n  piVar1[iVar4 * 0x11 + 4] = iVar2;\n  piVar1[iVar4 * 0x11 + 3] = 0;\n  return piVar1;\n}\n\n" (function_definition "int * __regparm2 FUN_0005f2b0(int *param_1,undefined4 *param_2,int *param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  if (param_2 == (undefined4 *)0x0) {\n    if (*(char *)(*param_1 + 0x4d) != '\0') {\n      return (int *)0x0;\n    }\n    piVar1 = (int *)FUN_000283a0();\n    if (piVar1 == (int *)0x0) {\n      return (int *)0x0;\n    }\n    piVar1[1] = 1;\n    *piVar1 = 1;\n    piVar1[2] = 0;\n    piVar1[0x12] = 0;\n    iVar4 = 0;\n    puVar5 = (undefined4 *)((uint)(piVar1 + 3) & 0xfffffffc);\n    for (uVar3 = (uint)((int)piVar1 + (0x4c - (int)((uint)(piVar1 + 3) & 0xfffffffc))) >> 2;\n        uVar3 != 0; uVar3 = uVar3 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }\n    piVar1[0xc] = -1;\n  }\n  else {\n    piVar1 = (int *)FUN_0005f120(*param_2);\n    if (piVar1 == (int *)0x0) {\n      FUN_0003b750();\n      return (int *)0x0;\n    }\n    iVar4 = *piVar1 + -1;\n  }\n  if ((param_3 != (int *)0x0) && (*param_3 != 0)) {\n    iVar2 = FUN_00028a50();\n    piVar1[iVar4 * 0x11 + 4] = iVar2;\n    iVar2 = FUN_00028a50();\n    piVar1[iVar4 * 0x11 + 3] = iVar2;\n    return piVar1;\n  }\n  iVar2 = FUN_00028a50();\n  piVar1[iVar4 * 0x11 + 4] = iVar2;\n  piVar1[iVar4 * 0x11 + 3] = 0;\n  return piVar1;\n}" primitive_type (pointer_declarator "* __regparm2 FUN_0005f2b0(int *param_1,undefined4 *param_2,int *param_3)" * (ERROR "__regparm2" identifier) (function_declarator "FUN_0005f2b0(int *param_1,undefined4 *param_2,int *param_3)" identifier (parameter_list "(int *param_1,undefined4 *param_2,int *param_3)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 *param_2" type_identifier (pointer_declarator "*param_2" * identifier)) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) )))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  if (param_2 == (undefined4 *)0x0) {\n    if (*(char *)(*param_1 + 0x4d) != '\0') {\n      return (int *)0x0;\n    }\n    piVar1 = (int *)FUN_000283a0();\n    if (piVar1 == (int *)0x0) {\n      return (int *)0x0;\n    }\n    piVar1[1] = 1;\n    *piVar1 = 1;\n    piVar1[2] = 0;\n    piVar1[0x12] = 0;\n    iVar4 = 0;\n    puVar5 = (undefined4 *)((uint)(piVar1 + 3) & 0xfffffffc);\n    for (uVar3 = (uint)((int)piVar1 + (0x4c - (int)((uint)(piVar1 + 3) & 0xfffffffc))) >> 2;\n        uVar3 != 0; uVar3 = uVar3 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }\n    piVar1[0xc] = -1;\n  }\n  else {\n    piVar1 = (int *)FUN_0005f120(*param_2);\n    if (piVar1 == (int *)0x0) {\n      FUN_0003b750();\n      return (int *)0x0;\n    }\n    iVar4 = *piVar1 + -1;\n  }\n  if ((param_3 != (int *)0x0) && (*param_3 != 0)) {\n    iVar2 = FUN_00028a50();\n    piVar1[iVar4 * 0x11 + 4] = iVar2;\n    iVar2 = FUN_00028a50();\n    piVar1[iVar4 * 0x11 + 3] = iVar2;\n    return piVar1;\n  }\n  iVar2 = FUN_00028a50();\n  piVar1[iVar4 * 0x11 + 4] = iVar2;\n  piVar1[iVar4 * 0x11 + 3] = 0;\n  return piVar1;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "uint uVar3;" type_identifier identifier ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "undefined4 *puVar5;" type_identifier (pointer_declarator "*puVar5" * identifier) ;) (declaration "byte bVar6;" type_identifier identifier ;) (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" identifier = number_literal) ;) (if_statement "if (param_2 == (undefined4 *)0x0) {\n    if (*(char *)(*param_1 + 0x4d) != '\0') {\n      return (int *)0x0;\n    }\n    piVar1 = (int *)FUN_000283a0();\n    if (piVar1 == (int *)0x0) {\n      return (int *)0x0;\n    }\n    piVar1[1] = 1;\n    *piVar1 = 1;\n    piVar1[2] = 0;\n    piVar1[0x12] = 0;\n    iVar4 = 0;\n    puVar5 = (undefined4 *)((uint)(piVar1 + 3) & 0xfffffffc);\n    for (uVar3 = (uint)((int)piVar1 + (0x4c - (int)((uint)(piVar1 + 3) & 0xfffffffc))) >> 2;\n        uVar3 != 0; uVar3 = uVar3 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }\n    piVar1[0xc] = -1;\n  }\n  else {\n    piVar1 = (int *)FUN_0005f120(*param_2);\n    if (piVar1 == (int *)0x0) {\n      FUN_0003b750();\n      return (int *)0x0;\n    }\n    iVar4 = *piVar1 + -1;\n  }" if (parenthesized_expression "(param_2 == (undefined4 *)0x0)" ( (binary_expression "param_2 == (undefined4 *)0x0" identifier == (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    if (*(char *)(*param_1 + 0x4d) != '\0') {\n      return (int *)0x0;\n    }\n    piVar1 = (int *)FUN_000283a0();\n    if (piVar1 == (int *)0x0) {\n      return (int *)0x0;\n    }\n    piVar1[1] = 1;\n    *piVar1 = 1;\n    piVar1[2] = 0;\n    piVar1[0x12] = 0;\n    iVar4 = 0;\n    puVar5 = (undefined4 *)((uint)(piVar1 + 3) & 0xfffffffc);\n    for (uVar3 = (uint)((int)piVar1 + (0x4c - (int)((uint)(piVar1 + 3) & 0xfffffffc))) >> 2;\n        uVar3 != 0; uVar3 = uVar3 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }\n    piVar1[0xc] = -1;\n  }" { (if_statement "if (*(char *)(*param_1 + 0x4d) != '\0') {\n      return (int *)0x0;\n    }" if (parenthesized_expression "(*(char *)(*param_1 + 0x4d) != '\0')" ( (binary_expression "*(char *)(*param_1 + 0x4d) != '\0'" (pointer_expression "*(char *)(*param_1 + 0x4d)" * (cast_expression "(char *)(*param_1 + 0x4d)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x4d)" ( (binary_expression "*param_1 + 0x4d" (pointer_expression "*param_1" * identifier) + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n      return (int *)0x0;\n    }" { (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "piVar1 = (int *)FUN_000283a0();" (assignment_expression "piVar1 = (int *)FUN_000283a0()" identifier = (cast_expression "(int *)FUN_000283a0()" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_000283a0()" identifier (argument_list "()" ( ))))) ;) (if_statement "if (piVar1 == (int *)0x0) {\n      return (int *)0x0;\n    }" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      return (int *)0x0;\n    }" { (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "piVar1[1] = 1;" (assignment_expression "piVar1[1] = 1" (subscript_expression "piVar1[1]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "*piVar1 = 1;" (assignment_expression "*piVar1 = 1" (pointer_expression "*piVar1" * identifier) = number_literal) ;) (expression_statement "piVar1[2] = 0;" (assignment_expression "piVar1[2] = 0" (subscript_expression "piVar1[2]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "piVar1[0x12] = 0;" (assignment_expression "piVar1[0x12] = 0" (subscript_expression "piVar1[0x12]" identifier [ number_literal ]) = number_literal) ;) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" identifier = number_literal) ;) (expression_statement "puVar5 = (undefined4 *)((uint)(piVar1 + 3) & 0xfffffffc);" (assignment_expression "puVar5 = (undefined4 *)((uint)(piVar1 + 3) & 0xfffffffc)" identifier = (cast_expression "(undefined4 *)((uint)(piVar1 + 3) & 0xfffffffc)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((uint)(piVar1 + 3) & 0xfffffffc)" ( (binary_expression "(uint)(piVar1 + 3) & 0xfffffffc" (call_expression "(uint)(piVar1 + 3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(piVar1 + 3)" ( (binary_expression "piVar1 + 3" identifier + number_literal) ))) & number_literal) )))) ;) (for_statement "for (uVar3 = (uint)((int)piVar1 + (0x4c - (int)((uint)(piVar1 + 3) & 0xfffffffc))) >> 2;\n        uVar3 != 0; uVar3 = uVar3 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }" for ( (assignment_expression "uVar3 = (uint)((int)piVar1 + (0x4c - (int)((uint)(piVar1 + 3) & 0xfffffffc))) >> 2" identifier = (binary_expression "(uint)((int)piVar1 + (0x4c - (int)((uint)(piVar1 + 3) & 0xfffffffc))) >> 2" (call_expression "(uint)((int)piVar1 + (0x4c - (int)((uint)(piVar1 + 3) & 0xfffffffc)))" (parenthesized_expression "(uint)" ( identifier )) (argument_list "((int)piVar1 + (0x4c - (int)((uint)(piVar1 + 3) & 0xfffffffc)))" ( (binary_expression "(int)piVar1 + (0x4c - (int)((uint)(piVar1 + 3) & 0xfffffffc))" (cast_expression "(int)piVar1" ( (type_descriptor "int" primitive_type) ) identifier) + (parenthesized_expression "(0x4c - (int)((uint)(piVar1 + 3) & 0xfffffffc))" ( (binary_expression "0x4c - (int)((uint)(piVar1 + 3) & 0xfffffffc)" number_literal - (cast_expression "(int)((uint)(piVar1 + 3) & 0xfffffffc)" ( (type_descriptor "int" primitive_type) ) (parenthesized_expression "((uint)(piVar1 + 3) & 0xfffffffc)" ( (binary_expression "(uint)(piVar1 + 3) & 0xfffffffc" (call_expression "(uint)(piVar1 + 3)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(piVar1 + 3)" ( (binary_expression "piVar1 + 3" identifier + number_literal) ))) & number_literal) )))) ))) ))) >> number_literal)) ; (binary_expression "uVar3 != 0" identifier != number_literal) ; (assignment_expression "uVar3 = uVar3 - 1" identifier = (binary_expression "uVar3 - 1" identifier - number_literal)) ) (compound_statement "{\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }" { (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" * identifier) = number_literal) ;) (expression_statement "puVar5 = puVar5 + (uint)bVar6 * -2 + 1;" (assignment_expression "puVar5 = puVar5 + (uint)bVar6 * -2 + 1" identifier = (binary_expression "puVar5 + (uint)bVar6 * -2 + 1" (binary_expression "puVar5 + (uint)bVar6 * -2" identifier + (binary_expression "(uint)bVar6 * -2" (cast_expression "(uint)bVar6" ( (type_descriptor "uint" type_identifier) ) identifier) * number_literal)) + number_literal)) ;) })) (expression_statement "piVar1[0xc] = -1;" (assignment_expression "piVar1[0xc] = -1" (subscript_expression "piVar1[0xc]" identifier [ number_literal ]) = number_literal) ;) }) (else_clause "else {\n    piVar1 = (int *)FUN_0005f120(*param_2);\n    if (piVar1 == (int *)0x0) {\n      FUN_0003b750();\n      return (int *)0x0;\n    }\n    iVar4 = *piVar1 + -1;\n  }" else (compound_statement "{\n    piVar1 = (int *)FUN_0005f120(*param_2);\n    if (piVar1 == (int *)0x0) {\n      FUN_0003b750();\n      return (int *)0x0;\n    }\n    iVar4 = *piVar1 + -1;\n  }" { (expression_statement "piVar1 = (int *)FUN_0005f120(*param_2);" (assignment_expression "piVar1 = (int *)FUN_0005f120(*param_2)" identifier = (cast_expression "(int *)FUN_0005f120(*param_2)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (call_expression "FUN_0005f120(*param_2)" identifier (argument_list "(*param_2)" ( (pointer_expression "*param_2" * identifier) ))))) ;) (if_statement "if (piVar1 == (int *)0x0) {\n      FUN_0003b750();\n      return (int *)0x0;\n    }" if (parenthesized_expression "(piVar1 == (int *)0x0)" ( (binary_expression "piVar1 == (int *)0x0" identifier == (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      FUN_0003b750();\n      return (int *)0x0;\n    }" { (expression_statement "FUN_0003b750();" (call_expression "FUN_0003b750()" identifier (argument_list "()" ( ))) ;) (return_statement "return (int *)0x0;" return (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) ;) })) (expression_statement "iVar4 = *piVar1 + -1;" (assignment_expression "iVar4 = *piVar1 + -1" identifier = (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" * identifier) + number_literal)) ;) }))) (if_statement "if ((param_3 != (int *)0x0) && (*param_3 != 0)) {\n    iVar2 = FUN_00028a50();\n    piVar1[iVar4 * 0x11 + 4] = iVar2;\n    iVar2 = FUN_00028a50();\n    piVar1[iVar4 * 0x11 + 3] = iVar2;\n    return piVar1;\n  }" if (parenthesized_expression "((param_3 != (int *)0x0) && (*param_3 != 0))" ( (binary_expression "(param_3 != (int *)0x0) && (*param_3 != 0)" (parenthesized_expression "(param_3 != (int *)0x0)" ( (binary_expression "param_3 != (int *)0x0" identifier != (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*param_3 != 0)" ( (binary_expression "*param_3 != 0" (pointer_expression "*param_3" * identifier) != number_literal) ))) )) (compound_statement "{\n    iVar2 = FUN_00028a50();\n    piVar1[iVar4 * 0x11 + 4] = iVar2;\n    iVar2 = FUN_00028a50();\n    piVar1[iVar4 * 0x11 + 3] = iVar2;\n    return piVar1;\n  }" { (expression_statement "iVar2 = FUN_00028a50();" (assignment_expression "iVar2 = FUN_00028a50()" identifier = (call_expression "FUN_00028a50()" identifier (argument_list "()" ( )))) ;) (expression_statement "piVar1[iVar4 * 0x11 + 4] = iVar2;" (assignment_expression "piVar1[iVar4 * 0x11 + 4] = iVar2" (subscript_expression "piVar1[iVar4 * 0x11 + 4]" identifier [ (binary_expression "iVar4 * 0x11 + 4" (binary_expression "iVar4 * 0x11" identifier * number_literal) + number_literal) ]) = identifier) ;) (expression_statement "iVar2 = FUN_00028a50();" (assignment_expression "iVar2 = FUN_00028a50()" identifier = (call_expression "FUN_00028a50()" identifier (argument_list "()" ( )))) ;) (expression_statement "piVar1[iVar4 * 0x11 + 3] = iVar2;" (assignment_expression "piVar1[iVar4 * 0x11 + 3] = iVar2" (subscript_expression "piVar1[iVar4 * 0x11 + 3]" identifier [ (binary_expression "iVar4 * 0x11 + 3" (binary_expression "iVar4 * 0x11" identifier * number_literal) + number_literal) ]) = identifier) ;) (return_statement "return piVar1;" return identifier ;) })) (expression_statement "iVar2 = FUN_00028a50();" (assignment_expression "iVar2 = FUN_00028a50()" identifier = (call_expression "FUN_00028a50()" identifier (argument_list "()" ( )))) ;) (expression_statement "piVar1[iVar4 * 0x11 + 4] = iVar2;" (assignment_expression "piVar1[iVar4 * 0x11 + 4] = iVar2" (subscript_expression "piVar1[iVar4 * 0x11 + 4]" identifier [ (binary_expression "iVar4 * 0x11 + 4" (binary_expression "iVar4 * 0x11" identifier * number_literal) + number_literal) ]) = identifier) ;) (expression_statement "piVar1[iVar4 * 0x11 + 3] = 0;" (assignment_expression "piVar1[iVar4 * 0x11 + 3] = 0" (subscript_expression "piVar1[iVar4 * 0x11 + 3]" identifier [ (binary_expression "iVar4 * 0x11 + 3" (binary_expression "iVar4 * 0x11" identifier * number_literal) + number_literal) ]) = number_literal) ;) (return_statement "return piVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (pointer_declarator * (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE (pointer_declarator * IDENT)) )))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) (expression_statement (assignment_expression IDENT = LIT) ;) (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) )))) ;) (for_statement for ( (assignment_expression IDENT = (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) + (parenthesized_expression ( (binary_expression LIT - (cast_expression ( (type_descriptor TYPE) ) (parenthesized_expression ( (binary_expression (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT + LIT) ))) & LIT) )))) ))) ))) >> LIT)) ; (binary_expression IDENT != LIT) ; (assignment_expression IDENT = (binary_expression IDENT - LIT)) ) (compound_statement { (expression_statement (assignment_expression (pointer_expression * IDENT) = LIT) ;) (expression_statement (assignment_expression IDENT = (binary_expression (binary_expression IDENT + (binary_expression (cast_expression ( (type_descriptor TYPE) ) IDENT) * LIT)) + LIT)) ;) })) (expression_statement (assignment_expression (subscript_expression IDENT [ LIT ]) = LIT) ;) }) (else_clause else (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( (pointer_expression * IDENT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT) ;) })) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * IDENT) + LIT)) ;) }))) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) != LIT) ))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) = IDENT) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) = IDENT) ;) (return_statement return IDENT ;) })) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) = IDENT) ;) (expression_statement (assignment_expression (subscript_expression IDENT [ (binary_expression (binary_expression IDENT * LIT) + LIT) ]) = LIT) ;) (return_statement return IDENT ;) })))
(function_definition "int * __regparm2 FUN_0005f2b0(int *param_1,undefined4 *param_2,int *param_3)\n\n{\n  int *piVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  if (param_2 == (undefined4 *)0x0) {\n    if (*(char *)(*param_1 + 0x4d) != '\0') {\n      return (int *)0x0;\n    }\n    piVar1 = (int *)FUN_000283a0();\n    if (piVar1 == (int *)0x0) {\n      return (int *)0x0;\n    }\n    piVar1[1] = 1;\n    *piVar1 = 1;\n    piVar1[2] = 0;\n    piVar1[0x12] = 0;\n    iVar4 = 0;\n    puVar5 = (undefined4 *)((uint)(piVar1 + 3) & 0xfffffffc);\n    for (uVar3 = (uint)((int)piVar1 + (0x4c - (int)((uint)(piVar1 + 3) & 0xfffffffc))) >> 2;\n        uVar3 != 0; uVar3 = uVar3 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }\n    piVar1[0xc] = -1;\n  }\n  else {\n    piVar1 = (int *)FUN_0005f120(*param_2);\n    if (piVar1 == (int *)0x0) {\n      FUN_0003b750();\n      return (int *)0x0;\n    }\n    iVar4 = *piVar1 + -1;\n  }\n  if ((param_3 != (int *)0x0) && (*param_3 != 0)) {\n    iVar2 = FUN_00028a50();\n    piVar1[iVar4 * 0x11 + 4] = iVar2;\n    iVar2 = FUN_00028a50();\n    piVar1[iVar4 * 0x11 + 3] = iVar2;\n    return piVar1;\n  }\n  iVar2 = FUN_00028a50();\n  piVar1[iVar4 * 0x11 + 4] = iVar2;\n  piVar1[iVar4 * 0x11 + 3] = 0;\n  return piVar1;\n}" (primitive_type "int") (pointer_declarator "* __regparm2 FUN_0005f2b0(int *param_1,undefined4 *param_2,int *param_3)" (* "*") (ERROR "__regparm2" (identifier "__regparm2")) (function_declarator "FUN_0005f2b0(int *param_1,undefined4 *param_2,int *param_3)" (identifier "FUN_0005f2b0") (parameter_list "(int *param_1,undefined4 *param_2,int *param_3)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 *param_2" (type_identifier "undefined4") (pointer_declarator "*param_2" (* "*") (identifier "param_2"))) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) () ")")))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  uint uVar3;\n  int iVar4;\n  undefined4 *puVar5;\n  byte bVar6;\n  \n  bVar6 = 0;\n  if (param_2 == (undefined4 *)0x0) {\n    if (*(char *)(*param_1 + 0x4d) != '\0') {\n      return (int *)0x0;\n    }\n    piVar1 = (int *)FUN_000283a0();\n    if (piVar1 == (int *)0x0) {\n      return (int *)0x0;\n    }\n    piVar1[1] = 1;\n    *piVar1 = 1;\n    piVar1[2] = 0;\n    piVar1[0x12] = 0;\n    iVar4 = 0;\n    puVar5 = (undefined4 *)((uint)(piVar1 + 3) & 0xfffffffc);\n    for (uVar3 = (uint)((int)piVar1 + (0x4c - (int)((uint)(piVar1 + 3) & 0xfffffffc))) >> 2;\n        uVar3 != 0; uVar3 = uVar3 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }\n    piVar1[0xc] = -1;\n  }\n  else {\n    piVar1 = (int *)FUN_0005f120(*param_2);\n    if (piVar1 == (int *)0x0) {\n      FUN_0003b750();\n      return (int *)0x0;\n    }\n    iVar4 = *piVar1 + -1;\n  }\n  if ((param_3 != (int *)0x0) && (*param_3 != 0)) {\n    iVar2 = FUN_00028a50();\n    piVar1[iVar4 * 0x11 + 4] = iVar2;\n    iVar2 = FUN_00028a50();\n    piVar1[iVar4 * 0x11 + 3] = iVar2;\n    return piVar1;\n  }\n  iVar2 = FUN_00028a50();\n  piVar1[iVar4 * 0x11 + 4] = iVar2;\n  piVar1[iVar4 * 0x11 + 3] = 0;\n  return piVar1;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "uint uVar3;" (type_identifier "uint") (identifier "uVar3") (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (declaration "undefined4 *puVar5;" (type_identifier "undefined4") (pointer_declarator "*puVar5" (* "*") (identifier "puVar5")) (; ";")) (declaration "byte bVar6;" (type_identifier "byte") (identifier "bVar6") (; ";")) (expression_statement "bVar6 = 0;" (assignment_expression "bVar6 = 0" (identifier "bVar6") (= "=") (number_literal "0")) (; ";")) (if_statement "if (param_2 == (undefined4 *)0x0) {\n    if (*(char *)(*param_1 + 0x4d) != '\0') {\n      return (int *)0x0;\n    }\n    piVar1 = (int *)FUN_000283a0();\n    if (piVar1 == (int *)0x0) {\n      return (int *)0x0;\n    }\n    piVar1[1] = 1;\n    *piVar1 = 1;\n    piVar1[2] = 0;\n    piVar1[0x12] = 0;\n    iVar4 = 0;\n    puVar5 = (undefined4 *)((uint)(piVar1 + 3) & 0xfffffffc);\n    for (uVar3 = (uint)((int)piVar1 + (0x4c - (int)((uint)(piVar1 + 3) & 0xfffffffc))) >> 2;\n        uVar3 != 0; uVar3 = uVar3 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }\n    piVar1[0xc] = -1;\n  }\n  else {\n    piVar1 = (int *)FUN_0005f120(*param_2);\n    if (piVar1 == (int *)0x0) {\n      FUN_0003b750();\n      return (int *)0x0;\n    }\n    iVar4 = *piVar1 + -1;\n  }" (if "if") (parenthesized_expression "(param_2 == (undefined4 *)0x0)" (( "(") (binary_expression "param_2 == (undefined4 *)0x0" (identifier "param_2") (== "==") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n    if (*(char *)(*param_1 + 0x4d) != '\0') {\n      return (int *)0x0;\n    }\n    piVar1 = (int *)FUN_000283a0();\n    if (piVar1 == (int *)0x0) {\n      return (int *)0x0;\n    }\n    piVar1[1] = 1;\n    *piVar1 = 1;\n    piVar1[2] = 0;\n    piVar1[0x12] = 0;\n    iVar4 = 0;\n    puVar5 = (undefined4 *)((uint)(piVar1 + 3) & 0xfffffffc);\n    for (uVar3 = (uint)((int)piVar1 + (0x4c - (int)((uint)(piVar1 + 3) & 0xfffffffc))) >> 2;\n        uVar3 != 0; uVar3 = uVar3 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }\n    piVar1[0xc] = -1;\n  }" ({ "{") (if_statement "if (*(char *)(*param_1 + 0x4d) != '\0') {\n      return (int *)0x0;\n    }" (if "if") (parenthesized_expression "(*(char *)(*param_1 + 0x4d) != '\0')" (( "(") (binary_expression "*(char *)(*param_1 + 0x4d) != '\0'" (pointer_expression "*(char *)(*param_1 + 0x4d)" (* "*") (cast_expression "(char *)(*param_1 + 0x4d)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0x4d)" (( "(") (binary_expression "*param_1 + 0x4d" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x4d")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n      return (int *)0x0;\n    }" ({ "{") (return_statement "return (int *)0x0;" (return "return") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (expression_statement "piVar1 = (int *)FUN_000283a0();" (assignment_expression "piVar1 = (int *)FUN_000283a0()" (identifier "piVar1") (= "=") (cast_expression "(int *)FUN_000283a0()" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_000283a0()" (identifier "FUN_000283a0") (argument_list "()" (( "(") () ")"))))) (; ";")) (if_statement "if (piVar1 == (int *)0x0) {\n      return (int *)0x0;\n    }" (if "if") (parenthesized_expression "(piVar1 == (int *)0x0)" (( "(") (binary_expression "piVar1 == (int *)0x0" (identifier "piVar1") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      return (int *)0x0;\n    }" ({ "{") (return_statement "return (int *)0x0;" (return "return") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (expression_statement "piVar1[1] = 1;" (assignment_expression "piVar1[1] = 1" (subscript_expression "piVar1[1]" (identifier "piVar1") ([ "[") (number_literal "1") (] "]")) (= "=") (number_literal "1")) (; ";")) (expression_statement "*piVar1 = 1;" (assignment_expression "*piVar1 = 1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (= "=") (number_literal "1")) (; ";")) (expression_statement "piVar1[2] = 0;" (assignment_expression "piVar1[2] = 0" (subscript_expression "piVar1[2]" (identifier "piVar1") ([ "[") (number_literal "2") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "piVar1[0x12] = 0;" (assignment_expression "piVar1[0x12] = 0" (subscript_expression "piVar1[0x12]" (identifier "piVar1") ([ "[") (number_literal "0x12") (] "]")) (= "=") (number_literal "0")) (; ";")) (expression_statement "iVar4 = 0;" (assignment_expression "iVar4 = 0" (identifier "iVar4") (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar5 = (undefined4 *)((uint)(piVar1 + 3) & 0xfffffffc);" (assignment_expression "puVar5 = (undefined4 *)((uint)(piVar1 + 3) & 0xfffffffc)" (identifier "puVar5") (= "=") (cast_expression "(undefined4 *)((uint)(piVar1 + 3) & 0xfffffffc)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "((uint)(piVar1 + 3) & 0xfffffffc)" (( "(") (binary_expression "(uint)(piVar1 + 3) & 0xfffffffc" (call_expression "(uint)(piVar1 + 3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(piVar1 + 3)" (( "(") (binary_expression "piVar1 + 3" (identifier "piVar1") (+ "+") (number_literal "3")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")")))) (; ";")) (for_statement "for (uVar3 = (uint)((int)piVar1 + (0x4c - (int)((uint)(piVar1 + 3) & 0xfffffffc))) >> 2;\n        uVar3 != 0; uVar3 = uVar3 - 1) {\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }" (for "for") (( "(") (assignment_expression "uVar3 = (uint)((int)piVar1 + (0x4c - (int)((uint)(piVar1 + 3) & 0xfffffffc))) >> 2" (identifier "uVar3") (= "=") (binary_expression "(uint)((int)piVar1 + (0x4c - (int)((uint)(piVar1 + 3) & 0xfffffffc))) >> 2" (call_expression "(uint)((int)piVar1 + (0x4c - (int)((uint)(piVar1 + 3) & 0xfffffffc)))" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "((int)piVar1 + (0x4c - (int)((uint)(piVar1 + 3) & 0xfffffffc)))" (( "(") (binary_expression "(int)piVar1 + (0x4c - (int)((uint)(piVar1 + 3) & 0xfffffffc))" (cast_expression "(int)piVar1" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (identifier "piVar1")) (+ "+") (parenthesized_expression "(0x4c - (int)((uint)(piVar1 + 3) & 0xfffffffc))" (( "(") (binary_expression "0x4c - (int)((uint)(piVar1 + 3) & 0xfffffffc)" (number_literal "0x4c") (- "-") (cast_expression "(int)((uint)(piVar1 + 3) & 0xfffffffc)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (parenthesized_expression "((uint)(piVar1 + 3) & 0xfffffffc)" (( "(") (binary_expression "(uint)(piVar1 + 3) & 0xfffffffc" (call_expression "(uint)(piVar1 + 3)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(piVar1 + 3)" (( "(") (binary_expression "piVar1 + 3" (identifier "piVar1") (+ "+") (number_literal "3")) () ")"))) (& "&") (number_literal "0xfffffffc")) () ")")))) () ")"))) () ")"))) (>> ">>") (number_literal "2"))) (; ";") (binary_expression "uVar3 != 0" (identifier "uVar3") (!= "!=") (number_literal "0")) (; ";") (assignment_expression "uVar3 = uVar3 - 1" (identifier "uVar3") (= "=") (binary_expression "uVar3 - 1" (identifier "uVar3") (- "-") (number_literal "1"))) () ")") (compound_statement "{\n      *puVar5 = 0;\n      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;\n    }" ({ "{") (expression_statement "*puVar5 = 0;" (assignment_expression "*puVar5 = 0" (pointer_expression "*puVar5" (* "*") (identifier "puVar5")) (= "=") (number_literal "0")) (; ";")) (expression_statement "puVar5 = puVar5 + (uint)bVar6 * -2 + 1;" (assignment_expression "puVar5 = puVar5 + (uint)bVar6 * -2 + 1" (identifier "puVar5") (= "=") (binary_expression "puVar5 + (uint)bVar6 * -2 + 1" (binary_expression "puVar5 + (uint)bVar6 * -2" (identifier "puVar5") (+ "+") (binary_expression "(uint)bVar6 * -2" (cast_expression "(uint)bVar6" (( "(") (type_descriptor "uint" (type_identifier "uint")) () ")") (identifier "bVar6")) (* "*") (number_literal "-2"))) (+ "+") (number_literal "1"))) (; ";")) (} "}"))) (expression_statement "piVar1[0xc] = -1;" (assignment_expression "piVar1[0xc] = -1" (subscript_expression "piVar1[0xc]" (identifier "piVar1") ([ "[") (number_literal "0xc") (] "]")) (= "=") (number_literal "-1")) (; ";")) (} "}")) (else_clause "else {\n    piVar1 = (int *)FUN_0005f120(*param_2);\n    if (piVar1 == (int *)0x0) {\n      FUN_0003b750();\n      return (int *)0x0;\n    }\n    iVar4 = *piVar1 + -1;\n  }" (else "else") (compound_statement "{\n    piVar1 = (int *)FUN_0005f120(*param_2);\n    if (piVar1 == (int *)0x0) {\n      FUN_0003b750();\n      return (int *)0x0;\n    }\n    iVar4 = *piVar1 + -1;\n  }" ({ "{") (expression_statement "piVar1 = (int *)FUN_0005f120(*param_2);" (assignment_expression "piVar1 = (int *)FUN_0005f120(*param_2)" (identifier "piVar1") (= "=") (cast_expression "(int *)FUN_0005f120(*param_2)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "FUN_0005f120(*param_2)" (identifier "FUN_0005f120") (argument_list "(*param_2)" (( "(") (pointer_expression "*param_2" (* "*") (identifier "param_2")) () ")"))))) (; ";")) (if_statement "if (piVar1 == (int *)0x0) {\n      FUN_0003b750();\n      return (int *)0x0;\n    }" (if "if") (parenthesized_expression "(piVar1 == (int *)0x0)" (( "(") (binary_expression "piVar1 == (int *)0x0" (identifier "piVar1") (== "==") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (compound_statement "{\n      FUN_0003b750();\n      return (int *)0x0;\n    }" ({ "{") (expression_statement "FUN_0003b750();" (call_expression "FUN_0003b750()" (identifier "FUN_0003b750") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return (int *)0x0;" (return "return") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0")) (; ";")) (} "}"))) (expression_statement "iVar4 = *piVar1 + -1;" (assignment_expression "iVar4 = *piVar1 + -1" (identifier "iVar4") (= "=") (binary_expression "*piVar1 + -1" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "-1"))) (; ";")) (} "}")))) (if_statement "if ((param_3 != (int *)0x0) && (*param_3 != 0)) {\n    iVar2 = FUN_00028a50();\n    piVar1[iVar4 * 0x11 + 4] = iVar2;\n    iVar2 = FUN_00028a50();\n    piVar1[iVar4 * 0x11 + 3] = iVar2;\n    return piVar1;\n  }" (if "if") (parenthesized_expression "((param_3 != (int *)0x0) && (*param_3 != 0))" (( "(") (binary_expression "(param_3 != (int *)0x0) && (*param_3 != 0)" (parenthesized_expression "(param_3 != (int *)0x0)" (( "(") (binary_expression "param_3 != (int *)0x0" (identifier "param_3") (!= "!=") (cast_expression "(int *)0x0" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(*param_3 != 0)" (( "(") (binary_expression "*param_3 != 0" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    iVar2 = FUN_00028a50();\n    piVar1[iVar4 * 0x11 + 4] = iVar2;\n    iVar2 = FUN_00028a50();\n    piVar1[iVar4 * 0x11 + 3] = iVar2;\n    return piVar1;\n  }" ({ "{") (expression_statement "iVar2 = FUN_00028a50();" (assignment_expression "iVar2 = FUN_00028a50()" (identifier "iVar2") (= "=") (call_expression "FUN_00028a50()" (identifier "FUN_00028a50") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "piVar1[iVar4 * 0x11 + 4] = iVar2;" (assignment_expression "piVar1[iVar4 * 0x11 + 4] = iVar2" (subscript_expression "piVar1[iVar4 * 0x11 + 4]" (identifier "piVar1") ([ "[") (binary_expression "iVar4 * 0x11 + 4" (binary_expression "iVar4 * 0x11" (identifier "iVar4") (* "*") (number_literal "0x11")) (+ "+") (number_literal "4")) (] "]")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "iVar2 = FUN_00028a50();" (assignment_expression "iVar2 = FUN_00028a50()" (identifier "iVar2") (= "=") (call_expression "FUN_00028a50()" (identifier "FUN_00028a50") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "piVar1[iVar4 * 0x11 + 3] = iVar2;" (assignment_expression "piVar1[iVar4 * 0x11 + 3] = iVar2" (subscript_expression "piVar1[iVar4 * 0x11 + 3]" (identifier "piVar1") ([ "[") (binary_expression "iVar4 * 0x11 + 3" (binary_expression "iVar4 * 0x11" (identifier "iVar4") (* "*") (number_literal "0x11")) (+ "+") (number_literal "3")) (] "]")) (= "=") (identifier "iVar2")) (; ";")) (return_statement "return piVar1;" (return "return") (identifier "piVar1") (; ";")) (} "}"))) (expression_statement "iVar2 = FUN_00028a50();" (assignment_expression "iVar2 = FUN_00028a50()" (identifier "iVar2") (= "=") (call_expression "FUN_00028a50()" (identifier "FUN_00028a50") (argument_list "()" (( "(") () ")")))) (; ";")) (expression_statement "piVar1[iVar4 * 0x11 + 4] = iVar2;" (assignment_expression "piVar1[iVar4 * 0x11 + 4] = iVar2" (subscript_expression "piVar1[iVar4 * 0x11 + 4]" (identifier "piVar1") ([ "[") (binary_expression "iVar4 * 0x11 + 4" (binary_expression "iVar4 * 0x11" (identifier "iVar4") (* "*") (number_literal "0x11")) (+ "+") (number_literal "4")) (] "]")) (= "=") (identifier "iVar2")) (; ";")) (expression_statement "piVar1[iVar4 * 0x11 + 3] = 0;" (assignment_expression "piVar1[iVar4 * 0x11 + 3] = 0" (subscript_expression "piVar1[iVar4 * 0x11 + 3]" (identifier "piVar1") ([ "[") (binary_expression "iVar4 * 0x11 + 3" (binary_expression "iVar4 * 0x11" (identifier "iVar4") (* "*") (number_literal "0x11")) (+ "+") (number_literal "3")) (] "]")) (= "=") (number_literal "0")) (; ";")) (return_statement "return piVar1;" (return "return") (identifier "piVar1") (; ";")) (} "}")))

type_2 * __regparm3
sqlite3SrcListAppend(Parse *pParse,type_2 *var_1,type_9 *pTable,type_9 *var_8)

{
  type_1 *db;
  type_2 *var_3;
  char *pcVar2;
  type_3 var_4;
  int iVar4;
  type_4 *var_5;
  type_5 bVar6;
  type_6 in_stack_ffffffd4;
  
  bVar6 = 0;
  db = pParse->db;
  if (var_1 == (type_2 *)0x0) {
    if (db->mallocFailed != '\0') {
      return (type_2 *)0x0;
    }
    var_3 = (type_2 *)var_2(db,in_stack_ffffffd4);
    if (var_3 == (type_2 *)0x0) {
      return (type_2 *)0x0;
    }
    var_3->nAlloc = 1;
    var_5 = (type_4 *)((type_3)&var_3->a[0].zDatabase & 0xfffffffc);
    var_3->nSrc = 1;
    var_3->a[0].pSchema = (type_7 *)0x0;
    var_3->a[0].pIBIndex = (type_8 *)0x0;
    iVar4 = 0;
    var_4 = (type_3)((int)var_3 + (0x4c - (int)var_5)) >> 2;
    for (; var_4 != 0; var_4 = var_4 - 1) {
      *var_5 = 0;
      var_5 = var_5 + (type_3)bVar6 * -2 + 1;
    }
    var_3->a[0].iCursor = -1;
  }
  else {
    var_3 = var_6(pParse,var_1,1,var_1->nSrc);
    if (var_3 == (type_2 *)0x0) {
      var_7(db,var_1);
      return (type_2 *)0x0;
    }
    iVar4 = var_3->nSrc + -1;
  }
  if ((var_8 != (type_9 *)0x0) && (var_8->z != (char *)0x0)) {
    pcVar2 = var_9(db,var_8);
    var_3->a[iVar4].zName = pcVar2;
    pcVar2 = var_9(db,pTable);
    var_3->a[iVar4].zDatabase = pcVar2;
    return var_3;
  }
  pcVar2 = var_9(db,pTable);
  var_3->a[iVar4].zName = pcVar2;
  var_3->a[iVar4].zDatabase = (char *)0x0;
  return var_3;
}


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

int * __regparm2 MASKED(int *param_1,undefined4 *param_2,int *param_3)

{
  int *piVar1;
  int iVar2;
  uint uVar3;
  int iVar4;
  undefined4 *puVar5;
  byte bVar6;
  
  bVar6 = 0;
  if (param_2 == (undefined4 *)0x0) {
    if (*(char *)(*param_1 + 0x4d) != '\0') {
      return (int *)0x0;
    }
    piVar1 = (int *)FUN_000283a0();
    if (piVar1 == (int *)0x0) {
      return (int *)0x0;
    }
    piVar1[1] = 1;
    *piVar1 = 1;
    piVar1[2] = 0;
    piVar1[0x12] = 0;
    iVar4 = 0;
    puVar5 = (undefined4 *)((uint)(piVar1 + 3) & 0xfffffffc);
    for (uVar3 = (uint)((int)piVar1 + (0x4c - (int)((uint)(piVar1 + 3) & 0xfffffffc))) >> 2;
        uVar3 != 0; uVar3 = uVar3 - 1) {
      *puVar5 = 0;
      puVar5 = puVar5 + (uint)bVar6 * -2 + 1;
    }
    piVar1[0xc] = -1;
  }
  else {
    piVar1 = (int *)FUN_0005f120(*param_2);
    if (piVar1 == (int *)0x0) {
      FUN_0003b750();
      return (int *)0x0;
    }
    iVar4 = *piVar1 + -1;
  }
  if ((param_3 != (int *)0x0) && (*param_3 != 0)) {
    iVar2 = FUN_00028a50();
    piVar1[iVar4 * 0x11 + 4] = iVar2;
    iVar2 = FUN_00028a50();
    piVar1[iVar4 * 0x11 + 3] = iVar2;
    return piVar1;
  }
  iVar2 = FUN_00028a50();
  piVar1[iVar4 * 0x11 + 4] = iVar2;
  piVar1[iVar4 * 0x11 + 3] = 0;
  return piVar1;
}

