// // GJPathPage::playUnlockAnimation from 0x100461030 to 0x100461418 (1000 bytes) // // 2 xrefs: // > GJPathPage::didPurchaseItem @ 0x10046102c // > sub_100461450 @ 0x100461454 // // 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:29 +0000 // void __fastcall GJPathPage::playUnlockAnimation(int *a1) { __int64 v2; // x0 __int64 v3; // x20 __int64 v4; // x0 _WORD *v5; // x20 float *v6; // x0 _QWORD *v7; // x20 float *v8; // x0 _OWORD *v9; // x0 _QWORD *v10; // x21 unsigned int i; // w23 float v12; // s14 float32x2_t *v13; // x22 float v14; // s10 unsigned int v15; // w0 double *v16; // x0 _OWORD *v17; // x0 __int64 v18; // x21 __int64 v19; // x0 __int32 v20; // s1 int v21; // s2 __int32 v22; // s1 int v23; // s2 float *v24; // x20 char v25; // w0 __int64 v26; // x1 __int64 v27; // x2 __int64 v28; // x3 __int64 v29; // x4 __int64 v30; // x5 __int64 v31; // x6 __int64 v32; // x7 __int64 v33; // x0 float *v34; // x20 char v35; // w0 __int64 v36; // x1 __int64 v37; // x2 __int64 v38; // x3 __int64 v39; // x4 __int64 v40; // x5 __int64 v41; // x6 __int64 v42; // x7 __int64 v43; // x0 float32x2_t v44; // [xsp+18h] [xbp-B8h] BYREF int v45; // [xsp+20h] [xbp-B0h] int v46; // [xsp+24h] [xbp-ACh] void *v47[2]; // [xsp+28h] [xbp-A8h] BYREF char v48; // [xsp+3Fh] [xbp-91h] __int64 v49; // [xsp+40h] [xbp-90h] BYREF void *__p[2]; // [xsp+48h] [xbp-88h] BYREF char v51; // [xsp+5Fh] [xbp-71h] v2 = FMODAudioEngine::sharedEngine(); FMODAudioEngine::fadeOutMusic(v2, 0, 0.5); v3 = FMODAudioEngine::sharedEngine(); sub_100009900(__p, "unlockPath.ogg"); FMODAudioEngine::playEffect(v3, (__int64)__p, 0.0, 0.0, 0.6); if ( v51 < 0 ) operator delete(__p[0]); v4 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v4, &v49); LODWORD(v47[0]) = 0; v5 = cocos2d::CCLayerColor::create_1((__int64)v47); (*(void (__fastcall **)(int *, _WORD *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v5, 10); v6 = cocos2d::CCFadeTo::create(175, 1.0); cocos2d::CCNode::runAction((__int64)v5, (__int64)v6); v7 = GJPathSprite::create((unsigned int)a1[172]); sub_10046178C(v7); (*(void (__fastcall **)(int *, _QWORD *, __int64))(*(_QWORD *)a1 + 464LL))(a1, v7, 12); sub_1000262BC((float *)v47, *(float *)&v49 * 0.5, *((float *)&v49 + 1) * 0.5); (*(void (__fastcall **)(_QWORD *, void **))(*v7 + 184LL))(v7, v47); (*(void (__fastcall **)(_QWORD *, float))(*v7 + 160LL))(v7, 0.01); v8 = cocos2d::CCScaleTo::create_1(2.0, 2.0); v9 = cocos2d::CCEaseInOut::create((__int64)v8, 1.0); cocos2d::CCNode::runAction((__int64)v7, (__int64)v9); v10 = sub_1002E736C(); cocos2d::CCDelayTime::create(1.0); sub_1002E74E0((__int64)v10); for ( i = 1; i != 61; ++i ) { v12 = (float)i * 0.1; v13 = (float32x2_t *)(*(__int64 (__fastcall **)(_QWORD *))(*v7 + 192LL))(v7); v14 = v12 * (float)((float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 2.0) + -1.0); v15 = rand(); sub_1000262BC((float *)&v44, v14, v12 * (float)((float)(vcvts_n_f32_s32(v15, 0x1Fu) * 2.0) + -1.0)); sub_100026318(v13, &v44, (float32x2_t *)v47); cocos2d::CCMoveTo::create((double *)v47, 0.01); sub_1002E74E0((__int64)v10); cocos2d::CCDelayTime::create(0.016667); sub_1002E74E0((__int64)v10); } v16 = (double *)(*(__int64 (__fastcall **)(_QWORD *))(*v7 + 192LL))(v7); cocos2d::CCMoveTo::create(v16, 0.01); sub_1002E74E0((__int64)v10); v17 = cocos2d::CCSequence::create((__int64)v10); cocos2d::CCNode::runAction((__int64)v7, (__int64)v17); sub_100009900( v47, "84a1.05a1.25a0.16a50a180a180a29a0a11a0a0a0a0a0a0a0a2a1a0a0a1a0a0a0a0.360784a0a1a0a1a1a0a0a1a0a0a0a0a0a1a0a0.8a0a0a0a" "110a0a0a0a0a0a1a2a1a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0"); v18 = GameToolbox::particleFromString((__int64)v47, 0, 0); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v18 + 1584LL))(v18, 1); (*(void (__fastcall **)(int *, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v18, 11); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v18 + 160LL))(v18, 2.0); cocos2d::CCParticleSystem::resetSystem(v18); v19 = (*(__int64 (__fastcall **)(_QWORD *))(*v7 + 192LL))(v7); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v18 + 184LL))(v18, v19); v44.i32[0] = sub_10045EB48(a1[172]); v44.i32[1] = v20; v45 = v21; v46 = 1065353216; (*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v18 + 1360LL))(v18, &v44); v44.i32[0] = sub_10045EAF4(a1[172]); v44.i32[1] = v22; v45 = v23; v46 = 1065353216; (*(void (__fastcall **)(__int64, float32x2_t *))(*(_QWORD *)v18 + 1392LL))(v18, &v44); v24 = cocos2d::CCDelayTime::create(0.5); v25 = (unsigned __int8)cocos2d::CCCallFunc::create((__int64)a1, (__int64)GJPathPage::unlockAnimationStep2, 0); v33 = sub_10021D420((__int64)v24, v26, v27, v28, v29, v30, v31, v32, v25); cocos2d::CCNode::runAction((__int64)a1, v33); v34 = cocos2d::CCDelayTime::create(2.4); v35 = (unsigned __int8)cocos2d::CCCallFunc::create((__int64)a1, (__int64)GJPathPage::unlockAnimationFinished, 0); v43 = sub_10021D420((__int64)v34, v36, v37, v38, v39, v40, v41, v42, v35); cocos2d::CCNode::runAction((__int64)a1, v43); if ( v48 < 0 ) operator delete(v47[0]); }
GD Web Decomp Icon

GD Web Decomp

Raw Source