//
// ShareLevelLayer::updateNotifyToggles from 0x140631890 to 0x14063196b (219 bytes)
//
// 3 xrefs:
// > ShareLevelLayer::setupStars @ 0x140631838
// > ShareLevelSettingsLayer::onClose @ 0x140633910
// > ??> @ 0x140930adc
//
// 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:35:29 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall ShareLevelLayer::updateNotifyToggles(__int64 a1)
{
__int64 v2; // rax
__int64 v3; // rbx
unsigned __int8 v4; // dl
void *v6; // [rsp+30h] [rbp+8h]
if ( *(_BYTE *)(*(_QWORD *)(a1 + 664) + 688LL) )
goto LABEL_9;
v2 = GJAccountManager::sharedState();
if ( *(_DWORD *)(v2 + 360) - *(_DWORD *)(v2 + 364) <= 0 || *(_BYTE *)(*(_QWORD *)(a1 + 664) + 857LL) )
goto LABEL_9;
v3 = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v6 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager((__int64)v6);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
v3 = qword_14090BFD0;
}
if ( GameManager::getGameVariable(v3, "0218") || GameManager::getGameVariable(v3, "0219") )
LABEL_9:
v4 = 0;
else
v4 = 1;
return sub_14006E290(
(_QWORD *)(a1 + 696),
v4,
(_BYTE *)(*(_QWORD *)(a1 + 664) + 690LL),
(_BYTE *)(*(_QWORD *)(a1 + 664) + 691LL));
}