//
// ShareListLayer::updateNotifyToggles from 0x6d4f4a to 0x6d4fa0 (86 bytes)
//
// 1 xrefs:
// > ShareListLayer::updateUnlistedF @ 0x6d4ffc
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:57:06 +0000
//
int __fastcall ShareListLayer::updateNotifyToggles(ShareListLayer *this)
{
int v2; // r1
GameManager *v3; // r0
GameManager *v4; // r0
if ( *(_BYTE *)(*((_DWORD *)this + 130) + 325)
|| (v3 = (GameManager *)GJAccountManager::sharedState(this), *((_DWORD *)v3 + 70) - *((_DWORD *)v3 + 71) <= 0)
|| *(_BYTE *)(*((_DWORD *)this + 130) + 327) )
{
v2 = 0;
}
else
{
v4 = (GameManager *)GameManager::sharedState(v3);
v2 = (unsigned __int8)GameManager::safeModeEnabled(v4) ^ 1;
}
return GameToolbox::NotifyToggleSet::setState(
(ShareListLayer *)((char *)this + 532),
v2,
(bool *)(*((_DWORD *)this + 130) + 332),
(bool *)(*((_DWORD *)this + 130) + 333));
}