//
// png_set_packswap from 0x660b38 to 0x660b50 (24 bytes)
//
// 2 xrefs:
// > png_read_png @ 0x6576ea
// > png_write_png @ 0x6632aa
//
// 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
//
int __fastcall png_set_packswap(int result)
{
if ( result )
{
if ( *(unsigned __int8 *)(result + 536) <= 7u )
*(_DWORD *)(result + 316) |= 0x10000u;
}
return result;
}