//
// png_set_swap from 0x870b80 to 0x870b98 (24 bytes)
//
// 4 xrefs:
// > sub_865DE8 @ 0x866106
// > png_read_png @ 0x8677aa
// > sub_872E84 @ 0x8730a4
// > png_write_png @ 0x873332
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:02:57 +0000
//
int __fastcall png_set_swap(int result)
{
if ( result )
{
if ( *(_BYTE *)(result + 536) == 16 )
*(_DWORD *)(result + 316) |= 0x10u;
}
return result;
}