//
// SetupSongTriggerPopup::updateLength from 0x14045d5a0 to 0x14045d62c (140 bytes)
//
// 3 xrefs:
// > SetupSongTriggerPopup::init @ 0x14045cd89
// > SetupSongTriggerPopup::valueDidChange @ 0x14045dc8e
// > ??> @ 0x1406dac94
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
void SetupSongTriggerPopup::updateLength(SetupSongTriggerPopup *a1)
{
float v2; // xmm0_4
float v3; // xmm0_4
CustomSongWidget *m_songWidget; // rcx
FMODAudioEngine *v5; // [rsp+30h] [rbp+8h]
if ( a1->m_selectNode->m_songWidget )
{
if ( !qword_1406C2E88 )
{
v5 = (FMODAudioEngine *)operator new(0x888u);
qword_1406C2E88 = (__int64)FMODAudioEngine::FMODAudioEngine(v5);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2E88 + 72LL))(qword_1406C2E88);
}
v2 = a1->getValue(a1, 404);
v3 = FMODAudioEngine::pitchForIdx((int)v2);
m_songWidget = a1->m_selectNode->m_songWidget;
m_songWidget->m_lengthMod = v3;
CustomSongWidget::updateSongInfo(m_songWidget);
}
}