//
// KeybindingsSettingsPopup::FLAlert_Clicked from 0x1004eebc0 to 0x1004eec88 (200 bytes)
//
// 2 xrefs:
// > sub_1004EECA4 @ 0x1004eeca8
// > ??> @ 0x100993798
//
// 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 KeybindingsSettingsPopup::FLAlert_Clicked(__int64 a1, __int64 a2, int a3)
{
int v3; // w8
int v4; // w20
__int64 v6; // x0
__int64 v7; // x0
__int64 v8; // x0
std::string __p; // [xsp+0h] [xbp-30h] BYREF
v3 = *(_DWORD *)(a1 + 704);
__p = *(std::string *)(a1 + 712);
*(_QWORD *)(a1 + 712) = 0;
*(_QWORD *)(a1 + 728) = 0;
*(_QWORD *)(a1 + 720) = 0;
v4 = *(_DWORD *)(a1 + 736);
*(_DWORD *)(a1 + 704) = 0;
*(_DWORD *)(a1 + 736) = 0;
if ( !a3 )
goto LABEL_9;
if ( v3 == 2 )
{
v7 = GJKeybindManager::sharedState();
GJKeybindManager::applyImportBlob(v7, &__p, v4);
}
else
{
if ( v3 != 1 )
goto LABEL_9;
v6 = GJKeybindManager::sharedState();
GJKeybindManager::loadDefaults(v6);
}
v8 = *(_QWORD *)(a1 + 672);
if ( v8 )
FLAlertLayer::requestRebuild(v8);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 528LL))(a1, 1);
LABEL_9:
if ( SHIBYTE(__p.__r_.__value_.__r.__words[2]) < 0 )
operator delete(__p.__r_.__value_.__l.__data_);
}