//
// GJBaseGameLayer::getSingleGroupObject from 0x10013d430 to 0x10013d4b9 (137 bytes)
//
// 0 xrefs:
//
// 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
//
// local variable allocation has failed, the output may be wrong!
GameObject *__fastcall GJBaseGameLayer::getSingleGroupObject(GJBaseGameLayer *a1, int a2)
{
intptr_t v2; // r14
cocos2d::CCArray *v3; // rbx
if ( a2 <= 0 )
return nullptr;
v2 = 9999;
if ( (unsigned int)a2 < 0x270F )
v2 = (unsigned int)a2;
if ( ((v3 = a1->m_groups.__begin_[v2]) != nullptr
|| (v3 = (cocos2d::CCArray *)sub_10071F9E0(a1, *(_QWORD *)&a2),
cocos2d::CCDictionary::setObject(a1->m_groupDict, v3, v2),
(a1->m_groups.__begin_[v2] = v3) != nullptr))
&& (unsigned int)sub_100720070(v3) == 1 )
{
return (GameObject *)sub_1007200C0(v3, 0);
}
else
{
return nullptr;
}
}