//
// png_app_error from 0x651100 to 0x651116 (22 bytes)
//
// 29 xrefs:
// > png_chunk_report @ 0x651158
// > png_read_update_info @ 0x655a2c
// > png_start_read_image @ 0x655a5a
// > png_set_background_fixed @ 0x6589b6
// > png_set_scale_16 @ 0x658a28
// > png_set_strip_16 @ 0x658a54
// > png_set_strip_alpha @ 0x658a80
// > png_set_alpha_mode_fixed @ 0x658be4
// > png_set_quantize @ 0x6591a4
// > png_set_gamma_fixed @ 0x65938e
// > png_set_expand @ 0x6594f4
// > png_set_palette_to_rgb @ 0x659524
// > png_set_expand_gray_1_2_4_to_8 @ 0x659550
// > png_set_tRNS_to_alpha @ 0x659580
// > png_set_expand_16 @ 0x6595b0
// > png_set_gray_to_rgb @ 0x6595e8
// > png_set_rgb_to_gray_fixed @ 0x65968a
// > png_set_rgb_to_gray_fixed @ 0x6596b2
// > png_set_iCCP @ 0x660150
// > png_set_sPLT @ 0x66061e
// > png_set_unknown_chunk_location @ 0x6607e2
// > png_set_keep_unknown_chunks @ 0x660942
// > png_set_keep_unknown_chunks @ 0x66097e
// > png_set_filler @ 0x660be0
// > png_set_filler @ 0x660bfc
// > png_set_user_transform_info @ 0x661194
// > png_set_filter @ 0x6627f6
// > png_write_png @ 0x663272
// > png_write_png @ 0x6632ec
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall png_app_error(int a1, const char *a2)
{
if ( (*(_DWORD *)(a1 + 312) & 0x400000) == 0 )
png_error(a1, a2);
return png_warning(a1, a2);
}