//
// ButtonSprite::setColor from 0x68c010 to 0x68c088 (120 bytes)
//
// 21 xrefs:
// > EditorUI::toggleSpecialEditButtons @ 0x7c7f94
// > EditorUI::updateButtons @ 0x7c8188
// > EditorUI::updateButtons @ 0x7c86dc
// > RateLevelLayer::selectRating @ 0x8c3414
// > RateLevelLayer::selectRating @ 0x8c3470
// > GJRateLevelLayer::selectRating @ 0x950844
// > GJRateLevelLayer::selectRating @ 0x9508dc
// > NumberInputLayer::updateNumberState @ 0x9567c0
// > RateStarsLayer::selectRating @ 0x957444
// > RateStarsLayer::selectRating @ 0x9574dc
// > RateDemonLayer::selectRating @ 0xa83fd0
// > RateDemonLayer::selectRating @ 0xa83ffc
// > EditorUI::updateDeleteButtons @ 0xbdf6f4
// > EditorUI::updateDeleteButtons @ 0xbdf754
// > EditorUI::updateDeleteButtons @ 0xbdf7b8
// > EditorUI::updateEditButtonColor @ 0xc01e60
// > ThreadViewPopup::setSendPending @ 0xc65cc4
// > NewThreadPopup::setSendPending @ 0xc67fd0
// > RateStarsModLayer::selectRating @ 0xcfce34
// > RateStarsModLayer::selectRating @ 0xcfce80
// > ??> @ 0x8b228
//
// 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 12:50:33 +0000
//
__int64 __fastcall ButtonSprite::setColor(_QWORD *a1, __int64 a2)
{
__int64 v3; // x0
__int64 v4; // x0
__int64 result; // x0
__int64 v6; // [xsp+28h] [xbp+28h] BYREF
v6 = a2;
v3 = a1[78];
if ( v3 )
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v3 + 1072LL))(v3, &v6);
v4 = a1[79];
if ( v4 )
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v4 + 960LL))(v4, &v6);
result = a1[81];
if ( result )
return (*(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)result + 960LL))(result, &v6);
result = a1[80];
if ( result )
return (*(__int64 (__fastcall **)(__int64, __int64 *))(*(_QWORD *)result + 960LL))(result, &v6);
return result;
}