//
// GJPathSprite::changeToLockedArt from 0x1003baad4 to 0x1003baca0 (460 bytes)
//
// 2 xrefs:
// > GJPathSprite::updateState @ 0x1003b8594
// > GJPathPage::playUnlockAnimation @ 0x1003ba450
//
// 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 GJPathSprite::changeToLockedArt(GJPathSprite *a1)
{
cocos2d::CCString *v2; // x0
char *CString; // x0
char *v4; // x1
CCSpriteGrayscale *v5; // x20
unsigned int v6; // w8
float v7; // s0
cocos2d::CCSprite *v8; // x20
__n128 v9; // q0
__n128 v10; // q1
double v11; // d0
float32x2_t v12; // [xsp+10h] [xbp-50h] BYREF
float32x2_t v13; // [xsp+18h] [xbp-48h] BYREF
void *__p[2]; // [xsp+20h] [xbp-40h] BYREF
char v15; // [xsp+37h] [xbp-29h]
void *v16[2]; // [xsp+38h] [xbp-28h] BYREF
char v17; // [xsp+4Fh] [xbp-11h]
cocos2d::CCPoint v18; // 0:kr00_8.8
v2 = (cocos2d::CCString *)sub_100268F4C("pathIcon_%02d_001.png", a1->m_pathNumber);
CString = (char *)cocos2d::CCString::getCString(v2);
sub_100009900(v16, CString);
a1->m_bDontDraw = 1;
if ( v17 >= 0 )
v4 = (char *)v16;
else
v4 = (char *)v16[0];
sub_100009900(__p, v4);
v5 = CCSpriteGrayscale::createWithSpriteFrameName((__int64)__p);
if ( v15 < 0 )
operator delete(__p[0]);
((void (__fastcall *)(GJPathSprite *, CCSpriteGrayscale *, __int64))a1->addChild_0)(a1, v5, 0xFFFFFFFFLL);
v18 = cocos2d::CCNode::convertToNodeSpace(a1, &stru_10086E6F0);
((void (__fastcall *)(CCSpriteGrayscale *, void **, float, float))v5->setPosition)(v5, __p, v18.x, v18.y);
v6 = a1->m_pathNumber - 3;
v7 = 3.0;
if ( v6 < 6 )
v7 = flt_1006461EC[v6];
CCSpriteWithHue::setEvenLuminance(v5, v7);
memset(__p, 40, 3);
((void (__fastcall *)(CCSpriteGrayscale *, void **))v5->setColor)(v5, __p);
v8 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_lockGray_001.png");
((void (__fastcall *)(GJPathSprite *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v8, 1);
cocos2d::CCNode::convertToNodeSpace(a1, &stru_10086E6F0);
v9.n128_u32[0] = 0;
v10.n128_u32[0] = 0;
sub_100022980(v9, v10, &v12);
*(float32x2_t *)&v11 = sub_1000229DC(&v13, &v12, (float32x2_t *)__p);
((void (__fastcall *)(cocos2d::CCSprite *, void **, double))v8->setPosition)(v8, __p, v11);
((void (__fastcall *)(cocos2d::CCSprite *, float))v8->setScale)(v8, 1.0);
BYTE2(__p[0]) = -56;
LOWORD(__p[0]) = -14136;
((void (__fastcall *)(cocos2d::CCSprite *, void **))v8->setColor)(v8, __p);
if ( v17 < 0 )
operator delete(v16[0]);
}