//
// SetupSongTriggerPopup::updateLength from 0x1405f3120 to 0x1405f31af (143 bytes)
//
// 3 xrefs:
// > SetupSongTriggerPopup::init @ 0x1405f2a14
// > SetupSongTriggerPopup::valueDidChange @ 0x1405f3a7c
// > ??> @ 0x14092f360
//
// 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 11:35:06 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall SetupSongTriggerPopup::updateLength(_QWORD *a1)
{
__int64 result; // rax
float v3; // xmm0_4
float v4; // xmm0_4
__int64 v5; // rcx
void *v6; // [rsp+30h] [rbp+8h]
result = a1[128];
if ( *(_QWORD *)(result + 416) )
{
if ( !qword_14090BF60 )
{
v6 = operator new(0x8A8u);
qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v6);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60);
}
v3 = (*(float (__fastcall **)(_QWORD *, __int64))(*a1 + 1168LL))(a1, 404);
v4 = FMODAudioEngine::pitchForIdx((int)v3);
v5 = *(_QWORD *)(a1[128] + 416LL);
*(float *)(v5 + 508) = v4;
return CustomSongWidget::updateSongInfo(v5);
}
return result;
}