//
// KeybindCapturePopup::updateChordDisplay from 0x14044e3b0 to 0x14044e509 (345 bytes)
//
// 6 xrefs:
// > KeybindCapturePopup::init @ 0x14044e01d
// > KeybindCapturePopup::inputKeySelected @ 0x14044e3a9
// > KeybindCapturePopup::onToggleController @ 0x14044edec
// > KeybindCapturePopup::keyDown @ 0x14044f004
// > KeybindCapturePopup::keyUp @ 0x14044f0df
// > ??> @ 0x1409275e4
//
// 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:32:26 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall KeybindCapturePopup::updateChordDisplay(__int64 a1)
{
__int64 v2; // rcx
void (__fastcall ***v3)(_QWORD, const char *); // rcx
const char *v4; // rdx
signed int v5; // edx
void **v6; // rax
void *v7; // rdx
__int64 v8; // rdx
bool v9; // di
__int64 v10; // rcx
bool v11; // di
__int64 v12; // rcx
void *Src[4]; // [rsp+20h] [rbp-38h] BYREF
v2 = *(_QWORD *)(a1 + 1080);
if ( v2 )
{
v3 = (void (__fastcall ***)(_QWORD, const char *))(v2 + 360);
v4 = "Press Keys...";
if ( *(_BYTE *)(a1 + 1037) )
v4 = "Press again to set";
(**v3)(v3, v4);
}
v5 = *(_DWORD *)(a1 + 1032);
if ( v5 )
{
v6 = GJKeybindManager::chordToString(Src, v5);
v7 = v6;
if ( (unsigned __int64)v6[3] > 0xF )
v7 = *v6;
(**(void (__fastcall ***)(__int64, void *))(*(_QWORD *)(a1 + 1072) + 360LL))(*(_QWORD *)(a1 + 1072) + 360LL, v7);
sub_14003D310((__int64)Src);
LOBYTE(v8) = 1;
}
else
{
(**(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 1072) + 360LL))(
*(_QWORD *)(a1 + 1072) + 360LL,
" ");
v8 = 0;
}
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 1072) + 336LL))(*(_QWORD *)(a1 + 1072), v8);
KeybindCapturePopup::updateConflictLabel(a1);
v9 = *(_DWORD *)(a1 + 1032) && !*(_BYTE *)(a1 + 1040);
v10 = *(_QWORD *)(a1 + 1096);
if ( v10 )
(*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v10 + 936LL))(v10, v9);
KeybindCapturePopup::fadeButtonSprite(a1, *(_QWORD *)(a1 + 1112), v9);
v11 = *(_BYTE *)(a1 + 1036) == 0;
v12 = *(_QWORD *)(a1 + 1104);
if ( v12 )
(*(void (__fastcall **)(__int64, bool))(*(_QWORD *)v12 + 936LL))(v12, v11);
return KeybindCapturePopup::fadeButtonSprite(a1, *(_QWORD *)(a1 + 1120), v11);
}