//
// OptionsScrollLayer::onClearAll from 0x14047eef0 to 0x14047ef9f (175 bytes)
//
// 2 xrefs:
// > OptionsScrollLayer::init @ 0x14047ebd7
// > ??> @ 0x1409287b4
//
// This function is hookable on this platform (idp: pc, 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 11:32:44 +0000
//
void __fastcall OptionsScrollLayer::onClearAll(__int64 a1)
{
cocos2d::CCArray *v2; // rcx
__int64 v3; // rax
char v4; // dl
unsigned int *v5; // rcx
__int64 v6; // rax
__int64 *v7; // rcx
__int64 *v8; // r8
__int64 v9; // rax
struct cocos2d::CCObject *v10; // rax
void (__fastcall ***v11)(_QWORD, struct cocos2d::CCObject *); // rcx
v2 = *(cocos2d::CCArray **)(a1 + 672);
if ( v2 )
{
if ( cocos2d::CCArray::count(v2) )
{
v3 = *(_QWORD *)(a1 + 672);
v4 = 0;
if ( v3 )
{
v5 = *(unsigned int **)(v3 + 56);
v6 = *v5;
if ( (_DWORD)v6 )
{
v7 = *((__int64 **)v5 + 2);
v8 = &v7[v6 - 1];
if ( v7 <= v8 )
{
do
{
v9 = *v7;
if ( !*v7 )
break;
if ( *(_BYTE *)(v9 + 60) )
{
*(_BYTE *)(v9 + 60) = 0;
v4 = 1;
}
++v7;
}
while ( v7 <= v8 );
if ( v4 )
{
v10 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 672), 0);
v11 = *((void (__fastcall ****)(_QWORD, struct cocos2d::CCObject *))v10 + 12);
if ( v11 )
(**v11)(v11, v10);
OptionsScrollLayer::setupList(a1, *(_QWORD *)(a1 + 672));
}
}
}
}
}
}
}