//
// png_set_cHRM_fixed from 0xe595e4 to 0xe59690 (172 bytes)
//
// 3 xrefs:
// > png_set_cHRM @ 0xe59870
// > sub_E5EAE4 @ 0xe5ee70
// > ??> @ 0xbfe18
//
// 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:19 +0000
//
__int64 __fastcall png_set_cHRM_fixed(
__int64 result,
__int64 a2,
unsigned int a3,
unsigned int a4,
unsigned int a5,
unsigned int a6,
unsigned int a7,
unsigned int a8,
unsigned int a9,
unsigned int a10)
{
__int64 v11; // x20
__int128 v12; // [xsp+20h] [xbp+20h]
__int128 v13; // [xsp+30h] [xbp+30h]
_OWORD v14[2]; // [xsp+40h] [xbp+40h] BYREF
if ( result && a2 )
{
*(_QWORD *)&v13 = __PAIR64__(a6, a5);
*((_QWORD *)&v13 + 1) = __PAIR64__(a8, a7);
v11 = result;
v14[0] = v13;
*(_QWORD *)&v12 = __PAIR64__(a10, a9);
*((_QWORD *)&v12 + 1) = __PAIR64__(a4, a3);
v14[1] = v12;
if ( (unsigned int)png_colorspace_set_chromaticities(result, a2 + 52, (int *)v14, 2) )
*(_WORD *)(a2 + 126) |= 0x10u;
return png_colorspace_sync_info(v11, a2);
}
return result;
}