//
// KeybindCapturePopup::fadeButtonSprite from 0xcf68e4 to 0xcf69f4 (272 bytes)
//
// 3 xrefs:
// > KeybindCapturePopup::updateButtonStates @ 0xcf6a3c
// > KeybindCapturePopup::updateButtonStates @ 0xcf6a74
// > ??> @ 0x612e8
//
// 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::fadeButtonSprite(
KeybindCapturePopup *this,
ButtonSprite *a2,
unsigned __int8 a3)
{
unsigned int v4; // w21
__int64 v5; // x20
__int64 v6; // x20
_BYTE v8[8]; // [xsp+30h] [xbp+30h] BYREF
if ( a2 )
{
if ( (*((_QWORD *)this + 137) != 0) > (unsigned int)a3 )
v4 = 75;
else
v4 = 255;
if ( a3 )
{
v8[0] = -1;
v8[1] = -1;
v8[2] = -1;
}
else if ( *((_QWORD *)this + 137) )
{
memset(v8, 125, 3);
}
else
{
memset(v8, 150, 3);
}
v5 = *((_QWORD *)a2 + 78);
if ( v5 )
{
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)v5 + 1024LL))(*((_QWORD *)a2 + 78), v4);
(*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v5 + 1072LL))(v5, v8);
}
v6 = *((_QWORD *)a2 + 81);
if ( v6 )
{
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)v6 + 912LL))(*((_QWORD *)a2 + 81), v4);
(*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v6 + 960LL))(v6, v8);
}
}
return _stack_chk_guard;
}