//
// png_handle_IEND from 0xe55740 to 0xe557b0 (112 bytes)
//
// 4 xrefs:
// > png_push_read_chunk @ 0xe455c4
// > png_read_info @ 0xe4972c
// > png_read_end @ 0xe4bc24
// > ??> @ 0xd7aa0
//
// 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:18 +0000
//
__int64 __fastcall png_handle_IEND(_DWORD *a1, __int64 a2, unsigned int a3)
{
__int64 result; // x0
if ( (a1[89] & 5) != 5 )
png_chunk_error((__int64)a1, "out of place");
a1[89] |= 0x18u;
result = png_crc_finish(a1, a3);
if ( a3 )
return png_chunk_benign_error((__int64)a1, "invalid");
return result;
}