//
// ShareListLayer::updateNotifyToggles from 0xbaa0dc to 0xbaa16c (144 bytes)
//
// 2 xrefs:
// > ShareListLayer::updateUnlistedF @ 0xbaa1d4
// > ??> @ 0x76f00
//
// 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 13:02:51 +0000
//
__int64 __fastcall ShareListLayer::updateNotifyToggles(ShareListLayer *this)
{
_BYTE *v2; // x3
__int64 v3; // x0
GameManager *v4; // x0
char v5; // w0
v2 = *((_BYTE **)this + 83);
if ( v2[393] )
return GameToolbox::NotifyToggleSet::setState((ShareListLayer *)((char *)this + 688), 0, v2 + 400, v2 + 401);
v3 = GJAccountManager::sharedState((GJAccountManager *)(unsigned __int8)v2[393]);
v2 = *((_BYTE **)this + 83);
if ( *(_DWORD *)(v3 + 352) - *(_DWORD *)(v3 + 356) <= 0 || v2[395] )
return GameToolbox::NotifyToggleSet::setState((ShareListLayer *)((char *)this + 688), 0, v2 + 400, v2 + 401);
v4 = (GameManager *)GameManager::sharedState((GameManager *)(unsigned __int8)v2[395]);
v5 = GameManager::safeModeEnabled(v4);
return GameToolbox::NotifyToggleSet::setState(
(ShareListLayer *)((char *)this + 688),
v5 ^ 1u,
(bool *)(*((_QWORD *)this + 83) + 400LL),
(bool *)(*((_QWORD *)this + 83) + 401LL));
}