//
// sub_10008B938 from 0x10008b938 to 0x10008badc (420 bytes)
//
// 3 xrefs:
// > sub_10008A360 @ 0x10008a540
// > AccountRegisterLayer::textInputClosed @ 0x10008bf74
// > AccountRegisterLayer::textChanged @ 0x10008c374
//
// 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:21 +0000
//
void __fastcall sub_10008B938(__int64 a1, unsigned __int8 *a2)
{
int v3; // w0
__int16 v4; // w8
std::string *v5; // x1
__int16 v6; // [xsp+4h] [xbp-2Ch] BYREF
char v7; // [xsp+6h] [xbp-2Ah]
std::string v8; // [xsp+8h] [xbp-28h] BYREF
memset(&v8, 0, sizeof(v8));
v3 = sub_10008B0E8(a2);
if ( v3 <= 2 )
{
switch ( v3 )
{
case 0:
std::string::assign(&v8, "Minimum 8 characters");
v7 = -16;
v4 = -21896;
goto LABEL_18;
case 1:
std::string::assign(&v8, "Invalid characters");
break;
case 2:
std::string::assign(&v8, "Too common");
break;
default:
LABEL_13:
std::string::assign(&v8, "");
v4 = -1;
v7 = -1;
goto LABEL_18;
}
v7 = 0;
v4 = 255;
}
else
{
if ( v3 <= 4 )
{
if ( v3 == 3 )
{
std::string::assign(&v8, "Weak");
v7 = 0;
v4 = -29441;
}
else
{
std::string::assign(&v8, "Good");
v7 = 0;
v4 = -10241;
}
goto LABEL_18;
}
if ( v3 != 5 )
{
if ( v3 == 6 )
{
std::string::assign(&v8, "Epic");
v7 = -1;
v4 = 23265;
goto LABEL_18;
}
goto LABEL_13;
}
std::string::assign(&v8, "Strong");
v7 = 65;
v4 = -256;
}
LABEL_18:
v6 = v4;
if ( (v8.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v5 = &v8;
else
v5 = (std::string *)v8.__r_.__value_.__r.__words[0];
(*(void (__fastcall **)(_QWORD, std::string *))(**(_QWORD **)(a1 + 736) + 928LL))(*(_QWORD *)(a1 + 736), v5);
(*(void (__fastcall **)(_QWORD, __int16 *))(**(_QWORD **)(a1 + 736) + 1072LL))(*(_QWORD *)(a1 + 736), &v6);
if ( SHIBYTE(v8.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v8.__r_.__value_.__l.__data_);
}