{"type": "func", "start": 5372090976, "end": 5372091068, "name": "MusicBrowser::onPlaybackControl", "pseudocode": "// \n// MusicBrowser::onPlaybackControl from 0x140339a60 to 0x140339abc (92 bytes)\n// \n// 2 xrefs:\n// > MusicBrowser::setupSongControls @ 0x1403399af\n// > <???> @ 0x1406d5330\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\n// Hidden C++ exception states: #wind=1\nvoid MusicBrowser::onPlaybackControl(MusicBrowser *a1, cocos2d::CCObject *a2)\n{\n  FMODAudioEngine *v2; // rcx\n  FMODAudioEngine *v3; // [rsp+38h] [rbp+10h]\n\n  if ( !a2->getTag(a2) )\n  {\n    v2 = (FMODAudioEngine *)qword_1406C2E88;\n    if ( !qword_1406C2E88 )\n    {\n      v3 = (FMODAudioEngine *)operator new(0x888u);\n      qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v3);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n      v2 = (FMODAudioEngine *)qword_1406C2E88;\n    }\n    FMODAudioEngine::stopAndRemoveMusic(v2, 0);\n  }\n}", "assembly": "; \n; MusicBrowser::onPlaybackControl from 0x140339a60 to 0x140339abc (92 bytes)\n; \n; 2 xrefs:\n; > MusicBrowser::setupSongControls @ 0x1403399af\n; > <???> @ 0x1406d5330\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\nsub     rsp, 28h                                                       ; +0x0, 0x140339a60\nmov     rax, [rdx]                                                     ; +0x4, 0x140339a64\nmov     rcx, rdx                                                       ; +0x7, 0x140339a67\ncall    qword ptr [rax+38h]                                            ; +0xa, 0x140339a6a\ntest    eax, eax                                                       ; +0xd, 0x140339a6d\njnz     short loc_140339AB7                                            ; +0xf, 0x140339a6f\nmov     rcx, cs:qword_1406C2E88                                        ; +0x11, 0x140339a71\ntest    rcx, rcx                                                       ; +0x18, 0x140339a78\njnz     short loc_140339AAC                                            ; +0x1b, 0x140339a7b\nmov     ecx, 888h; Size                                                ; +0x1d, 0x140339a7d\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x22, 0x140339a82\nmov     [rsp+28h+arg_8], rax                                           ; +0x27, 0x140339a87\nmov     rcx, rax                                                       ; +0x2c, 0x140339a8c\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x2f, 0x140339a8f\nnop                                                                    ; +0x34, 0x140339a94\nmov     cs:qword_1406C2E88, rax                                        ; +0x35, 0x140339a95\nmov     rdx, [rax]                                                     ; +0x3c, 0x140339a9c\nmov     rcx, rax                                                       ; +0x3f, 0x140339a9f\ncall    qword ptr [rdx+48h]                                            ; +0x42, 0x140339aa2\nmov     rcx, cs:qword_1406C2E88                                        ; +0x45, 0x140339aa5\nxor     edx, edx                                                       ; +0x4c, 0x140339aac\nadd     rsp, 28h                                                       ; +0x4e, 0x140339aae\njmp     FMODAudioEngine__stopAndRemoveMusic                            ; +0x52, 0x140339ab2\nadd     rsp, 28h                                                       ; +0x57, 0x140339ab7\nretn                                                                   ; +0x5b, 0x140339abb", "xrefs": ["MusicBrowser::setupSongControls @ 0x1403399af", "<???> @ 0x1406d5330"], "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"}