//
// sub_1004EE760 from 0x1004ee760 to 0x1004ee834 (212 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008afba0
//
// 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 sub_1004EE760()
{
__int64 v0; // x0
int v1; // w0
__int64 v2; // x0
void **v3; // x8
__int64 v4; // x0
_QWORD v5[2]; // [xsp+0h] [xbp-40h] BYREF
char v6; // [xsp+17h] [xbp-29h]
_QWORD v7[2]; // [xsp+18h] [xbp-28h] BYREF
char v8; // [xsp+2Fh] [xbp-11h]
v0 = GJKeybindManager::sharedState();
v1 = GJKeybindManager::exportBindingsToFile(v0);
if ( v1 < 1 )
{
if ( v1 < 0 )
{
sub_100009900(v5, "Could not write the file.");
v4 = sub_10034A8F8(0, (__int64)"Export Failed", (__int64)v5, (__int64)"OK", 0);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 1312LL))(v4);
if ( v6 < 0 )
{
v3 = (void **)v5;
goto LABEL_4;
}
}
}
else
{
sub_100009900(v7, "Bindings exported.");
v2 = sub_10034A8F8(0, (__int64)"Keybinds", (__int64)v7, (__int64)"OK", 0);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v2 + 1312LL))(v2);
if ( v8 < 0 )
{
v3 = (void **)v7;
LABEL_4:
operator delete(*v3);
}
}
}