//
// GJBaseGameLayer::reAddToStickyGroup from 0x886ae0 to 0x886ba8 (200 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::addSpecial @ 0x6708dc
// > ??> @ 0x90b58
//
// 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::reAddToStickyGroup(GJBaseGameLayer *a1, GameObject *a2)
{
std::unordered_map *p_m_stickyGroups; // x20
int m_uniqueID; // w23
int v6; // w23
cocos2d::CCArray *StickyGroup; // x0
int v8; // [xsp+44h] [xbp+44h] BYREF
p_m_stickyGroups = &a1->m_stickyGroups;
m_uniqueID = a2->m_uniqueID;
if ( sub_855C48(&a1->m_stickyGroups._M_h._M_buckets, m_uniqueID) && !a2->m_linkedGroup )
{
v8 = m_uniqueID;
v6 = *(_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[](
p_m_stickyGroups,
&v8);
StickyGroup = GJBaseGameLayer::getStickyGroup(a1, v6);
if ( StickyGroup )
{
cocos2d::CCArray::addObject(StickyGroup, a2);
a2->m_linkedGroup = v6;
v8 = a2->m_uniqueID;
sub_855D1C((__int64 *)p_m_stickyGroups, &v8);
}
}
}