//
// FMODAudioEngine::lengthForSound from 0x1003d3be0 to 0x1003d3c33 (83 bytes)
//
// 2 xrefs:
// > SetupSFXPopup::createSFXWidget @ 0x1004b31cb
// > SetupSFXPopup::onClose @ 0x1004b34b8
//
// 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 12:29:40 +0000
//
__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_1003D9FD0(a1 + 360) )
return 0;
v3 = a2;
return *(unsigned int *)(sub_1003DA260(a1 + 360, a2, &unk_100A09642, &v3, v4) + 72);
}