//
// ShareLevelSettingsLayer::updateSettingsState from 0x4a291c to 0x4a2976 (90 bytes)
//
// 2 xrefs:
// > ShareLevelSettingsLayer::init @ 0x4a32d0
// > ShareLevelSettingsLayer::onUnlisted @ 0x4a355e
//
// 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:49:51 +0000
//
int __fastcall ShareLevelSettingsLayer::updateSettingsState(ShareLevelSettingsLayer *this)
{
int v2; // r3
int v3; // r4
void *v4; // r1
void *v5; // r1
v2 = *((_DWORD *)this + 132);
v3 = *(unsigned __int8 *)(v2 + 444);
if ( !*(_BYTE *)(v2 + 444) )
CCMenuItemToggler::toggle(*((CCMenuItemToggler **)this + 133), *(unsigned __int8 *)(v2 + 444));
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 133) + 528))(*((_DWORD *)this + 133), v3);
if ( v3 )
v4 = &unk_BEC160;
else
v4 = &unk_BEC163;
CCMenuItemToggler::setSpriteColor(*((_DWORD *)this + 133), (int)v4);
if ( v3 )
v5 = &unk_BEC160;
else
v5 = &unk_BEC163;
return (*(int (__fastcall **)(_DWORD, void *))(**((_DWORD **)this + 134) + 536))(*((_DWORD *)this + 134), v5);
}