//
// png_crc_error from 0x65c7a8 to 0x65c81a (114 bytes)
//
// 1 xrefs:
// > png_crc_finish @ 0x65c854
//
// 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
//
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;
}