//
// png_get_sCAL from 0x861e44 to 0x861e92 (78 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:44 +0000
//
int __fastcall png_get_sCAL(int a1, int a2, _DWORD *a3, _QWORD *a4, _QWORD *a5)
{
bool v5; // zf
int v6; // r0
int v7; // r4
__int64 v11; // r0
__int64 v12; // r0
v5 = a1 == 0;
if ( a1 )
v5 = a2 == 0;
v6 = !v5;
if ( v5 )
return v6;
v7 = *(_DWORD *)(a2 + 8) & 0x4000;
if ( !v7 )
return v7;
*a3 = *(unsigned __int8 *)(a2 + 252);
LODWORD(v11) = sub_993ED0(*(char **)(a2 + 256));
*a4 = v11;
LODWORD(v12) = sub_993ED0(*(char **)(a2 + 260));
*a5 = v12;
return 0x4000;
}