//
// KeybindCapturePopup::updateButtonStates from 0x1001a56f0 to 0x1001a5778 (136 bytes)
//
// 1 xrefs:
// > KeybindCapturePopup::updateChordDisplay @ 0x1001a4f64
//
// 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 11:00:03 +0000
//
__int64 __fastcall KeybindCapturePopup::updateButtonStates(__int64 a1)
{
char v2; // w20
__int64 v3; // x0
char v4; // w20
__int64 v5; // x0
if ( *(_DWORD *)(a1 + 1048) )
v2 = *(_BYTE *)(a1 + 1056) ^ 1;
else
v2 = 0;
v3 = *(_QWORD *)(a1 + 1112);
if ( v3 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 1056LL))(v3, v2 & 1);
KeybindCapturePopup::fadeButtonSprite(a1, *(_QWORD *)(a1 + 1128), v2 & 1);
v4 = *(_BYTE *)(a1 + 1052) ^ 1;
v5 = *(_QWORD *)(a1 + 1120);
if ( v5 )
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 1056LL))(v5, (*(_BYTE *)(a1 + 1052) ^ 1) & 1);
return KeybindCapturePopup::fadeButtonSprite(a1, *(_QWORD *)(a1 + 1136), v4 & 1);
}