//
// GJItemIcon::changeToLockedState from 0x7933e0 to 0x7934d8 (248 bytes)
//
// 5 xrefs:
// > GJGarageLayer::getItems @ 0x796d44
// > GJGarageLayer::setupSpecialPage @ 0x79742c
// > ShardsPage::init @ 0x95cdcc
// > GJPathPage::init @ 0xa70290
// > ??> @ 0x796b0
//
// 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::changeToLockedState(GJItemIcon *a1, float a2)
{
cocos2d::CCSprite *v3; // x19
cocos2d::CCSprite *m_player; // x0
void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x21
__int64 v6; // x0
cocos2d::CCSprite_vtbl *v7; // x3
_BYTE v9[8]; // [xsp+40h] [xbp+40h] BYREF
GJItemIcon::darkenStoreItem(a1, (ShopType)&byte_5);
v3 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_lockGray_001.png");
a1->addChild_0(a1, v3, 10);
m_player = a1->m_player;
setPosition = v3->setPosition;
v6 = (__int64)m_player->getPosition(m_player);
setPosition(v3, (const cocos2d::CCPoint *)v6);
v3->setScale(v3, a2 * 0.8);
v3->setOpacity(v3, 4294967240LL);
v7 = v3->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
memset(v9, 175, 3);
v7->setColor(v3, (const cocos2d::ccColor3B *)v9);
}