// // PlayerObject::updateDashArt from 0x100410c80 to 0x100411169 (1257 bytes) // // 11 xrefs: // > PlayerObject::redirectDash @ 0x100410c63 // > PlayerObject::startDashing @ 0x100411852 // > PlayerObject::rotateGameplay @ 0x10041289d // > PlayerObject::toggleFlyMode @ 0x10041668c // > PlayerObject::modeDidChange @ 0x100416d47 // > PlayerObject::toggleBirdMode @ 0x10041714a // > PlayerObject::toggleSwingMode @ 0x100417884 // > PlayerObject::toggleDartMode @ 0x100418290 // > PlayerObject::toggleRollMode @ 0x100418690 // > PlayerObject::toggleRobotMode @ 0x100418cf3 // > PlayerObject::toggleSpiderMode @ 0x100419136 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall PlayerObject::updateDashArt(PlayerObject *a1) { double v2; // xmm0_8 cocos2d::CCSprite *m_dashFireSprite; // r14 cocos2d::CCSprite_vtbl *v4; // rax __int64 v5; // xmm0_8 cocos2d::CCSprite *v6; // r14 float v7; // xmm1_4 double m_dashX; // xmm0_8 float m_dashY; // xmm1_4 __m128 v10; // xmm0 __m128 v11; // xmm2 __m128 v12; // xmm1 cocos2d::CCRotateBy *v13; // rax cocos2d::CCRepeatForever *v14; // r14 cocos2d::CCRotateBy *v15; // rax cocos2d::CCRepeatForever *v16; // r14 cocos2d::CCSprite *v17; // r14 double v18; // xmm0_8 GJRobotSprite *m_robotSprite; // rdi cocos2d::CCSprite *v20; // r14 double v21; // xmm0_8 GJSpiderSprite *m_spiderSprite; // rdi __int128 v23; // [rsp+0h] [rbp-60h] BYREF void *__p; // [rsp+10h] [rbp-50h] __int128 v25; // [rsp+18h] [rbp-48h] BYREF void *v26; // [rsp+28h] [rbp-38h] unsigned int v27; // [rsp+34h] [rbp-2Ch] BYREF float v28; // [rsp+38h] [rbp-28h] float v29; // [rsp+3Ch] [rbp-24h] if ( !a1->m_isDashing ) return; cocos2d::CCNode::stopActionByTag(a1->m_iconSprite, 12); cocos2d::CCNode::stopActionByTag(a1->m_iconGlow, 12); ((void (__fastcall *)(cocos2d::CCSprite *, double))a1->m_iconSprite->setRotation)(a1->m_iconSprite, 0.0); ((void (__fastcall *)(cocos2d::CCSprite *, double))a1->m_iconGlow->setRotation)(a1->m_iconGlow, 0.0); if ( a1->m_isSideways ) { v2 = 90.0 - a1->m_dashAngle; *(float *)&v2 = v2; if ( !a1->m_isGoingLeft ) goto LABEL_7; goto LABEL_6; } v2 = 0.0 - a1->m_dashAngle; *(float *)&v2 = v2; if ( a1->m_isGoingLeft ) LABEL_6: *(float *)&v2 = *(float *)&v2 + 180.0; LABEL_7: ((void (__fastcall *)(PlayerObject *, double))a1->setRotation)(a1, v2); cocos2d::CCNode::stopAllActions(a1->m_dashFireSprite); if ( a1->m_isShip ) { m_dashFireSprite = a1->m_dashFireSprite; sub_10028CBE0((float *)&v27, 0.0, -2.0); ((void (__fastcall *)(cocos2d::CCSprite *, unsigned int *))m_dashFireSprite->setPosition)(m_dashFireSprite, &v27); ((void (__fastcall *)(cocos2d::CCSprite *, float))a1->m_dashFireSprite->setScaleX)(a1->m_dashFireSprite, 1.0); v4 = a1->m_dashFireSprite->__vftable; v5 = 1062836634; } else if ( a1->m_isBird ) { v6 = a1->m_dashFireSprite; sub_10028CBE0((float *)&v27, 0.0, 0.0); ((void (__fastcall *)(cocos2d::CCSprite *, unsigned int *))v6->setPosition)(v6, &v27); ((void (__fastcall *)(cocos2d::CCSprite *, float))a1->m_dashFireSprite->setScaleX)(a1->m_dashFireSprite, 0.94999999); v4 = a1->m_dashFireSprite->__vftable; v5 = 1063675494; } else { if ( a1->m_isRobot ) { v17 = a1->m_dashFireSprite; sub_10028CBE0((float *)&v27, 1.0, 0.0); ((void (__fastcall *)(cocos2d::CCSprite *, unsigned int *))v17->setPosition)(v17, &v27); ((void (__fastcall *)(cocos2d::CCSprite *, float))a1->m_dashFireSprite->setScaleX)( a1->m_dashFireSprite, 0.89999998); v18 = ((double (__fastcall *)(cocos2d::CCSprite *, float))a1->m_dashFireSprite->setScaleY)( a1->m_dashFireSprite, 0.85000002); m_robotSprite = a1->m_robotSprite; LOBYTE(v23) = 18; strcpy((char *)&v23 + 1, "fall_loop"); CCAnimatedSprite::runAnimation((__int64)m_robotSprite, &v23, v18); if ( (v23 & 1) != 0 ) operator delete(__p); goto LABEL_12; } v20 = a1->m_dashFireSprite; if ( a1->m_isSpider ) { sub_10028CBE0((float *)&v27, 1.0, 0.0); ((void (__fastcall *)(cocos2d::CCSprite *, unsigned int *))v20->setPosition)(v20, &v27); ((void (__fastcall *)(cocos2d::CCSprite *, float))a1->m_dashFireSprite->setScaleX)( a1->m_dashFireSprite, 0.94999999); v21 = ((double (__fastcall *)(cocos2d::CCSprite *, float))a1->m_dashFireSprite->setScaleY)( a1->m_dashFireSprite, 0.80000001); m_spiderSprite = a1->m_spiderSprite; LOBYTE(v25) = 18; strcpy((char *)&v25 + 1, "fall_loop"); CCAnimatedSprite::runAnimation((__int64)m_spiderSprite, &v25, v21); if ( (v25 & 1) != 0 ) operator delete(v26); goto LABEL_12; } sub_10028CBE0((float *)&v27, 0.0, 0.0); ((void (__fastcall *)(cocos2d::CCSprite *, unsigned int *))v20->setPosition)(v20, &v27); ((void (__fastcall *)(cocos2d::CCSprite *, float))a1->m_dashFireSprite->setScaleX)(a1->m_dashFireSprite, 0.89999998); v4 = a1->m_dashFireSprite->__vftable; v5 = 1061997773; } ((void (__fastcall *)(double))v4->setScaleY)(*(double *)&v5); LABEL_12: if ( !a1->m_isShip && !a1->m_isBird && !a1->m_isDart && !a1->m_isSwing && !a1->m_isRobot && !a1->m_isSpider ) { ((void (__fastcall *)(cocos2d::CCSprite *, float))a1->m_iconSprite->setScale)(a1->m_iconSprite, 0.89999998); ((void (__fastcall *)(cocos2d::CCSprite *, float))a1->m_iconGlow->setScale)(a1->m_iconGlow, 0.89999998); v7 = a1->m_gravityMod * flt_10081B710[a1->m_isSideways == a1->m_isUpsideDown]; if ( a1->m_isPlatformer ) { m_dashX = a1->m_dashX; v29 = a1->m_gravityMod * flt_10081B710[a1->m_isSideways == a1->m_isUpsideDown]; *(float *)&m_dashX = m_dashX; m_dashY = a1->m_dashY; sub_10028CBE0((float *)&v27, *(float *)&m_dashX, m_dashY); v10 = (__m128)v27; v10.f32[0] = fsqrt((float)(v10.f32[0] * v10.f32[0]) + (float)(v28 * v28)); v11 = v10; v11.f32[0] = (float)((float)(v10.f32[0] / 17.310005) * 1.7) + 0.30000001; v12 = _mm_cmplt_ss((__m128)0x418A7AE4u, v10); v7 = v29 * COERCE_FLOAT(v12.i32[0] & 0x40000000 | _mm_andnot_ps(v12, v11).u32[0]); } v29 = v7; v13 = cocos2d::CCRotateBy::create_1(0.30000001, v7); v14 = cocos2d::CCRepeatForever::create(v13); ((void (__fastcall *)(cocos2d::CCRepeatForever *, __int64))v14->setTag)(v14, 12); cocos2d::CCNode::runAction(a1->m_iconSprite, v14); v15 = cocos2d::CCRotateBy::create_1(0.30000001, v29); v16 = cocos2d::CCRepeatForever::create(v15); ((void (__fastcall *)(cocos2d::CCRepeatForever *, __int64))v16->setTag)(v16, 12); cocos2d::CCNode::runAction(a1->m_iconGlow, v16); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source