//
// png_set_packing from 0xbe51f8 to 0xbe5220 (40 bytes)
//
// 6 xrefs:
// > cocos2d::CCImage::_saveImageToPNG @ 0xb0c9b4
// > sub_BD1BEC @ 0xbd273c
// > png_read_png @ 0xbd601c
// > sub_BE8924 @ 0xbe8c78
// > png_write_png @ 0xbe8f90
// > ??> @ 0x66db0
//
// 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_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;
}