//
// GJBaseGameLayer::removeGroupParent from 0x10028e1d4 to 0x10028e2b8 (228 bytes)
//
// 3 xrefs:
// > sub_100042BA8 @ 0x100042c08
// > sub_100042BA8 @ 0x100042c58
// > GJBaseGameLayer::removeFromGroup @ 0x10028e17c
//
// 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 11:02:02 +0000
//
void __fastcall GJBaseGameLayer::removeGroupParent(__int64 a1, __int64 a2, int a3)
{
__int64 v6; // x22
__int64 v7; // x0
__int64 v8; // x23
__int64 v9; // x0
__int64 v10; // x21
__int64 v11; // x22
if ( a2 )
{
v6 = a3;
cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 3688), a3);
if ( v7 )
{
v8 = v7;
sub_1002E765C(v7, a2, 1);
if ( !(unsigned int)sub_1002E757C(v8) )
cocos2d::CCDictionary::removeObjectForKey_1(*(_QWORD *)(a1 + 3688), v6);
}
cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 3696), *(unsigned int *)(a2 + 916));
if ( !v9 )
goto LABEL_13;
v10 = v9;
if ( (unsigned int)sub_1002E757C(v9) )
{
v11 = 0;
while ( *(_DWORD *)(sub_1002E75A0(v10, v11) + 56) != a3 )
{
v11 = (unsigned int)(v11 + 1);
if ( (unsigned int)v11 >= (unsigned int)sub_1002E757C(v10) )
goto LABEL_12;
}
sub_1002E7664(v10, v11, 1);
}
LABEL_12:
if ( !(unsigned int)sub_1002E757C(v10) )
LABEL_13:
*(_BYTE *)(a2 + 1170) = 0;
}
}