//
// sub_10008AEB0 from 0x10008aeb0 to 0x10008aff4 (324 bytes)
//
// 3 xrefs:
// > sub_10008ADF4 @ 0x10008ae40
// > sub_10008ADF4 @ 0x10008ae78
// > AccountRegisterLayer::textInputClosed @ 0x10008bcf0
//
// 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
//
_QWORD **__fastcall sub_10008AEB0(_QWORD **result, int a2)
{
_QWORD **v2; // x19
__int64 (*v3)(void); // x2
_QWORD *v4; // x0
v2 = result;
if ( a2 > 2 )
{
if ( a2 == 3 )
{
(*(void (__fastcall **)(_QWORD *, const char *))(*result[93] + 928LL))(result[93], "Confirm Password:");
v4 = v2[93];
}
else
{
if ( a2 == 4 )
{
(*(void (__fastcall **)(_QWORD *, const char *))(*result[94] + 928LL))(result[94], "Email:");
(*(void (__fastcall **)(_QWORD *, void *))(*v2[94] + 1072LL))(v2[94], &unk_10075D6E2);
}
else if ( a2 != 5 )
{
return result;
}
(*(void (__fastcall **)(_QWORD *, const char *))(*v2[95] + 928LL))(v2[95], "Verify Email:");
v4 = v2[95];
}
goto LABEL_15;
}
if ( a2 == 1 )
{
(*(void (__fastcall **)(_QWORD *, const char *))(*result[90] + 928LL))(
result[90],
"Username: (shown to other players)");
v4 = v2[90];
LABEL_15:
v3 = *(__int64 (**)(void))(*v4 + 1072LL);
return (_QWORD **)v3();
}
if ( a2 == 2 )
{
(*(void (__fastcall **)(_QWORD *, const char *))(*result[91] + 928LL))(result[91], "Password:");
(*(void (__fastcall **)(_QWORD *, void *))(*v2[91] + 1072LL))(v2[91], &unk_10075D6E2);
result = (_QWORD **)v2[92];
if ( result )
{
v3 = (__int64 (*)(void))(*result)[116];
return (_QWORD **)v3();
}
}
return result;
}