//
// png_benign_error from 0xe43454 to 0xe434b4 (96 bytes)
//
// 12 xrefs:
// > png_colorspace_set_endpoints @ 0xe3ef94
// > png_colorspace_set_endpoints @ 0xe3f230
// > png_colorspace_set_chromaticities @ 0xe3f868
// > png_colorspace_set_chromaticities @ 0xe3fa10
// > png_colorspace_set_sRGB @ 0xe40128
// > png_push_read_chunk @ 0xe458a4
// > png_read_end @ 0xe4bbfc
// > png_read_end @ 0xe4bc68
// > png_read_end @ 0xe4bcec
// > png_set_iCCP @ 0xe5a598
// > png_write_end @ 0xe5d538
// > ??> @ 0xb7658
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:10:04 +0000
//
__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);
}