//
// sub_10091E3E0 from 0x10091e3e0 to 0x10091e4c5 (229 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b93de8
//
// 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 sub_10091E3E0()
{
__int64 v0; // rax
int v1; // eax
__int64 v2; // rax
void **v3; // r14
__int64 v4; // rax
__int128 v5; // [rsp+0h] [rbp-40h] BYREF
char *v6; // [rsp+10h] [rbp-30h] BYREF
__int128 v7[2]; // [rsp+18h] [rbp-28h] BYREF
v0 = GJKeybindManager::sharedState();
v1 = GJKeybindManager::exportBindingsToFile(v0);
if ( v1 > 0 )
{
strcpy((char *)v7, "$Bindings exported.");
v2 = sub_100493AB0(0, (__int64)"Keybinds", v7, (__int64)"OK", 0);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 1312LL))(v2);
if ( (v7[0] & 1) == 0 )
return;
v3 = (void **)&v7[1];
goto LABEL_4;
}
if ( v1 < 0 )
{
v3 = (void **)&v6;
v6 = (char *)operator new(0x20u);
*(_QWORD *)&v5 = 33;
*((_QWORD *)&v5 + 1) = 25;
strcpy(v6, "Could not write the file.");
v4 = sub_100493AB0(0, (__int64)"Export Failed", &v5, (__int64)"OK", 0);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 1312LL))(v4);
if ( (v5 & 1) != 0 )
LABEL_4:
operator delete(*v3);
}
}