// // PlayerObject::updatePlayerArt from 0x100415bb0 to 0x100415fa8 (1016 bytes) // // 13 xrefs: // > PlayerObject::doReversePlayer @ 0x100402532 // > PlayerObject::flipGravity @ 0x100403a51 // > PlayerObject::rotateGameplay @ 0x100412582 // > PlayerObject::rotateGameplayOnly @ 0x100415fbc // > PlayerObject::toggleFlyMode @ 0x100416684 // > PlayerObject::modeDidChange @ 0x100416d39 // > PlayerObject::toggleBirdMode @ 0x100417142 // > PlayerObject::toggleSwingMode @ 0x100417874 // > PlayerObject::toggleDartMode @ 0x100418288 // > PlayerObject::toggleRollMode @ 0x10041867e // > PlayerObject::toggleRobotMode @ 0x100418ceb // > PlayerObject::toggleSpiderMode @ 0x10041912e // > PlayerObject::loadFromCheckpoint @ 0x10041cd90 // // 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::updatePlayerArt(PlayerObject *a1) { cocos2d::CCNode *m_mainLayer; // rdi bool *p_m_isSideways; // r12 cocos2d::CCNode *v4; // rdi __int64 v5; // xmm0_8 cocos2d::CCNode *v6; // rdi bool v7; // zf float v8; // xmm0_4 float v9; // xmm1_4 __int64 v10; // xmm1_8 __int64 v11; // xmm0_8 __m128 v12; // xmm0 double v13; // [rsp+0h] [rbp-40h] BYREF unsigned __int64 v14; // [rsp+8h] [rbp-38h] BYREF unsigned __int64 v15; // [rsp+10h] [rbp-30h] BYREF float v16; // [rsp+1Ch] [rbp-24h] m_mainLayer = a1->m_mainLayer; if ( a1->m_isGoingLeft ) { ((void (__fastcall *)(cocos2d::CCNode *, float))m_mainLayer->setScaleX)(m_mainLayer, -1.0); if ( a1->m_isSwing ) { LABEL_6: p_m_isSideways = &a1->m_isSideways; v4 = a1->m_mainLayer; LABEL_7: v5 = 1065353216; goto LABEL_8; } } else { ((void (__fastcall *)(cocos2d::CCNode *, float))m_mainLayer->setScaleX)(m_mainLayer, 1.0); if ( a1->m_isSwing ) goto LABEL_6; } if ( a1->m_isBall ) goto LABEL_6; if ( a1->m_isShip || a1->m_isBird || a1->m_isDart || a1->m_isRobot ) { p_m_isSideways = &a1->m_isSideways; v4 = a1->m_mainLayer; } else { p_m_isSideways = &a1->m_isSideways; v4 = a1->m_mainLayer; if ( !a1->m_isSpider ) goto LABEL_7; } if ( a1->m_isUpsideDown ) { v5 = 3212836864LL; if ( !a1->m_isSideways ) goto LABEL_8; } else { v5 = 1065353216; if ( !a1->m_isSideways ) goto LABEL_8; } v5 ^= 0x8000000080000000LL; LABEL_8: ((void (__fastcall *)(cocos2d::CCNode *, double))v4->setScaleY)(v4, *(double *)&v5); v7 = !a1->m_isSideways; v6 = a1->m_mainLayer; v16 = -90.0; if ( v7 ) { ((void (__fastcall *)(cocos2d::CCNode *, double))v6->setRotation)(v6, 0.0); v7 = !a1->m_isUpsideDown; if ( a1->m_isUpsideDown ) goto LABEL_10; } else { ((void (__fastcall *)(cocos2d::CCNode *))v6->setRotation)(v6); v7 = !a1->m_isUpsideDown; if ( a1->m_isUpsideDown ) { LABEL_10: if ( v7 ) goto LABEL_11; LABEL_15: v8 = 180.0; if ( a1->m_isSideways ) goto LABEL_17; goto LABEL_16; } } v16 = 90.0; if ( !v7 ) goto LABEL_15; LABEL_11: v8 = 0.0; if ( !a1->m_isSideways ) LABEL_16: v8 = v16; LABEL_17: v16 = v8; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))a1->m_playerGroundParticles->setAngle)(a1->m_playerGroundParticles); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))a1->m_trailingParticles->setAngle)( a1->m_trailingParticles, v8); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))a1->m_shipClickParticles->setAngle)( a1->m_shipClickParticles, v8); if ( a1->m_isUpsideDown ) v9 = 300.0; else v9 = -300.0; sub_10028CBE0((float *)&v14, 0.0, v9); if ( a1->m_isSideways ) _mm_storel_ps((double *)&v14, _mm_shuffle_ps((__m128)v14, (__m128)v14, 225)); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, unsigned __int64 *))a1->m_playerGroundParticles->setGravity)( a1->m_playerGroundParticles, &v14); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, unsigned __int64 *))a1->m_trailingParticles->setGravity)( a1->m_trailingParticles, &v14); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, unsigned __int64 *))a1->m_shipClickParticles->setGravity)( a1->m_shipClickParticles, &v14); sub_10028CBE0((float *)&v15, 0.0, 2.0); if ( a1->m_isSideways ) _mm_storel_ps((double *)&v15, _mm_shuffle_ps((__m128)v15, (__m128)v15, 225)); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, unsigned __int64 *))a1->m_trailingParticles->setPosVar)( a1->m_trailingParticles, &v15); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, unsigned __int64 *))a1->m_shipClickParticles->setPosVar)( a1->m_shipClickParticles, &v15); if ( a1->m_isUpsideDown ) { v10 = 3282370560LL; v11 = 1114636288; if ( !a1->m_isSideways ) goto LABEL_30; } else { v10 = 1134886912; v11 = 1131413504; if ( !a1->m_isSideways ) LABEL_30: v11 = v10; } v16 = *(float *)&v11; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, double, double))a1->m_ufoClickParticles->setAngle)( a1->m_ufoClickParticles, *(double *)&v11, *(double *)&v10); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))a1->m_robotBurstParticles->setAngle)( a1->m_robotBurstParticles, v16); sub_10028CBE0((float *)&v13, 5.0, 1.0); *(double *)v12.i64 = sub_10028CC90(&v15, &v13); if ( a1->m_isSideways ) { v12 = _mm_shuffle_ps((__m128)v15, (__m128)v15, 225); _mm_storel_ps((double *)&v15, v12); } ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, unsigned __int64 *, double))a1->m_ufoClickParticles->setPosVar)( a1->m_ufoClickParticles, &v15, *(double *)v12.i64); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, unsigned __int64 *))a1->m_robotBurstParticles->setPosVar)( a1->m_robotBurstParticles, &v15); sub_10028CBE0((float *)&v13, 5.0, 1.0); *(double *)v12.i64 = sub_10028CC90(&v15, &v13); if ( a1->m_isRobot || a1->m_isSpider ) { sub_10028CBE0((float *)&v13, 15.0, 0.0); *(double *)v12.i64 = sub_10028CC90(&v15, &v13); } if ( *p_m_isSideways ) { v12 = _mm_shuffle_ps((__m128)v15, (__m128)v15, 225); _mm_storel_ps((double *)&v15, v12); } ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, unsigned __int64 *, double))a1->m_playerGroundParticles->setPosVar)( a1->m_playerGroundParticles, &v15, *(double *)v12.i64); }
GD Web Decomp Icon

GD Web Decomp

Raw Source