//
// isLegalUTF8Sequence from 0xb1c594 to 0xb1c5c4 (48 bytes)
//
// 1 xrefs:
// > ??> @ 0x42390
//
// 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
//
__int64 __fastcall isLegalUTF8Sequence(unsigned __int8 *a1, const unsigned __int8 *a2)
{
__int64 v2; // x3
int v3; // w1
v2 = a2 - a1;
v3 = byte_F1C6F0[*a1] + 1;
if ( v2 < v3 )
return 0;
else
return sub_B1BED4(a1, v3);
}