//
// GJBaseGameLayer::promoteGroupParent from 0x10028e47c to 0x10028e54c (208 bytes)
//
// 3 xrefs:
// > sub_100040DF8 @ 0x100040e6c
// > GJBaseGameLayer::addToGroupParents @ 0x10028e92c
// > GJBaseGameLayer::loadGroupParentsFromString @ 0x10028ec9c
//
// 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::promoteGroupParent(__int64 a1, _DWORD *a2, int a3)
{
__int64 v6; // x0
__int64 v7; // x20
if ( a2 && a3 >= 1 )
{
cocos2d::CCDictionary::objectForKey_1(*(_QWORD *)(a1 + 3688), (unsigned int)a3);
if ( v6 && (v7 = v6, (unsigned int)sub_1002E757C(v6)) && (sub_1002E7638(v7) & 1) != 0 )
{
if ( (_DWORD *)sub_1002E75A0(v7, 0) != a2 )
{
cocos2d::CCObject::retain((__int64)a2);
sub_1002E765C(v7, a2, 1);
sub_1002E7640(v7, a2, 0);
cocos2d::CCObject::release(a2);
}
}
else
{
GJBaseGameLayer::setGroupParent(a1, (__int64)a2, a3);
}
}
}