//
// KeybindingsSettingsPopup::FLAlert_Clicked from 0x796ea4 to 0x796f56 (178 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'KeybindingsSettingsPopup::FLAlert_Clicked @ 0x796f60
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:59:46 +0000
//
int __fastcall KeybindingsSettingsPopup::FLAlert_Clicked(KeybindingsSettingsPopup *this, FLAlertLayer *a2, int a3)
{
int v4; // r12
int v6; // r1
int v7; // r2
int v8; // r7
GJKeybindManager *v9; // r0
FLAlertLayer *v10; // r0
GJKeybindManager *v11; // r0
int v13; // [sp+4h] [bp-1Ch] BYREF
int v14; // [sp+8h] [bp-18h]
int v15; // [sp+Ch] [bp-14h]
int v16; // [sp+10h] [bp-10h]
int v17; // [sp+14h] [bp-Ch]
int v18; // [sp+18h] [bp-8h]
v4 = *((_DWORD *)this + 135);
v13 = 0;
v14 = 0;
v15 = 0;
v16 = 0;
v17 = 0;
v18 = 0;
v6 = *((_DWORD *)this + 137);
v7 = *((_DWORD *)this + 138);
v13 = *((_DWORD *)this + 136);
v14 = v6;
v15 = v7;
*((_DWORD *)this + 136) = 0;
*((_DWORD *)this + 137) = 0;
*((_DWORD *)this + 138) = 0;
*((_DWORD *)this + 135) = 0;
v8 = *((_DWORD *)this + 139);
*((_DWORD *)this + 139) = 0;
if ( a3 )
{
if ( v4 == 1 )
{
v9 = (GJKeybindManager *)GJKeybindManager::sharedState(nullptr);
GJKeybindManager::loadDefaults(v9);
}
else
{
if ( v4 != 2 )
return std::string::~string((int)&v13);
v11 = (GJKeybindManager *)GJKeybindManager::sharedState(nullptr);
GJKeybindManager::applyImportBlob(v11, (unsigned __int8 *)&v13, v8);
}
v10 = *((FLAlertLayer **)this + 131);
if ( v10 )
FLAlertLayer::requestRebuild(v10);
KeybindingsSettingsPopup::onClose(this, nullptr);
}
return std::string::~string((int)&v13);
}