
/* WARNING: Unknown calling convention */

i64 fts5CursorRowid(Fts5Cursor *pCsr)

{
  if (pCsr->pSorter != (Fts5Sorter *)0x0) {
    return pCsr->pSorter->iRowid;
  }
  return pCsr->pExpr->pRoot->iRowid;
}



undefined8 FUN_0013544d(long param_1)

{
  if (*(long *)(param_1 + 0x48) != 0) {
    return *(undefined8 *)(*(long *)(param_1 + 0x48) + 8);
  }
  return *(undefined8 *)(*(long *)(*(long *)(param_1 + 0x40) + 0x10) + 0x18);
}


MOV RAX,qword ptr [RDI + 0x48]
TEST RAX,RAX
JZ 0x0013545b
MOV RAX,qword ptr [RAX + 0x8]
RET
MOV RAX,qword ptr [RDI + 0x40]
MOV RAX,qword ptr [RAX + 0x10]
MOV RAX,qword ptr [RAX + 0x18]
RET
(translation_unit "undefined8 FUN_0013544d(long param_1)\n\n{\n  if (*(long *)(param_1 + 0x48) != 0) {\n    return *(undefined8 *)(*(long *)(param_1 + 0x48) + 8);\n  }\n  return *(undefined8 *)(*(long *)(*(long *)(param_1 + 0x40) + 0x10) + 0x18);\n}\n\n" (function_definition "undefined8 FUN_0013544d(long param_1)\n\n{\n  if (*(long *)(param_1 + 0x48) != 0) {\n    return *(undefined8 *)(*(long *)(param_1 + 0x48) + 8);\n  }\n  return *(undefined8 *)(*(long *)(*(long *)(param_1 + 0x40) + 0x10) + 0x18);\n}" type_identifier (function_declarator "FUN_0013544d(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  if (*(long *)(param_1 + 0x48) != 0) {\n    return *(undefined8 *)(*(long *)(param_1 + 0x48) + 8);\n  }\n  return *(undefined8 *)(*(long *)(*(long *)(param_1 + 0x40) + 0x10) + 0x18);\n}" { (if_statement "if (*(long *)(param_1 + 0x48) != 0) {\n    return *(undefined8 *)(*(long *)(param_1 + 0x48) + 8);\n  }" if (parenthesized_expression "(*(long *)(param_1 + 0x48) != 0)" ( (binary_expression "*(long *)(param_1 + 0x48) != 0" (pointer_expression "*(long *)(param_1 + 0x48)" * (cast_expression "(long *)(param_1 + 0x48)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    return *(undefined8 *)(*(long *)(param_1 + 0x48) + 8);\n  }" { (return_statement "return *(undefined8 *)(*(long *)(param_1 + 0x48) + 8);" return (pointer_expression "*(undefined8 *)(*(long *)(param_1 + 0x48) + 8)" * (cast_expression "(undefined8 *)(*(long *)(param_1 + 0x48) + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x48) + 8)" ( (binary_expression "*(long *)(param_1 + 0x48) + 8" (pointer_expression "*(long *)(param_1 + 0x48)" * (cast_expression "(long *)(param_1 + 0x48)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) + number_literal) )))) ;) })) (return_statement "return *(undefined8 *)(*(long *)(*(long *)(param_1 + 0x40) + 0x10) + 0x18);" return (pointer_expression "*(undefined8 *)(*(long *)(*(long *)(param_1 + 0x40) + 0x10) + 0x18)" * (cast_expression "(undefined8 *)(*(long *)(*(long *)(param_1 + 0x40) + 0x10) + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(*(long *)(param_1 + 0x40) + 0x10) + 0x18)" ( (binary_expression "*(long *)(*(long *)(param_1 + 0x40) + 0x10) + 0x18" (pointer_expression "*(long *)(*(long *)(param_1 + 0x40) + 0x10)" * (cast_expression "(long *)(*(long *)(param_1 + 0x40) + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x40) + 0x10)" ( (binary_expression "*(long *)(param_1 + 0x40) + 0x10" (pointer_expression "*(long *)(param_1 + 0x40)" * (cast_expression "(long *)(param_1 + 0x40)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) + number_literal) )))) + number_literal) )))) ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\ni64 fts5CursorRowid(Fts5Cursor *pCsr)\n\n{\n  if (pCsr->pSorter != (Fts5Sorter *)0x0) {\n    return pCsr->pSorter->iRowid;\n  }\n  return pCsr->pExpr->pRoot->iRowid;\n}\n\n" comment (function_definition "i64 fts5CursorRowid(Fts5Cursor *pCsr)\n\n{\n  if (pCsr->pSorter != (Fts5Sorter *)0x0) {\n    return pCsr->pSorter->iRowid;\n  }\n  return pCsr->pExpr->pRoot->iRowid;\n}" type_identifier (function_declarator "fts5CursorRowid(Fts5Cursor *pCsr)" identifier (parameter_list "(Fts5Cursor *pCsr)" ( (parameter_declaration "Fts5Cursor *pCsr" type_identifier (pointer_declarator "*pCsr" * identifier)) ))) (compound_statement "{\n  if (pCsr->pSorter != (Fts5Sorter *)0x0) {\n    return pCsr->pSorter->iRowid;\n  }\n  return pCsr->pExpr->pRoot->iRowid;\n}" { (if_statement "if (pCsr->pSorter != (Fts5Sorter *)0x0) {\n    return pCsr->pSorter->iRowid;\n  }" if (parenthesized_expression "(pCsr->pSorter != (Fts5Sorter *)0x0)" ( (binary_expression "pCsr->pSorter != (Fts5Sorter *)0x0" (field_expression "pCsr->pSorter" identifier -> field_identifier) != (cast_expression "(Fts5Sorter *)0x0" ( (type_descriptor "Fts5Sorter *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) (compound_statement "{\n    return pCsr->pSorter->iRowid;\n  }" { (return_statement "return pCsr->pSorter->iRowid;" return (field_expression "pCsr->pSorter->iRowid" (field_expression "pCsr->pSorter" identifier -> field_identifier) -> field_identifier) ;) })) (return_statement "return pCsr->pExpr->pRoot->iRowid;" return (field_expression "pCsr->pExpr->pRoot->iRowid" (field_expression "pCsr->pExpr->pRoot" (field_expression "pCsr->pExpr" identifier -> field_identifier) -> field_identifier) -> field_identifier) ;) })))
(translation_unit "undefined8 FUN_0013544d(long param_1)\n\n{\n  if (*(long *)(param_1 + 0x48) != 0) {\n    return *(undefined8 *)(*(long *)(param_1 + 0x48) + 8);\n  }\n  return *(undefined8 *)(*(long *)(*(long *)(param_1 + 0x40) + 0x10) + 0x18);\n}\n\n" (function_definition "undefined8 FUN_0013544d(long param_1)\n\n{\n  if (*(long *)(param_1 + 0x48) != 0) {\n    return *(undefined8 *)(*(long *)(param_1 + 0x48) + 8);\n  }\n  return *(undefined8 *)(*(long *)(*(long *)(param_1 + 0x40) + 0x10) + 0x18);\n}" type_identifier (function_declarator "FUN_0013544d(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  if (*(long *)(param_1 + 0x48) != 0) {\n    return *(undefined8 *)(*(long *)(param_1 + 0x48) + 8);\n  }\n  return *(undefined8 *)(*(long *)(*(long *)(param_1 + 0x40) + 0x10) + 0x18);\n}" { (if_statement "if (*(long *)(param_1 + 0x48) != 0) {\n    return *(undefined8 *)(*(long *)(param_1 + 0x48) + 8);\n  }" if (parenthesized_expression "(*(long *)(param_1 + 0x48) != 0)" ( (binary_expression "*(long *)(param_1 + 0x48) != 0" (pointer_expression "*(long *)(param_1 + 0x48)" * (cast_expression "(long *)(param_1 + 0x48)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) != number_literal) )) (compound_statement "{\n    return *(undefined8 *)(*(long *)(param_1 + 0x48) + 8);\n  }" { (return_statement "return *(undefined8 *)(*(long *)(param_1 + 0x48) + 8);" return (pointer_expression "*(undefined8 *)(*(long *)(param_1 + 0x48) + 8)" * (cast_expression "(undefined8 *)(*(long *)(param_1 + 0x48) + 8)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x48) + 8)" ( (binary_expression "*(long *)(param_1 + 0x48) + 8" (pointer_expression "*(long *)(param_1 + 0x48)" * (cast_expression "(long *)(param_1 + 0x48)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x48)" ( (binary_expression "param_1 + 0x48" identifier + number_literal) )))) + number_literal) )))) ;) })) (return_statement "return *(undefined8 *)(*(long *)(*(long *)(param_1 + 0x40) + 0x10) + 0x18);" return (pointer_expression "*(undefined8 *)(*(long *)(*(long *)(param_1 + 0x40) + 0x10) + 0x18)" * (cast_expression "(undefined8 *)(*(long *)(*(long *)(param_1 + 0x40) + 0x10) + 0x18)" ( (type_descriptor "undefined8 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(*(long *)(param_1 + 0x40) + 0x10) + 0x18)" ( (binary_expression "*(long *)(*(long *)(param_1 + 0x40) + 0x10) + 0x18" (pointer_expression "*(long *)(*(long *)(param_1 + 0x40) + 0x10)" * (cast_expression "(long *)(*(long *)(param_1 + 0x40) + 0x10)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(*(long *)(param_1 + 0x40) + 0x10)" ( (binary_expression "*(long *)(param_1 + 0x40) + 0x10" (pointer_expression "*(long *)(param_1 + 0x40)" * (cast_expression "(long *)(param_1 + 0x40)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x40)" ( (binary_expression "param_1 + 0x40" identifier + number_literal) )))) + number_literal) )))) + number_literal) )))) ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) )) (compound_statement { (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) ;) })) (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor (sized_type_specifier long) (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) + LIT) )))) + LIT) )))) ;) })))
(function_definition "undefined8 FUN_0013544d(long param_1)\n\n{\n  if (*(long *)(param_1 + 0x48) != 0) {\n    return *(undefined8 *)(*(long *)(param_1 + 0x48) + 8);\n  }\n  return *(undefined8 *)(*(long *)(*(long *)(param_1 + 0x40) + 0x10) + 0x18);\n}" (type_identifier "undefined8") (function_declarator "FUN_0013544d(long param_1)" (identifier "FUN_0013544d") (parameter_list "(long param_1)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) () ")"))) (compound_statement "{\n  if (*(long *)(param_1 + 0x48) != 0) {\n    return *(undefined8 *)(*(long *)(param_1 + 0x48) + 8);\n  }\n  return *(undefined8 *)(*(long *)(*(long *)(param_1 + 0x40) + 0x10) + 0x18);\n}" ({ "{") (if_statement "if (*(long *)(param_1 + 0x48) != 0) {\n    return *(undefined8 *)(*(long *)(param_1 + 0x48) + 8);\n  }" (if "if") (parenthesized_expression "(*(long *)(param_1 + 0x48) != 0)" (( "(") (binary_expression "*(long *)(param_1 + 0x48) != 0" (pointer_expression "*(long *)(param_1 + 0x48)" (* "*") (cast_expression "(long *)(param_1 + 0x48)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x48)" (( "(") (binary_expression "param_1 + 0x48" (identifier "param_1") (+ "+") (number_literal "0x48")) () ")")))) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    return *(undefined8 *)(*(long *)(param_1 + 0x48) + 8);\n  }" ({ "{") (return_statement "return *(undefined8 *)(*(long *)(param_1 + 0x48) + 8);" (return "return") (pointer_expression "*(undefined8 *)(*(long *)(param_1 + 0x48) + 8)" (* "*") (cast_expression "(undefined8 *)(*(long *)(param_1 + 0x48) + 8)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_1 + 0x48) + 8)" (( "(") (binary_expression "*(long *)(param_1 + 0x48) + 8" (pointer_expression "*(long *)(param_1 + 0x48)" (* "*") (cast_expression "(long *)(param_1 + 0x48)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x48)" (( "(") (binary_expression "param_1 + 0x48" (identifier "param_1") (+ "+") (number_literal "0x48")) () ")")))) (+ "+") (number_literal "8")) () ")")))) (; ";")) (} "}"))) (return_statement "return *(undefined8 *)(*(long *)(*(long *)(param_1 + 0x40) + 0x10) + 0x18);" (return "return") (pointer_expression "*(undefined8 *)(*(long *)(*(long *)(param_1 + 0x40) + 0x10) + 0x18)" (* "*") (cast_expression "(undefined8 *)(*(long *)(*(long *)(param_1 + 0x40) + 0x10) + 0x18)" (( "(") (type_descriptor "undefined8 *" (type_identifier "undefined8") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(*(long *)(param_1 + 0x40) + 0x10) + 0x18)" (( "(") (binary_expression "*(long *)(*(long *)(param_1 + 0x40) + 0x10) + 0x18" (pointer_expression "*(long *)(*(long *)(param_1 + 0x40) + 0x10)" (* "*") (cast_expression "(long *)(*(long *)(param_1 + 0x40) + 0x10)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(*(long *)(param_1 + 0x40) + 0x10)" (( "(") (binary_expression "*(long *)(param_1 + 0x40) + 0x10" (pointer_expression "*(long *)(param_1 + 0x40)" (* "*") (cast_expression "(long *)(param_1 + 0x40)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x40)" (( "(") (binary_expression "param_1 + 0x40" (identifier "param_1") (+ "+") (number_literal "0x40")) () ")")))) (+ "+") (number_literal "0x10")) () ")")))) (+ "+") (number_literal "0x18")) () ")")))) (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

type_1 function_1(type_2 *pCsr)

{
  if (pCsr->pSorter != (type_3 *)0x0) {
    return pCsr->pSorter->iRowid;
  }
  return pCsr->pExpr->pRoot->iRowid;
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (return_statement (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal)))))))) (return_statement (pointer_expression argument: (cast_expression type: (type_descriptor type: (type_identifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (pointer_expression argument: (cast_expression type: (type_descriptor type: (sized_type_specifier) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))))) right: (number_literal)))))))))

undefined8 MASKED(long param_1)

{
  if (*(long *)(param_1 + 0x48) != 0) {
    return *(undefined8 *)(*(long *)(param_1 + 0x48) + 8);
  }
  return *(undefined8 *)(*(long *)(*(long *)(param_1 + 0x40) + 0x10) + 0x18);
}

