//
// png_read_chunk_header from 0x65e98c to 0x65e9f0 (100 bytes)
//
// 3 xrefs:
// > png_read_info @ 0x655692
// > png_read_end @ 0x657186
// > png_read_IDAT_data @ 0x65f1ce
//
// 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
//
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;
}