//
// png_app_warning from 0x6510e8 to 0x6510fe (22 bytes)
//
// 9 xrefs:
// > png_chunk_report @ 0x651168
// > png_set_rgb_to_gray_fixed @ 0x659660
// > png_handle_unknown @ 0x65e820
// > png_set_unknown_chunks @ 0x6606f6
// > png_write_info_before_PLTE @ 0x661982
// > png_write_tRNS @ 0x664ea2
// > png_write_tRNS @ 0x664ebe
// > png_write_tRNS @ 0x664eda
// > png_write_tRNS @ 0x665044
//
// 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_warning(int a1, const char *a2)
{
if ( (*(_DWORD *)(a1 + 312) & 0x200000) == 0 )
png_error(a1, a2);
return png_warning(a1, a2);
}