//
// AccountLoginLayer::updateLabel from 0x990324 to 0x99047c (344 bytes)
//
// 7 xrefs:
// > AccountLoginLayer::textInputClosed @ 0x990608
// > AccountLoginLayer::textInputClosed @ 0x990620
// > AccountLoginLayer::loginAccountFailed @ 0x990870
// > AccountLoginLayer::onSubmit @ 0x9925bc
// > AccountLoginLayer::onSubmit @ 0x9925f4
// > AccountLoginLayer::onSubmit @ 0x99262c
// > ??> @ 0xe7a30
//
// 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
//
__int64 __fastcall AccountLoginLayer::updateLabel(__int64 a1, int a2)
{
__int64 v3; // x2
const char *v4; // x1
__int64 v5; // x2
__int64 v7; // x2
const char *v8; // x1
switch ( a2 )
{
case -14:
v7 = *(_QWORD *)(a1 + 704);
v8 = "Password contains invalid characters";
goto LABEL_7;
case -13:
v3 = *(_QWORD *)(a1 + 696);
v4 = "Already linked to different Steam account";
goto LABEL_3;
case -12:
(*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + 696) + 928LL))(
*(_QWORD *)(a1 + 696),
"Account has been disabled");
(*(void (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 696) + 1072LL))(*(_QWORD *)(a1 + 696), &unk_116B4B0);
(*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + 704) + 928LL))(
*(_QWORD *)(a1 + 704),
"Contact RobTop Support for more info");
return (*(__int64 (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + 704) + 1072LL))(
*(_QWORD *)(a1 + 704),
&unk_116B4B0);
case -10:
v3 = *(_QWORD *)(a1 + 696);
v4 = "Already linked to different account";
goto LABEL_3;
case -9:
v3 = *(_QWORD *)(a1 + 696);
v4 = "Too short. Minimum 3 characters";
goto LABEL_3;
case -8:
v7 = *(_QWORD *)(a1 + 704);
v8 = "Too short. Minimum 6 characters";
LABEL_7:
(*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v7 + 928LL))(v7, v8);
v5 = *(_QWORD *)(a1 + 704);
return (*(__int64 (__fastcall **)(__int64, void *))(*(_QWORD *)v5 + 1072LL))(v5, &unk_116B4B0);
default:
v3 = *(_QWORD *)(a1 + 696);
v4 = "Login failed";
LABEL_3:
(*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v3 + 928LL))(v3, v4);
v5 = *(_QWORD *)(a1 + 696);
return (*(__int64 (__fastcall **)(__int64, void *))(*(_QWORD *)v5 + 1072LL))(v5, &unk_116B4B0);
}
}