//
// SetGroupIDLayer::onAddGroupParent from 0xabab74 to 0xabac28 (180 bytes)
//
// 3 xrefs:
// > ??> @ 0x478f0
// > SetGroupIDLayer::init @ 0xabf974
// > ??> @ 0x15415e0
//
// 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 13:01:01 +0000
//
GameObject *__fastcall SetGroupIDLayer::onAddGroupParent(SetGroupIDLayer *this, cocos2d::CCObject *a2)
{
GameObject *result; // x0
__int64 v4; // x0
__int64 v5; // x0
__int64 v6; // x0
result = *((GameObject **)this + 84);
if ( result )
{
v4 = (unsigned __int8)GameObject::belongsToGroup(result, *((_DWORD *)this + 191));
if ( (_BYTE)v4 )
goto LABEL_3;
v4 = (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 84) + 1600LL))(
*((_QWORD *)this + 84),
*((unsigned int *)this + 191));
if ( (_DWORD)v4 == 1 )
{
v6 = GameManager::sharedState((GameManager *)v4);
v4 = (*(__int64 (__fastcall **)(_QWORD, _QWORD, _QWORD, _QWORD))(**(_QWORD **)(v6 + 552) + 1352LL))(
*(_QWORD *)(v6 + 552),
*((_QWORD *)this + 84),
*((unsigned int *)this + 191),
0);
goto LABEL_3;
}
if ( (_DWORD)v4 )
{
LABEL_3:
v5 = GameManager::sharedState((GameManager *)v4);
GJBaseGameLayer::promoteGroupParent(
*(cocos2d::CCDictionary ***)(v5 + 552),
*((cocos2d::CCDictionary ***)this + 84),
*((_DWORD *)this + 191));
return (GameObject *)SetGroupIDLayer::updateGroupIDButtons((cocos2d::CCArray **)this);
}
return (GameObject *)SetGroupIDLayer::updateGroupIDButtons((cocos2d::CCArray **)this);
}
return result;
}