//
// GJPathSprite::changeToLockedArt from 0x6d2490 to 0x6d260c (380 bytes)
//
// 2 xrefs:
// > GJPathPage::playUnlockAnimation @ 0x6d26e0
// > GJPathSprite::updateState @ 0x6d2ab4
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:57:04 +0000
//
int __fastcall GJPathSprite::changeToLockedArt(const char **this)
{
char *v1; // r9
cocos2d::CCString *v3; // r0
const char *CString; // r7
size_t v5; // r0
size_t v6; // r0
float *v7; // r5
void (__fastcall *v8)(float *, _BYTE *); // r9
unsigned int v9; // r3
float v10; // r1
void (__fastcall *v11)(float *, _BYTE *); // r2
const char *v12; // r1
int v13; // r5
void (__fastcall *v14)(int, _BYTE *); // r10
void (__fastcall *v15)(int, _BYTE *); // r2
_BYTE v17[8]; // [sp+4h] [bp-34h] BYREF
_BYTE v18[8]; // [sp+Ch] [bp-2Ch] BYREF
_BYTE v19[8]; // [sp+14h] [bp-24h] BYREF
int v20[2]; // [sp+1Ch] [bp-1Ch] BYREF
char *v21; // [sp+24h] [bp-14h]
int v22[3]; // [sp+28h] [bp-10h] BYREF
v3 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"pathIcon_%02d_001.png",
*(this + 127));
v20[0] = 0;
v20[1] = 0;
v21 = nullptr;
CString = (const char *)cocos2d::CCString::getCString(v3);
v5 = strlen(CString);
std::string::__init(v20, CString, v5);
*((_BYTE *)this + 471) = 1;
v22[0] = 0;
v22[1] = 0;
if ( (v20[0] & 1) == 0 )
v1 = (char *)v20 + 1;
v22[2] = 0;
if ( (v20[0] & 1) != 0 )
v1 = v21;
v6 = strlen(v1);
std::string::__init(v22, v1, v6);
v7 = (float *)CCSpriteGrayscale::createWithSpriteFrameName((char *)v22);
std::string::~string((int)v22);
(*((void (__fastcall **)(const char **, float *, int))*this + 58))(this, v7, -1);
v8 = *(void (__fastcall **)(float *, _BYTE *))(*(_DWORD *)v7 + 92);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v19, (const cocos2d::CCPoint *)this);
v8(v7, v19);
v9 = (unsigned int)(*(this + 127) - 3);
if ( v9 > 5 )
v10 = 3.0;
else
v10 = *(float *)&word_BEFE78[2 * v9 + 4];
CCSpriteWithHue::setEvenLuminance(v7, v10);
v11 = *(void (__fastcall **)(float *, _BYTE *))(*(_DWORD *)v7 + 480);
memset(v19, 40, 3);
v11(v7, v19);
v13 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_lockGray_001.png", v12);
(*((void (__fastcall **)(const char **, int, int))*this + 58))(this, v13, 1);
v14 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v13 + 92);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v17, (const cocos2d::CCPoint *)this);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, 0.0, 0.0);
cocos2d::CCPoint::operator+(v19, v17, v18);
v14(v13, v19);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v13 + 80))(v13, 1065353216);
v15 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v13 + 480);
v19[0] = -56;
v19[1] = -56;
v19[2] = -56;
v15(v13, v19);
return std::string::~string((int)v20);
}