//
// GJItemIcon::darkenStoreItem from 0x50bb04 to 0x50bb2e (42 bytes)
//
// 4 xrefs:
// > GJItemIcon::changeToLockedState @ 0x50bc56
// > GJGarageLayer::setupSpecialPage @ 0x50f14c
// > GJShopLayer::didPurchaseItem @ 0x611894
// > GJShopLayer::init @ 0x61352a
//
// 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:51:28 +0000
//
unsigned int __fastcall GJItemIcon::darkenStoreItem(int a1, GJItemIcon *this)
{
int v3; // r0
int v4; // r2
int v6; // [sp+4h] [bp-4h]
HIBYTE(v6) = HIBYTE(this);
v3 = GJItemIcon::unlockedColorForType(this, (int)this);
LOWORD(v6) = v3;
BYTE2(v6) = BYTE2(v3);
return GJItemIcon::darkenStoreItem(a1, v6, v4);
}