//
// SetupSFXPopup::onPlusButton from 0x100180fd8 to 0x1001810bc (228 bytes)
//
// 1 xrefs:
// > ??> @ 0x1007a4040
//
// 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
//
void __fastcall SetupSFXPopup::onPlusButton(SetupSFXPopup *a1, cocos2d::CCObject *a2)
{
int v3; // w0
LevelEditorLayer *v4; // x0
int NextFreeSFXID; // w20
float v6; // s0
SetupSFXPopup *v7; // x0
int v8; // w1
LevelEditorLayer *m_levelEditorLayer; // x0
int NextFreeSFXGroupID; // w20
SetupReverbPopup *v11; // x0
std::unordered_set v12; // [xsp+0h] [xbp-40h] BYREF
v3 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
if ( v3 == 2 )
{
v11 = SetupReverbPopup::create((SFXTriggerGameObject *)a1->m_gameObject, a1->m_gameObjects);
((void (__fastcall *)(SetupReverbPopup *))v11->show)(v11);
return;
}
if ( v3 == 1 )
{
m_levelEditorLayer = GameManager::sharedState()->m_levelEditorLayer;
memset(&v12, 0, 32);
v12.__table_.__p3_.__value_ = 1.0;
NextFreeSFXGroupID = LevelEditorLayer::getNextFreeSFXGroupID(m_levelEditorLayer, &v12);
sub_100017A98((__int64)&v12);
v6 = (float)NextFreeSFXGroupID;
v7 = a1;
v8 = 455;
}
else
{
if ( v3 )
return;
v4 = GameManager::sharedState()->m_levelEditorLayer;
memset(&v12, 0, 32);
v12.__table_.__p3_.__value_ = 1.0;
NextFreeSFXID = LevelEditorLayer::getNextFreeSFXID(v4, &v12);
sub_100017A98((__int64)&v12);
v6 = (float)NextFreeSFXID;
v7 = a1;
v8 = 416;
}
SetupTriggerPopup::updateValue(v7, v8, v6);
}