//
// OptionsScrollLayer::getRelevantObjects from 0x6bdc34 to 0x6bde06 (466 bytes)
//
// 1 xrefs:
// > OptionsScrollLayer::setupList @ 0x6bde60
//
// 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:56:48 +0000
//
cocos2d::CCArray *__fastcall OptionsScrollLayer::getRelevantObjects(OptionsScrollLayer *this, cocos2d::CCArray *a2)
{
cocos2d::CCArray *v4; // r6
int v5; // r5
int v6; // r4
char *v7; // r3
char *v8; // r7
char *v9; // r3
int v10; // r0
_DWORD *v12; // r3
int *v13; // r5
int v14; // r4
int v15; // t1
int v16; // r3
int v17; // r9
int v18; // r8
char *v19; // r3
char *v20; // r10
char *v21; // r3
int v22; // r0
unsigned __int8 *v23; // r0
int v24; // r2
unsigned __int8 *v25; // r1
int v26; // r3
char *v27; // lr
unsigned __int8 *v28; // r12
char *v29; // r2
int v30; // r9
unsigned __int8 *v31; // r8
char *v32; // r9
int v33; // t1
int *v34; // [sp+4h] [bp-30h]
int v35; // [sp+14h] [bp-20h] BYREF
int v36; // [sp+18h] [bp-1Ch]
char *v37; // [sp+1Ch] [bp-18h]
int v38; // [sp+20h] [bp-14h] BYREF
int v39; // [sp+24h] [bp-10h]
char *v40; // [sp+28h] [bp-Ch]
v4 = (cocos2d::CCArray *)cocos2d::CCArray::create(this);
std::string::basic_string(&v35, (int)this + 548);
v5 = 0;
if ( (v35 & 1) != 0 )
v6 = v36;
else
v6 = (int)(unsigned __int8)v35 >> 1;
while ( v5 != v6 )
{
if ( (v35 & 1) != 0 )
v7 = v37;
else
v7 = (char *)&v35 + 1;
v8 = &v7[v5];
if ( (v35 & 1) != 0 )
v9 = v37;
else
v9 = (char *)&v35 + 1;
v10 = (unsigned __int8)v9[v5++];
*v8 = tolower(v10);
}
if ( a2 )
{
v12 = *((_DWORD **)a2 + 13);
if ( *v12 )
{
v13 = (int *)v12[3];
v34 = &v13[*v12 - 1];
while ( v13 <= v34 )
{
v15 = *v13++;
v14 = v15;
if ( !v15 )
break;
if ( (v35 & 1) != 0 )
v16 = v36;
else
v16 = (int)(unsigned __int8)v35 >> 1;
if ( v16 )
{
std::string::basic_string(&v38, v14 + 60);
v17 = 0;
if ( (v38 & 1) != 0 )
v18 = v39;
else
v18 = (int)(unsigned __int8)v38 >> 1;
while ( v17 != v18 )
{
if ( (v38 & 1) != 0 )
v19 = v40;
else
v19 = (char *)&v38 + 1;
v20 = &v19[v17];
if ( (v38 & 1) != 0 )
v21 = v40;
else
v21 = (char *)&v38 + 1;
v22 = (unsigned __int8)v21[v17++];
*v20 = tolower(v22);
}
if ( (v38 & 1) != 0 )
{
v23 = (unsigned __int8 *)v40;
v24 = v39;
}
else
{
v24 = (int)(unsigned __int8)v38 >> 1;
v23 = (unsigned __int8 *)&v38 + 1;
}
if ( (v35 & 1) != 0 )
{
v25 = (unsigned __int8 *)v37;
v26 = v36;
}
else
{
v26 = (int)(unsigned __int8)v35 >> 1;
v25 = (unsigned __int8 *)&v35 + 1;
}
if ( v24 >= (unsigned int)v26 )
{
if ( !v26 )
goto LABEL_39;
v27 = (char *)&v23[v24];
if ( v24 >= v26 )
{
v28 = v23;
LABEL_42:
while ( 1 )
{
v29 = (char *)v28;
if ( v28 == (unsigned __int8 *)&v27[1 - v26] )
break;
v30 = *v28++;
if ( v30 == *v25 )
{
v31 = v25;
v32 = v29;
while ( ++v31 != &v25[v26] )
{
v33 = (unsigned __int8)*++v32;
if ( v33 != *v31 )
goto LABEL_42;
}
goto LABEL_49;
}
}
}
v29 = v27;
LABEL_49:
if ( v29 != v27 && v29 - (char *)v23 != -1 )
LABEL_39:
cocos2d::CCArray::addObject(v4, (cocos2d::CCObject *)v14);
}
std::string::~string((int)&v38);
}
else if ( *(int *)(v14 + 80) > 0 || *(_BYTE *)(v14 + 56) )
{
cocos2d::CCArray::addObject(v4, (cocos2d::CCObject *)v14);
}
}
}
}
std::string::~string((int)&v35);
return v4;
}