//
// isLegalUTF8Sequence from 0x5e9fa4 to 0x5e9fc6 (34 bytes)
//
// 0 xrefs:
//
// 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
//
bool __fastcall isLegalUTF8Sequence(unsigned __int8 *a1, const unsigned __int8 *a2)
{
return *((unsigned __int8 *)&unk_9B0840 + *a1 + 8) + 1 <= a2 - a1
&& sub_5E9C70(a1, *((unsigned __int8 *)&unk_9B0840 + *a1 + 8) + 1);
}