//
// KeybindCapturePopup::updateChordDisplay from 0xcf707c to 0xcf71d0 (340 bytes)
//
// 6 xrefs:
// > KeybindCapturePopup::init @ 0xcf7900
// > KeybindCapturePopup::inputKeySelected @ 0xcf7de0
// > KeybindCapturePopup::onToggleController @ 0xcf7e70
// > KeybindCapturePopup::keyDown @ 0xcf7f64
// > KeybindCapturePopup::keyUp @ 0xcf8000
// > ??> @ 0xf2518
//
// This function is hookable on this platform (idp: arm, 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 13:06:49 +0000
//
__int64 __fastcall KeybindCapturePopup::updateChordDisplay(KeybindCapturePopup *this)
{
__int64 v2; // x0
GJKeybindManager *v3; // x0
__int64 v4; // x22
void (__fastcall *v5)(__int64, char *); // x23
char *v6; // x1
void *v8[2]; // [xsp+40h] [xbp+40h] BYREF
void *v9; // [xsp+50h] [xbp+50h]
v2 = *((_QWORD *)this + 137);
if ( v2 )
(*(void (**)(void))(*(_QWORD *)v2 + 928LL))();
v3 = (GJKeybindManager *)*((unsigned int *)this + 262);
if ( (_DWORD)v3 )
{
v4 = *((_QWORD *)this + 136);
v5 = *(void (__fastcall **)(__int64, char *))(*(_QWORD *)v4 + 928LL);
GJKeybindManager::chordToString(v3, v8);
v6 = (char *)v8 + 1;
if ( ((__int64)v8[0] & 1) != 0 )
v6 = (char *)v9;
v5(v4, v6);
if ( ((__int64)v8[0] & 1) != 0 )
operator delete(v9);
(*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 136) + 344LL))(*((_QWORD *)this + 136), 1);
}
else
{
(*(void (__fastcall **)(_QWORD, char *))(**((_QWORD **)this + 136) + 928LL))(*((_QWORD *)this + 136), &byte_11E1A70);
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 136) + 344LL))(*((_QWORD *)this + 136), 0);
}
KeybindCapturePopup::updateConflictLabel(this);
KeybindCapturePopup::updateButtonStates(this);
return _stack_chk_guard;
}