//
// GJBaseGameLayer::reAddToStickyGroup from 0x9c8394 to 0x9c8464 (208 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::addSpecial @ 0x7a0a24
// > ??> @ 0xbf680
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:58:34 +0000
//
__int64 __fastcall GJBaseGameLayer::reAddToStickyGroup(cocos2d::CCDictionary **this, GameObject *a2)
{
__int64 *v3; // x20
int v6; // w24
cocos2d::CCArray *StickyGroup; // x0
int v8; // [xsp+44h] [xbp+44h] BYREF
v3 = (__int64 *)(this + 1706);
v8 = *((_DWORD *)a2 + 229);
if ( std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find(
this + 1706,
&v8) )
{
if ( !*((_DWORD *)a2 + 218) )
{
v8 = *((_DWORD *)a2 + 229);
v6 = *(_DWORD *)std::unordered_map::operator[]((unsigned __int64)v3, &v8);
StickyGroup = (cocos2d::CCArray *)GJBaseGameLayer::getStickyGroup(this, v6);
if ( StickyGroup )
{
cocos2d::CCArray::addObject(StickyGroup, a2);
*((_DWORD *)a2 + 218) = v6;
v8 = *((_DWORD *)a2 + 229);
std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::__erase_unique(
v3,
&v8);
}
}
}
return _stack_chk_guard;
}