{"type": "func", "start": 5373737760, "end": 5373738019, "name": "OptionsLayer::musicSliderChanged", "pseudocode": "// \n// OptionsLayer::musicSliderChanged from 0x1404cbb20 to 0x1404cbc23 (259 bytes)\n// \n// 2 xrefs:\n// > OptionsLayer::customSetup @ 0x1404cb605\n// > <???> @ 0x140929600\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=3\nvoid __fastcall OptionsLayer::musicSliderChanged(__int64 a1, float *a2)\n{\n  float Value; // xmm6_4\n  __int64 v3; // rax\n  float v4; // xmm8_4\n  __int64 v5; // rcx\n  __int64 v6; // rcx\n  void *v7; // [rsp+68h] [rbp+10h]\n  void *v8; // [rsp+68h] [rbp+10h]\n\n  Value = SliderThumb::getValue(a2);\n  if ( Value < 0.029999999 )\n    Value = 0.0;\n  v3 = qword_14090BF60;\n  if ( !qword_14090BF60 )\n  {\n    v7 = operator new(0x8A8u);\n    qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v7);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60);\n    v3 = qword_14090BF60;\n  }\n  v4 = *(float *)(v3 + 512);\n  *(_DWORD *)(v3 + 524) = 0;\n  *(float *)(v3 + 512) = Value;\n  v5 = *(_QWORD *)(v3 + 552);\n  if ( v5 )\n    FMOD::ChannelControl::setVolume(v5);\n  if ( v4 <= 0.0 && Value > 0.0 )\n  {\n    v6 = qword_14090BFD0;\n    if ( !qword_14090BFD0 )\n    {\n      v8 = operator new(0x6E8u);\n      qword_14090BFD0 = GameManager::GameManager((__int64)v8);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);\n      v6 = qword_14090BFD0;\n    }\n    GameManager::playMenuMusic(v6);\n  }\n}", "assembly": "; \n; OptionsLayer::musicSliderChanged from 0x1404cbb20 to 0x1404cbc23 (259 bytes)\n; \n; 2 xrefs:\n; > OptionsLayer::customSetup @ 0x1404cb605\n; > <???> @ 0x140929600\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; \nsub     rsp, 58h                                                       ; +0x0, 0x1404cbb20\nmovaps  [rsp+58h+var_18], xmm6                                         ; +0x4, 0x1404cbb24\nmovaps  [rsp+58h+var_28], xmm7                                         ; +0x9, 0x1404cbb29\nmovaps  [rsp+58h+var_38], xmm8                                         ; +0xe, 0x1404cbb2e\nmov     rcx, rdx                                                       ; +0x14, 0x1404cbb34\ncall    SliderThumb__getValue                                          ; +0x17, 0x1404cbb37\nmovaps  xmm6, xmm0                                                     ; +0x1c, 0x1404cbb3c\nmovss   xmm1, cs:dword_140834DB8                                       ; +0x1f, 0x1404cbb3f\nxorps   xmm7, xmm7                                                     ; +0x27, 0x1404cbb47\ncomiss  xmm1, xmm0                                                     ; +0x2a, 0x1404cbb4a\njbe     short loc_1404CBB52                                            ; +0x2d, 0x1404cbb4d\nxorps   xmm6, xmm6                                                     ; +0x2f, 0x1404cbb4f\nmov     rax, cs:qword_14090BF60                                        ; +0x32, 0x1404cbb52\ntest    rax, rax                                                       ; +0x39, 0x1404cbb59\njnz     short loc_1404CBB90                                            ; +0x3c, 0x1404cbb5c\nmov     ecx, 8A8h; Size                                                ; +0x3e, 0x1404cbb5e\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x43, 0x1404cbb63\nmov     [rsp+58h+arg_8], rax                                           ; +0x48, 0x1404cbb68\nmov     rcx, rax                                                       ; +0x4d, 0x1404cbb6d\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x50, 0x1404cbb70\nnop                                                                    ; +0x55, 0x1404cbb75\nmov     cs:qword_14090BF60, rax                                        ; +0x56, 0x1404cbb76\nmov     rcx, [rax]                                                     ; +0x5d, 0x1404cbb7d\nmov     rdx, [rcx+48h]                                                 ; +0x60, 0x1404cbb80\nmov     rcx, rax                                                       ; +0x64, 0x1404cbb84\ncall    rdx                                                            ; +0x67, 0x1404cbb87\nmov     rax, cs:qword_14090BF60                                        ; +0x69, 0x1404cbb89\nmovss   xmm8, dword ptr [rax+200h]                                     ; +0x70, 0x1404cbb90\nmov     dword ptr [rax+20Ch], 0                                        ; +0x79, 0x1404cbb99\nmovss   dword ptr [rax+200h], xmm6                                     ; +0x83, 0x1404cbba3\nmov     rcx, [rax+228h]                                                ; +0x8b, 0x1404cbbab\ntest    rcx, rcx                                                       ; +0x92, 0x1404cbbb2\njz      short loc_1404CBBC0                                            ; +0x95, 0x1404cbbb5\nmovaps  xmm1, xmm6                                                     ; +0x97, 0x1404cbbb7\ncall    cs:?setVolume@ChannelControl@FMOD@@QEAA?AW4FMOD_RESULT@@M@Z; FMOD::ChannelControl::setVolume(float) ; +0x9a, 0x1404cbbba\ncomiss  xmm7, xmm8                                                     ; +0xa0, 0x1404cbbc0\njb      short loc_1404CBC0E                                            ; +0xa4, 0x1404cbbc4\ncomiss  xmm6, xmm7                                                     ; +0xa6, 0x1404cbbc6\njbe     short loc_1404CBC0E                                            ; +0xa9, 0x1404cbbc9\nmov     rcx, cs:qword_14090BFD0                                        ; +0xab, 0x1404cbbcb\ntest    rcx, rcx                                                       ; +0xb2, 0x1404cbbd2\njnz     short loc_1404CBC09                                            ; +0xb5, 0x1404cbbd5\nmov     ecx, 6E8h; Size                                                ; +0xb7, 0x1404cbbd7\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xbc, 0x1404cbbdc\nmov     [rsp+58h+arg_8], rax                                           ; +0xc1, 0x1404cbbe1\nmov     rcx, rax                                                       ; +0xc6, 0x1404cbbe6\ncall    GameManager__GameManager                                       ; +0xc9, 0x1404cbbe9\nnop                                                                    ; +0xce, 0x1404cbbee\nmov     cs:qword_14090BFD0, rax                                        ; +0xcf, 0x1404cbbef\nmov     rcx, [rax]                                                     ; +0xd6, 0x1404cbbf6\nmov     rdx, [rcx+48h]                                                 ; +0xd9, 0x1404cbbf9\nmov     rcx, rax                                                       ; +0xdd, 0x1404cbbfd\ncall    rdx                                                            ; +0xe0, 0x1404cbc00\nmov     rcx, cs:qword_14090BFD0                                        ; +0xe2, 0x1404cbc02\ncall    GameManager__playMenuMusic                                     ; +0xe9, 0x1404cbc09\nmovaps  xmm6, [rsp+58h+var_18]                                         ; +0xee, 0x1404cbc0e\nmovaps  xmm7, [rsp+58h+var_28]                                         ; +0xf3, 0x1404cbc13\nmovaps  xmm8, [rsp+58h+var_38]                                         ; +0xf8, 0x1404cbc18\nadd     rsp, 58h                                                       ; +0xfe, 0x1404cbc1e\nretn                                                                   ; +0x102, 0x1404cbc22", "xrefs": ["OptionsLayer::customSetup @ 0x1404cb605", "<???> @ 0x140929600"], "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"}