
int __regparm3 btreeGetPage(BtShared *pBt,Pgno pgno,MemPage **ppPage,int flags)

{
  MemPage *pMVar1;
  u8 *puVar2;
  int iVar3;
  u8 uVar4;
  int in_GS_OFFSET;
  DbPage *pDbPage;
  int local_20;
  
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar3 = (*pBt->pPager->xGet)(pBt->pPager,pgno,&pDbPage,flags);
  if (iVar3 == 0) {
    pMVar1 = (MemPage *)pDbPage->pExtra;
    if (pgno != pMVar1->pgno) {
      puVar2 = (u8 *)pDbPage->pData;
      pMVar1->pDbPage = pDbPage;
      uVar4 = 'd';
      pMVar1->pBt = pBt;
      pMVar1->pgno = pgno;
      pMVar1->aData = puVar2;
      if (pgno != 1) {
        uVar4 = '\0';
      }
      pMVar1->hdrOffset = uVar4;
    }
    *ppPage = pMVar1;
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return iVar3;
  }
                    /* WARNING: Subroutine does not return */
  __stack_chk_fail_local();
}



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

{
  undefined4 uVar1;
  int iVar2;
  undefined1 uVar3;
  int in_GS_OFFSET;
  int local_24;
  int local_20;
  
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar2 = (**(code **)(*param_1 + 200))(*param_1,param_2,&local_24,param_4);
  if (iVar2 == 0) {
    iVar2 = *(int *)(local_24 + 8);
    if (param_2 != *(int *)(iVar2 + 4)) {
      uVar1 = *(undefined4 *)(local_24 + 4);
      *(int *)(iVar2 + 0x48) = local_24;
      uVar3 = 100;
      *(int **)(iVar2 + 0x34) = param_1;
      *(int *)(iVar2 + 4) = param_2;
      *(undefined4 *)(iVar2 + 0x38) = uVar1;
      if (param_2 != 1) {
        uVar3 = 0;
      }
      *(undefined1 *)(iVar2 + 9) = uVar3;
    }
    *param_3 = iVar2;
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000a9ea0();
}


PUSH EBP
PUSH EDI
MOV EDI,EAX
PUSH ESI
PUSH EBX
MOV ESI,EDX
MOV EBP,ECX
SUB ESP,0x1c
MOV EAX,GS:[0x14]
MOV dword ptr [ESP + 0xc],EAX
XOR EAX,EAX
MOV EAX,dword ptr [EDI]
PUSH dword ptr [ESP + 0x30]
LEA EDX,[ESP + 0xc]
PUSH EDX
PUSH ESI
PUSH EAX
CALL dword ptr [EAX + 0xc8]
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0001f604
MOV EDX,dword ptr [ESP + 0x8]
MOV EBX,dword ptr [EDX + 0x8]
CMP ESI,dword ptr [EBX + 0x4]
JZ 0x0001f601
MOV ECX,dword ptr [EDX + 0x4]
CMP ESI,0x1
MOV dword ptr [EBX + 0x48],EDX
MOV EDX,0x64
MOV dword ptr [EBX + 0x34],EDI
MOV dword ptr [EBX + 0x4],ESI
MOV dword ptr [EBX + 0x38],ECX
MOV ECX,0x0
CMOVNZ EDX,ECX
MOV byte ptr [EBX + 0x9],DL
MOV dword ptr [EBP],EBX
MOV EDI,dword ptr [ESP + 0xc]
XOR EDI,dword ptr GS:[0x14]
JNZ 0x0001f619
ADD ESP,0x1c
POP EBX
POP ESI
POP EDI
POP EBP
RET
CALL 0x000a9ea0
(translation_unit "void __regparm3 FUN_0001f5a0(int *param_1,int param_2,int *param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined1 uVar3;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = (**(code **)(*param_1 + 200))(*param_1,param_2,&local_24,param_4);\n  if (iVar2 == 0) {\n    iVar2 = *(int *)(local_24 + 8);\n    if (param_2 != *(int *)(iVar2 + 4)) {\n      uVar1 = *(undefined4 *)(local_24 + 4);\n      *(int *)(iVar2 + 0x48) = local_24;\n      uVar3 = 100;\n      *(int **)(iVar2 + 0x34) = param_1;\n      *(int *)(iVar2 + 4) = param_2;\n      *(undefined4 *)(iVar2 + 0x38) = uVar1;\n      if (param_2 != 1) {\n        uVar3 = 0;\n      }\n      *(undefined1 *)(iVar2 + 9) = uVar3;\n    }\n    *param_3 = iVar2;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000a9ea0();\n}\n\n" (function_definition "void __regparm3 FUN_0001f5a0(int *param_1,int param_2,int *param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined1 uVar3;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = (**(code **)(*param_1 + 200))(*param_1,param_2,&local_24,param_4);\n  if (iVar2 == 0) {\n    iVar2 = *(int *)(local_24 + 8);\n    if (param_2 != *(int *)(iVar2 + 4)) {\n      uVar1 = *(undefined4 *)(local_24 + 4);\n      *(int *)(iVar2 + 0x48) = local_24;\n      uVar3 = 100;\n      *(int **)(iVar2 + 0x34) = param_1;\n      *(int *)(iVar2 + 4) = param_2;\n      *(undefined4 *)(iVar2 + 0x38) = uVar1;\n      if (param_2 != 1) {\n        uVar3 = 0;\n      }\n      *(undefined1 *)(iVar2 + 9) = uVar3;\n    }\n    *param_3 = iVar2;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000a9ea0();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001f5a0(int *param_1,int param_2,int *param_3,undefined4 param_4)" identifier (parameter_list "(int *param_1,int param_2,int *param_3,undefined4 param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  undefined1 uVar3;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = (**(code **)(*param_1 + 200))(*param_1,param_2,&local_24,param_4);\n  if (iVar2 == 0) {\n    iVar2 = *(int *)(local_24 + 8);\n    if (param_2 != *(int *)(iVar2 + 4)) {\n      uVar1 = *(undefined4 *)(local_24 + 4);\n      *(int *)(iVar2 + 0x48) = local_24;\n      uVar3 = 100;\n      *(int **)(iVar2 + 0x34) = param_1;\n      *(int *)(iVar2 + 4) = param_2;\n      *(undefined4 *)(iVar2 + 0x38) = uVar1;\n      if (param_2 != 1) {\n        uVar3 = 0;\n      }\n      *(undefined1 *)(iVar2 + 9) = uVar3;\n    }\n    *param_3 = iVar2;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    /* WARNING: Subroutine does not return */\n  FUN_000a9ea0();\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined1 uVar3;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = (**(code **)(*param_1 + 200))(*param_1,param_2,&local_24,param_4);" (assignment_expression "iVar2 = (**(code **)(*param_1 + 200))(*param_1,param_2,&local_24,param_4)" identifier = (call_expression "(**(code **)(*param_1 + 200))(*param_1,param_2,&local_24,param_4)" (parenthesized_expression "(**(code **)(*param_1 + 200))" ( (pointer_expression "**(code **)(*param_1 + 200)" * (pointer_expression "*(code **)(*param_1 + 200)" * (cast_expression "(code **)(*param_1 + 200)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 200)" ( (binary_expression "*param_1 + 200" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(*param_1,param_2,&local_24,param_4)" ( (pointer_expression "*param_1" * identifier) , identifier , (pointer_expression "&local_24" & identifier) , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n    iVar2 = *(int *)(local_24 + 8);\n    if (param_2 != *(int *)(iVar2 + 4)) {\n      uVar1 = *(undefined4 *)(local_24 + 4);\n      *(int *)(iVar2 + 0x48) = local_24;\n      uVar3 = 100;\n      *(int **)(iVar2 + 0x34) = param_1;\n      *(int *)(iVar2 + 4) = param_2;\n      *(undefined4 *)(iVar2 + 0x38) = uVar1;\n      if (param_2 != 1) {\n        uVar3 = 0;\n      }\n      *(undefined1 *)(iVar2 + 9) = uVar3;\n    }\n    *param_3 = iVar2;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar2 = *(int *)(local_24 + 8);\n    if (param_2 != *(int *)(iVar2 + 4)) {\n      uVar1 = *(undefined4 *)(local_24 + 4);\n      *(int *)(iVar2 + 0x48) = local_24;\n      uVar3 = 100;\n      *(int **)(iVar2 + 0x34) = param_1;\n      *(int *)(iVar2 + 4) = param_2;\n      *(undefined4 *)(iVar2 + 0x38) = uVar1;\n      if (param_2 != 1) {\n        uVar3 = 0;\n      }\n      *(undefined1 *)(iVar2 + 9) = uVar3;\n    }\n    *param_3 = iVar2;\n  }" { (expression_statement "iVar2 = *(int *)(local_24 + 8);" (assignment_expression "iVar2 = *(int *)(local_24 + 8)" identifier = (pointer_expression "*(int *)(local_24 + 8)" * (cast_expression "(int *)(local_24 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_24 + 8)" ( (binary_expression "local_24 + 8" identifier + number_literal) ))))) ;) (if_statement "if (param_2 != *(int *)(iVar2 + 4)) {\n      uVar1 = *(undefined4 *)(local_24 + 4);\n      *(int *)(iVar2 + 0x48) = local_24;\n      uVar3 = 100;\n      *(int **)(iVar2 + 0x34) = param_1;\n      *(int *)(iVar2 + 4) = param_2;\n      *(undefined4 *)(iVar2 + 0x38) = uVar1;\n      if (param_2 != 1) {\n        uVar3 = 0;\n      }\n      *(undefined1 *)(iVar2 + 9) = uVar3;\n    }" if (parenthesized_expression "(param_2 != *(int *)(iVar2 + 4))" ( (binary_expression "param_2 != *(int *)(iVar2 + 4)" identifier != (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) ))))) )) (compound_statement "{\n      uVar1 = *(undefined4 *)(local_24 + 4);\n      *(int *)(iVar2 + 0x48) = local_24;\n      uVar3 = 100;\n      *(int **)(iVar2 + 0x34) = param_1;\n      *(int *)(iVar2 + 4) = param_2;\n      *(undefined4 *)(iVar2 + 0x38) = uVar1;\n      if (param_2 != 1) {\n        uVar3 = 0;\n      }\n      *(undefined1 *)(iVar2 + 9) = uVar3;\n    }" { (expression_statement "uVar1 = *(undefined4 *)(local_24 + 4);" (assignment_expression "uVar1 = *(undefined4 *)(local_24 + 4)" identifier = (pointer_expression "*(undefined4 *)(local_24 + 4)" * (cast_expression "(undefined4 *)(local_24 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_24 + 4)" ( (binary_expression "local_24 + 4" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar2 + 0x48) = local_24;" (assignment_expression "*(int *)(iVar2 + 0x48) = local_24" (pointer_expression "*(int *)(iVar2 + 0x48)" * (cast_expression "(int *)(iVar2 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x48)" ( (binary_expression "iVar2 + 0x48" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar3 = 100;" (assignment_expression "uVar3 = 100" identifier = number_literal) ;) (expression_statement "*(int **)(iVar2 + 0x34) = param_1;" (assignment_expression "*(int **)(iVar2 + 0x34) = param_1" (pointer_expression "*(int **)(iVar2 + 0x34)" * (cast_expression "(int **)(iVar2 + 0x34)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x34)" ( (binary_expression "iVar2 + 0x34" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar2 + 4) = param_2;" (assignment_expression "*(int *)(iVar2 + 4) = param_2" (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x38) = uVar1;" (assignment_expression "*(undefined4 *)(iVar2 + 0x38) = uVar1" (pointer_expression "*(undefined4 *)(iVar2 + 0x38)" * (cast_expression "(undefined4 *)(iVar2 + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x38)" ( (binary_expression "iVar2 + 0x38" identifier + number_literal) )))) = identifier) ;) (if_statement "if (param_2 != 1) {\n        uVar3 = 0;\n      }" if (parenthesized_expression "(param_2 != 1)" ( (binary_expression "param_2 != 1" identifier != number_literal) )) (compound_statement "{\n        uVar3 = 0;\n      }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) })) (expression_statement "*(undefined1 *)(iVar2 + 9) = uVar3;" (assignment_expression "*(undefined1 *)(iVar2 + 9) = uVar3" (pointer_expression "*(undefined1 *)(iVar2 + 9)" * (cast_expression "(undefined1 *)(iVar2 + 9)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 9)" ( (binary_expression "iVar2 + 9" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "*param_3 = iVar2;" (assignment_expression "*param_3 = iVar2" (pointer_expression "*param_3" * identifier) = identifier) ;) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) comment (expression_statement "FUN_000a9ea0();" (call_expression "FUN_000a9ea0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "int __regparm3 btreeGetPage(BtShared *pBt,Pgno pgno,MemPage **ppPage,int flags)\n\n{\n  MemPage *pMVar1;\n  u8 *puVar2;\n  int iVar3;\n  u8 uVar4;\n  int in_GS_OFFSET;\n  DbPage *pDbPage;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = (*pBt->pPager->xGet)(pBt->pPager,pgno,&pDbPage,flags);\n  if (iVar3 == 0) {\n    pMVar1 = (MemPage *)pDbPage->pExtra;\n    if (pgno != pMVar1->pgno) {\n      puVar2 = (u8 *)pDbPage->pData;\n      pMVar1->pDbPage = pDbPage;\n      uVar4 = 'd';\n      pMVar1->pBt = pBt;\n      pMVar1->pgno = pgno;\n      pMVar1->aData = puVar2;\n      if (pgno != 1) {\n        uVar4 = '\0';\n      }\n      pMVar1->hdrOffset = uVar4;\n    }\n    *ppPage = pMVar1;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}\n\n" (function_definition "int __regparm3 btreeGetPage(BtShared *pBt,Pgno pgno,MemPage **ppPage,int flags)\n\n{\n  MemPage *pMVar1;\n  u8 *puVar2;\n  int iVar3;\n  u8 uVar4;\n  int in_GS_OFFSET;\n  DbPage *pDbPage;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = (*pBt->pPager->xGet)(pBt->pPager,pgno,&pDbPage,flags);\n  if (iVar3 == 0) {\n    pMVar1 = (MemPage *)pDbPage->pExtra;\n    if (pgno != pMVar1->pgno) {\n      puVar2 = (u8 *)pDbPage->pData;\n      pMVar1->pDbPage = pDbPage;\n      uVar4 = 'd';\n      pMVar1->pBt = pBt;\n      pMVar1->pgno = pgno;\n      pMVar1->aData = puVar2;\n      if (pgno != 1) {\n        uVar4 = '\0';\n      }\n      pMVar1->hdrOffset = uVar4;\n    }\n    *ppPage = pMVar1;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "btreeGetPage(BtShared *pBt,Pgno pgno,MemPage **ppPage,int flags)" identifier (parameter_list "(BtShared *pBt,Pgno pgno,MemPage **ppPage,int flags)" ( (parameter_declaration "BtShared *pBt" type_identifier (pointer_declarator "*pBt" * identifier)) , (parameter_declaration "Pgno pgno" type_identifier identifier) , (parameter_declaration "MemPage **ppPage" type_identifier (pointer_declarator "**ppPage" * (pointer_declarator "*ppPage" * identifier))) , (parameter_declaration "int flags" primitive_type identifier) ))) (compound_statement "{\n  MemPage *pMVar1;\n  u8 *puVar2;\n  int iVar3;\n  u8 uVar4;\n  int in_GS_OFFSET;\n  DbPage *pDbPage;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar3 = (*pBt->pPager->xGet)(pBt->pPager,pgno,&pDbPage,flags);\n  if (iVar3 == 0) {\n    pMVar1 = (MemPage *)pDbPage->pExtra;\n    if (pgno != pMVar1->pgno) {\n      puVar2 = (u8 *)pDbPage->pData;\n      pMVar1->pDbPage = pDbPage;\n      uVar4 = 'd';\n      pMVar1->pBt = pBt;\n      pMVar1->pgno = pgno;\n      pMVar1->aData = puVar2;\n      if (pgno != 1) {\n        uVar4 = '\0';\n      }\n      pMVar1->hdrOffset = uVar4;\n    }\n    *ppPage = pMVar1;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar3;\n  }\n                    /* WARNING: Subroutine does not return */\n  __stack_chk_fail_local();\n}" { (declaration "MemPage *pMVar1;" type_identifier (pointer_declarator "*pMVar1" * identifier) ;) (declaration "u8 *puVar2;" type_identifier (pointer_declarator "*puVar2" * identifier) ;) (declaration "int iVar3;" primitive_type identifier ;) (declaration "u8 uVar4;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "DbPage *pDbPage;" type_identifier (pointer_declarator "*pDbPage" * identifier) ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar3 = (*pBt->pPager->xGet)(pBt->pPager,pgno,&pDbPage,flags);" (assignment_expression "iVar3 = (*pBt->pPager->xGet)(pBt->pPager,pgno,&pDbPage,flags)" identifier = (call_expression "(*pBt->pPager->xGet)(pBt->pPager,pgno,&pDbPage,flags)" (parenthesized_expression "(*pBt->pPager->xGet)" ( (pointer_expression "*pBt->pPager->xGet" * (field_expression "pBt->pPager->xGet" (field_expression "pBt->pPager" identifier -> field_identifier) -> field_identifier)) )) (argument_list "(pBt->pPager,pgno,&pDbPage,flags)" ( (field_expression "pBt->pPager" identifier -> field_identifier) , identifier , (pointer_expression "&pDbPage" & identifier) , identifier )))) ;) (if_statement "if (iVar3 == 0) {\n    pMVar1 = (MemPage *)pDbPage->pExtra;\n    if (pgno != pMVar1->pgno) {\n      puVar2 = (u8 *)pDbPage->pData;\n      pMVar1->pDbPage = pDbPage;\n      uVar4 = 'd';\n      pMVar1->pBt = pBt;\n      pMVar1->pgno = pgno;\n      pMVar1->aData = puVar2;\n      if (pgno != 1) {\n        uVar4 = '\0';\n      }\n      pMVar1->hdrOffset = uVar4;\n    }\n    *ppPage = pMVar1;\n  }" if (parenthesized_expression "(iVar3 == 0)" ( (binary_expression "iVar3 == 0" identifier == number_literal) )) (compound_statement "{\n    pMVar1 = (MemPage *)pDbPage->pExtra;\n    if (pgno != pMVar1->pgno) {\n      puVar2 = (u8 *)pDbPage->pData;\n      pMVar1->pDbPage = pDbPage;\n      uVar4 = 'd';\n      pMVar1->pBt = pBt;\n      pMVar1->pgno = pgno;\n      pMVar1->aData = puVar2;\n      if (pgno != 1) {\n        uVar4 = '\0';\n      }\n      pMVar1->hdrOffset = uVar4;\n    }\n    *ppPage = pMVar1;\n  }" { (expression_statement "pMVar1 = (MemPage *)pDbPage->pExtra;" (assignment_expression "pMVar1 = (MemPage *)pDbPage->pExtra" identifier = (cast_expression "(MemPage *)pDbPage->pExtra" ( (type_descriptor "MemPage *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pDbPage->pExtra" identifier -> field_identifier))) ;) (if_statement "if (pgno != pMVar1->pgno) {\n      puVar2 = (u8 *)pDbPage->pData;\n      pMVar1->pDbPage = pDbPage;\n      uVar4 = 'd';\n      pMVar1->pBt = pBt;\n      pMVar1->pgno = pgno;\n      pMVar1->aData = puVar2;\n      if (pgno != 1) {\n        uVar4 = '\0';\n      }\n      pMVar1->hdrOffset = uVar4;\n    }" if (parenthesized_expression "(pgno != pMVar1->pgno)" ( (binary_expression "pgno != pMVar1->pgno" identifier != (field_expression "pMVar1->pgno" identifier -> field_identifier)) )) (compound_statement "{\n      puVar2 = (u8 *)pDbPage->pData;\n      pMVar1->pDbPage = pDbPage;\n      uVar4 = 'd';\n      pMVar1->pBt = pBt;\n      pMVar1->pgno = pgno;\n      pMVar1->aData = puVar2;\n      if (pgno != 1) {\n        uVar4 = '\0';\n      }\n      pMVar1->hdrOffset = uVar4;\n    }" { (expression_statement "puVar2 = (u8 *)pDbPage->pData;" (assignment_expression "puVar2 = (u8 *)pDbPage->pData" identifier = (cast_expression "(u8 *)pDbPage->pData" ( (type_descriptor "u8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (field_expression "pDbPage->pData" identifier -> field_identifier))) ;) (expression_statement "pMVar1->pDbPage = pDbPage;" (assignment_expression "pMVar1->pDbPage = pDbPage" (field_expression "pMVar1->pDbPage" identifier -> field_identifier) = identifier) ;) (expression_statement "uVar4 = 'd';" (assignment_expression "uVar4 = 'd'" identifier = (char_literal "'d'" ' character ')) ;) (expression_statement "pMVar1->pBt = pBt;" (assignment_expression "pMVar1->pBt = pBt" (field_expression "pMVar1->pBt" identifier -> field_identifier) = identifier) ;) (expression_statement "pMVar1->pgno = pgno;" (assignment_expression "pMVar1->pgno = pgno" (field_expression "pMVar1->pgno" identifier -> field_identifier) = identifier) ;) (expression_statement "pMVar1->aData = puVar2;" (assignment_expression "pMVar1->aData = puVar2" (field_expression "pMVar1->aData" identifier -> field_identifier) = identifier) ;) (if_statement "if (pgno != 1) {\n        uVar4 = '\0';\n      }" if (parenthesized_expression "(pgno != 1)" ( (binary_expression "pgno != 1" identifier != number_literal) )) (compound_statement "{\n        uVar4 = '\0';\n      }" { (expression_statement "uVar4 = '\0';" (assignment_expression "uVar4 = '\0'" identifier = (char_literal "'\0'" ' escape_sequence ')) ;) })) (expression_statement "pMVar1->hdrOffset = uVar4;" (assignment_expression "pMVar1->hdrOffset = uVar4" (field_expression "pMVar1->hdrOffset" identifier -> field_identifier) = identifier) ;) })) (expression_statement "*ppPage = pMVar1;" (assignment_expression "*ppPage = pMVar1" (pointer_expression "*ppPage" * identifier) = identifier) ;) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return iVar3;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return iVar3;\n  }" { (return_statement "return iVar3;" return identifier ;) })) comment (expression_statement "__stack_chk_fail_local();" (call_expression "__stack_chk_fail_local()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit "void __regparm3 FUN_0001f5a0(int *param_1,int param_2,int *param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined1 uVar3;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = (**(code **)(*param_1 + 200))(*param_1,param_2,&local_24,param_4);\n  if (iVar2 == 0) {\n    iVar2 = *(int *)(local_24 + 8);\n    if (param_2 != *(int *)(iVar2 + 4)) {\n      uVar1 = *(undefined4 *)(local_24 + 4);\n      *(int *)(iVar2 + 0x48) = local_24;\n      uVar3 = 100;\n      *(int **)(iVar2 + 0x34) = param_1;\n      *(int *)(iVar2 + 4) = param_2;\n      *(undefined4 *)(iVar2 + 0x38) = uVar1;\n      if (param_2 != 1) {\n        uVar3 = 0;\n      }\n      *(undefined1 *)(iVar2 + 9) = uVar3;\n    }\n    *param_3 = iVar2;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_000a9ea0();\n}\n\n" (function_definition "void __regparm3 FUN_0001f5a0(int *param_1,int param_2,int *param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined1 uVar3;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = (**(code **)(*param_1 + 200))(*param_1,param_2,&local_24,param_4);\n  if (iVar2 == 0) {\n    iVar2 = *(int *)(local_24 + 8);\n    if (param_2 != *(int *)(iVar2 + 4)) {\n      uVar1 = *(undefined4 *)(local_24 + 4);\n      *(int *)(iVar2 + 0x48) = local_24;\n      uVar3 = 100;\n      *(int **)(iVar2 + 0x34) = param_1;\n      *(int *)(iVar2 + 4) = param_2;\n      *(undefined4 *)(iVar2 + 0x38) = uVar1;\n      if (param_2 != 1) {\n        uVar3 = 0;\n      }\n      *(undefined1 *)(iVar2 + 9) = uVar3;\n    }\n    *param_3 = iVar2;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_000a9ea0();\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0001f5a0(int *param_1,int param_2,int *param_3,undefined4 param_4)" identifier (parameter_list "(int *param_1,int param_2,int *param_3,undefined4 param_4)" ( (parameter_declaration "int *param_1" primitive_type (pointer_declarator "*param_1" * identifier)) , (parameter_declaration "int param_2" primitive_type identifier) , (parameter_declaration "int *param_3" primitive_type (pointer_declarator "*param_3" * identifier)) , (parameter_declaration "undefined4 param_4" type_identifier identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  undefined1 uVar3;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = (**(code **)(*param_1 + 200))(*param_1,param_2,&local_24,param_4);\n  if (iVar2 == 0) {\n    iVar2 = *(int *)(local_24 + 8);\n    if (param_2 != *(int *)(iVar2 + 4)) {\n      uVar1 = *(undefined4 *)(local_24 + 4);\n      *(int *)(iVar2 + 0x48) = local_24;\n      uVar3 = 100;\n      *(int **)(iVar2 + 0x34) = param_1;\n      *(int *)(iVar2 + 4) = param_2;\n      *(undefined4 *)(iVar2 + 0x38) = uVar1;\n      if (param_2 != 1) {\n        uVar3 = 0;\n      }\n      *(undefined1 *)(iVar2 + 9) = uVar3;\n    }\n    *param_3 = iVar2;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_000a9ea0();\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (declaration "undefined1 uVar3;" type_identifier identifier ;) (declaration "int in_GS_OFFSET;" primitive_type identifier ;) (declaration "int local_24;" primitive_type identifier ;) (declaration "int local_20;" primitive_type identifier ;) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" identifier = (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) ;) (expression_statement "iVar2 = (**(code **)(*param_1 + 200))(*param_1,param_2,&local_24,param_4);" (assignment_expression "iVar2 = (**(code **)(*param_1 + 200))(*param_1,param_2,&local_24,param_4)" identifier = (call_expression "(**(code **)(*param_1 + 200))(*param_1,param_2,&local_24,param_4)" (parenthesized_expression "(**(code **)(*param_1 + 200))" ( (pointer_expression "**(code **)(*param_1 + 200)" * (pointer_expression "*(code **)(*param_1 + 200)" * (cast_expression "(code **)(*param_1 + 200)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(*param_1 + 200)" ( (binary_expression "*param_1 + 200" (pointer_expression "*param_1" * identifier) + number_literal) ))))) )) (argument_list "(*param_1,param_2,&local_24,param_4)" ( (pointer_expression "*param_1" * identifier) , identifier , (pointer_expression "&local_24" & identifier) , identifier )))) ;) (if_statement "if (iVar2 == 0) {\n    iVar2 = *(int *)(local_24 + 8);\n    if (param_2 != *(int *)(iVar2 + 4)) {\n      uVar1 = *(undefined4 *)(local_24 + 4);\n      *(int *)(iVar2 + 0x48) = local_24;\n      uVar3 = 100;\n      *(int **)(iVar2 + 0x34) = param_1;\n      *(int *)(iVar2 + 4) = param_2;\n      *(undefined4 *)(iVar2 + 0x38) = uVar1;\n      if (param_2 != 1) {\n        uVar3 = 0;\n      }\n      *(undefined1 *)(iVar2 + 9) = uVar3;\n    }\n    *param_3 = iVar2;\n  }" if (parenthesized_expression "(iVar2 == 0)" ( (binary_expression "iVar2 == 0" identifier == number_literal) )) (compound_statement "{\n    iVar2 = *(int *)(local_24 + 8);\n    if (param_2 != *(int *)(iVar2 + 4)) {\n      uVar1 = *(undefined4 *)(local_24 + 4);\n      *(int *)(iVar2 + 0x48) = local_24;\n      uVar3 = 100;\n      *(int **)(iVar2 + 0x34) = param_1;\n      *(int *)(iVar2 + 4) = param_2;\n      *(undefined4 *)(iVar2 + 0x38) = uVar1;\n      if (param_2 != 1) {\n        uVar3 = 0;\n      }\n      *(undefined1 *)(iVar2 + 9) = uVar3;\n    }\n    *param_3 = iVar2;\n  }" { (expression_statement "iVar2 = *(int *)(local_24 + 8);" (assignment_expression "iVar2 = *(int *)(local_24 + 8)" identifier = (pointer_expression "*(int *)(local_24 + 8)" * (cast_expression "(int *)(local_24 + 8)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_24 + 8)" ( (binary_expression "local_24 + 8" identifier + number_literal) ))))) ;) (if_statement "if (param_2 != *(int *)(iVar2 + 4)) {\n      uVar1 = *(undefined4 *)(local_24 + 4);\n      *(int *)(iVar2 + 0x48) = local_24;\n      uVar3 = 100;\n      *(int **)(iVar2 + 0x34) = param_1;\n      *(int *)(iVar2 + 4) = param_2;\n      *(undefined4 *)(iVar2 + 0x38) = uVar1;\n      if (param_2 != 1) {\n        uVar3 = 0;\n      }\n      *(undefined1 *)(iVar2 + 9) = uVar3;\n    }" if (parenthesized_expression "(param_2 != *(int *)(iVar2 + 4))" ( (binary_expression "param_2 != *(int *)(iVar2 + 4)" identifier != (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) ))))) )) (compound_statement "{\n      uVar1 = *(undefined4 *)(local_24 + 4);\n      *(int *)(iVar2 + 0x48) = local_24;\n      uVar3 = 100;\n      *(int **)(iVar2 + 0x34) = param_1;\n      *(int *)(iVar2 + 4) = param_2;\n      *(undefined4 *)(iVar2 + 0x38) = uVar1;\n      if (param_2 != 1) {\n        uVar3 = 0;\n      }\n      *(undefined1 *)(iVar2 + 9) = uVar3;\n    }" { (expression_statement "uVar1 = *(undefined4 *)(local_24 + 4);" (assignment_expression "uVar1 = *(undefined4 *)(local_24 + 4)" identifier = (pointer_expression "*(undefined4 *)(local_24 + 4)" * (cast_expression "(undefined4 *)(local_24 + 4)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(local_24 + 4)" ( (binary_expression "local_24 + 4" identifier + number_literal) ))))) ;) (expression_statement "*(int *)(iVar2 + 0x48) = local_24;" (assignment_expression "*(int *)(iVar2 + 0x48) = local_24" (pointer_expression "*(int *)(iVar2 + 0x48)" * (cast_expression "(int *)(iVar2 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x48)" ( (binary_expression "iVar2 + 0x48" identifier + number_literal) )))) = identifier) ;) (expression_statement "uVar3 = 100;" (assignment_expression "uVar3 = 100" identifier = number_literal) ;) (expression_statement "*(int **)(iVar2 + 0x34) = param_1;" (assignment_expression "*(int **)(iVar2 + 0x34) = param_1" (pointer_expression "*(int **)(iVar2 + 0x34)" * (cast_expression "(int **)(iVar2 + 0x34)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar2 + 0x34)" ( (binary_expression "iVar2 + 0x34" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(int *)(iVar2 + 4) = param_2;" (assignment_expression "*(int *)(iVar2 + 4) = param_2" (pointer_expression "*(int *)(iVar2 + 4)" * (cast_expression "(int *)(iVar2 + 4)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 4)" ( (binary_expression "iVar2 + 4" identifier + number_literal) )))) = identifier) ;) (expression_statement "*(undefined4 *)(iVar2 + 0x38) = uVar1;" (assignment_expression "*(undefined4 *)(iVar2 + 0x38) = uVar1" (pointer_expression "*(undefined4 *)(iVar2 + 0x38)" * (cast_expression "(undefined4 *)(iVar2 + 0x38)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 0x38)" ( (binary_expression "iVar2 + 0x38" identifier + number_literal) )))) = identifier) ;) (if_statement "if (param_2 != 1) {\n        uVar3 = 0;\n      }" if (parenthesized_expression "(param_2 != 1)" ( (binary_expression "param_2 != 1" identifier != number_literal) )) (compound_statement "{\n        uVar3 = 0;\n      }" { (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" identifier = number_literal) ;) })) (expression_statement "*(undefined1 *)(iVar2 + 9) = uVar3;" (assignment_expression "*(undefined1 *)(iVar2 + 9) = uVar3" (pointer_expression "*(undefined1 *)(iVar2 + 9)" * (cast_expression "(undefined1 *)(iVar2 + 9)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(iVar2 + 9)" ( (binary_expression "iVar2 + 9" identifier + number_literal) )))) = identifier) ;) })) (expression_statement "*param_3 = iVar2;" (assignment_expression "*param_3 = iVar2" (pointer_expression "*param_3" * identifier) = identifier) ;) })) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" if (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" ( (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" identifier == (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" * (cast_expression "(int *)(in_GS_OFFSET + 0x14)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(in_GS_OFFSET + 0x14)" ( (binary_expression "in_GS_OFFSET + 0x14" identifier + number_literal) ))))) )) (compound_statement "{\n    return;\n  }" { (return_statement "return;" return ;) })) (expression_statement "FUN_000a9ea0();" (call_expression "FUN_000a9ea0()" identifier (argument_list "()" ( ))) ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE (pointer_declarator * IDENT)) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (expression_statement (assignment_expression IDENT = (call_expression (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression (pointer_expression * IDENT) + LIT) ))))) )) (argument_list ( (pointer_expression * IDENT) , IDENT , (pointer_expression & IDENT) , IDENT )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_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 = LIT) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_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 (pointer_expression * IDENT) = IDENT) ;) })) (if_statement if (parenthesized_expression ( (binary_expression IDENT == (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (compound_statement { (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( ))) ;) })))
(function_definition "void __regparm3 FUN_0001f5a0(int *param_1,int param_2,int *param_3,undefined4 param_4)\n\n{\n  undefined4 uVar1;\n  int iVar2;\n  undefined1 uVar3;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = (**(code **)(*param_1 + 200))(*param_1,param_2,&local_24,param_4);\n  if (iVar2 == 0) {\n    iVar2 = *(int *)(local_24 + 8);\n    if (param_2 != *(int *)(iVar2 + 4)) {\n      uVar1 = *(undefined4 *)(local_24 + 4);\n      *(int *)(iVar2 + 0x48) = local_24;\n      uVar3 = 100;\n      *(int **)(iVar2 + 0x34) = param_1;\n      *(int *)(iVar2 + 4) = param_2;\n      *(undefined4 *)(iVar2 + 0x38) = uVar1;\n      if (param_2 != 1) {\n        uVar3 = 0;\n      }\n      *(undefined1 *)(iVar2 + 9) = uVar3;\n    }\n    *param_3 = iVar2;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_000a9ea0();\n}" (primitive_type "void") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0001f5a0(int *param_1,int param_2,int *param_3,undefined4 param_4)" (identifier "FUN_0001f5a0") (parameter_list "(int *param_1,int param_2,int *param_3,undefined4 param_4)" (( "(") (parameter_declaration "int *param_1" (primitive_type "int") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) (, ",") (parameter_declaration "int *param_3" (primitive_type "int") (pointer_declarator "*param_3" (* "*") (identifier "param_3"))) (, ",") (parameter_declaration "undefined4 param_4" (type_identifier "undefined4") (identifier "param_4")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  int iVar2;\n  undefined1 uVar3;\n  int in_GS_OFFSET;\n  int local_24;\n  int local_20;\n  \n  local_20 = *(int *)(in_GS_OFFSET + 0x14);\n  iVar2 = (**(code **)(*param_1 + 200))(*param_1,param_2,&local_24,param_4);\n  if (iVar2 == 0) {\n    iVar2 = *(int *)(local_24 + 8);\n    if (param_2 != *(int *)(iVar2 + 4)) {\n      uVar1 = *(undefined4 *)(local_24 + 4);\n      *(int *)(iVar2 + 0x48) = local_24;\n      uVar3 = 100;\n      *(int **)(iVar2 + 0x34) = param_1;\n      *(int *)(iVar2 + 4) = param_2;\n      *(undefined4 *)(iVar2 + 0x38) = uVar1;\n      if (param_2 != 1) {\n        uVar3 = 0;\n      }\n      *(undefined1 *)(iVar2 + 9) = uVar3;\n    }\n    *param_3 = iVar2;\n  }\n  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }\n                    \n  FUN_000a9ea0();\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (declaration "undefined1 uVar3;" (type_identifier "undefined1") (identifier "uVar3") (; ";")) (declaration "int in_GS_OFFSET;" (primitive_type "int") (identifier "in_GS_OFFSET") (; ";")) (declaration "int local_24;" (primitive_type "int") (identifier "local_24") (; ";")) (declaration "int local_20;" (primitive_type "int") (identifier "local_20") (; ";")) (expression_statement "local_20 = *(int *)(in_GS_OFFSET + 0x14);" (assignment_expression "local_20 = *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (= "=") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) (; ";")) (expression_statement "iVar2 = (**(code **)(*param_1 + 200))(*param_1,param_2,&local_24,param_4);" (assignment_expression "iVar2 = (**(code **)(*param_1 + 200))(*param_1,param_2,&local_24,param_4)" (identifier "iVar2") (= "=") (call_expression "(**(code **)(*param_1 + 200))(*param_1,param_2,&local_24,param_4)" (parenthesized_expression "(**(code **)(*param_1 + 200))" (( "(") (pointer_expression "**(code **)(*param_1 + 200)" (* "*") (pointer_expression "*(code **)(*param_1 + 200)" (* "*") (cast_expression "(code **)(*param_1 + 200)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(*param_1 + 200)" (( "(") (binary_expression "*param_1 + 200" (pointer_expression "*param_1" (* "*") (identifier "param_1")) (+ "+") (number_literal "200")) () ")"))))) () ")")) (argument_list "(*param_1,param_2,&local_24,param_4)" (( "(") (pointer_expression "*param_1" (* "*") (identifier "param_1")) (, ",") (identifier "param_2") (, ",") (pointer_expression "&local_24" (& "&") (identifier "local_24")) (, ",") (identifier "param_4") () ")")))) (; ";")) (if_statement "if (iVar2 == 0) {\n    iVar2 = *(int *)(local_24 + 8);\n    if (param_2 != *(int *)(iVar2 + 4)) {\n      uVar1 = *(undefined4 *)(local_24 + 4);\n      *(int *)(iVar2 + 0x48) = local_24;\n      uVar3 = 100;\n      *(int **)(iVar2 + 0x34) = param_1;\n      *(int *)(iVar2 + 4) = param_2;\n      *(undefined4 *)(iVar2 + 0x38) = uVar1;\n      if (param_2 != 1) {\n        uVar3 = 0;\n      }\n      *(undefined1 *)(iVar2 + 9) = uVar3;\n    }\n    *param_3 = iVar2;\n  }" (if "if") (parenthesized_expression "(iVar2 == 0)" (( "(") (binary_expression "iVar2 == 0" (identifier "iVar2") (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar2 = *(int *)(local_24 + 8);\n    if (param_2 != *(int *)(iVar2 + 4)) {\n      uVar1 = *(undefined4 *)(local_24 + 4);\n      *(int *)(iVar2 + 0x48) = local_24;\n      uVar3 = 100;\n      *(int **)(iVar2 + 0x34) = param_1;\n      *(int *)(iVar2 + 4) = param_2;\n      *(undefined4 *)(iVar2 + 0x38) = uVar1;\n      if (param_2 != 1) {\n        uVar3 = 0;\n      }\n      *(undefined1 *)(iVar2 + 9) = uVar3;\n    }\n    *param_3 = iVar2;\n  }" ({ "{") (expression_statement "iVar2 = *(int *)(local_24 + 8);" (assignment_expression "iVar2 = *(int *)(local_24 + 8)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(local_24 + 8)" (* "*") (cast_expression "(int *)(local_24 + 8)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_24 + 8)" (( "(") (binary_expression "local_24 + 8" (identifier "local_24") (+ "+") (number_literal "8")) () ")"))))) (; ";")) (if_statement "if (param_2 != *(int *)(iVar2 + 4)) {\n      uVar1 = *(undefined4 *)(local_24 + 4);\n      *(int *)(iVar2 + 0x48) = local_24;\n      uVar3 = 100;\n      *(int **)(iVar2 + 0x34) = param_1;\n      *(int *)(iVar2 + 4) = param_2;\n      *(undefined4 *)(iVar2 + 0x38) = uVar1;\n      if (param_2 != 1) {\n        uVar3 = 0;\n      }\n      *(undefined1 *)(iVar2 + 9) = uVar3;\n    }" (if "if") (parenthesized_expression "(param_2 != *(int *)(iVar2 + 4))" (( "(") (binary_expression "param_2 != *(int *)(iVar2 + 4)" (identifier "param_2") (!= "!=") (pointer_expression "*(int *)(iVar2 + 4)" (* "*") (cast_expression "(int *)(iVar2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 4)" (( "(") (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) () ")"))))) () ")")) (compound_statement "{\n      uVar1 = *(undefined4 *)(local_24 + 4);\n      *(int *)(iVar2 + 0x48) = local_24;\n      uVar3 = 100;\n      *(int **)(iVar2 + 0x34) = param_1;\n      *(int *)(iVar2 + 4) = param_2;\n      *(undefined4 *)(iVar2 + 0x38) = uVar1;\n      if (param_2 != 1) {\n        uVar3 = 0;\n      }\n      *(undefined1 *)(iVar2 + 9) = uVar3;\n    }" ({ "{") (expression_statement "uVar1 = *(undefined4 *)(local_24 + 4);" (assignment_expression "uVar1 = *(undefined4 *)(local_24 + 4)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined4 *)(local_24 + 4)" (* "*") (cast_expression "(undefined4 *)(local_24 + 4)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(local_24 + 4)" (( "(") (binary_expression "local_24 + 4" (identifier "local_24") (+ "+") (number_literal "4")) () ")"))))) (; ";")) (expression_statement "*(int *)(iVar2 + 0x48) = local_24;" (assignment_expression "*(int *)(iVar2 + 0x48) = local_24" (pointer_expression "*(int *)(iVar2 + 0x48)" (* "*") (cast_expression "(int *)(iVar2 + 0x48)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x48)" (( "(") (binary_expression "iVar2 + 0x48" (identifier "iVar2") (+ "+") (number_literal "0x48")) () ")")))) (= "=") (identifier "local_24")) (; ";")) (expression_statement "uVar3 = 100;" (assignment_expression "uVar3 = 100" (identifier "uVar3") (= "=") (number_literal "100")) (; ";")) (expression_statement "*(int **)(iVar2 + 0x34) = param_1;" (assignment_expression "*(int **)(iVar2 + 0x34) = param_1" (pointer_expression "*(int **)(iVar2 + 0x34)" (* "*") (cast_expression "(int **)(iVar2 + 0x34)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar2 + 0x34)" (( "(") (binary_expression "iVar2 + 0x34" (identifier "iVar2") (+ "+") (number_literal "0x34")) () ")")))) (= "=") (identifier "param_1")) (; ";")) (expression_statement "*(int *)(iVar2 + 4) = param_2;" (assignment_expression "*(int *)(iVar2 + 4) = param_2" (pointer_expression "*(int *)(iVar2 + 4)" (* "*") (cast_expression "(int *)(iVar2 + 4)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 4)" (( "(") (binary_expression "iVar2 + 4" (identifier "iVar2") (+ "+") (number_literal "4")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (expression_statement "*(undefined4 *)(iVar2 + 0x38) = uVar1;" (assignment_expression "*(undefined4 *)(iVar2 + 0x38) = uVar1" (pointer_expression "*(undefined4 *)(iVar2 + 0x38)" (* "*") (cast_expression "(undefined4 *)(iVar2 + 0x38)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 0x38)" (( "(") (binary_expression "iVar2 + 0x38" (identifier "iVar2") (+ "+") (number_literal "0x38")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (if_statement "if (param_2 != 1) {\n        uVar3 = 0;\n      }" (if "if") (parenthesized_expression "(param_2 != 1)" (( "(") (binary_expression "param_2 != 1" (identifier "param_2") (!= "!=") (number_literal "1")) () ")")) (compound_statement "{\n        uVar3 = 0;\n      }" ({ "{") (expression_statement "uVar3 = 0;" (assignment_expression "uVar3 = 0" (identifier "uVar3") (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "*(undefined1 *)(iVar2 + 9) = uVar3;" (assignment_expression "*(undefined1 *)(iVar2 + 9) = uVar3" (pointer_expression "*(undefined1 *)(iVar2 + 9)" (* "*") (cast_expression "(undefined1 *)(iVar2 + 9)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(iVar2 + 9)" (( "(") (binary_expression "iVar2 + 9" (identifier "iVar2") (+ "+") (number_literal "9")) () ")")))) (= "=") (identifier "uVar3")) (; ";")) (} "}"))) (expression_statement "*param_3 = iVar2;" (assignment_expression "*param_3 = iVar2" (pointer_expression "*param_3" (* "*") (identifier "param_3")) (= "=") (identifier "iVar2")) (; ";")) (} "}"))) (if_statement "if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {\n    return;\n  }" (if "if") (parenthesized_expression "(local_20 == *(int *)(in_GS_OFFSET + 0x14))" (( "(") (binary_expression "local_20 == *(int *)(in_GS_OFFSET + 0x14)" (identifier "local_20") (== "==") (pointer_expression "*(int *)(in_GS_OFFSET + 0x14)" (* "*") (cast_expression "(int *)(in_GS_OFFSET + 0x14)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(in_GS_OFFSET + 0x14)" (( "(") (binary_expression "in_GS_OFFSET + 0x14" (identifier "in_GS_OFFSET") (+ "+") (number_literal "0x14")) () ")"))))) () ")")) (compound_statement "{\n    return;\n  }" ({ "{") (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "FUN_000a9ea0();" (call_expression "FUN_000a9ea0()" (identifier "FUN_000a9ea0") (argument_list "()" (( "(") () ")"))) (; ";")) (} "}")))

int __regparm3 function_1(type_1 *pBt,type_2 var_3,type_3 **ppPage,int flags)

{
  type_3 *pMVar1;
  type_4 *puVar2;
  int var_2;
  type_4 uVar4;
  int var_1;
  type_5 *pDbPage;
  int var_4;
  
  var_4 = *(int *)(var_1 + 0x14);
  var_2 = (*pBt->pPager->xGet)(pBt->pPager,var_3,&pDbPage,flags);
  if (var_2 == 0) {
    pMVar1 = (type_3 *)pDbPage->pExtra;
    if (var_3 != pMVar1->var_3) {
      puVar2 = (type_4 *)pDbPage->pData;
      pMVar1->pDbPage = pDbPage;
      uVar4 = 'd';
      pMVar1->pBt = pBt;
      pMVar1->var_3 = var_3;
      pMVar1->aData = puVar2;
      if (var_3 != 1) {
        uVar4 = '\0';
      }
      pMVar1->hdrOffset = uVar4;
    }
    *ppPage = pMVar1;
  }
  if (var_4 == *(int *)(var_1 + 0x14)) {
    return var_2;
  }
                    /* WARNING: Subroutine does not return */
  var_5();
}


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

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

{
  undefined4 uVar1;
  int iVar2;
  undefined1 uVar3;
  int in_GS_OFFSET;
  int local_24;
  int local_20;
  
  local_20 = *(int *)(in_GS_OFFSET + 0x14);
  iVar2 = (**(code **)(*param_1 + 200))(*param_1,param_2,&local_24,param_4);
  if (iVar2 == 0) {
    iVar2 = *(int *)(local_24 + 8);
    if (param_2 != *(int *)(iVar2 + 4)) {
      uVar1 = *(undefined4 *)(local_24 + 4);
      *(int *)(iVar2 + 0x48) = local_24;
      uVar3 = 100;
      *(int **)(iVar2 + 0x34) = param_1;
      *(int *)(iVar2 + 4) = param_2;
      *(undefined4 *)(iVar2 + 0x38) = uVar1;
      if (param_2 != 1) {
        uVar3 = 0;
      }
      *(undefined1 *)(iVar2 + 9) = uVar3;
    }
    *param_3 = iVar2;
  }
  if (local_20 == *(int *)(in_GS_OFFSET + 0x14)) {
    return;
  }
                    /* WARNING: Subroutine does not return */
  FUN_000a9ea0();
}

