//
// ShareLevelLayer::updateNotifyToggles from 0x7f2450 to 0x7f24e0 (144 bytes)
//
// 3 xrefs:
// > ShareLevelLayer::setupNotifyToggles @ 0x7f2598
// > ShareLevelSettingsLayer::onClose @ 0x7f25f4
// > ??> @ 0x77c68
//
// 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 12:54:36 +0000
//
__int64 __fastcall ShareLevelLayer::updateNotifyToggles(ShareLevelLayer *this)
{
_BYTE *v2; // x3
__int64 v3; // x0
GameManager *v4; // x0
char v5; // w0
v2 = *((_BYTE **)this + 83);
if ( v2[616] )
return GameToolbox::NotifyToggleSet::setState((ShareLevelLayer *)((char *)this + 696), 0, v2 + 618, v2 + 619);
v3 = GJAccountManager::sharedState((GJAccountManager *)(unsigned __int8)v2[616]);
v2 = *((_BYTE **)this + 83);
if ( *(_DWORD *)(v3 + 352) - *(_DWORD *)(v3 + 356) <= 0 || v2[785] )
return GameToolbox::NotifyToggleSet::setState((ShareLevelLayer *)((char *)this + 696), 0, v2 + 618, v2 + 619);
v4 = (GameManager *)GameManager::sharedState((GameManager *)(unsigned __int8)v2[785]);
v5 = GameManager::safeModeEnabled(v4);
return GameToolbox::NotifyToggleSet::setState(
(ShareLevelLayer *)((char *)this + 696),
v5 ^ 1u,
(bool *)(*((_QWORD *)this + 83) + 618LL),
(bool *)(*((_QWORD *)this + 83) + 619LL));
}