{"type": "func", "start": 5372371248, "end": 5372371392, "name": "PauseLayer::musicSliderChanged", "pseudocode": "// \n// PauseLayer::musicSliderChanged from 0x14037e130 to 0x14037e1c0 (144 bytes)\n// \n// 2 xrefs:\n// > PauseLayer::customSetup @ 0x14037d054\n// > <???> @ 0x1406d5d68\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 PauseLayer::musicSliderChanged(PauseLayer *a1, cocos2d::CCObject *a2)\n{\n  float Value; // xmm6_4\n  __int64 v3; // rax\n  FMOD::ChannelControl *v4; // rcx\n  FMODAudioEngine *v5; // [rsp+48h] [rbp+10h]\n\n  Value = SliderThumb::getValue((SliderThumb *)a2);\n  if ( Value < 0.029999999 )\n    Value = 0.0;\n  v3 = qword_1406C2E88;\n  if ( !qword_1406C2E88 )\n  {\n    v5 = (FMODAudioEngine *)operator new(0x888u);\n    qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v5);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n    v3 = qword_1406C2E88;\n  }\n  *(_DWORD *)(v3 + 524) = 0;\n  *(float *)(v3 + 512) = Value;\n  v4 = *(FMOD::ChannelControl **)(v3 + 552);\n  if ( v4 )\n    FMOD::ChannelControl::setVolume(v4, Value);\n}", "assembly": "; \n; PauseLayer::musicSliderChanged from 0x14037e130 to 0x14037e1c0 (144 bytes)\n; \n; 2 xrefs:\n; > PauseLayer::customSetup @ 0x14037d054\n; > <???> @ 0x1406d5d68\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, 0x14037e130\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x4, 0x14037e134\nmov     rcx, rdx                                                       ; +0x9, 0x14037e139\ncall    SliderThumb__getValue                                          ; +0xc, 0x14037e13c\nmovaps  xmm6, xmm0                                                     ; +0x11, 0x14037e141\nmovss   xmm1, cs:dword_1406229C8                                       ; +0x14, 0x14037e144\ncomiss  xmm1, xmm0                                                     ; +0x1c, 0x14037e14c\njbe     short loc_14037E154                                            ; +0x1f, 0x14037e14f\nxorps   xmm6, xmm6                                                     ; +0x21, 0x14037e151\nmov     rax, cs:qword_1406C2E88                                        ; +0x24, 0x14037e154\ntest    rax, rax                                                       ; +0x2b, 0x14037e15b\njnz     short loc_14037E18F                                            ; +0x2e, 0x14037e15e\nmov     ecx, 888h; Size                                                ; +0x30, 0x14037e160\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x35, 0x14037e165\nmov     [rsp+38h+arg_8], rax                                           ; +0x3a, 0x14037e16a\nmov     rcx, rax                                                       ; +0x3f, 0x14037e16f\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x42, 0x14037e172\nnop                                                                    ; +0x47, 0x14037e177\nmov     cs:qword_1406C2E88, rax                                        ; +0x48, 0x14037e178\nmov     rdx, [rax]                                                     ; +0x4f, 0x14037e17f\nmov     rcx, rax                                                       ; +0x52, 0x14037e182\ncall    qword ptr [rdx+48h]                                            ; +0x55, 0x14037e185\nmov     rax, cs:qword_1406C2E88                                        ; +0x58, 0x14037e188\nmov     dword ptr [rax+20Ch], 0                                        ; +0x5f, 0x14037e18f\nmovss   dword ptr [rax+200h], xmm6                                     ; +0x69, 0x14037e199\nmov     rcx, [rax+228h]                                                ; +0x71, 0x14037e1a1\ntest    rcx, rcx                                                       ; +0x78, 0x14037e1a8\njz      short loc_14037E1B6                                            ; +0x7b, 0x14037e1ab\nmovaps  xmm1, xmm6                                                     ; +0x7d, 0x14037e1ad\ncall    cs:?setVolume@ChannelControl@FMOD@@QEAA?AW4FMOD_RESULT@@M@Z; FMOD::ChannelControl::setVolume(float) ; +0x80, 0x14037e1b0\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x86, 0x14037e1b6\nadd     rsp, 38h                                                       ; +0x8b, 0x14037e1bb\nretn                                                                   ; +0x8f, 0x14037e1bf", "xrefs": ["PauseLayer::customSetup @ 0x14037d054", "<???> @ 0x1406d5d68"], "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"}