//
// sub_1000895CC from 0x1000895cc to 0x10008966c (160 bytes)
//
// 4 xrefs:
// > sub_10008A360 @ 0x10008a570
// > sub_10008A360 @ 0x10008a5c0
// > AccountRegisterLayer::textInputClosed @ 0x10008becc
// > AccountRegisterLayer::textInputClosed @ 0x10008bf34
//
// 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 10:58:20 +0000
//
const char *__fastcall sub_1000895CC(const char *__s)
{
const char *v1; // x19
__int64 v2; // x9
int v3; // w8
int v4; // w10
int v5; // w12
int v6; // w13
_BOOL4 v7; // w9
_BOOL4 v8; // w8
if ( __s )
{
v1 = __s;
if ( (*__s & 0xDFu) - 65 > 0x19 )
{
return nullptr;
}
else
{
__s = (const char *)strlen(__s);
if ( (_DWORD)__s )
{
v2 = 0;
v3 = -1;
v4 = -1;
do
{
v5 = (unsigned __int8)v1[v2];
if ( v5 == 64 )
v6 = v2;
else
v6 = v4;
if ( v5 == 46 )
v3 = v2;
else
v4 = v6;
++v2;
}
while ( (unsigned int)__s != v2 );
v7 = v3 < (int)__s - 1;
if ( v4 > v3 )
v7 = 0;
v8 = v3 != -1 && v7;
if ( v4 == -1 )
return nullptr;
else
return (const char *)v8;
}
}
}
return __s;
}