//
// FMODAudioEngine::lengthForSound from 0x10013cc9c to 0x10013ccf4 (88 bytes)
//
// 2 xrefs:
// > SetupSFXPopup::createSFXWidget @ 0x100180acc
// > SetupSFXPopup::onClose @ 0x100180d1c
//
// 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
//
__int64 __fastcall FMODAudioEngine::lengthForSound(__int64 a1, __int64 a2)
{
__int64 result; // x0
char v5; // [xsp+7h] [xbp-19h] BYREF
__int64 v6; // [xsp+8h] [xbp-18h] BYREF
result = sub_10013FF3C(a1 + 360);
if ( result )
{
v6 = a2;
return *(unsigned int *)(sub_100140034(a1 + 360, a2, &unk_100637FD3, &v6, &v5) + 72);
}
return result;
}