//
// png_write_IEND from 0xe620e8 to 0xe621c4 (220 bytes)
//
// 2 xrefs:
// > png_write_end @ 0xe5d4dc
// > ??> @ 0xb0170
//
// 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:24 +0000
//
__int64 __fastcall png_write_IEND(_DWORD *a1)
{
_BYTE v3[4]; // [xsp+30h] [xbp+30h] BYREF
_BYTE v4[4]; // [xsp+34h] [xbp+34h] BYREF
if ( a1 )
{
a1[313] = 34;
png_save_uint_32(v3, 0);
png_save_uint_32(v4, 1229278788);
png_write_data((__int64)a1);
a1[148] = 1229278788;
png_reset_crc((__int64)a1);
png_calculate_crc(a1, (__int64)v4, 4);
a1[313] = 66;
png_write_chunk_data((__int64)a1, 0, 0);
png_write_chunk_end((__int64)a1);
}
a1[89] |= 0x10u;
return _stack_chk_guard;
}