//
// isValidEmailAddress from 0x98f318 to 0x98f3d4 (188 bytes)
//
// 3 xrefs:
// > AccountRegisterLayer::validEmail @ 0x98ffd8
// > AccountRegisterLayer::validEmail @ 0x98ffe0
// > ??> @ 0xf8638
//
// 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
//
bool __fastcall isValidEmailAddress(char *a1)
{
unsigned int v2; // w0
int v3; // w3
__int64 v4; // x1
int v5; // w5
int v6; // w2
if ( !a1 )
return 0;
if ( !isCharacter(*a1) )
return 0;
v2 = strlen(a1);
if ( !v2 )
return 0;
v3 = -1;
v4 = 0;
v5 = -1;
do
{
while ( 1 )
{
v6 = (unsigned __int8)a1[v4];
if ( v6 != 64 )
break;
v5 = v4++;
if ( v2 <= (unsigned int)v4 )
return v3 != -1 && v5 != -1 && v3 >= v5 && (int)(v2 - 1) > v3;
}
if ( v6 == 46 )
v3 = v4;
++v4;
}
while ( v2 > (unsigned int)v4 );
return v3 != -1 && v5 != -1 && v3 >= v5 && (int)(v2 - 1) > v3;
}