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

int __regparm3 sqlite3BtreeSetCacheSize(Btree *p,int mxPage)

{
  BtShared *pBVar1;
  PCache *pPVar2;
  _func_void_sqlite3_pcache_ptr_int *p_Var3;
  int iVar4;
  int mxPage_00;
  
  pBVar1 = p->pBt;
  if (p->sharable != '\0') {
    sqlite3BtreeEnter(p);
  }
  pPVar2 = pBVar1->pPager->pPCache;
  pPVar2->szCache = mxPage;
  p_Var3 = sqlite3Config.pcache2.xCachesize;
  if (mxPage < 0) {
    iVar4 = pPVar2->szExtra + pPVar2->szPage;
    mxPage = __divdi3(mxPage * -0x400,
                      ((mxPage >> 0x1f) + (uint)(mxPage != 0)) * -0x400 | (uint)-mxPage >> 0x16,
                      iVar4,iVar4 >> 0x1f);
  }
  (*p_Var3)(pPVar2->pCache,mxPage);
  if (p->sharable != '\0') {
    sqlite3BtreeSetCacheSize(p,mxPage_00);
  }
  return 0;
}



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

undefined4 __regparm3 FUN_0002cfc0(int param_1,int param_2)

{
  int *piVar1;
  int iVar2;
  code *pcVar3;
  int iVar4;
  
  piVar1 = *(int **)(param_1 + 4);
  if (*(char *)(param_1 + 9) != '\0') {
    FUN_0002cb40();
  }
  iVar2 = *(int *)(*piVar1 + 0xd0);
  *(int *)(iVar2 + 0x10) = param_2;
  pcVar3 = DAT_0014b204;
  if (param_2 < 0) {
    iVar4 = *(int *)(iVar2 + 0x1c) + *(int *)(iVar2 + 0x18);
    param_2 = FUN_000f5a10(param_2 * -0x400,
                           ((param_2 >> 0x1f) + (uint)(param_2 != 0)) * -0x400 |
                           (uint)-param_2 >> 0x16,iVar4,iVar4 >> 0x1f);
  }
  (*pcVar3)(*(undefined4 *)(iVar2 + 0x2c),param_2);
  if (*(char *)(param_1 + 9) != '\0') {
    FUN_0002cfa0();
  }
  return 0;
}


PUSH EBP
PUSH EDI
PUSH ESI
MOV ESI,EAX
PUSH EBX
CALL 0x00014d20
ADD EBX,0x11df09
SUB ESP,0x1c
CMP byte ptr [EAX + 0x9],0x0
MOV EDI,dword ptr [EAX + 0x4]
JZ 0x0002cfea
MOV dword ptr [ESP + 0x8],EDX
CALL 0x0002cb40
MOV EDX,dword ptr [ESP + 0x8]
MOV EAX,dword ptr [EDI]
MOV EDI,dword ptr [EAX + 0xd0]
MOV dword ptr [EDI + 0x10],EDX
MOV EBP,dword ptr [EBX + 0x330]
TEST EDX,EDX
JNS 0x0002d035
MOV ECX,EDX
MOV EAX,dword ptr [EDI + 0x1c]
SAR ECX,0x1f
NEG EDX
ADC ECX,0x0
ADD EAX,dword ptr [EDI + 0x18]
NEG ECX
SHLD ECX,EDX,0xa
SHL EDX,0xa
MOV dword ptr [ESP + 0x8],EDX
CDQ
MOV dword ptr [ESP + 0xc],ECX
PUSH EDX
PUSH EAX
PUSH dword ptr [ESP + 0x14]
PUSH dword ptr [ESP + 0x14]
CALL 0x000f5a10
ADD ESP,0x10
MOV EDX,EAX
SUB ESP,0x8
PUSH EDX
PUSH dword ptr [EDI + 0x2c]
CALL EBP
ADD ESP,0x10
CMP byte ptr [ESI + 0x9],0x0
JZ 0x0002d04e
MOV EAX,ESI
CALL 0x0002cfa0
ADD ESP,0x1c
XOR EAX,EAX
POP EBX
POP ESI
POP EDI
POP EBP
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nundefined4 __regparm3 FUN_0002cfc0(int param_1,int param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  code *pcVar3;\n  int iVar4;\n  \n  piVar1 = *(int **)(param_1 + 4);\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_0002cb40();\n  }\n  iVar2 = *(int *)(*piVar1 + 0xd0);\n  *(int *)(iVar2 + 0x10) = param_2;\n  pcVar3 = DAT_0014b204;\n  if (param_2 < 0) {\n    iVar4 = *(int *)(iVar2 + 0x1c) + *(int *)(iVar2 + 0x18);\n    param_2 = FUN_000f5a10(param_2 * -0x400,\n                           ((param_2 >> 0x1f) + (uint)(param_2 != 0)) * -0x400 |\n                           (uint)-param_2 >> 0x16,iVar4,iVar4 >> 0x1f);\n  }\n  (*pcVar3)(*(undefined4 *)(iVar2 + 0x2c),param_2);\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_0002cfa0();\n  }\n  return 0;\n}\n\n" comment (function_definition "undefined4 __regparm3 FUN_0002cfc0(int param_1,int param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  code *pcVar3;\n  int iVar4;\n  \n  piVar1 = *(int **)(param_1 + 4);\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_0002cb40();\n  }\n  iVar2 = *(int *)(*piVar1 + 0xd0);\n  *(int *)(iVar2 + 0x10) = param_2;\n  pcVar3 = DAT_0014b204;\n  if (param_2 < 0) {\n    iVar4 = *(int *)(iVar2 + 0x1c) + *(int *)(iVar2 + 0x18);\n    param_2 = FUN_000f5a10(param_2 * -0x400,\n                           ((param_2 >> 0x1f) + (uint)(param_2 != 0)) * -0x400 |\n                           (uint)-param_2 >> 0x16,iVar4,iVar4 >> 0x1f);\n  }\n  (*pcVar3)(*(undefined4 *)(iVar2 + 0x2c),param_2);\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_0002cfa0();\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0002cfc0(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  code *pcVar3;\n  int iVar4;\n  \n  piVar1 = *(int **)(param_1 + 4);\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_0002cb40();\n  }\n  iVar2 = *(int *)(*piVar1 + 0xd0);\n  *(int *)(iVar2 + 0x10) = param_2;\n  pcVar3 = DAT_0014b204;\n  if (param_2 < 0) {\n    iVar4 = *(int *)(iVar2 + 0x1c) + *(int *)(iVar2 + 0x18);\n    param_2 = FUN_000f5a10(param_2 * -0x400,\n                           ((param_2 >> 0x1f) + (uint)(param_2 != 0)) * -0x400 |\n                           (uint)-param_2 >> 0x16,iVar4,iVar4 >> 0x1f);\n  }\n  (*pcVar3)(*(undefined4 *)(iVar2 + 0x2c),param_2);\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_0002cfa0();\n  }\n  return 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "code *pcVar3;" type_identifier (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "piVar1 = *(int **)(param_1 + 4);" (assignment_expression "piVar1 = *(int **)(param_1 + 4)" identifier = (pointer_expression "*(int **)(param_1 + 4)" * (cast_expression "(int **)(param_1 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (if_statement "if (*(char *)(param_1 + 9) != '\0') {\n    FUN_0002cb40();\n  }" if (parenthesized_expression "(*(char *)(param_1 + 9) != '\0')" ( (binary_expression "*(char *)(param_1 + 9) != '\0'" (pointer_expression "*(char *)(param_1 + 9)" * (cast_expression "(char *)(param_1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 9)" ( (binary_expression "param_1 + 9" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_0002cb40();\n  }" { (expression_statement "FUN_0002cb40();" (call_expression "FUN_0002cb40()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "iVar2 = *(int *)(*piVar1 + 0xd0);" (assignment_expression "iVar2 = *(int *)(*piVar1 + 0xd0)" identifier = (pointer_expression "*(int *)(*piVar1 + 0xd0)" * (cast_expression "(int *)(*piVar1 + 0xd0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar1 + 0xd0)" ( (binary_expression "*piVar1 + 0xd0" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) ;) (expression_statement "*(int *)(iVar2 + 0x10) = param_2;" (assignment_expression "*(int *)(iVar2 + 0x10) = param_2" (pointer_expression "*(int *)(iVar2 + 0x10)" * (cast_expression "(int *)(iVar2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "pcVar3 = DAT_0014b204;" (assignment_expression "pcVar3 = DAT_0014b204" identifier = identifier) ;) (if_statement "if (param_2 < 0) {\n    iVar4 = *(int *)(iVar2 + 0x1c) + *(int *)(iVar2 + 0x18);\n    param_2 = FUN_000f5a10(param_2 * -0x400,\n                           ((param_2 >> 0x1f) + (uint)(param_2 != 0)) * -0x400 |\n                           (uint)-param_2 >> 0x16,iVar4,iVar4 >> 0x1f);\n  }" if (parenthesized_expression "(param_2 < 0)" ( (binary_expression "param_2 < 0" identifier < number_literal) )) (compound_statement "{\n    iVar4 = *(int *)(iVar2 + 0x1c) + *(int *)(iVar2 + 0x18);\n    param_2 = FUN_000f5a10(param_2 * -0x400,\n                           ((param_2 >> 0x1f) + (uint)(param_2 != 0)) * -0x400 |\n                           (uint)-param_2 >> 0x16,iVar4,iVar4 >> 0x1f);\n  }" { (expression_statement "iVar4 = *(int *)(iVar2 + 0x1c) + *(int *)(iVar2 + 0x18);" (assignment_expression "iVar4 = *(int *)(iVar2 + 0x1c) + *(int *)(iVar2 + 0x18)" identifier = (binary_expression "*(int *)(iVar2 + 0x1c) + *(int *)(iVar2 + 0x18)" (pointer_expression "*(int *)(iVar2 + 0x1c)" * (cast_expression "(int *)(iVar2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x1c)" ( (binary_expression "iVar2 + 0x1c" identifier + number_literal) )))) + (pointer_expression "*(int *)(iVar2 + 0x18)" * (cast_expression "(int *)(iVar2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x18)" ( (binary_expression "iVar2 + 0x18" identifier + number_literal) )))))) ;) (expression_statement "param_2 = FUN_000f5a10(param_2 * -0x400,\n                           ((param_2 >> 0x1f) + (uint)(param_2 != 0)) * -0x400 |\n                           (uint)-param_2 >> 0x16,iVar4,iVar4 >> 0x1f);" (assignment_expression "param_2 = FUN_000f5a10(param_2 * -0x400,\n                           ((param_2 >> 0x1f) + (uint)(param_2 != 0)) * -0x400 |\n                           (uint)-param_2 >> 0x16,iVar4,iVar4 >> 0x1f)" identifier = (call_expression "FUN_000f5a10(param_2 * -0x400,\n                           ((param_2 >> 0x1f) + (uint)(param_2 != 0)) * -0x400 |\n                           (uint)-param_2 >> 0x16,iVar4,iVar4 >> 0x1f)" identifier (argument_list "(param_2 * -0x400,\n                           ((param_2 >> 0x1f) + (uint)(param_2 != 0)) * -0x400 |\n                           (uint)-param_2 >> 0x16,iVar4,iVar4 >> 0x1f)" ( (binary_expression "param_2 * -0x400" identifier * number_literal) , (binary_expression "((param_2 >> 0x1f) + (uint)(param_2 != 0)) * -0x400 |\n                           (uint)-param_2 >> 0x16" (binary_expression "((param_2 >> 0x1f) + (uint)(param_2 != 0)) * -0x400" (parenthesized_expression "((param_2 >> 0x1f) + (uint)(param_2 != 0))" ( (binary_expression "(param_2 >> 0x1f) + (uint)(param_2 != 0)" (parenthesized_expression "(param_2 >> 0x1f)" ( (binary_expression "param_2 >> 0x1f" identifier >> number_literal) )) + (call_expression "(uint)(param_2 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )))) )) * number_literal) | (binary_expression "(uint)-param_2 >> 0x16" (binary_expression "(uint)-param_2" (parenthesized_expression "(uint)" ( identifier )) - identifier) >> number_literal)) , identifier , (binary_expression "iVar4 >> 0x1f" identifier >> number_literal) )))) ;) })) (expression_statement "(*pcVar3)(*(undefined4 *)(iVar2 + 0x2c),param_2);" (call_expression "(*pcVar3)(*(undefined4 *)(iVar2 + 0x2c),param_2)" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "(*(undefined4 *)(iVar2 + 0x2c),param_2)" ( (pointer_expression "*(undefined4 *)(iVar2 + 0x2c)" * (cast_expression "(undefined4 *)(iVar2 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2c)" ( (binary_expression "iVar2 + 0x2c" identifier + number_literal) )))) , identifier ))) ;) (if_statement "if (*(char *)(param_1 + 9) != '\0') {\n    FUN_0002cfa0();\n  }" if (parenthesized_expression "(*(char *)(param_1 + 9) != '\0')" ( (binary_expression "*(char *)(param_1 + 9) != '\0'" (pointer_expression "*(char *)(param_1 + 9)" * (cast_expression "(char *)(param_1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 9)" ( (binary_expression "param_1 + 9" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_0002cfa0();\n  }" { (expression_statement "FUN_0002cfa0();" (call_expression "FUN_0002cfa0()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nint __regparm3 sqlite3BtreeSetCacheSize(Btree *p,int mxPage)\n\n{\n  BtShared *pBVar1;\n  PCache *pPVar2;\n  _func_void_sqlite3_pcache_ptr_int *p_Var3;\n  int iVar4;\n  int mxPage_00;\n  \n  pBVar1 = p->pBt;\n  if (p->sharable != '\0') {\n    sqlite3BtreeEnter(p);\n  }\n  pPVar2 = pBVar1->pPager->pPCache;\n  pPVar2->szCache = mxPage;\n  p_Var3 = sqlite3Config.pcache2.xCachesize;\n  if (mxPage < 0) {\n    iVar4 = pPVar2->szExtra + pPVar2->szPage;\n    mxPage = __divdi3(mxPage * -0x400,\n                      ((mxPage >> 0x1f) + (uint)(mxPage != 0)) * -0x400 | (uint)-mxPage >> 0x16,\n                      iVar4,iVar4 >> 0x1f);\n  }\n  (*p_Var3)(pPVar2->pCache,mxPage);\n  if (p->sharable != '\0') {\n    sqlite3BtreeSetCacheSize(p,mxPage_00);\n  }\n  return 0;\n}\n\n" comment (function_definition "int __regparm3 sqlite3BtreeSetCacheSize(Btree *p,int mxPage)\n\n{\n  BtShared *pBVar1;\n  PCache *pPVar2;\n  _func_void_sqlite3_pcache_ptr_int *p_Var3;\n  int iVar4;\n  int mxPage_00;\n  \n  pBVar1 = p->pBt;\n  if (p->sharable != '\0') {\n    sqlite3BtreeEnter(p);\n  }\n  pPVar2 = pBVar1->pPager->pPCache;\n  pPVar2->szCache = mxPage;\n  p_Var3 = sqlite3Config.pcache2.xCachesize;\n  if (mxPage < 0) {\n    iVar4 = pPVar2->szExtra + pPVar2->szPage;\n    mxPage = __divdi3(mxPage * -0x400,\n                      ((mxPage >> 0x1f) + (uint)(mxPage != 0)) * -0x400 | (uint)-mxPage >> 0x16,\n                      iVar4,iVar4 >> 0x1f);\n  }\n  (*p_Var3)(pPVar2->pCache,mxPage);\n  if (p->sharable != '\0') {\n    sqlite3BtreeSetCacheSize(p,mxPage_00);\n  }\n  return 0;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "sqlite3BtreeSetCacheSize(Btree *p,int mxPage)" identifier (parameter_list "(Btree *p,int mxPage)" ( (parameter_declaration "Btree *p" type_identifier (pointer_declarator "*p" * identifier)) , (parameter_declaration "int mxPage" primitive_type identifier) ))) (compound_statement "{\n  BtShared *pBVar1;\n  PCache *pPVar2;\n  _func_void_sqlite3_pcache_ptr_int *p_Var3;\n  int iVar4;\n  int mxPage_00;\n  \n  pBVar1 = p->pBt;\n  if (p->sharable != '\0') {\n    sqlite3BtreeEnter(p);\n  }\n  pPVar2 = pBVar1->pPager->pPCache;\n  pPVar2->szCache = mxPage;\n  p_Var3 = sqlite3Config.pcache2.xCachesize;\n  if (mxPage < 0) {\n    iVar4 = pPVar2->szExtra + pPVar2->szPage;\n    mxPage = __divdi3(mxPage * -0x400,\n                      ((mxPage >> 0x1f) + (uint)(mxPage != 0)) * -0x400 | (uint)-mxPage >> 0x16,\n                      iVar4,iVar4 >> 0x1f);\n  }\n  (*p_Var3)(pPVar2->pCache,mxPage);\n  if (p->sharable != '\0') {\n    sqlite3BtreeSetCacheSize(p,mxPage_00);\n  }\n  return 0;\n}" { (declaration "BtShared *pBVar1;" type_identifier (pointer_declarator "*pBVar1" * identifier) ;) (declaration "PCache *pPVar2;" type_identifier (pointer_declarator "*pPVar2" * identifier) ;) (declaration "_func_void_sqlite3_pcache_ptr_int *p_Var3;" type_identifier (pointer_declarator "*p_Var3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (declaration "int mxPage_00;" primitive_type identifier ;) (expression_statement "pBVar1 = p->pBt;" (assignment_expression "pBVar1 = p->pBt" identifier = (field_expression "p->pBt" identifier -> field_identifier)) ;) (if_statement "if (p->sharable != '\0') {\n    sqlite3BtreeEnter(p);\n  }" if (parenthesized_expression "(p->sharable != '\0')" ( (binary_expression "p->sharable != '\0'" (field_expression "p->sharable" identifier -> field_identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    sqlite3BtreeEnter(p);\n  }" { (expression_statement "sqlite3BtreeEnter(p);" (call_expression "sqlite3BtreeEnter(p)" identifier (argument_list "(p)" ( identifier ))) ;) })) (expression_statement "pPVar2 = pBVar1->pPager->pPCache;" (assignment_expression "pPVar2 = pBVar1->pPager->pPCache" identifier = (field_expression "pBVar1->pPager->pPCache" (field_expression "pBVar1->pPager" identifier -> field_identifier) -> field_identifier)) ;) (expression_statement "pPVar2->szCache = mxPage;" (assignment_expression "pPVar2->szCache = mxPage" (field_expression "pPVar2->szCache" identifier -> field_identifier) = identifier) ;) (expression_statement "p_Var3 = sqlite3Config.pcache2.xCachesize;" (assignment_expression "p_Var3 = sqlite3Config.pcache2.xCachesize" identifier = (field_expression "sqlite3Config.pcache2.xCachesize" (field_expression "sqlite3Config.pcache2" identifier . field_identifier) . field_identifier)) ;) (if_statement "if (mxPage < 0) {\n    iVar4 = pPVar2->szExtra + pPVar2->szPage;\n    mxPage = __divdi3(mxPage * -0x400,\n                      ((mxPage >> 0x1f) + (uint)(mxPage != 0)) * -0x400 | (uint)-mxPage >> 0x16,\n                      iVar4,iVar4 >> 0x1f);\n  }" if (parenthesized_expression "(mxPage < 0)" ( (binary_expression "mxPage < 0" identifier < number_literal) )) (compound_statement "{\n    iVar4 = pPVar2->szExtra + pPVar2->szPage;\n    mxPage = __divdi3(mxPage * -0x400,\n                      ((mxPage >> 0x1f) + (uint)(mxPage != 0)) * -0x400 | (uint)-mxPage >> 0x16,\n                      iVar4,iVar4 >> 0x1f);\n  }" { (expression_statement "iVar4 = pPVar2->szExtra + pPVar2->szPage;" (assignment_expression "iVar4 = pPVar2->szExtra + pPVar2->szPage" identifier = (binary_expression "pPVar2->szExtra + pPVar2->szPage" (field_expression "pPVar2->szExtra" identifier -> field_identifier) + (field_expression "pPVar2->szPage" identifier -> field_identifier))) ;) (expression_statement "mxPage = __divdi3(mxPage * -0x400,\n                      ((mxPage >> 0x1f) + (uint)(mxPage != 0)) * -0x400 | (uint)-mxPage >> 0x16,\n                      iVar4,iVar4 >> 0x1f);" (assignment_expression "mxPage = __divdi3(mxPage * -0x400,\n                      ((mxPage >> 0x1f) + (uint)(mxPage != 0)) * -0x400 | (uint)-mxPage >> 0x16,\n                      iVar4,iVar4 >> 0x1f)" identifier = (call_expression "__divdi3(mxPage * -0x400,\n                      ((mxPage >> 0x1f) + (uint)(mxPage != 0)) * -0x400 | (uint)-mxPage >> 0x16,\n                      iVar4,iVar4 >> 0x1f)" identifier (argument_list "(mxPage * -0x400,\n                      ((mxPage >> 0x1f) + (uint)(mxPage != 0)) * -0x400 | (uint)-mxPage >> 0x16,\n                      iVar4,iVar4 >> 0x1f)" ( (binary_expression "mxPage * -0x400" identifier * number_literal) , (binary_expression "((mxPage >> 0x1f) + (uint)(mxPage != 0)) * -0x400 | (uint)-mxPage >> 0x16" (binary_expression "((mxPage >> 0x1f) + (uint)(mxPage != 0)) * -0x400" (parenthesized_expression "((mxPage >> 0x1f) + (uint)(mxPage != 0))" ( (binary_expression "(mxPage >> 0x1f) + (uint)(mxPage != 0)" (parenthesized_expression "(mxPage >> 0x1f)" ( (binary_expression "mxPage >> 0x1f" identifier >> number_literal) )) + (call_expression "(uint)(mxPage != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(mxPage != 0)" ( (binary_expression "mxPage != 0" identifier != number_literal) )))) )) * number_literal) | (binary_expression "(uint)-mxPage >> 0x16" (binary_expression "(uint)-mxPage" (parenthesized_expression "(uint)" ( identifier )) - identifier) >> number_literal)) , identifier , (binary_expression "iVar4 >> 0x1f" identifier >> number_literal) )))) ;) })) (expression_statement "(*p_Var3)(pPVar2->pCache,mxPage);" (call_expression "(*p_Var3)(pPVar2->pCache,mxPage)" (parenthesized_expression "(*p_Var3)" ( (pointer_expression "*p_Var3" * identifier) )) (argument_list "(pPVar2->pCache,mxPage)" ( (field_expression "pPVar2->pCache" identifier -> field_identifier) , identifier ))) ;) (if_statement "if (p->sharable != '\0') {\n    sqlite3BtreeSetCacheSize(p,mxPage_00);\n  }" if (parenthesized_expression "(p->sharable != '\0')" ( (binary_expression "p->sharable != '\0'" (field_expression "p->sharable" identifier -> field_identifier) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    sqlite3BtreeSetCacheSize(p,mxPage_00);\n  }" { (expression_statement "sqlite3BtreeSetCacheSize(p,mxPage_00);" (call_expression "sqlite3BtreeSetCacheSize(p,mxPage_00)" identifier (argument_list "(p,mxPage_00)" ( identifier , identifier ))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 __regparm3 FUN_0002cfc0(int param_1,int param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  code *pcVar3;\n  int iVar4;\n  \n  piVar1 = *(int **)(param_1 + 4);\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_0002cb40();\n  }\n  iVar2 = *(int *)(*piVar1 + 0xd0);\n  *(int *)(iVar2 + 0x10) = param_2;\n  pcVar3 = DAT_0014b204;\n  if (param_2 < 0) {\n    iVar4 = *(int *)(iVar2 + 0x1c) + *(int *)(iVar2 + 0x18);\n    param_2 = FUN_000f5a10(param_2 * -0x400,\n                           ((param_2 >> 0x1f) + (uint)(param_2 != 0)) * -0x400 |\n                           (uint)-param_2 >> 0x16,iVar4,iVar4 >> 0x1f);\n  }\n  (*pcVar3)(*(undefined4 *)(iVar2 + 0x2c),param_2);\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_0002cfa0();\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_0002cfc0(int param_1,int param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  code *pcVar3;\n  int iVar4;\n  \n  piVar1 = *(int **)(param_1 + 4);\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_0002cb40();\n  }\n  iVar2 = *(int *)(*piVar1 + 0xd0);\n  *(int *)(iVar2 + 0x10) = param_2;\n  pcVar3 = DAT_0014b204;\n  if (param_2 < 0) {\n    iVar4 = *(int *)(iVar2 + 0x1c) + *(int *)(iVar2 + 0x18);\n    param_2 = FUN_000f5a10(param_2 * -0x400,\n                           ((param_2 >> 0x1f) + (uint)(param_2 != 0)) * -0x400 |\n                           (uint)-param_2 >> 0x16,iVar4,iVar4 >> 0x1f);\n  }\n  (*pcVar3)(*(undefined4 *)(iVar2 + 0x2c),param_2);\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_0002cfa0();\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0002cfc0(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  code *pcVar3;\n  int iVar4;\n  \n  piVar1 = *(int **)(param_1 + 4);\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_0002cb40();\n  }\n  iVar2 = *(int *)(*piVar1 + 0xd0);\n  *(int *)(iVar2 + 0x10) = param_2;\n  pcVar3 = DAT_0014b204;\n  if (param_2 < 0) {\n    iVar4 = *(int *)(iVar2 + 0x1c) + *(int *)(iVar2 + 0x18);\n    param_2 = FUN_000f5a10(param_2 * -0x400,\n                           ((param_2 >> 0x1f) + (uint)(param_2 != 0)) * -0x400 |\n                           (uint)-param_2 >> 0x16,iVar4,iVar4 >> 0x1f);\n  }\n  (*pcVar3)(*(undefined4 *)(iVar2 + 0x2c),param_2);\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_0002cfa0();\n  }\n  return 0;\n}" { (declaration "int *piVar1;" primitive_type (pointer_declarator "*piVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "code *pcVar3;" type_identifier (pointer_declarator "*pcVar3" * identifier) ;) (declaration "int iVar4;" primitive_type identifier ;) (expression_statement "piVar1 = *(int **)(param_1 + 4);" (assignment_expression "piVar1 = *(int **)(param_1 + 4)" identifier = (pointer_expression "*(int **)(param_1 + 4)" * (cast_expression "(int **)(param_1 + 4)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 4)" ( (binary_expression "param_1 + 4" identifier + number_literal) ))))) ;) (if_statement "if (*(char *)(param_1 + 9) != '\0') {\n    FUN_0002cb40();\n  }" if (parenthesized_expression "(*(char *)(param_1 + 9) != '\0')" ( (binary_expression "*(char *)(param_1 + 9) != '\0'" (pointer_expression "*(char *)(param_1 + 9)" * (cast_expression "(char *)(param_1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 9)" ( (binary_expression "param_1 + 9" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_0002cb40();\n  }" { (expression_statement "FUN_0002cb40();" (call_expression "FUN_0002cb40()" identifier (argument_list "()" ( ))) ;) })) (expression_statement "iVar2 = *(int *)(*piVar1 + 0xd0);" (assignment_expression "iVar2 = *(int *)(*piVar1 + 0xd0)" identifier = (pointer_expression "*(int *)(*piVar1 + 0xd0)" * (cast_expression "(int *)(*piVar1 + 0xd0)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*piVar1 + 0xd0)" ( (binary_expression "*piVar1 + 0xd0" (pointer_expression "*piVar1" * identifier) + number_literal) ))))) ;) (expression_statement "*(int *)(iVar2 + 0x10) = param_2;" (assignment_expression "*(int *)(iVar2 + 0x10) = param_2" (pointer_expression "*(int *)(iVar2 + 0x10)" * (cast_expression "(int *)(iVar2 + 0x10)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x10)" ( (binary_expression "iVar2 + 0x10" identifier + number_literal) )))) = identifier) ;) (expression_statement "pcVar3 = DAT_0014b204;" (assignment_expression "pcVar3 = DAT_0014b204" identifier = identifier) ;) (if_statement "if (param_2 < 0) {\n    iVar4 = *(int *)(iVar2 + 0x1c) + *(int *)(iVar2 + 0x18);\n    param_2 = FUN_000f5a10(param_2 * -0x400,\n                           ((param_2 >> 0x1f) + (uint)(param_2 != 0)) * -0x400 |\n                           (uint)-param_2 >> 0x16,iVar4,iVar4 >> 0x1f);\n  }" if (parenthesized_expression "(param_2 < 0)" ( (binary_expression "param_2 < 0" identifier < number_literal) )) (compound_statement "{\n    iVar4 = *(int *)(iVar2 + 0x1c) + *(int *)(iVar2 + 0x18);\n    param_2 = FUN_000f5a10(param_2 * -0x400,\n                           ((param_2 >> 0x1f) + (uint)(param_2 != 0)) * -0x400 |\n                           (uint)-param_2 >> 0x16,iVar4,iVar4 >> 0x1f);\n  }" { (expression_statement "iVar4 = *(int *)(iVar2 + 0x1c) + *(int *)(iVar2 + 0x18);" (assignment_expression "iVar4 = *(int *)(iVar2 + 0x1c) + *(int *)(iVar2 + 0x18)" identifier = (binary_expression "*(int *)(iVar2 + 0x1c) + *(int *)(iVar2 + 0x18)" (pointer_expression "*(int *)(iVar2 + 0x1c)" * (cast_expression "(int *)(iVar2 + 0x1c)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x1c)" ( (binary_expression "iVar2 + 0x1c" identifier + number_literal) )))) + (pointer_expression "*(int *)(iVar2 + 0x18)" * (cast_expression "(int *)(iVar2 + 0x18)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x18)" ( (binary_expression "iVar2 + 0x18" identifier + number_literal) )))))) ;) (expression_statement "param_2 = FUN_000f5a10(param_2 * -0x400,\n                           ((param_2 >> 0x1f) + (uint)(param_2 != 0)) * -0x400 |\n                           (uint)-param_2 >> 0x16,iVar4,iVar4 >> 0x1f);" (assignment_expression "param_2 = FUN_000f5a10(param_2 * -0x400,\n                           ((param_2 >> 0x1f) + (uint)(param_2 != 0)) * -0x400 |\n                           (uint)-param_2 >> 0x16,iVar4,iVar4 >> 0x1f)" identifier = (call_expression "FUN_000f5a10(param_2 * -0x400,\n                           ((param_2 >> 0x1f) + (uint)(param_2 != 0)) * -0x400 |\n                           (uint)-param_2 >> 0x16,iVar4,iVar4 >> 0x1f)" identifier (argument_list "(param_2 * -0x400,\n                           ((param_2 >> 0x1f) + (uint)(param_2 != 0)) * -0x400 |\n                           (uint)-param_2 >> 0x16,iVar4,iVar4 >> 0x1f)" ( (binary_expression "param_2 * -0x400" identifier * number_literal) , (binary_expression "((param_2 >> 0x1f) + (uint)(param_2 != 0)) * -0x400 |\n                           (uint)-param_2 >> 0x16" (binary_expression "((param_2 >> 0x1f) + (uint)(param_2 != 0)) * -0x400" (parenthesized_expression "((param_2 >> 0x1f) + (uint)(param_2 != 0))" ( (binary_expression "(param_2 >> 0x1f) + (uint)(param_2 != 0)" (parenthesized_expression "(param_2 >> 0x1f)" ( (binary_expression "param_2 >> 0x1f" identifier >> number_literal) )) + (call_expression "(uint)(param_2 != 0)" (parenthesized_expression "(uint)" ( identifier )) (argument_list "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) )))) )) * number_literal) | (binary_expression "(uint)-param_2 >> 0x16" (binary_expression "(uint)-param_2" (parenthesized_expression "(uint)" ( identifier )) - identifier) >> number_literal)) , identifier , (binary_expression "iVar4 >> 0x1f" identifier >> number_literal) )))) ;) })) (expression_statement "(*pcVar3)(*(undefined4 *)(iVar2 + 0x2c),param_2);" (call_expression "(*pcVar3)(*(undefined4 *)(iVar2 + 0x2c),param_2)" (parenthesized_expression "(*pcVar3)" ( (pointer_expression "*pcVar3" * identifier) )) (argument_list "(*(undefined4 *)(iVar2 + 0x2c),param_2)" ( (pointer_expression "*(undefined4 *)(iVar2 + 0x2c)" * (cast_expression "(undefined4 *)(iVar2 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x2c)" ( (binary_expression "iVar2 + 0x2c" identifier + number_literal) )))) , identifier ))) ;) (if_statement "if (*(char *)(param_1 + 9) != '\0') {\n    FUN_0002cfa0();\n  }" if (parenthesized_expression "(*(char *)(param_1 + 9) != '\0')" ( (binary_expression "*(char *)(param_1 + 9) != '\0'" (pointer_expression "*(char *)(param_1 + 9)" * (cast_expression "(char *)(param_1 + 9)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 9)" ( (binary_expression "param_1 + 9" identifier + number_literal) )))) != (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n    FUN_0002cfa0();\n  }" { (expression_statement "FUN_0002cfa0();" (call_expression "FUN_0002cfa0()" identifier (argument_list "()" ( ))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (declaration TYPE (pointer_declarator * IDENT) ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (expression_statement (assignment_expression IDENT = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))))) ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( (binary_expression IDENT * LIT) , (binary_expression (binary_expression (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT >> LIT) )) + (call_expression (parenthesized_expression ( IDENT )) (argument_list ( (binary_expression IDENT != LIT) )))) )) * LIT) | (binary_expression (binary_expression (parenthesized_expression ( IDENT )) - IDENT) >> LIT)) , IDENT , (binary_expression IDENT >> LIT) )))) ;) })) (expression_statement (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT ))) ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( ))) ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 __regparm3 FUN_0002cfc0(int param_1,int param_2)\n\n{\n  int *piVar1;\n  int iVar2;\n  code *pcVar3;\n  int iVar4;\n  \n  piVar1 = *(int **)(param_1 + 4);\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_0002cb40();\n  }\n  iVar2 = *(int *)(*piVar1 + 0xd0);\n  *(int *)(iVar2 + 0x10) = param_2;\n  pcVar3 = DAT_0014b204;\n  if (param_2 < 0) {\n    iVar4 = *(int *)(iVar2 + 0x1c) + *(int *)(iVar2 + 0x18);\n    param_2 = FUN_000f5a10(param_2 * -0x400,\n                           ((param_2 >> 0x1f) + (uint)(param_2 != 0)) * -0x400 |\n                           (uint)-param_2 >> 0x16,iVar4,iVar4 >> 0x1f);\n  }\n  (*pcVar3)(*(undefined4 *)(iVar2 + 0x2c),param_2);\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_0002cfa0();\n  }\n  return 0;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0002cfc0(int param_1,int param_2)" (identifier "FUN_0002cfc0") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int *piVar1;\n  int iVar2;\n  code *pcVar3;\n  int iVar4;\n  \n  piVar1 = *(int **)(param_1 + 4);\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_0002cb40();\n  }\n  iVar2 = *(int *)(*piVar1 + 0xd0);\n  *(int *)(iVar2 + 0x10) = param_2;\n  pcVar3 = DAT_0014b204;\n  if (param_2 < 0) {\n    iVar4 = *(int *)(iVar2 + 0x1c) + *(int *)(iVar2 + 0x18);\n    param_2 = FUN_000f5a10(param_2 * -0x400,\n                           ((param_2 >> 0x1f) + (uint)(param_2 != 0)) * -0x400 |\n                           (uint)-param_2 >> 0x16,iVar4,iVar4 >> 0x1f);\n  }\n  (*pcVar3)(*(undefined4 *)(iVar2 + 0x2c),param_2);\n  if (*(char *)(param_1 + 9) != '\0') {\n    FUN_0002cfa0();\n  }\n  return 0;\n}" ({ "{") (declaration "int *piVar1;" (primitive_type "int") (pointer_declarator "*piVar1" (* "*") (identifier "piVar1")) (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "code *pcVar3;" (type_identifier "code") (pointer_declarator "*pcVar3" (* "*") (identifier "pcVar3")) (; ";")) (declaration "int iVar4;" (primitive_type "int") (identifier "iVar4") (; ";")) (expression_statement "piVar1 = *(int **)(param_1 + 4);" (assignment_expression "piVar1 = *(int **)(param_1 + 4)" (identifier "piVar1") (= "=") (pointer_expression "*(int **)(param_1 + 4)" (* "*") (cast_expression "(int **)(param_1 + 4)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 4)" (( "(") (binary_expression "param_1 + 4" (identifier "param_1") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (if_statement "if (*(char *)(param_1 + 9) != '\0') {\n    FUN_0002cb40();\n  }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 9) != '\0')" (( "(") (binary_expression "*(char *)(param_1 + 9) != '\0'" (pointer_expression "*(char *)(param_1 + 9)" (* "*") (cast_expression "(char *)(param_1 + 9)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 9)" (( "(") (binary_expression "param_1 + 9" (identifier "param_1") (+ "+") (number_literal "9")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    FUN_0002cb40();\n  }" ({ "{") (expression_statement "FUN_0002cb40();" (call_expression "FUN_0002cb40()" (identifier "FUN_0002cb40") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (expression_statement "iVar2 = *(int *)(*piVar1 + 0xd0);" (assignment_expression "iVar2 = *(int *)(*piVar1 + 0xd0)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(*piVar1 + 0xd0)" (* "*") (cast_expression "(int *)(*piVar1 + 0xd0)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*piVar1 + 0xd0)" (( "(") (binary_expression "*piVar1 + 0xd0" (pointer_expression "*piVar1" (* "*") (identifier "piVar1")) (+ "+") (number_literal "0xd0")) () ")"))))) (; ";")) (expression_statement "*(int *)(iVar2 + 0x10) = param_2;" (assignment_expression "*(int *)(iVar2 + 0x10) = param_2" (pointer_expression "*(int *)(iVar2 + 0x10)" (* "*") (cast_expression "(int *)(iVar2 + 0x10)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x10)" (( "(") (binary_expression "iVar2 + 0x10" (identifier "iVar2") (+ "+") (number_literal "0x10")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "pcVar3 = DAT_0014b204;" (assignment_expression "pcVar3 = DAT_0014b204" (identifier "pcVar3") (= "=") (identifier "DAT_0014b204")) (; ";")) (if_statement "if (param_2 < 0) {\n    iVar4 = *(int *)(iVar2 + 0x1c) + *(int *)(iVar2 + 0x18);\n    param_2 = FUN_000f5a10(param_2 * -0x400,\n                           ((param_2 >> 0x1f) + (uint)(param_2 != 0)) * -0x400 |\n                           (uint)-param_2 >> 0x16,iVar4,iVar4 >> 0x1f);\n  }" (if "if") (parenthesized_expression "(param_2 < 0)" (( "(") (binary_expression "param_2 < 0" (identifier "param_2") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n    iVar4 = *(int *)(iVar2 + 0x1c) + *(int *)(iVar2 + 0x18);\n    param_2 = FUN_000f5a10(param_2 * -0x400,\n                           ((param_2 >> 0x1f) + (uint)(param_2 != 0)) * -0x400 |\n                           (uint)-param_2 >> 0x16,iVar4,iVar4 >> 0x1f);\n  }" ({ "{") (expression_statement "iVar4 = *(int *)(iVar2 + 0x1c) + *(int *)(iVar2 + 0x18);" (assignment_expression "iVar4 = *(int *)(iVar2 + 0x1c) + *(int *)(iVar2 + 0x18)" (identifier "iVar4") (= "=") (binary_expression "*(int *)(iVar2 + 0x1c) + *(int *)(iVar2 + 0x18)" (pointer_expression "*(int *)(iVar2 + 0x1c)" (* "*") (cast_expression "(int *)(iVar2 + 0x1c)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x1c)" (( "(") (binary_expression "iVar2 + 0x1c" (identifier "iVar2") (+ "+") (number_literal "0x1c")) () ")")))) (+ "+") (pointer_expression "*(int *)(iVar2 + 0x18)" (* "*") (cast_expression "(int *)(iVar2 + 0x18)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x18)" (( "(") (binary_expression "iVar2 + 0x18" (identifier "iVar2") (+ "+") (number_literal "0x18")) () ")")))))) (; ";")) (expression_statement "param_2 = FUN_000f5a10(param_2 * -0x400,\n                           ((param_2 >> 0x1f) + (uint)(param_2 != 0)) * -0x400 |\n                           (uint)-param_2 >> 0x16,iVar4,iVar4 >> 0x1f);" (assignment_expression "param_2 = FUN_000f5a10(param_2 * -0x400,\n                           ((param_2 >> 0x1f) + (uint)(param_2 != 0)) * -0x400 |\n                           (uint)-param_2 >> 0x16,iVar4,iVar4 >> 0x1f)" (identifier "param_2") (= "=") (call_expression "FUN_000f5a10(param_2 * -0x400,\n                           ((param_2 >> 0x1f) + (uint)(param_2 != 0)) * -0x400 |\n                           (uint)-param_2 >> 0x16,iVar4,iVar4 >> 0x1f)" (identifier "FUN_000f5a10") (argument_list "(param_2 * -0x400,\n                           ((param_2 >> 0x1f) + (uint)(param_2 != 0)) * -0x400 |\n                           (uint)-param_2 >> 0x16,iVar4,iVar4 >> 0x1f)" (( "(") (binary_expression "param_2 * -0x400" (identifier "param_2") (* "*") (number_literal "-0x400")) (, ",") (binary_expression "((param_2 >> 0x1f) + (uint)(param_2 != 0)) * -0x400 |\n                           (uint)-param_2 >> 0x16" (binary_expression "((param_2 >> 0x1f) + (uint)(param_2 != 0)) * -0x400" (parenthesized_expression "((param_2 >> 0x1f) + (uint)(param_2 != 0))" (( "(") (binary_expression "(param_2 >> 0x1f) + (uint)(param_2 != 0)" (parenthesized_expression "(param_2 >> 0x1f)" (( "(") (binary_expression "param_2 >> 0x1f" (identifier "param_2") (>> ">>") (number_literal "0x1f")) () ")")) (+ "+") (call_expression "(uint)(param_2 != 0)" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (argument_list "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")")))) () ")")) (* "*") (number_literal "-0x400")) (| "|") (binary_expression "(uint)-param_2 >> 0x16" (binary_expression "(uint)-param_2" (parenthesized_expression "(uint)" (( "(") (identifier "uint") () ")")) (- "-") (identifier "param_2")) (>> ">>") (number_literal "0x16"))) (, ",") (identifier "iVar4") (, ",") (binary_expression "iVar4 >> 0x1f" (identifier "iVar4") (>> ">>") (number_literal "0x1f")) () ")")))) (; ";")) (} "}"))) (expression_statement "(*pcVar3)(*(undefined4 *)(iVar2 + 0x2c),param_2);" (call_expression "(*pcVar3)(*(undefined4 *)(iVar2 + 0x2c),param_2)" (parenthesized_expression "(*pcVar3)" (( "(") (pointer_expression "*pcVar3" (* "*") (identifier "pcVar3")) () ")")) (argument_list "(*(undefined4 *)(iVar2 + 0x2c),param_2)" (( "(") (pointer_expression "*(undefined4 *)(iVar2 + 0x2c)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x2c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x2c)" (( "(") (binary_expression "iVar2 + 0x2c" (identifier "iVar2") (+ "+") (number_literal "0x2c")) () ")")))) (, ",") (identifier "param_2") () ")"))) (; ";")) (if_statement "if (*(char *)(param_1 + 9) != '\0') {\n    FUN_0002cfa0();\n  }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 9) != '\0')" (( "(") (binary_expression "*(char *)(param_1 + 9) != '\0'" (pointer_expression "*(char *)(param_1 + 9)" (* "*") (cast_expression "(char *)(param_1 + 9)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 9)" (( "(") (binary_expression "param_1 + 9" (identifier "param_1") (+ "+") (number_literal "9")) () ")")))) (!= "!=") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n    FUN_0002cfa0();\n  }" ({ "{") (expression_statement "FUN_0002cfa0();" (call_expression "FUN_0002cfa0()" (identifier "FUN_0002cfa0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

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

int __regparm3 function_1(type_1 *p,int var_2)

{
  type_2 *pBVar1;
  type_3 *pPVar2;
  type_4 *p_Var3;
  int var_4;
  int mxPage_00;
  
  pBVar1 = p->pBt;
  if (p->sharable != '\0') {
    var_1(p);
  }
  pPVar2 = pBVar1->pPager->pPCache;
  pPVar2->szCache = var_2;
  p_Var3 = sqlite3Config.pcache2.xCachesize;
  if (var_2 < 0) {
    var_4 = pPVar2->szExtra + pPVar2->szPage;
    var_2 = var_3(var_2 * -0x400,
                      ((var_2 >> 0x1f) + (uint)(var_2 != 0)) * -0x400 | (uint)-var_2 >> 0x16,
                      var_4,var_4 >> 0x1f);
  }
  (*p_Var3)(pPVar2->pCache,var_2);
  if (p->sharable != '\0') {
    function_1(p,mxPage_00);
  }
  return 0;
}


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

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

undefined4 __regparm3 MASKED(int param_1,int param_2)

{
  int *piVar1;
  int iVar2;
  code *pcVar3;
  int iVar4;
  
  piVar1 = *(int **)(param_1 + 4);
  if (*(char *)(param_1 + 9) != '\0') {
    FUN_0002cb40();
  }
  iVar2 = *(int *)(*piVar1 + 0xd0);
  *(int *)(iVar2 + 0x10) = param_2;
  pcVar3 = DAT_0014b204;
  if (param_2 < 0) {
    iVar4 = *(int *)(iVar2 + 0x1c) + *(int *)(iVar2 + 0x18);
    param_2 = FUN_000f5a10(param_2 * -0x400,
                           ((param_2 >> 0x1f) + (uint)(param_2 != 0)) * -0x400 |
                           (uint)-param_2 >> 0x16,iVar4,iVar4 >> 0x1f);
  }
  (*pcVar3)(*(undefined4 *)(iVar2 + 0x2c),param_2);
  if (*(char *)(param_1 + 9) != '\0') {
    FUN_0002cfa0();
  }
  return 0;
}

