{"type": "func", "start": 4297669376, "end": 4297669519, "name": "EditorPauseLayer::onSong", "pseudocode": "// \n// EditorPauseLayer::onSong from 0x100293b00 to 0x100293b8f (143 bytes)\n// \n// 1 xrefs:\n// > EditorPauseLayer::customSetup @ 0x100291d19\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 EditorPauseLayer::onSong(EditorPauseLayer *a1, cocos2d::CCObject *a2)\n{\n  GameManager *v3; // r14\n  GameManager *v4; // rax\n\n  v3 = GameManager::sharedState();\n  v3->m_showSongMarkers = !GameManager::sharedState()->m_showSongMarkers;\n  v4 = GameManager::sharedState();\n  LODWORD(v3) = v4->m_showSongMarkers;\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_guidelinesOffButton->setVisible)(\n    a1->m_guidelinesOffButton,\n    v4->m_showSongMarkers);\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_guidelinesOffButton->setEnabled)(\n    a1->m_guidelinesOffButton,\n    (unsigned int)v3);\n  LOBYTE(v3) = (unsigned __int8)v3 ^ 1;\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_guidelinesOnButton->setVisible)(\n    a1->m_guidelinesOnButton,\n    (unsigned __int8)v3);\n  ((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_guidelinesOnButton->setEnabled)(\n    a1->m_guidelinesOnButton,\n    (unsigned __int8)v3);\n}", "assembly": "; \n; EditorPauseLayer::onSong from 0x100293b00 to 0x100293b8f (143 bytes)\n; \n; 1 xrefs:\n; > EditorPauseLayer::customSetup @ 0x100291d19\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\npush    rbp                                                            ; +0x0, 0x100293b00\nmov     rbp, rsp                                                       ; +0x1, 0x100293b01\npush    r14                                                            ; +0x4, 0x100293b04\npush    rbx                                                            ; +0x6, 0x100293b06\nmov     rbx, rdi                                                       ; +0x7, 0x100293b07\ncall    GameManager__sharedState                                       ; +0xa, 0x100293b0a\nmov     r14, rax                                                       ; +0xf, 0x100293b0f\ncall    GameManager__sharedState                                       ; +0x12, 0x100293b12\nmovzx   eax, byte ptr [rax+371h]                                       ; +0x17, 0x100293b17\nxor     al, 1                                                          ; +0x1e, 0x100293b1e\nmov     [r14+371h], al                                                 ; +0x20, 0x100293b20\ncall    GameManager__sharedState                                       ; +0x27, 0x100293b27\nmovzx   r14d, byte ptr [rax+371h]                                      ; +0x2c, 0x100293b2c\nmov     rdi, [rbx+238h]                                                ; +0x34, 0x100293b34\nmov     rax, [rdi]                                                     ; +0x3b, 0x100293b3b\nmov     esi, r14d                                                      ; +0x3e, 0x100293b3e\ncall    qword ptr [rax+148h]                                           ; +0x41, 0x100293b41\nmov     rdi, [rbx+238h]                                                ; +0x47, 0x100293b47\nmov     rax, [rdi]                                                     ; +0x4e, 0x100293b4e\nmov     esi, r14d                                                      ; +0x51, 0x100293b51\ncall    qword ptr [rax+410h]                                           ; +0x54, 0x100293b54\nmov     rdi, [rbx+240h]                                                ; +0x5a, 0x100293b5a\nxor     r14b, 1                                                        ; +0x61, 0x100293b61\nmov     rax, [rdi]                                                     ; +0x65, 0x100293b65\nmovzx   r14d, r14b                                                     ; +0x68, 0x100293b68\nmov     esi, r14d                                                      ; +0x6c, 0x100293b6c\ncall    qword ptr [rax+148h]                                           ; +0x6f, 0x100293b6f\nmov     rdi, [rbx+240h]                                                ; +0x75, 0x100293b75\nmov     rax, [rdi]                                                     ; +0x7c, 0x100293b7c\nmov     rax, [rax+410h]                                                ; +0x7f, 0x100293b7f\nmov     esi, r14d                                                      ; +0x86, 0x100293b86\npop     rbx                                                            ; +0x89, 0x100293b89\npop     r14                                                            ; +0x8a, 0x100293b8a\npop     rbp                                                            ; +0x8c, 0x100293b8c\njmp     rax                                                            ; +0x8d, 0x100293b8d", "xrefs": ["EditorPauseLayer::customSetup @ 0x100291d19"], "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"}