//
// png_warning_parameter_signed from 0x860f5c to 0x860fa6 (74 bytes)
//
// 1 xrefs:
// > sub_873E7C @ 0x873f4a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:02:43 +0000
//
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);
}
}