//
// png_set_sig_bytes from 0xbc55ec to 0xbc5628 (60 bytes)
//
// 1 xrefs:
// > ??> @ 0x5d678
//
// 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_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;
}