//
// GJBaseGameLayer::removeFromStickyGroup from 0x886a4c to 0x886ae0 (148 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::removeSpecial @ 0x6657c4
// > ??> @ 0x39c48
//
// 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 GJBaseGameLayer::removeFromStickyGroup(GJBaseGameLayer *a1, GameObject *a2)
{
int m_linkedGroup; // w1
cocos2d::CCArray *StickyGroup; // x0
int m_uniqueID; // [xsp+34h] [xbp+34h] BYREF
m_linkedGroup = a2->m_linkedGroup;
if ( m_linkedGroup )
{
StickyGroup = GJBaseGameLayer::getStickyGroup(a1, m_linkedGroup);
if ( StickyGroup )
cocos2d::CCArray::removeObject(StickyGroup, a2, 1);
m_uniqueID = a2->m_uniqueID;
*(_DWORD *)std::__detail::_Map_base,std::allocator>,std::__detail::_Select1st,std::equal_to,std::hash,std::__detail::_Mod_range_hashing,std::__detail::_Default_ranged_hash,std::__detail::_Prime_rehash_policy,std::__detail::_Hashtable_traits,true>::operator[](
&a1->m_stickyGroups._M_h._M_buckets,
&m_uniqueID) = a2->m_linkedGroup;
a2->m_linkedGroup = 0;
}
}