//
// png_crc_error from 0xe551c8 to 0xe55270 (168 bytes)
//
// 2 xrefs:
// > png_crc_finish @ 0xe552e0
// > ??> @ 0x67918
//
// 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:18 +0000
//
bool __fastcall png_crc_error(_DWORD *a1)
{
unsigned __int8 v3; // [xsp+28h] [xbp+28h]
unsigned __int8 v4; // [xsp+29h] [xbp+29h]
unsigned __int8 v5; // [xsp+2Ah] [xbp+2Ah]
unsigned __int8 v6; // [xsp+2Bh] [xbp+2Bh]
if ( (a1[148] & 0x20000000) != 0 )
{
if ( (a1[90] & 0x300) != 0x300 )
{
LABEL_3:
a1[313] = 129;
png_read_data((__int64)a1);
return a1[165] != (v4 << 16) + (v3 << 24) + v6 + (v5 << 8);
}
}
else if ( (a1[90] & 0x800) == 0 )
{
goto LABEL_3;
}
a1[313] = 129;
png_read_data((__int64)a1);
return 0;
}