//
// png_data_freer from 0xe3bca8 to 0xe3bcfc (84 bytes)
//
// 1 xrefs:
// > ??> @ 0x7f7b0
//
// 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:00 +0000
//
__int64 __fastcall png_data_freer(__int64 result, __int64 a2, int a3, int a4)
{
if ( result && a2 )
{
if ( a3 == 1 )
{
result = *(unsigned int *)(a2 + 284);
*(_DWORD *)(a2 + 284) = result | a4;
}
else
{
if ( a3 != 2 )
png_error(result, "Unknown freer parameter in png_data_freer");
result = *(unsigned int *)(a2 + 284);
*(_DWORD *)(a2 + 284) = result & ~a4;
}
}
return result;
}