//
// KeybindCapturePopup::updateChordDisplay from 0x79a820 to 0x79a8d8 (184 bytes)
//
// 5 xrefs:
// > KeybindCapturePopup::init @ 0x79af5e
// > KeybindCapturePopup::inputKeySelected @ 0x79b2b6
// > KeybindCapturePopup::onToggleController @ 0x79b310
// > KeybindCapturePopup::keyDown @ 0x79b3ee
// > KeybindCapturePopup::keyUp @ 0x79b410
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:59:49 +0000
//
int __fastcall KeybindCapturePopup::updateChordDisplay(KeybindCapturePopup *this)
{
int v2; // r0
const char *v3; // r1
int *v4; // r5
int v5; // r3
void (__fastcall *v6)(int *, char *); // r9
char *v7; // r1
void (*v8)(void); // r3
char v10; // [sp+0h] [bp-14h] BYREF
char v11; // [sp+1h] [bp-13h] BYREF
char *v12; // [sp+8h] [bp-Ch]
v2 = *((_DWORD *)this + 190);
if ( v2 )
{
if ( *((_BYTE *)this + 737) )
v3 = "Press again to set";
else
v3 = "Press Keys...";
(*(void (__fastcall **)(int, const char *))(*(_DWORD *)v2 + 464))(v2, v3);
}
v4 = *((int **)this + 189);
v5 = *v4;
if ( *((_DWORD *)this + 183) )
{
v6 = *(void (__fastcall **)(int *, char *))(v5 + 464);
GJKeybindManager::chordToString((GJKeybindManager *)&v10, *((_DWORD *)this + 183));
if ( (v10 & 1) != 0 )
v7 = v12;
else
v7 = &v11;
v6(v4, v7);
std::string::~string((int)&v10);
v8 = *(void (**)(void))(**((_DWORD **)this + 189) + 172);
}
else
{
(*(void (__fastcall **)(_DWORD, const char *))(v5 + 464))(*((_DWORD *)this + 189), " ");
v8 = *(void (**)(void))(**((_DWORD **)this + 189) + 172);
}
v8();
KeybindCapturePopup::updateConflictLabel(this);
return KeybindCapturePopup::updateButtonStates(this);
}