//
// GJItemIcon::changeToLockedState from 0x8bacec to 0x8bade4 (248 bytes)
//
// 5 xrefs:
// > GJGarageLayer::getItems @ 0x8bff54
// > GJGarageLayer::setupSpecialPage @ 0x8c04d8
// > ShardsPage::init @ 0xaa46cc
// > GJPathPage::init @ 0xba71a0
// > ??> @ 0xa2598
//
// This function is hookable on this platform (idp: arm, 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 12:56:27 +0000
//
__int64 __fastcall GJItemIcon::changeToLockedState(GJItemIcon *this, float a2)
{
const char *v3; // x1
__int64 v4; // x19
__int64 v5; // x0
void (__fastcall *v6)(__int64, __int64); // x21
__int64 v7; // x0
__int64 v8; // x3
_BYTE v11[8]; // [xsp+40h] [xbp+40h] BYREF
GJItemIcon::darkenStoreItem((__int64)this, (GJItemIcon *)&byte_5);
v4 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_lockGray_001.png", v3);
(*(void (__fastcall **)(GJItemIcon *, __int64, __int64))(*(_QWORD *)this + 464LL))(this, v4, 10);
v5 = *((_QWORD *)this + 75);
v6 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 184LL);
v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 192LL))(v5);
v6(v4, v7);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v4 + 160LL))(v4, a2 * 0.8);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 912LL))(v4, 4294967240LL);
v8 = *(_QWORD *)v4;
memset(v11, 175, 3);
(*(void (__fastcall **)(__int64, _BYTE *))(v8 + 960))(v4, v11);
return _stack_chk_guard;
}