//
// LevelBindingsLayer::onReset from 0x14044ce30 to 0x14044cf4f (287 bytes)
//
// 2 xrefs:
// > LevelBindingsLayer::settingsEntries @ 0x14044c49e
// > ??> @ 0x14092753c
//
// 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::onReset(__int64 *a1)
{
__int64 v2; // rsi
_QWORD *v3; // rbx
__int64 v4; // rcx
__int64 v5; // rbx
__int64 v6; // rdx
__int64 v7; // r8
cocos2d::CCNode *v8; // rax
__int128 v10; // [rsp+30h] [rbp-48h] BYREF
__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;
v4 = a1[148];
if ( *((_BYTE *)a1 + 1192) )
LevelControlConfig::bindDefaultController(v4);
else
LevelControlConfig::bindDefaultKeyboard(v4);
(*(void (__fastcall **)(__int64 *))(*a1 + 1056))(a1);
v13 = 0;
v14 = 0;
v15 = 15;
LOBYTE(v13) = 0;
v10 = 0;
v11 = 5;
v12 = 15;
LODWORD(v10) = *(_DWORD *)"Reset";
WORD2(v10) = (unsigned __int8)aReset[4];
v5 = *a1;
v8 = TextAlertPopup::create((__int64)&v10, v6, v7, 150, (__int64)&v13);
return (*(__int64 (__fastcall **)(__int64 *, cocos2d::CCNode *, __int64))(v5 + 456))(a1, v8, 100);
}