//
// png_write_chunk_start from 0x874150 to 0x8741ac (92 bytes)
//
// 0 xrefs:
//
// 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
//
_DWORD *__fastcall png_write_chunk_start(_DWORD *result, unsigned int *a2, int a3)
{
int v3; // r5
_DWORD *v4; // r4
_BYTE v5[4]; // [sp+0h] [bp-Ch] BYREF
_BYTE v6[8]; // [sp+4h] [bp-8h] BYREF
v3 = _byteswap_ulong(*a2);
if ( result )
{
v4 = result;
result[225] = 34;
png_save_uint_32(v5, a3);
png_save_uint_32(v6, v3);
png_write_data((int)v4);
v4[119] = v3;
png_reset_crc((int)v4);
result = png_calculate_crc(v4, (int)v6, 4);
v4[225] = 66;
}
return result;
}