//
// png_get_sCAL_fixed from 0x651d48 to 0x651dba (114 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_fixed(int a1, int a2, _DWORD *a3, int *a4, int *a5)
{
bool v5; // zf
double v10; // r0
double v11; // r0
v5 = a1 == 0;
if ( a1 )
v5 = a2 == 0;
if ( v5 || (*(_DWORD *)(a2 + 8) & 0x4000) == 0 )
return 0;
*a3 = *(unsigned __int8 *)(a2 + 252);
v10 = strtod((const char *)*(_DWORD *)(a2 + 256), nullptr);
*a4 = png_fixed(a1, v10, (int)"sCAL width");
v11 = strtod((const char *)*(_DWORD *)(a2 + 260), nullptr);
*a5 = png_fixed(a1, v11, (int)"sCAL height");
return 0x4000;
}