//
// png_get_cHRM_fixed from 0x861aa8 to 0x861b12 (106 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:02:43 +0000
//
int __fastcall png_get_cHRM_fixed(
int a1,
int a2,
_DWORD *a3,
_DWORD *a4,
_DWORD *a5,
_DWORD *a6,
_DWORD *a7,
_DWORD *a8,
_DWORD *a9,
_DWORD *a10)
{
bool v10; // zf
int result; // r0
v10 = a1 == 0;
if ( a1 )
v10 = a2 == 0;
if ( v10 )
return 0;
result = *(_WORD *)(a2 + 114) & 2;
if ( (*(_WORD *)(a2 + 114) & 2) != 0 )
{
if ( a3 )
*a3 = *(_DWORD *)(a2 + 68);
if ( a4 )
*a4 = *(_DWORD *)(a2 + 72);
if ( a5 )
*a5 = *(_DWORD *)(a2 + 44);
if ( a6 )
*a6 = *(_DWORD *)(a2 + 48);
if ( a7 )
*a7 = *(_DWORD *)(a2 + 52);
if ( a8 )
*a8 = *(_DWORD *)(a2 + 56);
if ( a9 )
*a9 = *(_DWORD *)(a2 + 60);
if ( a10 )
*a10 = *(_DWORD *)(a2 + 64);
return 4;
}
return result;
}