//
// sub_10091F000 from 0x10091f000 to 0x10091f0d7 (215 bytes)
//
// 1 xrefs:
// > LevelBindingsLayer::settingsEntries @ 0x10091eeb0
//
// 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 12:38:15 +0000
//
void __fastcall sub_10091F000(__int64 a1)
{
__int64 v2; // r14
__int64 v3; // rdi
char *v4; // rax
__int128 v5; // [rsp+8h] [rbp-48h] BYREF
void *__p; // [rsp+18h] [rbp-38h]
__int128 v7; // [rsp+20h] [rbp-30h] BYREF
void *v8; // [rsp+30h] [rbp-20h]
v2 = *(_QWORD *)(a1 + 1192);
sub_100378140(v2 + 8, *(_QWORD **)(v2 + 16));
*(_QWORD *)(v2 + 8) = v2 + 16;
*(_OWORD *)(v2 + 16) = 0;
*(_BYTE *)(v2 + 32) = 1;
v3 = *(_QWORD *)(a1 + 1192);
if ( *(_BYTE *)(a1 + 1200) == 1 )
LevelControlConfig::bindDefaultController(v3);
else
LevelControlConfig::bindDefaultKeyboard(v3);
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1304LL))(a1);
strcpy((char *)&v7, "\nReset");
LOWORD(v5) = 0;
v4 = TextAlertPopup::create(&v7, 0x96u, &v5, 0.5, 0.60000002);
(*(void (__fastcall **)(__int64, char *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v4, 100);
if ( (v5 & 1) != 0 )
operator delete(__p);
if ( (v7 & 1) != 0 )
operator delete(v8);
}