//
// png_set_sig_bytes from 0x64d210 to 0x64d230 (32 bytes)
//
// 0 xrefs:
//
// 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
//
int __fastcall png_set_sig_bytes(int result, int a2)
{
if ( result )
{
if ( a2 > 8 )
png_error(result, "Too many bytes for PNG signature");
if ( a2 < 0 )
LOBYTE(a2) = 0;
*(_BYTE *)(result + 541) = a2;
}
return result;
}