
int __regparm3 pagerLockDb(Pager *pPager,int eLock)

{
  int iVar1;
  
  if ((pPager->noLock == '\0') &&
     (iVar1 = (*pPager->fd->pMethods->xLock)(pPager->fd,eLock), iVar1 != 0)) {
    return iVar1;
  }
  if ((pPager->eLock != '\x05') || (eLock == 4)) {
    pPager->eLock = (u8)eLock;
  }
  return 0;
}



int __regparm3 FUN_0002bf00(int param_1,int param_2)

{
  int iVar1;
  
  if ((*(char *)(param_1 + 0xd) == '\0') &&
     (iVar1 = (**(code **)(**(int **)(param_1 + 0x3c) + 0x1c))(*(int **)(param_1 + 0x3c),param_2),
     iVar1 != 0)) {
    return iVar1;
  }
  if ((*(char *)(param_1 + 0x11) != '\x05') || (param_2 == 4)) {
    *(char *)(param_1 + 0x11) = (char)param_2;
  }
  return 0;
}


PUSH ESI
MOV ESI,EDX
PUSH EBX
MOV EBX,EAX
SUB ESP,0x4
CMP byte ptr [EAX + 0xd],0x0
JNZ 0x0002bf23
MOV EAX,dword ptr [EAX + 0x3c]
SUB ESP,0x8
MOV EDX,dword ptr [EAX]
PUSH ESI
PUSH EAX
CALL dword ptr [EDX + 0x1c]
ADD ESP,0x10
TEST EAX,EAX
JNZ 0x0002bf35
CMP byte ptr [EBX + 0x11],0x5
JNZ 0x0002bf2e
CMP ESI,0x4
JNZ 0x0002bf33
MOV EAX,ESI
MOV byte ptr [EBX + 0x11],AL
XOR EAX,EAX
ADD ESP,0x4
POP EBX
POP ESI
RET
(translation_unit "int __regparm3 FUN_0002bf00(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if ((*(char *)(param_1 + 0xd) == '\0') &&\n     (iVar1 = (**(code **)(**(int **)(param_1 + 0x3c) + 0x1c))(*(int **)(param_1 + 0x3c),param_2),\n     iVar1 != 0)) {\n    return iVar1;\n  }\n  if ((*(char *)(param_1 + 0x11) != '\x05') || (param_2 == 4)) {\n    *(char *)(param_1 + 0x11) = (char)param_2;\n  }\n  return 0;\n}\n\n" (function_definition "int __regparm3 FUN_0002bf00(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if ((*(char *)(param_1 + 0xd) == '\0') &&\n     (iVar1 = (**(code **)(**(int **)(param_1 + 0x3c) + 0x1c))(*(int **)(param_1 + 0x3c),param_2),\n     iVar1 != 0)) {\n    return iVar1;\n  }\n  if ((*(char *)(param_1 + 0x11) != '\x05') || (param_2 == 4)) {\n    *(char *)(param_1 + 0x11) = (char)param_2;\n  }\n  return 0;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0002bf00(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if ((*(char *)(param_1 + 0xd) == '\0') &&\n     (iVar1 = (**(code **)(**(int **)(param_1 + 0x3c) + 0x1c))(*(int **)(param_1 + 0x3c),param_2),\n     iVar1 != 0)) {\n    return iVar1;\n  }\n  if ((*(char *)(param_1 + 0x11) != '\x05') || (param_2 == 4)) {\n    *(char *)(param_1 + 0x11) = (char)param_2;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if ((*(char *)(param_1 + 0xd) == '\0') &&\n     (iVar1 = (**(code **)(**(int **)(param_1 + 0x3c) + 0x1c))(*(int **)(param_1 + 0x3c),param_2),\n     iVar1 != 0)) {\n    return iVar1;\n  }" if (parenthesized_expression "((*(char *)(param_1 + 0xd) == '\0') &&\n     (iVar1 = (**(code **)(**(int **)(param_1 + 0x3c) + 0x1c))(*(int **)(param_1 + 0x3c),param_2),\n     iVar1 != 0))" ( (binary_expression "(*(char *)(param_1 + 0xd) == '\0') &&\n     (iVar1 = (**(code **)(**(int **)(param_1 + 0x3c) + 0x1c))(*(int **)(param_1 + 0x3c),param_2),\n     iVar1 != 0)" (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 ')) )) && (parenthesized_expression "(iVar1 = (**(code **)(**(int **)(param_1 + 0x3c) + 0x1c))(*(int **)(param_1 + 0x3c),param_2),\n     iVar1 != 0)" ( (comma_expression "iVar1 = (**(code **)(**(int **)(param_1 + 0x3c) + 0x1c))(*(int **)(param_1 + 0x3c),param_2),\n     iVar1 != 0" (assignment_expression "iVar1 = (**(code **)(**(int **)(param_1 + 0x3c) + 0x1c))(*(int **)(param_1 + 0x3c),param_2)" identifier = (call_expression "(**(code **)(**(int **)(param_1 + 0x3c) + 0x1c))(*(int **)(param_1 + 0x3c),param_2)" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0x3c) + 0x1c))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 0x3c) + 0x1c)" * (pointer_expression "*(code **)(**(int **)(param_1 + 0x3c) + 0x1c)" * (cast_expression "(code **)(**(int **)(param_1 + 0x3c) + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 0x3c) + 0x1c)" ( (binary_expression "**(int **)(param_1 + 0x3c) + 0x1c" (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) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(param_1 + 0x3c),param_2)" ( (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) )))) , identifier )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) (if_statement "if ((*(char *)(param_1 + 0x11) != '\x05') || (param_2 == 4)) {\n    *(char *)(param_1 + 0x11) = (char)param_2;\n  }" if (parenthesized_expression "((*(char *)(param_1 + 0x11) != '\x05') || (param_2 == 4))" ( (binary_expression "(*(char *)(param_1 + 0x11) != '\x05') || (param_2 == 4)" (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 ')) )) || (parenthesized_expression "(param_2 == 4)" ( (binary_expression "param_2 == 4" identifier == number_literal) ))) )) (compound_statement "{\n    *(char *)(param_1 + 0x11) = (char)param_2;\n  }" { (expression_statement "*(char *)(param_1 + 0x11) = (char)param_2;" (assignment_expression "*(char *)(param_1 + 0x11) = (char)param_2" (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) )))) = (cast_expression "(char)param_2" ( (type_descriptor "char" primitive_type) ) identifier)) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int __regparm3 pagerLockDb(Pager *pPager,int eLock)\n\n{\n  int iVar1;\n  \n  if ((pPager->noLock == '\0') &&\n     (iVar1 = (*pPager->fd->pMethods->xLock)(pPager->fd,eLock), iVar1 != 0)) {\n    return iVar1;\n  }\n  if ((pPager->eLock != '\x05') || (eLock == 4)) {\n    pPager->eLock = (u8)eLock;\n  }\n  return 0;\n}\n\n" (function_definition "int __regparm3 pagerLockDb(Pager *pPager,int eLock)\n\n{\n  int iVar1;\n  \n  if ((pPager->noLock == '\0') &&\n     (iVar1 = (*pPager->fd->pMethods->xLock)(pPager->fd,eLock), iVar1 != 0)) {\n    return iVar1;\n  }\n  if ((pPager->eLock != '\x05') || (eLock == 4)) {\n    pPager->eLock = (u8)eLock;\n  }\n  return 0;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "pagerLockDb(Pager *pPager,int eLock)" identifier (parameter_list "(Pager *pPager,int eLock)" ( (parameter_declaration "Pager *pPager" type_identifier (pointer_declarator "*pPager" * identifier)) , (parameter_declaration "int eLock" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if ((pPager->noLock == '\0') &&\n     (iVar1 = (*pPager->fd->pMethods->xLock)(pPager->fd,eLock), iVar1 != 0)) {\n    return iVar1;\n  }\n  if ((pPager->eLock != '\x05') || (eLock == 4)) {\n    pPager->eLock = (u8)eLock;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if ((pPager->noLock == '\0') &&\n     (iVar1 = (*pPager->fd->pMethods->xLock)(pPager->fd,eLock), iVar1 != 0)) {\n    return iVar1;\n  }" if (parenthesized_expression "((pPager->noLock == '\0') &&\n     (iVar1 = (*pPager->fd->pMethods->xLock)(pPager->fd,eLock), iVar1 != 0))" ( (binary_expression "(pPager->noLock == '\0') &&\n     (iVar1 = (*pPager->fd->pMethods->xLock)(pPager->fd,eLock), iVar1 != 0)" (parenthesized_expression "(pPager->noLock == '\0')" ( (binary_expression "pPager->noLock == '\0'" (field_expression "pPager->noLock" identifier -> field_identifier) == (char_literal "'\0'" ' escape_sequence ')) )) && (parenthesized_expression "(iVar1 = (*pPager->fd->pMethods->xLock)(pPager->fd,eLock), iVar1 != 0)" ( (comma_expression "iVar1 = (*pPager->fd->pMethods->xLock)(pPager->fd,eLock), iVar1 != 0" (assignment_expression "iVar1 = (*pPager->fd->pMethods->xLock)(pPager->fd,eLock)" identifier = (call_expression "(*pPager->fd->pMethods->xLock)(pPager->fd,eLock)" (parenthesized_expression "(*pPager->fd->pMethods->xLock)" ( (pointer_expression "*pPager->fd->pMethods->xLock" * (field_expression "pPager->fd->pMethods->xLock" (field_expression "pPager->fd->pMethods" (field_expression "pPager->fd" identifier -> field_identifier) -> field_identifier) -> field_identifier)) )) (argument_list "(pPager->fd,eLock)" ( (field_expression "pPager->fd" identifier -> field_identifier) , identifier )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) (if_statement "if ((pPager->eLock != '\x05') || (eLock == 4)) {\n    pPager->eLock = (u8)eLock;\n  }" if (parenthesized_expression "((pPager->eLock != '\x05') || (eLock == 4))" ( (binary_expression "(pPager->eLock != '\x05') || (eLock == 4)" (parenthesized_expression "(pPager->eLock != '\x05')" ( (binary_expression "pPager->eLock != '\x05'" (field_expression "pPager->eLock" identifier -> field_identifier) != (char_literal "'\x05'" ' escape_sequence ')) )) || (parenthesized_expression "(eLock == 4)" ( (binary_expression "eLock == 4" identifier == number_literal) ))) )) (compound_statement "{\n    pPager->eLock = (u8)eLock;\n  }" { (expression_statement "pPager->eLock = (u8)eLock;" (assignment_expression "pPager->eLock = (u8)eLock" (field_expression "pPager->eLock" identifier -> field_identifier) = (cast_expression "(u8)eLock" ( (type_descriptor "u8" type_identifier) ) identifier)) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "int __regparm3 FUN_0002bf00(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if ((*(char *)(param_1 + 0xd) == '\0') &&\n     (iVar1 = (**(code **)(**(int **)(param_1 + 0x3c) + 0x1c))(*(int **)(param_1 + 0x3c),param_2),\n     iVar1 != 0)) {\n    return iVar1;\n  }\n  if ((*(char *)(param_1 + 0x11) != '\x05') || (param_2 == 4)) {\n    *(char *)(param_1 + 0x11) = (char)param_2;\n  }\n  return 0;\n}\n\n" (function_definition "int __regparm3 FUN_0002bf00(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if ((*(char *)(param_1 + 0xd) == '\0') &&\n     (iVar1 = (**(code **)(**(int **)(param_1 + 0x3c) + 0x1c))(*(int **)(param_1 + 0x3c),param_2),\n     iVar1 != 0)) {\n    return iVar1;\n  }\n  if ((*(char *)(param_1 + 0x11) != '\x05') || (param_2 == 4)) {\n    *(char *)(param_1 + 0x11) = (char)param_2;\n  }\n  return 0;\n}" primitive_type (ERROR "__regparm3" identifier) (function_declarator "FUN_0002bf00(int param_1,int param_2)" identifier (parameter_list "(int param_1,int param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if ((*(char *)(param_1 + 0xd) == '\0') &&\n     (iVar1 = (**(code **)(**(int **)(param_1 + 0x3c) + 0x1c))(*(int **)(param_1 + 0x3c),param_2),\n     iVar1 != 0)) {\n    return iVar1;\n  }\n  if ((*(char *)(param_1 + 0x11) != '\x05') || (param_2 == 4)) {\n    *(char *)(param_1 + 0x11) = (char)param_2;\n  }\n  return 0;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if ((*(char *)(param_1 + 0xd) == '\0') &&\n     (iVar1 = (**(code **)(**(int **)(param_1 + 0x3c) + 0x1c))(*(int **)(param_1 + 0x3c),param_2),\n     iVar1 != 0)) {\n    return iVar1;\n  }" if (parenthesized_expression "((*(char *)(param_1 + 0xd) == '\0') &&\n     (iVar1 = (**(code **)(**(int **)(param_1 + 0x3c) + 0x1c))(*(int **)(param_1 + 0x3c),param_2),\n     iVar1 != 0))" ( (binary_expression "(*(char *)(param_1 + 0xd) == '\0') &&\n     (iVar1 = (**(code **)(**(int **)(param_1 + 0x3c) + 0x1c))(*(int **)(param_1 + 0x3c),param_2),\n     iVar1 != 0)" (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 ')) )) && (parenthesized_expression "(iVar1 = (**(code **)(**(int **)(param_1 + 0x3c) + 0x1c))(*(int **)(param_1 + 0x3c),param_2),\n     iVar1 != 0)" ( (comma_expression "iVar1 = (**(code **)(**(int **)(param_1 + 0x3c) + 0x1c))(*(int **)(param_1 + 0x3c),param_2),\n     iVar1 != 0" (assignment_expression "iVar1 = (**(code **)(**(int **)(param_1 + 0x3c) + 0x1c))(*(int **)(param_1 + 0x3c),param_2)" identifier = (call_expression "(**(code **)(**(int **)(param_1 + 0x3c) + 0x1c))(*(int **)(param_1 + 0x3c),param_2)" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0x3c) + 0x1c))" ( (pointer_expression "**(code **)(**(int **)(param_1 + 0x3c) + 0x1c)" * (pointer_expression "*(code **)(**(int **)(param_1 + 0x3c) + 0x1c)" * (cast_expression "(code **)(**(int **)(param_1 + 0x3c) + 0x1c)" ( (type_descriptor "code **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) (parenthesized_expression "(**(int **)(param_1 + 0x3c) + 0x1c)" ( (binary_expression "**(int **)(param_1 + 0x3c) + 0x1c" (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) ))))) + number_literal) ))))) )) (argument_list "(*(int **)(param_1 + 0x3c),param_2)" ( (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) )))) , identifier )))) , (binary_expression "iVar1 != 0" identifier != number_literal)) ))) )) (compound_statement "{\n    return iVar1;\n  }" { (return_statement "return iVar1;" return identifier ;) })) (if_statement "if ((*(char *)(param_1 + 0x11) != '\x05') || (param_2 == 4)) {\n    *(char *)(param_1 + 0x11) = (char)param_2;\n  }" if (parenthesized_expression "((*(char *)(param_1 + 0x11) != '\x05') || (param_2 == 4))" ( (binary_expression "(*(char *)(param_1 + 0x11) != '\x05') || (param_2 == 4)" (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 ')) )) || (parenthesized_expression "(param_2 == 4)" ( (binary_expression "param_2 == 4" identifier == number_literal) ))) )) (compound_statement "{\n    *(char *)(param_1 + 0x11) = (char)param_2;\n  }" { (expression_statement "*(char *)(param_1 + 0x11) = (char)param_2;" (assignment_expression "*(char *)(param_1 + 0x11) = (char)param_2" (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) )))) = (cast_expression "(char)param_2" ( (type_descriptor "char" primitive_type) ) identifier)) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (ERROR IDENT) (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == (char_literal ' escape_sequence ')) )) && (parenthesized_expression ( (comma_expression (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 * (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) + LIT) ))))) )) (argument_list ( (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator * (abstract_pointer_declarator *))) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) , IDENT )))) , (binary_expression IDENT != LIT)) ))) )) (compound_statement { (return_statement return IDENT ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != (char_literal ' escape_sequence ')) )) || (parenthesized_expression ( (binary_expression IDENT == LIT) ))) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (cast_expression ( (type_descriptor TYPE) ) IDENT)) ;) })) (return_statement return LIT ;) })))
(function_definition "int __regparm3 FUN_0002bf00(int param_1,int param_2)\n\n{\n  int iVar1;\n  \n  if ((*(char *)(param_1 + 0xd) == '\0') &&\n     (iVar1 = (**(code **)(**(int **)(param_1 + 0x3c) + 0x1c))(*(int **)(param_1 + 0x3c),param_2),\n     iVar1 != 0)) {\n    return iVar1;\n  }\n  if ((*(char *)(param_1 + 0x11) != '\x05') || (param_2 == 4)) {\n    *(char *)(param_1 + 0x11) = (char)param_2;\n  }\n  return 0;\n}" (primitive_type "int") (ERROR "__regparm3" (identifier "__regparm3")) (function_declarator "FUN_0002bf00(int param_1,int param_2)" (identifier "FUN_0002bf00") (parameter_list "(int param_1,int param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if ((*(char *)(param_1 + 0xd) == '\0') &&\n     (iVar1 = (**(code **)(**(int **)(param_1 + 0x3c) + 0x1c))(*(int **)(param_1 + 0x3c),param_2),\n     iVar1 != 0)) {\n    return iVar1;\n  }\n  if ((*(char *)(param_1 + 0x11) != '\x05') || (param_2 == 4)) {\n    *(char *)(param_1 + 0x11) = (char)param_2;\n  }\n  return 0;\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if ((*(char *)(param_1 + 0xd) == '\0') &&\n     (iVar1 = (**(code **)(**(int **)(param_1 + 0x3c) + 0x1c))(*(int **)(param_1 + 0x3c),param_2),\n     iVar1 != 0)) {\n    return iVar1;\n  }" (if "if") (parenthesized_expression "((*(char *)(param_1 + 0xd) == '\0') &&\n     (iVar1 = (**(code **)(**(int **)(param_1 + 0x3c) + 0x1c))(*(int **)(param_1 + 0x3c),param_2),\n     iVar1 != 0))" (( "(") (binary_expression "(*(char *)(param_1 + 0xd) == '\0') &&\n     (iVar1 = (**(code **)(**(int **)(param_1 + 0x3c) + 0x1c))(*(int **)(param_1 + 0x3c),param_2),\n     iVar1 != 0)" (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") (' "'"))) () ")")) (&& "&&") (parenthesized_expression "(iVar1 = (**(code **)(**(int **)(param_1 + 0x3c) + 0x1c))(*(int **)(param_1 + 0x3c),param_2),\n     iVar1 != 0)" (( "(") (comma_expression "iVar1 = (**(code **)(**(int **)(param_1 + 0x3c) + 0x1c))(*(int **)(param_1 + 0x3c),param_2),\n     iVar1 != 0" (assignment_expression "iVar1 = (**(code **)(**(int **)(param_1 + 0x3c) + 0x1c))(*(int **)(param_1 + 0x3c),param_2)" (identifier "iVar1") (= "=") (call_expression "(**(code **)(**(int **)(param_1 + 0x3c) + 0x1c))(*(int **)(param_1 + 0x3c),param_2)" (parenthesized_expression "(**(code **)(**(int **)(param_1 + 0x3c) + 0x1c))" (( "(") (pointer_expression "**(code **)(**(int **)(param_1 + 0x3c) + 0x1c)" (* "*") (pointer_expression "*(code **)(**(int **)(param_1 + 0x3c) + 0x1c)" (* "*") (cast_expression "(code **)(**(int **)(param_1 + 0x3c) + 0x1c)" (( "(") (type_descriptor "code **" (type_identifier "code") (abstract_pointer_declarator "**" (* "*") (abstract_pointer_declarator "*" (* "*")))) () ")") (parenthesized_expression "(**(int **)(param_1 + 0x3c) + 0x1c)" (( "(") (binary_expression "**(int **)(param_1 + 0x3c) + 0x1c" (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")) () ")"))))) (+ "+") (number_literal "0x1c")) () ")"))))) () ")")) (argument_list "(*(int **)(param_1 + 0x3c),param_2)" (( "(") (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")) () ")")))) (, ",") (identifier "param_2") () ")")))) (, ",") (binary_expression "iVar1 != 0" (identifier "iVar1") (!= "!=") (number_literal "0"))) () ")"))) () ")")) (compound_statement "{\n    return iVar1;\n  }" ({ "{") (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (if_statement "if ((*(char *)(param_1 + 0x11) != '\x05') || (param_2 == 4)) {\n    *(char *)(param_1 + 0x11) = (char)param_2;\n  }" (if "if") (parenthesized_expression "((*(char *)(param_1 + 0x11) != '\x05') || (param_2 == 4))" (( "(") (binary_expression "(*(char *)(param_1 + 0x11) != '\x05') || (param_2 == 4)" (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") (' "'"))) () ")")) (|| "||") (parenthesized_expression "(param_2 == 4)" (( "(") (binary_expression "param_2 == 4" (identifier "param_2") (== "==") (number_literal "4")) () ")"))) () ")")) (compound_statement "{\n    *(char *)(param_1 + 0x11) = (char)param_2;\n  }" ({ "{") (expression_statement "*(char *)(param_1 + 0x11) = (char)param_2;" (assignment_expression "*(char *)(param_1 + 0x11) = (char)param_2" (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")) () ")")))) (= "=") (cast_expression "(char)param_2" (( "(") (type_descriptor "char" (primitive_type "char")) () ")") (identifier "param_2"))) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

int __regparm3 function_1(type_1 *pPager,int var_2)

{
  int var_1;
  
  if ((pPager->noLock == '\0') &&
     (var_1 = (*pPager->fd->pMethods->xLock)(pPager->fd,var_2), var_1 != 0)) {
    return var_1;
  }
  if ((pPager->var_2 != '\x05') || (var_2 == 4)) {
    pPager->var_2 = (type_2)var_2;
  }
  return 0;
}


(translation_unit (function_definition type: (primitive_type) (ERROR (identifier)) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (primitive_type) declarator: (identifier)))) body: (compound_statement (declaration type: (primitive_type) declarator: (identifier)) (if_statement condition: (parenthesized_expression (binary_expression left: (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)))) right: (parenthesized_expression (comma_expression left: (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: (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: (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))))) (identifier)))) right: (binary_expression left: (identifier) right: (number_literal)))))) consequence: (compound_statement (return_statement (identifier)))) (if_statement condition: (parenthesized_expression (binary_expression left: (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)))) right: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) consequence: (compound_statement (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: (cast_expression type: (type_descriptor type: (primitive_type)) value: (identifier)))))) (return_statement (number_literal)))))

int __regparm3 MASKED(int param_1,int param_2)

{
  int iVar1;
  
  if ((*(char *)(param_1 + 0xd) == '\0') &&
     (iVar1 = (**(code **)(**(int **)(param_1 + 0x3c) + 0x1c))(*(int **)(param_1 + 0x3c),param_2),
     iVar1 != 0)) {
    return iVar1;
  }
  if ((*(char *)(param_1 + 0x11) != '\x05') || (param_2 == 4)) {
    *(char *)(param_1 + 0x11) = (char)param_2;
  }
  return 0;
}

