
/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

DbPage * __regparm3 sqlite3PagerLookup(Pager *pPager,Pgno pgno)

{
  sqlite3_pcache_page *pPage;
  PgHdr *pPVar1;
  
  pPage = (*sqlite3Config.pcache2.xFetch)((sqlite3_pcache *)pPager->pVfs->xDlError,pgno,0);
  if (pPage != (sqlite3_pcache_page *)0x0) {
    pPVar1 = sqlite3PcacheFetchFinish((PCache *)pPager->pVfs,pgno,pPage);
    return pPVar1;
  }
  return (DbPage *)0x0;
}



/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

undefined4 __regparm3 FUN_0002a8a0(int *param_1,undefined4 param_2)

{
  int iVar1;
  undefined4 uVar2;
  
  iVar1 = (*DAT_0014920c)(*(undefined4 *)(*param_1 + 0x2c),param_2,0);
  if (iVar1 != 0) {
    uVar2 = FUN_00020910();
    return uVar2;
  }
  return 0;
}


CALL 0x000f41e8
ADD ECX,0x11e62f
PUSH ESI
MOV ESI,EDX
PUSH EBX
MOV EBX,EAX
SUB ESP,0x8
PUSH 0x0
PUSH EDX
MOV EAX,dword ptr [EAX]
PUSH dword ptr [EAX + 0x2c]
CALL dword ptr [ECX + 0x338]
ADD ESP,0x10
TEST EAX,EAX
JZ 0x0002a8e0
MOV ECX,EAX
MOV EAX,dword ptr [EBX]
ADD ESP,0x4
MOV EDX,ESI
POP EBX
POP ESI
JMP 0x00020910
ADD ESP,0x4
XOR EAX,EAX
POP EBX
POP ESI
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */\n\nundefined4 __regparm3 FUN_0002a8a0(int *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = (*DAT_0014920c)(*(undefined4 *)(*param_1 + 0x2c),param_2,0);\n  if (iVar1 != 0) {\n    uVar2 = FUN_00020910();\n    return uVar2;\n  }\n  return 0;\n}\n\n" comment (function_definition "undefined4 __regparm3 FUN_0002a8a0(int *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = (*DAT_0014920c)(*(undefined4 *)(*param_1 + 0x2c),param_2,0);\n  if (iVar1 != 0) {\n    uVar2 = FUN_00020910();\n    return uVar2;\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0002a8a0(int *param_1,undefined4 param_2)" identifier (parameter_list "(int *param_1,undefined4 param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = (*DAT_0014920c)(*(undefined4 *)(*param_1 + 0x2c),param_2,0);\n  if (iVar1 != 0) {\n    uVar2 = FUN_00020910();\n    return uVar2;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = (*DAT_0014920c)(*(undefined4 *)(*param_1 + 0x2c),param_2,0);" (assignment_expression "iVar1 = (*DAT_0014920c)(*(undefined4 *)(*param_1 + 0x2c),param_2,0)" identifier = (call_expression "(*DAT_0014920c)(*(undefined4 *)(*param_1 + 0x2c),param_2,0)" (parenthesized_expression "(*DAT_0014920c)" ( (pointer_expression "*DAT_0014920c" * identifier) )) (argument_list "(*(undefined4 *)(*param_1 + 0x2c),param_2,0)" ( (pointer_expression "*(undefined4 *)(*param_1 + 0x2c)" * (cast_expression "(undefined4 *)(*param_1 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x2c)" ( (binary_expression "*param_1 + 0x2c" (pointer_expression "*param_1" * identifier) + number_literal) )))) , identifier , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n    uVar2 = FUN_00020910();\n    return uVar2;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar2 = FUN_00020910();\n    return uVar2;\n  }" { (expression_statement "uVar2 = FUN_00020910();" (assignment_expression "uVar2 = FUN_00020910()" identifier = (call_expression "FUN_00020910()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */\n\nDbPage * __regparm3 sqlite3PagerLookup(Pager *pPager,Pgno pgno)\n\n{\n  sqlite3_pcache_page *pPage;\n  PgHdr *pPVar1;\n  \n  pPage = (*sqlite3Config.pcache2.xFetch)((sqlite3_pcache *)pPager->pVfs->xDlError,pgno,0);\n  if (pPage != (sqlite3_pcache_page *)0x0) {\n    pPVar1 = sqlite3PcacheFetchFinish((PCache *)pPager->pVfs,pgno,pPage);\n    return pPVar1;\n  }\n  return (DbPage *)0x0;\n}\n\n" comment (ERROR "DbPage * __regparm3 sqlite3PagerLookup(Pager *pPager,Pgno pgno)" (binary_expression "DbPage * __regparm3 sqlite3PagerLookup(Pager *pPager,Pgno pgno)" identifier * (ERROR "__regparm3" identifier) (call_expression "sqlite3PagerLookup(Pager *pPager,Pgno pgno)" identifier (argument_list "(Pager *pPager,Pgno pgno)" ( (binary_expression "Pager *pPager" identifier * identifier) , identifier (ERROR "pgno" identifier) ))))) (compound_statement "{\n  sqlite3_pcache_page *pPage;\n  PgHdr *pPVar1;\n  \n  pPage = (*sqlite3Config.pcache2.xFetch)((sqlite3_pcache *)pPager->pVfs->xDlError,pgno,0);\n  if (pPage != (sqlite3_pcache_page *)0x0) {\n    pPVar1 = sqlite3PcacheFetchFinish((PCache *)pPager->pVfs,pgno,pPage);\n    return pPVar1;\n  }\n  return (DbPage *)0x0;\n}" { (declaration "sqlite3_pcache_page *pPage;" type_identifier (pointer_declarator "*pPage" * identifier) ;) (declaration "PgHdr *pPVar1;" type_identifier (pointer_declarator "*pPVar1" * identifier) ;) (expression_statement "pPage = (*sqlite3Config.pcache2.xFetch)((sqlite3_pcache *)pPager->pVfs->xDlError,pgno,0);" (assignment_expression "pPage = (*sqlite3Config.pcache2.xFetch)((sqlite3_pcache *)pPager->pVfs->xDlError,pgno,0)" identifier = (call_expression "(*sqlite3Config.pcache2.xFetch)((sqlite3_pcache *)pPager->pVfs->xDlError,pgno,0)" (parenthesized_expression "(*sqlite3Config.pcache2.xFetch)" ( (pointer_expression "*sqlite3Config.pcache2.xFetch" * (field_expression "sqlite3Config.pcache2.xFetch" (field_expression "sqlite3Config.pcache2" identifier . field_identifier) . field_identifier)) )) (argument_list "((sqlite3_pcache *)pPager->pVfs->xDlError,pgno,0)" ( (cast_expression "(sqlite3_pcache *)pPager->pVfs->xDlError" ( (type_descriptor "sqlite3_pcache *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pPager->pVfs->xDlError" (field_expression "pPager->pVfs" identifier -> field_identifier) -> field_identifier)) , identifier , number_literal )))) ;) (if_statement "if (pPage != (sqlite3_pcache_page *)0x0) {\n    pPVar1 = sqlite3PcacheFetchFinish((PCache *)pPager->pVfs,pgno,pPage);\n    return pPVar1;\n  }" if (parenthesized_expression "(pPage != (sqlite3_pcache_page *)0x0)" ( (binary_expression "pPage != (sqlite3_pcache_page *)0x0" identifier != (cast_expression "(sqlite3_pcache_page *)0x0" ( (type_descriptor "sqlite3_pcache_page *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    pPVar1 = sqlite3PcacheFetchFinish((PCache *)pPager->pVfs,pgno,pPage);\n    return pPVar1;\n  }" { (expression_statement "pPVar1 = sqlite3PcacheFetchFinish((PCache *)pPager->pVfs,pgno,pPage);" (assignment_expression "pPVar1 = sqlite3PcacheFetchFinish((PCache *)pPager->pVfs,pgno,pPage)" identifier = (call_expression "sqlite3PcacheFetchFinish((PCache *)pPager->pVfs,pgno,pPage)" identifier (argument_list "((PCache *)pPager->pVfs,pgno,pPage)" ( (cast_expression "(PCache *)pPager->pVfs" ( (type_descriptor "PCache *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pPager->pVfs" identifier -> field_identifier)) , identifier , identifier )))) ;) (return_statement "return pPVar1;" return identifier ;) })) (return_statement "return (DbPage *)0x0;" return (cast_expression "(DbPage *)0x0" ( (type_descriptor "DbPage *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal) ;) }))
(translation_unit "undefined4 __regparm3 FUN_0002a8a0(int *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = (*DAT_0014920c)(*(undefined4 *)(*param_1 + 0x2c),param_2,0);\n  if (iVar1 != 0) {\n    uVar2 = FUN_00020910();\n    return uVar2;\n  }\n  return 0;\n}\n\n" (function_definition "undefined4 __regparm3 FUN_0002a8a0(int *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = (*DAT_0014920c)(*(undefined4 *)(*param_1 + 0x2c),param_2,0);\n  if (iVar1 != 0) {\n    uVar2 = FUN_00020910();\n    return uVar2;\n  }\n  return 0;\n}" type_identifier (ERROR "__regparm3" identifier) (function_declarator "FUN_0002a8a0(int *param_1,undefined4 param_2)" identifier (parameter_list "(int *param_1,undefined4 param_2)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = (*DAT_0014920c)(*(undefined4 *)(*param_1 + 0x2c),param_2,0);\n  if (iVar1 != 0) {\n    uVar2 = FUN_00020910();\n    return uVar2;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "undefined4 uVar2;" type_identifier identifier ;) (expression_statement "iVar1 = (*DAT_0014920c)(*(undefined4 *)(*param_1 + 0x2c),param_2,0);" (assignment_expression "iVar1 = (*DAT_0014920c)(*(undefined4 *)(*param_1 + 0x2c),param_2,0)" identifier = (call_expression "(*DAT_0014920c)(*(undefined4 *)(*param_1 + 0x2c),param_2,0)" (parenthesized_expression "(*DAT_0014920c)" ( (pointer_expression "*DAT_0014920c" * identifier) )) (argument_list "(*(undefined4 *)(*param_1 + 0x2c),param_2,0)" ( (pointer_expression "*(undefined4 *)(*param_1 + 0x2c)" * (cast_expression "(undefined4 *)(*param_1 + 0x2c)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*param_1 + 0x2c)" ( (binary_expression "*param_1 + 0x2c" (pointer_expression "*param_1" * identifier) + number_literal) )))) , identifier , number_literal )))) ;) (if_statement "if (iVar1 != 0) {\n    uVar2 = FUN_00020910();\n    return uVar2;\n  }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar2 = FUN_00020910();\n    return uVar2;\n  }" { (expression_statement "uVar2 = FUN_00020910();" (assignment_expression "uVar2 = FUN_00020910()" identifier = (call_expression "FUN_00020910()" identifier (argument_list "()" ( )))) ;) (return_statement "return uVar2;" return identifier ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * IDENT) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) )))) , IDENT , LIT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (return_statement return IDENT ;) })) (return_statement return LIT ;) })))
(function_definition "undefined4 __regparm3 FUN_0002a8a0(int *param_1,undefined4 param_2)\n\n{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = (*DAT_0014920c)(*(undefined4 *)(*param_1 + 0x2c),param_2,0);\n  if (iVar1 != 0) {\n    uVar2 = FUN_00020910();\n    return uVar2;\n  }\n  return 0;\n}" (type_identifier "undefined4") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0002a8a0(int *param_1,undefined4 param_2)" (identifier "FUN_0002a8a0") (parameter_list "(int *param_1,undefined4 param_2)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  undefined4 uVar2;\n  \n  iVar1 = (*DAT_0014920c)(*(undefined4 *)(*param_1 + 0x2c),param_2,0);\n  if (iVar1 != 0) {\n    uVar2 = FUN_00020910();\n    return uVar2;\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "undefined4 uVar2;" (type_identifier "undefined4") (identifier "uVar2") (; ";")) (expression_statement "iVar1 = (*DAT_0014920c)(*(undefined4 *)(*param_1 + 0x2c),param_2,0);" (assignment_expression "iVar1 = (*DAT_0014920c)(*(undefined4 *)(*param_1 + 0x2c),param_2,0)" (identifier "iVar1") (= "=") (call_expression "(*DAT_0014920c)(*(undefined4 *)(*param_1 + 0x2c),param_2,0)" (parenthesized_expression "(*DAT_0014920c)" (( "(") (pointer_expression "*DAT_0014920c" (* "*") (identifier "DAT_0014920c")) () ")")) (argument_list "(*(undefined4 *)(*param_1 + 0x2c),param_2,0)" (( "(") (pointer_expression "*(undefined4 *)(*param_1 + 0x2c)" (* "*") (cast_expression "(undefined4 *)(*param_1 + 0x2c)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*param_1 + 0x2c)" (( "(") (binary_expression "*param_1 + 0x2c" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "0x2c")) () ")")))) (, ",") (identifier "param_2") (, ",") (number_literal "0") () ")")))) (; ";")) (if_statement "if (iVar1 != 0) {\n    uVar2 = FUN_00020910();\n    return uVar2;\n  }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar2 = FUN_00020910();\n    return uVar2;\n  }" ({ "{") (expression_statement "uVar2 = FUN_00020910();" (assignment_expression "uVar2 = FUN_00020910()" (identifier "uVar2") (= "=") (call_expression "FUN_00020910()" (identifier "FUN_00020910") (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return uVar2;" (return "return") (identifier "uVar2") (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

type_5 * __regparm3 sqlite3PagerLookup(Pager *pPager,Pgno pgno)

{
  type_1 *var_1;
  type_2 *pPVar1;
  
  var_1 = (*sqlite3Config.pcache2.xFetch)((type_3 *)pPager->pVfs->xDlError,pgno,0);
  if (var_1 != (type_1 *)0x0) {
    pPVar1 = var_2((type_4 *)pPager->pVfs,pgno,var_1);
    return pPVar1;
  }
  return (type_5 *)0x0;
}


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

/* WARNING: Function: __i686.get_pc_thunk.cx replaced with injection: get_pc_thunk_cx */

undefined4 __regparm3 MASKED(int *param_1,undefined4 param_2)

{
  int iVar1;
  undefined4 uVar2;
  
  iVar1 = (*DAT_0014920c)(*(undefined4 *)(*param_1 + 0x2c),param_2,0);
  if (iVar1 != 0) {
    uVar2 = FUN_00020910();
    return uVar2;
  }
  return 0;
}

