
/* WARNING: Unknown calling convention */

int sqlite3_blob_bytes(sqlite3_blob *pBlob)

{
  int iVar1;
  Incrblob *p;
  
  iVar1 = 0;
  if ((pBlob != (sqlite3_blob *)0x0) && (*(long *)(pBlob + 0x18) != 0)) {
    iVar1 = *(int *)pBlob;
  }
  return iVar1;
}



undefined4 FUN_0012d833(undefined4 *param_1)

{
  undefined4 uVar1;
  
  uVar1 = 0;
  if ((param_1 != (undefined4 *)0x0) && (*(long *)(param_1 + 6) != 0)) {
    uVar1 = *param_1;
  }
  return uVar1;
}


MOV EAX,0x0
TEST RDI,RDI
JZ 0x0012d846
CMP qword ptr [RDI + 0x18],0x0
JZ 0x0012d846
MOV EAX,dword ptr [RDI]
RET
(translation_unit "undefined4 FUN_0012d833(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = 0;\n  if ((param_1 != (undefined4 *)0x0) && (*(long *)(param_1 + 6) != 0)) {\n    uVar1 = *param_1;\n  }\n  return uVar1;\n}\n\n" (function_definition "undefined4 FUN_0012d833(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = 0;\n  if ((param_1 != (undefined4 *)0x0) && (*(long *)(param_1 + 6) != 0)) {\n    uVar1 = *param_1;\n  }\n  return uVar1;\n}" type_identifier (function_declarator "FUN_0012d833(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = 0;\n  if ((param_1 != (undefined4 *)0x0) && (*(long *)(param_1 + 6) != 0)) {\n    uVar1 = *param_1;\n  }\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (if_statement "if ((param_1 != (undefined4 *)0x0) && (*(long *)(param_1 + 6) != 0)) {\n    uVar1 = *param_1;\n  }" if (parenthesized_expression "((param_1 != (undefined4 *)0x0) && (*(long *)(param_1 + 6) != 0))" ( (binary_expression "(param_1 != (undefined4 *)0x0) && (*(long *)(param_1 + 6) != 0)" (parenthesized_expression "(param_1 != (undefined4 *)0x0)" ( (binary_expression "param_1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*(long *)(param_1 + 6) != 0)" ( (binary_expression "*(long *)(param_1 + 6) != 0" (pointer_expression "*(long *)(param_1 + 6)" * (cast_expression "(long *)(param_1 + 6)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 6)" ( (binary_expression "param_1 + 6" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    uVar1 = *param_1;\n  }" { (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nint sqlite3_blob_bytes(sqlite3_blob *pBlob)\n\n{\n  int iVar1;\n  Incrblob *p;\n  \n  iVar1 = 0;\n  if ((pBlob != (sqlite3_blob *)0x0) && (*(long *)(pBlob + 0x18) != 0)) {\n    iVar1 = *(int *)pBlob;\n  }\n  return iVar1;\n}\n\n" comment (function_definition "int sqlite3_blob_bytes(sqlite3_blob *pBlob)\n\n{\n  int iVar1;\n  Incrblob *p;\n  \n  iVar1 = 0;\n  if ((pBlob != (sqlite3_blob *)0x0) && (*(long *)(pBlob + 0x18) != 0)) {\n    iVar1 = *(int *)pBlob;\n  }\n  return iVar1;\n}" primitive_type (function_declarator "sqlite3_blob_bytes(sqlite3_blob *pBlob)" identifier (parameter_list "(sqlite3_blob *pBlob)" ( (parameter_declaration "sqlite3_blob *pBlob" type_identifier (pointer_declarator "*pBlob" * identifier)) ))) (compound_statement "{\n  int iVar1;\n  Incrblob *p;\n  \n  iVar1 = 0;\n  if ((pBlob != (sqlite3_blob *)0x0) && (*(long *)(pBlob + 0x18) != 0)) {\n    iVar1 = *(int *)pBlob;\n  }\n  return iVar1;\n}" { (declaration "int iVar1;" primitive_type identifier ;) (declaration "Incrblob *p;" type_identifier (pointer_declarator "*p" * identifier) ;) (expression_statement "iVar1 = 0;" (assignment_expression "iVar1 = 0" identifier = number_literal) ;) (if_statement "if ((pBlob != (sqlite3_blob *)0x0) && (*(long *)(pBlob + 0x18) != 0)) {\n    iVar1 = *(int *)pBlob;\n  }" if (parenthesized_expression "((pBlob != (sqlite3_blob *)0x0) && (*(long *)(pBlob + 0x18) != 0))" ( (binary_expression "(pBlob != (sqlite3_blob *)0x0) && (*(long *)(pBlob + 0x18) != 0)" (parenthesized_expression "(pBlob != (sqlite3_blob *)0x0)" ( (binary_expression "pBlob != (sqlite3_blob *)0x0" identifier != (cast_expression "(sqlite3_blob *)0x0" ( (type_descriptor "sqlite3_blob *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*(long *)(pBlob + 0x18) != 0)" ( (binary_expression "*(long *)(pBlob + 0x18) != 0" (pointer_expression "*(long *)(pBlob + 0x18)" * (cast_expression "(long *)(pBlob + 0x18)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(pBlob + 0x18)" ( (binary_expression "pBlob + 0x18" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    iVar1 = *(int *)pBlob;\n  }" { (expression_statement "iVar1 = *(int *)pBlob;" (assignment_expression "iVar1 = *(int *)pBlob" identifier = (pointer_expression "*(int *)pBlob" * (cast_expression "(int *)pBlob" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) identifier))) ;) })) (return_statement "return iVar1;" return identifier ;) })))
(translation_unit "undefined4 FUN_0012d833(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = 0;\n  if ((param_1 != (undefined4 *)0x0) && (*(long *)(param_1 + 6) != 0)) {\n    uVar1 = *param_1;\n  }\n  return uVar1;\n}\n\n" (function_definition "undefined4 FUN_0012d833(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = 0;\n  if ((param_1 != (undefined4 *)0x0) && (*(long *)(param_1 + 6) != 0)) {\n    uVar1 = *param_1;\n  }\n  return uVar1;\n}" type_identifier (function_declarator "FUN_0012d833(undefined4 *param_1)" identifier (parameter_list "(undefined4 *param_1)" ( (parameter_declaration "undefined4 *param_1" type_identifier (pointer_declarator "*param_1" * identifier)) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = 0;\n  if ((param_1 != (undefined4 *)0x0) && (*(long *)(param_1 + 6) != 0)) {\n    uVar1 = *param_1;\n  }\n  return uVar1;\n}" { (declaration "undefined4 uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" identifier = number_literal) ;) (if_statement "if ((param_1 != (undefined4 *)0x0) && (*(long *)(param_1 + 6) != 0)) {\n    uVar1 = *param_1;\n  }" if (parenthesized_expression "((param_1 != (undefined4 *)0x0) && (*(long *)(param_1 + 6) != 0))" ( (binary_expression "(param_1 != (undefined4 *)0x0) && (*(long *)(param_1 + 6) != 0)" (parenthesized_expression "(param_1 != (undefined4 *)0x0)" ( (binary_expression "param_1 != (undefined4 *)0x0" identifier != (cast_expression "(undefined4 *)0x0" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) number_literal)) )) && (parenthesized_expression "(*(long *)(param_1 + 6) != 0)" ( (binary_expression "*(long *)(param_1 + 6) != 0" (pointer_expression "*(long *)(param_1 + 6)" * (cast_expression "(long *)(param_1 + 6)" ( (type_descriptor "long *" (sized_type_specifier "long" long) (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 6)" ( (binary_expression "param_1 + 6" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    uVar1 = *param_1;\n  }" { (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" identifier = (pointer_expression "*param_1" * identifier)) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE (pointer_declarator * IDENT)) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) LIT)) )) && (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 { (expression_statement (assignment_expression IDENT = (pointer_expression * IDENT)) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined4 FUN_0012d833(undefined4 *param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = 0;\n  if ((param_1 != (undefined4 *)0x0) && (*(long *)(param_1 + 6) != 0)) {\n    uVar1 = *param_1;\n  }\n  return uVar1;\n}" (type_identifier "undefined4") (function_declarator "FUN_0012d833(undefined4 *param_1)" (identifier "FUN_0012d833") (parameter_list "(undefined4 *param_1)" (( "(") (parameter_declaration "undefined4 *param_1" (type_identifier "undefined4") (pointer_declarator "*param_1" (* "*") (identifier "param_1"))) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = 0;\n  if ((param_1 != (undefined4 *)0x0) && (*(long *)(param_1 + 6) != 0)) {\n    uVar1 = *param_1;\n  }\n  return uVar1;\n}" ({ "{") (declaration "undefined4 uVar1;" (type_identifier "undefined4") (identifier "uVar1") (; ";")) (expression_statement "uVar1 = 0;" (assignment_expression "uVar1 = 0" (identifier "uVar1") (= "=") (number_literal "0")) (; ";")) (if_statement "if ((param_1 != (undefined4 *)0x0) && (*(long *)(param_1 + 6) != 0)) {\n    uVar1 = *param_1;\n  }" (if "if") (parenthesized_expression "((param_1 != (undefined4 *)0x0) && (*(long *)(param_1 + 6) != 0))" (( "(") (binary_expression "(param_1 != (undefined4 *)0x0) && (*(long *)(param_1 + 6) != 0)" (parenthesized_expression "(param_1 != (undefined4 *)0x0)" (( "(") (binary_expression "param_1 != (undefined4 *)0x0" (identifier "param_1") (!= "!=") (cast_expression "(undefined4 *)0x0" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (number_literal "0x0"))) () ")")) (&& "&&") (parenthesized_expression "(*(long *)(param_1 + 6) != 0)" (( "(") (binary_expression "*(long *)(param_1 + 6) != 0" (pointer_expression "*(long *)(param_1 + 6)" (* "*") (cast_expression "(long *)(param_1 + 6)" (( "(") (type_descriptor "long *" (sized_type_specifier "long" (long "long")) (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 6)" (( "(") (binary_expression "param_1 + 6" (identifier "param_1") (+ "+") (number_literal "6")) () ")")))) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    uVar1 = *param_1;\n  }" ({ "{") (expression_statement "uVar1 = *param_1;" (assignment_expression "uVar1 = *param_1" (identifier "uVar1") (= "=") (pointer_expression "*param_1" (* "*") (identifier "param_1"))) (; ";")) (} "}"))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

int function_1(type_1 *var_1)

{
  int iVar1;
  type_2 *p;
  
  iVar1 = 0;
  if ((var_1 != (type_1 *)0x0) && (*(long *)(var_1 + 0x18) != 0)) {
    iVar1 = *(int *)var_1;
  }
  return iVar1;
}


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

undefined4 MASKED(undefined4 *param_1)

{
  undefined4 uVar1;
  
  uVar1 = 0;
  if ((param_1 != (undefined4 *)0x0) && (*(long *)(param_1 + 6) != 0)) {
    uVar1 = *param_1;
  }
  return uVar1;
}

