
/* WARNING: Unknown calling convention */

int unixSectorSize(sqlite3_file *id)

{
  uint *puVar1;
  
  if (*(int *)&id[0xe].pMethods == 0) {
    if (((ulong)id[3].pMethods & 0x10000000000000) != 0) {
      puVar1 = (uint *)((long)&id[0xe].pMethods + 4);
      *puVar1 = *puVar1 | 0x1000;
    }
    *(undefined4 *)&id[0xe].pMethods = 0x1000;
  }
  return *(int *)&id[0xe].pMethods;
}



undefined4 FUN_0010db37(long param_1)

{
  if (*(int *)(param_1 + 0x70) == 0) {
    if ((*(byte *)(param_1 + 0x1e) & 0x10) != 0) {
      *(uint *)(param_1 + 0x74) = *(uint *)(param_1 + 0x74) | 0x1000;
    }
    *(undefined4 *)(param_1 + 0x70) = 0x1000;
  }
  return *(undefined4 *)(param_1 + 0x70);
}


CMP dword ptr [RDI + 0x70],0x0
JNZ 0x0010db51
TEST byte ptr [RDI + 0x1e],0x10
JZ 0x0010db4a
OR dword ptr [RDI + 0x74],0x1000
MOV dword ptr [RDI + 0x70],0x1000
MOV EAX,dword ptr [RDI + 0x70]
RET
(translation_unit "undefined4 FUN_0010db37(long param_1)\n\n{\n  if (*(int *)(param_1 + 0x70) == 0) {\n    if ((*(byte *)(param_1 + 0x1e) & 0x10) != 0) {\n      *(uint *)(param_1 + 0x74) = *(uint *)(param_1 + 0x74) | 0x1000;\n    }\n    *(undefined4 *)(param_1 + 0x70) = 0x1000;\n  }\n  return *(undefined4 *)(param_1 + 0x70);\n}\n\n" (function_definition "undefined4 FUN_0010db37(long param_1)\n\n{\n  if (*(int *)(param_1 + 0x70) == 0) {\n    if ((*(byte *)(param_1 + 0x1e) & 0x10) != 0) {\n      *(uint *)(param_1 + 0x74) = *(uint *)(param_1 + 0x74) | 0x1000;\n    }\n    *(undefined4 *)(param_1 + 0x70) = 0x1000;\n  }\n  return *(undefined4 *)(param_1 + 0x70);\n}" type_identifier (function_declarator "FUN_0010db37(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  if (*(int *)(param_1 + 0x70) == 0) {\n    if ((*(byte *)(param_1 + 0x1e) & 0x10) != 0) {\n      *(uint *)(param_1 + 0x74) = *(uint *)(param_1 + 0x74) | 0x1000;\n    }\n    *(undefined4 *)(param_1 + 0x70) = 0x1000;\n  }\n  return *(undefined4 *)(param_1 + 0x70);\n}" { (if_statement "if (*(int *)(param_1 + 0x70) == 0) {\n    if ((*(byte *)(param_1 + 0x1e) & 0x10) != 0) {\n      *(uint *)(param_1 + 0x74) = *(uint *)(param_1 + 0x74) | 0x1000;\n    }\n    *(undefined4 *)(param_1 + 0x70) = 0x1000;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x70) == 0)" ( (binary_expression "*(int *)(param_1 + 0x70) == 0" (pointer_expression "*(int *)(param_1 + 0x70)" * (cast_expression "(int *)(param_1 + 0x70)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    if ((*(byte *)(param_1 + 0x1e) & 0x10) != 0) {\n      *(uint *)(param_1 + 0x74) = *(uint *)(param_1 + 0x74) | 0x1000;\n    }\n    *(undefined4 *)(param_1 + 0x70) = 0x1000;\n  }" { (if_statement "if ((*(byte *)(param_1 + 0x1e) & 0x10) != 0) {\n      *(uint *)(param_1 + 0x74) = *(uint *)(param_1 + 0x74) | 0x1000;\n    }" if (parenthesized_expression "((*(byte *)(param_1 + 0x1e) & 0x10) != 0)" ( (binary_expression "(*(byte *)(param_1 + 0x1e) & 0x10) != 0" (parenthesized_expression "(*(byte *)(param_1 + 0x1e) & 0x10)" ( (binary_expression "*(byte *)(param_1 + 0x1e) & 0x10" (pointer_expression "*(byte *)(param_1 + 0x1e)" * (cast_expression "(byte *)(param_1 + 0x1e)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1e)" ( (binary_expression "param_1 + 0x1e" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n      *(uint *)(param_1 + 0x74) = *(uint *)(param_1 + 0x74) | 0x1000;\n    }" { (expression_statement "*(uint *)(param_1 + 0x74) = *(uint *)(param_1 + 0x74) | 0x1000;" (assignment_expression "*(uint *)(param_1 + 0x74) = *(uint *)(param_1 + 0x74) | 0x1000" (pointer_expression "*(uint *)(param_1 + 0x74)" * (cast_expression "(uint *)(param_1 + 0x74)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_1 + 0x74) | 0x1000" (pointer_expression "*(uint *)(param_1 + 0x74)" * (cast_expression "(uint *)(param_1 + 0x74)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) | number_literal)) ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x70) = 0x1000;" (assignment_expression "*(undefined4 *)(param_1 + 0x70) = 0x1000" (pointer_expression "*(undefined4 *)(param_1 + 0x70)" * (cast_expression "(undefined4 *)(param_1 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) = number_literal) ;) })) (return_statement "return *(undefined4 *)(param_1 + 0x70);" return (pointer_expression "*(undefined4 *)(param_1 + 0x70)" * (cast_expression "(undefined4 *)(param_1 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nint unixSectorSize(sqlite3_file *id)\n\n{\n  uint *puVar1;\n  \n  if (*(int *)&id[0xe].pMethods == 0) {\n    if (((ulong)id[3].pMethods & 0x10000000000000) != 0) {\n      puVar1 = (uint *)((long)&id[0xe].pMethods + 4);\n      *puVar1 = *puVar1 | 0x1000;\n    }\n    *(undefined4 *)&id[0xe].pMethods = 0x1000;\n  }\n  return *(int *)&id[0xe].pMethods;\n}\n\n" comment (function_definition "int unixSectorSize(sqlite3_file *id)\n\n{\n  uint *puVar1;\n  \n  if (*(int *)&id[0xe].pMethods == 0) {\n    if (((ulong)id[3].pMethods & 0x10000000000000) != 0) {\n      puVar1 = (uint *)((long)&id[0xe].pMethods + 4);\n      *puVar1 = *puVar1 | 0x1000;\n    }\n    *(undefined4 *)&id[0xe].pMethods = 0x1000;\n  }\n  return *(int *)&id[0xe].pMethods;\n}" primitive_type (function_declarator "unixSectorSize(sqlite3_file *id)" identifier (parameter_list "(sqlite3_file *id)" ( (parameter_declaration "sqlite3_file *id" type_identifier (pointer_declarator "*id" * identifier)) ))) (compound_statement "{\n  uint *puVar1;\n  \n  if (*(int *)&id[0xe].pMethods == 0) {\n    if (((ulong)id[3].pMethods & 0x10000000000000) != 0) {\n      puVar1 = (uint *)((long)&id[0xe].pMethods + 4);\n      *puVar1 = *puVar1 | 0x1000;\n    }\n    *(undefined4 *)&id[0xe].pMethods = 0x1000;\n  }\n  return *(int *)&id[0xe].pMethods;\n}" { (declaration "uint *puVar1;" type_identifier (pointer_declarator "*puVar1" * identifier) ;) (if_statement "if (*(int *)&id[0xe].pMethods == 0) {\n    if (((ulong)id[3].pMethods & 0x10000000000000) != 0) {\n      puVar1 = (uint *)((long)&id[0xe].pMethods + 4);\n      *puVar1 = *puVar1 | 0x1000;\n    }\n    *(undefined4 *)&id[0xe].pMethods = 0x1000;\n  }" if (parenthesized_expression "(*(int *)&id[0xe].pMethods == 0)" ( (binary_expression "*(int *)&id[0xe].pMethods == 0" (pointer_expression "*(int *)&id[0xe].pMethods" * (cast_expression "(int *)&id[0xe].pMethods" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&id[0xe].pMethods" & (field_expression "id[0xe].pMethods" (subscript_expression "id[0xe]" identifier [ number_literal ]) . field_identifier)))) == number_literal) )) (compound_statement "{\n    if (((ulong)id[3].pMethods & 0x10000000000000) != 0) {\n      puVar1 = (uint *)((long)&id[0xe].pMethods + 4);\n      *puVar1 = *puVar1 | 0x1000;\n    }\n    *(undefined4 *)&id[0xe].pMethods = 0x1000;\n  }" { (if_statement "if (((ulong)id[3].pMethods & 0x10000000000000) != 0) {\n      puVar1 = (uint *)((long)&id[0xe].pMethods + 4);\n      *puVar1 = *puVar1 | 0x1000;\n    }" if (parenthesized_expression "(((ulong)id[3].pMethods & 0x10000000000000) != 0)" ( (binary_expression "((ulong)id[3].pMethods & 0x10000000000000) != 0" (parenthesized_expression "((ulong)id[3].pMethods & 0x10000000000000)" ( (binary_expression "(ulong)id[3].pMethods & 0x10000000000000" (cast_expression "(ulong)id[3].pMethods" ( (type_descriptor "ulong" type_identifier) ) (field_expression "id[3].pMethods" (subscript_expression "id[3]" identifier [ number_literal ]) . field_identifier)) & number_literal) )) != number_literal) )) (compound_statement "{\n      puVar1 = (uint *)((long)&id[0xe].pMethods + 4);\n      *puVar1 = *puVar1 | 0x1000;\n    }" { (expression_statement "puVar1 = (uint *)((long)&id[0xe].pMethods + 4);" (assignment_expression "puVar1 = (uint *)((long)&id[0xe].pMethods + 4)" identifier = (cast_expression "(uint *)((long)&id[0xe].pMethods + 4)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "((long)&id[0xe].pMethods + 4)" ( (binary_expression "(long)&id[0xe].pMethods + 4" (cast_expression "(long)&id[0xe].pMethods" ( (type_descriptor "long" (sized_type_specifier "long" long)) ) (pointer_expression "&id[0xe].pMethods" & (field_expression "id[0xe].pMethods" (subscript_expression "id[0xe]" identifier [ number_literal ]) . field_identifier))) + number_literal) )))) ;) (expression_statement "*puVar1 = *puVar1 | 0x1000;" (assignment_expression "*puVar1 = *puVar1 | 0x1000" (pointer_expression "*puVar1" * identifier) = (binary_expression "*puVar1 | 0x1000" (pointer_expression "*puVar1" * identifier) | number_literal)) ;) })) (expression_statement "*(undefined4 *)&id[0xe].pMethods = 0x1000;" (assignment_expression "*(undefined4 *)&id[0xe].pMethods = 0x1000" (pointer_expression "*(undefined4 *)&id[0xe].pMethods" * (cast_expression "(undefined4 *)&id[0xe].pMethods" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (pointer_expression "&id[0xe].pMethods" & (field_expression "id[0xe].pMethods" (subscript_expression "id[0xe]" identifier [ number_literal ]) . field_identifier)))) = number_literal) ;) })) (return_statement "return *(int *)&id[0xe].pMethods;" return (pointer_expression "*(int *)&id[0xe].pMethods" * (cast_expression "(int *)&id[0xe].pMethods" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (pointer_expression "&id[0xe].pMethods" & (field_expression "id[0xe].pMethods" (subscript_expression "id[0xe]" identifier [ number_literal ]) . field_identifier)))) ;) })))
(translation_unit "undefined4 FUN_0010db37(long param_1)\n\n{\n  if (*(int *)(param_1 + 0x70) == 0) {\n    if ((*(byte *)(param_1 + 0x1e) & 0x10) != 0) {\n      *(uint *)(param_1 + 0x74) = *(uint *)(param_1 + 0x74) | 0x1000;\n    }\n    *(undefined4 *)(param_1 + 0x70) = 0x1000;\n  }\n  return *(undefined4 *)(param_1 + 0x70);\n}\n\n" (function_definition "undefined4 FUN_0010db37(long param_1)\n\n{\n  if (*(int *)(param_1 + 0x70) == 0) {\n    if ((*(byte *)(param_1 + 0x1e) & 0x10) != 0) {\n      *(uint *)(param_1 + 0x74) = *(uint *)(param_1 + 0x74) | 0x1000;\n    }\n    *(undefined4 *)(param_1 + 0x70) = 0x1000;\n  }\n  return *(undefined4 *)(param_1 + 0x70);\n}" type_identifier (function_declarator "FUN_0010db37(long param_1)" identifier (parameter_list "(long param_1)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  if (*(int *)(param_1 + 0x70) == 0) {\n    if ((*(byte *)(param_1 + 0x1e) & 0x10) != 0) {\n      *(uint *)(param_1 + 0x74) = *(uint *)(param_1 + 0x74) | 0x1000;\n    }\n    *(undefined4 *)(param_1 + 0x70) = 0x1000;\n  }\n  return *(undefined4 *)(param_1 + 0x70);\n}" { (if_statement "if (*(int *)(param_1 + 0x70) == 0) {\n    if ((*(byte *)(param_1 + 0x1e) & 0x10) != 0) {\n      *(uint *)(param_1 + 0x74) = *(uint *)(param_1 + 0x74) | 0x1000;\n    }\n    *(undefined4 *)(param_1 + 0x70) = 0x1000;\n  }" if (parenthesized_expression "(*(int *)(param_1 + 0x70) == 0)" ( (binary_expression "*(int *)(param_1 + 0x70) == 0" (pointer_expression "*(int *)(param_1 + 0x70)" * (cast_expression "(int *)(param_1 + 0x70)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) == number_literal) )) (compound_statement "{\n    if ((*(byte *)(param_1 + 0x1e) & 0x10) != 0) {\n      *(uint *)(param_1 + 0x74) = *(uint *)(param_1 + 0x74) | 0x1000;\n    }\n    *(undefined4 *)(param_1 + 0x70) = 0x1000;\n  }" { (if_statement "if ((*(byte *)(param_1 + 0x1e) & 0x10) != 0) {\n      *(uint *)(param_1 + 0x74) = *(uint *)(param_1 + 0x74) | 0x1000;\n    }" if (parenthesized_expression "((*(byte *)(param_1 + 0x1e) & 0x10) != 0)" ( (binary_expression "(*(byte *)(param_1 + 0x1e) & 0x10) != 0" (parenthesized_expression "(*(byte *)(param_1 + 0x1e) & 0x10)" ( (binary_expression "*(byte *)(param_1 + 0x1e) & 0x10" (pointer_expression "*(byte *)(param_1 + 0x1e)" * (cast_expression "(byte *)(param_1 + 0x1e)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x1e)" ( (binary_expression "param_1 + 0x1e" identifier + number_literal) )))) & number_literal) )) != number_literal) )) (compound_statement "{\n      *(uint *)(param_1 + 0x74) = *(uint *)(param_1 + 0x74) | 0x1000;\n    }" { (expression_statement "*(uint *)(param_1 + 0x74) = *(uint *)(param_1 + 0x74) | 0x1000;" (assignment_expression "*(uint *)(param_1 + 0x74) = *(uint *)(param_1 + 0x74) | 0x1000" (pointer_expression "*(uint *)(param_1 + 0x74)" * (cast_expression "(uint *)(param_1 + 0x74)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) = (binary_expression "*(uint *)(param_1 + 0x74) | 0x1000" (pointer_expression "*(uint *)(param_1 + 0x74)" * (cast_expression "(uint *)(param_1 + 0x74)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x74)" ( (binary_expression "param_1 + 0x74" identifier + number_literal) )))) | number_literal)) ;) })) (expression_statement "*(undefined4 *)(param_1 + 0x70) = 0x1000;" (assignment_expression "*(undefined4 *)(param_1 + 0x70) = 0x1000" (pointer_expression "*(undefined4 *)(param_1 + 0x70)" * (cast_expression "(undefined4 *)(param_1 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + number_literal) )))) = number_literal) ;) })) (return_statement "return *(undefined4 *)(param_1 + 0x70);" return (pointer_expression "*(undefined4 *)(param_1 + 0x70)" * (cast_expression "(undefined4 *)(param_1 + 0x70)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x70)" ( (binary_expression "param_1 + 0x70" identifier + 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 TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) == LIT) )) (compound_statement { (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) )))) & LIT) )) != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) | LIT)) ;) })) (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (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 IDENT + LIT) )))) ;) })))
(function_definition "undefined4 FUN_0010db37(long param_1)\n\n{\n  if (*(int *)(param_1 + 0x70) == 0) {\n    if ((*(byte *)(param_1 + 0x1e) & 0x10) != 0) {\n      *(uint *)(param_1 + 0x74) = *(uint *)(param_1 + 0x74) | 0x1000;\n    }\n    *(undefined4 *)(param_1 + 0x70) = 0x1000;\n  }\n  return *(undefined4 *)(param_1 + 0x70);\n}" (type_identifier "undefined4") (function_declarator "FUN_0010db37(long param_1)" (identifier "FUN_0010db37") (parameter_list "(long param_1)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) () ")"))) (compound_statement "{\n  if (*(int *)(param_1 + 0x70) == 0) {\n    if ((*(byte *)(param_1 + 0x1e) & 0x10) != 0) {\n      *(uint *)(param_1 + 0x74) = *(uint *)(param_1 + 0x74) | 0x1000;\n    }\n    *(undefined4 *)(param_1 + 0x70) = 0x1000;\n  }\n  return *(undefined4 *)(param_1 + 0x70);\n}" ({ "{") (if_statement "if (*(int *)(param_1 + 0x70) == 0) {\n    if ((*(byte *)(param_1 + 0x1e) & 0x10) != 0) {\n      *(uint *)(param_1 + 0x74) = *(uint *)(param_1 + 0x74) | 0x1000;\n    }\n    *(undefined4 *)(param_1 + 0x70) = 0x1000;\n  }" (if "if") (parenthesized_expression "(*(int *)(param_1 + 0x70) == 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x70) == 0" (pointer_expression "*(int *)(param_1 + 0x70)" (* "*") (cast_expression "(int *)(param_1 + 0x70)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x70)" (( "(") (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) () ")")))) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if ((*(byte *)(param_1 + 0x1e) & 0x10) != 0) {\n      *(uint *)(param_1 + 0x74) = *(uint *)(param_1 + 0x74) | 0x1000;\n    }\n    *(undefined4 *)(param_1 + 0x70) = 0x1000;\n  }" ({ "{") (if_statement "if ((*(byte *)(param_1 + 0x1e) & 0x10) != 0) {\n      *(uint *)(param_1 + 0x74) = *(uint *)(param_1 + 0x74) | 0x1000;\n    }" (if "if") (parenthesized_expression "((*(byte *)(param_1 + 0x1e) & 0x10) != 0)" (( "(") (binary_expression "(*(byte *)(param_1 + 0x1e) & 0x10) != 0" (parenthesized_expression "(*(byte *)(param_1 + 0x1e) & 0x10)" (( "(") (binary_expression "*(byte *)(param_1 + 0x1e) & 0x10" (pointer_expression "*(byte *)(param_1 + 0x1e)" (* "*") (cast_expression "(byte *)(param_1 + 0x1e)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x1e)" (( "(") (binary_expression "param_1 + 0x1e" (identifier "param_1") (+ "+") (number_literal "0x1e")) () ")")))) (& "&") (number_literal "0x10")) () ")")) (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n      *(uint *)(param_1 + 0x74) = *(uint *)(param_1 + 0x74) | 0x1000;\n    }" ({ "{") (expression_statement "*(uint *)(param_1 + 0x74) = *(uint *)(param_1 + 0x74) | 0x1000;" (assignment_expression "*(uint *)(param_1 + 0x74) = *(uint *)(param_1 + 0x74) | 0x1000" (pointer_expression "*(uint *)(param_1 + 0x74)" (* "*") (cast_expression "(uint *)(param_1 + 0x74)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x74)" (( "(") (binary_expression "param_1 + 0x74" (identifier "param_1") (+ "+") (number_literal "0x74")) () ")")))) (= "=") (binary_expression "*(uint *)(param_1 + 0x74) | 0x1000" (pointer_expression "*(uint *)(param_1 + 0x74)" (* "*") (cast_expression "(uint *)(param_1 + 0x74)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x74)" (( "(") (binary_expression "param_1 + 0x74" (identifier "param_1") (+ "+") (number_literal "0x74")) () ")")))) (| "|") (number_literal "0x1000"))) (; ";")) (} "}"))) (expression_statement "*(undefined4 *)(param_1 + 0x70) = 0x1000;" (assignment_expression "*(undefined4 *)(param_1 + 0x70) = 0x1000" (pointer_expression "*(undefined4 *)(param_1 + 0x70)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x70)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x70)" (( "(") (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) () ")")))) (= "=") (number_literal "0x1000")) (; ";")) (} "}"))) (return_statement "return *(undefined4 *)(param_1 + 0x70);" (return "return") (pointer_expression "*(undefined4 *)(param_1 + 0x70)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x70)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x70)" (( "(") (binary_expression "param_1 + 0x70" (identifier "param_1") (+ "+") (number_literal "0x70")) () ")")))) (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

int function_1(type_1 *id)

{
  type_2 *puVar1;
  
  if (*(int *)&id[0xe].pMethods == 0) {
    if (((type_3)id[3].pMethods & 0x10000000000000) != 0) {
      puVar1 = (type_2 *)((long)&id[0xe].pMethods + 4);
      *puVar1 = *puVar1 | 0x1000;
    }
    *(type_4 *)&id[0xe].pMethods = 0x1000;
  }
  return *(int *)&id[0xe].pMethods;
}


(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: (primitive_type) declarator: (abstract_pointer_declarator)) value: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))))) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_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))) 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: (binary_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 (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 (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)))))))))

undefined4 MASKED(long param_1)

{
  if (*(int *)(param_1 + 0x70) == 0) {
    if ((*(byte *)(param_1 + 0x1e) & 0x10) != 0) {
      *(uint *)(param_1 + 0x74) = *(uint *)(param_1 + 0x74) | 0x1000;
    }
    *(undefined4 *)(param_1 + 0x70) = 0x1000;
  }
  return *(undefined4 *)(param_1 + 0x70);
}

