//
// isValidEmailAddress from 0x585a3c to 0x585a8e (82 bytes)
//
// 1 xrefs:
// > AccountRegisterLayer::validEmail @ 0x586282
//
// 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
//
bool __fastcall isValidEmailAddress(const char *a1)
{
size_t v3; // r0
int v4; // r3
int v5; // r2
int v6; // r1
int v7; // r5
if ( !a1 || !isCharacter(*(unsigned __int8 *)a1) )
return 0;
v3 = strlen(a1);
v4 = -1;
v5 = 0;
v6 = -1;
while ( v5 != v3 )
{
v7 = (unsigned __int8)a1[v5];
if ( v7 == 64 )
{
v6 = v5;
}
else if ( v7 == 46 )
{
v4 = v5;
}
++v5;
}
return v6 != -1 && v4 != -1 && v6 <= v4 && v4 < v5 - 1;
}