//
// png_crc_error from 0xbdf008 to 0xbdf0b0 (168 bytes)
//
// 2 xrefs:
// > png_crc_finish @ 0xbdf120
// > ??> @ 0x49650
//
// 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; // [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;
}