
/* WARNING: Unknown calling convention */

int rtreeSavepoint(sqlite3_vtab *pVtab,int iSavepoint)

{
  undefined1 uVar1;
  sqlite3_module *pBlob;
  
  pBlob = pVtab[6].pModule;
  uVar1 = *(undefined1 *)&pVtab[2].pModule;
  *(undefined1 *)&pVtab[2].pModule = 0;
  if ((pBlob != (sqlite3_module *)0x0) && (pVtab[4].nRef == 0)) {
    pVtab[6].pModule = (sqlite3_module *)0x0;
    sqlite3_blob_close((sqlite3_blob *)pBlob);
    *(undefined1 *)&pVtab[2].pModule = uVar1;
    return 0;
  }
  *(undefined1 *)&pVtab[2].pModule = uVar1;
  return 0;
}



undefined4 FUN_000c0a80(int param_1)

{
  undefined1 uVar1;
  int iVar2;
  
  iVar2 = *(int *)(param_1 + 0x48);
  uVar1 = *(undefined1 *)(param_1 + 0x18);
  *(undefined1 *)(param_1 + 0x18) = 0;
  if ((iVar2 != 0) && (*(int *)(param_1 + 0x34) == 0)) {
    *(undefined4 *)(param_1 + 0x48) = 0;
    FUN_000c0610(iVar2);
    *(undefined1 *)(param_1 + 0x18) = uVar1;
    return 0;
  }
  *(undefined1 *)(param_1 + 0x18) = uVar1;
  return 0;
}


PUSH EBX
SUB ESP,0x18
MOV EBX,dword ptr [ESP + 0x20]
MOV EAX,dword ptr [EBX + 0x48]
MOVZX EDX,byte ptr [EBX + 0x18]
MOV byte ptr [EBX + 0x18],0x0
TEST EAX,EAX
JZ 0x000c0a9e
MOV ECX,dword ptr [EBX + 0x34]
TEST ECX,ECX
JZ 0x000c0ab0
MOV byte ptr [EBX + 0x18],DL
ADD ESP,0x18
XOR EAX,EAX
POP EBX
RET
MOV byte ptr [ESP + 0xf],DL
SUB ESP,0xc
MOV dword ptr [EBX + 0x48],0x0
PUSH EAX
CALL 0x000c0610
ADD ESP,0x10
MOVZX EDX,byte ptr [ESP + 0xf]
XOR EAX,EAX
MOV byte ptr [EBX + 0x18],DL
ADD ESP,0x18
POP EBX
RET
(translation_unit "undefined4 FUN_000c0a80(int param_1)\n\n{\n  undefined1 uVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 0x48);\n  uVar1 = *(undefined1 *)(param_1 + 0x18);\n  *(undefined1 *)(param_1 + 0x18) = 0;\n  if ((iVar2 != 0) && (*(int *)(param_1 + 0x34) == 0)) {\n    *(undefined4 *)(param_1 + 0x48) = 0;\n    FUN_000c0610(iVar2);\n    *(undefined1 *)(param_1 + 0x18) = uVar1;\n    return 0;\n  }\n  *(undefined1 *)(param_1 + 0x18) = uVar1;\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_000c0a80(int param_1)\n\n{\n  undefined1 uVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 0x48);\n  uVar1 = *(undefined1 *)(param_1 + 0x18);\n  *(undefined1 *)(param_1 + 0x18) = 0;\n  if ((iVar2 != 0) && (*(int *)(param_1 + 0x34) == 0)) {\n    *(undefined4 *)(param_1 + 0x48) = 0;\n    FUN_000c0610(iVar2);\n    *(undefined1 *)(param_1 + 0x18) = uVar1;\n    return 0;\n  }\n  *(undefined1 *)(param_1 + 0x18) = uVar1;\n  return 0;\n}" type_identifier (function_declarator "FUN_000c0a80(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined1 uVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 0x48);\n  uVar1 = *(undefined1 *)(param_1 + 0x18);\n  *(undefined1 *)(param_1 + 0x18) = 0;\n  if ((iVar2 != 0) && (*(int *)(param_1 + 0x34) == 0)) {\n    *(undefined4 *)(param_1 + 0x48) = 0;\n    FUN_000c0610(iVar2);\n    *(undefined1 *)(param_1 + 0x18) = uVar1;\n    return 0;\n  }\n  *(undefined1 *)(param_1 + 0x18) = uVar1;\n  return 0;\n}" { (declaration "undefined1 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x48);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x48)" identifier = (pointer_expression "*(int *)(param_1 + 0x48)" * (cast_expression "(int *)(param_1 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = *(undefined1 *)(param_1 + 0x18);" (assignment_expression "uVar1 = *(undefined1 *)(param_1 + 0x18)" identifier = (pointer_expression "*(undefined1 *)(param_1 + 0x18)" * (cast_expression "(undefined1 *)(param_1 + 0x18)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "*(undefined1 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0x18)" * (cast_expression "(undefined1 *)(param_1 + 0x18)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = number_literal) ;) (if_statement "if ((iVar2 != 0) && (*(int *)(param_1 + 0x34) == 0)) {\n    *(undefined4 *)(param_1 + 0x48) = 0;\n    FUN_000c0610(iVar2);\n    *(undefined1 *)(param_1 + 0x18) = uVar1;\n    return 0;\n  }" if (parenthesized_expression "((iVar2 != 0) && (*(int *)(param_1 + 0x34) == 0))" ( (binary_expression "(iVar2 != 0) && (*(int *)(param_1 + 0x34) == 0)" (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(int *)(param_1 + 0x34) == 0)" ( (binary_expression "*(int *)(param_1 + 0x34) == 0" (pointer_expression "*(int *)(param_1 + 0x34)" * (cast_expression "(int *)(param_1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x48) = 0;\n    FUN_000c0610(iVar2);\n    *(undefined1 *)(param_1 + 0x18) = uVar1;\n    return 0;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x48) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x48) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x48)" * (cast_expression "(undefined4 *)(param_1 + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) = number_literal) ;) (expression_statement "FUN_000c0610(iVar2);" (call_expression "FUN_000c0610(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "*(undefined1 *)(param_1 + 0x18) = uVar1;" (assignment_expression "*(undefined1 *)(param_1 + 0x18) = uVar1" (pointer_expression "*(undefined1 *)(param_1 + 0x18)" * (cast_expression "(undefined1 *)(param_1 + 0x18)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = identifier) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "*(undefined1 *)(param_1 + 0x18) = uVar1;" (assignment_expression "*(undefined1 *)(param_1 + 0x18) = uVar1" (pointer_expression "*(undefined1 *)(param_1 + 0x18)" * (cast_expression "(undefined1 *)(param_1 + 0x18)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = identifier) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nint rtreeSavepoint(sqlite3_vtab *pVtab,int iSavepoint)\n\n{\n  undefined1 uVar1;\n  sqlite3_module *pBlob;\n  \n  pBlob = pVtab[6].pModule;\n  uVar1 = *(undefined1 *)&pVtab[2].pModule;\n  *(undefined1 *)&pVtab[2].pModule = 0;\n  if ((pBlob != (sqlite3_module *)0x0) && (pVtab[4].nRef == 0)) {\n    pVtab[6].pModule = (sqlite3_module *)0x0;\n    sqlite3_blob_close((sqlite3_blob *)pBlob);\n    *(undefined1 *)&pVtab[2].pModule = uVar1;\n    return 0;\n  }\n  *(undefined1 *)&pVtab[2].pModule = uVar1;\n  return 0;\n}\n\n" comment (function_definition "int rtreeSavepoint(sqlite3_vtab *pVtab,int iSavepoint)\n\n{\n  undefined1 uVar1;\n  sqlite3_module *pBlob;\n  \n  pBlob = pVtab[6].pModule;\n  uVar1 = *(undefined1 *)&pVtab[2].pModule;\n  *(undefined1 *)&pVtab[2].pModule = 0;\n  if ((pBlob != (sqlite3_module *)0x0) && (pVtab[4].nRef == 0)) {\n    pVtab[6].pModule = (sqlite3_module *)0x0;\n    sqlite3_blob_close((sqlite3_blob *)pBlob);\n    *(undefined1 *)&pVtab[2].pModule = uVar1;\n    return 0;\n  }\n  *(undefined1 *)&pVtab[2].pModule = uVar1;\n  return 0;\n}" primitive_type (function_declarator "rtreeSavepoint(sqlite3_vtab *pVtab,int iSavepoint)" identifier (parameter_list "(sqlite3_vtab *pVtab,int iSavepoint)" ( (parameter_declaration "sqlite3_vtab *pVtab" type_identifier (pointer_declarator "*pVtab" * identifier)) , (parameter_declaration "int iSavepoint" primitive_type identifier) ))) (compound_statement "{\n  undefined1 uVar1;\n  sqlite3_module *pBlob;\n  \n  pBlob = pVtab[6].pModule;\n  uVar1 = *(undefined1 *)&pVtab[2].pModule;\n  *(undefined1 *)&pVtab[2].pModule = 0;\n  if ((pBlob != (sqlite3_module *)0x0) && (pVtab[4].nRef == 0)) {\n    pVtab[6].pModule = (sqlite3_module *)0x0;\n    sqlite3_blob_close((sqlite3_blob *)pBlob);\n    *(undefined1 *)&pVtab[2].pModule = uVar1;\n    return 0;\n  }\n  *(undefined1 *)&pVtab[2].pModule = uVar1;\n  return 0;\n}" { (declaration "undefined1 uVar1;" type_identifier identifier ;) (declaration "sqlite3_module *pBlob;" type_identifier (pointer_declarator "*pBlob" * identifier) ;) (expression_statement "pBlob = pVtab[6].pModule;" (assignment_expression "pBlob = pVtab[6].pModule" identifier = (field_expression "pVtab[6].pModule" (subscript_expression "pVtab[6]" identifier [ number_literal ]) . field_identifier)) ;) (expression_statement "uVar1 = *(undefined1 *)&pVtab[2].pModule;" (assignment_expression "uVar1 = *(undefined1 *)&pVtab[2].pModule" identifier = (pointer_expression "*(undefined1 *)&pVtab[2].pModule" * (cast_expression "(undefined1 *)&pVtab[2].pModule" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pVtab[2].pModule" & (field_expression "pVtab[2].pModule" (subscript_expression "pVtab[2]" identifier [ number_literal ]) . field_identifier))))) ;) (expression_statement "*(undefined1 *)&pVtab[2].pModule = 0;" (assignment_expression "*(undefined1 *)&pVtab[2].pModule = 0" (pointer_expression "*(undefined1 *)&pVtab[2].pModule" * (cast_expression "(undefined1 *)&pVtab[2].pModule" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pVtab[2].pModule" & (field_expression "pVtab[2].pModule" (subscript_expression "pVtab[2]" identifier [ number_literal ]) . field_identifier)))) = number_literal) ;) (if_statement "if ((pBlob != (sqlite3_module *)0x0) && (pVtab[4].nRef == 0)) {\n    pVtab[6].pModule = (sqlite3_module *)0x0;\n    sqlite3_blob_close((sqlite3_blob *)pBlob);\n    *(undefined1 *)&pVtab[2].pModule = uVar1;\n    return 0;\n  }" if (parenthesized_expression "((pBlob != (sqlite3_module *)0x0) && (pVtab[4].nRef == 0))" ( (binary_expression "(pBlob != (sqlite3_module *)0x0) && (pVtab[4].nRef == 0)" (parenthesized_expression "(pBlob != (sqlite3_module *)0x0)" ( (binary_expression "pBlob != (sqlite3_module *)0x0" identifier != (cast_expression "(sqlite3_module *)0x0" ( (type_descriptor "sqlite3_module *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(pVtab[4].nRef == 0)" ( (binary_expression "pVtab[4].nRef == 0" (field_expression "pVtab[4].nRef" (subscript_expression "pVtab[4]" identifier [ number_literal ]) . field_identifier) == number_literal) ))) )) (compound_statement "{\n    pVtab[6].pModule = (sqlite3_module *)0x0;\n    sqlite3_blob_close((sqlite3_blob *)pBlob);\n    *(undefined1 *)&pVtab[2].pModule = uVar1;\n    return 0;\n  }" { (expression_statement "pVtab[6].pModule = (sqlite3_module *)0x0;" (assignment_expression "pVtab[6].pModule = (sqlite3_module *)0x0" (field_expression "pVtab[6].pModule" (subscript_expression "pVtab[6]" identifier [ number_literal ]) . field_identifier) = (cast_expression "(sqlite3_module *)0x0" ( (type_descriptor "sqlite3_module *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) ;) (expression_statement "sqlite3_blob_close((sqlite3_blob *)pBlob);" (call_expression "sqlite3_blob_close((sqlite3_blob *)pBlob)" identifier (argument_list "((sqlite3_blob *)pBlob)" ( (cast_expression "(sqlite3_blob *)pBlob" ( (type_descriptor "sqlite3_blob *" type_identifier (abstract_pointer_declarator "*" *)) ) identifier) ))) ;) (expression_statement "*(undefined1 *)&pVtab[2].pModule = uVar1;" (assignment_expression "*(undefined1 *)&pVtab[2].pModule = uVar1" (pointer_expression "*(undefined1 *)&pVtab[2].pModule" * (cast_expression "(undefined1 *)&pVtab[2].pModule" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pVtab[2].pModule" & (field_expression "pVtab[2].pModule" (subscript_expression "pVtab[2]" identifier [ number_literal ]) . field_identifier)))) = identifier) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "*(undefined1 *)&pVtab[2].pModule = uVar1;" (assignment_expression "*(undefined1 *)&pVtab[2].pModule = uVar1" (pointer_expression "*(undefined1 *)&pVtab[2].pModule" * (cast_expression "(undefined1 *)&pVtab[2].pModule" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&pVtab[2].pModule" & (field_expression "pVtab[2].pModule" (subscript_expression "pVtab[2]" identifier [ number_literal ]) . field_identifier)))) = identifier) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "undefined4 FUN_000c0a80(int param_1)\n\n{\n  undefined1 uVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 0x48);\n  uVar1 = *(undefined1 *)(param_1 + 0x18);\n  *(undefined1 *)(param_1 + 0x18) = 0;\n  if ((iVar2 != 0) && (*(int *)(param_1 + 0x34) == 0)) {\n    *(undefined4 *)(param_1 + 0x48) = 0;\n    FUN_000c0610(iVar2);\n    *(undefined1 *)(param_1 + 0x18) = uVar1;\n    return 0;\n  }\n  *(undefined1 *)(param_1 + 0x18) = uVar1;\n  return 0;\n}\n\n" (function_definition "undefined4 FUN_000c0a80(int param_1)\n\n{\n  undefined1 uVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 0x48);\n  uVar1 = *(undefined1 *)(param_1 + 0x18);\n  *(undefined1 *)(param_1 + 0x18) = 0;\n  if ((iVar2 != 0) && (*(int *)(param_1 + 0x34) == 0)) {\n    *(undefined4 *)(param_1 + 0x48) = 0;\n    FUN_000c0610(iVar2);\n    *(undefined1 *)(param_1 + 0x18) = uVar1;\n    return 0;\n  }\n  *(undefined1 *)(param_1 + 0x18) = uVar1;\n  return 0;\n}" type_identifier (function_declarator "FUN_000c0a80(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined1 uVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 0x48);\n  uVar1 = *(undefined1 *)(param_1 + 0x18);\n  *(undefined1 *)(param_1 + 0x18) = 0;\n  if ((iVar2 != 0) && (*(int *)(param_1 + 0x34) == 0)) {\n    *(undefined4 *)(param_1 + 0x48) = 0;\n    FUN_000c0610(iVar2);\n    *(undefined1 *)(param_1 + 0x18) = uVar1;\n    return 0;\n  }\n  *(undefined1 *)(param_1 + 0x18) = uVar1;\n  return 0;\n}" { (declaration "undefined1 uVar1;" type_identifier identifier ;) (declaration "int iVar2;" primitive_type identifier ;) (expression_statement "iVar2 = *(int *)(param_1 + 0x48);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x48)" identifier = (pointer_expression "*(int *)(param_1 + 0x48)" * (cast_expression "(int *)(param_1 + 0x48)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) ))))) ;) (expression_statement "uVar1 = *(undefined1 *)(param_1 + 0x18);" (assignment_expression "uVar1 = *(undefined1 *)(param_1 + 0x18)" identifier = (pointer_expression "*(undefined1 *)(param_1 + 0x18)" * (cast_expression "(undefined1 *)(param_1 + 0x18)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) ))))) ;) (expression_statement "*(undefined1 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0x18)" * (cast_expression "(undefined1 *)(param_1 + 0x18)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = number_literal) ;) (if_statement "if ((iVar2 != 0) && (*(int *)(param_1 + 0x34) == 0)) {\n    *(undefined4 *)(param_1 + 0x48) = 0;\n    FUN_000c0610(iVar2);\n    *(undefined1 *)(param_1 + 0x18) = uVar1;\n    return 0;\n  }" if (parenthesized_expression "((iVar2 != 0) && (*(int *)(param_1 + 0x34) == 0))" ( (binary_expression "(iVar2 != 0) && (*(int *)(param_1 + 0x34) == 0)" (parenthesized_expression "(iVar2 != 0)" ( (binary_expression "iVar2 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(int *)(param_1 + 0x34) == 0)" ( (binary_expression "*(int *)(param_1 + 0x34) == 0" (pointer_expression "*(int *)(param_1 + 0x34)" * (cast_expression "(int *)(param_1 + 0x34)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x34)" ( (binary_expression "param_1 + 0x34" identifier + number_literal) )))) == number_literal) ))) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x48) = 0;\n    FUN_000c0610(iVar2);\n    *(undefined1 *)(param_1 + 0x18) = uVar1;\n    return 0;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x48) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x48) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x48)" * (cast_expression "(undefined4 *)(param_1 + 0x48)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) = number_literal) ;) (expression_statement "FUN_000c0610(iVar2);" (call_expression "FUN_000c0610(iVar2)" identifier (argument_list "(iVar2)" ( identifier ))) ;) (expression_statement "*(undefined1 *)(param_1 + 0x18) = uVar1;" (assignment_expression "*(undefined1 *)(param_1 + 0x18) = uVar1" (pointer_expression "*(undefined1 *)(param_1 + 0x18)" * (cast_expression "(undefined1 *)(param_1 + 0x18)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = identifier) ;) (return_statement "return 0;" return number_literal ;) })) (expression_statement "*(undefined1 *)(param_1 + 0x18) = uVar1;" (assignment_expression "*(undefined1 *)(param_1 + 0x18) = uVar1" (pointer_expression "*(undefined1 *)(param_1 + 0x18)" * (cast_expression "(undefined1 *)(param_1 + 0x18)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x18)" ( (binary_expression "param_1 + 0x18" identifier + number_literal) )))) = identifier) ;) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (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 = (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) )))) = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (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 (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = LIT) ;) (expression_statement (call_expression IDENT (argument_list ( IDENT ))) ;) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return LIT ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) (return_statement return LIT ;) })))
(function_definition "undefined4 FUN_000c0a80(int param_1)\n\n{\n  undefined1 uVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 0x48);\n  uVar1 = *(undefined1 *)(param_1 + 0x18);\n  *(undefined1 *)(param_1 + 0x18) = 0;\n  if ((iVar2 != 0) && (*(int *)(param_1 + 0x34) == 0)) {\n    *(undefined4 *)(param_1 + 0x48) = 0;\n    FUN_000c0610(iVar2);\n    *(undefined1 *)(param_1 + 0x18) = uVar1;\n    return 0;\n  }\n  *(undefined1 *)(param_1 + 0x18) = uVar1;\n  return 0;\n}" (type_identifier "undefined4") (function_declarator "FUN_000c0a80(int param_1)" (identifier "FUN_000c0a80") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined1 uVar1;\n  int iVar2;\n  \n  iVar2 = *(int *)(param_1 + 0x48);\n  uVar1 = *(undefined1 *)(param_1 + 0x18);\n  *(undefined1 *)(param_1 + 0x18) = 0;\n  if ((iVar2 != 0) && (*(int *)(param_1 + 0x34) == 0)) {\n    *(undefined4 *)(param_1 + 0x48) = 0;\n    FUN_000c0610(iVar2);\n    *(undefined1 *)(param_1 + 0x18) = uVar1;\n    return 0;\n  }\n  *(undefined1 *)(param_1 + 0x18) = uVar1;\n  return 0;\n}" ({ "{") (declaration "undefined1 uVar1;" (type_identifier "undefined1") (identifier "uVar1") (; ";")) (declaration "int iVar2;" (primitive_type "int") (identifier "iVar2") (; ";")) (expression_statement "iVar2 = *(int *)(param_1 + 0x48);" (assignment_expression "iVar2 = *(int *)(param_1 + 0x48)" (identifier "iVar2") (= "=") (pointer_expression "*(int *)(param_1 + 0x48)" (* "*") (cast_expression "(int *)(param_1 + 0x48)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x48)" (( "(") (binary_expression "param_1 + 0x48" (identifier "param_1") (+ "+") (number_literal "0x48")) () ")"))))) (; ";")) (expression_statement "uVar1 = *(undefined1 *)(param_1 + 0x18);" (assignment_expression "uVar1 = *(undefined1 *)(param_1 + 0x18)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined1 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")"))))) (; ";")) (expression_statement "*(undefined1 *)(param_1 + 0x18) = 0;" (assignment_expression "*(undefined1 *)(param_1 + 0x18) = 0" (pointer_expression "*(undefined1 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (number_literal "0")) (; ";")) (if_statement "if ((iVar2 != 0) && (*(int *)(param_1 + 0x34) == 0)) {\n    *(undefined4 *)(param_1 + 0x48) = 0;\n    FUN_000c0610(iVar2);\n    *(undefined1 *)(param_1 + 0x18) = uVar1;\n    return 0;\n  }" (if "if") (parenthesized_expression "((iVar2 != 0) && (*(int *)(param_1 + 0x34) == 0))" (( "(") (binary_expression "(iVar2 != 0) && (*(int *)(param_1 + 0x34) == 0)" (parenthesized_expression "(iVar2 != 0)" (( "(") (binary_expression "iVar2 != 0" (identifier "iVar2") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(param_1 + 0x34) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x34) == 0" (pointer_expression "*(int *)(param_1 + 0x34)" (* "*") (cast_expression "(int *)(param_1 + 0x34)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x34)" (( "(") (binary_expression "param_1 + 0x34" (identifier "param_1") (+ "+") (number_literal "0x34")) () ")")))) (== "==") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x48) = 0;\n    FUN_000c0610(iVar2);\n    *(undefined1 *)(param_1 + 0x18) = uVar1;\n    return 0;\n  }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x48) = 0;" (assignment_expression "*(undefined4 *)(param_1 + 0x48) = 0" (pointer_expression "*(undefined4 *)(param_1 + 0x48)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x48)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x48)" (( "(") (binary_expression "param_1 + 0x48" (identifier "param_1") (+ "+") (number_literal "0x48")) () ")")))) (= "=") (number_literal "0")) (; ";")) (expression_statement "FUN_000c0610(iVar2);" (call_expression "FUN_000c0610(iVar2)" (identifier "FUN_000c0610") (argument_list "(iVar2)" (( "(") (identifier "iVar2") () ")"))) (; ";")) (expression_statement "*(undefined1 *)(param_1 + 0x18) = uVar1;" (assignment_expression "*(undefined1 *)(param_1 + 0x18) = uVar1" (pointer_expression "*(undefined1 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}"))) (expression_statement "*(undefined1 *)(param_1 + 0x18) = uVar1;" (assignment_expression "*(undefined1 *)(param_1 + 0x18) = uVar1" (pointer_expression "*(undefined1 *)(param_1 + 0x18)" (* "*") (cast_expression "(undefined1 *)(param_1 + 0x18)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x18)" (( "(") (binary_expression "param_1 + 0x18" (identifier "param_1") (+ "+") (number_literal "0x18")) () ")")))) (= "=") (identifier "uVar1")) (; ";")) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

int function_1(type_1 *pVtab,int iSavepoint)

{
  type_2 uVar1;
  type_3 *var_1;
  
  var_1 = pVtab[6].pModule;
  uVar1 = *(type_2 *)&pVtab[2].pModule;
  *(type_2 *)&pVtab[2].pModule = 0;
  if ((var_1 != (type_3 *)0x0) && (pVtab[4].nRef == 0)) {
    pVtab[6].pModule = (type_3 *)0x0;
    var_2((type_4 *)var_1);
    *(type_2 *)&pVtab[2].pModule = uVar1;
    return 0;
  }
  *(type_2 *)&pVtab[2].pModule = uVar1;
  return 0;
}


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

undefined4 MASKED(int param_1)

{
  undefined1 uVar1;
  int iVar2;
  
  iVar2 = *(int *)(param_1 + 0x48);
  uVar1 = *(undefined1 *)(param_1 + 0x18);
  *(undefined1 *)(param_1 + 0x18) = 0;
  if ((iVar2 != 0) && (*(int *)(param_1 + 0x34) == 0)) {
    *(undefined4 *)(param_1 + 0x48) = 0;
    FUN_000c0610(iVar2);
    *(undefined1 *)(param_1 + 0x18) = uVar1;
    return 0;
  }
  *(undefined1 *)(param_1 + 0x18) = uVar1;
  return 0;
}

