//
// FMODAudioEngine::lengthForSound from 0x1003e66b0 to 0x1003e6703 (83 bytes)
//
// 2 xrefs:
// > SetupSFXPopup::createSFXWidget @ 0x1004ba0d9
// > SetupSFXPopup::onClose @ 0x1004ba3b8
//
// 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 v3; // [rsp+0h] [rbp-20h] BYREF
_BYTE v4[17]; // [rsp+Fh] [rbp-11h] BYREF
if ( !sub_1003EC6B0(a1 + 360) )
return 0;
v3 = a2;
return *(unsigned int *)(sub_1003EC940(a1 + 360, a2, &unk_10081B0A2, &v3, v4) + 72);
}