
int __regparm3 pagerExclusiveLock(Pager *pPager)

{
  sqlite3_io_methods *psVar1;
  int iVar2;
  
  iVar2 = pagerLockDb(pPager,4);
  if (iVar2 != 0) {
    psVar1 = pPager->fd->pMethods;
    if (psVar1 != (sqlite3_io_methods *)0x0) {
      if (pPager->noLock == '\0') {
        (*psVar1->xUnlock)(pPager->fd,1);
      }
      if (pPager->eLock != '\x05') {
        pPager->eLock = '\x01';
      }
    }
  }
  return iVar2;
}



int __regparm3 FUN_000481a0(int param_1)

{
  int iVar1;
  int iVar2;
  
  iVar2 = FUN_00047f00();
  if (iVar2 != 0) {
    iVar1 = **(int **)(param_1 + 0x3c);
    if (iVar1 != 0) {
      if (*(char *)(param_1 + 0xd) == '\0') {
        (**(code **)(iVar1 + 0x20))(*(int **)(param_1 + 0x3c),1);
      }
      if (*(char *)(param_1 + 0x11) != '\x05') {
        *(undefined1 *)(param_1 + 0x11) = 1;
      }
    }
  }
  return iVar2;
}


PUSH ESI
MOV EDX,0x4
PUSH EBX
MOV EBX,EAX
SUB ESP,0x4
CALL 0x00047f00
MOV ESI,EAX
TEST EAX,EAX
JZ 0x000481d0
MOV EDX,dword ptr [EBX + 0x3c]
MOV EAX,dword ptr [EDX]
TEST EAX,EAX
JZ 0x000481d0
CMP byte ptr [EBX + 0xd],0x0
JZ 0x000481e0
CMP byte ptr [EBX + 0x11],0x5
JZ 0x000481d0
MOV byte ptr [EBX + 0x11],0x1
ADD ESP,0x4
MOV EAX,ESI
POP EBX
POP ESI
RET
SUB ESP,0x8
PUSH 0x1
PUSH EDX
CALL dword ptr [EAX + 0x20]
ADD ESP,0x10
JMP 0x000481c6
(translation_unit "int __regparm3 FUN_000481a0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = FUN_00047f00();\n  if (iVar2 != 0) {\n    iVar1 = **(int **)(param_1 + 0x3c);\n    if (iVar1 != 0) {\n      if (*(char *)(param_1 + 0xd) == '\0') {\n        (**(code **)(iVar1 + 0x20))(*(int **)(param_1 + 0x3c),1);\n      }\n      if (*(char *)(param_1 + 0x11) != '\x05') {\n        *(undefined1 *)(param_1 + 0x11) = 1;\n      }\n    }\n  }\n  return iVar2;\n}\n\n" (function_definition "int __regparm3 FUN_000481a0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = FUN_00047f00();\n  if (iVar2 != 0) {\n    iVar1 = **(int **)(param_1 + 0x3c);\n    if (iVar1 != 0) {\n      if (*(char *)(param_1 + 0xd) == '\0') {\n        (**(code **)(iVar1 + 0x20))(*(int **)(param_1 + 0x3c),1);\n      }\n      if (*(char *)(param_1 + 0x11) != '\x05') {\n        *(undefined1 *)(param_1 + 0x11) = 1;\n      }\n    }\n  }\n  return iVar2;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000481a0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = FUN_00047f00();\n  if (iVar2 != 0) {\n    iVar1 = **(int **)(param_1 + 0x3c);\n    if (iVar1 != 0) {\n      if (*(char *)(param_1 + 0xd) == '\0') {\n        (**(code **)(iVar1 + 0x20))(*(int **)(param_1 + 0x3c),1);\n      }\n      if (*(char *)(param_1 + 0x11) != '\x05') {\n        *(undefined1 *)(param_1 + 0x11) = 1;\n      }\n    }\n  }\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = FUN_00047f00();" (assignment_expression "iVar2 = FUN_00047f00()" identifier = (call_expression "FUN_00047f00()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 != 0) {\n    iVar1 = **(int **)(param_1 + 0x3c);\n    if (iVar1 != 0) {\n      if (*(char *)(param_1 + 0xd) == '\0') {\n        (**(code **)(iVar1 + 0x20))(*(int **)(param_1 + 0x3c),1);\n      }\n      if (*(char *)(param_1 + 0x11) != '\x05') {\n        *(undefined1 *)(param_1 + 0x11) = 1;\n      }\n    }\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = **(int **)(param_1 + 0x3c);\n    if (iVar1 != 0) {\n      if (*(char *)(param_1 + 0xd) == '\0') {\n        (**(code **)(iVar1 + 0x20))(*(int **)(param_1 + 0x3c),1);\n      }\n      if (*(char *)(param_1 + 0x11) != '\x05') {\n        *(undefined1 *)(param_1 + 0x11) = 1;\n      }\n    }\n  }" { (expression_statement "iVar1 = **(int **)(param_1 + 0x3c);" (assignment_expression "iVar1 = **(int **)(param_1 + 0x3c)" identifier = (pointer_expression "**(int **)(param_1 + 0x3c)" * (pointer_expression "*(int **)(param_1 + 0x3c)" * (cast_expression "(int **)(param_1 + 0x3c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))))) ;) (if_statement "if (iVar1 != 0) {\n      if (*(char *)(param_1 + 0xd) == '\0') {\n        (**(code **)(iVar1 + 0x20))(*(int **)(param_1 + 0x3c),1);\n      }\n      if (*(char *)(param_1 + 0x11) != '\x05') {\n        *(undefined1 *)(param_1 + 0x11) = 1;\n      }\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      if (*(char *)(param_1 + 0xd) == '\0') {\n        (**(code **)(iVar1 + 0x20))(*(int **)(param_1 + 0x3c),1);\n      }\n      if (*(char *)(param_1 + 0x11) != '\x05') {\n        *(undefined1 *)(param_1 + 0x11) = 1;\n      }\n    }" { (if_statement "if (*(char *)(param_1 + 0xd) == '\0') {\n        (**(code **)(iVar1 + 0x20))(*(int **)(param_1 + 0x3c),1);\n      }" if (parenthesized_expression "(*(char *)(param_1 + 0xd) == '\0')" ( (binary_expression "*(char *)(param_1 + 0xd) == '\0'" (pointer_expression "*(char *)(param_1 + 0xd)" * (cast_expression "(char *)(param_1 + 0xd)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd)" ( (binary_expression "param_1 + 0xd" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        (**(code **)(iVar1 + 0x20))(*(int **)(param_1 + 0x3c),1);\n      }" { (expression_statement "(**(code **)(iVar1 + 0x20))(*(int **)(param_1 + 0x3c),1);" (call_expression "(**(code **)(iVar1 + 0x20))(*(int **)(param_1 + 0x3c),1)" (parenthesized_expression "(**(code **)(iVar1 + 0x20))" ( (pointer_expression "**(code **)(iVar1 + 0x20)" * (pointer_expression "*(code **)(iVar1 + 0x20)" * (cast_expression "(code **)(iVar1 + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) ))))) )) (argument_list "(*(int **)(param_1 + 0x3c),1)" ( (pointer_expression "*(int **)(param_1 + 0x3c)" * (cast_expression "(int **)(param_1 + 0x3c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))) , number_literal ))) ;) })) (if_statement "if (*(char *)(param_1 + 0x11) != '\x05') {\n        *(undefined1 *)(param_1 + 0x11) = 1;\n      }" if (parenthesized_expression "(*(char *)(param_1 + 0x11) != '\x05')" ( (binary_expression "*(char *)(param_1 + 0x11) != '\x05'" (pointer_expression "*(char *)(param_1 + 0x11)" * (cast_expression "(char *)(param_1 + 0x11)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x11)" ( (binary_expression "param_1 + 0x11" identifier + number_literal) )))) != (char_literal "'\x05'" ' escape_sequence ')) )) (compound_statement "{\n        *(undefined1 *)(param_1 + 0x11) = 1;\n      }" { (expression_statement "*(undefined1 *)(param_1 + 0x11) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x11) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x11)" * (cast_expression "(undefined1 *)(param_1 + 0x11)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x11)" ( (binary_expression "param_1 + 0x11" identifier + number_literal) )))) = number_literal) ;) })) })) })) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "int __regparm3 pagerExclusiveLock(Pager *pPager)\n\n{\n  sqlite3_io_methods *psVar1;\n  int iVar2;\n  \n  iVar2 = pagerLockDb(pPager,4);\n  if (iVar2 != 0) {\n    psVar1 = pPager->fd->pMethods;\n    if (psVar1 != (sqlite3_io_methods *)0x0) {\n      if (pPager->noLock == '\0') {\n        (*psVar1->xUnlock)(pPager->fd,1);\n      }\n      if (pPager->eLock != '\x05') {\n        pPager->eLock = '\x01';\n      }\n    }\n  }\n  return iVar2;\n}\n\n" (function_definition "int __regparm3 pagerExclusiveLock(Pager *pPager)\n\n{\n  sqlite3_io_methods *psVar1;\n  int iVar2;\n  \n  iVar2 = pagerLockDb(pPager,4);\n  if (iVar2 != 0) {\n    psVar1 = pPager->fd->pMethods;\n    if (psVar1 != (sqlite3_io_methods *)0x0) {\n      if (pPager->noLock == '\0') {\n        (*psVar1->xUnlock)(pPager->fd,1);\n      }\n      if (pPager->eLock != '\x05') {\n        pPager->eLock = '\x01';\n      }\n    }\n  }\n  return iVar2;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "pagerExclusiveLock(Pager *pPager)" identifier (parameter_list "(Pager *pPager)" ( (parameter_declaration "Pager *pPager" type_identifier (pointer_declarator "*pPager" * identifier)) ))) (compound_statement "{\n  sqlite3_io_methods *psVar1;\n  int iVar2;\n  \n  iVar2 = pagerLockDb(pPager,4);\n  if (iVar2 != 0) {\n    psVar1 = pPager->fd->pMethods;\n    if (psVar1 != (sqlite3_io_methods *)0x0) {\n      if (pPager->noLock == '\0') {\n        (*psVar1->xUnlock)(pPager->fd,1);\n      }\n      if (pPager->eLock != '\x05') {\n        pPager->eLock = '\x01';\n      }\n    }\n  }\n  return iVar2;\n}" { (declaration "sqlite3_io_methods *psVar1;" type_identifier (pointer_declarator "*psVar1" * identifier) ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = pagerLockDb(pPager,4);" (assignment_expression "iVar2 = pagerLockDb(pPager,4)" identifier = (call_expression "pagerLockDb(pPager,4)" identifier (argument_list "(pPager,4)" ( identifier , number_literal )))) ;) (if_statement "if (iVar2 != 0) {\n    psVar1 = pPager->fd->pMethods;\n    if (psVar1 != (sqlite3_io_methods *)0x0) {\n      if (pPager->noLock == '\0') {\n        (*psVar1->xUnlock)(pPager->fd,1);\n      }\n      if (pPager->eLock != '\x05') {\n        pPager->eLock = '\x01';\n      }\n    }\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    psVar1 = pPager->fd->pMethods;\n    if (psVar1 != (sqlite3_io_methods *)0x0) {\n      if (pPager->noLock == '\0') {\n        (*psVar1->xUnlock)(pPager->fd,1);\n      }\n      if (pPager->eLock != '\x05') {\n        pPager->eLock = '\x01';\n      }\n    }\n  }" { (expression_statement "psVar1 = pPager->fd->pMethods;" (assignment_expression "psVar1 = pPager->fd->pMethods" identifier = (field_expression "pPager->fd->pMethods" (field_expression "pPager->fd" identifier -> field_identifier) -> field_identifier)) ;) (if_statement "if (psVar1 != (sqlite3_io_methods *)0x0) {\n      if (pPager->noLock == '\0') {\n        (*psVar1->xUnlock)(pPager->fd,1);\n      }\n      if (pPager->eLock != '\x05') {\n        pPager->eLock = '\x01';\n      }\n    }" if (parenthesized_expression "(psVar1 != (sqlite3_io_methods *)0x0)" ( (binary_expression "psVar1 != (sqlite3_io_methods *)0x0" identifier != (cast_expression "(sqlite3_io_methods *)0x0" ( (type_descriptor "sqlite3_io_methods *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n      if (pPager->noLock == '\0') {\n        (*psVar1->xUnlock)(pPager->fd,1);\n      }\n      if (pPager->eLock != '\x05') {\n        pPager->eLock = '\x01';\n      }\n    }" { (if_statement "if (pPager->noLock == '\0') {\n        (*psVar1->xUnlock)(pPager->fd,1);\n      }" if (parenthesized_expression "(pPager->noLock == '\0')" ( (binary_expression "pPager->noLock == '\0'" (field_expression "pPager->noLock" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        (*psVar1->xUnlock)(pPager->fd,1);\n      }" { (expression_statement "(*psVar1->xUnlock)(pPager->fd,1);" (call_expression "(*psVar1->xUnlock)(pPager->fd,1)" (parenthesized_expression "(*psVar1->xUnlock)" ( (pointer_expression "*psVar1->xUnlock" * (field_expression "psVar1->xUnlock" identifier -> field_identifier)) )) (argument_list "(pPager->fd,1)" ( (field_expression "pPager->fd" identifier -> field_identifier) , number_literal ))) ;) })) (if_statement "if (pPager->eLock != '\x05') {\n        pPager->eLock = '\x01';\n      }" if (parenthesized_expression "(pPager->eLock != '\x05')" ( (binary_expression "pPager->eLock != '\x05'" (field_expression "pPager->eLock" identifier -> field_identifier) != (char_literal "'\x05'" ' escape_sequence ')) )) (compound_statement "{\n        pPager->eLock = '\x01';\n      }" { (expression_statement "pPager->eLock = '\x01';" (assignment_expression "pPager->eLock = '\x01'" (field_expression "pPager->eLock" identifier -> field_identifier) = (char_literal "'\x01'" ' escape_sequence ')) ;) })) })) })) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit "int __regparm3 FUN_000481a0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = FUN_00047f00();\n  if (iVar2 != 0) {\n    iVar1 = **(int **)(param_1 + 0x3c);\n    if (iVar1 != 0) {\n      if (*(char *)(param_1 + 0xd) == '\0') {\n        (**(code **)(iVar1 + 0x20))(*(int **)(param_1 + 0x3c),1);\n      }\n      if (*(char *)(param_1 + 0x11) != '\x05') {\n        *(undefined1 *)(param_1 + 0x11) = 1;\n      }\n    }\n  }\n  return iVar2;\n}\n\n" (function_definition "int __regparm3 FUN_000481a0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = FUN_00047f00();\n  if (iVar2 != 0) {\n    iVar1 = **(int **)(param_1 + 0x3c);\n    if (iVar1 != 0) {\n      if (*(char *)(param_1 + 0xd) == '\0') {\n        (**(code **)(iVar1 + 0x20))(*(int **)(param_1 + 0x3c),1);\n      }\n      if (*(char *)(param_1 + 0x11) != '\x05') {\n        *(undefined1 *)(param_1 + 0x11) = 1;\n      }\n    }\n  }\n  return iVar2;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_000481a0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = FUN_00047f00();\n  if (iVar2 != 0) {\n    iVar1 = **(int **)(param_1 + 0x3c);\n    if (iVar1 != 0) {\n      if (*(char *)(param_1 + 0xd) == '\0') {\n        (**(code **)(iVar1 + 0x20))(*(int **)(param_1 + 0x3c),1);\n      }\n      if (*(char *)(param_1 + 0x11) != '\x05') {\n        *(undefined1 *)(param_1 + 0x11) = 1;\n      }\n    }\n  }\n  return iVar2;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = FUN_00047f00();" (assignment_expression "iVar2 = FUN_00047f00()" identifier = (call_expression "FUN_00047f00()" identifier (argument_list "()" ( )))) ;) (if_statement "if (iVar2 != 0) {\n    iVar1 = **(int **)(param_1 + 0x3c);\n    if (iVar1 != 0) {\n      if (*(char *)(param_1 + 0xd) == '\0') {\n        (**(code **)(iVar1 + 0x20))(*(int **)(param_1 + 0x3c),1);\n      }\n      if (*(char *)(param_1 + 0x11) != '\x05') {\n        *(undefined1 *)(param_1 + 0x11) = 1;\n      }\n    }\n  }" if (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) (compound_statement "{\n    iVar1 = **(int **)(param_1 + 0x3c);\n    if (iVar1 != 0) {\n      if (*(char *)(param_1 + 0xd) == '\0') {\n        (**(code **)(iVar1 + 0x20))(*(int **)(param_1 + 0x3c),1);\n      }\n      if (*(char *)(param_1 + 0x11) != '\x05') {\n        *(undefined1 *)(param_1 + 0x11) = 1;\n      }\n    }\n  }" { (expression_statement "iVar1 = **(int **)(param_1 + 0x3c);" (assignment_expression "iVar1 = **(int **)(param_1 + 0x3c)" identifier = (pointer_expression "**(int **)(param_1 + 0x3c)" * (pointer_expression "*(int **)(param_1 + 0x3c)" * (cast_expression "(int **)(param_1 + 0x3c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))))) ;) (if_statement "if (iVar1 != 0) {\n      if (*(char *)(param_1 + 0xd) == '\0') {\n        (**(code **)(iVar1 + 0x20))(*(int **)(param_1 + 0x3c),1);\n      }\n      if (*(char *)(param_1 + 0x11) != '\x05') {\n        *(undefined1 *)(param_1 + 0x11) = 1;\n      }\n    }" if (parenthesized_expression "(iVar1 != 0)" ( (binary_expression "iVar1 != 0" identifier != number_literal) )) (compound_statement "{\n      if (*(char *)(param_1 + 0xd) == '\0') {\n        (**(code **)(iVar1 + 0x20))(*(int **)(param_1 + 0x3c),1);\n      }\n      if (*(char *)(param_1 + 0x11) != '\x05') {\n        *(undefined1 *)(param_1 + 0x11) = 1;\n      }\n    }" { (if_statement "if (*(char *)(param_1 + 0xd) == '\0') {\n        (**(code **)(iVar1 + 0x20))(*(int **)(param_1 + 0x3c),1);\n      }" if (parenthesized_expression "(*(char *)(param_1 + 0xd) == '\0')" ( (binary_expression "*(char *)(param_1 + 0xd) == '\0'" (pointer_expression "*(char *)(param_1 + 0xd)" * (cast_expression "(char *)(param_1 + 0xd)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd)" ( (binary_expression "param_1 + 0xd" identifier + number_literal) )))) == (char_literal "'\0'" ' escape_sequence ')) )) (compound_statement "{\n        (**(code **)(iVar1 + 0x20))(*(int **)(param_1 + 0x3c),1);\n      }" { (expression_statement "(**(code **)(iVar1 + 0x20))(*(int **)(param_1 + 0x3c),1);" (call_expression "(**(code **)(iVar1 + 0x20))(*(int **)(param_1 + 0x3c),1)" (parenthesized_expression "(**(code **)(iVar1 + 0x20))" ( (pointer_expression "**(code **)(iVar1 + 0x20)" * (pointer_expression "*(code **)(iVar1 + 0x20)" * (cast_expression "(code **)(iVar1 + 0x20)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(iVar1 + 0x20)" ( (binary_expression "iVar1 + 0x20" identifier + number_literal) ))))) )) (argument_list "(*(int **)(param_1 + 0x3c),1)" ( (pointer_expression "*(int **)(param_1 + 0x3c)" * (cast_expression "(int **)(param_1 + 0x3c)" ( (type_descriptor "int **" primitive_type (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(param_1 + 0x3c)" ( (binary_expression "param_1 + 0x3c" identifier + number_literal) )))) , number_literal ))) ;) })) (if_statement "if (*(char *)(param_1 + 0x11) != '\x05') {\n        *(undefined1 *)(param_1 + 0x11) = 1;\n      }" if (parenthesized_expression "(*(char *)(param_1 + 0x11) != '\x05')" ( (binary_expression "*(char *)(param_1 + 0x11) != '\x05'" (pointer_expression "*(char *)(param_1 + 0x11)" * (cast_expression "(char *)(param_1 + 0x11)" ( (type_descriptor "char *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x11)" ( (binary_expression "param_1 + 0x11" identifier + number_literal) )))) != (char_literal "'\x05'" ' escape_sequence ')) )) (compound_statement "{\n        *(undefined1 *)(param_1 + 0x11) = 1;\n      }" { (expression_statement "*(undefined1 *)(param_1 + 0x11) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x11) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x11)" * (cast_expression "(undefined1 *)(param_1 + 0x11)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x11)" ( (binary_expression "param_1 + 0x11" identifier + number_literal) )))) = number_literal) ;) })) })) })) (return_statement "return iVar2;" return identifier ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (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 IDENT != LIT) )) (compound_statement { (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 (parenthesized_expression ( (pointer_expression * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , 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 (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) })) })) })) (return_statement return IDENT ;) })))
(function_definition "int __regparm3 FUN_000481a0(int param_1)\n\n{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = FUN_00047f00();\n  if (iVar2 != 0) {\n    iVar1 = **(int **)(param_1 + 0x3c);\n    if (iVar1 != 0) {\n      if (*(char *)(param_1 + 0xd) == '\0') {\n        (**(code **)(iVar1 + 0x20))(*(int **)(param_1 + 0x3c),1);\n      }\n      if (*(char *)(param_1 + 0x11) != '\x05') {\n        *(undefined1 *)(param_1 + 0x11) = 1;\n      }\n    }\n  }\n  return iVar2;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_000481a0(int param_1)" (identifier "FUN_000481a0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  int iVar2;\n  \n  iVar2 = FUN_00047f00();\n  if (iVar2 != 0) {\n    iVar1 = **(int **)(param_1 + 0x3c);\n    if (iVar1 != 0) {\n      if (*(char *)(param_1 + 0xd) == '\0') {\n        (**(code **)(iVar1 + 0x20))(*(int **)(param_1 + 0x3c),1);\n      }\n      if (*(char *)(param_1 + 0x11) != '\x05') {\n        *(undefined1 *)(param_1 + 0x11) = 1;\n      }\n    }\n  }\n  return iVar2;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar2 = FUN_00047f00();" (assignment_expression "iVar2 = FUN_00047f00()" (identifier "iVar2") (= "=") (call_expression "FUN_00047f00()" (identifier "FUN_00047f00") (argument_list "()" (( "(") () ")")))) (; ";")) (if_statement "if (iVar2 != 0) {\n    iVar1 = **(int **)(param_1 + 0x3c);\n    if (iVar1 != 0) {\n      if (*(char *)(param_1 + 0xd) == '\0') {\n        (**(code **)(iVar1 + 0x20))(*(int **)(param_1 + 0x3c),1);\n      }\n      if (*(char *)(param_1 + 0x11) != '\x05') {\n        *(undefined1 *)(param_1 + 0x11) = 1;\n      }\n    }\n  }" (if "if") (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = **(int **)(param_1 + 0x3c);\n    if (iVar1 != 0) {\n      if (*(char *)(param_1 + 0xd) == '\0') {\n        (**(code **)(iVar1 + 0x20))(*(int **)(param_1 + 0x3c),1);\n      }\n      if (*(char *)(param_1 + 0x11) != '\x05') {\n        *(undefined1 *)(param_1 + 0x11) = 1;\n      }\n    }\n  }" ({ "{") (expression_statement "iVar1 = **(int **)(param_1 + 0x3c);" (assignment_expression "iVar1 = **(int **)(param_1 + 0x3c)" (identifier "iVar1") (= "=") (pointer_expression "**(int **)(param_1 + 0x3c)" (* "*") (pointer_expression "*(int **)(param_1 + 0x3c)" (* "*") (cast_expression "(int **)(param_1 + 0x3c)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x3c)" (( "(") (binary_expression "param_1 + 0x3c" (identifier "param_1") (+ "+") (number_literal "0x3c")) () ")")))))) (; ";")) (if_statement "if (iVar1 != 0) {\n      if (*(char *)(param_1 + 0xd) == '\0') {\n        (**(code **)(iVar1 + 0x20))(*(int **)(param_1 + 0x3c),1);\n      }\n      if (*(char *)(param_1 + 0x11) != '\x05') {\n        *(undefined1 *)(param_1 + 0x11) = 1;\n      }\n    }" (if "if") (parenthesized_expression "(iVar1 != 0)" (( "(") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      if (*(char *)(param_1 + 0xd) == '\0') {\n        (**(code **)(iVar1 + 0x20))(*(int **)(param_1 + 0x3c),1);\n      }\n      if (*(char *)(param_1 + 0x11) != '\x05') {\n        *(undefined1 *)(param_1 + 0x11) = 1;\n      }\n    }" ({ "{") (if_statement "if (*(char *)(param_1 + 0xd) == '\0') {\n        (**(code **)(iVar1 + 0x20))(*(int **)(param_1 + 0x3c),1);\n      }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0xd) == '\0')" (( "(") (binary_expression "*(char *)(param_1 + 0xd) == '\0'" (pointer_expression "*(char *)(param_1 + 0xd)" (* "*") (cast_expression "(char *)(param_1 + 0xd)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xd)" (( "(") (binary_expression "param_1 + 0xd" (identifier "param_1") (+ "+") (number_literal "0xd")) () ")")))) (== "==") (char_literal "'\0'" (' "'") (escape_sequence "\0") (' "'"))) () ")")) (compound_statement "{\n        (**(code **)(iVar1 + 0x20))(*(int **)(param_1 + 0x3c),1);\n      }" ({ "{") (expression_statement "(**(code **)(iVar1 + 0x20))(*(int **)(param_1 + 0x3c),1);" (call_expression "(**(code **)(iVar1 + 0x20))(*(int **)(param_1 + 0x3c),1)" (parenthesized_expression "(**(code **)(iVar1 + 0x20))" (( "(") (pointer_expression "**(code **)(iVar1 + 0x20)" (* "*") (pointer_expression "*(code **)(iVar1 + 0x20)" (* "*") (cast_expression "(code **)(iVar1 + 0x20)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(iVar1 + 0x20)" (( "(") (binary_expression "iVar1 + 0x20" (identifier "iVar1") (+ "+") (number_literal "0x20")) () ")"))))) () ")")) (argument_list "(*(int **)(param_1 + 0x3c),1)" (( "(") (pointer_expression "*(int **)(param_1 + 0x3c)" (* "*") (cast_expression "(int **)(param_1 + 0x3c)" (( "(") (type_descriptor "int **" (primitive_type "int") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(param_1 + 0x3c)" (( "(") (binary_expression "param_1 + 0x3c" (identifier "param_1") (+ "+") (number_literal "0x3c")) () ")")))) (, ",") (number_literal "1") () ")"))) (; ";")) (} "}"))) (if_statement "if (*(char *)(param_1 + 0x11) != '\x05') {\n        *(undefined1 *)(param_1 + 0x11) = 1;\n      }" (if "if") (parenthesized_expression "(*(char *)(param_1 + 0x11) != '\x05')" (( "(") (binary_expression "*(char *)(param_1 + 0x11) != '\x05'" (pointer_expression "*(char *)(param_1 + 0x11)" (* "*") (cast_expression "(char *)(param_1 + 0x11)" (( "(") (type_descriptor "char *" (primitive_type "char") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x11)" (( "(") (binary_expression "param_1 + 0x11" (identifier "param_1") (+ "+") (number_literal "0x11")) () ")")))) (!= "!=") (char_literal "'\x05'" (' "'") (escape_sequence "\x05") (' "'"))) () ")")) (compound_statement "{\n        *(undefined1 *)(param_1 + 0x11) = 1;\n      }" ({ "{") (expression_statement "*(undefined1 *)(param_1 + 0x11) = 1;" (assignment_expression "*(undefined1 *)(param_1 + 0x11) = 1" (pointer_expression "*(undefined1 *)(param_1 + 0x11)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0x11)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x11)" (( "(") (binary_expression "param_1 + 0x11" (identifier "param_1") (+ "+") (number_literal "0x11")) () ")")))) (= "=") (number_literal "1")) (; ";")) (} "}"))) (} "}"))) (} "}"))) (return_statement "return iVar2;" (return "return") (identifier "iVar2") (; ";")) (} "}")))

int __regparm3 function_1(type_1 *pPager)

{
  type_2 *var_3;
  int var_2;
  
  var_2 = var_1(pPager,4);
  if (var_2 != 0) {
    var_3 = pPager->fd->pMethods;
    if (var_3 != (type_2 *)0x0) {
      if (pPager->noLock == '\0') {
        (*var_3->xUnlock)(pPager->fd,1);
      }
      if (pPager->eLock != '\x05') {
        pPager->eLock = '\x01';
      }
    }
  }
  return var_2;
}


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

int __regparm3 MASKED(int param_1)

{
  int iVar1;
  int iVar2;
  
  iVar2 = FUN_00047f00();
  if (iVar2 != 0) {
    iVar1 = **(int **)(param_1 + 0x3c);
    if (iVar1 != 0) {
      if (*(char *)(param_1 + 0xd) == '\0') {
        (**(code **)(iVar1 + 0x20))(*(int **)(param_1 + 0x3c),1);
      }
      if (*(char *)(param_1 + 0x11) != '\x05') {
        *(undefined1 *)(param_1 + 0x11) = 1;
      }
    }
  }
  return iVar2;
}

