
/* WARNING: Unknown calling convention */

png_byte png_get_bit_depth(png_const_structrp png_ptr,png_const_inforp info_ptr)

{
  if ((png_ptr != (png_const_structrp)0x0) && (info_ptr != (png_const_inforp)0x0)) {
    return info_ptr->bit_depth;
  }
  return '\0';
}



undefined1 png_get_bit_depth(long param_1,long param_2)

{
  if ((param_1 != 0) && (param_2 != 0)) {
    return *(undefined1 *)(param_2 + 0x24);
  }
  return 0;
}


TEST RDI,RDI
JZ 0x0010b93d
TEST RSI,RSI
JZ 0x0010b93d
MOVZX EAX,byte ptr [RSI + 0x24]
RET
MOV EAX,0x0
RET
(translation_unit "undefined1 png_get_bit_depth(long param_1,long param_2)\n\n{\n  if ((param_1 != 0) && (param_2 != 0)) {\n    return *(undefined1 *)(param_2 + 0x24);\n  }\n  return 0;\n}\n\n" (function_definition "undefined1 png_get_bit_depth(long param_1,long param_2)\n\n{\n  if ((param_1 != 0) && (param_2 != 0)) {\n    return *(undefined1 *)(param_2 + 0x24);\n  }\n  return 0;\n}" type_identifier (function_declarator "png_get_bit_depth(long param_1,long param_2)" identifier (parameter_list "(long param_1,long param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  if ((param_1 != 0) && (param_2 != 0)) {\n    return *(undefined1 *)(param_2 + 0x24);\n  }\n  return 0;\n}" { (if_statement "if ((param_1 != 0) && (param_2 != 0)) {\n    return *(undefined1 *)(param_2 + 0x24);\n  }" if (parenthesized_expression "((param_1 != 0) && (param_2 != 0))" ( (binary_expression "(param_1 != 0) && (param_2 != 0)" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    return *(undefined1 *)(param_2 + 0x24);\n  }" { (return_statement "return *(undefined1 *)(param_2 + 0x24);" return (pointer_expression "*(undefined1 *)(param_2 + 0x24)" * (cast_expression "(undefined1 *)(param_2 + 0x24)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x24)" ( (binary_expression "param_2 + 0x24" identifier + number_literal) )))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\npng_byte png_get_bit_depth(png_const_structrp png_ptr,png_const_inforp info_ptr)\n\n{\n  if ((png_ptr != (png_const_structrp)0x0) && (info_ptr != (png_const_inforp)0x0)) {\n    return info_ptr->bit_depth;\n  }\n  return '\0';\n}\n\n" comment (function_definition "png_byte png_get_bit_depth(png_const_structrp png_ptr,png_const_inforp info_ptr)\n\n{\n  if ((png_ptr != (png_const_structrp)0x0) && (info_ptr != (png_const_inforp)0x0)) {\n    return info_ptr->bit_depth;\n  }\n  return '\0';\n}" type_identifier (function_declarator "png_get_bit_depth(png_const_structrp png_ptr,png_const_inforp info_ptr)" identifier (parameter_list "(png_const_structrp png_ptr,png_const_inforp info_ptr)" ( (parameter_declaration "png_const_structrp png_ptr" type_identifier identifier) , (parameter_declaration "png_const_inforp info_ptr" type_identifier identifier) ))) (compound_statement "{\n  if ((png_ptr != (png_const_structrp)0x0) && (info_ptr != (png_const_inforp)0x0)) {\n    return info_ptr->bit_depth;\n  }\n  return '\0';\n}" { (if_statement "if ((png_ptr != (png_const_structrp)0x0) && (info_ptr != (png_const_inforp)0x0)) {\n    return info_ptr->bit_depth;\n  }" if (parenthesized_expression "((png_ptr != (png_const_structrp)0x0) && (info_ptr != (png_const_inforp)0x0))" ( (binary_expression "(png_ptr != (png_const_structrp)0x0) && (info_ptr != (png_const_inforp)0x0)" (parenthesized_expression "(png_ptr != (png_const_structrp)0x0)" ( (binary_expression "png_ptr != (png_const_structrp)0x0" identifier != (cast_expression "(png_const_structrp)0x0" ( (type_descriptor "png_const_structrp" type_identifier) ) number_literal)) )) && (parenthesized_expression "(info_ptr != (png_const_inforp)0x0)" ( (binary_expression "info_ptr != (png_const_inforp)0x0" identifier != (cast_expression "(png_const_inforp)0x0" ( (type_descriptor "png_const_inforp" type_identifier) ) number_literal)) ))) )) (compound_statement "{\n    return info_ptr->bit_depth;\n  }" { (return_statement "return info_ptr->bit_depth;" return (field_expression "info_ptr->bit_depth" identifier -> field_identifier) ;) })) (return_statement "return '\0';" return (char_literal "'\0'" ' escape_sequence ') ;) })))
(translation_unit "undefined1 png_get_bit_depth(long param_1,long param_2)\n\n{\n  if ((param_1 != 0) && (param_2 != 0)) {\n    return *(undefined1 *)(param_2 + 0x24);\n  }\n  return 0;\n}\n\n" (function_definition "undefined1 png_get_bit_depth(long param_1,long param_2)\n\n{\n  if ((param_1 != 0) && (param_2 != 0)) {\n    return *(undefined1 *)(param_2 + 0x24);\n  }\n  return 0;\n}" type_identifier (function_declarator "png_get_bit_depth(long param_1,long param_2)" identifier (parameter_list "(long param_1,long param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "long param_2" (sized_type_specifier "long" long) identifier) ))) (compound_statement "{\n  if ((param_1 != 0) && (param_2 != 0)) {\n    return *(undefined1 *)(param_2 + 0x24);\n  }\n  return 0;\n}" { (if_statement "if ((param_1 != 0) && (param_2 != 0)) {\n    return *(undefined1 *)(param_2 + 0x24);\n  }" if (parenthesized_expression "((param_1 != 0) && (param_2 != 0))" ( (binary_expression "(param_1 != 0) && (param_2 != 0)" (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) && (parenthesized_expression "(param_2 != 0)" ( (binary_expression "param_2 != 0" identifier != number_literal) ))) )) (compound_statement "{\n    return *(undefined1 *)(param_2 + 0x24);\n  }" { (return_statement "return *(undefined1 *)(param_2 + 0x24);" return (pointer_expression "*(undefined1 *)(param_2 + 0x24)" * (cast_expression "(undefined1 *)(param_2 + 0x24)" ( (type_descriptor "undefined1 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_2 + 0x24)" ( (binary_expression "param_2 + 0x24" identifier + number_literal) )))) ;) })) (return_statement "return 0;" return number_literal ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration (sized_type_specifier long) IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression IDENT != LIT) ))) )) (compound_statement { (return_statement return (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) ;) })) (return_statement return LIT ;) })))
(function_definition "undefined1 png_get_bit_depth(long param_1,long param_2)\n\n{\n  if ((param_1 != 0) && (param_2 != 0)) {\n    return *(undefined1 *)(param_2 + 0x24);\n  }\n  return 0;\n}" (type_identifier "undefined1") (function_declarator "png_get_bit_depth(long param_1,long param_2)" (identifier "png_get_bit_depth") (parameter_list "(long param_1,long param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "long param_2" (sized_type_specifier "long" (long "long")) (identifier "param_2")) () ")"))) (compound_statement "{\n  if ((param_1 != 0) && (param_2 != 0)) {\n    return *(undefined1 *)(param_2 + 0x24);\n  }\n  return 0;\n}" ({ "{") (if_statement "if ((param_1 != 0) && (param_2 != 0)) {\n    return *(undefined1 *)(param_2 + 0x24);\n  }" (if "if") (parenthesized_expression "((param_1 != 0) && (param_2 != 0))" (( "(") (binary_expression "(param_1 != 0) && (param_2 != 0)" (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(param_2 != 0)" (( "(") (binary_expression "param_2 != 0" (identifier "param_2") (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    return *(undefined1 *)(param_2 + 0x24);\n  }" ({ "{") (return_statement "return *(undefined1 *)(param_2 + 0x24);" (return "return") (pointer_expression "*(undefined1 *)(param_2 + 0x24)" (* "*") (cast_expression "(undefined1 *)(param_2 + 0x24)" (( "(") (type_descriptor "undefined1 *" (type_identifier "undefined1") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_2 + 0x24)" (( "(") (binary_expression "param_2 + 0x24" (identifier "param_2") (+ "+") (number_literal "0x24")) () ")")))) (; ";")) (} "}"))) (return_statement "return 0;" (return "return") (number_literal "0") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

type_1 function_1(type_2 var_1,type_3 var_2)

{
  if ((var_1 != (type_2)0x0) && (var_2 != (type_3)0x0)) {
    return var_2->bit_depth;
  }
  return '\0';
}


(translation_unit (function_definition type: (type_identifier) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (sized_type_specifier) declarator: (identifier)) (parameter_declaration type: (sized_type_specifier) declarator: (identifier)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_expression left: (identifier) 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: (identifier) right: (number_literal)))))))) (return_statement (number_literal)))))

undefined1 MASKED(long param_1,long param_2)

{
  if ((param_1 != 0) && (param_2 != 0)) {
    return *(undefined1 *)(param_2 + 0x24);
  }
  return 0;
}

