//
// png_data_freer from 0x64d4b4 to 0x64d4ea (54 bytes)
//
// 0 xrefs:
//
// 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
//
int __fastcall png_data_freer(int result, int a2, int a3, int a4)
{
bool v4; // zf
v4 = a2 == 0;
if ( a2 )
v4 = result == 0;
if ( !v4 )
{
if ( a3 == 1 )
{
*(_DWORD *)(a2 + 232) |= a4;
}
else
{
if ( a3 != 2 )
png_error(result, "Unknown freer parameter in png_data_freer");
*(_DWORD *)(a2 + 232) &= ~a4;
}
}
return result;
}