//
// GJBaseGameLayer::getSingleGroupObject from 0x1001f2794 to 0x1001f27e4 (80 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::tryGetMainObject @ 0x1001ea7d8
//
// 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 *__fastcall GJBaseGameLayer::getSingleGroupObject(GJBaseGameLayer *a1, int a2)
{
cocos2d::CCArray *Group; // x0
cocos2d::CCArray *v3; // x19
if ( a2 >= 1
&& (Group = GJBaseGameLayer::getGroup(a1, a2)) != nullptr
&& (v3 = Group, (unsigned int)sub_10024A36C(Group) == 1) )
{
return (GameObject *)sub_10024A388(v3, 0);
}
else
{
return nullptr;
}
}