//
// SetupSFXPopup::updateLength from 0x6af9a0 to 0x6af9da (58 bytes)
//
// 2 xrefs:
// > SetupSFXPopup::createSFXWidget @ 0x6b1636
// > SetupSFXPopup::valueDidChange @ 0x6b1770
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:56:38 +0000
//
CustomSFXWidget **__fastcall SetupSFXPopup::updateLength(CustomSFXWidget **this)
{
CustomSFXWidget **v1; // r4
CustomSFXWidget *v2; // r5
__int64 v3; // r0
int v4; // r1
v1 = this;
v2 = *(this + 182);
if ( v2 )
{
FMODAudioEngine::sharedEngine((FMODAudioEngine *)this);
v3 = ((__int64 (__fastcall *)(CustomSFXWidget **, int))*((_DWORD *)*v1 + 183))(v1, 404);
v4 = FMODAudioEngine::pitchForIdx((FMODAudioEngine *)(int)*(float *)&v3, SHIDWORD(v3));
return (CustomSFXWidget **)CustomSFXWidget::updateLengthMod(v2, *(float *)&v4);
}
return this;
}