//
// png_write_chunk_end from 0x8741d4 to 0x8741fe (42 bytes)
//
// 27 xrefs:
// > png_write_chunk @ 0x874270
// > png_write_IHDR @ 0x8743f4
// > png_write_PLTE @ 0x8745ca
// > png_compress_IDAT @ 0x874730
// > png_compress_IDAT @ 0x87487c
// > png_write_IEND @ 0x874990
// > png_write_gAMA_fixed @ 0x874a0a
// > png_write_sRGB @ 0x874a80
// > png_write_iCCP @ 0x874b98
// > png_write_sPLT @ 0x874d36
// > png_write_sBIT @ 0x874e0c
// > png_write_cHRM_fixed @ 0x874efc
// > png_write_tRNS @ 0x874fc0
// > png_write_tRNS @ 0x875022
// > png_write_tRNS @ 0x8750a6
// > png_write_bKGD @ 0x875156
// > png_write_bKGD @ 0x8751d4
// > png_write_bKGD @ 0x875256
// > png_write_hIST @ 0x87532c
// > png_write_tEXt @ 0x8753e6
// > png_write_zTXt @ 0x875524
// > png_write_iTXt @ 0x8756ca
// > png_write_oFFs @ 0x8758d6
// > png_write_pCAL @ 0x875a24
// > png_write_sCAL_s @ 0x875b62
// > png_write_pHYs @ 0x875c06
// > png_write_tIME @ 0x875cb4
//
// 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:03:00 +0000
//
int __fastcall png_write_chunk_end(int result)
{
int v1; // r4
int v2; // r1
_BYTE v3[8]; // [sp+4h] [bp-8h] BYREF
if ( result )
{
v1 = result;
v2 = *(_DWORD *)(result + 512);
*(_DWORD *)(result + 900) = 130;
png_save_uint_32(v3, v2);
return png_write_data(v1);
}
return result;
}