//
// sub_10008AB94 from 0x10008ab94 to 0x10008adb0 (540 bytes)
//
// 2 xrefs:
// > AccountRegisterLayer::registerAccountFailed @ 0x10008ab68
// > sub_10008ADB0 @ 0x10008adc8
//
// 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 10:58:20 +0000
//
__int64 __fastcall sub_10008AB94(_QWORD **a1, int a2)
{
void (*v3)(void); // x8
_QWORD *v4; // x0
void (*v6)(void); // x8
_QWORD *v7; // x0
void (*v8)(void); // x8
__int16 v9; // [xsp+Ch] [xbp-14h] BYREF
char v10; // [xsp+Eh] [xbp-12h]
if ( a2 > -8 )
{
if ( a2 <= -5 )
{
if ( a2 == -7 )
{
(*(void (__fastcall **)(_QWORD *, const char *))(*a1[93] + 928LL))(a1[93], "Passwords do not match");
v7 = a1[93];
return (*(__int64 (__fastcall **)(_QWORD *, void *))(*v7 + 1072LL))(v7, &unk_10075D6DF);
}
if ( a2 != -6 )
{
v3 = *(void (**)(void))(*a1[92] + 928LL);
LABEL_24:
v3();
v7 = a1[92];
return (*(__int64 (__fastcall **)(_QWORD *, void *))(*v7 + 1072LL))(v7, &unk_10075D6DF);
}
v8 = *(void (**)(void))(*a1[94] + 928LL);
goto LABEL_22;
}
switch ( a2 )
{
case -4:
v6 = *(void (**)(void))(*a1[90] + 928LL);
goto LABEL_28;
case -3:
v8 = *(void (**)(void))(*a1[94] + 928LL);
LABEL_22:
v8();
v7 = a1[94];
return (*(__int64 (__fastcall **)(_QWORD *, void *))(*v7 + 1072LL))(v7, &unk_10075D6DF);
case -2:
v6 = *(void (**)(void))(*a1[90] + 928LL);
LABEL_28:
v6();
v7 = a1[90];
return (*(__int64 (__fastcall **)(_QWORD *, void *))(*v7 + 1072LL))(v7, &unk_10075D6DF);
}
goto LABEL_27;
}
if ( a2 > -15 )
{
switch ( a2 )
{
case -14:
v3 = *(void (**)(void))(*a1[92] + 928LL);
goto LABEL_24;
case -9:
v6 = *(void (**)(void))(*a1[90] + 928LL);
goto LABEL_28;
case -8:
(*(void (__fastcall **)(_QWORD *, const char *))(*a1[92] + 928LL))(a1[92], "Minimum 8 characters");
v4 = a1[92];
v10 = -16;
v9 = -21896;
return (*(__int64 (__fastcall **)(_QWORD *, __int16 *))(*v4 + 1072LL))(v4, &v9);
}
LABEL_27:
v6 = *(void (**)(void))(*a1[90] + 928LL);
goto LABEL_28;
}
if ( a2 != -99 )
{
if ( a2 == -15 )
{
v3 = *(void (**)(void))(*a1[92] + 928LL);
goto LABEL_24;
}
goto LABEL_27;
}
(*(void (__fastcall **)(_QWORD *, const char *))(*a1[95] + 928LL))(a1[95], "Emails do not match");
v7 = a1[95];
return (*(__int64 (__fastcall **)(_QWORD *, void *))(*v7 + 1072LL))(v7, &unk_10075D6DF);
}