//
// png_get_cHRM from 0xe43d08 to 0xe43e04 (252 bytes)
//
// 1 xrefs:
// > ??> @ 0x4df08
//
// 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:04 +0000
//
__int64 __fastcall png_get_cHRM(
__int64 a1,
__int64 a2,
double *a3,
double *a4,
double *a5,
double *a6,
double *a7,
double *a8,
double *a9,
double *a10)
{
__int64 result; // x0
if ( !a1 || !a2 )
return 0;
result = 0;
if ( (*(_WORD *)(a2 + 126) & 2) != 0 )
{
if ( a3 )
*a3 = (double)*(int *)(a2 + 80) * 0.00001;
if ( a4 )
*a4 = (double)*(int *)(a2 + 84) * 0.00001;
if ( a5 )
*a5 = (double)*(int *)(a2 + 56) * 0.00001;
if ( a6 )
*a6 = (double)*(int *)(a2 + 60) * 0.00001;
if ( a7 )
*a7 = (double)*(int *)(a2 + 64) * 0.00001;
if ( a8 )
*a8 = (double)*(int *)(a2 + 68) * 0.00001;
if ( a9 )
*a9 = (double)*(int *)(a2 + 72) * 0.00001;
if ( a10 )
{
result = 4;
*a10 = (double)*(int *)(a2 + 76) * 0.00001;
}
else
{
return 4;
}
}
return result;
}