//
// png_data_freer from 0xbc5ae8 to 0xbc5b3c (84 bytes)
//
// 1 xrefs:
// > ??> @ 0x5d1f8
//
// 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
//
__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;
}