//
// GJBaseGameLayer::getCenterGroupObject from 0x9a0bec to 0x9a0c54 (104 bytes)
//
// 1 xrefs:
// > ??> @ 0xe3d58
//
// 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 12:58:06 +0000
//
__int64 __fastcall GJBaseGameLayer::getCenterGroupObject(GJBaseGameLayer *this, int a2, int a3)
{
int v3; // w19
cocos2d::CCObject *Group; // x0
cocos2d::CCArray *v6; // x20
if ( a2 <= 0 )
v3 = a3;
else
v3 = a2;
Group = GJBaseGameLayer::getGroup(this, v3);
v6 = Group;
if ( Group && (unsigned int)cocos2d::CCArray::count(Group) == 1 )
return cocos2d::CCArray::objectAtIndex(v6, 0);
else
return GJBaseGameLayer::getGroupParent((cocos2d::CCDictionary **)this, v3);
}