//
// SetupSongTriggerPopup::updateSongTimeSlider from 0x1002c09a0 to 0x1002c0a6a (202 bytes)
//
// 1 xrefs:
// > SetupSongTriggerPopup::init @ 0x1002c06cb
//
// This function is hookable on this platform (idp: pc, 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 12:28:05 +0000
//
__int64 __fastcall SetupSongTriggerPopup::updateSongTimeSlider(_QWORD *a1, double a2)
{
__int64 result; // rax
__int64 v3; // r14
__int64 v4; // rax
std::string v5; // [rsp+8h] [rbp-38h] BYREF
float v6; // [rsp+24h] [rbp-1Ch]
result = a1[130];
if ( *(int *)(result + 344) > 0 )
{
v3 = FMODAudioEngine::sharedEngine(a2);
MusicDownloadManager::sharedState(a1);
MusicDownloadManager::pathForSong(&v5);
FMODAudioEngine::loadMusic_1(v3, &v5);
if ( (*(_BYTE *)&v5.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v5.__r_.__value_.__l.__data_);
v4 = FMODAudioEngine::sharedEngine(a2);
result = FMODAudioEngine::getMusicLengthMS(v4, 0);
if ( (_DWORD)result )
{
v6 = (float)(int)result;
SetupTriggerPopup::setMaxSliderValue((__int64)a1, 408, (float)(int)result);
SetupTriggerPopup::setMaxSliderValue((__int64)a1, 410, v6);
SetupTriggerPopup::updateSlider_1(a1, 0x198u);
return SetupTriggerPopup::updateSlider_1(a1, 0x19Au);
}
}
return result;
}