//
// FMODAudioEngine::lengthForSound from 0x6d1948 to 0x6d1994 (76 bytes)
//
// 3 xrefs:
// > SetupSFXPopup::onClose @ 0xb6ca20
// > SetupSFXPopup::createSFXWidget @ 0xb6d86c
// > ??> @ 0x670d8
//
// This function is hookable on this platform (idp: arm, 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:51:27 +0000
//
__int64 __fastcall FMODAudioEngine::lengthForSound(__int64 a1, _QWORD *a2)
{
unsigned __int64 v2; // x19
v2 = a1 + 360;
if ( std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find(
(_QWORD *)(a1 + 360),
(__int64)a2) )
{
return *(unsigned int *)(std::unordered_map::operator[](v2, a2) + 32);
}
else
{
return 0;
}
}