//
// png_set_oFFs from 0xbe3a8c to 0xbe3ab0 (36 bytes)
//
// 2 xrefs:
// > png_handle_oFFs @ 0xbe0cd0
// > ??> @ 0x501c0
//
// 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_set_oFFs(__int64 result, __int64 a2, int a3, int a4, char a5)
{
int v5; // w0
if ( result )
{
if ( a2 )
{
v5 = *(_DWORD *)(a2 + 8);
*(_DWORD *)(a2 + 212) = a3;
result = v5 | 0x100u;
*(_DWORD *)(a2 + 216) = a4;
*(_BYTE *)(a2 + 220) = a5;
*(_DWORD *)(a2 + 8) = result;
}
}
return result;
}