// // PlayerObject::startDashing from 0x43a1b8 to 0x43a688 (1232 bytes) // // 2 xrefs: // > PlayerObject::ringJump @ 0x449a06 // > PlayerObject::loadFromCheckpoint @ 0x44b2b2 // // 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:48:21 +0000 // int __fastcall PlayerObject::startDashing(int this, DashRingObject *a2) { int v3; // r4 float v4; // s14 int v5; // r6 float v6; // s15 int (__fastcall *v7)(DashRingObject *); // r3 float v8; // s16 float v9; // s17 float v10; // s15 float v11; // r2 float v12; // s14 float v13; // s15 double v14; // d6 double v15; // d5 PlayerObject *v16; // r0 int v17; // r1 double v18; // d7 float v19; // s16 float v20; // s17 float v21; // r3 cocos2d::CCEaseInOut *v22; // r0 float v23; // r2 cocos2d::CCSequence *v24; // r7 float v25; // r3 cocos2d::CCEaseInOut *v26; // r0 float v27; // r2 cocos2d::CCFiniteTimeAction *v28; // r0 cocos2d::CCAction *v29; // r0 const char *v30; // r1 unsigned __int8 *v31; // r3 float v32; // r11 unsigned __int8 v33; // r10 GameManager *v34; // r6 int v35; // r0 void (__fastcall *v36)(GameManager *, _DWORD *); // r9 int v37; // r9 cocos2d::CCArray *v38; // r0 cocos2d::CCSpriteFrameCache *v39; // r0 cocos2d::CCArray *v40; // r8 cocos2d::CCSpriteFrameCache *v41; // r0 const char *v42; // r1 cocos2d::CCString *v43; // r0 const char *CString; // r0 cocos2d::CCObject *v45; // r0 float v46; // r2 cocos2d::CCAnimate *v47; // r0 cocos2d::CCAnimation *v48; // r1 cocos2d::CCFiniteTimeAction *v49; // r0 cocos2d::CCAction *v50; // r0 float v51; // r1 cocos2d::CCSequence *v52; // r7 float v53; // r1 cocos2d::CCFiniteTimeAction *v54; // r0 cocos2d::CCAction *v55; // r0 int v56; // r3 float v57; // r1 unsigned __int8 v58; // r2 cocos2d::CCAction *v59; // r0 float v60; // r1 cocos2d::CCSequence *v61; // r5 cocos2d::CCFiniteTimeAction *v62; // r0 cocos2d::CCAction *v63; // r0 unsigned __int8 v64; // [sp+0h] [bp-34h] int v65; // [sp+0h] [bp-34h] unsigned __int8 v66; // [sp+0h] [bp-34h] unsigned __int8 v67; // [sp+8h] [bp-2Ch] cocos2d::CCSequence *v68; // [sp+10h] [bp-24h] cocos2d::CCSpriteFrameCache *v69; // [sp+14h] [bp-20h] float v70; // [sp+18h] [bp-1Ch] BYREF float v71; // [sp+1Ch] [bp-18h] BYREF float v72; // [sp+20h] [bp-14h] _DWORD v73[2]; // [sp+24h] [bp-10h] BYREF v3 = this; if ( *(_BYTE *)(this + 1996) ) return this; *(_BYTE *)(this + 1996) = 1; *(_QWORD *)(this + 2040) = 0; PlayerObject::stopRotation((PlayerObject *)this, 0, 3); if ( *(_BYTE *)(v3 + 2320) && PlayerObject::isInNormalMode((PlayerObject *)v3) ) PlayerObject::stopPlatformerJumpAnimation(v3); if ( !*(_BYTE *)(v3 + 1956) ) PlayerObject::deactivateStreak(v3, *(unsigned __int8 *)(v3 + 1956)); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(v3 + 1388) + 172))(*(_DWORD *)(v3 + 1388), 1); v4 = *(double *)(v3 + 1208); v70 = v4; if ( !a2 ) { v5 = 0; goto LABEL_28; } *(_DWORD *)(v3 + 1224) = a2; v5 = *((unsigned __int8 *)a2 + 908); v6 = -*((float *)a2 + 209); *(_QWORD *)(v3 + 1216) = *(_QWORD *)(v3 + 2128); v7 = *(int (__fastcall **)(DashRingObject *))(*(_DWORD *)a2 + 788); v70 = v6; v8 = COERCE_FLOAT(v7(a2)); if ( (*(int (__fastcall **)(DashRingObject *))(*(_DWORD *)a2 + 712))(a2) ) v8 = v8 + 180.0; v9 = COERCE_FLOAT((*(int (__fastcall **)(DashRingObject *))(*(_DWORD *)a2 + 192))(a2)); if ( fabsf(v9 - (*(float (__fastcall **)(DashRingObject *))(*(_DWORD *)a2 + 200))(a2)) > 179.0 ) v8 = v8 + 180.0; v70 = fmodf(-v8, 360.0); snapRotation360(&v70); if ( !*(_BYTE *)(v3 + 2320) ) PlayerObject::limitDashRotation((float *)v3, &v70); cocos2d::ccpForAngle((cocos2d *)v73, v70 * 0.017453); if ( *(_BYTE *)(v3 + 2320) ) v10 = *((float *)a2 + 413) * 5.77; else v10 = 1.0; cocos2d::CCPoint::operator*(&v71, v73, LODWORD(v10)); if ( *(_BYTE *)(v3 + 1963) ) { v11 = v72; v72 = v71; v71 = v11; } v12 = v71; v13 = v72; v14 = v71; v15 = v72; *(double *)(v3 + 1192) = v71; *(double *)(v3 + 1200) = v15; if ( !*(_BYTE *)(v3 + 2320) ) { v18 = (float)(v13 / fabsf(v12)); *(double *)(v3 + 1200) = v18; *(double *)(v3 + 1192) = fabs(v18); goto LABEL_26; } if ( v14 < 0.0 ) { v16 = (PlayerObject *)v3; v17 = 1; LABEL_24: PlayerObject::doReversePlayer(v16, v17); goto LABEL_26; } if ( v14 > 0.0 ) { v16 = (PlayerObject *)v3; v17 = 0; goto LABEL_24; } LABEL_26: *(double *)(v3 + 1208) = v70; LABEL_28: PlayerObject::updateDashArt(v3); cocos2d::CCNode::stopAllActions(*(cocos2d::CCNode **)(v3 + 1388)); v19 = COERCE_FLOAT((*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v3 + 1388) + 68))(*(_DWORD *)(v3 + 1388))) * 1.1; v20 = COERCE_FLOAT((*(int (__fastcall **)(_DWORD))(**(_DWORD **)(v3 + 1388) + 76))(*(_DWORD *)(v3 + 1388))) * 1.2; (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(v3 + 1388) + 64))(*(_DWORD *)(v3 + 1388), 1050253722); (*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(v3 + 1388) + 72))(*(_DWORD *)(v3 + 1388), 1045220557); v22 = (cocos2d::CCEaseInOut *)cocos2d::CCScaleTo::create((cocos2d::CCScaleTo *)0x3DCCCCCD, v19 * 0.9, v20 * 1.2, v21); v24 = (cocos2d::CCSequence *)cocos2d::CCEaseInOut::create(v22, (cocos2d::CCActionInterval *)0x40000000, v23); v26 = (cocos2d::CCEaseInOut *)cocos2d::CCScaleTo::create((cocos2d::CCScaleTo *)0x3DCCCCCD, v19, v20, v25); v28 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCEaseInOut::create(v26, (cocos2d::CCActionInterval *)0x40000000, v27); v29 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v24, v28, 0); cocos2d::CCNode::runAction(*(cocos2d::CCNode **)(v3 + 1388), v29); cocos2d::CCParticleSystem::resumeSystem(*(cocos2d::CCParticleSystem **)(v3 + 1768)); if ( *(_BYTE *)(v3 + 2154) ) v31 = (unsigned __int8 *)(v3 + 2106); else v31 = (unsigned __int8 *)(v3 + 2109); LODWORD(v32) = *v31; v33 = v31[1]; v67 = v31[2]; if ( a2 && *(_BYTE *)(v3 + 1604) && !v5 ) { v34 = (GameManager *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"playerDash2_boom2_001.png", v30); v35 = GameManager::sharedState(v34); (*(void (__fastcall **)(_DWORD, GameManager *, int))(**(_DWORD **)(*(_DWORD *)(v35 + 404) + 2436) + 232))( *(_DWORD *)(*(_DWORD *)(v35 + 404) + 2436), v34, 40); LODWORD(v71) = 770; LODWORD(v72) = 1; (*(void (__fastcall **)(GameManager *, int, int))(*(_DWORD *)v34 + 540))(v34, 770, 1); (*(void (__fastcall **)(GameManager *, unsigned int))(*(_DWORD *)v34 + 180))(v34, LODWORD(v70) ^ 0x80000000); (*(void (__fastcall **)(GameManager *, int))(*(_DWORD *)v34 + 80))(v34, 1067030938); v36 = *(void (__fastcall **)(GameManager *, _DWORD *))(*(_DWORD *)v34 + 92); (*(void (__fastcall **)(_DWORD *, DashRingObject *))(*(_DWORD *)a2 + 680))(v73, a2); v36(v34, v73); v37 = 1; v38 = (cocos2d::CCArray *)(*(int (__fastcall **)(GameManager *, __int16 *))(*(_DWORD *)v34 + 480))( v34, &word_BEBBA4); v39 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCArray::create(v38); v40 = v39; do { v41 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v39); v42 = (const char *)v37++; v69 = v41; v43 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"playerDash2_boom2_%03d.png", v42); CString = (const char *)cocos2d::CCString::getCString(v43); v45 = (cocos2d::CCObject *)cocos2d::CCSpriteFrameCache::spriteFrameByName(v69, CString); v39 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCArray::addObject(v40, v45); } while ( v37 != 10 ); v47 = (cocos2d::CCAnimate *)cocos2d::CCAnimation::createWithSpriteFrames(v40, (cocos2d::CCArray *)0x3D4CCCCD, v46); v68 = (cocos2d::CCSequence *)cocos2d::CCAnimate::create(v47, v48); v73[0] = 268; v73[1] = 1; v49 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(v34, 268, 1); v50 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v68, v49, 0); cocos2d::CCNode::runAction(v34, v50); v52 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create((cocos2d::CCDelayTime *)0x3E4CCCCD, v51); v54 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCFadeOut::create((cocos2d::CCFadeOut *)0x3E99999A, v53); v55 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v52, v54, 0); cocos2d::CCNode::runAction(v34, v55); v56 = *((_DWORD *)a2 + 223); if ( v56 == 1704 ) v57 = 0.0; else LODWORD(v57) = 255; if ( v56 == 1704 ) v58 = -1; else v58 = 0; v59 = (cocos2d::CCAction *)cocos2d::CCTintTo::create((cocos2d::CCTintTo *)0x3E99999A, v57, v58, LOBYTE(v57), v64); cocos2d::CCNode::runAction(v34, v59); LOWORD(v65) = -1; BYTE2(v65) = -1; PlayerObject::flashPlayer(v3, 1045220557, 1036831949, 0xFFFFFF, v65); (*(void (__fastcall **)(_DWORD, __int16 *))(**(_DWORD **)(v3 + 1388) + 480))(*(_DWORD *)(v3 + 1388), &word_BEBBA4); v61 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create((cocos2d::CCDelayTime *)0x3DCCCCCD, v60); v62 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCTintTo::create((cocos2d::CCTintTo *)0x3E4CCCCD, v32, v33, v67, v66); v63 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v61, v62, 0); cocos2d::CCNode::runAction(*(cocos2d::CCNode **)(v3 + 1388), v63); } this = cocos2d::CCPoint::operator=(v3 + 2068, &unk_D2B834); if ( *(_DWORD *)(v3 + 2440) ) return PlayerObject::gameEventTriggered((PlayerObject *)v3, 23, 0); return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source