//
// sub_1004EF28C from 0x1004ef28c to 0x1004ef360 (212 bytes)
//
// 1 xrefs:
// > LevelBindingsLayer::settingsEntries @ 0x1004ef094
//
// 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 11:06:44 +0000
//
void __fastcall sub_1004EF28C(__int64 a1)
{
_QWORD *v2; // x20
_QWORD *v3; // t1
_QWORD *v4; // x0
void *__p[2]; // [xsp+0h] [xbp-40h] BYREF
char v6; // [xsp+17h] [xbp-29h]
void *v7[2]; // [xsp+18h] [xbp-28h] BYREF
char v8; // [xsp+2Fh] [xbp-11h]
v2 = *(_QWORD **)(a1 + 1192);
v3 = (_QWORD *)v2[2];
v2 += 2;
sub_10018E328((__int64)(v2 - 1), v3);
*v2 = 0;
v2[1] = 0;
*(v2 - 1) = v2;
*((_BYTE *)v2 + 16) = 1;
LevelControlConfig::bindGlobalBinds(*(_QWORD *)(a1 + 1192), *(unsigned __int8 *)(a1 + 1200));
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1304LL))(a1);
sub_100009900(v7, "Global controls applied");
sub_100009900(__p, "");
v4 = TextAlertPopup::create((__int64)v7, 150, (__int64)__p, 0.5, 0.6);
(*(void (__fastcall **)(__int64, _QWORD *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v4, 100);
if ( v6 < 0 )
operator delete(__p[0]);
if ( v8 < 0 )
operator delete(v7[0]);
}