//
// sub_10008D7A8 from 0x10008d7a8 to 0x10008d8a8 (256 bytes)
//
// 2 xrefs:
// > AccountLoginLayer::loginAccountFailed @ 0x10008d77c
// > sub_10008D8A8 @ 0x10008d8c0
//
// 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:22 +0000
//
__int64 __fastcall sub_10008D7A8(__int64 a1, int a2)
{
const char *v3; // x1
__int64 v4; // x20
if ( a2 > -11 )
{
switch ( a2 )
{
case -10:
v3 = "Already linked to different account";
LABEL_16:
v4 = 696;
goto LABEL_17;
case -9:
v3 = "Too short. Minimum 3 characters";
goto LABEL_16;
case -8:
v3 = "Too short. Minimum 6 characters";
goto LABEL_11;
}
LABEL_13:
v3 = "Login failed";
goto LABEL_16;
}
if ( a2 == -14 )
{
v3 = "Password contains invalid characters";
goto LABEL_11;
}
if ( a2 == -13 )
{
v3 = "Already linked to different Steam account";
goto LABEL_16;
}
if ( a2 != -12 )
goto LABEL_13;
(*(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_10075D6DF);
v3 = "Contact RobTop Support for more info";
LABEL_11:
v4 = 704;
LABEL_17:
(*(void (__fastcall **)(_QWORD, const char *))(**(_QWORD **)(a1 + v4) + 928LL))(*(_QWORD *)(a1 + v4), v3);
return (*(__int64 (__fastcall **)(_QWORD, void *))(**(_QWORD **)(a1 + v4) + 1072LL))(
*(_QWORD *)(a1 + v4),
&unk_10075D6DF);
}