//
// ButtonSprite::setColor from 0x3c2d24 to 0x3c2d64 (64 bytes)
//
// 14 xrefs:
// > EditorUI::toggleSpecialEditButtons @ 0x485f48
// > EditorUI::updateButtons @ 0x4860ca
// > RateLevelLayer::selectRating @ 0x5111b4
// > GJRateLevelLayer::selectRating @ 0x564b8c
// > NumberInputLayer::updateNumberState @ 0x56899a
// > RateStarsLayer::selectRating @ 0x569224
// > RateDemonLayer::selectRating @ 0x616126
// > EditorUI::updateDeleteButtons @ 0x6f645c
// > EditorUI::updateDeleteButtons @ 0x6f64a0
// > EditorUI::updateDeleteButtons @ 0x6f656a
// > EditorUI::updateEditButtonColor @ 0x70e8a2
// > ThreadViewPopup::setSendPending @ 0x746fb4
// > NewThreadPopup::setSendPending @ 0x748484
// > RateStarsModLayer::selectRating @ 0x79e738
//
// 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:46:32 +0000
//
int __fastcall ButtonSprite::setColor(_DWORD *a1, int a2)
{
int v3; // r0
int v4; // r0
int result; // r0
int v6; // [sp+4h] [bp-4h] BYREF
v6 = a2;
v3 = a1[134];
if ( v3 )
(*(void (__fastcall **)(int, int *))(*(_DWORD *)v3 + 536))(v3, &v6);
v4 = a1[135];
if ( v4 )
(*(void (__fastcall **)(int, int *))(*(_DWORD *)v4 + 480))(v4, &v6);
result = a1[137];
if ( result )
return (*(int (__fastcall **)(int, int *))(*(_DWORD *)result + 480))(result, &v6);
result = a1[136];
if ( result )
return (*(int (__fastcall **)(int, int *))(*(_DWORD *)result + 480))(result, &v6);
return result;
}