
/* WARNING: Unknown calling convention */

void png_set_chunk_cache_max(png_structrp png_ptr,png_uint_32 user_chunk_cache_max)

{
  if (png_ptr != (png_structrp)0x0) {
    png_ptr->user_chunk_cache_max = user_chunk_cache_max;
  }
  return;
}



void png_set_chunk_cache_max(long param_1,undefined4 param_2)

{
  if (param_1 != 0) {
    *(undefined4 *)(param_1 + 0x454) = param_2;
  }
  return;
}


TEST RDI,RDI
JZ 0x001205c6
MOV dword ptr [RDI + 0x454],ESI
RET
(translation_unit "void png_set_chunk_cache_max(long param_1,undefined4 param_2)\n\n{\n  if (param_1 != 0) {\n    *(undefined4 *)(param_1 + 0x454) = param_2;\n  }\n  return;\n}\n\n" (function_definition "void png_set_chunk_cache_max(long param_1,undefined4 param_2)\n\n{\n  if (param_1 != 0) {\n    *(undefined4 *)(param_1 + 0x454) = param_2;\n  }\n  return;\n}" primitive_type (function_declarator "png_set_chunk_cache_max(long param_1,undefined4 param_2)" identifier (parameter_list "(long param_1,undefined4 param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  if (param_1 != 0) {\n    *(undefined4 *)(param_1 + 0x454) = param_2;\n  }\n  return;\n}" { (if_statement "if (param_1 != 0) {\n    *(undefined4 *)(param_1 + 0x454) = param_2;\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x454) = param_2;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x454) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 0x454) = param_2" (pointer_expression "*(undefined4 *)(param_1 + 0x454)" * (cast_expression "(undefined4 *)(param_1 + 0x454)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x454)" ( (binary_expression "param_1 + 0x454" identifier + number_literal) )))) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Unknown calling convention */\n\nvoid png_set_chunk_cache_max(png_structrp png_ptr,png_uint_32 user_chunk_cache_max)\n\n{\n  if (png_ptr != (png_structrp)0x0) {\n    png_ptr->user_chunk_cache_max = user_chunk_cache_max;\n  }\n  return;\n}\n\n" comment (function_definition "void png_set_chunk_cache_max(png_structrp png_ptr,png_uint_32 user_chunk_cache_max)\n\n{\n  if (png_ptr != (png_structrp)0x0) {\n    png_ptr->user_chunk_cache_max = user_chunk_cache_max;\n  }\n  return;\n}" primitive_type (function_declarator "png_set_chunk_cache_max(png_structrp png_ptr,png_uint_32 user_chunk_cache_max)" identifier (parameter_list "(png_structrp png_ptr,png_uint_32 user_chunk_cache_max)" ( (parameter_declaration "png_structrp png_ptr" type_identifier identifier) , (parameter_declaration "png_uint_32 user_chunk_cache_max" type_identifier identifier) ))) (compound_statement "{\n  if (png_ptr != (png_structrp)0x0) {\n    png_ptr->user_chunk_cache_max = user_chunk_cache_max;\n  }\n  return;\n}" { (if_statement "if (png_ptr != (png_structrp)0x0) {\n    png_ptr->user_chunk_cache_max = user_chunk_cache_max;\n  }" if (parenthesized_expression "(png_ptr != (png_structrp)0x0)" ( (binary_expression "png_ptr != (png_structrp)0x0" identifier != (cast_expression "(png_structrp)0x0" ( (type_descriptor "png_structrp" type_identifier) ) number_literal)) )) (compound_statement "{\n    png_ptr->user_chunk_cache_max = user_chunk_cache_max;\n  }" { (expression_statement "png_ptr->user_chunk_cache_max = user_chunk_cache_max;" (assignment_expression "png_ptr->user_chunk_cache_max = user_chunk_cache_max" (field_expression "png_ptr->user_chunk_cache_max" identifier -> field_identifier) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void png_set_chunk_cache_max(long param_1,undefined4 param_2)\n\n{\n  if (param_1 != 0) {\n    *(undefined4 *)(param_1 + 0x454) = param_2;\n  }\n  return;\n}\n\n" (function_definition "void png_set_chunk_cache_max(long param_1,undefined4 param_2)\n\n{\n  if (param_1 != 0) {\n    *(undefined4 *)(param_1 + 0x454) = param_2;\n  }\n  return;\n}" primitive_type (function_declarator "png_set_chunk_cache_max(long param_1,undefined4 param_2)" identifier (parameter_list "(long param_1,undefined4 param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  if (param_1 != 0) {\n    *(undefined4 *)(param_1 + 0x454) = param_2;\n  }\n  return;\n}" { (if_statement "if (param_1 != 0) {\n    *(undefined4 *)(param_1 + 0x454) = param_2;\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x454) = param_2;\n  }" { (expression_statement "*(undefined4 *)(param_1 + 0x454) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 0x454) = param_2" (pointer_expression "*(undefined4 *)(param_1 + 0x454)" * (cast_expression "(undefined4 *)(param_1 + 0x454)" ( (type_descriptor "undefined4 *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x454)" ( (binary_expression "param_1 + 0x454" identifier + number_literal) )))) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration (sized_type_specifier long) IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression IDENT != LIT) )) (compound_statement { (expression_statement (assignment_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) = IDENT) ;) })) (return_statement return ;) })))
(function_definition "void png_set_chunk_cache_max(long param_1,undefined4 param_2)\n\n{\n  if (param_1 != 0) {\n    *(undefined4 *)(param_1 + 0x454) = param_2;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "png_set_chunk_cache_max(long param_1,undefined4 param_2)" (identifier "png_set_chunk_cache_max") (parameter_list "(long param_1,undefined4 param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  if (param_1 != 0) {\n    *(undefined4 *)(param_1 + 0x454) = param_2;\n  }\n  return;\n}" ({ "{") (if_statement "if (param_1 != 0) {\n    *(undefined4 *)(param_1 + 0x454) = param_2;\n  }" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    *(undefined4 *)(param_1 + 0x454) = param_2;\n  }" ({ "{") (expression_statement "*(undefined4 *)(param_1 + 0x454) = param_2;" (assignment_expression "*(undefined4 *)(param_1 + 0x454) = param_2" (pointer_expression "*(undefined4 *)(param_1 + 0x454)" (* "*") (cast_expression "(undefined4 *)(param_1 + 0x454)" (( "(") (type_descriptor "undefined4 *" (type_identifier "undefined4") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x454)" (( "(") (binary_expression "param_1 + 0x454" (identifier "param_1") (+ "+") (number_literal "0x454")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Unknown calling convention */

void function_1(type_1 var_1,type_2 user_chunk_cache_max)

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


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

void MASKED(long param_1,undefined4 param_2)

{
  if (param_1 != 0) {
    *(undefined4 *)(param_1 + 0x454) = param_2;
  }
  return;
}

