//
// KeybindingsLayer::onAddBinding from 0x1403d7d50 to 0x1403d7da2 (82 bytes)
//
// 2 xrefs:
// > KeybindingsLayer::buildContentForTab @ 0x1403d6da1
// > ??> @ 0x140924a70
//
// 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:37 +0000
//
__int64 __fastcall KeybindingsLayer::onAddBinding(_QWORD *a1, __int64 a2)
{
unsigned int v3; // eax
__int64 v4; // rcx
unsigned int v5; // edi
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);
v4 = a1[137];
v5 = v3;
if ( v4 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 1032LL))(v4, 0);
return (*(__int64 (__fastcall **)(_QWORD *, _QWORD, _QWORD))(*a1 + 1232LL))(a1, v5, 0);
}