//
// png_set_sCAL_fixed from 0x65feb4 to 0x65ff0e (90 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_fixed(void *a1, int a2, int a3, int a4, int a5)
{
char v9[20]; // [sp+8h] [bp-28h] BYREF
char v10[20]; // [sp+1Ch] [bp-14h] BYREF
if ( a4 <= 0 )
return (void *)png_warning((int)a1, "Invalid sCAL width ignored");
if ( a5 <= 0 )
return (void *)png_warning((int)a1, "Invalid sCAL height ignored");
png_ascii_from_fixed((unsigned int)a1, v9, 0x12u, a4);
png_ascii_from_fixed((unsigned int)a1, v10, 0x12u, a5);
return png_set_sCAL_s(a1, a2, a3, v9, v10);
}