//
// MusicBrowser::sliderEnded from 0x100469b90 to 0x100469c0c (124 bytes)
//
// 2 xrefs:
// > j_MusicBrowser::sliderEnded @ 0x100469c0c
// > ??> @ 0x10096b3d8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:05:34 +0000
//
__int64 *__fastcall MusicBrowser::sliderEnded(__int64 a1, __int64 a2)
{
__int64 v3; // x0
__int64 *result; // x0
float *v5; // x0
float Value; // s8
__int64 v7; // x0
int v8; // w19
__int64 v9; // x0
v3 = FMODAudioEngine::sharedEngine();
result = (__int64 *)FMODAudioEngine::isMusicPlaying_1(v3, 0);
if ( (_DWORD)result )
{
v5 = (float *)sub_10038A980(a2);
Value = SliderThumb::getValue(v5);
v7 = FMODAudioEngine::sharedEngine();
v8 = (unsigned int)(float)(Value * (float)(unsigned int)FMODAudioEngine::getMusicLengthMS(v7, 0));
v9 = FMODAudioEngine::sharedEngine();
return FMODAudioEngine::setMusicTimeMS(v9, v8, 0, 0);
}
return result;
}