//
// png_benign_error from 0x8611ec to 0x861234 (72 bytes)
//
// 11 xrefs:
// > png_colorspace_set_endpoints @ 0x85f2b8
// > png_colorspace_set_endpoints @ 0x85f8a6
// > png_colorspace_set_chromaticities @ 0x85fcee
// > png_colorspace_set_chromaticities @ 0x85fe48
// > png_colorspace_set_sRGB @ 0x8601a2
// > png_push_read_chunk @ 0x862a3e
// > png_read_end @ 0x867358
// > png_read_end @ 0x86739e
// > png_read_end @ 0x8673f8
// > png_set_iCCP @ 0x8701e2
// > png_write_end @ 0x871dd2
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:02:43 +0000
//
int __fastcall png_benign_error(_DWORD *a1, const char *a2)
{
int v2; // r4
v2 = a1[77];
if ( (a1[78] & 0x100000) == 0 )
{
if ( (v2 & 0x8000) == 0 || !a1[119] )
png_error((int)a1, a2);
png_chunk_error((int)a1, a2);
}
if ( (v2 & 0x8000) != 0 && a1[119] )
return png_chunk_warning((int)a1, a2);
else
return png_warning((int)a1, a2);
}