//
// PlayerObject::runNormalRotation_1 from 0x1004041c0 to 0x1004042c2 (258 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::runNormalRotation_1(PlayerObject *a1)
{
__m128 v1; // rt1
__int64 v2; // rax
int v3; // edx
int v4; // ecx
float v5; // xmm0_4
if ( !a1->m_isShip
&& !a1->m_isBird
&& !a1->m_isDart
&& !a1->m_isSwing
&& !a1->m_isRobot
&& !a1->m_isSpider
&& !a1->m_isDashing
&& (!a1->m_isPlatformer
|| a1->m_holdingLeft
|| a1->m_holdingRight
|| a1->m_platformerMovingLeft
|| a1->m_platformerMovingRight) )
{
v1.i32[0] = LODWORD(a1->m_vehicleSize);
v2 = _mm_cvtsi128_si32((__m128i)_mm_cmpeq_ss((__m128)0x3F800000u, v1)) & 1;
v3 = 180;
if ( a1->m_isUpsideDown )
v3 = -180;
v4 = -v3;
if ( !a1->m_isGoingLeft )
v4 = v3;
v5 = (float)v4;
if ( a1->m_isSideways )
v5 = -v5;
a1->m_rotationSpeed = (float)(v5 * a1->m_gravityMod) / flt_10081B570[v2];
a1->m_isRotating = 1;
}
}