//
// KeybindCapturePopup::updateChordDisplay from 0x1005b48c0 to 0x1005b4990 (208 bytes)
//
// 6 xrefs:
// > KeybindCapturePopup::init @ 0x1005b46e2
// > sub_1005B4730 @ 0x1005b4798
// > KeybindCapturePopup::inputKeySelected @ 0x1005b5098
// > KeybindCapturePopup::keyDown @ 0x1005b5ca5
// > KeybindCapturePopup::keyUp @ 0x1005b5cf3
// > sub_1005B5D00 @ 0x1005b5d2a
//
// 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
//
__int64 __fastcall KeybindCapturePopup::updateChordDisplay(__int64 a1)
{
__int64 v2; // rdi
const char *v3; // rsi
__int64 v4; // r14
std::string::pointer data; // rsi
__int64 *v6; // rdi
__int64 v7; // rax
__int64 v8; // rsi
std::string v10; // [rsp+8h] [rbp-28h] BYREF
v2 = *(_QWORD *)(a1 + 1096);
if ( v2 )
{
v3 = "Press Keys...";
if ( *(_BYTE *)(a1 + 1053) )
v3 = "Press again to set";
(*(void (__fastcall **)(__int64, const char *))(*(_QWORD *)v2 + 928LL))(v2, v3);
}
v4 = *(_QWORD *)(a1 + 1088);
if ( *(_DWORD *)(a1 + 1048) )
{
GJKeybindManager::chordToString(&v10);
if ( (*(_BYTE *)&v10.__r_.__value_.__s.0 & 1) != 0 )
data = v10.__r_.__value_.__l.__data_;
else
data = v10.__r_.__value_.__s.__data_;
(*(void (__fastcall **)(__int64, std::string::pointer))(*(_QWORD *)v4 + 928LL))(v4, data);
if ( (*(_BYTE *)&v10.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v10.__r_.__value_.__l.__data_);
v6 = *(__int64 **)(a1 + 1088);
v7 = *v6;
v8 = 1;
}
else
{
(*(void (__fastcall **)(_QWORD, const std::string::value_type *))(*(_QWORD *)v4 + 928LL))(
*(_QWORD *)(a1 + 1088),
" ");
v6 = *(__int64 **)(a1 + 1088);
v7 = *v6;
v8 = 0;
}
(*(void (__fastcall **)(__int64 *, __int64))(v7 + 344))(v6, v8);
KeybindCapturePopup::updateConflictLabel(a1);
return KeybindCapturePopup::updateButtonStates(a1);
}