{"type": "func", "start": 5372091072, "end": 5372091349, "name": "MusicBrowser::sliderEnded", "pseudocode": "// \n// MusicBrowser::sliderEnded from 0x140339ac0 to 0x140339bd5 (277 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1405abac0\n// > <???> @ 0x1406d533c\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=3\nvoid MusicBrowser::sliderEnded(MusicBrowser *a1, Slider *a2)\n{\n  FMODAudioEngine *v3; // rcx\n  int v4; // edx\n  float Value; // xmm6_4\n  FMODAudioEngine *v6; // rcx\n  unsigned int v7; // ebx\n  FMODAudioEngine *v8; // rcx\n  FMODAudioEngine *v9; // [rsp+50h] [rbp+18h]\n  FMODAudioEngine *v10; // [rsp+50h] [rbp+18h]\n  FMODAudioEngine *v11; // [rsp+50h] [rbp+18h]\n\n  v3 = (FMODAudioEngine *)qword_1406C2E88;\n  if ( !qword_1406C2E88 )\n  {\n    v9 = (FMODAudioEngine *)operator new(0x888u);\n    qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v9);\n    (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n    v3 = (FMODAudioEngine *)qword_1406C2E88;\n  }\n  if ( FMODAudioEngine::isMusicPlaying_1(v3, 0) )\n  {\n    Value = SliderThumb::getValue(a2->m_touchLogic->m_thumb);\n    v6 = (FMODAudioEngine *)qword_1406C2E88;\n    if ( !qword_1406C2E88 )\n    {\n      v10 = (FMODAudioEngine *)operator new(0x888u);\n      qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v10);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n      v6 = (FMODAudioEngine *)qword_1406C2E88;\n    }\n    v7 = (int)(float)((float)(int)FMODAudioEngine::getMusicLengthMS(v6, v4) * Value);\n    v8 = (FMODAudioEngine *)qword_1406C2E88;\n    if ( !qword_1406C2E88 )\n    {\n      v11 = (FMODAudioEngine *)operator new(0x888u);\n      qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v11);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);\n      v8 = (FMODAudioEngine *)qword_1406C2E88;\n    }\n    FMODAudioEngine::setMusicTimeMS(v8, v7, 0, 0);\n  }\n}", "assembly": "; \n; MusicBrowser::sliderEnded from 0x140339ac0 to 0x140339bd5 (277 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1405abac0\n; > <???> @ 0x1406d533c\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\npush    rbx                                                            ; +0x0, 0x140339ac0\nsub     rsp, 30h                                                       ; +0x2, 0x140339ac2\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x6, 0x140339ac6\nmov     rbx, rdx                                                       ; +0xb, 0x140339acb\nmov     rcx, cs:qword_1406C2E88                                        ; +0xe, 0x140339ace\ntest    rcx, rcx                                                       ; +0x15, 0x140339ad5\njnz     short loc_140339B09                                            ; +0x18, 0x140339ad8\nmov     ecx, 888h; Size                                                ; +0x1a, 0x140339ada\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1f, 0x140339adf\nmov     [rsp+38h+arg_10], rax                                          ; +0x24, 0x140339ae4\nmov     rcx, rax                                                       ; +0x29, 0x140339ae9\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x2c, 0x140339aec\nnop                                                                    ; +0x31, 0x140339af1\nmov     cs:qword_1406C2E88, rax                                        ; +0x32, 0x140339af2\nmov     rdx, [rax]                                                     ; +0x39, 0x140339af9\nmov     rcx, rax                                                       ; +0x3c, 0x140339afc\ncall    qword ptr [rdx+48h]                                            ; +0x3f, 0x140339aff\nmov     rcx, cs:qword_1406C2E88                                        ; +0x42, 0x140339b02\nxor     edx, edx                                                       ; +0x49, 0x140339b09\ncall    FMODAudioEngine__isMusicPlaying_1                              ; +0x4b, 0x140339b0b\ntest    al, al                                                         ; +0x50, 0x140339b10\njz      loc_140339BCA                                                  ; +0x52, 0x140339b12\nmov     rax, [rbx+198h]                                                ; +0x58, 0x140339b18\nmov     rcx, [rax+1C8h]                                                ; +0x5f, 0x140339b1f\ncall    SliderThumb__getValue                                          ; +0x66, 0x140339b26\nmovaps  xmm6, xmm0                                                     ; +0x6b, 0x140339b2b\nmov     rcx, cs:qword_1406C2E88                                        ; +0x6e, 0x140339b2e\ntest    rcx, rcx                                                       ; +0x75, 0x140339b35\njnz     short loc_140339B69                                            ; +0x78, 0x140339b38\nmov     ecx, 888h; Size                                                ; +0x7a, 0x140339b3a\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x7f, 0x140339b3f\nmov     [rsp+38h+arg_10], rax                                          ; +0x84, 0x140339b44\nmov     rcx, rax                                                       ; +0x89, 0x140339b49\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0x8c, 0x140339b4c\nnop                                                                    ; +0x91, 0x140339b51\nmov     cs:qword_1406C2E88, rax                                        ; +0x92, 0x140339b52\nmov     rdx, [rax]                                                     ; +0x99, 0x140339b59\nmov     rcx, rax                                                       ; +0x9c, 0x140339b5c\ncall    qword ptr [rdx+48h]                                            ; +0x9f, 0x140339b5f\nmov     rcx, cs:qword_1406C2E88                                        ; +0xa2, 0x140339b62\ncall    FMODAudioEngine__getMusicLengthMS                              ; +0xa9, 0x140339b69\nmov     eax, eax                                                       ; +0xae, 0x140339b6e\nxorps   xmm0, xmm0                                                     ; +0xb0, 0x140339b70\ncvtsi2ss xmm0, rax                                                     ; +0xb3, 0x140339b73\nmulss   xmm0, xmm6                                                     ; +0xb8, 0x140339b78\ncvttss2si rbx, xmm0                                                    ; +0xbc, 0x140339b7c\nmov     rcx, cs:qword_1406C2E88                                        ; +0xc1, 0x140339b81\ntest    rcx, rcx                                                       ; +0xc8, 0x140339b88\njnz     short loc_140339BBD                                            ; +0xcb, 0x140339b8b\nmov     ecx, 888h; Size                                                ; +0xcd, 0x140339b8d\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0xd2, 0x140339b92\nmov     [rsp+38h+arg_10], rax                                          ; +0xd7, 0x140339b97\nmov     rcx, rax                                                       ; +0xdc, 0x140339b9c\ncall    FMODAudioEngine__FMODAudioEngine                               ; +0xdf, 0x140339b9f\nnop                                                                    ; +0xe4, 0x140339ba4\nmov     cs:qword_1406C2E88, rax                                        ; +0xe5, 0x140339ba5\nmov     r8, [rax]                                                      ; +0xec, 0x140339bac\nmov     rcx, rax                                                       ; +0xef, 0x140339baf\ncall    qword ptr [r8+48h]                                             ; +0xf2, 0x140339bb2\nmov     rcx, cs:qword_1406C2E88                                        ; +0xf6, 0x140339bb6\nxor     r9d, r9d                                                       ; +0xfd, 0x140339bbd\nxor     r8d, r8d                                                       ; +0x100, 0x140339bc0\nmov     edx, ebx                                                       ; +0x103, 0x140339bc3\ncall    FMODAudioEngine__setMusicTimeMS                                ; +0x105, 0x140339bc5\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x10a, 0x140339bca\nadd     rsp, 30h                                                       ; +0x10f, 0x140339bcf\npop     rbx                                                            ; +0x113, 0x140339bd3\nretn                                                                   ; +0x114, 0x140339bd4", "xrefs": ["<???> @ 0x1405abac0", "<???> @ 0x1406d533c"], "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"}