
void png_set_flush(png_structrp png_ptr,int nrows)

{
  if (png_ptr != (png_structrp)0x0) {
    if (nrows < 0) {
      nrows = 0;
    }
    png_ptr->flush_dist = nrows;
  }
  return;
}



void png_set_flush(long param_1,int param_2)

{
  if (param_1 != 0) {
    if (param_2 < 0) {
      param_2 = 0;
    }
    *(int *)(param_1 + 0x298) = param_2;
  }
  return;
}


TEST RDI,RDI
JZ 0x001227b1
TEST ESI,ESI
MOV EAX,0x0
CMOVS ESI,EAX
MOV dword ptr [RDI + 0x298],ESI
RET
(translation_unit "void png_set_flush(long param_1,int param_2)\n\n{\n  if (param_1 != 0) {\n    if (param_2 < 0) {\n      param_2 = 0;\n    }\n    *(int *)(param_1 + 0x298) = param_2;\n  }\n  return;\n}\n\n" (function_definition "void png_set_flush(long param_1,int param_2)\n\n{\n  if (param_1 != 0) {\n    if (param_2 < 0) {\n      param_2 = 0;\n    }\n    *(int *)(param_1 + 0x298) = param_2;\n  }\n  return;\n}" primitive_type (function_declarator "png_set_flush(long param_1,int param_2)" identifier (parameter_list "(long param_1,int param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  if (param_1 != 0) {\n    if (param_2 < 0) {\n      param_2 = 0;\n    }\n    *(int *)(param_1 + 0x298) = param_2;\n  }\n  return;\n}" { (if_statement "if (param_1 != 0) {\n    if (param_2 < 0) {\n      param_2 = 0;\n    }\n    *(int *)(param_1 + 0x298) = param_2;\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (param_2 < 0) {\n      param_2 = 0;\n    }\n    *(int *)(param_1 + 0x298) = param_2;\n  }" { (if_statement "if (param_2 < 0) {\n      param_2 = 0;\n    }" if (parenthesized_expression "(param_2 < 0)" ( (binary_expression "param_2 < 0" identifier < number_literal) )) (compound_statement "{\n      param_2 = 0;\n    }" { (expression_statement "param_2 = 0;" (assignment_expression "param_2 = 0" identifier = number_literal) ;) })) (expression_statement "*(int *)(param_1 + 0x298) = param_2;" (assignment_expression "*(int *)(param_1 + 0x298) = param_2" (pointer_expression "*(int *)(param_1 + 0x298)" * (cast_expression "(int *)(param_1 + 0x298)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x298)" ( (binary_expression "param_1 + 0x298" identifier + number_literal) )))) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void png_set_flush(png_structrp png_ptr,int nrows)\n\n{\n  if (png_ptr != (png_structrp)0x0) {\n    if (nrows < 0) {\n      nrows = 0;\n    }\n    png_ptr->flush_dist = nrows;\n  }\n  return;\n}\n\n" (function_definition "void png_set_flush(png_structrp png_ptr,int nrows)\n\n{\n  if (png_ptr != (png_structrp)0x0) {\n    if (nrows < 0) {\n      nrows = 0;\n    }\n    png_ptr->flush_dist = nrows;\n  }\n  return;\n}" primitive_type (function_declarator "png_set_flush(png_structrp png_ptr,int nrows)" identifier (parameter_list "(png_structrp png_ptr,int nrows)" ( (parameter_declaration "png_structrp png_ptr" type_identifier identifier) , (parameter_declaration "int nrows" primitive_type identifier) ))) (compound_statement "{\n  if (png_ptr != (png_structrp)0x0) {\n    if (nrows < 0) {\n      nrows = 0;\n    }\n    png_ptr->flush_dist = nrows;\n  }\n  return;\n}" { (if_statement "if (png_ptr != (png_structrp)0x0) {\n    if (nrows < 0) {\n      nrows = 0;\n    }\n    png_ptr->flush_dist = nrows;\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    if (nrows < 0) {\n      nrows = 0;\n    }\n    png_ptr->flush_dist = nrows;\n  }" { (if_statement "if (nrows < 0) {\n      nrows = 0;\n    }" if (parenthesized_expression "(nrows < 0)" ( (binary_expression "nrows < 0" identifier < number_literal) )) (compound_statement "{\n      nrows = 0;\n    }" { (expression_statement "nrows = 0;" (assignment_expression "nrows = 0" identifier = number_literal) ;) })) (expression_statement "png_ptr->flush_dist = nrows;" (assignment_expression "png_ptr->flush_dist = nrows" (field_expression "png_ptr->flush_dist" identifier -> field_identifier) = identifier) ;) })) (return_statement "return;" return ;) })))
(translation_unit "void png_set_flush(long param_1,int param_2)\n\n{\n  if (param_1 != 0) {\n    if (param_2 < 0) {\n      param_2 = 0;\n    }\n    *(int *)(param_1 + 0x298) = param_2;\n  }\n  return;\n}\n\n" (function_definition "void png_set_flush(long param_1,int param_2)\n\n{\n  if (param_1 != 0) {\n    if (param_2 < 0) {\n      param_2 = 0;\n    }\n    *(int *)(param_1 + 0x298) = param_2;\n  }\n  return;\n}" primitive_type (function_declarator "png_set_flush(long param_1,int param_2)" identifier (parameter_list "(long param_1,int param_2)" ( (parameter_declaration "long param_1" (sized_type_specifier "long" long) identifier) , (parameter_declaration "int param_2" primitive_type identifier) ))) (compound_statement "{\n  if (param_1 != 0) {\n    if (param_2 < 0) {\n      param_2 = 0;\n    }\n    *(int *)(param_1 + 0x298) = param_2;\n  }\n  return;\n}" { (if_statement "if (param_1 != 0) {\n    if (param_2 < 0) {\n      param_2 = 0;\n    }\n    *(int *)(param_1 + 0x298) = param_2;\n  }" if (parenthesized_expression "(param_1 != 0)" ( (binary_expression "param_1 != 0" identifier != number_literal) )) (compound_statement "{\n    if (param_2 < 0) {\n      param_2 = 0;\n    }\n    *(int *)(param_1 + 0x298) = param_2;\n  }" { (if_statement "if (param_2 < 0) {\n      param_2 = 0;\n    }" if (parenthesized_expression "(param_2 < 0)" ( (binary_expression "param_2 < 0" identifier < number_literal) )) (compound_statement "{\n      param_2 = 0;\n    }" { (expression_statement "param_2 = 0;" (assignment_expression "param_2 = 0" identifier = number_literal) ;) })) (expression_statement "*(int *)(param_1 + 0x298) = param_2;" (assignment_expression "*(int *)(param_1 + 0x298) = param_2" (pointer_expression "*(int *)(param_1 + 0x298)" * (cast_expression "(int *)(param_1 + 0x298)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x298)" ( (binary_expression "param_1 + 0x298" 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 { (if_statement if (parenthesized_expression ( (binary_expression IDENT < LIT) )) (compound_statement { (expression_statement (assignment_expression IDENT = LIT) ;) })) (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_flush(long param_1,int param_2)\n\n{\n  if (param_1 != 0) {\n    if (param_2 < 0) {\n      param_2 = 0;\n    }\n    *(int *)(param_1 + 0x298) = param_2;\n  }\n  return;\n}" (primitive_type "void") (function_declarator "png_set_flush(long param_1,int param_2)" (identifier "png_set_flush") (parameter_list "(long param_1,int param_2)" (( "(") (parameter_declaration "long param_1" (sized_type_specifier "long" (long "long")) (identifier "param_1")) (, ",") (parameter_declaration "int param_2" (primitive_type "int") (identifier "param_2")) () ")"))) (compound_statement "{\n  if (param_1 != 0) {\n    if (param_2 < 0) {\n      param_2 = 0;\n    }\n    *(int *)(param_1 + 0x298) = param_2;\n  }\n  return;\n}" ({ "{") (if_statement "if (param_1 != 0) {\n    if (param_2 < 0) {\n      param_2 = 0;\n    }\n    *(int *)(param_1 + 0x298) = param_2;\n  }" (if "if") (parenthesized_expression "(param_1 != 0)" (( "(") (binary_expression "param_1 != 0" (identifier "param_1") (!= "!=") (number_literal "0")) () ")")) (compound_statement "{\n    if (param_2 < 0) {\n      param_2 = 0;\n    }\n    *(int *)(param_1 + 0x298) = param_2;\n  }" ({ "{") (if_statement "if (param_2 < 0) {\n      param_2 = 0;\n    }" (if "if") (parenthesized_expression "(param_2 < 0)" (( "(") (binary_expression "param_2 < 0" (identifier "param_2") (< "<") (number_literal "0")) () ")")) (compound_statement "{\n      param_2 = 0;\n    }" ({ "{") (expression_statement "param_2 = 0;" (assignment_expression "param_2 = 0" (identifier "param_2") (= "=") (number_literal "0")) (; ";")) (} "}"))) (expression_statement "*(int *)(param_1 + 0x298) = param_2;" (assignment_expression "*(int *)(param_1 + 0x298) = param_2" (pointer_expression "*(int *)(param_1 + 0x298)" (* "*") (cast_expression "(int *)(param_1 + 0x298)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x298)" (( "(") (binary_expression "param_1 + 0x298" (identifier "param_1") (+ "+") (number_literal "0x298")) () ")")))) (= "=") (identifier "param_2")) (; ";")) (} "}"))) (return_statement "return;" (return "return") (; ";")) (} "}")))

void function_1(type_1 var_1,int var_2)

{
  if (var_1 != (type_1)0x0) {
    if (var_2 < 0) {
      var_2 = 0;
    }
    var_1->flush_dist = var_2;
  }
  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: (primitive_type) declarator: (identifier)))) body: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) consequence: (compound_statement (expression_statement (assignment_expression left: (identifier) right: (number_literal))))) (expression_statement (assignment_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: (identifier))))) (return_statement))))

void MASKED(long param_1,int param_2)

{
  if (param_1 != 0) {
    if (param_2 < 0) {
      param_2 = 0;
    }
    *(int *)(param_1 + 0x298) = param_2;
  }
  return;
}

