// // PlayerObject::startDashing from 0x755878 to 0x755eb0 (1592 bytes) // // 3 xrefs: // > PlayerObject::ringJump @ 0x76a464 // > PlayerObject::loadFromCheckpoint @ 0x76bdfc // > @ 0x833c8 // // 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 12:52:57 +0000 // __int64 __fastcall PlayerObject::startDashing(PlayerObject *this, DashRingObject *a2) { long double v5; // q0 float v6; // s0 __int64 v7; // x1 unsigned int v8; // w21 float v9; // s0 float (__fastcall *v10)(DashRingObject *); // x1 float v11; // s8 float v12; // s9 float v13; // s1 int v14; // w0 float v15; // s0 double v16; // d2 double v17; // d3 float v18; // s8 float v19; // s11 cocos2d::CCScaleTo *v20; // x0 cocos2d::CCEaseInOut *v21; // x0 cocos2d::CCActionInterval *v22; // x1 cocos2d::CCScaleTo *v23; // x22 cocos2d::CCEaseInOut *v24; // x0 cocos2d::CCActionInterval *v25; // x1 cocos2d::CCFiniteTimeAction *v26; // x0 cocos2d::CCAction *v27; // x0 unsigned __int8 *v28; // x0 unsigned int v29; // w27 unsigned __int8 v30; // w26 int v31; // w0 double v32; // d0 unsigned int v33; // w21 GameManager *v34; // x22 __int64 v35; // x0 void (__fastcall *v36)(GameManager *, __int64 *); // x23 cocos2d::CCArray *v37; // x0 cocos2d::CCSpriteFrameCache *v38; // x0 cocos2d::CCArray *v39; // x24 cocos2d::CCSpriteFrameCache *v40; // x25 const char *v41; // x1 cocos2d::CCString *v42; // x0 const char *CString; // x0 cocos2d::CCObject *v44; // x0 cocos2d::CCAnimate *v45; // x0 cocos2d::CCAnimation *v46; // x1 cocos2d::CCSequence *v47; // x23 cocos2d::CCFiniteTimeAction *v48; // x0 cocos2d::CCAction *v49; // x0 cocos2d::CCDelayTime *v50; // x0 cocos2d::CCFadeOut *v51; // x23 cocos2d::CCFiniteTimeAction *v52; // x0 cocos2d::CCAction *v53; // x0 unsigned __int8 v54; // w3 int v55; // w2 unsigned __int8 v56; // w1 cocos2d::CCTintTo *v57; // x0 cocos2d::CCAction *v58; // x0 long double v59; // q0 long double v60; // q0 cocos2d::CCDelayTime *v61; // x0 cocos2d::CCSequence *v62; // x20 unsigned __int8 v63; // w3 cocos2d::CCFiniteTimeAction *v64; // x0 cocos2d::CCAction *v65; // x0 unsigned __int8 v66; // [xsp+98h] [xbp+98h] float v67; // [xsp+A4h] [xbp+A4h] BYREF float v68; // [xsp+A8h] [xbp+A8h] float v69; // [xsp+ACh] [xbp+ACh] __int64 v70; // [xsp+B0h] [xbp+B0h] BYREF if ( *((_BYTE *)this + 2460) ) return _stack_chk_guard; *((_BYTE *)this + 2460) = 1; *((_QWORD *)this + 313) = 0; *(float *)&v5 = PlayerObject::stopRotation(this); if ( *((_BYTE *)this + 2832) && (unsigned __int8)PlayerObject::isInNormalMode(this) ) PlayerObject::stopPlatformerJumpAnimation(this); if ( !*((_BYTE *)this + 2420) ) PlayerObject::deactivateStreak((cocos2d::CCMotionStreak **)this, 0); (*(void (__fastcall **)(_QWORD, __int64, long double))(**((_QWORD **)this + 204) + 344LL))( *((_QWORD *)this + 204), 1, v5); v6 = *((double *)this + 175); v67 = v6; if ( !a2 ) { v8 = 0; goto LABEL_20; } v7 = *((_QWORD *)this + 328); *((_QWORD *)this + 177) = a2; v8 = *((unsigned __int8 *)a2 + 1044); v9 = -*((float *)a2 + 243); *((_QWORD *)this + 176) = v7; v10 = *(float (__fastcall **)(DashRingObject *))(*(_QWORD *)a2 + 1576LL); v67 = v9; v11 = v10(a2); if ( (*(unsigned __int8 (__fastcall **)(DashRingObject *))(*(_QWORD *)a2 + 1424LL))(a2) ) v11 = v11 + 180.0; v12 = (*(float (__fastcall **)(DashRingObject *))(*(_QWORD *)a2 + 384LL))(a2); if ( vabds_f32(v12, (*(float (__fastcall **)(DashRingObject *))(*(_QWORD *)a2 + 400LL))(a2)) > 179.0 ) v11 = v11 + 180.0; v67 = fmodf(-v11, 360.0); snapRotation360(&v67); if ( !*((_BYTE *)this + 2832) ) PlayerObject::limitDashRotation(this, &v67); cocos2d::ccpForAngle(&v70, (cocos2d *)&v70, v67 * 0.017453); if ( *((_BYTE *)this + 2832) ) { cocos2d::CCPoint::operator*(&v70, *((float *)a2 + 461) * 5.77); if ( !*((_BYTE *)this + 2427) ) { LABEL_15: v13 = v68; v14 = *((unsigned __int8 *)this + 2832); v15 = v69; v16 = v68; v17 = v69; *((double *)this + 173) = v68; *((double *)this + 174) = v17; if ( v14 ) goto LABEL_16; goto LABEL_28; } } else { cocos2d::CCPoint::operator*(&v70, 1.0); if ( !*((_BYTE *)this + 2427) ) goto LABEL_15; } v31 = *((unsigned __int8 *)this + 2832); v13 = v69; v15 = v68; v69 = v68; v16 = v13; v68 = v13; *((double *)this + 173) = v13; *((double *)this + 174) = v15; if ( v31 ) { LABEL_16: if ( v16 < 0.0 ) { PlayerObject::doReversePlayer(this, 1u); } else if ( v16 > 0.0 ) { PlayerObject::doReversePlayer(this, 0); } goto LABEL_19; } LABEL_28: v32 = (float)(v15 / fabsf(v13)); *((double *)this + 174) = v32; *((double *)this + 173) = fabs(v32); LABEL_19: *((double *)this + 175) = v67; LABEL_20: PlayerObject::updateDashArt(this); cocos2d::CCNode::stopAllActions(*((cocos2d::CCNode **)this + 204)); v18 = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 204) + 136LL))(*((_QWORD *)this + 204)) * 1.1; v19 = (*(float (__fastcall **)(_QWORD))(**((_QWORD **)this + 204) + 152LL))(*((_QWORD *)this + 204)) * 1.2; (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 204) + 128LL))(*((_QWORD *)this + 204), 0.3); v20 = (cocos2d::CCScaleTo *)(*(__int64 (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 204) + 144LL))( *((_QWORD *)this + 204), 0.2); v21 = (cocos2d::CCEaseInOut *)cocos2d::CCScaleTo::create(v20, 0.1, v18 * 0.9, v19 * 1.2); v23 = (cocos2d::CCScaleTo *)cocos2d::CCEaseInOut::create(v21, v22, 2.0); v24 = (cocos2d::CCEaseInOut *)cocos2d::CCScaleTo::create(v23, 0.1, v18, v19); v26 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCEaseInOut::create(v24, v25, 2.0); v27 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v23, v26, 0); cocos2d::CCNode::runAction(*((cocos2d::CCNode **)this + 204), v27); cocos2d::CCParticleSystem::resumeSystem(*((cocos2d::CCParticleSystem **)this + 276)); v28 = (unsigned __int8 *)this + 2605; if ( *((_BYTE *)this + 2650) ) v28 = (unsigned __int8 *)this + 2602; v29 = *v28; v30 = v28[1]; v66 = v28[2]; if ( a2 && *((unsigned __int8 *)this + 1972) > v8 ) { v33 = 1; v34 = (GameManager *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"playerDash2_boom2_001.png", (const char *)this + 2602); v35 = GameManager::sharedState(v34); (*(void (__fastcall **)(_QWORD, GameManager *, __int64))(**(_QWORD **)(*(_QWORD *)(v35 + 544) + 3920LL) + 464LL))( *(_QWORD *)(*(_QWORD *)(v35 + 544) + 3920LL), v34, 40); (*(void (__fastcall **)(GameManager *, __int64))(*(_QWORD *)v34 + 1080LL))(v34, 0x100000302LL); (*(void (__fastcall **)(GameManager *, float))(*(_QWORD *)v34 + 360LL))(v34, -v67); (*(void (__fastcall **)(GameManager *, float))(*(_QWORD *)v34 + 160LL))(v34, 1.2); v36 = *(void (__fastcall **)(GameManager *, __int64 *))(*(_QWORD *)v34 + 184LL); (*(void (__fastcall **)(__int64 *__return_ptr, DashRingObject *))(*(_QWORD *)a2 + 1360LL))(&v70, a2); v36(v34, &v70); v37 = (cocos2d::CCArray *)(*(__int64 (__fastcall **)(GameManager *, __int64 *))(*(_QWORD *)v34 + 960LL))( v34, &qword_113CF98); v38 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCArray::create(v37); v39 = v38; do { v40 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v38); v41 = (const char *)v33++; v42 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"playerDash2_boom2_%03d.png", v41); CString = (const char *)cocos2d::CCString::getCString(v42); v44 = (cocos2d::CCObject *)cocos2d::CCSpriteFrameCache::spriteFrameByName(v40, CString); v38 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCArray::addObject(v39, v44); } while ( v33 != 10 ); v45 = (cocos2d::CCAnimate *)cocos2d::CCAnimation::createWithSpriteFrames( v39, (cocos2d::CCArray *)&word_113C000, 0.05); v47 = (cocos2d::CCSequence *)cocos2d::CCAnimate::create(v45, v46); v48 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(v34, 536, 1); v49 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v47, v48, 0); v50 = (cocos2d::CCDelayTime *)cocos2d::CCNode::runAction(v34, v49); v51 = (cocos2d::CCFadeOut *)cocos2d::CCDelayTime::create(v50, 0.2); v52 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCFadeOut::create(v51, 0.3); v53 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v51, v52, 0); cocos2d::CCNode::runAction(v34, v53); v55 = *((_DWORD *)a2 + 257); if ( v55 == 1704 ) v56 = -1; else v56 = 0; if ( v55 == 1704 ) v57 = nullptr; else v57 = (cocos2d::CCTintTo *)(off_F8 + 7); v58 = (cocos2d::CCAction *)cocos2d::CCTintTo::create(v57, 0.3, v56, (unsigned __int8)v57, v54); cocos2d::CCNode::runAction(v34, v58); LODWORD(v59) = 1045220557; v60 = PlayerObject::flashPlayer((__int64)this, 0xFFFFFF, 0xFFFFFF, v59, 0.1); v61 = (cocos2d::CCDelayTime *)(*(__int64 (__fastcall **)(_QWORD, __int64 *, long double))(**((_QWORD **)this + 204) + 960LL))( *((_QWORD *)this + 204), &qword_113CF98, v60); v62 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(v61, 0.1); v64 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCTintTo::create((cocos2d::CCTintTo *)v29, 0.2, v30, v66, v63); v65 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v62, v64, 0); cocos2d::CCNode::runAction(*((cocos2d::CCNode **)this + 204), v65); } cocos2d::CCPoint::operator=((char *)this + 2532, &unk_155C638); if ( *((_QWORD *)this + 377) ) PlayerObject::gameEventTriggered((__int64)this, 23, 0); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source