
void __regparm3 sqlite3OpenTable(Parse *pParse,int iCur,int iDb,Table *pTab,int opcode)

{
  Index *pIdx;
  code *pcVar1;
  Vdbe *p;
  
  p = pParse->pVdbe;
  if (p == (Vdbe *)0x0) {
    p = sqlite3GetVdbe(pParse);
  }
  sqlite3TableLock(pParse,iDb,pTab->tnum,opcode == 0x61,pTab->zName);
  if ((pTab->tabFlags & 0x80) != 0) {
    pIdx = pTab->pIndex;
    while( true ) {
      if (pIdx == (Index *)0x0) {
                    /* WARNING: Does not return */
        pcVar1 = (code *)invalidInstructionException();
        (*pcVar1)();
      }
      if ((pIdx->field_0x37 & 3) == 2) break;
      pIdx = pIdx->pNext;
    }
    sqlite3VdbeAddOp3(p,opcode,iCur,pIdx->tnum,iDb);
    sqlite3VdbeSetP4KeyInfo(pParse,pIdx);
    return;
  }
  sqlite3VdbeAddOp4Int(p,opcode,iCur,pTab->tnum,iDb,(int)pTab->nNVCol);
  return;
}



void __regparm3
FUN_0004b430(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4,int param_5)

{
  int iVar1;
  code *pcVar2;
  
  if (*(int *)(param_1 + 8) == 0) {
    FUN_000318c0();
  }
  FUN_000309e0(param_5 == 0x61,*param_4);
  if ((*(byte *)(param_4 + 9) & 0x80) != 0) {
    iVar1 = param_4[2];
    while( true ) {
      if (iVar1 == 0) {
                    /* WARNING: Does not return */
        pcVar2 = (code *)invalidInstructionException();
        (*pcVar2)();
      }
      if ((*(byte *)(iVar1 + 0x37) & 3) == 2) break;
      iVar1 = *(int *)(iVar1 + 0x14);
    }
    FUN_000315c0(*(undefined4 *)(iVar1 + 0x2c),param_3);
    FUN_0004b400();
    return;
  }
  FUN_000316b0(param_4[7],param_3,(int)*(short *)(param_4 + 0xb));
  return;
}


PUSH EBP
PUSH EDI
MOV EBP,ECX
PUSH ESI
PUSH EBX
MOV ESI,EAX
SUB ESP,0x1c
MOV EDI,dword ptr [ESI + 0x8]
MOV EAX,dword ptr [ESP + 0x34]
MOV dword ptr [ESP + 0xc],EDX
MOV EBX,dword ptr [ESP + 0x30]
TEST EDI,EDI
MOV dword ptr [ESP + 0x8],EAX
JZ 0x0004b4f8
SUB ESP,0x8
MOV ECX,dword ptr [EBX + 0x1c]
XOR EAX,EAX
PUSH dword ptr [EBX]
CMP dword ptr [ESP + 0x14],0x61
MOV EDX,EBP
SETZ AL
PUSH EAX
MOV EAX,ESI
CALL 0x000309e0
ADD ESP,0x10
TEST byte ptr [EBX + 0x24],0x80
JZ 0x0004b4d0
MOV EBX,dword ptr [EBX + 0x8]
TEST EBX,EBX
JNZ 0x0004b48f
JMP 0x0004b4c0
MOV EBX,dword ptr [EBX + 0x14]
TEST EBX,EBX
JZ 0x0004b4c0
MOVZX EAX,byte ptr [EBX + 0x37]
AND EAX,0x3
CMP AL,0x2
JNZ 0x0004b488
SUB ESP,0x8
MOV EAX,EDI
PUSH EBP
PUSH dword ptr [EBX + 0x2c]
MOV EDX,dword ptr [ESP + 0x18]
MOV ECX,dword ptr [ESP + 0x1c]
CALL 0x000315c0
ADD ESP,0x2c
MOV EDX,EBX
MOV EAX,ESI
POP EBX
POP ESI
POP EDI
POP EBP
JMP 0x0004b400
MOV EAX,[0x0000002c]
UD2
MOVSX EAX,word ptr [EBX + 0x2c]
SUB ESP,0x4
PUSH EAX
PUSH EBP
MOV EAX,EDI
PUSH dword ptr [EBX + 0x1c]
MOV ECX,dword ptr [ESP + 0x1c]
MOV EDX,dword ptr [ESP + 0x18]
CALL 0x000316b0
ADD ESP,0x2c
POP EBX
POP ESI
POP EDI
POP EBP
RET
MOV EAX,ESI
CALL 0x000318c0
MOV EDI,EAX
JMP 0x0004b456
(translation_unit "void __regparm3\nFUN_0004b430(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4,int param_5)\n\n{\n  int iVar1;\n  code *pcVar2;\n  \n  if (*(int *)(param_1 + 8) == 0) {\n    FUN_000318c0();\n  }\n  FUN_000309e0(param_5 == 0x61,*param_4);\n  if ((*(byte *)(param_4 + 9) & 0x80) != 0) {\n    iVar1 = param_4[2];\n    while( true ) {\n      if (iVar1 == 0) {\n                    /* WARNING: Does not return */\n        pcVar2 = (code *)invalidInstructionException();\n        (*pcVar2)();\n      }\n      if ((*(byte *)(iVar1 + 0x37) & 3) == 2) break;\n      iVar1 = *(int *)(iVar1 + 0x14);\n    }\n    FUN_000315c0(*(undefined4 *)(iVar1 + 0x2c),param_3);\n    FUN_0004b400();\n    return;\n  }\n  FUN_000316b0(param_4[7],param_3,(int)*(short *)(param_4 + 0xb));\n  return;\n}\n\n" (function_definition "void __regparm3\nFUN_0004b430(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4,int param_5)\n\n{\n  int iVar1;\n  code *pcVar2;\n  \n  if (*(int *)(param_1 + 8) == 0) {\n    FUN_000318c0();\n  }\n  FUN_000309e0(param_5 == 0x61,*param_4);\n  if ((*(byte *)(param_4 + 9) & 0x80) != 0) {\n    iVar1 = param_4[2];\n    while( true ) {\n      if (iVar1 == 0) {\n                    /* WARNING: Does not return */\n        pcVar2 = (code *)invalidInstructionException();\n        (*pcVar2)();\n      }\n      if ((*(byte *)(iVar1 + 0x37) & 3) == 2) break;\n      iVar1 = *(int *)(iVar1 + 0x14);\n    }\n    FUN_000315c0(*(undefined4 *)(iVar1 + 0x2c),param_3);\n    FUN_0004b400();\n    return;\n  }\n  FUN_000316b0(param_4[7],param_3,(int)*(short *)(param_4 + 0xb));\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0004b430(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4,int param_5)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4,int param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  code *pcVar2;\n  \n  if (*(int *)(param_1 + 8) == 0) {\n    FUN_000318c0();\n  }\n  FUN_000309e0(param_5 == 0x61,*param_4);\n  if ((*(byte *)(param_4 + 9) & 0x80) != 0) {\n    iVar1 = param_4[2];\n    while( true ) {\n      if (iVar1 == 0) {\n                    /* WARNING: Does not return */\n        pcVar2 = (code *)invalidInstructionException();\n        (*pcVar2)();\n      }\n      if ((*(byte *)(iVar1 + 0x37) & 3) == 2) break;\n      iVar1 = *(int *)(iVar1 + 0x14);\n    }\n    FUN_000315c0(*(undefined4 *)(iVar1 + 0x2c),param_3);\n    FUN_0004b400();\n    return;\n  }\n  FUN_000316b0(param_4[7],param_3,(int)*(short *)(param_4 + 0xb));\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "code *pcVar2;" type_identifier (pointer_declarator "*pcVar2" * identifier) ;) (if_statement "if (*(int *)(param_1 + 8) == 0) {\n    FUN_000318c0();\n  }" if (parenthesized_expression "(*(int *)(param_1 + 8) == 0)" ( (binary_expression "*(int *)(param_1 + 8) == 0" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    FUN_000318c0();\n  }" { (expression_statement "FUN_000318c0();" (call_expression "FUN_000318c0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "FUN_000309e0(param_5 == 0x61,*param_4);" (call_expression "FUN_000309e0(param_5 == 0x61,*param_4)" identifier (argument_list "(param_5 == 0x61,*param_4)" ( (binary_expression "param_5 == 0x61" identifier == number_literal) , (pointer_expression "*param_4" * identifier) ))) ;) (if_statement "if ((*(byte *)(param_4 + 9) & 0x80) != 0) {\n    iVar1 = param_4[2];\n    while( true ) {\n      if (iVar1 == 0) {\n                    /* WARNING: Does not return */\n        pcVar2 = (code *)invalidInstructionException();\n        (*pcVar2)();\n      }\n      if ((*(byte *)(iVar1 + 0x37) & 3) == 2) break;\n      iVar1 = *(int *)(iVar1 + 0x14);\n    }\n    FUN_000315c0(*(undefined4 *)(iVar1 + 0x2c),param_3);\n    FUN_0004b400();\n    return;\n  }" if (parenthesized_expression "((*(byte *)(param_4 + 9) & 0x80) != 0)" ( (binary_expression "(*(byte *)(param_4 + 9) & 0x80) != 0" (parenthesized_expression "(*(byte *)(param_4 + 9) & 0x80)" ( (binary_expression "*(byte *)(param_4 + 9) & 0x80" (pointer_expression "*(byte *)(param_4 + 9)" * (cast_expression "(byte *)(param_4 + 9)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 9)" ( (binary_expression "param_4 + 9" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    iVar1 = param_4[2];\n    while( true ) {\n      if (iVar1 == 0) {\n                    /* WARNING: Does not return */\n        pcVar2 = (code *)invalidInstructionException();\n        (*pcVar2)();\n      }\n      if ((*(byte *)(iVar1 + 0x37) & 3) == 2) break;\n      iVar1 = *(int *)(iVar1 + 0x14);\n    }\n    FUN_000315c0(*(undefined4 *)(iVar1 + 0x2c),param_3);\n    FUN_0004b400();\n    return;\n  }" { (expression_statement "iVar1 = param_4[2];" (assignment_expression "iVar1 = param_4[2]" identifier = (subscript_expression "param_4[2]" identifier [ number_literal ])) ;) (while_statement "while( true ) {\n      if (iVar1 == 0) {\n                    /* WARNING: Does not return */\n        pcVar2 = (code *)invalidInstructionException();\n        (*pcVar2)();\n      }\n      if ((*(byte *)(iVar1 + 0x37) & 3) == 2) break;\n      iVar1 = *(int *)(iVar1 + 0x14);\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (iVar1 == 0) {\n                    /* WARNING: Does not return */\n        pcVar2 = (code *)invalidInstructionException();\n        (*pcVar2)();\n      }\n      if ((*(byte *)(iVar1 + 0x37) & 3) == 2) break;\n      iVar1 = *(int *)(iVar1 + 0x14);\n    }" { (if_statement "if (iVar1 == 0) {\n                    /* WARNING: Does not return */\n        pcVar2 = (code *)invalidInstructionException();\n        (*pcVar2)();\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n                    /* WARNING: Does not return */\n        pcVar2 = (code *)invalidInstructionException();\n        (*pcVar2)();\n      }" { comment (expression_statement "pcVar2 = (code *)invalidInstructionException();" (assignment_expression "pcVar2 = (code *)invalidInstructionException()" identifier = (cast_expression "(code *)invalidInstructionException()" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "invalidInstructionException()" identifier (argument_list "()" ( ))))) ;) (expression_statement "(*pcVar2)();" (call_expression "(*pcVar2)()" (parenthesized_expression "(*pcVar2)" ( (pointer_expression "*pcVar2" * identifier) )) (argument_list "()" ( ))) ;) })) (if_statement "if ((*(byte *)(iVar1 + 0x37) & 3) == 2) break;" if (parenthesized_expression "((*(byte *)(iVar1 + 0x37) & 3) == 2)" ( (binary_expression "(*(byte *)(iVar1 + 0x37) & 3) == 2" (parenthesized_expression "(*(byte *)(iVar1 + 0x37) & 3)" ( (binary_expression "*(byte *)(iVar1 + 0x37) & 3" (pointer_expression "*(byte *)(iVar1 + 0x37)" * (cast_expression "(byte *)(iVar1 + 0x37)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x37)" ( (binary_expression "iVar1 + 0x37" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = *(int *)(iVar1 + 0x14);" (assignment_expression "iVar1 = *(int *)(iVar1 + 0x14)" identifier = (pointer_expression "*(int *)(iVar1 + 0x14)" * (cast_expression "(int *)(iVar1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) ))))) ;) })) (expression_statement "FUN_000315c0(*(undefined4 *)(iVar1 + 0x2c),param_3);" (call_expression "FUN_000315c0(*(undefined4 *)(iVar1 + 0x2c),param_3)" identifier (argument_list "(*(undefined4 *)(iVar1 + 0x2c),param_3)" ( (pointer_expression "*(undefined4 *)(iVar1 + 0x2c)" * (cast_expression "(undefined4 *)(iVar1 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x2c)" ( (binary_expression "iVar1 + 0x2c" identifier + number_literal) )))) , identifier ))) ;) (expression_statement "FUN_0004b400();" (call_expression "FUN_0004b400()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_000316b0(param_4[7],param_3,(int)*(short *)(param_4 + 0xb));" (call_expression "FUN_000316b0(param_4[7],param_3,(int)*(short *)(param_4 + 0xb))" identifier (argument_list "(param_4[7],param_3,(int)*(short *)(param_4 + 0xb))" ( (subscript_expression "param_4[7]" identifier [ number_literal ]) , identifier , (cast_expression "(int)*(short *)(param_4 + 0xb)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(short *)(param_4 + 0xb)" * (cast_expression "(short *)(param_4 + 0xb)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0xb)" ( (binary_expression "param_4 + 0xb" identifier + number_literal) ))))) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3 sqlite3OpenTable(Parse *pParse,int iCur,int iDb,Table *pTab,int opcode)\n\n{\n  Index *pIdx;\n  code *pcVar1;\n  Vdbe *p;\n  \n  p = pParse->pVdbe;\n  if (p == (Vdbe *)0x0) {\n    p = sqlite3GetVdbe(pParse);\n  }\n  sqlite3TableLock(pParse,iDb,pTab->tnum,opcode == 0x61,pTab->zName);\n  if ((pTab->tabFlags & 0x80) != 0) {\n    pIdx = pTab->pIndex;\n    while( true ) {\n      if (pIdx == (Index *)0x0) {\n                    /* WARNING: Does not return */\n        pcVar1 = (code *)invalidInstructionException();\n        (*pcVar1)();\n      }\n      if ((pIdx->field_0x37 & 3) == 2) break;\n      pIdx = pIdx->pNext;\n    }\n    sqlite3VdbeAddOp3(p,opcode,iCur,pIdx->tnum,iDb);\n    sqlite3VdbeSetP4KeyInfo(pParse,pIdx);\n    return;\n  }\n  sqlite3VdbeAddOp4Int(p,opcode,iCur,pTab->tnum,iDb,(int)pTab->nNVCol);\n  return;\n}\n\n" (function_definition "void __regparm3 sqlite3OpenTable(Parse *pParse,int iCur,int iDb,Table *pTab,int opcode)\n\n{\n  Index *pIdx;\n  code *pcVar1;\n  Vdbe *p;\n  \n  p = pParse->pVdbe;\n  if (p == (Vdbe *)0x0) {\n    p = sqlite3GetVdbe(pParse);\n  }\n  sqlite3TableLock(pParse,iDb,pTab->tnum,opcode == 0x61,pTab->zName);\n  if ((pTab->tabFlags & 0x80) != 0) {\n    pIdx = pTab->pIndex;\n    while( true ) {\n      if (pIdx == (Index *)0x0) {\n                    /* WARNING: Does not return */\n        pcVar1 = (code *)invalidInstructionException();\n        (*pcVar1)();\n      }\n      if ((pIdx->field_0x37 & 3) == 2) break;\n      pIdx = pIdx->pNext;\n    }\n    sqlite3VdbeAddOp3(p,opcode,iCur,pIdx->tnum,iDb);\n    sqlite3VdbeSetP4KeyInfo(pParse,pIdx);\n    return;\n  }\n  sqlite3VdbeAddOp4Int(p,opcode,iCur,pTab->tnum,iDb,(int)pTab->nNVCol);\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "sqlite3OpenTable(Parse *pParse,int iCur,int iDb,Table *pTab,int opcode)" identifier (parameter_list "(Parse *pParse,int iCur,int iDb,Table *pTab,int opcode)" ( (parameter_declaration "Parse *pParse" type_identifier (pointer_declarator "*pParse" * identifier)) , (parameter_declaration "int iCur" primitive_type identifier) , (parameter_declaration "int iDb" primitive_type identifier) , (parameter_declaration "Table *pTab" type_identifier (pointer_declarator "*pTab" * identifier)) , (parameter_declaration "int opcode" primitive_type identifier) ))) (compound_statement "{\n  Index *pIdx;\n  code *pcVar1;\n  Vdbe *p;\n  \n  p = pParse->pVdbe;\n  if (p == (Vdbe *)0x0) {\n    p = sqlite3GetVdbe(pParse);\n  }\n  sqlite3TableLock(pParse,iDb,pTab->tnum,opcode == 0x61,pTab->zName);\n  if ((pTab->tabFlags & 0x80) != 0) {\n    pIdx = pTab->pIndex;\n    while( true ) {\n      if (pIdx == (Index *)0x0) {\n                    /* WARNING: Does not return */\n        pcVar1 = (code *)invalidInstructionException();\n        (*pcVar1)();\n      }\n      if ((pIdx->field_0x37 & 3) == 2) break;\n      pIdx = pIdx->pNext;\n    }\n    sqlite3VdbeAddOp3(p,opcode,iCur,pIdx->tnum,iDb);\n    sqlite3VdbeSetP4KeyInfo(pParse,pIdx);\n    return;\n  }\n  sqlite3VdbeAddOp4Int(p,opcode,iCur,pTab->tnum,iDb,(int)pTab->nNVCol);\n  return;\n}" { (declaration "Index *pIdx;" type_identifier (pointer_declarator "*pIdx" * identifier) ;) (declaration "code *pcVar1;" type_identifier (pointer_declarator "*pcVar1" * identifier) ;) (declaration "Vdbe *p;" type_identifier (pointer_declarator "*p" * identifier) ;) (expression_statement "p = pParse->pVdbe;" (assignment_expression "p = pParse->pVdbe" identifier = (field_expression "pParse->pVdbe" identifier -> field_identifier)) ;) (if_statement "if (p == (Vdbe *)0x0) {\n    p = sqlite3GetVdbe(pParse);\n  }" if (parenthesized_expression "(p == (Vdbe *)0x0)" ( (binary_expression "p == (Vdbe *)0x0" identifier == (cast_expression "(Vdbe *)0x0" ( (type_descriptor "Vdbe *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    p = sqlite3GetVdbe(pParse);\n  }" { (expression_statement "p = sqlite3GetVdbe(pParse);" (assignment_expression "p = sqlite3GetVdbe(pParse)" identifier = (call_expression "sqlite3GetVdbe(pParse)" identifier (argument_list "(pParse)" ( identifier )))) ;) })) (expression_statement "sqlite3TableLock(pParse,iDb,pTab->tnum,opcode == 0x61,pTab->zName);" (call_expression "sqlite3TableLock(pParse,iDb,pTab->tnum,opcode == 0x61,pTab->zName)" identifier (argument_list "(pParse,iDb,pTab->tnum,opcode == 0x61,pTab->zName)" ( identifier , identifier , (field_expression "pTab->tnum" identifier -> field_identifier) , (binary_expression "opcode == 0x61" identifier == number_literal) , (field_expression "pTab->zName" identifier -> field_identifier) ))) ;) (if_statement "if ((pTab->tabFlags & 0x80) != 0) {\n    pIdx = pTab->pIndex;\n    while( true ) {\n      if (pIdx == (Index *)0x0) {\n                    /* WARNING: Does not return */\n        pcVar1 = (code *)invalidInstructionException();\n        (*pcVar1)();\n      }\n      if ((pIdx->field_0x37 & 3) == 2) break;\n      pIdx = pIdx->pNext;\n    }\n    sqlite3VdbeAddOp3(p,opcode,iCur,pIdx->tnum,iDb);\n    sqlite3VdbeSetP4KeyInfo(pParse,pIdx);\n    return;\n  }" if (parenthesized_expression "((pTab->tabFlags & 0x80) != 0)" ( (binary_expression "(pTab->tabFlags & 0x80) != 0" (parenthesized_expression "(pTab->tabFlags & 0x80)" ( (binary_expression "pTab->tabFlags & 0x80" (field_expression "pTab->tabFlags" identifier -> field_identifier) & number_literal) )) != number_literal) )) (compound_statement "{\n    pIdx = pTab->pIndex;\n    while( true ) {\n      if (pIdx == (Index *)0x0) {\n                    /* WARNING: Does not return */\n        pcVar1 = (code *)invalidInstructionException();\n        (*pcVar1)();\n      }\n      if ((pIdx->field_0x37 & 3) == 2) break;\n      pIdx = pIdx->pNext;\n    }\n    sqlite3VdbeAddOp3(p,opcode,iCur,pIdx->tnum,iDb);\n    sqlite3VdbeSetP4KeyInfo(pParse,pIdx);\n    return;\n  }" { (expression_statement "pIdx = pTab->pIndex;" (assignment_expression "pIdx = pTab->pIndex" identifier = (field_expression "pTab->pIndex" identifier -> field_identifier)) ;) (while_statement "while( true ) {\n      if (pIdx == (Index *)0x0) {\n                    /* WARNING: Does not return */\n        pcVar1 = (code *)invalidInstructionException();\n        (*pcVar1)();\n      }\n      if ((pIdx->field_0x37 & 3) == 2) break;\n      pIdx = pIdx->pNext;\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (pIdx == (Index *)0x0) {\n                    /* WARNING: Does not return */\n        pcVar1 = (code *)invalidInstructionException();\n        (*pcVar1)();\n      }\n      if ((pIdx->field_0x37 & 3) == 2) break;\n      pIdx = pIdx->pNext;\n    }" { (if_statement "if (pIdx == (Index *)0x0) {\n                    /* WARNING: Does not return */\n        pcVar1 = (code *)invalidInstructionException();\n        (*pcVar1)();\n      }" if (parenthesized_expression "(pIdx == (Index *)0x0)" ( (binary_expression "pIdx == (Index *)0x0" identifier == (cast_expression "(Index *)0x0" ( (type_descriptor "Index *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n                    /* WARNING: Does not return */\n        pcVar1 = (code *)invalidInstructionException();\n        (*pcVar1)();\n      }" { comment (expression_statement "pcVar1 = (code *)invalidInstructionException();" (assignment_expression "pcVar1 = (code *)invalidInstructionException()" identifier = (cast_expression "(code *)invalidInstructionException()" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "invalidInstructionException()" identifier (argument_list "()" ( ))))) ;) (expression_statement "(*pcVar1)();" (call_expression "(*pcVar1)()" (parenthesized_expression "(*pcVar1)" ( (pointer_expression "*pcVar1" * identifier) )) (argument_list "()" ( ))) ;) })) (if_statement "if ((pIdx->field_0x37 & 3) == 2) break;" if (parenthesized_expression "((pIdx->field_0x37 & 3) == 2)" ( (binary_expression "(pIdx->field_0x37 & 3) == 2" (parenthesized_expression "(pIdx->field_0x37 & 3)" ( (binary_expression "pIdx->field_0x37 & 3" (field_expression "pIdx->field_0x37" identifier -> field_identifier) & number_literal) )) == number_literal) )) (break_statement "break;" break ;)) (expression_statement "pIdx = pIdx->pNext;" (assignment_expression "pIdx = pIdx->pNext" identifier = (field_expression "pIdx->pNext" identifier -> field_identifier)) ;) })) (expression_statement "sqlite3VdbeAddOp3(p,opcode,iCur,pIdx->tnum,iDb);" (call_expression "sqlite3VdbeAddOp3(p,opcode,iCur,pIdx->tnum,iDb)" identifier (argument_list "(p,opcode,iCur,pIdx->tnum,iDb)" ( identifier , identifier , identifier , (field_expression "pIdx->tnum" identifier -> field_identifier) , identifier ))) ;) (expression_statement "sqlite3VdbeSetP4KeyInfo(pParse,pIdx);" (call_expression "sqlite3VdbeSetP4KeyInfo(pParse,pIdx)" identifier (argument_list "(pParse,pIdx)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "sqlite3VdbeAddOp4Int(p,opcode,iCur,pTab->tnum,iDb,(int)pTab->nNVCol);" (call_expression "sqlite3VdbeAddOp4Int(p,opcode,iCur,pTab->tnum,iDb,(int)pTab->nNVCol)" identifier (argument_list "(p,opcode,iCur,pTab->tnum,iDb,(int)pTab->nNVCol)" ( identifier , identifier , identifier , (field_expression "pTab->tnum" identifier -> field_identifier) , identifier , (cast_expression "(int)pTab->nNVCol" ( (type_descriptor "int" primitive_type) ) (field_expression "pTab->nNVCol" identifier -> field_identifier)) ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void __regparm3\nFUN_0004b430(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4,int param_5)\n\n{\n  int iVar1;\n  code *pcVar2;\n  \n  if (*(int *)(param_1 + 8) == 0) {\n    FUN_000318c0();\n  }\n  FUN_000309e0(param_5 == 0x61,*param_4);\n  if ((*(byte *)(param_4 + 9) & 0x80) != 0) {\n    iVar1 = param_4[2];\n    while( true ) {\n      if (iVar1 == 0) {\n                    \n        pcVar2 = (code *)invalidInstructionException();\n        (*pcVar2)();\n      }\n      if ((*(byte *)(iVar1 + 0x37) & 3) == 2) break;\n      iVar1 = *(int *)(iVar1 + 0x14);\n    }\n    FUN_000315c0(*(undefined4 *)(iVar1 + 0x2c),param_3);\n    FUN_0004b400();\n    return;\n  }\n  FUN_000316b0(param_4[7],param_3,(int)*(short *)(param_4 + 0xb));\n  return;\n}\n\n" (function_definition "void __regparm3\nFUN_0004b430(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4,int param_5)\n\n{\n  int iVar1;\n  code *pcVar2;\n  \n  if (*(int *)(param_1 + 8) == 0) {\n    FUN_000318c0();\n  }\n  FUN_000309e0(param_5 == 0x61,*param_4);\n  if ((*(byte *)(param_4 + 9) & 0x80) != 0) {\n    iVar1 = param_4[2];\n    while( true ) {\n      if (iVar1 == 0) {\n                    \n        pcVar2 = (code *)invalidInstructionException();\n        (*pcVar2)();\n      }\n      if ((*(byte *)(iVar1 + 0x37) & 3) == 2) break;\n      iVar1 = *(int *)(iVar1 + 0x14);\n    }\n    FUN_000315c0(*(undefined4 *)(iVar1 + 0x2c),param_3);\n    FUN_0004b400();\n    return;\n  }\n  FUN_000316b0(param_4[7],param_3,(int)*(short *)(param_4 + 0xb));\n  return;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0004b430(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4,int param_5)" identifier (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4,int param_5)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) , (parameter_declaration "undefined4 param_3" type_identifier identifier) , (parameter_declaration "undefined4 *param_4" type_identifier (pointer_declarator "*param_4" * identifier)) , (parameter_declaration "int param_5" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  code *pcVar2;\n  \n  if (*(int *)(param_1 + 8) == 0) {\n    FUN_000318c0();\n  }\n  FUN_000309e0(param_5 == 0x61,*param_4);\n  if ((*(byte *)(param_4 + 9) & 0x80) != 0) {\n    iVar1 = param_4[2];\n    while( true ) {\n      if (iVar1 == 0) {\n                    \n        pcVar2 = (code *)invalidInstructionException();\n        (*pcVar2)();\n      }\n      if ((*(byte *)(iVar1 + 0x37) & 3) == 2) break;\n      iVar1 = *(int *)(iVar1 + 0x14);\n    }\n    FUN_000315c0(*(undefined4 *)(iVar1 + 0x2c),param_3);\n    FUN_0004b400();\n    return;\n  }\n  FUN_000316b0(param_4[7],param_3,(int)*(short *)(param_4 + 0xb));\n  return;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "code *pcVar2;" type_identifier (pointer_declarator "*pcVar2" * identifier) ;) (if_statement "if (*(int *)(param_1 + 8) == 0) {\n    FUN_000318c0();\n  }" if (parenthesized_expression "(*(int *)(param_1 + 8) == 0)" ( (binary_expression "*(int *)(param_1 + 8) == 0" (pointer_expression "*(int *)(param_1 + 8)" * (cast_expression "(int *)(param_1 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 8)" ( (binary_expression "param_1 + 8" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    FUN_000318c0();\n  }" { (expression_statement "FUN_000318c0();" (call_expression "FUN_000318c0()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "FUN_000309e0(param_5 == 0x61,*param_4);" (call_expression "FUN_000309e0(param_5 == 0x61,*param_4)" identifier (argument_list "(param_5 == 0x61,*param_4)" ( (binary_expression "param_5 == 0x61" identifier == number_literal) , (pointer_expression "*param_4" * identifier) ))) ;) (if_statement "if ((*(byte *)(param_4 + 9) & 0x80) != 0) {\n    iVar1 = param_4[2];\n    while( true ) {\n      if (iVar1 == 0) {\n                    \n        pcVar2 = (code *)invalidInstructionException();\n        (*pcVar2)();\n      }\n      if ((*(byte *)(iVar1 + 0x37) & 3) == 2) break;\n      iVar1 = *(int *)(iVar1 + 0x14);\n    }\n    FUN_000315c0(*(undefined4 *)(iVar1 + 0x2c),param_3);\n    FUN_0004b400();\n    return;\n  }" if (parenthesized_expression "((*(byte *)(param_4 + 9) & 0x80) != 0)" ( (binary_expression "(*(byte *)(param_4 + 9) & 0x80) != 0" (parenthesized_expression "(*(byte *)(param_4 + 9) & 0x80)" ( (binary_expression "*(byte *)(param_4 + 9) & 0x80" (pointer_expression "*(byte *)(param_4 + 9)" * (cast_expression "(byte *)(param_4 + 9)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 9)" ( (binary_expression "param_4 + 9" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n    iVar1 = param_4[2];\n    while( true ) {\n      if (iVar1 == 0) {\n                    \n        pcVar2 = (code *)invalidInstructionException();\n        (*pcVar2)();\n      }\n      if ((*(byte *)(iVar1 + 0x37) & 3) == 2) break;\n      iVar1 = *(int *)(iVar1 + 0x14);\n    }\n    FUN_000315c0(*(undefined4 *)(iVar1 + 0x2c),param_3);\n    FUN_0004b400();\n    return;\n  }" { (expression_statement "iVar1 = param_4[2];" (assignment_expression "iVar1 = param_4[2]" identifier = (subscript_expression "param_4[2]" identifier [ number_literal ])) ;) (while_statement "while( true ) {\n      if (iVar1 == 0) {\n                    \n        pcVar2 = (code *)invalidInstructionException();\n        (*pcVar2)();\n      }\n      if ((*(byte *)(iVar1 + 0x37) & 3) == 2) break;\n      iVar1 = *(int *)(iVar1 + 0x14);\n    }" while (parenthesized_expression "( true )" ( true )) (compound_statement "{\n      if (iVar1 == 0) {\n                    \n        pcVar2 = (code *)invalidInstructionException();\n        (*pcVar2)();\n      }\n      if ((*(byte *)(iVar1 + 0x37) & 3) == 2) break;\n      iVar1 = *(int *)(iVar1 + 0x14);\n    }" { (if_statement "if (iVar1 == 0) {\n                    \n        pcVar2 = (code *)invalidInstructionException();\n        (*pcVar2)();\n      }" if (parenthesized_expression "(iVar1 == 0)" ( (binary_expression "iVar1 == 0" identifier == number_literal) )) (compound_statement "{\n                    \n        pcVar2 = (code *)invalidInstructionException();\n        (*pcVar2)();\n      }" { (expression_statement "pcVar2 = (code *)invalidInstructionException();" (assignment_expression "pcVar2 = (code *)invalidInstructionException()" identifier = (cast_expression "(code *)invalidInstructionException()" ( (type_descriptor "code *" type_identifier (abstract_pointer_declarator "*" *)) ) (call_expression "invalidInstructionException()" identifier (argument_list "()" ( ))))) ;) (expression_statement "(*pcVar2)();" (call_expression "(*pcVar2)()" (parenthesized_expression "(*pcVar2)" ( (pointer_expression "*pcVar2" * identifier) )) (argument_list "()" ( ))) ;) })) (if_statement "if ((*(byte *)(iVar1 + 0x37) & 3) == 2) break;" if (parenthesized_expression "((*(byte *)(iVar1 + 0x37) & 3) == 2)" ( (binary_expression "(*(byte *)(iVar1 + 0x37) & 3) == 2" (parenthesized_expression "(*(byte *)(iVar1 + 0x37) & 3)" ( (binary_expression "*(byte *)(iVar1 + 0x37) & 3" (pointer_expression "*(byte *)(iVar1 + 0x37)" * (cast_expression "(byte *)(iVar1 + 0x37)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x37)" ( (binary_expression "iVar1 + 0x37" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (break_statement "break;" break ;)) (expression_statement "iVar1 = *(int *)(iVar1 + 0x14);" (assignment_expression "iVar1 = *(int *)(iVar1 + 0x14)" identifier = (pointer_expression "*(int *)(iVar1 + 0x14)" * (cast_expression "(int *)(iVar1 + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x14)" ( (binary_expression "iVar1 + 0x14" identifier + number_literal) ))))) ;) })) (expression_statement "FUN_000315c0(*(undefined4 *)(iVar1 + 0x2c),param_3);" (call_expression "FUN_000315c0(*(undefined4 *)(iVar1 + 0x2c),param_3)" identifier (argument_list "(*(undefined4 *)(iVar1 + 0x2c),param_3)" ( (pointer_expression "*(undefined4 *)(iVar1 + 0x2c)" * (cast_expression "(undefined4 *)(iVar1 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar1 + 0x2c)" ( (binary_expression "iVar1 + 0x2c" identifier + number_literal) )))) , identifier ))) ;) (expression_statement "FUN_0004b400();" (call_expression "FUN_0004b400()" identifier (argument_list "()" ( ))) ;) (return_statement "return;" return ;) })) (expression_statement "FUN_000316b0(param_4[7],param_3,(int)*(short *)(param_4 + 0xb));" (call_expression "FUN_000316b0(param_4[7],param_3,(int)*(short *)(param_4 + 0xb))" identifier (argument_list "(param_4[7],param_3,(int)*(short *)(param_4 + 0xb))" ( (subscript_expression "param_4[7]" identifier [ number_literal ]) , identifier , (cast_expression "(int)*(short *)(param_4 + 0xb)" ( (type_descriptor "int" primitive_type) ) (pointer_expression "*(short *)(param_4 + 0xb)" * (cast_expression "(short *)(param_4 + 0xb)" ( (type_descriptor "short *" (sized_type_specifier "short" short) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_4 + 0xb)" ( (binary_expression "param_4 + 0xb" identifier + number_literal) ))))) ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (binary_expression IDENT == LIT) , (pointer_expression * IDENT) ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (subscript_expression IDENT [ LIT ])) ;) (while_statement while (parenthesized_expression ( BOOL )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (call_expression IDENT (argument_list ( ))))) ;) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (break_statement break ;)) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (expression_statement (call_expression IDENT (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))) ;) (expression_statement (call_expression IDENT (argument_list ( ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( (subscript_expression IDENT [ LIT ]) , IDENT , (cast_expression ( (type_descriptor TYPE) ) (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier short) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ))) ;) (return_statement return ;) })))
(function_definition "void __regparm3\nFUN_0004b430(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4,int param_5)\n\n{\n  int iVar1;\n  code *pcVar2;\n  \n  if (*(int *)(param_1 + 8) == 0) {\n    FUN_000318c0();\n  }\n  FUN_000309e0(param_5 == 0x61,*param_4);\n  if ((*(byte *)(param_4 + 9) & 0x80) != 0) {\n    iVar1 = param_4[2];\n    while( true ) {\n      if (iVar1 == 0) {\n                    \n        pcVar2 = (code *)invalidInstructionException();\n        (*pcVar2)();\n      }\n      if ((*(byte *)(iVar1 + 0x37) & 3) == 2) break;\n      iVar1 = *(int *)(iVar1 + 0x14);\n    }\n    FUN_000315c0(*(undefined4 *)(iVar1 + 0x2c),param_3);\n    FUN_0004b400();\n    return;\n  }\n  FUN_000316b0(param_4[7],param_3,(int)*(short *)(param_4 + 0xb));\n  return;\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0004b430(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4,int param_5)" (identifier "FUN_0004b430") (parameter_list "(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4,int param_5)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) (, ",") (parameter_declaration "undefined4 param_3" (type_identifier "undefined4") (identifier "param_3")) (, ",") (parameter_declaration "undefined4 *param_4" (type_identifier "undefined4") (pointer_declarator "*param_4" (* "*") (identifier "param_4"))) (, ",") (parameter_declaration "int param_5" (primitive_type "int") (identifier "param_5")) () ")"))) (compound_statement "{\n  int iVar1;\n  code *pcVar2;\n  \n  if (*(int *)(param_1 + 8) == 0) {\n    FUN_000318c0();\n  }\n  FUN_000309e0(param_5 == 0x61,*param_4);\n  if ((*(byte *)(param_4 + 9) & 0x80) != 0) {\n    iVar1 = param_4[2];\n    while( true ) {\n      if (iVar1 == 0) {\n                    \n        pcVar2 = (code *)invalidInstructionException();\n        (*pcVar2)();\n      }\n      if ((*(byte *)(iVar1 + 0x37) & 3) == 2) break;\n      iVar1 = *(int *)(iVar1 + 0x14);\n    }\n    FUN_000315c0(*(undefined4 *)(iVar1 + 0x2c),param_3);\n    FUN_0004b400();\n    return;\n  }\n  FUN_000316b0(param_4[7],param_3,(int)*(short *)(param_4 + 0xb));\n  return;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "code *pcVar2;" (type_identifier "code") (pointer_declarator "*pcVar2" (* "*") (identifier "pcVar2")) (; ";")) (if_statement "if (*(int *)(param_1 + 8) == 0) {\n    FUN_000318c0();\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 8) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 8) == 0" (pointer_expression "*(int *)(param_1 + 8)" (* "*") (cast_expression "(int *)(param_1 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 8)" (( "(") (binary_expression "param_1 + 8" (identifier "param_1") (+ "+") (number_literal "8")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    FUN_000318c0();\n  }" ({ "{") (expression_statement "FUN_000318c0();" (call_expression "FUN_000318c0()" (identifier "FUN_000318c0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "FUN_000309e0(param_5 == 0x61,*param_4);" (call_expression "FUN_000309e0(param_5 == 0x61,*param_4)" (identifier "FUN_000309e0") (argument_list "(param_5 == 0x61,*param_4)" (( "(") (binary_expression "param_5 == 0x61" (identifier "param_5") (== "==") (number_literal "0x61")) (, ",") (pointer_expression "*param_4" (* "*") (identifier "param_4")) () ")"))) (; ";")) (if_statement "if ((*(byte *)(param_4 + 9) & 0x80) != 0) {\n    iVar1 = param_4[2];\n    while( true ) {\n      if (iVar1 == 0) {\n                    \n        pcVar2 = (code *)invalidInstructionException();\n        (*pcVar2)();\n      }\n      if ((*(byte *)(iVar1 + 0x37) & 3) == 2) break;\n      iVar1 = *(int *)(iVar1 + 0x14);\n    }\n    FUN_000315c0(*(undefined4 *)(iVar1 + 0x2c),param_3);\n    FUN_0004b400();\n    return;\n  }" (if "if") (parenthesized_expression "((*(byte *)(param_4 + 9) & 0x80) != 0)" (( "(") (binary_expression "(*(byte *)(param_4 + 9) & 0x80) != 0" (parenthesized_expression "(*(byte *)(param_4 + 9) & 0x80)" (( "(") (binary_expression "*(byte *)(param_4 + 9) & 0x80" (pointer_expression "*(byte *)(param_4 + 9)" (* "*") (cast_expression "(byte *)(param_4 + 9)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 9)" (( "(") (binary_expression "param_4 + 9" (identifier "param_4") (+ "+") (number_literal "9")) () ")")))) (& "&") (number_literal "0x80")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = param_4[2];\n    while( true ) {\n      if (iVar1 == 0) {\n                    \n        pcVar2 = (code *)invalidInstructionException();\n        (*pcVar2)();\n      }\n      if ((*(byte *)(iVar1 + 0x37) & 3) == 2) break;\n      iVar1 = *(int *)(iVar1 + 0x14);\n    }\n    FUN_000315c0(*(undefined4 *)(iVar1 + 0x2c),param_3);\n    FUN_0004b400();\n    return;\n  }" ({ "{") (expression_statement "iVar1 = param_4[2];" (assignment_expression "iVar1 = param_4[2]" (identifier "iVar1") (= "=") (subscript_expression "param_4[2]" (identifier "param_4") ([ "[") (number_literal "2") (] "]"))) (; ";")) (while_statement "while( true ) {\n      if (iVar1 == 0) {\n                    \n        pcVar2 = (code *)invalidInstructionException();\n        (*pcVar2)();\n      }\n      if ((*(byte *)(iVar1 + 0x37) & 3) == 2) break;\n      iVar1 = *(int *)(iVar1 + 0x14);\n    }" (while "while") (parenthesized_expression "( true )" (( "(") (true "true") () ")")) (compound_statement "{\n      if (iVar1 == 0) {\n                    \n        pcVar2 = (code *)invalidInstructionException();\n        (*pcVar2)();\n      }\n      if ((*(byte *)(iVar1 + 0x37) & 3) == 2) break;\n      iVar1 = *(int *)(iVar1 + 0x14);\n    }" ({ "{") (if_statement "if (iVar1 == 0) {\n                    \n        pcVar2 = (code *)invalidInstructionException();\n        (*pcVar2)();\n      }" (if "if") (parenthesized_expression "(iVar1 == 0)" (( "(") (binary_expression "iVar1 == 0" (identifier "iVar1") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n                    \n        pcVar2 = (code *)invalidInstructionException();\n        (*pcVar2)();\n      }" ({ "{") (expression_statement "pcVar2 = (code *)invalidInstructionException();" (assignment_expression "pcVar2 = (code *)invalidInstructionException()" (identifier "pcVar2") (= "=") (cast_expression "(code *)invalidInstructionException()" (( "(") (type_descriptor "code *" (type_identifier "code") (abstract_pointer_declarator "*" (* "*"))) () ")") (call_expression "invalidInstructionException()" (identifier "invalidInstructionException") (argument_list "()" (( "(") () ")"))))) (; ";")) (expression_statement "(*pcVar2)();" (call_expression "(*pcVar2)()" (parenthesized_expression "(*pcVar2)" (( "(") (pointer_expression "*pcVar2" (* "*") (identifier "pcVar2")) () ")")) (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (if_statement "if ((*(byte *)(iVar1 + 0x37) & 3) == 2) break;" (if "if") (parenthesized_expression "((*(byte *)(iVar1 + 0x37) & 3) == 2)" (( "(") (binary_expression "(*(byte *)(iVar1 + 0x37) & 3) == 2" (parenthesized_expression "(*(byte *)(iVar1 + 0x37) & 3)" (( "(") (binary_expression "*(byte *)(iVar1 + 0x37) & 3" (pointer_expression "*(byte *)(iVar1 + 0x37)" (* "*") (cast_expression "(byte *)(iVar1 + 0x37)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x37)" (( "(") (binary_expression "iVar1 + 0x37" (identifier "iVar1") (+ "+") (number_literal "0x37")) () ")")))) (& "&") (number_literal "3")) () ")")) (== "==") (number_literal "2")) () ")")) (break_statement "break;" (break "break") (; ";"))) (expression_statement "iVar1 = *(int *)(iVar1 + 0x14);" (assignment_expression "iVar1 = *(int *)(iVar1 + 0x14)" (identifier "iVar1") (= "=") (pointer_expression "*(int *)(iVar1 + 0x14)" (* "*") (cast_expression "(int *)(iVar1 + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x14)" (( "(") (binary_expression "iVar1 + 0x14" (identifier "iVar1") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (} "}"))) (expression_statement "FUN_000315c0(*(undefined4 *)(iVar1 + 0x2c),param_3);" (call_expression "FUN_000315c0(*(undefined4 *)(iVar1 + 0x2c),param_3)" (identifier "FUN_000315c0") (argument_list "(*(undefined4 *)(iVar1 + 0x2c),param_3)" (( "(") (pointer_expression "*(undefined4 *)(iVar1 + 0x2c)" (* "*") (cast_expression "(undefined4 *)(iVar1 + 0x2c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar1 + 0x2c)" (( "(") (binary_expression "iVar1 + 0x2c" (identifier "iVar1") (+ "+") (number_literal "0x2c")) () ")")))) (, ",") (identifier "param_3") () ")"))) (; ";")) (expression_statement "FUN_0004b400();" (call_expression "FUN_0004b400()" (identifier "FUN_0004b400") (argument_list "()" (( "(") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_000316b0(param_4[7],param_3,(int)*(short *)(param_4 + 0xb));" (call_expression "FUN_000316b0(param_4[7],param_3,(int)*(short *)(param_4 + 0xb))" (identifier "FUN_000316b0") (argument_list "(param_4[7],param_3,(int)*(short *)(param_4 + 0xb))" (( "(") (subscript_expression "param_4[7]" (identifier "param_4") ([ "[") (number_literal "7") (] "]")) (, ",") (identifier "param_3") (, ",") (cast_expression "(int)*(short *)(param_4 + 0xb)" (( "(") (type_descriptor "int" (primitive_type "int")) () ")") (pointer_expression "*(short *)(param_4 + 0xb)" (* "*") (cast_expression "(short *)(param_4 + 0xb)" (( "(") (type_descriptor "short *" (sized_type_specifier "short" (short "short")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_4 + 0xb)" (( "(") (binary_expression "param_4 + 0xb" (identifier "param_4") (+ "+") (number_literal "0xb")) () ")"))))) () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

void __regparm3 function_1(type_1 *pParse,int iCur,int iDb,type_2 *pTab,int var_4)

{
  type_3 *var_5;
  type_4 *pcVar1;
  type_5 *var_1;
  
  var_1 = pParse->pVdbe;
  if (var_1 == (type_5 *)0x0) {
    var_1 = var_2(pParse);
  }
  var_3(pParse,iDb,pTab->tnum,var_4 == 0x61,pTab->zName);
  if ((pTab->tabFlags & 0x80) != 0) {
    var_5 = pTab->pIndex;
    while( true ) {
      if (var_5 == (type_3 *)0x0) {
                    /* WARNING: Does not return */
        pcVar1 = (type_4 *)var_6();
        (*pcVar1)();
      }
      if ((var_5->field_0x37 & 3) == 2) break;
      var_5 = var_5->pNext;
    }
    var_7(var_1,var_4,iCur,var_5->tnum,iDb);
    var_8(pParse,var_5);
    return;
  }
  var_9(var_1,var_4,iCur,pTab->tnum,iDb,(int)pTab->nNVCol);
  return;
}


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

void __regparm3
MASKED(int param_1,undefined4 param_2,undefined4 param_3,undefined4 *param_4,int param_5)

{
  int iVar1;
  code *pcVar2;
  
  if (*(int *)(param_1 + 8) == 0) {
    FUN_000318c0();
  }
  FUN_000309e0(param_5 == 0x61,*param_4);
  if ((*(byte *)(param_4 + 9) & 0x80) != 0) {
    iVar1 = param_4[2];
    while( true ) {
      if (iVar1 == 0) {
                    /* WARNING: Does not return */
        pcVar2 = (code *)invalidInstructionException();
        (*pcVar2)();
      }
      if ((*(byte *)(iVar1 + 0x37) & 3) == 2) break;
      iVar1 = *(int *)(iVar1 + 0x14);
    }
    FUN_000315c0(*(undefined4 *)(iVar1 + 0x2c),param_3);
    FUN_0004b400();
    return;
  }
  FUN_000316b0(param_4[7],param_3,(int)*(short *)(param_4 + 0xb));
  return;
}

