// // GJBaseGameLayer::getGroundHeight from 0x100123010 to 0x100123113 (259 bytes) // // 0 xrefs: // // 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 // float __fastcall GJBaseGameLayer::getGroundHeight(GJBaseGameLayer *a1, PlayerObject *a2, int m_dualRelated) { __m128 v3; // xmm0 __int64 v4; // rcx __m128 v5; // xmm2 PlayerObject *v6; // rbx float v7; // xmm0_4 float v9; // [rsp+0h] [rbp-20h] v3 = (__m128)0x43960000u; while ( (unsigned int)(m_dualRelated - 23) < 2 ) { m_dualRelated = a1->m_gameState.m_dualRelated; if ( (unsigned int)(m_dualRelated - 23) < 2 ) goto LABEL_12; } if ( (unsigned int)m_dualRelated <= 0x29 ) { v4 = 0x20004080020LL; if ( _bittest64(&v4, (unsigned int)m_dualRelated) ) { if ( !a1->m_gameState.m_isDualMode ) return v3.f32[0]; goto LABEL_13; } if ( m_dualRelated == 16 ) { v3 = (__m128)0x43700000u; if ( !a1->m_gameState.m_isDualMode ) return v3.f32[0]; goto LABEL_13; } } LABEL_12: v3 = (__m128)0x43870000u; if ( !a1->m_gameState.m_isDualMode ) return v3.f32[0]; LABEL_13: v5 = _mm_cmpeq_ss((__m128)0x43700000u, v3); LODWORD(v9) = _mm_andnot_ps(v5, v3).u32[0] | v5.i32[0] & 0x43870000; v6 = *(&a1->m_player1 + (a2->m_uniqueID == a1->m_player1->m_uniqueID)); if ( PlayerObject::isFlying(v6) ) { v7 = 300.0; } else if ( v6->m_isBall ) { v7 = 240.0; } else { v7 = 270.0; } v3.f32[0] = fmaxf(v7, v9); return v3.f32[0]; }
GD Web Decomp Icon

GD Web Decomp

Raw Source