//
// GJBaseGameLayer::getSingleGroupObject from 0x590a90 to 0x590ab6 (38 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::tryGetMainObject @ 0x590bbc
// > GJBaseGameLayer::setupLevelStart @ 0x5b9e78
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:53:05 +0000
//
int __fastcall GJBaseGameLayer::getSingleGroupObject(GJBaseGameLayer *this, int a2)
{
cocos2d::CCObject *Group; // r0
cocos2d::CCArray *v3; // r4
if ( a2 > 0
&& (Group = GJBaseGameLayer::getGroup(this, a2), (v3 = Group) != nullptr)
&& cocos2d::CCArray::count(Group) == 1 )
{
return cocos2d::CCArray::objectAtIndex(v3, 0);
}
else
{
return 0;
}
}