//
// KeybindCapturePopup::inputKeySelected from 0x1005b5060 to 0x1005b513b (219 bytes)
//
// 2 xrefs:
// > sub_1005B5140 @ 0x1005b514c
// > ??> @ 0x100b7dd18
//
// 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 12:32:40 +0000
//
void __fastcall KeybindCapturePopup::inputKeySelected(__int64 a1, __int64 a2)
{
__int64 v2; // rax
unsigned int v3; // ecx
if ( *(_BYTE *)(a1 + 1053) == 1 && *(_DWORD *)(a1 + 1048) == (_DWORD)a2 )
{
if ( (_DWORD)a2 )
{
v2 = *(_QWORD *)(a1 + 1024);
if ( v2 )
{
if ( !*(_BYTE *)(a1 + 1056) )
{
if ( !*(_BYTE *)(a1 + 1052) )
{
v3 = *(_DWORD *)(a1 + 1044);
if ( v3 != 0 && v3 != (_DWORD)a2 )
{
(*(void (__fastcall **)(__int64, _QWORD, _QWORD))(*(_QWORD *)v2 + 40LL))(
v2,
v3,
*(unsigned int *)(a1 + 1040));
v2 = *(_QWORD *)(a1 + 1024);
a2 = *(unsigned int *)(a1 + 1048);
}
}
(*(void (__fastcall **)(__int64, __int64, _QWORD))(*(_QWORD *)v2 + 32LL))(
v2,
a2,
*(unsigned int *)(a1 + 1040));
if ( *(_QWORD *)(a1 + 1064) )
sub_10097D2E0(*(_QWORD *)(a1 + 1064));
if ( *(_QWORD *)(a1 + 1032) )
sub_100495650(*(_QWORD *)(a1 + 1032));
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1368LL))(a1, 0);
}
}
}
}
else
{
*(_DWORD *)(a1 + 1048) = a2;
*(_BYTE *)(a1 + 1053) = 1;
KeybindCapturePopup::updateChordDisplay(a1);
}
}