{"type": "func", "start": 5373737488, "end": 5373737756, "name": "OptionsLayer::onMenuMusic", "pseudocode": "// \n// OptionsLayer::onMenuMusic from 0x1404cba10 to 0x1404cbb1c (268 bytes)\n// \n// 2 xrefs:\n// > OptionsLayer::customSetup @ 0x1404cb9bb\n// > <???> @ 0x1409295f4\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 11:32:58 +0000\n// \n\n// Hidden C++ exception states: #wind=4\n__int64 __fastcall OptionsLayer::onMenuMusic(__int64 a1)\n{\n  _QWORD *v1; // rbx\n  __int64 v2; // rcx\n  __int64 v4; // rcx\n  void *v5; // [rsp+40h] [rbp+18h]\n  void *v6; // [rsp+40h] [rbp+18h]\n  void *v7; // [rsp+40h] [rbp+18h]\n\n  if ( !qword_14090BFD0 )\n  {\n    v5 = operator new(0x6E8u);\n    qword_14090BFD0 = GameManager::GameManager((__int64)v5);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n  }\n  if ( (unsigned __int8)GameManager::toggleGameVariable(a1, \"0122\") )\n  {\n    v1 = (_QWORD *)qword_14090BF60;\n    if ( !qword_14090BF60 )\n    {\n      v6 = operator new(0x8A8u);\n      qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v6);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60);\n      v1 = (_QWORD *)qword_14090BF60;\n    }\n    v2 = v1[69];\n    if ( v2 )\n      FMOD::ChannelControl::stop(v2);\n    sub_14003EB60(v1 + 137);\n    sub_14003EB60(v1 + 145);\n    return sub_14003EB60(v1 + 153);\n  }\n  else\n  {\n    v4 = qword_14090BFD0;\n    if ( !qword_14090BFD0 )\n    {\n      v7 = operator new(0x6E8u);\n      qword_14090BFD0 = GameManager::GameManager((__int64)v7);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n      v4 = qword_14090BFD0;\n    }\n    return GameManager::fadeInMenuMusic(v4);\n  }\n}", "assembly": "; \n; OptionsLayer::onMenuMusic from 0x1404cba10 to 0x1404cbb1c (268 bytes)\n; \n; 2 xrefs:\n; > OptionsLayer::customSetup @ 0x1404cb9bb\n; > <???> @ 0x1409295f4\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 11:32:58 +0000\n; \npush    rbx                                                            ; +0x0, 0x1404cba10\nsub     rsp, 20h                                                       ; +0x2, 0x1404cba12\ncmp     cs:qword_14090BFD0, 0                                          ; +0x6, 0x1404cba16\njnz     short loc_1404CBA4B                                            ; +0xe, 0x1404cba1e\nmov     ecx, 6E8h; Size                                                ; +0x10, 0x1404cba20\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x15, 0x1404cba25\nmov     [rsp+28h+arg_10], rax                                          ; +0x1a, 0x1404cba2a\nmov     rcx, rax                                                       ; +0x1f, 0x1404cba2f\ncall    GameManager__GameManager                                       ; +0x22, 0x1404cba32\nnop                                                                    ; +0x27, 0x1404cba37\nmov     cs:qword_14090BFD0, rax                                        ; +0x28, 0x1404cba38\nmov     rcx, [rax]                                                     ; +0x2f, 0x1404cba3f\nmov     rdx, [rcx+48h]                                                 ; +0x32, 0x1404cba42\nmov     rcx, rax                                                       ; +0x36, 0x1404cba46\ncall    rdx                                                            ; +0x39, 0x1404cba49\nlea     rdx, a0122; \"0122\"                                             ; +0x3b, 0x1404cba4b\ncall    GameManager__toggleGameVariable                                ; +0x42, 0x1404cba52\ntest    al, al                                                         ; +0x47, 0x1404cba57\njz      short loc_1404CBAD4                                            ; +0x49, 0x1404cba59\nmov     rbx, cs:qword_14090BF60                                        ; +0x4b, 0x1404cba5b\ntest    rbx, rbx                                                       ; +0x52, 0x1404cba62\njnz     short loc_1404CBA99                                            ; +0x55, 0x1404cba65\nmov     ecx, 8A8h; Size                                                ; +0x57, 0x1404cba67\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x5c, 0x1404cba6c\nmov     [rsp+28h+arg_10], rax                                          ; +0x61, 0x1404cba71\nmov     rcx, rax                                                       ; +0x66, 0x1404cba76\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x69, 0x1404cba79\nnop                                                                    ; +0x6e, 0x1404cba7e\nmov     cs:qword_14090BF60, rax                                        ; +0x6f, 0x1404cba7f\nmov     rcx, [rax]                                                     ; +0x76, 0x1404cba86\nmov     rdx, [rcx+48h]                                                 ; +0x79, 0x1404cba89\nmov     rcx, rax                                                       ; +0x7d, 0x1404cba8d\ncall    rdx                                                            ; +0x80, 0x1404cba90\nmov     rbx, cs:qword_14090BF60                                        ; +0x82, 0x1404cba92\nmov     rcx, [rbx+228h]                                                ; +0x89, 0x1404cba99\ntest    rcx, rcx                                                       ; +0x90, 0x1404cbaa0\njz      short loc_1404CBAAB                                            ; +0x93, 0x1404cbaa3\ncall    cs:?stop@ChannelControl@FMOD@@QEAA?AW4FMOD_RESULT@@XZ; FMOD::ChannelControl::stop(void) ; +0x95, 0x1404cbaa5\nlea     rcx, [rbx+448h]                                                ; +0x9b, 0x1404cbaab\ncall    sub_14003EB60                                                  ; +0xa2, 0x1404cbab2\nlea     rcx, [rbx+488h]                                                ; +0xa7, 0x1404cbab7\ncall    sub_14003EB60                                                  ; +0xae, 0x1404cbabe\nlea     rcx, [rbx+4C8h]                                                ; +0xb3, 0x1404cbac3\nadd     rsp, 20h                                                       ; +0xba, 0x1404cbaca\npop     rbx                                                            ; +0xbe, 0x1404cbace\njmp     sub_14003EB60                                                  ; +0xbf, 0x1404cbacf\nmov     rcx, cs:qword_14090BFD0                                        ; +0xc4, 0x1404cbad4\ntest    rcx, rcx                                                       ; +0xcb, 0x1404cbadb\njnz     short loc_1404CBB12                                            ; +0xce, 0x1404cbade\nmov     ecx, 6E8h; Size                                                ; +0xd0, 0x1404cbae0\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xd5, 0x1404cbae5\nmov     [rsp+28h+arg_10], rax                                          ; +0xda, 0x1404cbaea\nmov     rcx, rax                                                       ; +0xdf, 0x1404cbaef\ncall    GameManager__GameManager                                       ; +0xe2, 0x1404cbaf2\nnop                                                                    ; +0xe7, 0x1404cbaf7\nmov     cs:qword_14090BFD0, rax                                        ; +0xe8, 0x1404cbaf8\nmov     rcx, [rax]                                                     ; +0xef, 0x1404cbaff\nmov     rdx, [rcx+48h]                                                 ; +0xf2, 0x1404cbb02\nmov     rcx, rax                                                       ; +0xf6, 0x1404cbb06\ncall    rdx                                                            ; +0xf9, 0x1404cbb09\nmov     rcx, cs:qword_14090BFD0                                        ; +0xfb, 0x1404cbb0b\nadd     rsp, 20h                                                       ; +0x102, 0x1404cbb12\npop     rbx                                                            ; +0x106, 0x1404cbb16\njmp     GameManager__fadeInMenuMusic                                   ; +0x107, 0x1404cbb17", "xrefs": ["OptionsLayer::customSetup @ 0x1404cb9bb", "<???> @ 0x1409295f4"], "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"}