//
// KeybindingsSettingsPopup::FLAlert_Clicked from 0xcefbd4 to 0xcefce4 (272 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'KeybindingsSettingsPopup::FLAlert_Clicked @ 0xcefce8
// > ??> @ 0x91cf0
// > ??> @ 0x1503990
//
// 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 13:06:45 +0000
//
__int64 __fastcall KeybindingsSettingsPopup::FLAlert_Clicked(KeybindingsSettingsPopup *this, FLAlertLayer *a2, char a3)
{
__int64 *v4; // x0
__int64 v5; // x6
__int64 v6; // x7
void *v7; // x1
int v8; // w8
GJKeybindManager *v9; // x0
int v10; // w22
GJKeybindManager *v12; // x0
FLAlertLayer *v13; // x0
GJKeybindManager *v14; // x0
__int64 v15; // [xsp+38h] [xbp+38h] BYREF
__int64 v16; // [xsp+40h] [xbp+40h]
void *v17; // [xsp+48h] [xbp+48h]
__int64 v18; // [xsp+50h] [xbp+50h]
__int64 v19; // [xsp+58h] [xbp+58h]
__int64 v20; // [xsp+60h] [xbp+60h]
v4 = (__int64 *)((char *)this + 712);
v15 = 0;
v16 = 0;
v5 = *v4;
v6 = v4[1];
v7 = *((void **)this + 91);
*((_QWORD *)this + 91) = 0;
v8 = *((_DWORD *)this + 176);
*v4 = 0;
v4[1] = 0;
v17 = v7;
v9 = (GJKeybindManager *)_stack_chk_guard;
v10 = *((_DWORD *)this + 184);
v18 = 0;
v19 = 0;
v20 = 0;
*((_DWORD *)this + 176) = 0;
*((_DWORD *)this + 184) = 0;
v15 = v5;
v16 = v6;
if ( a3 )
{
if ( v8 == 1 )
{
v12 = (GJKeybindManager *)GJKeybindManager::sharedState(v9);
GJKeybindManager::loadDefaults(v12);
}
else
{
if ( v8 != 2 )
goto LABEL_4;
v14 = (GJKeybindManager *)GJKeybindManager::sharedState(v9);
GJKeybindManager::applyImportBlob(v14, (__int64)&v15, v10);
}
v13 = *((FLAlertLayer **)this + 84);
if ( v13 )
FLAlertLayer::requestRebuild(v13);
KeybindingsSettingsPopup::onClose(this, nullptr);
}
LABEL_4:
if ( (v15 & 1) != 0 )
operator delete(v17);
return _stack_chk_guard;
}