//
// KeybindCapturePopup::fadeButtonSprite from 0x1001a5778 to 0x1001a5854 (220 bytes)
//
// 2 xrefs:
// > KeybindCapturePopup::updateButtonStates @ 0x1001a573c
// > KeybindCapturePopup::updateButtonStates @ 0x1001a5774
//
// 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::fadeButtonSprite(__int64 result, __int64 a2, int a3)
{
__int64 v4; // x8
int v5; // w9
unsigned __int8 v6; // w21
__int16 v7; // w8
__int64 v8; // x20
__int64 v9; // x19
__int16 v10; // [xsp+Ch] [xbp-24h] BYREF
char v11; // [xsp+Eh] [xbp-22h]
if ( a2 )
{
v4 = *(_QWORD *)(result + 1096);
if ( v4 )
v5 = a3;
else
v5 = 1;
if ( v5 )
v6 = -1;
else
v6 = 75;
if ( a3 )
{
v7 = -1;
v11 = -1;
}
else if ( v4 )
{
v11 = 125;
v7 = 32125;
}
else
{
v11 = -106;
v7 = -26986;
}
v10 = v7;
v8 = *(_QWORD *)(a2 + 624);
if ( v8 )
{
(*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)v8 + 1024LL))(*(_QWORD *)(a2 + 624), v6);
result = (*(__int64 (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v8 + 1072LL))(v8, &v10);
}
v9 = *(_QWORD *)(a2 + 648);
if ( v9 )
{
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v9 + 912LL))(v9, v6);
return (*(__int64 (__fastcall **)(__int64, __int16 *))(*(_QWORD *)v9 + 960LL))(v9, &v10);
}
}
return result;
}