//
// png_data_freer from 0x85d534 to 0x85d56a (54 bytes)
//
// 0 xrefs:
//
// 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:41 +0000
//
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;
}