//
// GJBaseGameLayer::getCenterGroupObject from 0x471088 to 0x4710bc (52 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
GameObject *GJBaseGameLayer::getCenterGroupObject(GJBaseGameLayer *a1, int a2, int a3)
{
int v3; // r4
cocos2d::CCArray *Group; // r0
cocos2d::CCArray *v6; // r6
v3 = a2;
if ( a2 <= 0 )
v3 = a3;
Group = GJBaseGameLayer::getGroup(a1, v3);
v6 = Group;
if ( Group && cocos2d::CCArray::count(Group) == 1 )
return (GameObject *)cocos2d::CCArray::objectAtIndex(v6, 0);
else
return GJBaseGameLayer::getGroupParent(a1, v3);
}