//
// GJBaseGameLayer::getCenterGroupObject from 0x590b0c to 0x590b40 (52 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:53:05 +0000
//
int __fastcall GJBaseGameLayer::getCenterGroupObject(GJBaseGameLayer *this, int a2, int a3)
{
int v3; // r4
cocos2d::CCObject *Group; // r0
cocos2d::CCArray *v6; // r6
v3 = a2;
if ( a2 <= 0 )
v3 = a3;
Group = GJBaseGameLayer::getGroup(this, v3);
v6 = Group;
if ( Group && cocos2d::CCArray::count(Group) == 1 )
return cocos2d::CCArray::objectAtIndex(v6, 0);
else
return GJBaseGameLayer::getGroupParent((cocos2d::CCDictionary **)this, v3);
}