//
// png_warning_parameter_signed from 0x650edc to 0x650f26 (74 bytes)
//
// 1 xrefs:
// > sub_663DFC @ 0x663eca
//
// 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
//
unsigned int __fastcall png_warning_parameter_signed(unsigned int a1, int a2, int a3, signed int a4)
{
char *v6; // r0
char *v8; // r0
char *v9; // r2
_BYTE v10[24]; // [sp+0h] [bp-18h] BYREF
_BYTE vars0[16]; // [sp+18h] [bp+0h] BYREF
if ( a4 < 0 )
{
v8 = png_format_number((unsigned int)v10, (int)vars0, a3, -a4);
v9 = v8;
if ( v8 > v10 )
{
v9 = v8 - 1;
*(v8 - 1) = 45;
}
return png_warning_parameter(a1, a2, v9);
}
else
{
v6 = png_format_number((unsigned int)v10, (int)vars0, a3, a4);
return png_warning_parameter(a1, a2, v6);
}
}