//
// KeybindingsLayer::onClose from 0x1403d8980 to 0x1403d89f3 (115 bytes)
//
// 2 xrefs:
// > ??> @ 0x1407865e0
// > ??> @ 0x140924b0c
//
// 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 11:31:38 +0000
//
__int64 __fastcall KeybindingsLayer::onClose(__int64 a1, __int64 a2)
{
__int64 v4; // rcx
__int64 result; // rax
__int64 v6; // rdx
__int64 v7; // rbx
__int64 v8; // rdx
__int64 v9; // rdx
v4 = *(_QWORD *)(a1 + 1096);
if ( v4 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 1032LL))(v4, 0);
result = SetupTriggerPopup::onClose(a1, a2);
v7 = *(_QWORD *)(a1 + 1072);
if ( v7 )
{
LOBYTE(v6) = 1;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 336LL))(v7, v6);
LOBYTE(v8) = 1;
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 920LL))(v7, v8);
LOBYTE(v9) = 1;
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 992LL))(v7, v9);
}
return result;
}