//
// AccountRegisterLayer::updatePasswordInfo from 0x993870 to 0x993a84 (532 bytes)
//
// 4 xrefs:
// > AccountRegisterLayer::textInputClosed @ 0x993cb4
// > AccountRegisterLayer::textChanged @ 0x994160
// > AccountRegisterLayer::onSubmit @ 0x994524
// > ??> @ 0x42688
//
// 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 12:58:00 +0000
//
__int64 __fastcall AccountRegisterLayer::updatePasswordInfo(__int64 a1, unsigned __int8 *a2)
{
int v3; // w0
char *v4; // x1
__int16 v6; // [xsp+38h] [xbp+38h] BYREF
char v7; // [xsp+3Ah] [xbp+3Ah]
__int64 v8[2]; // [xsp+40h] [xbp+40h] BYREF
void *v9; // [xsp+50h] [xbp+50h]
v8[0] = 0;
v8[1] = 0;
v9 = nullptr;
v3 = sub_992870(a2);
switch ( v3 )
{
case 0:
std::string::assign(v8, "Minimum 8 characters");
v6 = -21896;
v7 = -16;
break;
case 1:
std::string::assign(v8, "Invalid characters");
goto LABEL_13;
case 2:
std::string::assign(v8, "Too common");
LABEL_13:
v6 = 255;
v7 = 0;
break;
case 3:
std::string::assign(v8, "Weak");
v7 = 0;
v6 = -29441;
break;
case 4:
std::string::assign(v8, "Good");
v7 = 0;
v6 = -10241;
break;
case 5:
std::string::assign(v8, "Strong");
v6 = -256;
v7 = 65;
break;
case 6:
std::string::assign(v8, "Epic");
v6 = 23265;
v7 = -1;
break;
default:
std::string::assign(v8, &byte_11B8890);
v6 = -1;
v7 = -1;
break;
}
v4 = (char *)v8 + 1;
if ( (v8[0] & 1) != 0 )
v4 = (char *)v9;
(*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(a1 + 736) + 928LL))(*(_QWORD *)(a1 + 736), v4);
(*(void (__fastcall **)(_QWORD, __int16 *))(**(_QWORD **)(a1 + 736) + 1072LL))(*(_QWORD *)(a1 + 736), &v6);
if ( (v8[0] & 1) != 0 )
operator delete(v9);
return _stack_chk_guard;
}