//
// KeybindCapturePopup::fadeButtonSprite from 0x14044eb30 to 0x14044ec18 (232 bytes)
//
// 6 xrefs:
// > KeybindCapturePopup::updateChordDisplay @ 0x14044e4b5
// > KeybindCapturePopup::updateChordDisplay @ 0x14044e4ec
// > ??> @ 0x1408cc588
// > ??> @ 0x1408cc598
// > ??> @ 0x1409275f0
// > ??> @ 0x1409275fc
//
// 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
//
void __fastcall KeybindCapturePopup::fadeButtonSprite(__int64 a1, __int64 a2, char a3)
{
__int64 v3; // rax
unsigned __int8 v5; // di
char v6; // al
__int16 v7; // cx
__int64 v8; // rbx
__int64 v9; // rbx
__int16 v10; // [rsp+38h] [rbp+10h] BYREF
char v11; // [rsp+3Ah] [rbp+12h]
if ( !a2 )
return;
v3 = *(_QWORD *)(a1 + 1080);
if ( !a3 && v3 )
{
v5 = 75;
v6 = 125;
LABEL_10:
LOBYTE(v10) = v6;
HIBYTE(v10) = v6;
v7 = v10;
goto LABEL_11;
}
v5 = -1;
if ( !a3 )
{
if ( v3 )
v6 = 125;
else
v6 = -106;
goto LABEL_10;
}
v7 = -1;
v6 = -1;
LABEL_11:
v8 = *(_QWORD *)(a2 + 632);
v10 = v7;
v11 = v6;
if ( v8 )
{
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(v8 + 368) + 40LL))(v8 + 368, v5);
(**(void (__fastcall ***)(__int64, __int16 *))(v8 + 368))(v8 + 368, &v10);
}
v9 = *(_QWORD *)(a2 + 656);
if ( v9 )
{
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)(v9 + 320) + 40LL))(v9 + 320, v5);
(**(void (__fastcall ***)(__int64, __int16 *))(v9 + 320))(v9 + 320, &v10);
}
}