//
// png_write_sig from 0x664088 to 0x6640ca (66 bytes)
//
// 1 xrefs:
// > png_write_info_before_PLTE @ 0x66181a
//
// 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_write_sig(int a1)
{
int result; // r0
*(_DWORD *)(a1 + 900) = 18;
result = png_write_data(a1);
if ( *(unsigned __int8 *)(a1 + 541) <= 2u )
*(_DWORD *)(a1 + 308) |= 0x1000u;
return result;
}