//
// OptionsScrollLayer::getRelevantObjects from 0x5827ea to 0x582832 (72 bytes)
//
// 1 xrefs:
// > OptionsScrollLayer::setupList @ 0x582888
//
// 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 *v4; // r6
cocos2d::ccArray *data; // r2
cocos2d::CCObject **arr; // r5
cocos2d::CCObject **v7; // r4
int v8; // r1
int v9; // t1
v4 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)a1);
if ( a2 )
{
data = a2->data;
if ( data->num )
{
arr = data->arr;
v7 = &arr[data->num] + 0x3FFFFFFF;
while ( arr <= v7 )
{
v9 = (int)*arr++;
v8 = v9;
if ( !v9 )
break;
if ( *(_DWORD *)(v8 + 68) > a1->m_minCount || *(_BYTE *)(v8 + 56) )
cocos2d::CCArray::addObject(v4, (cocos2d::CCObject *)v8);
}
}
}
return v4;
}