//
// SetGroupIDLayer::onNextGroupID1 from 0x100315240 to 0x1003152c7 (135 bytes)
//
// 1 xrefs:
// > SetGroupIDLayer::init @ 0x1003130d6
//
// 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 SetGroupIDLayer::onNextGroupID1(SetGroupIDLayer *a1, cocos2d::CCObject *a2)
{
LevelEditorLayer *m_levelEditorLayer; // rdi
std::__hash_node_base *>::__next_pointer next; // rdi
std::__hash_node_base *> *v5; // r14
std::__hash_node_base *> **value; // rdi
std::unordered_set v7; // [rsp+0h] [rbp-40h] BYREF
m_levelEditorLayer = GameManager::sharedState()->m_levelEditorLayer;
memset(&v7, 0, 32);
v7.__table_.__p3_.__value_ = 1.0;
a1->m_groupIDValue = LevelEditorLayer::getNextFreeGroupID(m_levelEditorLayer, &v7);
next = v7.__table_.__p1_.__value_.__next_;
if ( v7.__table_.__p1_.__value_.__next_ )
{
do
{
v5 = next->__next_;
operator delete(next);
next = v5;
}
while ( v5 );
}
value = v7.__table_.__bucket_list_.__ptr_.__value_;
v7.__table_.__bucket_list_.__ptr_.__value_ = nullptr;
if ( value )
operator delete(value);
SetGroupIDLayer::updateGroupIDLabel(a1);
}