//
// png_write_chunk_end from 0xe61594 to 0xe615dc (72 bytes)
//
// 28 xrefs:
// > png_write_chunk @ 0xe616b0
// > png_write_IHDR @ 0xe6190c
// > png_write_PLTE @ 0xe61bd0
// > png_compress_IDAT @ 0xe61ddc
// > png_compress_IDAT @ 0xe61f94
// > png_write_IEND @ 0xe6218c
// > png_write_gAMA_fixed @ 0xe62278
// > png_write_sRGB @ 0xe62368
// > png_write_iCCP @ 0xe62534
// > png_write_sPLT @ 0xe6278c
// > png_write_sBIT @ 0xe628f8
// > png_write_cHRM_fixed @ 0xe62a90
// > png_write_tRNS @ 0xe62c0c
// > png_write_tRNS @ 0xe62c98
// > png_write_tRNS @ 0xe62d5c
// > png_write_bKGD @ 0xe62e70
// > png_write_bKGD @ 0xe62f78
// > png_write_bKGD @ 0xe63050
// > png_write_hIST @ 0xe63144
// > png_write_tEXt @ 0xe63288
// > png_write_zTXt @ 0xe63478
// > png_write_iTXt @ 0xe636e4
// > png_write_oFFs @ 0xe63a24
// > png_write_pCAL @ 0xe63c28
// > png_write_sCAL_s @ 0xe63e4c
// > png_write_pHYs @ 0xe63f7c
// > png_write_tIME @ 0xe640d0
// > ??> @ 0xf12a0
//
// 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:23 +0000
//
__int64 __fastcall png_write_chunk_end(__int64 result)
{
__int64 v1; // x19
int v2; // w1
char v3; // [xsp+28h] [xbp+28h] BYREF
if ( result )
{
v1 = result;
v2 = *(_DWORD *)(result + 660);
*(_DWORD *)(result + 1252) = 130;
png_save_uint_32(&v3, v2);
return png_write_data(v1);
}
return result;
}