//
// GJBaseGameLayer::removeFromStickyGroup from 0x10013e170 to 0x10013e1ff (143 bytes)
//
// 1 xrefs:
// > LevelEditorLayer::removeSpecial @ 0x1000e26a7
//
// 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::removeFromStickyGroup(GJBaseGameLayer *a1, GameObject *a2)
{
__m128 v2; // xmm0
intptr_t m_linkedGroup; // rsi
cocos2d::CCObject *v5; // rax
int v6; // r15d
int *p_m_uniqueID; // [rsp+8h] [rbp-28h] BYREF
int m_uniqueID; // [rsp+10h] [rbp-20h] BYREF
m_linkedGroup = a2->m_linkedGroup;
if ( m_linkedGroup )
{
v5 = cocos2d::CCDictionary::objectForKey(a1->m_linkedGroupDict, m_linkedGroup);
if ( v5 )
sub_100720220(v5, a2, 1);
v6 = a2->m_linkedGroup;
m_uniqueID = a2->m_uniqueID;
p_m_uniqueID = &m_uniqueID;
*((_DWORD *)sub_100105AF0((float *)&a1->m_stickyGroups, &m_uniqueID, v2, (__int64)&unk_100816AE0, &p_m_uniqueID) + 5) = v6;
a2->m_linkedGroup = 0;
}
}