//
// passwordCharsValid from 0x98f3d4 to 0x98f444 (112 bytes)
//
// 3 xrefs:
// > AccountLoginLayer::onSubmit @ 0x99248c
// > sub_992870 @ 0x9928f8
// > ??> @ 0xa3210
//
// 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:57:58 +0000
//
__int64 __fastcall passwordCharsValid(__int64 a1)
{
char *v1; // x1
__int64 v2; // x2
char *v3; // x2
char *v4; // x1
char v5; // t1
if ( (*(_BYTE *)a1 & 1) != 0 )
{
v1 = *(char **)(a1 + 16);
v2 = *(_QWORD *)(a1 + 8);
}
else
{
v1 = (char *)(a1 + 1);
v2 = *(_BYTE *)a1 >> 1;
}
v3 = &v1[v2];
if ( v3 == v1 )
return 1;
if ( (unsigned __int8)(*v1 - 32) <= 0x5Eu )
{
v4 = v1 + 1;
while ( v4 != v3 )
{
v5 = *v4++;
if ( (unsigned __int8)(v5 - 32) > 0x5Eu )
return 0;
}
return 1;
}
return 0;
}