//
// GJBaseGameLayer::getOptimizedGroup from 0x10013d0b0 to 0x10013d115 (101 bytes)
//
// 1 xrefs:
// > PlayLayer::addToGroupOld @ 0x1000b6da3
//
// 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!
cocos2d::CCArray *__fastcall GJBaseGameLayer::getOptimizedGroup(GJBaseGameLayer *a1, int a2)
{
int v2; // eax
intptr_t v3; // rbx
cocos2d::CCArray *result; // rax
cocos2d::CCArray *v5; // r15
v2 = 9999;
if ( a2 < 9999 )
v2 = a2;
v3 = 0;
if ( v2 > 0 )
v3 = (unsigned int)v2;
result = a1->m_optimizedGroups.__begin_[v3];
if ( !result )
{
v5 = (cocos2d::CCArray *)sub_10071F9E0(a1, *(_QWORD *)&a2);
cocos2d::CCDictionary::setObject(a1->m_optimizedGroupDict, v5, v3);
a1->m_optimizedGroups.__begin_[v3] = v5;
return v5;
}
return result;
}