//
// png_get_sCAL from 0x651dc4 to 0x651e12 (78 bytes)
//
// 0 xrefs:
//
// 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
//
int __fastcall png_get_sCAL(int a1, int a2, _DWORD *a3, double *a4, double *a5)
{
bool v5; // zf
int v6; // r0
int v7; // r4
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);
*a4 = strtod((const char *)*(_DWORD *)(a2 + 256), nullptr);
*a5 = strtod((const char *)*(_DWORD *)(a2 + 260), nullptr);
return 0x4000;
}