//
// sub_14006E290 from 0x14006e290 to 0x14006e42a (410 bytes)
//
// 3 xrefs:
// > ShareListLayer::updateUnlistedF @ 0x1404331ff
// > ShareLevelLayer::updateNotifyToggles @ 0x140631966
// > ??> @ 0x1409116cc
//
// 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 11:25:48 +0000
//
__int64 __fastcall sub_14006E290(_QWORD *a1, unsigned __int8 a2, _BYTE *a3, _BYTE *a4)
{
__int64 v7; // rdx
__int64 v8; // rcx
_BYTE *v9; // r10
__int64 v10; // rbx
__int64 v11; // rax
__int64 v12; // rax
__int64 v13; // rbx
__int64 v14; // rax
__int64 v15; // rax
__int16 v17; // [rsp+38h] [rbp+10h] BYREF
char v18; // [rsp+3Ah] [rbp+12h]
if ( !a2 )
{
*a3 = 0;
*a4 = 0;
}
v7 = (unsigned __int8)*a3;
v8 = a1[2];
v9 = &unk_1406FE7BC;
if ( a2 )
v9 = &unk_1406FE7C4;
v17 = *(_WORD *)v9;
v18 = v9[2];
CCMenuItemToggler::toggle(v8, v7);
CCMenuItemToggler::toggle(a1[3], (unsigned __int8)*a4);
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)a1[2] + 936LL))(a1[2], a2);
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)a1[3] + 936LL))(a1[3], a2);
v10 = a1[2];
v11 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v10 + 376) + 952LL))(*(_QWORD *)(v10 + 376));
(**(void (__fastcall ***)(__int64, __int16 *))(v11 + 320))(v11 + 320, &v17);
v12 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v10 + 384) + 952LL))(*(_QWORD *)(v10 + 384));
(**(void (__fastcall ***)(__int64, __int16 *))(v12 + 320))(v12 + 320, &v17);
v13 = a1[3];
v14 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v13 + 376) + 952LL))(*(_QWORD *)(v13 + 376));
(**(void (__fastcall ***)(__int64, __int16 *))(v14 + 320))(v14 + 320, &v17);
v15 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(v13 + 384) + 952LL))(*(_QWORD *)(v13 + 384));
(**(void (__fastcall ***)(__int64, __int16 *))(v15 + 320))(v15 + 320, &v17);
(**(void (__fastcall ***)(__int64, __int16 *))(a1[4] + 320LL))(a1[4] + 320LL, &v17);
(**(void (__fastcall ***)(__int64, __int16 *))(a1[5] + 320LL))(a1[5] + 320LL, &v17);
(**(void (__fastcall ***)(__int64, __int16 *))(a1[6] + 368LL))(a1[6] + 368LL, &v17);
(**(void (__fastcall ***)(__int64, __int16 *))(a1[7] + 368LL))(a1[7] + 368LL, &v17);
(**(void (__fastcall ***)(__int64, __int16 *))(*a1 + 368LL))(*a1 + 368LL, &v17);
return (**(__int64 (__fastcall ***)(__int64, __int16 *))(a1[1] + 320LL))(a1[1] + 320LL, &v17);
}