//
// png_get_cHRM_XYZ_fixed from 0xbcdd78 to 0xbcde28 (176 bytes)
//
// 1 xrefs:
// > ??> @ 0x51978
//
// 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_get_cHRM_XYZ_fixed(
__int64 a1,
__int64 a2,
_DWORD *a3,
_DWORD *a4,
_DWORD *a5,
_DWORD *a6,
_DWORD *a7,
_DWORD *a8,
_DWORD *a9,
_DWORD *a10,
_DWORD *a11)
{
__int64 result; // x0
if ( !a1 || !a2 )
return 0;
result = 0;
if ( (*(_WORD *)(a2 + 126) & 2) != 0 )
{
if ( a3 )
*a3 = *(_DWORD *)(a2 + 88);
if ( a4 )
*a4 = *(_DWORD *)(a2 + 92);
if ( a5 )
*a5 = *(_DWORD *)(a2 + 96);
if ( a6 )
*a6 = *(_DWORD *)(a2 + 100);
if ( a7 )
*a7 = *(_DWORD *)(a2 + 104);
if ( a8 )
*a8 = *(_DWORD *)(a2 + 108);
if ( a9 )
*a9 = *(_DWORD *)(a2 + 112);
if ( a10 )
*a10 = *(_DWORD *)(a2 + 116);
if ( a11 )
{
result = 4;
*a11 = *(_DWORD *)(a2 + 120);
}
else
{
return 4;
}
}
return result;
}