//
// SetupSFXPopup::onPlusButton from 0x6b0afc to 0x6b0bca (206 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:56:39 +0000
//
int __fastcall SetupSFXPopup::onPlusButton(SetupReverbPopup **this, cocos2d::CCObject *a2)
{
int result; // r0
cocos2d::CCArray *v4; // r2
int v5; // r4
LevelEditorLayer *v6; // r0
int NextFreeSFXGroupID; // s16
cocos2d::CCDictionary **v8; // r0
int v9; // r1
LevelEditorLayer *v10; // r0
SetupTriggerPopup *v11; // r0
int v12; // [sp+0h] [bp-18h] BYREF
int v13; // [sp+4h] [bp-14h]
int v14; // [sp+8h] [bp-10h]
int v15; // [sp+Ch] [bp-Ch]
int v16; // [sp+10h] [bp-8h]
result = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
v5 = result;
if ( result == 1 )
{
v10 = *(LevelEditorLayer **)(GameManager::sharedState((GameManager *)((char *)&dword_0 + 1)) + 408);
v12 = 0;
v13 = 0;
v14 = 0;
v15 = 0;
v16 = 1065353216;
NextFreeSFXGroupID = LevelEditorLayer::getNextFreeSFXGroupID(v10, (int)&v12);
std::__hash_table,std::equal_to,std::allocator>::~__hash_table((int)&v12);
v8 = this;
v9 = 455;
return SetupTriggerPopup::updateValue(v8, v9, (float)NextFreeSFXGroupID);
}
if ( result != 2 )
{
if ( result )
return result;
v6 = *(LevelEditorLayer **)(GameManager::sharedState(nullptr) + 408);
v12 = v5;
v13 = v5;
v14 = v5;
v15 = v5;
v16 = 1065353216;
NextFreeSFXGroupID = LevelEditorLayer::getNextFreeSFXID(v6, (int)&v12);
std::__hash_table,std::equal_to,std::allocator>::~__hash_table((int)&v12);
v8 = this;
v9 = 416;
return SetupTriggerPopup::updateValue(v8, v9, (float)NextFreeSFXGroupID);
}
v11 = SetupReverbPopup::create(*(this + 132), *(this + 133), v4);
return (*(int (__fastcall **)(SetupTriggerPopup *))(*(_DWORD *)v11 + 656))(v11);
}