//
// GameOptionsLayer::onPracticeMusicSync from 0xa2b8c0 to 0xa2b940 (128 bytes)
//
// 3 xrefs:
// > ??> @ 0xbcfc8
// > GameOptionsLayer::setupOptions @ 0xa35f60
// > ??> @ 0x1545790
//
// 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:59:44 +0000
//
__int64 __fastcall GameOptionsLayer::onPracticeMusicSync(GameOptionsLayer *this, cocos2d::CCObject *a2)
{
__int64 v3; // x0
GameStatsManager *isItemUnlocked; // x0
__int64 v5; // x0
GameStatsManager *isItemEnabled; // x0
char v7; // w20
__int64 v8; // x0
v3 = GameStatsManager::sharedState(this);
isItemUnlocked = (GameStatsManager *)(unsigned __int8)GameStatsManager::isItemUnlocked(v3, 0xCu, 0x11u);
if ( !(_BYTE)isItemUnlocked )
return GameOptionsLayer::showPracticeMusicSyncUnlockInfo(this);
v5 = GameStatsManager::sharedState(isItemUnlocked);
isItemEnabled = (GameStatsManager *)GameStatsManager::isItemEnabled(v5, 0xCu, 0x11u);
v7 = (char)isItemEnabled;
v8 = GameStatsManager::sharedState(isItemEnabled);
GameStatsManager::toggleEnableItem(v8, 0xCu, 0x11u, v7 ^ 1);
return (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 140) + 1592LL))(*((_QWORD *)this + 140));
}