//
// png_handle_IEND from 0xbdf580 to 0xbdf5f0 (112 bytes)
//
// 4 xrefs:
// > png_push_read_chunk @ 0xbcf404
// > png_read_info @ 0xbd356c
// > png_read_end @ 0xbd5a64
// > ??> @ 0xa41a8
//
// 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
//
__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;
}