//
// png_crc_error from 0x86c828 to 0x86c89a (114 bytes)
//
// 1 xrefs:
// > png_crc_finish @ 0x86c8d4
//
// 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:55 +0000
//
bool __fastcall png_crc_error(_DWORD *a1)
{
unsigned __int8 v3; // [sp+4h] [bp-4h]
unsigned __int8 v4; // [sp+5h] [bp-3h]
unsigned __int8 v5; // [sp+6h] [bp-2h]
unsigned __int8 v6; // [sp+7h] [bp-1h]
if ( (a1[119] & 0x20000000) != 0 )
{
if ( (a1[78] & 0x300) != 0x300 )
{
LABEL_3:
a1[225] = 129;
png_read_data((int)a1);
return a1[128] != (v4 << 16) + (v3 << 24) + v6 + (v5 << 8);
}
}
else if ( (a1[78] & 0x800) == 0 )
{
goto LABEL_3;
}
a1[225] = 129;
png_read_data((int)a1);
return 0;
}