//
// LevelBindingsLayer::onClear from 0x14044d090 to 0x14044d19f (271 bytes)
//
// 2 xrefs:
// > LevelBindingsLayer::settingsEntries @ 0x14044c4f7
// > ??> @ 0x140927554
//
// 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:25 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall LevelBindingsLayer::onClear(_QWORD *a1)
{
__int64 v2; // rsi
_QWORD *v3; // rbx
__int64 v4; // rbx
__int64 v5; // rdx
__int64 v6; // r8
cocos2d::CCNode *v7; // rax
char v9[8]; // [rsp+30h] [rbp-48h] BYREF
__int64 v10; // [rsp+38h] [rbp-40h]
__int64 v11; // [rsp+40h] [rbp-38h]
__int64 v12; // [rsp+48h] [rbp-30h]
__int128 v13; // [rsp+50h] [rbp-28h] BYREF
__int64 v14; // [rsp+60h] [rbp-18h]
__int64 v15; // [rsp+68h] [rbp-10h]
v2 = a1[148];
v3 = *(_QWORD **)(v2 + 8);
sub_14038D0E0(v2 + 8, v2 + 8, v3[1]);
v3[1] = v3;
*v3 = v3;
v3[2] = v3;
*(_QWORD *)(v2 + 16) = 0;
*(_BYTE *)(v2 + 24) = 1;
(*(void (__fastcall **)(_QWORD *))(*a1 + 1056LL))(a1);
v13 = 0;
v14 = 0;
v15 = 15;
LOBYTE(v13) = 0;
v10 = 0;
v11 = 7;
v12 = 15;
strcpy(v9, "Cleared");
v4 = *a1;
v7 = TextAlertPopup::create((__int64)v9, v5, v6, 150, (__int64)&v13);
return (*(__int64 (__fastcall **)(_QWORD *, cocos2d::CCNode *, __int64))(v4 + 456))(a1, v7, 100);
}