//
// AccountLoginLayer::updateLabel from 0x58647c to 0x586596 (282 bytes)
//
// 3 xrefs:
// > AccountLoginLayer::loginAccountFailed @ 0x586756
// > AccountLoginLayer::textInputClosed @ 0x58689e
// > AccountLoginLayer::onSubmit @ 0x5869fc
//
// 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:58 +0000
//
int __fastcall AccountLoginLayer::updateLabel(int a1, int a2)
{
int (*v3)(void); // r3
switch ( a2 )
{
case -14:
(*(void (__fastcall **)(_DWORD, const char *))(**(_DWORD **)(a1 + 540) + 464))(
*(_DWORD *)(a1 + 540),
"Password contains invalid characters");
v3 = *(int (**)(void))(**(_DWORD **)(a1 + 540) + 536);
break;
case -13:
(*(void (__fastcall **)(_DWORD, const char *))(**(_DWORD **)(a1 + 536) + 464))(
*(_DWORD *)(a1 + 536),
"Already linked to different Steam account");
v3 = *(int (**)(void))(**(_DWORD **)(a1 + 536) + 536);
break;
case -12:
(*(void (__fastcall **)(_DWORD, const char *))(**(_DWORD **)(a1 + 536) + 464))(
*(_DWORD *)(a1 + 536),
"Account has been disabled");
(*(void (__fastcall **)(_DWORD, void *))(**(_DWORD **)(a1 + 536) + 536))(*(_DWORD *)(a1 + 536), &unk_BED8F0);
(*(void (__fastcall **)(_DWORD, const char *))(**(_DWORD **)(a1 + 540) + 464))(
*(_DWORD *)(a1 + 540),
"Contact RobTop Support for more info");
v3 = *(int (**)(void))(**(_DWORD **)(a1 + 540) + 536);
break;
case -10:
(*(void (__fastcall **)(_DWORD, const char *))(**(_DWORD **)(a1 + 536) + 464))(
*(_DWORD *)(a1 + 536),
"Already linked to different account");
v3 = *(int (**)(void))(**(_DWORD **)(a1 + 536) + 536);
break;
case -9:
(*(void (__fastcall **)(_DWORD, const char *))(**(_DWORD **)(a1 + 536) + 464))(
*(_DWORD *)(a1 + 536),
"Too short. Minimum 3 characters");
v3 = *(int (**)(void))(**(_DWORD **)(a1 + 536) + 536);
break;
case -8:
(*(void (__fastcall **)(_DWORD, const char *))(**(_DWORD **)(a1 + 540) + 464))(
*(_DWORD *)(a1 + 540),
"Too short. Minimum 6 characters");
v3 = *(int (**)(void))(**(_DWORD **)(a1 + 540) + 536);
break;
default:
(*(void (__fastcall **)(_DWORD, const char *))(**(_DWORD **)(a1 + 536) + 464))(
*(_DWORD *)(a1 + 536),
"Login failed");
v3 = *(int (**)(void))(**(_DWORD **)(a1 + 536) + 536);
break;
}
return v3();
}