//
// png_set_packing from 0x870b98 to 0x870bb8 (32 bytes)
//
// 4 xrefs:
// > sub_8644A4 @ 0x864c0c
// > png_read_png @ 0x867772
// > sub_872E84 @ 0x873116
// > png_write_png @ 0x87334a
//
// 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_packing(int result)
{
int v1; // r3
if ( result )
{
if ( *(unsigned __int8 *)(result + 536) <= 7u )
{
v1 = *(_DWORD *)(result + 316);
*(_BYTE *)(result + 537) = 8;
*(_DWORD *)(result + 316) = v1 | 4;
}
}
return result;
}