//
// SetupEnterEffectPopup::onNextFreeEnterEffectID from 0x693ad0 to 0x693b62 (146 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:13 +0000
//
int __fastcall SetupEnterEffectPopup::onNextFreeEnterEffectID(SetupEnterEffectPopup *this, cocos2d::CCObject *a2)
{
int v3; // r0
int NextFreeAreaEffectID; // r0
_DWORD *v5; // r3
int v6; // s16
_DWORD *v7; // r6
void *v8; // r0
void *v10[2]; // [sp+0h] [bp-18h] BYREF
void *v11; // [sp+8h] [bp-10h]
int v12; // [sp+Ch] [bp-Ch]
int v13; // [sp+10h] [bp-8h]
v3 = GameManager::sharedState(this);
v10[0] = nullptr;
v10[1] = nullptr;
v11 = nullptr;
v12 = 0;
v13 = 1065353216;
NextFreeAreaEffectID = LevelEditorLayer::getNextFreeAreaEffectID(*(LevelEditorLayer **)(v3 + 408), (int)v10);
v5 = v11;
v6 = NextFreeAreaEffectID;
while ( v5 )
{
v7 = (_DWORD *)*v5;
operator delete(v5);
v5 = v7;
}
v8 = v10[0];
v10[0] = nullptr;
if ( v8 )
operator delete(v8);
return SetupTriggerPopup::updateValue((cocos2d::CCDictionary **)this, 225, (float)v6);
}