//
// png_set_sig_bytes from 0xe3b7ac to 0xe3b7e8 (60 bytes)
//
// 1 xrefs:
// > ??> @ 0x7fd20
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:10:00 +0000
//
__int64 __fastcall png_set_sig_bytes(__int64 result, int a2)
{
__int64 v2; // x2
v2 = result;
if ( result )
{
if ( a2 > 8 )
png_error(result, "Too many bytes for PNG signature");
if ( a2 < 0 )
result = 0;
else
result = (unsigned __int8)a2;
*(_BYTE *)(v2 + 693) = result;
}
return result;
}