//
// png_read_chunk_header from 0x86ea0c to 0x86ea70 (100 bytes)
//
// 3 xrefs:
// > png_read_info @ 0x865712
// > png_read_end @ 0x867206
// > png_read_IDAT_data @ 0x86f24e
//
// 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:56 +0000
//
int __fastcall png_read_chunk_header(_DWORD *a1)
{
int uint_31; // r0
int v3; // r5
unsigned __int8 v5[4]; // [sp+0h] [bp-8h] BYREF
unsigned int v6; // [sp+4h] [bp-4h] BYREF
a1[225] = 33;
png_read_data((int)a1);
uint_31 = png_get_uint_31((int)a1, v5);
a1[119] = _byteswap_ulong(v6);
v3 = uint_31;
png_reset_crc((int)a1);
png_calculate_crc(a1, (int)&v6, 4);
png_check_chunk_name((int)a1, a1[119]);
a1[225] = 65;
return v3;
}