//
// png_set_sBIT from 0xbe419c to 0xbe41d8 (60 bytes)
//
// 2 xrefs:
// > png_handle_sBIT @ 0xbdf7d4
// > ??> @ 0x69270
//
// 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_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;
}