//
// GJBaseGameLayer::getCenterGroupObject from 0x85d870 to 0x85d8d8 (104 bytes)
//
// 1 xrefs:
// > ??> @ 0xae138
//
// 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; // w19
cocos2d::CCArray *Group; // x0
cocos2d::CCArray *v6; // x20
if ( a2 <= 0 )
v3 = a3;
else
v3 = a2;
Group = GJBaseGameLayer::getGroup(a1, v3);
v6 = Group;
if ( Group && (unsigned int)cocos2d::CCArray::count(Group) == 1 )
return (GameObject *)cocos2d::CCArray::objectAtIndex(v6, 0);
else
return GJBaseGameLayer::getGroupParent(a1, v3);
}