//
// isLegalUTF8String from 0x7f4ce0 to 0x7f4d1e (62 bytes)
//
// 1 xrefs:
// > llvm::ConvertUTF8toWide @ 0x7f4f94
//
// 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:01:07 +0000
//
bool __fastcall isLegalUTF8String(unsigned __int8 **a1, unsigned __int8 *a2)
{
unsigned __int8 *v4; // r5
int v5; // r4
_BOOL4 result; // r0
while ( 1 )
{
v4 = *a1;
if ( *a1 == a2 )
return 1;
v5 = *((unsigned __int8 *)&unk_BF3C8C + *v4 + 8) + 1;
if ( v5 > a2 - v4 )
break;
result = sub_7F492C(*a1, *((unsigned __int8 *)&unk_BF3C8C + *v4 + 8) + 1);
if ( !result )
return result;
*a1 = &v4[v5];
}
return 0;
}