//
// GJPathPage::unlockAnimationStep3 from 0x100461b90 to 0x100461fe4 (1108 bytes)
//
// 1 xrefs:
// > GJPathPage::unlockAnimationFinished @ 0x100461b8c
//
// 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 11:05:30 +0000
//
void __fastcall GJPathPage::unlockAnimationStep3(int *a1)
{
_WORD *v2; // x20
__int64 v3; // x0
_QWORD *v4; // x21
float v5; // s0
float *v6; // x0
_OWORD *v7; // x22
float v8; // s0
float *v9; // x0
char v10; // w23
float *v11; // x0
__int64 v12; // x1
__int64 v13; // x2
__int64 v14; // x3
__int64 v15; // x4
__int64 v16; // x5
__int64 v17; // x6
__int64 v18; // x7
__int64 v19; // x0
float *v20; // x22
char v21; // w0
__int64 v22; // x1
__int64 v23; // x2
__int64 v24; // x3
__int64 v25; // x4
__int64 v26; // x5
__int64 v27; // x6
__int64 v28; // x7
__int64 v29; // x0
float *v30; // x21
char v31; // w0
__int64 v32; // x1
__int64 v33; // x2
__int64 v34; // x3
__int64 v35; // x4
__int64 v36; // x5
__int64 v37; // x6
__int64 v38; // x7
__int64 v39; // x0
__int64 v40; // x20
int v41; // s1
int v42; // s2
int v43; // s1
int v44; // s2
__int64 v45; // x20
int v46; // s1
int v47; // s2
int v48; // s1
int v49; // s2
void *v50; // x0
char *CString; // x0
__int64 v52; // x0
char *p_p; // x1
__int64 v54; // x0
void *__p; // [xsp+20h] [xbp-A0h] BYREF
int v56; // [xsp+28h] [xbp-98h]
int v57; // [xsp+2Ch] [xbp-94h]
char v58; // [xsp+37h] [xbp-89h]
_DWORD v59[4]; // [xsp+38h] [xbp-88h] BYREF
_DWORD v60[4]; // [xsp+48h] [xbp-78h] BYREF
std::string v61; // [xsp+58h] [xbp-68h] BYREF
float v62; // [xsp+70h] [xbp-50h] BYREF
__int64 v63; // [xsp+78h] [xbp-48h] BYREF
LODWORD(v61.__r_.__value_.__l.__data_) = -1358954496;
v2 = cocos2d::CCLayerColor::create_1((__int64)&v61);
(*(void (__fastcall **)(int *, _WORD *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v2, 10);
v3 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(v3, &v63);
sub_1000262BC(&v62, *(float *)&v63 * 0.5, *((float *)&v63 + 1) * 0.5);
v4 = GJPathSprite::create((unsigned int)a1[172]);
sub_100462034(v4);
(*(void (__fastcall **)(int *, _QWORD *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v4, 13);
(*(void (__fastcall **)(_QWORD *, float *))(*v4 + 184LL))(v4, &v62);
(*(void (__fastcall **)(_QWORD *, float))(*v4 + 160LL))(v4, 2.0);
v5 = (*(float (__fastcall **)(_QWORD *))(*v4 + 168LL))(v4);
v6 = cocos2d::CCScaleTo::create_1(0.2, v5 + 1.0);
v7 = cocos2d::CCEaseOut::create((__int64)v6, 2.0);
v8 = (*(float (__fastcall **)(_QWORD *))(*v4 + 168LL))(v4);
v9 = cocos2d::CCScaleTo::create_1(0.75, v8);
v10 = (unsigned __int8)cocos2d::CCEaseInOut::create((__int64)v9, 2.0);
cocos2d::CCDelayTime::create(0.4);
v11 = cocos2d::CCScaleTo::create_1(2.5, 0.2);
cocos2d::CCEaseInOut::create((__int64)v11, 2.0);
v19 = sub_10021D420((__int64)v7, v12, v13, v14, v15, v16, v17, v18, v10);
cocos2d::CCNode::runAction((__int64)v4, v19);
v20 = cocos2d::CCDelayTime::create(1.9);
v21 = (unsigned __int8)cocos2d::CCFadeOut::create(1.5);
v29 = sub_10021D420((__int64)v20, v22, v23, v24, v25, v26, v27, v28, v21);
cocos2d::CCNode::runAction((__int64)v4, v29);
v30 = cocos2d::CCDelayTime::create(1.9);
v31 = (unsigned __int8)cocos2d::CCFadeTo::create(0, 1.5);
v39 = sub_10021D420((__int64)v30, v32, v33, v34, v35, v36, v37, v38, v31);
cocos2d::CCNode::runAction((__int64)v2, v39);
sub_100009900(
&v61,
"50a0a0.88a0.21a-1a90a180a5a5a38a38a0a0a0a0a0a0a7a2a0a360a0.411765a0a1a0a0a0a1a0a3a2a0a60a0a0a0.737255a0a0.160784a0a1"
"a0a0.16a0.1a0.51a0.12a0a0a0a0a0a0a0a2a1a1a0a0a166a0a0a0a0a0a0a0a0a0a0a0a0a0a0");
v40 = GameToolbox::particleFromString((__int64)&v61, 0, 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v40 + 1584LL))(v40, 1);
(*(void (__fastcall **)(int *, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v40, 15);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v40 + 160LL))(v40, 1.5);
cocos2d::CCParticleSystem::resetSystem(v40);
sub_1000262BC((float *)&__p, *(float *)&v63 * 0.5, *((float *)&v63 + 1) * 0.5);
(*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v40 + 184LL))(v40, &__p);
LODWORD(__p) = sub_10045EAF4(a1[172]);
HIDWORD(__p) = v41;
v56 = v42;
v57 = 1065353216;
(*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v40 + 1360LL))(v40, &__p);
LODWORD(__p) = sub_10045EB48(a1[172]);
HIDWORD(__p) = v43;
v56 = v44;
v57 = 1065353216;
(*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v40 + 1392LL))(v40, &__p);
std::string::assign(
&v61,
"5a0a1.15a0.3a-1a110a97a0a8a19a19a0a0a0a0a0a0a100a12a0a0a1a0a0.890196a0a0a0a0.51a0.22a-5a1a0a0a1a0a0a0a0.0784314a0a0a"
"0a0.16a0a0.25a0a0a0a0a0a0a0a0a2a0a0a0a0a159a0a0.35a0a0a0a0a1a0a0a0a0a0a0a0");
v45 = GameToolbox::particleFromString((__int64)&v61, 0, 0);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v45 + 1584LL))(v45, 1);
(*(void (__fastcall **)(int *, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v45, 16);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v45 + 160LL))(v45, 2.2);
cocos2d::CCParticleSystem::resetSystem(v45);
sub_1000262BC((float *)&__p, *(float *)&v63 * 0.5, *((float *)&v63 + 1) * 0.5);
(*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v45 + 184LL))(v45, &__p);
sub_1000262BC((float *)&__p, 5.0, 5.0);
(*(void (__fastcall **)(__int64, void **))(*(_QWORD *)v45 + 960LL))(v45, &__p);
LODWORD(v30) = a1[172];
v60[0] = sub_10045EAF4((int)v30);
v60[1] = v46;
v60[2] = v47;
v59[0] = sub_10045EB48((int)v30);
v59[1] = v48;
v59[2] = v49;
v60[3] = 1028443341;
v59[3] = 0;
(*(void (__fastcall **)(__int64, _DWORD *))(*(_QWORD *)v45 + 1360LL))(v45, v60);
(*(void (__fastcall **)(__int64, _DWORD *))(*(_QWORD *)v45 + 1392LL))(v45, v59);
v50 = sub_1003065B0("geometry.ach.path%02d.00", a1[172]);
CString = (char *)cocos2d::CCString::getCString((__int64)v50);
sub_100009900(&__p, CString);
v52 = GameManager::sharedState();
if ( v58 >= 0 )
p_p = (char *)&__p;
else
p_p = (char *)__p;
GameManager::reportAchievementWithID(v52, p_p, 100, 0);
v54 = FMODAudioEngine::sharedEngine();
FMODAudioEngine::fadeInMusic(v54, 0, 4.0);
if ( v58 < 0 )
operator delete(__p);
if ( SHIBYTE(v61.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v61.__r_.__value_.__l.__data_);
}