//
// GJBaseGameLayer::getSingleGroupObject from 0x9a0aec to 0x9a0b3c (80 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::tryGetMainObject @ 0x9a0d78
// > GJBaseGameLayer::setupLevelStart @ 0x9e8324
// > ??> @ 0xcb3c8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:58:06 +0000
//
__int64 __fastcall GJBaseGameLayer::getSingleGroupObject(GJBaseGameLayer *this, int a2)
{
cocos2d::CCObject *Group; // x0
cocos2d::CCArray *v3; // x19
if ( a2 > 0
&& (Group = GJBaseGameLayer::getGroup(this, a2), (v3 = Group) != nullptr)
&& (unsigned int)cocos2d::CCArray::count(Group) == 1 )
{
return cocos2d::CCArray::objectAtIndex(v3, 0);
}
else
{
return 0;
}
}