//
// SetupSFXPopup::updateLength from 0x1405ddd80 to 0x1405dde01 (129 bytes)
//
// 2 xrefs:
// > SetupSFXPopup::valueDidChange @ 0x1405de61c
// > ??> @ 0x14092ecd0
//
// 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:34:59 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall SetupSFXPopup::updateLength(_QWORD *a1)
{
float v2; // xmm0_4
float v3; // xmm0_4
__int64 v4; // rcx
void *v5; // [rsp+30h] [rbp+8h]
if ( a1[129] )
{
if ( !qword_14090BF60 )
{
v5 = operator new(0x8A8u);
qword_14090BF60 = FMODAudioEngine::FMODAudioEngine((__int64)v5);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BF60 + 72LL))(qword_14090BF60);
}
v2 = (*(float (__fastcall **)(_QWORD *, __int64))(*a1 + 1168LL))(a1, 404);
v3 = FMODAudioEngine::pitchForIdx((int)v2);
v4 = a1[129];
*(float *)(v4 + 500) = v3;
CustomSFXWidget::updateSFXInfo(v4);
}
}