//
// png_handle_IEND from 0x86cbb0 to 0x86cbea (58 bytes)
//
// 3 xrefs:
// > png_push_read_chunk @ 0x8627f6
// > png_read_info @ 0x86589a
// > png_read_end @ 0x867370
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 12:02:55 +0000
//
int __fastcall png_handle_IEND(_DWORD *a1, int a2, unsigned int a3)
{
int result; // r0
if ( (a1[77] & 5) != 5 )
png_chunk_error((int)a1, "out of place");
a1[77] |= 0x18u;
result = png_crc_finish(a1, a3);
if ( a3 )
return png_chunk_benign_error((int)a1, "invalid");
return result;
}