//
// GJBaseGameLayer::reAddToStickyGroup from 0x5a813c to 0x5a81b4 (120 bytes)
//
// 1 xrefs:
// > LevelEditorLayer::addSpecial @ 0x46e662
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:53:22 +0000
//
cocos2d::CCArray *__fastcall GJBaseGameLayer::reAddToStickyGroup(
GJBaseGameLayer *this,
GameObject *a2,
unsigned int a3)
{
int *v3; // r6
cocos2d::CCArray *result; // r0
int v7; // r8
unsigned int v8; // r3
unsigned int v9[3]; // [sp+0h] [bp-Ch] BYREF
v9[0] = (unsigned int)this;
v9[1] = (unsigned int)a2;
v9[2] = a3;
v3 = (int *)((char *)this + 11440);
v9[0] = *((_DWORD *)a2 + 195);
result = (cocos2d::CCArray *)std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find(
(_DWORD *)this + 2860,
v9);
if ( result && !*((_DWORD *)a2 + 185) )
{
v9[0] = *((_DWORD *)a2 + 195);
v7 = *std::unordered_map::operator[]((int)v3, v9);
result = (cocos2d::CCArray *)GJBaseGameLayer::getStickyGroup((cocos2d::CCDictionary **)this, v7);
if ( result )
{
cocos2d::CCArray::addObject(result, a2);
v8 = *((_DWORD *)a2 + 195);
*((_DWORD *)a2 + 185) = v7;
v9[0] = v8;
return (cocos2d::CCArray *)std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::__erase_unique(
v3,
v9);
}
}
return result;
}