{"type": "func", "start": 4297714272, "end": 4297714398, "name": "GameOptionsLayer::onPracticeMusicSync", "pseudocode": "// \n// GameOptionsLayer::onPracticeMusicSync from 0x10029ea60 to 0x10029eade (126 bytes)\n// \n// 1 xrefs:\n// > GameOptionsLayer::setupOptions @ 0x10029e66d\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:27:54 +0000\n// \n\n__int64 __fastcall GameOptionsLayer::onPracticeMusicSync(__int64 a1)\n{\n  __int64 v1; // rax\n  __int64 v2; // rax\n  unsigned __int8 v3; // r14\n  __int64 v4; // rax\n\n  v1 = GameStatsManager::sharedState();\n  if ( !(unsigned __int8)GameStatsManager::isItemUnlocked(v1, 12, 0x11u) )\n    return sub_10029EC20(a1);\n  v2 = GameStatsManager::sharedState();\n  v3 = GameStatsManager::isItemEnabled(v2, 12, 0x11u) ^ 1;\n  v4 = GameStatsManager::sharedState();\n  GameStatsManager::toggleEnableItem(v4, 12, 0x11u, v3);\n  return (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1120) + 1592LL))(*(_QWORD *)(a1 + 1120));\n}", "assembly": "; \n; GameOptionsLayer::onPracticeMusicSync from 0x10029ea60 to 0x10029eade (126 bytes)\n; \n; 1 xrefs:\n; > GameOptionsLayer::setupOptions @ 0x10029e66d\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:27:54 +0000\n; \npush    rbp                                                            ; +0x0, 0x10029ea60\nmov     rbp, rsp                                                       ; +0x1, 0x10029ea61\npush    r14                                                            ; +0x4, 0x10029ea64\npush    rbx                                                            ; +0x6, 0x10029ea66\nmov     rbx, rdi                                                       ; +0x7, 0x10029ea67\ncall    GameStatsManager__sharedState                                  ; +0xa, 0x10029ea6a\nmov     rdi, rax                                                       ; +0xf, 0x10029ea6f\nmov     esi, 0Ch                                                       ; +0x12, 0x10029ea72\nmov     edx, 11h                                                       ; +0x17, 0x10029ea77\ncall    GameStatsManager__isItemUnlocked                               ; +0x1c, 0x10029ea7c\ntest    al, al                                                         ; +0x21, 0x10029ea81\njz      short loc_10029EAD2                                            ; +0x23, 0x10029ea83\ncall    GameStatsManager__sharedState                                  ; +0x25, 0x10029ea85\nmov     rdi, rax                                                       ; +0x2a, 0x10029ea8a\nmov     esi, 0Ch                                                       ; +0x2d, 0x10029ea8d\nmov     edx, 11h                                                       ; +0x32, 0x10029ea92\ncall    GameStatsManager__isItemEnabled                                ; +0x37, 0x10029ea97\nmov     r14d, eax                                                      ; +0x3c, 0x10029ea9c\nxor     r14b, 1                                                        ; +0x3f, 0x10029ea9f\ncall    GameStatsManager__sharedState                                  ; +0x43, 0x10029eaa3\nmovzx   ecx, r14b                                                      ; +0x48, 0x10029eaa8\nmov     rdi, rax                                                       ; +0x4c, 0x10029eaac\nmov     esi, 0Ch                                                       ; +0x4f, 0x10029eaaf\nmov     edx, 11h                                                       ; +0x54, 0x10029eab4\ncall    GameStatsManager__toggleEnableItem                             ; +0x59, 0x10029eab9\nmov     rdi, [rbx+460h]                                                ; +0x5e, 0x10029eabe\nmov     rax, [rdi]                                                     ; +0x65, 0x10029eac5\npop     rbx                                                            ; +0x68, 0x10029eac8\npop     r14                                                            ; +0x69, 0x10029eac9\npop     rbp                                                            ; +0x6b, 0x10029eacb\njmp     qword ptr [rax+638h]                                           ; +0x6c, 0x10029eacc\nmov     rdi, rbx                                                       ; +0x72, 0x10029ead2\npop     rbx                                                            ; +0x75, 0x10029ead5\npop     r14                                                            ; +0x76, 0x10029ead6\npop     rbp                                                            ; +0x78, 0x10029ead8\njmp     sub_10029EC20                                                  ; +0x79, 0x10029ead9", "xrefs": ["GameOptionsLayer::setupOptions @ 0x10029e66d"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}