//
// GJBaseGameLayer::getSingleGroupObject from 0x471028 to 0x47104e (38 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::tryGetMainObject @ 0x471120
//
// 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; // r0
cocos2d::CCArray *v3; // r4
if ( a2 > 0
&& (Group = GJBaseGameLayer::getGroup(a1, a2), (v3 = Group) != nullptr)
&& cocos2d::CCArray::count(Group) == 1 )
{
return (GameObject *)cocos2d::CCArray::objectAtIndex(v3, 0);
}
else
{
return nullptr;
}
}