//
// SetupSongTriggerPopup::updateSongTimeSlider from 0x100258e90 to 0x100258f50 (192 bytes)
//
// 1 xrefs:
// > SetupSongTriggerPopup::init @ 0x100258b88
//
// 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:01:35 +0000
//
void __fastcall SetupSongTriggerPopup::updateSongTimeSlider(__int64 a1)
{
__int64 v2; // x20
__int64 v3; // x0
unsigned int MusicLengthMS; // w0
float v5; // s8
std::string __p; // [xsp+8h] [xbp-38h] BYREF
if ( *(int *)(*(_QWORD *)(a1 + 1040) + 344LL) >= 1 )
{
v2 = FMODAudioEngine::sharedEngine();
MusicDownloadManager::sharedState();
MusicDownloadManager::pathForSong(*(unsigned int *)(*(_QWORD *)(a1 + 1040) + 344LL), &__p);
FMODAudioEngine::loadMusic_1(v2, (__int64)&__p);
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
v3 = FMODAudioEngine::sharedEngine();
MusicLengthMS = (unsigned int)FMODAudioEngine::getMusicLengthMS(v3, 0);
if ( MusicLengthMS )
{
v5 = (float)MusicLengthMS;
sub_1001AFA04(a1, 408, (float)MusicLengthMS);
sub_1001AFA04(a1, 410, v5);
sub_1001B1558(a1, 408);
sub_1001B1558(a1, 410);
}
}
}