//
// LevelBindingsLayer::onApplyGlobal from 0x14044cf50 to 0x14044d083 (307 bytes)
//
// 2 xrefs:
// > LevelBindingsLayer::settingsEntries @ 0x14044c4cc
// > ??> @ 0x140927548
//
// 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::onApplyGlobal(__int64 *a1)
{
__int64 v2; // rsi
_QWORD *v3; // rbx
__int64 v4; // rbx
__int64 v5; // rdx
__int64 v6; // r8
cocos2d::CCNode *v7; // rax
__int128 v9; // [rsp+30h] [rbp-58h] BYREF
__int64 v10; // [rsp+40h] [rbp-48h]
__int64 v11; // [rsp+48h] [rbp-40h]
__int128 v12; // [rsp+50h] [rbp-38h] BYREF
__int64 v13; // [rsp+60h] [rbp-28h]
__int64 v14; // [rsp+68h] [rbp-20h]
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;
LevelControlConfig::bindGlobalBinds(a1[148], *((_BYTE *)a1 + 1192));
(*(void (__fastcall **)(__int64 *))(*a1 + 1056))(a1);
v12 = 0;
v13 = 0;
v14 = 15;
LOBYTE(v12) = 0;
v9 = 0;
*(_QWORD *)&v9 = sub_14003D460(0x20u);
v10 = 23;
v11 = 31;
strcpy((char *)v9, "Global controls applied");
v4 = *a1;
v7 = TextAlertPopup::create((__int64)&v9, v5, v6, 150, (__int64)&v12);
return (*(__int64 (__fastcall **)(__int64 *, cocos2d::CCNode *, __int64))(v4 + 456))(a1, v7, 100);
}