//
// sub_10034ECF0 from 0x10034ecf0 to 0x10034eddc (236 bytes)
//
// 2 xrefs:
// > ShareListLayer::init @ 0x10034e6c7
// > ShareListLayer::onUnlisted @ 0x10034eca2
//
// This function is hookable on this platform (idp: pc, 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:28:49 +0000
//
__int64 __fastcall sub_10034ECF0(_QWORD *a1)
{
unsigned __int8 v2; // r15
void *v3; // r14
__int64 v4; // rdi
__int64 v5; // rcx
__int64 v6; // rax
__int64 v7; // rdx
unsigned __int8 v8; // al
double v10; // xmm0_8
__int64 v11; // rax
v2 = *(_BYTE *)(a1[83] + 393LL);
if ( v2 )
{
v3 = &unk_100A08258;
}
else
{
CCMenuItemToggler::toggle(a1[84], 0);
v3 = &unk_100A08261;
}
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)a1[84] + 1056LL))(a1[84], v2);
sub_10001F080(a1[84], (__int64)v3);
v4 = a1[85];
(*(void (__fastcall **)(__int64, void *))(*(_QWORD *)v4 + 1072LL))(v4, v3);
v5 = a1[83];
if ( *(_BYTE *)(v5 + 393)
|| (v6 = GJAccountManager::sharedState(v4, (__int64)v3),
v7 = *(unsigned int *)(v6 + 352),
v5 = a1[83],
(int)v7 <= *(_DWORD *)(v6 + 356))
|| *(_BYTE *)(v5 + 395) )
{
v8 = 0;
}
else
{
*(_QWORD *)&v10 = GameManager::sharedState(v4, v3, v7).u64[0];
v8 = GameManager::safeModeEnabled(v11, v10) ^ 1;
v5 = a1[83];
}
return sub_1004EB370(a1 + 86, v8, v5 + 400, v5 + 401);
}