//
// SetupReverbPopup::onPlay from 0xb6c138 to 0xb6c188 (80 bytes)
//
// 3 xrefs:
// > ??> @ 0x805a8
// > SetupReverbPopup::init @ 0xb6d038
// > ??> @ 0x1543540
//
// 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
//
FMODAudioEngine *__fastcall SetupReverbPopup::onPlay(int **this, cocos2d::CCObject *a2)
{
FMOD::ChannelControl **v3; // x0
FMODAudioEngine *result; // x0
int *v5; // x19
__int64 v6; // x0
GameManager *updated; // x0
GameManager *v8; // x0
v3 = (FMOD::ChannelControl **)FMODAudioEngine::sharedEngine((FMODAudioEngine *)this);
result = (FMODAudioEngine *)FMODAudioEngine::stopAllEffects(v3);
v5 = *(this + 85);
if ( v5 )
{
v6 = FMODAudioEngine::sharedEngine(result);
updated = (GameManager *)FMODAudioEngine::updateReverb(v6, v5[492], 0);
v8 = (GameManager *)GameManager::sharedState(updated);
return (FMODAudioEngine *)GameManager::playSFXTrigger(v8, (SFXTriggerGameObject *)v5);
}
return result;
}