//
// GJPathPage::unlockAnimationStep3 from 0x6d4130 to 0x6d4472 (834 bytes)
//
// 1 xrefs:
// > GJPathPage::unlockAnimationFinished @ 0x6d450c
//
// 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:05 +0000
//
int __fastcall GJPathPage::unlockAnimationStep3(GJPathSprite **this)
{
cocos2d::CCNode *v2; // r9
cocos2d::CCDirector *v3; // r0
int v4; // r1
int *v5; // r7
float v6; // r0
float v7; // r2
cocos2d::CCEaseOut *v8; // r0
float v9; // r2
cocos2d::CCSequence *v10; // r11
float v11; // r0
float v12; // r2
cocos2d::CCEaseInOut *v13; // r0
float v14; // r2
cocos2d::CCFiniteTimeAction *v15; // r10
float v16; // r1
int v17; // r8
float v18; // r2
cocos2d::CCEaseInOut *v19; // r0
float v20; // r2
int v21; // r0
cocos2d::CCAction *v22; // r0
float v23; // r1
cocos2d::CCSequence *v24; // r8
float v25; // r1
cocos2d::CCFiniteTimeAction *v26; // r0
cocos2d::CCAction *v27; // r0
float v28; // r1
cocos2d::CCSequence *v29; // r7
unsigned __int8 v30; // r2
cocos2d::CCFiniteTimeAction *v31; // r0
cocos2d::CCAction *v32; // r0
cocos2d::CCParticleSystem *v33; // r6
void (__fastcall *v34)(cocos2d::CCParticleSystem *, float *); // r8
void (__fastcall *v35)(cocos2d::CCParticleSystem *, float *); // r8
void (__fastcall *v36)(cocos2d::CCParticleSystem *, float *); // r8
cocos2d::CCParticleSystem *v37; // r6
void (__fastcall *v38)(cocos2d::CCParticleSystem *, float *); // r8
void (__fastcall *v39)(cocos2d::CCParticleSystem *, float *); // r8
cocos2d::CCString *v40; // r0
const char *CString; // r5
size_t v42; // r0
GameManager *v43; // r0
GameManager *v44; // r0
char *v45; // r1
FMODAudioEngine *v46; // r0
FMODAudioEngine *v47; // r0
float v49; // [sp+Ch] [bp-50h] BYREF
float v50; // [sp+10h] [bp-4Ch]
_BYTE v51[8]; // [sp+14h] [bp-48h] BYREF
int v52[3]; // [sp+1Ch] [bp-40h] BYREF
int v53[2]; // [sp+28h] [bp-34h] BYREF
char *v54; // [sp+30h] [bp-2Ch]
float v55[4]; // [sp+34h] [bp-28h] BYREF
float v56[4]; // [sp+44h] [bp-18h] BYREF
v56[0] = -1.1642e-10;
v2 = (cocos2d::CCNode *)cocos2d::CCLayerColor::create(v56);
v3 = (cocos2d::CCDirector *)(*((int (__fastcall **)(GJPathSprite **, cocos2d::CCNode *, int))*this + 58))(
this,
v2,
10);
cocos2d::CCDirector::sharedDirector(v3);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v49);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v51, v49 * 0.5, v50 * 0.5);
v5 = GJPathSprite::create(*(this + 133), v4);
GJPathSprite::addShardSprite((GJPathSprite *)v5);
(*((void (__fastcall **)(GJPathSprite **, int *, int))*this + 58))(this, v5, 13);
(*(void (__fastcall **)(int *, _BYTE *))(*v5 + 92))(v5, v51);
(*(void (__fastcall **)(int *, int))(*v5 + 80))(v5, 0x40000000);
v6 = (*(float (__fastcall **)(int *))(*v5 + 84))(v5);
v8 = (cocos2d::CCEaseOut *)cocos2d::CCScaleTo::create((cocos2d::CCScaleTo *)0x3E4CCCCD, v6 + 1.0, v7);
v10 = (cocos2d::CCSequence *)cocos2d::CCEaseOut::create(v8, (cocos2d::CCActionInterval *)0x40000000, v9);
v11 = (*(float (__fastcall **)(int *))(*v5 + 84))(v5);
v13 = (cocos2d::CCEaseInOut *)cocos2d::CCScaleTo::create((cocos2d::CCScaleTo *)0x3F400000, v11, v12);
v15 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCEaseInOut::create(v13, (cocos2d::CCActionInterval *)0x40000000, v14);
v17 = cocos2d::CCDelayTime::create((cocos2d::CCDelayTime *)0x3ECCCCCD, v16);
v19 = (cocos2d::CCEaseInOut *)cocos2d::CCScaleTo::create((cocos2d::CCScaleTo *)0x40200000, 0.2, v18);
v21 = cocos2d::CCEaseInOut::create(v19, (cocos2d::CCActionInterval *)0x40000000, v20);
v22 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v10, v15, v17, v21, 0);
cocos2d::CCNode::runAction((cocos2d::CCNode *)v5, v22);
v24 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create((cocos2d::CCDelayTime *)0x3FF33333, v23);
v26 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCFadeOut::create((cocos2d::CCFadeOut *)0x3FC00000, v25);
v27 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v24, v26, 0);
cocos2d::CCNode::runAction((cocos2d::CCNode *)v5, v27);
v29 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create((cocos2d::CCDelayTime *)0x3FF33333, v28);
v31 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCFadeTo::create((cocos2d::CCFadeTo *)0x3FC00000, 0.0, v30);
v32 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v29, v31, 0);
cocos2d::CCNode::runAction(v2, v32);
memset(v52, 0, sizeof(v52));
std::string::__init(
v52,
"50a0a0.88a0.21a-1a90a180a5a5a38a38a0a0a0a0a0a0a7a2a0a360a0.411765a0a1a0a0a0a1a0a3a2a0a60a0a0a0.737255a0a0.160784a0a1"
"a0a0.16a0.1a0.51a0.12a0a0a0a0a0a0a0a2a1a1a0a0a166a0a0a0a0a0a0a0a0a0a0a0a0a0a0",
0xC1u);
v33 = (cocos2d::CCParticleSystem *)GameToolbox::particleFromString((unsigned __int8 *)v52, 0, 0);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, int))(*(_DWORD *)v33 + 792))(v33, 1);
(*((void (__fastcall **)(GJPathSprite **, cocos2d::CCParticleSystem *, int))*this + 58))(this, v33, 15);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, int))(*(_DWORD *)v33 + 80))(v33, 1069547520);
cocos2d::CCParticleSystem::resetSystem(v33);
v34 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, float *))(*(_DWORD *)v33 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v56, v49 * 0.5, v50 * 0.5);
v34(v33, v56);
v35 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, float *))(*(_DWORD *)v33 + 680);
lightColorForPath(v56, (int)*(this + 133));
v35(v33, v56);
v36 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, float *))(*(_DWORD *)v33 + 696);
darkColorForPath(v56, (int)*(this + 133));
v36(v33, v56);
std::string::assign(
v52,
"5a0a1.15a0.3a-1a110a97a0a8a19a19a0a0a0a0a0a0a100a12a0a0a1a0a0.890196a0a0a0a0.51a0.22a-5a1a0a0a1a0a0a0a0.0784314a0a0a"
"0a0.16a0a0.25a0a0a0a0a0a0a0a0a2a0a0a0a0a159a0a0.35a0a0a0a0a1a0a0a0a0a0a0a0");
v37 = (cocos2d::CCParticleSystem *)GameToolbox::particleFromString((unsigned __int8 *)v52, 0, 0);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, int))(*(_DWORD *)v37 + 792))(v37, 1);
(*((void (__fastcall **)(GJPathSprite **, cocos2d::CCParticleSystem *, int))*this + 58))(this, v37, 16);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, int))(*(_DWORD *)v37 + 80))(v37, 1074580685);
cocos2d::CCParticleSystem::resetSystem(v37);
v38 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, float *))(*(_DWORD *)v37 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v56, v49 * 0.5, v50 * 0.5);
v38(v37, v56);
v39 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, float *))(*(_DWORD *)v37 + 480);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v56, 5.0, 5.0);
v39(v37, v56);
lightColorForPath(v55, (int)*(this + 133));
darkColorForPath(v56, (int)*(this + 133));
v55[3] = 0.05;
v56[3] = 0.0;
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, float *))(*(_DWORD *)v37 + 680))(v37, v55);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, float *))(*(_DWORD *)v37 + 696))(v37, v56);
v40 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"geometry.ach.path%02d.00",
(const char *)*(this + 133));
CString = (const char *)cocos2d::CCString::getCString(v40);
v53[0] = 0;
v53[1] = 0;
v54 = nullptr;
v42 = strlen(CString);
v43 = (GameManager *)std::string::__init(v53, CString, v42);
v44 = (GameManager *)GameManager::sharedState(v43);
if ( (v53[0] & 1) != 0 )
v45 = v54;
else
v45 = (char *)v53 + 1;
v46 = (FMODAudioEngine *)GameManager::reportAchievementWithID(v44, v45, (const char *)&dword_64, 0);
v47 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v46);
FMODAudioEngine::fadeInMusic(v47, 4.0, 0);
std::string::~string((int)v53);
return std::string::~string((int)v52);
}