//
// GJItemIcon::darkenStoreItem from 0x403cf0 to 0x403d1a (42 bytes)
//
// 4 xrefs:
// > GJItemIcon::changeToLockedState @ 0x403e42
// > GJGarageLayer::setupSpecialPage @ 0x4060f0
// > GJShopLayer::didPurchaseItem @ 0x4e1946
// > GJShopLayer::init @ 0x4e3ac8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void GJItemIcon::darkenStoreItem(GJItemIcon *a1, ShopType a2)
{
int v3; // r0
int v4; // r2
int v5; // [sp+4h] [bp-4h]
HIBYTE(v5) = HIBYTE(a2);
*(cocos2d::ccColor3B *)&v3 = GJItemIcon::unlockedColorForType(a2);
LOWORD(v5) = v3;
BYTE2(v5) = BYTE2(v3);
GJItemIcon::darkenStoreItem((int)a1, v5, v4);
}