//
// GJItemIcon::changeToLockedState from 0x140384070 to 0x14038413e (206 bytes)
//
// 5 xrefs:
// > GJGarageLayer::getItems @ 0x14037f3ce
// > GJGarageLayer::setupSpecialPage @ 0x14037fafd
// > GJPathPage::init @ 0x1403943ec
// > ShardsPage::init @ 0x14062ceb6
// > ??> @ 0x140922a6c
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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:31:06 +0000
//
__int64 __fastcall GJItemIcon::changeToLockedState(_QWORD *a1)
{
struct cocos2d::CCSprite *v2; // rdi
__int64 v3; // rcx
__int64 v4; // rbx
__int64 v5; // rax
__int64 v6; // rdx
__int64 (__fastcall **v7)(__int64, __int16 *); // rax
_BYTE v9[3]; // [rsp+40h] [rbp+8h] BYREF
__int16 v10; // [rsp+48h] [rbp+10h] BYREF
char v11; // [rsp+4Ah] [rbp+12h]
memset(v9, 50, sizeof(v9));
GJItemIcon::darkenStoreItem((__int64)a1, (__int64)v9);
v2 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)&xmmword_14071C878);
(*(void (__fastcall **)(_QWORD *, struct cocos2d::CCSprite *, __int64))(*a1 + 456LL))(a1, v2, 10);
v3 = a1[75];
v4 = *(_QWORD *)v2;
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 200LL))(v3);
(*(void (__fastcall **)(struct cocos2d::CCSprite *, __int64))(v4 + 184))(v2, v5);
(*(void (__fastcall **)(struct cocos2d::CCSprite *))(*(_QWORD *)v2 + 160LL))(v2);
LOBYTE(v6) = -56;
(*(void (__fastcall **)(__int64, __int64))(*((_QWORD *)v2 + 40) + 40LL))((__int64)v2 + 320, v6);
v7 = *((__int64 (__fastcall ***)(__int64, __int16 *))v2 + 40);
v10 = -20561;
v11 = -81;
return (*v7)((__int64)v2 + 320, &v10);
}