//
// png_set_sCAL from 0x65fe28 to 0x65feac (132 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
//
void *__fastcall png_set_sCAL(double a1, int a2, int a3, double a4, double a5)
{
int v5; // r8
void *v7; // r6
int v8; // r3
char v10[20]; // [sp+10h] [bp-28h] BYREF
char v11[20]; // [sp+24h] [bp-14h] BYREF
if ( a4 <= 0.0 )
return (void *)png_warning(SLODWORD(a1), "Invalid sCAL width ignored");
if ( a5 <= 0.0 )
return (void *)png_warning(SLODWORD(a1), "Invalid sCAL height ignored");
v5 = HIDWORD(a1);
HIDWORD(a1) = v10;
v7 = (void *)LODWORD(a1);
png_ascii_from_fp(a1, 0x12u, a3, a4, 5u);
png_ascii_from_fp(COERCE_DOUBLE(__PAIR64__(v11, (unsigned int)v7)), 0x12u, v8, a5, 5u);
return png_set_sCAL_s(v7, v5, a2, v10, v11);
}