//
// PlayerObject::performSlideCheck from 0x100406700 to 0x1004067c9 (201 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
//
void __fastcall PlayerObject::performSlideCheck(PlayerObject *a1)
{
GameObject *m_currentSlope2; // rax
float v2; // xmm0_4
char m_platformerMovingLeft; // al
bool m_isUpsideDown; // cl
char v5; // dl
char v6; // cl
char m_platformerMovingRight; // si
m_currentSlope2 = a1->m_currentSlope2;
if ( !m_currentSlope2
|| !a1->m_isOnSlope && !a1->m_wasOnSlope
|| a1->m_maybeUpsideDownSlope
|| m_currentSlope2->m_isGripSlope
|| (v2 = fabs(a1->m_slopeAngle * 57.29578), v2 <= 40.0) )
{
*(_WORD *)&a1->m_platformerMovingLeft = 0;
return;
}
m_platformerMovingLeft = a1->m_platformerMovingLeft;
m_isUpsideDown = a1->m_isUpsideDown;
if ( a1->m_slopeSlidingMaybeRotated )
{
if ( !m_isUpsideDown )
{
LABEL_9:
v5 = 1;
v6 = 0;
goto LABEL_13;
}
}
else if ( m_isUpsideDown )
{
goto LABEL_9;
}
v6 = 1;
v5 = 0;
LABEL_13:
m_platformerMovingRight = a1->m_platformerMovingRight;
a1->m_platformerMovingLeft = v5;
a1->m_platformerMovingRight = v6;
if ( m_platformerMovingLeft != v5 || m_platformerMovingRight != v6 )
a1->m_changedDirectionsTime = a1->m_totalTime;
a1->m_maybeChangedDirectionAngle = v2;
a1->m_maybeGoingCorrectSlopeDirection = 1;
}