//
// GJPathPage::unlockAnimationStep2 from 0xba4eec to 0xba5080 (404 bytes)
//
// 3 xrefs:
// > ??> @ 0x74740
// > GJPathPage::playUnlockAnimation @ 0xba5808
// > ??> @ 0x1542ee8
//
// 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 13:02:48 +0000
//
__int64 __fastcall GJPathPage::unlockAnimationStep2(GJPathPage *this)
{
cocos2d::CCDirector *v2; // x0
cocos2d::CCParticleSystem *v3; // x19
void (__fastcall *v4)(cocos2d::CCParticleSystem *, int *); // x23
void (__fastcall *v5)(cocos2d::CCParticleSystem *, int *); // x23
int v6; // s0
int v7; // s1
int v8; // s2
int v9; // s3
int v10; // w0
void (__fastcall *v11)(cocos2d::CCParticleSystem *, int *); // x22
int v12; // s0
int v13; // s1
int v14; // s2
int v15; // s3
__int64 v17; // [xsp+48h] [xbp+48h] BYREF
int v18; // [xsp+50h] [xbp+50h] BYREF
int v19; // [xsp+54h] [xbp+54h]
int v20; // [xsp+58h] [xbp+58h]
int v21; // [xsp+5Ch] [xbp+5Ch]
__int64 v22[2]; // [xsp+60h] [xbp+60h] BYREF
void *v23; // [xsp+70h] [xbp+70h]
v2 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(_stack_chk_guard);
cocos2d::CCDirector::getWinSize(&v17, v2);
v22[0] = 0;
v22[1] = 0;
v23 = nullptr;
std::string::__init(
v22,
"84a0.97a1a0.16a72a180a180a29a0a11a0a0a0a0a0a0a0a2a1a0a0a1a0a0a0a0a0a1a0a1a1a0a0a1a0a0.568627a0a0a0a1a0a0.8a0a0.2a0a1"
"50a0a0a0a0a0a1a2a1a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0",
0xAAu);
v3 = (cocos2d::CCParticleSystem *)GameToolbox::particleFromString((__int64)v22, 0, 0);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)v3 + 1584LL))(v3, 1);
(*(void (__fastcall **)(GJPathPage *, cocos2d::CCParticleSystem *, __int64))(*(_QWORD *)this + 464LL))(this, v3, 11);
(*(void (__fastcall **)(cocos2d::CCParticleSystem *, float))(*(_QWORD *)v3 + 160LL))(v3, 2.0);
cocos2d::CCParticleSystem::resetSystem(v3);
v4 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, int *))(*(_QWORD *)v3 + 184LL);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v18, *(float *)&v17 * 0.5, *((float *)&v17 + 1) * 0.5);
v4(v3, &v18);
v5 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, int *))(*(_QWORD *)v3 + 1360LL);
darkColorForPath(*((_DWORD *)this + 172));
v18 = v6;
v19 = v7;
v20 = v8;
v21 = v9;
v5(v3, &v18);
v10 = *((_DWORD *)this + 172);
v11 = *(void (__fastcall **)(cocos2d::CCParticleSystem *, int *))(*(_QWORD *)v3 + 1392LL);
lightColorForPath(v10);
v18 = v12;
v19 = v13;
v20 = v14;
v21 = v15;
v11(v3, &v18);
if ( (v22[0] & 1) != 0 )
operator delete(v23);
return _stack_chk_guard;
}