
/* WARNING: Unknown calling convention */

png_uint_32 png_get_chunk_cache_max(png_const_structrp png_ptr)

{
  png_uint_32 pVar1;
  
  pVar1 = 0;
  if (png_ptr != (png_const_structrp)0x0) {
    pVar1 = png_ptr->user_chunk_cache_max;
  }
  return pVar1;
}



undefined4 png_get_chunk_cache_max(int param_1)

{
  undefined4 uVar1;
  
  uVar1 = 0;
  if (param_1 != 0) {
    uVar1 = *(undefined4 *)(param_1 + 0x300);
  }
  return uVar1;
}


MOV EDX,dword ptr [ESP + 0x4]
XOR EAX,EAX
TEST EDX,EDX
JZ 0x0001cb20
MOV EAX,dword ptr [EDX + 0x300]
RET
(translation_unit "undefined4 png_get_chunk_cache_max(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = 0;\n  if (param_1 != 0) {\n    uVar1 = *(undefined4 *)(param_1 + 0x300);\n  }\n  return uVar1;\n}\n\n" (function_definition "undefined4 png_get_chunk_cache_max(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = 0;\n  if (param_1 != 0) {\n    uVar1 = *(undefined4 *)(param_1 + 0x300);\n  }\n  return uVar1;\n}" type_identifier (function_declarator "png_get_chunk_cache_max(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = 0;\n  if (param_1 != 0) {\n    uVar1 = *(undefined4 *)(param_1 + 0x300);\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 != 0) {\n    uVar1 = *(undefined4 *)(param_1 + 0x300);\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar1 = *(undefined4 *)(param_1 + 0x300);\n  }" { (expression_statement "uVar1 = *(undefined4 *)(param_1 + 0x300);" (assignment_expression "uVar1 = *(undefined4 *)(param_1 + 0x300)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x300)" * (cast_expression "(undefined4 *)(param_1 + 0x300)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x300)" ( (binary_expression "param_1 + 0x300" identifier + number_literal) ))))) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\npng_uint_32 png_get_chunk_cache_max(png_const_structrp png_ptr)\n\n{\n  png_uint_32 pVar1;\n  \n  pVar1 = 0;\n  if (png_ptr != (png_const_structrp)0x0) {\n    pVar1 = png_ptr->user_chunk_cache_max;\n  }\n  return pVar1;\n}\n\n" comment (function_definition "png_uint_32 png_get_chunk_cache_max(png_const_structrp png_ptr)\n\n{\n  png_uint_32 pVar1;\n  \n  pVar1 = 0;\n  if (png_ptr != (png_const_structrp)0x0) {\n    pVar1 = png_ptr->user_chunk_cache_max;\n  }\n  return pVar1;\n}" type_identifier (function_declarator "png_get_chunk_cache_max(png_const_structrp png_ptr)" identifier (parameter_list "(png_const_structrp png_ptr)" ( (parameter_declaration "png_const_structrp png_ptr" type_identifier identifier) ))) (compound_statement "{\n  png_uint_32 pVar1;\n  \n  pVar1 = 0;\n  if (png_ptr != (png_const_structrp)0x0) {\n    pVar1 = png_ptr->user_chunk_cache_max;\n  }\n  return pVar1;\n}" { (declaration "png_uint_32 pVar1;" type_identifier identifier ;) (expression_statement "pVar1 = 0;" (assignment_expression "pVar1 = 0" identifier = number_literal) ;) (if_statement "if (png_ptr != (png_const_structrp)0x0) {\n    pVar1 = png_ptr->user_chunk_cache_max;\n  }" if (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)) )) (compound_statement "{\n    pVar1 = png_ptr->user_chunk_cache_max;\n  }" { (expression_statement "pVar1 = png_ptr->user_chunk_cache_max;" (assignment_expression "pVar1 = png_ptr->user_chunk_cache_max" identifier = (field_expression "png_ptr->user_chunk_cache_max" identifier -> field_identifier)) ;) })) (return_statement "return pVar1;" return identifier ;) })))
(translation_unit "undefined4 png_get_chunk_cache_max(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = 0;\n  if (param_1 != 0) {\n    uVar1 = *(undefined4 *)(param_1 + 0x300);\n  }\n  return uVar1;\n}\n\n" (function_definition "undefined4 png_get_chunk_cache_max(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = 0;\n  if (param_1 != 0) {\n    uVar1 = *(undefined4 *)(param_1 + 0x300);\n  }\n  return uVar1;\n}" type_identifier (function_declarator "png_get_chunk_cache_max(int param_1)" identifier (parameter_list "(int param_1)" ( (parameter_declaration "int param_1" primitive_type identifier) ))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = 0;\n  if (param_1 != 0) {\n    uVar1 = *(undefined4 *)(param_1 + 0x300);\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 != 0) {\n    uVar1 = *(undefined4 *)(param_1 + 0x300);\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    uVar1 = *(undefined4 *)(param_1 + 0x300);\n  }" { (expression_statement "uVar1 = *(undefined4 *)(param_1 + 0x300);" (assignment_expression "uVar1 = *(undefined4 *)(param_1 + 0x300)" identifier = (pointer_expression "*(undefined4 *)(param_1 + 0x300)" * (cast_expression "(undefined4 *)(param_1 + 0x300)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x300)" ( (binary_expression "param_1 + 0x300" identifier + number_literal) ))))) ;) })) (return_statement "return uVar1;" return identifier ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = LIT) ;) (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) ))))) ;) })) (return_statement return IDENT ;) })))
(function_definition "undefined4 png_get_chunk_cache_max(int param_1)\n\n{\n  undefined4 uVar1;\n  \n  uVar1 = 0;\n  if (param_1 != 0) {\n    uVar1 = *(undefined4 *)(param_1 + 0x300);\n  }\n  return uVar1;\n}" (type_identifier "undefined4") (function_declarator "png_get_chunk_cache_max(int param_1)" (identifier "png_get_chunk_cache_max") (parameter_list "(int param_1)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) () ")"))) (compound_statement "{\n  undefined4 uVar1;\n  \n  uVar1 = 0;\n  if (param_1 != 0) {\n    uVar1 = *(undefined4 *)(param_1 + 0x300);\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 != 0) {\n    uVar1 = *(undefined4 *)(param_1 + 0x300);\n  }" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    uVar1 = *(undefined4 *)(param_1 + 0x300);\n  }" ({ "{") (expression_statement "uVar1 = *(undefined4 *)(param_1 + 0x300);" (assignment_expression "uVar1 = *(undefined4 *)(param_1 + 0x300)" (identifier "uVar1") (= "=") (pointer_expression "*(undefined4 *)(param_1 + 0x300)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x300)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x300)" (( "(") (binary_expression "param_1 + 0x300" (identifier "param_1") (+ "+") (number_literal "0x300")) () ")"))))) (; ";")) (} "}"))) (return_statement "return uVar1;" (return "return") (identifier "uVar1") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

type_1 function_1(type_2 var_1)

{
  type_1 pVar1;
  
  pVar1 = 0;
  if (var_1 != (type_2)0x0) {
    pVar1 = var_1->user_chunk_cache_max;
  }
  return pVar1;
}


(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)) (expression_statement (assignment_expression left: (identifier) right: (number_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (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))))))))) (return_statement (identifier)))))

undefined4 MASKED(int param_1)

{
  undefined4 uVar1;
  
  uVar1 = 0;
  if (param_1 != 0) {
    uVar1 = *(undefined4 *)(param_1 + 0x300);
  }
  return uVar1;
}

