//
// GJPathSprite::changeToLockedArt from 0x58c33c to 0x58c486 (330 bytes)
//
// 2 xrefs:
// > GJPathPage::playUnlockAnimation @ 0x58c554
// > GJPathSprite::updateState @ 0x58cd0c
//
// 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 GJPathSprite::changeToLockedArt(GJPathSprite *a1)
{
cocos2d::CCString *v2; // r0
char *CString; // r0
CCSpriteGrayscale *v4; // r6
void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r10
unsigned int v6; // r3
float v7; // r1
void (__fastcall *setColor)(cocos2d::CCSprite *__hidden, const cocos2d::ccColor3B *); // r2
cocos2d::CCSprite *v9; // r6
void (__fastcall *v10)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r11
void (__fastcall *v11)(cocos2d::CCSprite *__hidden, const cocos2d::ccColor3B *); // r2
char *v12; // [sp+0h] [bp-24h] BYREF
cocos2d::CCPoint v13; // [sp+4h] [bp-20h] BYREF
cocos2d::CCPoint v14; // [sp+Ch] [bp-18h] BYREF
cocos2d::CCPoint v15; // [sp+14h] [bp-10h] BYREF
v2 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"pathIcon_%02d_001.png",
(const char *)a1->m_pathNumber);
CString = (char *)cocos2d::CCString::getCString(v2);
sub_776584((int)&v12, CString);
a1->m_bDontDraw = 1;
sub_776584((int)&v15, v12);
v4 = CCSpriteGrayscale::createWithSpriteFrameName((const char **)&v15);
sub_774008(&v15);
a1->addChild_0(a1, v4, -1);
setPosition = v4->setPosition;
cocos2d::CCNode::convertToNodeSpace(&v15, a1, &stru_AC7EC4);
setPosition(v4, &v15);
v6 = a1->m_pathNumber - 3;
if ( v6 > 5 )
v7 = 3.0;
else
v7 = *(float *)&word_9ADC48[2 * v6 + 2];
CCSpriteWithHue::setEvenLuminance(v4, v7);
setColor = v4->setColor;
memset(&v15, 40, 3);
setColor(v4, (const cocos2d::ccColor3B *)&v15);
v9 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_lockGray_001.png");
a1->addChild_0(a1, v9, 1);
v10 = v9->setPosition;
cocos2d::CCNode::convertToNodeSpace(&v13, a1, &stru_AC7EC4);
cocos2d::CCPoint::CCPoint(&v14, 0.0, 0.0);
cocos2d::CCPoint::operator+(&v15, &v13, &v14);
v10(v9, &v15);
((void (__fastcall *)(cocos2d::CCSprite *, int))v9->setScale)(v9, 1065353216);
v11 = v9->setColor;
LOWORD(v15.x) = -14136;
BYTE2(v15.x) = -56;
v11(v9, (const cocos2d::ccColor3B *)&v15);
sub_774008(&v12);
}