
int sqlite3changeset_next(sqlite3_changeset_iter *p)

{
  int iVar1;
  
  if (p->rc == 0) {
    iVar1 = sessionChangesetNext(p,(u8 **)0x0,(int *)0x0,(int *)0x0);
    return iVar1;
  }
  return p->rc;
}



int FUN_00113ad0(int param_1)

{
  int iVar1;
  
  if (*(int *)(param_1 + 0x40) == 0) {
    iVar1 = FUN_0008db60();
    return iVar1;
  }
  return *(int *)(param_1 + 0x40);
}


MOV EAX,dword ptr [ESP + 0x4]
MOV EDX,dword ptr [EAX + 0x40]
TEST EDX,EDX
JNZ 0x00113af0
XOR ECX,ECX
MOV dword ptr [ESP + 0x4],0x0
JMP 0x0008db60
MOV EAX,EDX
RET
(translation_unit "int FUN_00113ad0(int param_1)\n\n{\n  int iVar1;\n  \n  if (*(int *)(param_1 + 0x40) == 0) {\n    iVar1 = FUN_0008db60();\n    return iVar1;\n  }\n  return *(int *)(param_1 + 0x40);\n}\n\n" (function_definition "int FUN_00113ad0(int param_1)\n\n{\n  int iVar1;\n  \n  if (*(int *)(param_1 + 0x40) == 0) {\n    iVar1 = FUN_0008db60();\n    return iVar1;\n  }\n  return *(int *)(param_1 + 0x40);\n}" primitive_type (function_declarator "FUN_00113ad0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (*(int *)(param_1 + 0x40) == 0) {\n    iVar1 = FUN_0008db60();\n    return iVar1;\n  }\n  return *(int *)(param_1 + 0x40);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (*(int *)(param_1 + 0x40) == 0) {\n    iVar1 = FUN_0008db60();\n    return iVar1;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x40) == 0)" ( (binary_expression "*(int *)(param_1 + 0x40) == 0" (pointer_expression "*(int *)(param_1 + 0x40)" * (cast_expression "(int *)(param_1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVar1 = FUN_0008db60();\n    return iVar1;\n  }" { (expression_statement "iVar1 = FUN_0008db60();" (assignment_expression "iVar1 = FUN_0008db60()" identifier = (call_expression "FUN_0008db60()" identifier (argument_list "()" ( )))) ;) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return *(int *)(param_1 + 0x40);" return (pointer_expression "*(int *)(param_1 + 0x40)" * (cast_expression "(int *)(param_1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) ;) })))
(translation_unit "int sqlite3changeset_next(sqlite3_changeset_iter *p)\n\n{\n  int iVar1;\n  \n  if (p->rc == 0) {\n    iVar1 = sessionChangesetNext(p,(u8 **)0x0,(int *)0x0,(int *)0x0);\n    return iVar1;\n  }\n  return p->rc;\n}\n\n" (function_definition "int sqlite3changeset_next(sqlite3_changeset_iter *p)\n\n{\n  int iVar1;\n  \n  if (p->rc == 0) {\n    iVar1 = sessionChangesetNext(p,(u8 **)0x0,(int *)0x0,(int *)0x0);\n    return iVar1;\n  }\n  return p->rc;\n}" primitive_type (function_declarator "sqlite3changeset_next(sqlite3_changeset_iter *p)" identifier (parameter_list "(sqlite3_changeset_iter *p)" ( (parameter_declaration "sqlite3_changeset_iter *p" type_identifier (pointer_declarator "*p" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  \n  if (p->rc == 0) {\n    iVar1 = sessionChangesetNext(p,(u8 **)0x0,(int *)0x0,(int *)0x0);\n    return iVar1;\n  }\n  return p->rc;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (p->rc == 0) {\n    iVar1 = sessionChangesetNext(p,(u8 **)0x0,(int *)0x0,(int *)0x0);\n    return iVar1;\n  }" if (parenthesized_expression "(p->rc == 0)" ( (binary_expression "p->rc == 0" (field_expression "p->rc" identifier -> field_identifier) == number_literal) )) (compound_statement "{\n    iVar1 = sessionChangesetNext(p,(u8 **)0x0,(int *)0x0,(int *)0x0);\n    return iVar1;\n  }" { (expression_statement "iVar1 = sessionChangesetNext(p,(u8 **)0x0,(int *)0x0,(int *)0x0);" (assignment_expression "iVar1 = sessionChangesetNext(p,(u8 **)0x0,(int *)0x0,(int *)0x0)" identifier = (call_expression "sessionChangesetNext(p,(u8 **)0x0,(int *)0x0,(int *)0x0)" identifier (argument_list "(p,(u8 **)0x0,(int *)0x0,(int *)0x0)" ( identifier , (cast_expression "(u8 **)0x0" ( (type_descriptor "u8 **" type_identifier (abstract_pointer_declarator "**" * (abstract_pointer_declarator "*" *))) ) number_literal) , (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) , (cast_expression "(int *)0x0" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) number_literal) )))) ;) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return p->rc;" return (field_expression "p->rc" identifier -> field_identifier) ;) })))
(translation_unit "int FUN_00113ad0(int param_1)\n\n{\n  int iVar1;\n  \n  if (*(int *)(param_1 + 0x40) == 0) {\n    iVar1 = FUN_0008db60();\n    return iVar1;\n  }\n  return *(int *)(param_1 + 0x40);\n}\n\n" (function_definition "int FUN_00113ad0(int param_1)\n\n{\n  int iVar1;\n  \n  if (*(int *)(param_1 + 0x40) == 0) {\n    iVar1 = FUN_0008db60();\n    return iVar1;\n  }\n  return *(int *)(param_1 + 0x40);\n}" primitive_type (function_declarator "FUN_00113ad0(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  int iVar1;\n  \n  if (*(int *)(param_1 + 0x40) == 0) {\n    iVar1 = FUN_0008db60();\n    return iVar1;\n  }\n  return *(int *)(param_1 + 0x40);\n}" { (declaration "int iVar1;" primitive_type identifier ;) (if_statement "if (*(int *)(param_1 + 0x40) == 0) {\n    iVar1 = FUN_0008db60();\n    return iVar1;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x40) == 0)" ( (binary_expression "*(int *)(param_1 + 0x40) == 0" (pointer_expression "*(int *)(param_1 + 0x40)" * (cast_expression "(int *)(param_1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    iVar1 = FUN_0008db60();\n    return iVar1;\n  }" { (expression_statement "iVar1 = FUN_0008db60();" (assignment_expression "iVar1 = FUN_0008db60()" identifier = (call_expression "FUN_0008db60()" identifier (argument_list "()" ( )))) ;) (return_statement "return iVar1;" return identifier ;) })) (return_statement "return *(int *)(param_1 + 0x40);" return (pointer_expression "*(int *)(param_1 + 0x40)" * (cast_expression "(int *)(param_1 + 0x40)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (call_expression IDENT (argument_list ( )))) ;) (return_statement return IDENT ;) })) (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) })))
(function_definition "int FUN_00113ad0(int param_1)\n\n{\n  int iVar1;\n  \n  if (*(int *)(param_1 + 0x40) == 0) {\n    iVar1 = FUN_0008db60();\n    return iVar1;\n  }\n  return *(int *)(param_1 + 0x40);\n}" (primitive_type "int") (function_declarator "FUN_00113ad0(int param_1)" (identifier "FUN_00113ad0") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  int iVar1;\n  \n  if (*(int *)(param_1 + 0x40) == 0) {\n    iVar1 = FUN_0008db60();\n    return iVar1;\n  }\n  return *(int *)(param_1 + 0x40);\n}" ({ "{") (declaration "int iVar1;" (primitive_type "int") (identifier "iVar1") (; ";")) (if_statement "if (*(int *)(param_1 + 0x40) == 0) {\n    iVar1 = FUN_0008db60();\n    return iVar1;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x40) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x40) == 0" (pointer_expression "*(int *)(param_1 + 0x40)" (* "*") (cast_expression "(int *)(param_1 + 0x40)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    iVar1 = FUN_0008db60();\n    return iVar1;\n  }" ({ "{") (expression_statement "iVar1 = FUN_0008db60();" (assignment_expression "iVar1 = FUN_0008db60()" (identifier "iVar1") (= "=") (call_expression "FUN_0008db60()" (identifier "FUN_0008db60") (argument_list "()" (( "(") () ")")))) (; ";")) (return_statement "return iVar1;" (return "return") (identifier "iVar1") (; ";")) (} "}"))) (return_statement "return *(int *)(param_1 + 0x40);" (return "return") (pointer_expression "*(int *)(param_1 + 0x40)" (* "*") (cast_expression "(int *)(param_1 + 0x40)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")")))) (; ";")) (} "}")))

int function_1(type_1 *p)

{
  int iVar1;
  
  if (p->rc == 0) {
    iVar1 = var_1(p,(type_2 **)0x0,(int *)0x0,(int *)0x0);
    return iVar1;
  }
  return p->rc;
}


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

int MASKED(int param_1)

{
  int iVar1;
  
  if (*(int *)(param_1 + 0x40) == 0) {
    iVar1 = FUN_0008db60();
    return iVar1;
  }
  return *(int *)(param_1 + 0x40);
}

