//
// SetupEnterEffectPopup::onNextFreeEnterEffectID from 0x1003f3390 to 0x1003f3426 (150 bytes)
//
// 1 xrefs:
// > SetupEnterEffectPopup::init @ 0x1003f2856
//
// 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 SetupEnterEffectPopup::onNextFreeEnterEffectID(SetupEnterEffectPopup *a1, cocos2d::CCObject *a2)
{
LevelEditorLayer *m_levelEditorLayer; // rdi
int NextFreeAreaEffectID; // r14d
std::__hash_node_base *>::__next_pointer next; // rdi
std::__hash_node_base *> *v6; // r15
std::__hash_node_base *> **value; // rdi
std::unordered_set v8; // [rsp+0h] [rbp-40h] BYREF
m_levelEditorLayer = GameManager::sharedState()->m_levelEditorLayer;
memset(&v8, 0, 32);
v8.__table_.__p3_.__value_ = 1.0;
NextFreeAreaEffectID = LevelEditorLayer::getNextFreeAreaEffectID(m_levelEditorLayer, &v8);
next = v8.__table_.__p1_.__value_.__next_;
if ( v8.__table_.__p1_.__value_.__next_ )
{
do
{
v6 = next->__next_;
operator delete(next);
next = v6;
}
while ( v6 );
}
value = v8.__table_.__bucket_list_.__ptr_.__value_;
v8.__table_.__bucket_list_.__ptr_.__value_ = nullptr;
if ( value )
operator delete(value);
SetupTriggerPopup::updateValue(a1, 225, (float)NextFreeAreaEffectID);
}