//
// GJItemIcon::changeToLockedState from 0x100305df4 to 0x100305ed0 (220 bytes)
//
// 4 xrefs:
// > GJGarageLayer::setupSpecialPage @ 0x100305614
// > GJGarageLayer::getItems @ 0x100305850
// > ShardsPage::init @ 0x1003a2948
// > GJPathPage::init @ 0x1003b96dc
//
// 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 __fastcall GJItemIcon::changeToLockedState(GJItemIcon *a1, float a2)
{
cocos2d::CCSprite *v4; // x20
__int64 v5; // x0
__int16 v6; // [xsp+Ch] [xbp-24h] BYREF
char v7; // [xsp+Eh] [xbp-22h]
GJItemIcon::darkenStoreItem(a1, (cocos2d::ccColor3B)3289650);
v4 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_lockGray_001.png");
((void (__fastcall *)(GJItemIcon *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v4, 10);
v5 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_player->getPosition)(a1->m_player);
((void (__fastcall *)(cocos2d::CCSprite *, __int64))v4->setPosition)(v4, v5);
((void (__fastcall *)(cocos2d::CCSprite *, float))v4->setScale)(v4, a2 * 0.8);
((void (__fastcall *)(cocos2d::CCSprite *, __int64))v4->setOpacity)(v4, 200);
v7 = -81;
v6 = -20561;
((void (__fastcall *)(cocos2d::CCSprite *, __int16 *))v4->setColor)(v4, &v6);
}