//
// GJBaseGameLayer::reAddToStickyGroup from 0x1001f3080 to 0x1001f3134 (180 bytes)
//
// 1 xrefs:
// > LevelEditorLayer::addSpecial @ 0x10035a088
//
// 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 GJBaseGameLayer::reAddToStickyGroup(GJBaseGameLayer *a1, GameObject *a2)
{
int v4; // w22
cocos2d::CCObject *v5; // x0
int m_uniqueID; // [xsp+0h] [xbp-30h] BYREF
int *p_m_uniqueID; // [xsp+8h] [xbp-28h] BYREF
LODWORD(p_m_uniqueID) = a2->m_uniqueID;
if ( sub_100018814(&a1->m_stickyGroups.__table_.__bucket_list_.__ptr_.__value_, (int *)&p_m_uniqueID)
&& !a2->m_linkedGroup )
{
m_uniqueID = a2->m_uniqueID;
p_m_uniqueID = &m_uniqueID;
v4 = *((_DWORD *)sub_10001D150(
(unsigned __int64)&a1->m_stickyGroups,
&m_uniqueID,
(__int64)&unk_10063A31C,
&p_m_uniqueID)
+ 5);
v5 = cocos2d::CCDictionary::objectForKey(a1->m_linkedGroupDict, v4);
if ( v5 )
{
sub_10024A2D0(v5, a2);
a2->m_linkedGroup = v4;
LODWORD(p_m_uniqueID) = a2->m_uniqueID;
sub_10001B104(&a1->m_stickyGroups.__table_.__bucket_list_.__ptr_.__value_, (int *)&p_m_uniqueID);
}
}
}