//
// png_set_sBIT from 0xe5a35c to 0xe5a398 (60 bytes)
//
// 2 xrefs:
// > png_handle_sBIT @ 0xe55994
// > ??> @ 0x8e690
//
// 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:20 +0000
//
__int64 __fastcall png_set_sBIT(__int64 result, __int64 a2, __int64 a3)
{
if ( a2 != 0 && a3 != 0 )
{
if ( result )
{
*(_DWORD *)(a2 + 176) = *(_DWORD *)a3;
result = *(_DWORD *)(a2 + 8) | 2u;
*(_BYTE *)(a2 + 180) = *(_BYTE *)(a3 + 4);
*(_DWORD *)(a2 + 8) = result;
}
}
return result;
}