//
// KeybindCapturePopup::updateButtonStates from 0xcf69f4 to 0xcf6a78 (132 bytes)
//
// 2 xrefs:
// > KeybindCapturePopup::updateChordDisplay @ 0xcf7128
// > ??> @ 0x78268
//
// 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:48 +0000
//
__int64 __fastcall KeybindCapturePopup::updateButtonStates(KeybindCapturePopup *this)
{
unsigned int v2; // w20
__int64 v3; // x0
__int64 v4; // x0
unsigned int v5; // w20
v2 = 0;
if ( *((_DWORD *)this + 262) )
v2 = *((unsigned __int8 *)this + 1056) ^ 1;
v3 = *((_QWORD *)this + 139);
if ( v3 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 1056LL))(v3, v2);
KeybindCapturePopup::fadeButtonSprite(this, *((ButtonSprite **)this + 141), v2);
v4 = *((_QWORD *)this + 140);
v5 = *((unsigned __int8 *)this + 1052) ^ 1;
if ( v4 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 1056LL))(v4, v5);
return KeybindCapturePopup::fadeButtonSprite(this, *((ButtonSprite **)this + 142), v5);
}