//
// LevelBindingsLayer::onClear from 0xcf1a0c to 0xcf1b54 (328 bytes)
//
// 3 xrefs:
// > ??> @ 0xe12e0
// > LevelBindingsLayer::settingsEntries @ 0xcf1184
// > ??> @ 0x1546c18
//
// 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:06:45 +0000
//
__int64 __fastcall LevelBindingsLayer::onClear(LevelBindingsLayer *this, cocos2d::CCObject *a2)
{
__int64 v3; // x23
__int64 v4; // x3
void (__fastcall *v5)(LevelBindingsLayer *, __int64, __int64); // x23
__int64 v6; // x0
__int64 v8[2]; // [xsp+48h] [xbp+48h] BYREF
void *v9; // [xsp+58h] [xbp+58h]
__int64 v10[2]; // [xsp+60h] [xbp+60h] BYREF
void *v11; // [xsp+70h] [xbp+70h]
v3 = *((_QWORD *)this + 149);
std::__tree>,std::__map_value_compare>,std::less,true>,std::allocator>>>::clear((_QWORD *)(v3 + 8));
*(_BYTE *)(v3 + 32) = 1;
(*(void (__fastcall **)(LevelBindingsLayer *))(*(_QWORD *)this + 1304LL))(this);
v8[0] = 0;
v4 = *(_QWORD *)this;
v8[1] = 0;
v5 = *(void (__fastcall **)(LevelBindingsLayer *, __int64, __int64))(v4 + 464);
v9 = nullptr;
std::string::__init(v8, "Cleared", 7u);
v10[0] = 0;
v10[1] = 0;
v11 = nullptr;
std::string::__init(v10, &byte_11B8890, 0);
v6 = TextAlertPopup::create((char *)v8, 150, (char *)v10, 0.5, 0.6);
v5(this, v6, 100);
if ( (v10[0] & 1) != 0 )
operator delete(v11);
if ( (v8[0] & 1) != 0 )
operator delete(v9);
return _stack_chk_guard;
}