//
// png_set_packing from 0xe5b3b8 to 0xe5b3e0 (40 bytes)
//
// 5 xrefs:
// > sub_E47DAC @ 0xe488fc
// > png_read_png @ 0xe4c1dc
// > sub_E5EAE4 @ 0xe5ee38
// > png_write_png @ 0xe5f150
// > ??> @ 0x8b9a8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:10:20 +0000
//
__int64 __fastcall png_set_packing(__int64 result)
{
int v1; // w1
if ( result )
{
if ( *(unsigned __int8 *)(result + 688) <= 7u )
{
v1 = *(_DWORD *)(result + 364);
*(_BYTE *)(result + 689) = 8;
*(_DWORD *)(result + 364) = v1 | 4;
}
}
return result;
}