//
// sub_1004E68A8 from 0x1004e68a8 to 0x1004e691c (116 bytes)
//
// 6 xrefs:
// > sub_1004E7A48 @ 0x1004e7a7c
// > sub_1004E7BB0 @ 0x1004e7c18
// > sub_1004E7DEC @ 0x1004e7e20
// > sub_1004E8810 @ 0x1004e8848
// > IDNameInput::textChanged @ 0x1004e8a1c
// > IDNameInput::textInputClosed @ 0x1004e8b68
//
// 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 11:06:40 +0000
//
__int64 __fastcall sub_1004E68A8(__int64 *a1)
{
__int64 v1; // x8
int v2; // w10
__int64 v3; // x9
__int64 *v4; // x10
int v5; // w12
bool v6; // zf
int v7; // w12
v1 = *((unsigned __int8 *)a1 + 23);
v2 = (char)v1;
if ( (v1 & 0x80u) != 0LL )
v1 = a1[1];
if ( v1 )
{
v3 = 0;
if ( v2 >= 0 )
v4 = a1;
else
v4 = (__int64 *)*a1;
while ( 1 )
{
v5 = *((unsigned __int8 *)v4 + v3);
v6 = v5 == 45 && v3 == 0;
v7 = v6 ? 4 : (unsigned int)(v5 - 58) < 0xFFFFFFF6;
if ( (v7 | 4) != 4 )
break;
if ( v1 == ++v3 )
return 1;
}
}
return 0;
}