//
// PlayerObject::performSlideCheck from 0x623218 to 0x6232d8 (192 bytes)
//
// 2 xrefs:
// > PlayerObject::postCollision @ 0x638fc4
// > ??> @ 0x939f0
//
// 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 PlayerObject::performSlideCheck(PlayerObject *a1)
{
GameObject *m_currentSlope2; // x2
float v2; // s0
int m_slopeSlidingMaybeRotated; // w1
int m_platformerMovingLeft; // w3
int m_platformerMovingRight; // w4
int v6; // w1
int m_isUpsideDown; // w2
m_currentSlope2 = a1->m_currentSlope2;
if ( m_currentSlope2
&& (a1->m_isOnSlope || a1->m_wasOnSlope)
&& !a1->m_maybeUpsideDownSlope
&& !m_currentSlope2->m_isGripSlope )
{
v2 = fabsf(a1->m_slopeAngle * 57.296);
if ( v2 > 40.0 )
{
m_slopeSlidingMaybeRotated = a1->m_slopeSlidingMaybeRotated;
m_platformerMovingLeft = a1->m_platformerMovingLeft;
m_platformerMovingRight = a1->m_platformerMovingRight;
if ( a1->m_slopeSlidingMaybeRotated )
{
m_isUpsideDown = a1->m_isUpsideDown;
a1->m_platformerMovingRight = m_isUpsideDown;
if ( m_isUpsideDown )
m_slopeSlidingMaybeRotated = 0;
a1->m_platformerMovingLeft = m_slopeSlidingMaybeRotated;
if ( m_platformerMovingLeft != m_slopeSlidingMaybeRotated )
goto LABEL_8;
}
else
{
v6 = a1->m_isUpsideDown;
a1->m_platformerMovingLeft = v6;
m_isUpsideDown = v6 == 0;
a1->m_platformerMovingRight = m_isUpsideDown;
if ( m_platformerMovingLeft != v6 )
{
LABEL_8:
a1->m_changedDirectionsTime = a1->m_totalTime;
LABEL_9:
a1->m_maybeGoingCorrectSlopeDirection = 1;
a1->m_maybeChangedDirectionAngle = v2;
return;
}
}
if ( m_platformerMovingRight == m_isUpsideDown )
goto LABEL_9;
goto LABEL_8;
}
}
a1->m_platformerMovingLeft = 0;
a1->m_platformerMovingRight = 0;
}