{"type": "func", "start": 4297989300, "end": 4297989416, "name": "GameOptionsLayer::onPracticeMusicSync", "pseudocode": "// \n// GameOptionsLayer::onPracticeMusicSync from 0x1002e1cb4 to 0x1002e1d28 (116 bytes)\n// \n// 1 xrefs:\n// > GameOptionsLayer::setupOptions @ 0x1002e18cc\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall GameOptionsLayer::onPracticeMusicSync(GameOptionsLayer *a1, cocos2d::CCObject *a2)\n{\n  GameStatsManager *v3; // x0\n  GameStatsManager *v4; // x0\n  bool isItemEnabled; // w20\n  GameStatsManager *v6; // x0\n\n  v3 = GameStatsManager::sharedState();\n  if ( GameStatsManager::isItemUnlocked(v3, GJItem, 17) )\n  {\n    v4 = GameStatsManager::sharedState();\n    isItemEnabled = GameStatsManager::isItemEnabled(v4, GJItem, 17);\n    v6 = GameStatsManager::sharedState();\n    GameStatsManager::toggleEnableItem(v6, GJItem, 17, !isItemEnabled);\n    ((void (__fastcall *)(GJBaseGameLayer *))a1->m_baseGameLayer->toggleMusicInPractice)(a1->m_baseGameLayer);\n  }\n  else\n  {\n    GameOptionsLayer::showPracticeMusicSyncUnlockInfo(a1);\n  }\n}", "assembly": "; \n; GameOptionsLayer::onPracticeMusicSync from 0x1002e1cb4 to 0x1002e1d28 (116 bytes)\n; \n; 1 xrefs:\n; > GameOptionsLayer::setupOptions @ 0x1002e18cc\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x1002e1cb4\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x1002e1cb8\nADD             X29, SP, #0x10                                         ; +0x8, 0x1002e1cbc\nMOV             X19, X0                                                ; +0xc, 0x1002e1cc0\nBL              GameStatsManager__sharedState                          ; +0x10, 0x1002e1cc4\nMOV             W1, #0xC                                               ; +0x14, 0x1002e1cc8\nMOV             W2, #0x11                                              ; +0x18, 0x1002e1ccc\nBL              GameStatsManager__isItemUnlocked                       ; +0x1c, 0x1002e1cd0\nTBZ             W0, #0, loc_1002E1D18                                  ; +0x20, 0x1002e1cd4\nBL              GameStatsManager__sharedState                          ; +0x24, 0x1002e1cd8\nMOV             W1, #0xC                                               ; +0x28, 0x1002e1cdc\nMOV             W2, #0x11                                              ; +0x2c, 0x1002e1ce0\nBL              GameStatsManager__isItemEnabled                        ; +0x30, 0x1002e1ce4\nMOV             X20, X0                                                ; +0x34, 0x1002e1ce8\nBL              GameStatsManager__sharedState                          ; +0x38, 0x1002e1cec\nEOR             W3, W20, #1                                            ; +0x3c, 0x1002e1cf0\nMOV             W1, #0xC                                               ; +0x40, 0x1002e1cf4\nMOV             W2, #0x11                                              ; +0x44, 0x1002e1cf8\nBL              GameStatsManager__toggleEnableItem                     ; +0x48, 0x1002e1cfc\nLDR             X0, [X19,#0x418]                                       ; +0x4c, 0x1002e1d00\nLDR             X8, [X0]                                               ; +0x50, 0x1002e1d04\nLDR             X1, [X8,#0x608]                                        ; +0x54, 0x1002e1d08\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x58, 0x1002e1d0c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x5c, 0x1002e1d10\nBR              X1                                                     ; +0x60, 0x1002e1d14\nMOV             X0, X19                                                ; +0x64, 0x1002e1d18\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x68, 0x1002e1d1c\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x6c, 0x1002e1d20\nB               GameOptionsLayer__showPracticeMusicSyncUnlockInfo      ; +0x70, 0x1002e1d24", "xrefs": ["GameOptionsLayer::setupOptions @ 0x1002e18cc"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}