
/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

void png_benign_error(png_const_structrp png_ptr,png_const_charp error_message)

{
  uint uVar1;
  
  uVar1 = png_ptr->mode & 0x8000;
  if ((png_ptr->flags & 0x100000) == 0) {
    if ((uVar1 != 0) && (png_ptr->chunk_name != 0)) {
                    /* WARNING: Subroutine does not return */
      png_chunk_error(png_ptr,error_message);
    }
                    /* WARNING: Subroutine does not return */
    png_error(png_ptr,error_message);
  }
  if ((uVar1 != 0) && (png_ptr->chunk_name != 0)) {
    png_chunk_warning(png_ptr,error_message);
    return;
  }
  png_warning(png_ptr,error_message);
  return;
}



/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void png_benign_error(int param_1,undefined4 param_2)

{
  uint uVar1;
  
  uVar1 = *(uint *)(param_1 + 0xd0) & 0x8000;
  if ((*(byte *)(param_1 + 0xd6) & 0x10) == 0) {
    if ((uVar1 != 0) && (*(int *)(param_1 + 0x178) != 0)) {
                    /* WARNING: Subroutine does not return */
      png_chunk_error(param_1,param_2);
    }
                    /* WARNING: Subroutine does not return */
    png_error(param_1,param_2);
  }
  if ((uVar1 != 0) && (*(int *)(param_1 + 0x178) != 0)) {
    png_chunk_warning(param_1,param_2);
    return;
  }
  png_warning(param_1,param_2);
  return;
}


PUSH EBX
CALL 0x00014970
ADD EBX,0x38b6a
SUB ESP,0x8
MOV EAX,dword ptr [ESP + 0x10]
MOV EDX,dword ptr [EAX + 0xd0]
AND EDX,0x8000
TEST byte ptr [EAX + 0xd6],0x10
JZ 0x0001b260
TEST EDX,EDX
JZ 0x0001b246
MOV ECX,dword ptr [EAX + 0x178]
TEST ECX,ECX
JNZ 0x0001b290
SUB ESP,0x8
PUSH dword ptr [ESP + 0x1c]
PUSH EAX
CALL 0x000143a0
ADD ESP,0x10
ADD ESP,0x8
POP EBX
RET
TEST EDX,EDX
JZ 0x0001b26e
MOV EDX,dword ptr [EAX + 0x178]
TEST EDX,EDX
JNZ 0x0001b280
SUB ESP,0x8
PUSH dword ptr [ESP + 0x1c]
PUSH EAX
CALL 0x00014460
SUB ESP,0x8
PUSH dword ptr [ESP + 0x1c]
PUSH EAX
CALL 0x00014070
SUB ESP,0x8
PUSH dword ptr [ESP + 0x1c]
PUSH EAX
CALL 0x000146f0
ADD ESP,0x10
ADD ESP,0x8
POP EBX
RET
(translation_unit "/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n\nvoid png_benign_error(int param_1,undefined4 param_2)\n\n{\n  uint uVar1;\n  \n  uVar1 = *(uint *)(param_1 + 0xd0) & 0x8000;\n  if ((*(byte *)(param_1 + 0xd6) & 0x10) == 0) {\n    if ((uVar1 != 0) && (*(int *)(param_1 + 0x178) != 0)) {\n                    /* WARNING: Subroutine does not return */\n      png_chunk_error(param_1,param_2);\n    }\n                    /* WARNING: Subroutine does not return */\n    png_error(param_1,param_2);\n  }\n  if ((uVar1 != 0) && (*(int *)(param_1 + 0x178) != 0)) {\n    png_chunk_warning(param_1,param_2);\n    return;\n  }\n  png_warning(param_1,param_2);\n  return;\n}\n\n" comment (function_definition "void png_benign_error(int param_1,undefined4 param_2)\n\n{\n  uint uVar1;\n  \n  uVar1 = *(uint *)(param_1 + 0xd0) & 0x8000;\n  if ((*(byte *)(param_1 + 0xd6) & 0x10) == 0) {\n    if ((uVar1 != 0) && (*(int *)(param_1 + 0x178) != 0)) {\n                    /* WARNING: Subroutine does not return */\n      png_chunk_error(param_1,param_2);\n    }\n                    /* WARNING: Subroutine does not return */\n    png_error(param_1,param_2);\n  }\n  if ((uVar1 != 0) && (*(int *)(param_1 + 0x178) != 0)) {\n    png_chunk_warning(param_1,param_2);\n    return;\n  }\n  png_warning(param_1,param_2);\n  return;\n}" primitive_type (function_declarator "png_benign_error(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = *(uint *)(param_1 + 0xd0) & 0x8000;\n  if ((*(byte *)(param_1 + 0xd6) & 0x10) == 0) {\n    if ((uVar1 != 0) && (*(int *)(param_1 + 0x178) != 0)) {\n                    /* WARNING: Subroutine does not return */\n      png_chunk_error(param_1,param_2);\n    }\n                    /* WARNING: Subroutine does not return */\n    png_error(param_1,param_2);\n  }\n  if ((uVar1 != 0) && (*(int *)(param_1 + 0x178) != 0)) {\n    png_chunk_warning(param_1,param_2);\n    return;\n  }\n  png_warning(param_1,param_2);\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = *(uint *)(param_1 + 0xd0) & 0x8000;" (assignment_expression "uVar1 = *(uint *)(param_1 + 0xd0) & 0x8000" identifier = (binary_expression "*(uint *)(param_1 + 0xd0) & 0x8000" (pointer_expression "*(uint *)(param_1 + 0xd0)" * (cast_expression "(uint *)(param_1 + 0xd0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd0)" ( (binary_expression "param_1 + 0xd0" identifier + number_literal) )))) & number_literal)) ;) (if_statement "if ((*(byte *)(param_1 + 0xd6) & 0x10) == 0) {\n    if ((uVar1 != 0) && (*(int *)(param_1 + 0x178) != 0)) {\n                    /* WARNING: Subroutine does not return */\n      png_chunk_error(param_1,param_2);\n    }\n                    /* WARNING: Subroutine does not return */\n    png_error(param_1,param_2);\n  }" if (parenthesized_expression "((*(byte *)(param_1 + 0xd6) & 0x10) == 0)" ( (binary_expression "(*(byte *)(param_1 + 0xd6) & 0x10) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0xd6) & 0x10)" ( (binary_expression "*(byte *)(param_1 + 0xd6) & 0x10" (pointer_expression "*(byte *)(param_1 + 0xd6)" * (cast_expression "(byte *)(param_1 + 0xd6)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd6)" ( (binary_expression "param_1 + 0xd6" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    if ((uVar1 != 0) && (*(int *)(param_1 + 0x178) != 0)) {\n                    /* WARNING: Subroutine does not return */\n      png_chunk_error(param_1,param_2);\n    }\n                    /* WARNING: Subroutine does not return */\n    png_error(param_1,param_2);\n  }" { (if_statement "if ((uVar1 != 0) && (*(int *)(param_1 + 0x178) != 0)) {\n                    /* WARNING: Subroutine does not return */\n      png_chunk_error(param_1,param_2);\n    }" if (parenthesized_expression "((uVar1 != 0) && (*(int *)(param_1 + 0x178) != 0))" ( (binary_expression "(uVar1 != 0) && (*(int *)(param_1 + 0x178) != 0)" (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(int *)(param_1 + 0x178) != 0)" ( (binary_expression "*(int *)(param_1 + 0x178) != 0" (pointer_expression "*(int *)(param_1 + 0x178)" * (cast_expression "(int *)(param_1 + 0x178)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x178)" ( (binary_expression "param_1 + 0x178" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      png_chunk_error(param_1,param_2);\n    }" { comment (expression_statement "png_chunk_error(param_1,param_2);" (call_expression "png_chunk_error(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) })) comment (expression_statement "png_error(param_1,param_2);" (call_expression "png_error(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) })) (if_statement "if ((uVar1 != 0) && (*(int *)(param_1 + 0x178) != 0)) {\n    png_chunk_warning(param_1,param_2);\n    return;\n  }" if (parenthesized_expression "((uVar1 != 0) && (*(int *)(param_1 + 0x178) != 0))" ( (binary_expression "(uVar1 != 0) && (*(int *)(param_1 + 0x178) != 0)" (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(int *)(param_1 + 0x178) != 0)" ( (binary_expression "*(int *)(param_1 + 0x178) != 0" (pointer_expression "*(int *)(param_1 + 0x178)" * (cast_expression "(int *)(param_1 + 0x178)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x178)" ( (binary_expression "param_1 + 0x178" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    png_chunk_warning(param_1,param_2);\n    return;\n  }" { (expression_statement "png_chunk_warning(param_1,param_2);" (call_expression "png_chunk_warning(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "png_warning(param_1,param_2);" (call_expression "png_warning(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */\n/* WARNING: Unknown calling convention */\n\nvoid png_benign_error(png_const_structrp png_ptr,png_const_charp error_message)\n\n{\n  uint uVar1;\n  \n  uVar1 = png_ptr->mode & 0x8000;\n  if ((png_ptr->flags & 0x100000) == 0) {\n    if ((uVar1 != 0) && (png_ptr->chunk_name != 0)) {\n                    /* WARNING: Subroutine does not return */\n      png_chunk_error(png_ptr,error_message);\n    }\n                    /* WARNING: Subroutine does not return */\n    png_error(png_ptr,error_message);\n  }\n  if ((uVar1 != 0) && (png_ptr->chunk_name != 0)) {\n    png_chunk_warning(png_ptr,error_message);\n    return;\n  }\n  png_warning(png_ptr,error_message);\n  return;\n}\n\n" comment comment (function_definition "void png_benign_error(png_const_structrp png_ptr,png_const_charp error_message)\n\n{\n  uint uVar1;\n  \n  uVar1 = png_ptr->mode & 0x8000;\n  if ((png_ptr->flags & 0x100000) == 0) {\n    if ((uVar1 != 0) && (png_ptr->chunk_name != 0)) {\n                    /* WARNING: Subroutine does not return */\n      png_chunk_error(png_ptr,error_message);\n    }\n                    /* WARNING: Subroutine does not return */\n    png_error(png_ptr,error_message);\n  }\n  if ((uVar1 != 0) && (png_ptr->chunk_name != 0)) {\n    png_chunk_warning(png_ptr,error_message);\n    return;\n  }\n  png_warning(png_ptr,error_message);\n  return;\n}" primitive_type (function_declarator "png_benign_error(png_const_structrp png_ptr,png_const_charp error_message)" identifier (parameter_list "(png_const_structrp png_ptr,png_const_charp error_message)" ( (parameter_declaration "png_const_structrp png_ptr" type_identifier identifier) , (parameter_declaration "png_const_charp error_message" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = png_ptr->mode & 0x8000;\n  if ((png_ptr->flags & 0x100000) == 0) {\n    if ((uVar1 != 0) && (png_ptr->chunk_name != 0)) {\n                    /* WARNING: Subroutine does not return */\n      png_chunk_error(png_ptr,error_message);\n    }\n                    /* WARNING: Subroutine does not return */\n    png_error(png_ptr,error_message);\n  }\n  if ((uVar1 != 0) && (png_ptr->chunk_name != 0)) {\n    png_chunk_warning(png_ptr,error_message);\n    return;\n  }\n  png_warning(png_ptr,error_message);\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = png_ptr->mode & 0x8000;" (assignment_expression "uVar1 = png_ptr->mode & 0x8000" identifier = (binary_expression "png_ptr->mode & 0x8000" (field_expression "png_ptr->mode" identifier -> field_identifier) & number_literal)) ;) (if_statement "if ((png_ptr->flags & 0x100000) == 0) {\n    if ((uVar1 != 0) && (png_ptr->chunk_name != 0)) {\n                    /* WARNING: Subroutine does not return */\n      png_chunk_error(png_ptr,error_message);\n    }\n                    /* WARNING: Subroutine does not return */\n    png_error(png_ptr,error_message);\n  }" if (parenthesized_expression "((png_ptr->flags & 0x100000) == 0)" ( (binary_expression "(png_ptr->flags & 0x100000) == 0" (parenthesized_expression "(png_ptr->flags & 0x100000)" ( (binary_expression "png_ptr->flags & 0x100000" (field_expression "png_ptr->flags" identifier -> field_identifier) & number_literal) )) == number_literal) )) (compound_statement "{\n    if ((uVar1 != 0) && (png_ptr->chunk_name != 0)) {\n                    /* WARNING: Subroutine does not return */\n      png_chunk_error(png_ptr,error_message);\n    }\n                    /* WARNING: Subroutine does not return */\n    png_error(png_ptr,error_message);\n  }" { (if_statement "if ((uVar1 != 0) && (png_ptr->chunk_name != 0)) {\n                    /* WARNING: Subroutine does not return */\n      png_chunk_error(png_ptr,error_message);\n    }" if (parenthesized_expression "((uVar1 != 0) && (png_ptr->chunk_name != 0))" ( (binary_expression "(uVar1 != 0) && (png_ptr->chunk_name != 0)" (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(png_ptr->chunk_name != 0)" ( (binary_expression "png_ptr->chunk_name != 0" (field_expression "png_ptr->chunk_name" identifier -> field_identifier) != number_literal) ))) )) (compound_statement "{\n                    /* WARNING: Subroutine does not return */\n      png_chunk_error(png_ptr,error_message);\n    }" { comment (expression_statement "png_chunk_error(png_ptr,error_message);" (call_expression "png_chunk_error(png_ptr,error_message)" identifier (argument_list "(png_ptr,error_message)" ( identifier , identifier ))) ;) })) comment (expression_statement "png_error(png_ptr,error_message);" (call_expression "png_error(png_ptr,error_message)" identifier (argument_list "(png_ptr,error_message)" ( identifier , identifier ))) ;) })) (if_statement "if ((uVar1 != 0) && (png_ptr->chunk_name != 0)) {\n    png_chunk_warning(png_ptr,error_message);\n    return;\n  }" if (parenthesized_expression "((uVar1 != 0) && (png_ptr->chunk_name != 0))" ( (binary_expression "(uVar1 != 0) && (png_ptr->chunk_name != 0)" (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(png_ptr->chunk_name != 0)" ( (binary_expression "png_ptr->chunk_name != 0" (field_expression "png_ptr->chunk_name" identifier -> field_identifier) != number_literal) ))) )) (compound_statement "{\n    png_chunk_warning(png_ptr,error_message);\n    return;\n  }" { (expression_statement "png_chunk_warning(png_ptr,error_message);" (call_expression "png_chunk_warning(png_ptr,error_message)" identifier (argument_list "(png_ptr,error_message)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "png_warning(png_ptr,error_message);" (call_expression "png_warning(png_ptr,error_message)" identifier (argument_list "(png_ptr,error_message)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit "void png_benign_error(int param_1,undefined4 param_2)\n\n{\n  uint uVar1;\n  \n  uVar1 = *(uint *)(param_1 + 0xd0) & 0x8000;\n  if ((*(byte *)(param_1 + 0xd6) & 0x10) == 0) {\n    if ((uVar1 != 0) && (*(int *)(param_1 + 0x178) != 0)) {\n                    \n      png_chunk_error(param_1,param_2);\n    }\n                    \n    png_error(param_1,param_2);\n  }\n  if ((uVar1 != 0) && (*(int *)(param_1 + 0x178) != 0)) {\n    png_chunk_warning(param_1,param_2);\n    return;\n  }\n  png_warning(param_1,param_2);\n  return;\n}\n\n" (function_definition "void png_benign_error(int param_1,undefined4 param_2)\n\n{\n  uint uVar1;\n  \n  uVar1 = *(uint *)(param_1 + 0xd0) & 0x8000;\n  if ((*(byte *)(param_1 + 0xd6) & 0x10) == 0) {\n    if ((uVar1 != 0) && (*(int *)(param_1 + 0x178) != 0)) {\n                    \n      png_chunk_error(param_1,param_2);\n    }\n                    \n    png_error(param_1,param_2);\n  }\n  if ((uVar1 != 0) && (*(int *)(param_1 + 0x178) != 0)) {\n    png_chunk_warning(param_1,param_2);\n    return;\n  }\n  png_warning(param_1,param_2);\n  return;\n}" primitive_type (function_declarator "png_benign_error(int param_1,undefined4 param_2)" identifier (parameter_list "(int param_1,undefined4 param_2)" ( (parameter_declaration "int param_1" primitive_type identifier) , (parameter_declaration "undefined4 param_2" type_identifier identifier) ))) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = *(uint *)(param_1 + 0xd0) & 0x8000;\n  if ((*(byte *)(param_1 + 0xd6) & 0x10) == 0) {\n    if ((uVar1 != 0) && (*(int *)(param_1 + 0x178) != 0)) {\n                    \n      png_chunk_error(param_1,param_2);\n    }\n                    \n    png_error(param_1,param_2);\n  }\n  if ((uVar1 != 0) && (*(int *)(param_1 + 0x178) != 0)) {\n    png_chunk_warning(param_1,param_2);\n    return;\n  }\n  png_warning(param_1,param_2);\n  return;\n}" { (declaration "uint uVar1;" type_identifier identifier ;) (expression_statement "uVar1 = *(uint *)(param_1 + 0xd0) & 0x8000;" (assignment_expression "uVar1 = *(uint *)(param_1 + 0xd0) & 0x8000" identifier = (binary_expression "*(uint *)(param_1 + 0xd0) & 0x8000" (pointer_expression "*(uint *)(param_1 + 0xd0)" * (cast_expression "(uint *)(param_1 + 0xd0)" ( (type_descriptor "uint *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd0)" ( (binary_expression "param_1 + 0xd0" identifier + number_literal) )))) & number_literal)) ;) (if_statement "if ((*(byte *)(param_1 + 0xd6) & 0x10) == 0) {\n    if ((uVar1 != 0) && (*(int *)(param_1 + 0x178) != 0)) {\n                    \n      png_chunk_error(param_1,param_2);\n    }\n                    \n    png_error(param_1,param_2);\n  }" if (parenthesized_expression "((*(byte *)(param_1 + 0xd6) & 0x10) == 0)" ( (binary_expression "(*(byte *)(param_1 + 0xd6) & 0x10) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0xd6) & 0x10)" ( (binary_expression "*(byte *)(param_1 + 0xd6) & 0x10" (pointer_expression "*(byte *)(param_1 + 0xd6)" * (cast_expression "(byte *)(param_1 + 0xd6)" ( (type_descriptor "byte *" type_identifier (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0xd6)" ( (binary_expression "param_1 + 0xd6" identifier + number_literal) )))) & number_literal) )) == number_literal) )) (compound_statement "{\n    if ((uVar1 != 0) && (*(int *)(param_1 + 0x178) != 0)) {\n                    \n      png_chunk_error(param_1,param_2);\n    }\n                    \n    png_error(param_1,param_2);\n  }" { (if_statement "if ((uVar1 != 0) && (*(int *)(param_1 + 0x178) != 0)) {\n                    \n      png_chunk_error(param_1,param_2);\n    }" if (parenthesized_expression "((uVar1 != 0) && (*(int *)(param_1 + 0x178) != 0))" ( (binary_expression "(uVar1 != 0) && (*(int *)(param_1 + 0x178) != 0)" (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(int *)(param_1 + 0x178) != 0)" ( (binary_expression "*(int *)(param_1 + 0x178) != 0" (pointer_expression "*(int *)(param_1 + 0x178)" * (cast_expression "(int *)(param_1 + 0x178)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x178)" ( (binary_expression "param_1 + 0x178" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n                    \n      png_chunk_error(param_1,param_2);\n    }" { (expression_statement "png_chunk_error(param_1,param_2);" (call_expression "png_chunk_error(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) })) (expression_statement "png_error(param_1,param_2);" (call_expression "png_error(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) })) (if_statement "if ((uVar1 != 0) && (*(int *)(param_1 + 0x178) != 0)) {\n    png_chunk_warning(param_1,param_2);\n    return;\n  }" if (parenthesized_expression "((uVar1 != 0) && (*(int *)(param_1 + 0x178) != 0))" ( (binary_expression "(uVar1 != 0) && (*(int *)(param_1 + 0x178) != 0)" (parenthesized_expression "(uVar1 != 0)" ( (binary_expression "uVar1 != 0" identifier != number_literal) )) && (parenthesized_expression "(*(int *)(param_1 + 0x178) != 0)" ( (binary_expression "*(int *)(param_1 + 0x178) != 0" (pointer_expression "*(int *)(param_1 + 0x178)" * (cast_expression "(int *)(param_1 + 0x178)" ( (type_descriptor "int *" primitive_type (abstract_pointer_declarator "*" *)) ) (parenthesized_expression "(param_1 + 0x178)" ( (binary_expression "param_1 + 0x178" identifier + number_literal) )))) != number_literal) ))) )) (compound_statement "{\n    png_chunk_warning(param_1,param_2);\n    return;\n  }" { (expression_statement "png_chunk_warning(param_1,param_2);" (call_expression "png_chunk_warning(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })) (expression_statement "png_warning(param_1,param_2);" (call_expression "png_warning(param_1,param_2)" identifier (argument_list "(param_1,param_2)" ( identifier , identifier ))) ;) (return_statement "return;" return ;) })))
(translation_unit (function_definition TYPE (function_declarator IDENT (parameter_list ( (parameter_declaration TYPE IDENT) , (parameter_declaration TYPE IDENT) ))) (compound_statement { (declaration TYPE IDENT ;) (expression_statement (assignment_expression IDENT = (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT)) ;) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) & LIT) )) == LIT) )) (compound_statement { (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) })) (if_statement if (parenthesized_expression ( (binary_expression (parenthesized_expression ( (binary_expression IDENT != LIT) )) && (parenthesized_expression ( (binary_expression (pointer_expression * (cast_expression ( (type_descriptor TYPE (abstract_pointer_declarator *)) ) (parenthesized_expression ( (binary_expression IDENT + LIT) )))) != LIT) ))) )) (compound_statement { (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (return_statement return ;) })) (expression_statement (call_expression IDENT (argument_list ( IDENT , IDENT ))) ;) (return_statement return ;) })))
(function_definition "void png_benign_error(int param_1,undefined4 param_2)\n\n{\n  uint uVar1;\n  \n  uVar1 = *(uint *)(param_1 + 0xd0) & 0x8000;\n  if ((*(byte *)(param_1 + 0xd6) & 0x10) == 0) {\n    if ((uVar1 != 0) && (*(int *)(param_1 + 0x178) != 0)) {\n                    \n      png_chunk_error(param_1,param_2);\n    }\n                    \n    png_error(param_1,param_2);\n  }\n  if ((uVar1 != 0) && (*(int *)(param_1 + 0x178) != 0)) {\n    png_chunk_warning(param_1,param_2);\n    return;\n  }\n  png_warning(param_1,param_2);\n  return;\n}" (primitive_type "void") (function_declarator "png_benign_error(int param_1,undefined4 param_2)" (identifier "png_benign_error") (parameter_list "(int param_1,undefined4 param_2)" (( "(") (parameter_declaration "int param_1" (primitive_type "int") (identifier "param_1")) (, ",") (parameter_declaration "undefined4 param_2" (type_identifier "undefined4") (identifier "param_2")) () ")"))) (compound_statement "{\n  uint uVar1;\n  \n  uVar1 = *(uint *)(param_1 + 0xd0) & 0x8000;\n  if ((*(byte *)(param_1 + 0xd6) & 0x10) == 0) {\n    if ((uVar1 != 0) && (*(int *)(param_1 + 0x178) != 0)) {\n                    \n      png_chunk_error(param_1,param_2);\n    }\n                    \n    png_error(param_1,param_2);\n  }\n  if ((uVar1 != 0) && (*(int *)(param_1 + 0x178) != 0)) {\n    png_chunk_warning(param_1,param_2);\n    return;\n  }\n  png_warning(param_1,param_2);\n  return;\n}" ({ "{") (declaration "uint uVar1;" (type_identifier "uint") (identifier "uVar1") (; ";")) (expression_statement "uVar1 = *(uint *)(param_1 + 0xd0) & 0x8000;" (assignment_expression "uVar1 = *(uint *)(param_1 + 0xd0) & 0x8000" (identifier "uVar1") (= "=") (binary_expression "*(uint *)(param_1 + 0xd0) & 0x8000" (pointer_expression "*(uint *)(param_1 + 0xd0)" (* "*") (cast_expression "(uint *)(param_1 + 0xd0)" (( "(") (type_descriptor "uint *" (type_identifier "uint") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xd0)" (( "(") (binary_expression "param_1 + 0xd0" (identifier "param_1") (+ "+") (number_literal "0xd0")) () ")")))) (& "&") (number_literal "0x8000"))) (; ";")) (if_statement "if ((*(byte *)(param_1 + 0xd6) & 0x10) == 0) {\n    if ((uVar1 != 0) && (*(int *)(param_1 + 0x178) != 0)) {\n                    \n      png_chunk_error(param_1,param_2);\n    }\n                    \n    png_error(param_1,param_2);\n  }" (if "if") (parenthesized_expression "((*(byte *)(param_1 + 0xd6) & 0x10) == 0)" (( "(") (binary_expression "(*(byte *)(param_1 + 0xd6) & 0x10) == 0" (parenthesized_expression "(*(byte *)(param_1 + 0xd6) & 0x10)" (( "(") (binary_expression "*(byte *)(param_1 + 0xd6) & 0x10" (pointer_expression "*(byte *)(param_1 + 0xd6)" (* "*") (cast_expression "(byte *)(param_1 + 0xd6)" (( "(") (type_descriptor "byte *" (type_identifier "byte") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0xd6)" (( "(") (binary_expression "param_1 + 0xd6" (identifier "param_1") (+ "+") (number_literal "0xd6")) () ")")))) (& "&") (number_literal "0x10")) () ")")) (== "==") (number_literal "0")) () ")")) (compound_statement "{\n    if ((uVar1 != 0) && (*(int *)(param_1 + 0x178) != 0)) {\n                    \n      png_chunk_error(param_1,param_2);\n    }\n                    \n    png_error(param_1,param_2);\n  }" ({ "{") (if_statement "if ((uVar1 != 0) && (*(int *)(param_1 + 0x178) != 0)) {\n                    \n      png_chunk_error(param_1,param_2);\n    }" (if "if") (parenthesized_expression "((uVar1 != 0) && (*(int *)(param_1 + 0x178) != 0))" (( "(") (binary_expression "(uVar1 != 0) && (*(int *)(param_1 + 0x178) != 0)" (parenthesized_expression "(uVar1 != 0)" (( "(") (binary_expression "uVar1 != 0" (identifier "uVar1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(param_1 + 0x178) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x178) != 0" (pointer_expression "*(int *)(param_1 + 0x178)" (* "*") (cast_expression "(int *)(param_1 + 0x178)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x178)" (( "(") (binary_expression "param_1 + 0x178" (identifier "param_1") (+ "+") (number_literal "0x178")) () ")")))) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n                    \n      png_chunk_error(param_1,param_2);\n    }" ({ "{") (expression_statement "png_chunk_error(param_1,param_2);" (call_expression "png_chunk_error(param_1,param_2)" (identifier "png_chunk_error") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}"))) (expression_statement "png_error(param_1,param_2);" (call_expression "png_error(param_1,param_2)" (identifier "png_error") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")"))) (; ";")) (} "}"))) (if_statement "if ((uVar1 != 0) && (*(int *)(param_1 + 0x178) != 0)) {\n    png_chunk_warning(param_1,param_2);\n    return;\n  }" (if "if") (parenthesized_expression "((uVar1 != 0) && (*(int *)(param_1 + 0x178) != 0))" (( "(") (binary_expression "(uVar1 != 0) && (*(int *)(param_1 + 0x178) != 0)" (parenthesized_expression "(uVar1 != 0)" (( "(") (binary_expression "uVar1 != 0" (identifier "uVar1") (!= "!=") (number_literal "0")) () ")")) (&& "&&") (parenthesized_expression "(*(int *)(param_1 + 0x178) != 0)" (( "(") (binary_expression "*(int *)(param_1 + 0x178) != 0" (pointer_expression "*(int *)(param_1 + 0x178)" (* "*") (cast_expression "(int *)(param_1 + 0x178)" (( "(") (type_descriptor "int *" (primitive_type "int") (abstract_pointer_declarator "*" (* "*"))) () ")") (parenthesized_expression "(param_1 + 0x178)" (( "(") (binary_expression "param_1 + 0x178" (identifier "param_1") (+ "+") (number_literal "0x178")) () ")")))) (!= "!=") (number_literal "0")) () ")"))) () ")")) (compound_statement "{\n    png_chunk_warning(param_1,param_2);\n    return;\n  }" ({ "{") (expression_statement "png_chunk_warning(param_1,param_2);" (call_expression "png_chunk_warning(param_1,param_2)" (identifier "png_chunk_warning") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}"))) (expression_statement "png_warning(param_1,param_2);" (call_expression "png_warning(param_1,param_2)" (identifier "png_warning") (argument_list "(param_1,param_2)" (( "(") (identifier "param_1") (, ",") (identifier "param_2") () ")"))) (; ";")) (return_statement "return;" (return "return") (; ";")) (} "}")))

/* WARNING: Function: __x86.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */
/* WARNING: Unknown calling convention */

void function_1(type_1 png_ptr,type_2 error_message)

{
  type_3 var_1;
  
  var_1 = png_ptr->mode & 0x8000;
  if ((png_ptr->flags & 0x100000) == 0) {
    if ((var_1 != 0) && (png_ptr->chunk_name != 0)) {
                    /* WARNING: Subroutine does not return */
      var_2(png_ptr,error_message);
    }
                    /* WARNING: Subroutine does not return */
    var_3(png_ptr,error_message);
  }
  if ((var_1 != 0) && (png_ptr->chunk_name != 0)) {
    var_4(png_ptr,error_message);
    return;
  }
  var_5(png_ptr,error_message);
  return;
}


(translation_unit (function_definition type: (primitive_type) declarator: (function_declarator declarator: (identifier) parameters: (parameter_list (parameter_declaration type: (primitive_type) declarator: (identifier)) (parameter_declaration type: (type_identifier) declarator: (identifier)))) body: (compound_statement (declaration type: (type_identifier) declarator: (identifier)) (expression_statement (assignment_expression left: (identifier) right: (binary_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: (number_literal)))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_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: (number_literal))) right: (number_literal))) consequence: (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: (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: (number_literal))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))))) (if_statement condition: (parenthesized_expression (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (number_literal))) right: (parenthesized_expression (binary_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: (number_literal))))) consequence: (compound_statement (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (return_statement))) (expression_statement (call_expression function: (identifier) arguments: (argument_list (identifier) (identifier)))) (return_statement))))

/* WARNING: Function: __i686.get_pc_thunk.bx replaced with injection: get_pc_thunk_bx */

void MASKED(int param_1,undefined4 param_2)

{
  uint uVar1;
  
  uVar1 = *(uint *)(param_1 + 0xd0) & 0x8000;
  if ((*(byte *)(param_1 + 0xd6) & 0x10) == 0) {
    if ((uVar1 != 0) && (*(int *)(param_1 + 0x178) != 0)) {
                    /* WARNING: Subroutine does not return */
      png_chunk_error(param_1,param_2);
    }
                    /* WARNING: Subroutine does not return */
    png_error(param_1,param_2);
  }
  if ((uVar1 != 0) && (*(int *)(param_1 + 0x178) != 0)) {
    png_chunk_warning(param_1,param_2);
    return;
  }
  png_warning(param_1,param_2);
  return;
}

