//
// OptionsScrollLayer::onClearAll from 0xb84d5c to 0xb84e24 (200 bytes)
//
// 3 xrefs:
// > ??> @ 0xe7c40
// > OptionsScrollLayer::init @ 0xb88960
// > ??> @ 0x1546fd8
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 13:02:30 +0000
//
__int64 __fastcall OptionsScrollLayer::onClearAll(__int64 this, cocos2d::CCObject *a2)
{
cocos2d::CCArray **v2; // x19
unsigned int v3; // w2
__int64 *v4; // x1
__int64 v5; // x2
char *v6; // x4
__int64 v7; // x2
int v8; // w5
__int64 v9; // x1
void (__fastcall ***v10)(_QWORD, __int64); // x0
if ( *(_QWORD *)(this + 672) )
{
v2 = (cocos2d::CCArray **)this;
this = cocos2d::CCArray::count(*(cocos2d::CCArray **)(this + 672));
if ( (_DWORD)this )
{
this = (__int64)v2[84];
if ( this )
{
this = *(_QWORD *)(this + 56);
v3 = *(_DWORD *)this;
if ( *(_DWORD *)this )
{
v4 = *(__int64 **)(this + 16);
this = -8;
v5 = 8LL * v3 - 8;
v6 = (char *)v4 + v5;
if ( v4 <= (__int64 *)((char *)v4 + v5) )
{
v7 = *v4;
v8 = 0;
if ( *v4 )
{
do
{
if ( *(_BYTE *)(v7 + 60) )
{
*(_BYTE *)(v7 + 60) = 0;
v8 = 1;
}
if ( v6 < (char *)++v4 )
break;
v7 = *v4;
}
while ( *v4 );
if ( v8 )
{
v9 = cocos2d::CCArray::objectAtIndex(v2[84], 0);
v10 = *(void (__fastcall ****)(_QWORD, __int64))(v9 + 88);
if ( v10 )
(**v10)(v10, v9);
return OptionsScrollLayer::setupList((OptionsScrollLayer *)v2, v2[84]);
}
}
}
}
}
}
}
return this;
}