//
// sub_100505614 from 0x100505614 to 0x1005056b4 (160 bytes)
//
// 1 xrefs:
// > sub_1005048D8 @ 0x10050506c
//
// 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 11:06:56 +0000
//
__int64 __fastcall sub_100505614(__int64 a1)
{
char v2; // w8
__int64 v3; // x0
__int64 v4; // x0
__int64 v5; // x0
__int64 v6; // x0
v2 = *(_BYTE *)(a1 + 810) ^ 1;
*(_BYTE *)(a1 + 810) = v2;
v3 = *(_QWORD *)(a1 + 816);
if ( v3 )
CCMenuItemToggler::toggle(v3, v2 & 1);
*(_BYTE *)(a1 + 1056) = 0;
*(_DWORD *)(a1 + 676) = 0;
if ( *(_BYTE *)(a1 + 808) == 1 )
{
*(_BYTE *)(a1 + 808) = 0;
v4 = *(_QWORD *)(a1 + 920);
if ( v4 )
ButtonSprite::setString(v4, "Online");
v5 = *(_QWORD *)(a1 + 904);
if ( v5 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 344LL))(v5, 0);
v6 = *(_QWORD *)(a1 + 912);
if ( v6 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 344LL))(v6, 0);
}
sub_10051B1EC(a1);
return sub_1005059D4(a1);
}