//
// passwordCharsValid from 0x585a8e to 0x585ab4 (38 bytes)
//
// 2 xrefs:
// > AccountLoginLayer::onSubmit @ 0x5869f0
// > sub_587CFC @ 0x587d2c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:52:57 +0000
//
int __fastcall passwordCharsValid(unsigned __int8 *a1)
{
int v1; // r3
unsigned __int8 *v2; // r2
int v3; // r3
unsigned __int8 *v4; // r3
int v5; // t1
v1 = *a1;
if ( (v1 & 1) != 0 )
{
v2 = *((unsigned __int8 **)a1 + 2);
v3 = *((_DWORD *)a1 + 1);
}
else
{
v2 = a1 + 1;
v3 = v1 >> 1;
}
v4 = &v2[v3];
while ( v2 != v4 )
{
v5 = *v2++;
if ( (unsigned int)(v5 - 32) > 0x5E )
return 0;
}
return 1;
}