//
// OptionsScrollLayer::onClearAll from 0x6bdf90 to 0x6be004 (116 bytes)
//
// 0 xrefs:
//
// 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::onClearAll(OptionsScrollLayer *this, cocos2d::CCObject *a2)
{
cocos2d::CCArray *result; // r0
int v4; // r3
_DWORD *v5; // r2
int v6; // r3
cocos2d::CCArray **v7; // r2
int v8; // r1
cocos2d::CCArray **v9; // r3
cocos2d::CCArray *v10; // t1
int v11; // r1
void (__fastcall ***v12)(_DWORD, int); // r0
result = *((cocos2d::CCArray **)this + 131);
if ( result )
{
result = (cocos2d::CCArray *)cocos2d::CCArray::count(result);
if ( result )
{
v4 = *((_DWORD *)this + 131);
if ( v4 )
{
v5 = *(_DWORD **)(v4 + 52);
if ( *v5 )
{
v6 = *v5 + 0x40000000;
v7 = (cocos2d::CCArray **)v5[3];
v8 = 0;
v9 = &v7[v6 - 1];
while ( v7 <= v9 )
{
v10 = *v7++;
result = v10;
if ( !v10 )
break;
if ( *((_BYTE *)result + 56) )
{
*((_BYTE *)result + 56) = 0;
v8 = 1;
}
}
if ( v8 )
{
v11 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 131), 0);
v12 = *(void (__fastcall ****)(_DWORD, int))(v11 + 72);
if ( v12 )
(**v12)(v12, v11);
return (cocos2d::CCArray *)OptionsScrollLayer::setupList(this, *((cocos2d::CCArray **)this + 131));
}
}
}
}
}
return result;
}