//
// KeybindCapturePopup::fadeButtonSprite from 0x79a3bc to 0x79a456 (154 bytes)
//
// 2 xrefs:
// > KeybindCapturePopup::updateButtonStates @ 0x79a48a
// > KeybindCapturePopup::updateButtonStates @ 0x79a4b2
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:59:48 +0000
//
int __fastcall KeybindCapturePopup::fadeButtonSprite(int this, ButtonSprite *a2, int a3)
{
char v4; // r3
int v5; // r5
int v6; // r4
int v7; // r4
_DWORD v8[3]; // [sp+0h] [bp-Ch] BYREF
v8[0] = this;
v8[1] = a2;
v8[2] = a3;
if ( !a2 )
return this;
if ( a3 )
{
v4 = -1;
LOWORD(v8[0]) = -1;
}
else
{
if ( *(_DWORD *)(this + 760) )
{
v5 = 75;
memset(v8, 125, 3);
goto LABEL_7;
}
v4 = -106;
LOWORD(v8[0]) = -26986;
}
v5 = 255;
BYTE2(v8[0]) = v4;
LABEL_7:
v6 = *((_DWORD *)a2 + 134);
if ( v6 )
{
(*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)v6 + 512))(*((_DWORD *)a2 + 134), v5);
this = (*(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v6 + 536))(v6, v8);
}
v7 = *((_DWORD *)a2 + 137);
if ( v7 )
{
(*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)v7 + 456))(*((_DWORD *)a2 + 137), v5);
return (*(int (__fastcall **)(int, _DWORD *))(*(_DWORD *)v7 + 480))(v7, v8);
}
return this;
}