//
// png_set_packswap from 0xbe5220 to 0xbe5240 (32 bytes)
//
// 3 xrefs:
// > png_read_png @ 0xbd600c
// > png_write_png @ 0xbe8f58
// > ??> @ 0x99798
//
// 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_packswap(__int64 result)
{
if ( result )
{
if ( *(unsigned __int8 *)(result + 688) <= 7u )
*(_DWORD *)(result + 364) |= 0x10000u;
}
return result;
}