//
// GJBaseGameLayer::getSingleGroupObject from 0x85d7b0 to 0x85d800 (80 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::tryGetMainObject @ 0x85d9c8
// > ??> @ 0x9a140
//
// 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::getSingleGroupObject(GJBaseGameLayer *a1, int a2)
{
cocos2d::CCArray *Group; // x0
cocos2d::CCArray *v3; // x19
if ( a2 > 0
&& (Group = GJBaseGameLayer::getGroup(a1, a2), (v3 = Group) != nullptr)
&& (unsigned int)cocos2d::CCArray::count(Group) == 1 )
{
return (GameObject *)cocos2d::CCArray::objectAtIndex(v3, 0);
}
else
{
return nullptr;
}
}