{"type": "func", "start": 5372324496, "end": 5372324630, "name": "OptionsLayer::sfxSliderChanged", "pseudocode": "// \n// OptionsLayer::sfxSliderChanged from 0x140372a90 to 0x140372b16 (134 bytes)\n// \n// 3 xrefs:\n// > OptionsLayer::customSetup @ 0x140372611\n// > PauseLayer::customSetup @ 0x14037d125\n// > <???> @ 0x1406d5ad4\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// Merged with: OptionsLayer::sfxSliderChanged, PauseLayer::sfxSliderChanged\n// Hidden C++ exception states: #wind=1\nint __fastcall OptionsLayer::sfxSliderChanged(__int64 a1, SliderThumb *a2)\n{\n  float Value; // xmm6_4\n  __int64 v3; // rax\n  FMOD::ChannelControl *v4; // rcx\n  FMODAudioEngine *v6; // [rsp+48h] [rbp+10h]\n\n  Value = SliderThumb::getValue(a2);\n  if ( Value < 0.029999999 )\n    Value = 0.0;\n  v3 = qword_1406C2E88;\n  if ( !qword_1406C2E88 )\n  {\n    v6 = (FMODAudioEngine *)operator new(0x888u);\n    qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v6);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n    v3 = qword_1406C2E88;\n  }\n  *(float *)(v3 + 516) = Value;\n  v4 = *(FMOD::ChannelControl **)(v3 + 584);\n  if ( v4 )\n    LODWORD(v3) = FMOD::ChannelControl::setVolume(v4, Value);\n  return v3;\n}", "assembly": "; \n; OptionsLayer::sfxSliderChanged from 0x140372a90 to 0x140372b16 (134 bytes)\n; \n; 3 xrefs:\n; > OptionsLayer::customSetup @ 0x140372611\n; > PauseLayer::customSetup @ 0x14037d125\n; > <???> @ 0x1406d5ad4\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, 38h                                                       ; +0x0, 0x140372a90\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x4, 0x140372a94\nmov     rcx, rdx                                                       ; +0x9, 0x140372a99\ncall    SliderThumb__getValue                                          ; +0xc, 0x140372a9c\nmovaps  xmm6, xmm0                                                     ; +0x11, 0x140372aa1\nmovss   xmm1, cs:dword_1406229C8                                       ; +0x14, 0x140372aa4\ncomiss  xmm1, xmm0                                                     ; +0x1c, 0x140372aac\njbe     short loc_140372AB4                                            ; +0x1f, 0x140372aaf\nxorps   xmm6, xmm6                                                     ; +0x21, 0x140372ab1\nmov     rax, cs:qword_1406C2E88                                        ; +0x24, 0x140372ab4\ntest    rax, rax                                                       ; +0x2b, 0x140372abb\njnz     short loc_140372AEF                                            ; +0x2e, 0x140372abe\nmov     ecx, 888h; Size                                                ; +0x30, 0x140372ac0\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x35, 0x140372ac5\nmov     [rsp+38h+arg_8], rax                                           ; +0x3a, 0x140372aca\nmov     rcx, rax                                                       ; +0x3f, 0x140372acf\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x42, 0x140372ad2\nnop                                                                    ; +0x47, 0x140372ad7\nmov     cs:qword_1406C2E88, rax                                        ; +0x48, 0x140372ad8\nmov     rdx, [rax]                                                     ; +0x4f, 0x140372adf\nmov     rcx, rax                                                       ; +0x52, 0x140372ae2\ncall    qword ptr [rdx+48h]                                            ; +0x55, 0x140372ae5\nmov     rax, cs:qword_1406C2E88                                        ; +0x58, 0x140372ae8\nmovss   dword ptr [rax+204h], xmm6                                     ; +0x5f, 0x140372aef\nmov     rcx, [rax+248h]                                                ; +0x67, 0x140372af7\ntest    rcx, rcx                                                       ; +0x6e, 0x140372afe\njz      short loc_140372B0C                                            ; +0x71, 0x140372b01\nmovaps  xmm1, xmm6                                                     ; +0x73, 0x140372b03\ncall    cs:?setVolume@ChannelControl@FMOD@@QEAA?AW4FMOD_RESULT@@M@Z; FMOD::ChannelControl::setVolume(float) ; +0x76, 0x140372b06\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x7c, 0x140372b0c\nadd     rsp, 38h                                                       ; +0x81, 0x140372b11\nretn                                                                   ; +0x85, 0x140372b15", "xrefs": ["OptionsLayer::customSetup @ 0x140372611", "PauseLayer::customSetup @ 0x14037d125", "<???> @ 0x1406d5ad4"], "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"}