// // PlayerObject::propellPlayer from 0x10041adf0 to 0x10041afcc (476 bytes) // // 2 xrefs: // > GJBaseGameLayer::gravBumpPlayer @ 0x1001284f3 // > PlayerObject::bumpPlayer @ 0x10041abfc // // 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 // // local variable allocation has failed, the output may be wrong! void __fastcall PlayerObject::propellPlayer(PlayerObject *a1, float a2, bool a3, int a4) { __m128 v6; // rt1 __int64 v7; // rax __m128 v8; // xmm0 __m128d v9; // xmm1 double v10; // xmm0_8 __m128d v11; // xmm3 GameObject *v12; // rdx void **v13; // r14 GJRobotSprite *m_robotSprite; // rdi GJSpiderSprite *m_spiderSprite; // rdi double *v16; // rax __int128 v17; // [rsp+8h] [rbp-48h] BYREF __int64 v18; // [rsp+18h] [rbp-38h] BYREF __int128 v19; // [rsp+20h] [rbp-30h] BYREF __int64 var2F_15[5]; // [rsp+30h] [rbp-20h] BYREF a1->m_maybeIsBoosted = 1; a1->m_isOnGround2 = 0; a1->m_isOnGround = 0; a1->m_shouldTryPlacingCheckpoint = 1; *(_WORD *)&a1->m_isOnSlope = 0; v6.i32[0] = LODWORD(a1->m_vehicleSize); v7 = _mm_cvtsi128_si32((__m128i)_mm_cmpneq_ss((__m128)0x3F800000u, v6)) & 1; a2 = a2 * 16.0; if ( a1->m_isUpsideDown ) *(__m128 *)&a2 = _mm_xor_ps(*(__m128 *)&a2, (__m128)xmmword_1008150B0); v8.f32[0] = a2 * *(float *)&dword_100817B28[v7]; v9 = 0; v9.f64[0] = v8.f32[0]; v10 = _mm_cvtepi32_pd(_mm_cvttps_epi32(v8)).f64[0]; if ( v10 == v9.f64[0] ) { a1->m_yVelocity = v9.f64[0]; if ( a1->m_isBall ) goto LABEL_9; } else { v9.f64[0] = (v9.f64[0] - v10) * 1000.0; v11 = _mm_or_pd(_mm_and_pd((__m128d)xmmword_100816590, v9), (__m128d)xmmword_100816960); v11.f64[0] = v11.f64[0] + v9.f64[0]; v9.f64[0] = _mm_round_sd((__m128d)0LL, v11, 11).f64[0] / 1000.0 + v10; a1->m_yVelocity = v9.f64[0]; if ( a1->m_isBall ) { LABEL_9: a1->m_yVelocity = v9.f64[0] * 0.6000000238418579; goto LABEL_10; } } if ( a1->m_isSpider || a1->m_isSwing ) goto LABEL_9; LABEL_10: PlayerObject::runRotateAction(a1, 0, a4); if ( !a3 ) PlayerObject::playBumpEffect(a1, a4, v12); if ( a1->m_isRobot ) { v13 = (void **)var2F_15; m_robotSprite = a1->m_robotSprite; LOBYTE(v19) = 20; strcpy((char *)&v19 + 1, "jump_start"); CCAnimatedSprite::runAnimation((__int64)m_robotSprite, &v19, v10); if ( (v19 & 1) == 0 ) goto LABEL_18; goto LABEL_17; } if ( a1->m_isSpider ) { v13 = (void **)&v18; m_spiderSprite = a1->m_spiderSprite; LOBYTE(v17) = 18; strcpy((char *)&v17 + 1, "fall_loop"); CCAnimatedSprite::runAnimation((__int64)m_spiderSprite, &v17, v10); if ( (v17 & 1) != 0 ) LABEL_17: operator delete(*v13); } LABEL_18: PlayerObject::activateStreak(a1); v16 = (double *)((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); sub_10028CC90(&a1->m_lastGroundedPos, v16); }
GD Web Decomp Icon

GD Web Decomp

Raw Source