//
// OptionsScrollLayer::getRelevantObjects from 0xa5c404 to 0xa5c498 (148 bytes)
//
// 2 xrefs:
// > OptionsScrollLayer::setupList @ 0xa5c514
// > ??> @ 0x7fb48
//
// 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
//
cocos2d::CCArray *OptionsScrollLayer::getRelevantObjects(OptionsScrollLayer *a1, cocos2d::CCArray *a2)
{
cocos2d::CCArray *v3; // x22
cocos2d::ccArray *data; // x1
cocos2d::CCObject **arr; // x19
cocos2d::CCObject **i; // x20
cocos2d::CCObject *v7; // x1
v3 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)a1);
if ( a2 )
{
data = a2->data;
if ( data->num )
{
arr = data->arr;
for ( i = &arr[data->num - 1]; i >= arr; ++arr )
{
v7 = *arr;
if ( !*arr )
break;
if ( (signed int)v7[1].m_uAutoReleaseCount > a1->m_minCount || BYTE4(v7[1].__vftable) )
cocos2d::CCArray::addObject(v3, v7);
}
}
}
return v3;
}