//
// SetupSFXPopup::overridePlaySFX from 0xb6c188 to 0xb6c1d4 (76 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'SetupSFXPopup::overridePlaySFX @ 0xb6c1d8
// > ??> @ 0xa7ed8
// > ??> @ 0x14c8eb8
//
// 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 13:02:18 +0000
//
__int64 __fastcall SetupSFXPopup::overridePlaySFX(SetupSFXPopup *this, SFXInfoObject *a2)
{
__int64 v2; // x19
__int64 updated; // x0
GameManager *v4; // x0
__int64 v6; // x0
v2 = *((_QWORD *)this + 85);
if ( v2 )
{
updated = *(unsigned __int8 *)(v2 + 1972);
if ( *(_BYTE *)(v2 + 1972) )
{
v6 = FMODAudioEngine::sharedEngine((FMODAudioEngine *)updated);
updated = FMODAudioEngine::updateReverb(v6, *(_DWORD *)(v2 + 1968), 0);
}
v4 = (GameManager *)GameManager::sharedState((GameManager *)updated);
GameManager::playSFXTrigger(v4, (SFXTriggerGameObject *)v2);
}
return 1;
}