//
// png_check_chunk_name from 0xe58010 to 0xe5809c (140 bytes)
//
// 3 xrefs:
// > png_push_read_chunk @ 0xe45564
// > png_read_chunk_header @ 0xe5812c
// > ??> @ 0x8e120
//
// 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:19 +0000
//
__int64 __fastcall png_check_chunk_name(__int64 result, unsigned int a2)
{
unsigned int v2; // w1
if ( (unsigned int)(unsigned __int8)a2 - 91 <= 5
|| (unsigned int)(unsigned __int8)a2 - 65 > 0x39
|| (unsigned int)BYTE1(a2) - 91 <= 5
|| (unsigned int)BYTE1(a2) - 65 > 0x39
|| (unsigned int)BYTE2(a2) - 91 <= 5
|| (unsigned int)BYTE2(a2) - 65 > 0x39
|| (v2 = HIBYTE(a2), v2 - 91 <= 5)
|| v2 - 65 > 0x39 )
{
png_chunk_error(result, "invalid chunk type");
}
return result;
}