//
// SetupSongTriggerPopup::updateLength from 0x65840a to 0x658448 (62 bytes)
//
// 2 xrefs:
// > SetupSongTriggerPopup::valueDidChange @ 0x6584a6
// > SetupSongTriggerPopup::init @ 0x658956
//
// 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:55:31 +0000
//
FMODAudioEngine *__fastcall SetupSongTriggerPopup::updateLength(FMODAudioEngine *this)
{
FMODAudioEngine *v1; // r4
CustomSongWidget *v2; // r5
__int64 v3; // r0
int v4; // r1
v1 = this;
v2 = *(CustomSongWidget **)(*((_DWORD *)this + 181) + 316);
if ( v2 )
{
FMODAudioEngine::sharedEngine(this);
v3 = ((__int64 (__fastcall *)(FMODAudioEngine *, int))*(_DWORD *)(*(_DWORD *)v1 + 732))(v1, 404);
v4 = FMODAudioEngine::pitchForIdx((FMODAudioEngine *)(int)*(float *)&v3, SHIDWORD(v3));
return (FMODAudioEngine *)CustomSongWidget::updateLengthMod(v2, *(float *)&v4);
}
return this;
}