//
// png_benign_error from 0xbcd294 to 0xbcd2f4 (96 bytes)
//
// 12 xrefs:
// > png_colorspace_set_endpoints @ 0xbc8dd4
// > png_colorspace_set_endpoints @ 0xbc9070
// > png_colorspace_set_chromaticities @ 0xbc96a8
// > png_colorspace_set_chromaticities @ 0xbc9850
// > png_colorspace_set_sRGB @ 0xbc9f68
// > png_push_read_chunk @ 0xbcf6e4
// > png_read_end @ 0xbd5a3c
// > png_read_end @ 0xbd5aa8
// > png_read_end @ 0xbd5b2c
// > png_set_iCCP @ 0xbe43d8
// > png_write_end @ 0xbe7378
// > ??> @ 0x8a510
//
// 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
//
__int64 __fastcall png_benign_error(_DWORD *a1, const char *a2)
{
if ( (a1[90] & 0x100000) == 0 )
{
if ( (a1[89] & 0x8000) == 0 || !a1[148] )
png_error((__int64)a1, a2);
png_chunk_error((__int64)a1, a2);
}
if ( (a1[89] & 0x8000) != 0 && a1[148] )
return png_chunk_warning((__int64)a1, a2);
else
return png_warning((__int64)a1, a2);
}