//
// png_set_sCAL from 0xbe3eac to 0xbe3f8c (224 bytes)
//
// 1 xrefs:
// > ??> @ 0x76008
//
// 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
//
__int64 __fastcall png_set_sCAL(__int64 a1, __int64 a2, int a3, double a4, double a5)
{
char v10[24]; // [xsp+58h] [xbp+58h] BYREF
char v11[24]; // [xsp+70h] [xbp+70h] BYREF
if ( a4 <= 0.0 )
{
png_warning(a1, "Invalid sCAL width ignored");
}
else if ( a5 <= 0.0 )
{
png_warning(a1, "Invalid sCAL height ignored");
}
else
{
png_ascii_from_fp(a1, v10, 0x12u, 5, a4);
png_ascii_from_fp(a1, v11, 0x12u, 5, a5);
png_set_sCAL_s(a1, a2, a3, v10, v11);
}
return _stack_chk_guard;
}