//
// sub_1004EF174 from 0x1004ef174 to 0x1004ef258 (228 bytes)
//
// 1 xrefs:
// > LevelBindingsLayer::settingsEntries @ 0x1004ef068
//
// 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_1004EF174(__int64 a1)
{
_QWORD *v2; // x20
_QWORD *v3; // t1
__int64 v4; // x0
_QWORD *v5; // x0
void *__p[2]; // [xsp+0h] [xbp-40h] BYREF
char v7; // [xsp+17h] [xbp-29h]
void *v8[2]; // [xsp+18h] [xbp-28h] BYREF
char v9; // [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;
v4 = *(_QWORD *)(a1 + 1192);
if ( *(_BYTE *)(a1 + 1200) == 1 )
LevelControlConfig::bindDefaultController(v4);
else
LevelControlConfig::bindDefaultKeyboard(v4);
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1304LL))(a1);
sub_100009900(v8, "Reset");
sub_100009900(__p, "");
v5 = TextAlertPopup::create((__int64)v8, 150, (__int64)__p, 0.5, 0.6);
(*(void (__fastcall **)(__int64, _QWORD *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v5, 100);
if ( v7 < 0 )
operator delete(__p[0]);
if ( v9 < 0 )
operator delete(v8[0]);
}