//
// PlayerObject::updateRotation from 0x140391260 to 0x1403913e5 (389 bytes)
//
// 9 xrefs:
// > PlayerObject::updateMove @ 0x14038b019
// > PlayerObject::updateSlopeRotation @ 0x140390c2d
// > PlayerObject::updateRotation_1 @ 0x1403910bb
// > PlayerObject::updateRotation_1 @ 0x14039119a
// > PlayerObject::updateRotation_1 @ 0x1403911ca
// > ??> @ 0x1406978d4
// > ??> @ 0x140697910
// > ??> @ 0x14069792c
// > ??> @ 0x1406d61ac
//
// 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::updateRotation(PlayerObject *a1, float a2, float a3)
{
double v4; // xmm0_8
float v5; // xmm3_4
float v6; // xmm0_4
float v7; // xmm3_4
if ( !a1->m_isDashing )
{
v4 = ((double (*)(void))a1->getRotation)();
v5 = *(float *)&v4;
v6 = a1->m_playerSpeed * 0.175;
v7 = v5 * 0.017453292;
if ( a1->m_isShip )
{
v6 = v6 * 0.5;
}
else if ( !a1->m_isBird
&& !a1->m_isDart
&& !a1->m_isSwing
&& !a1->m_isBall
&& a1->m_isOnGround2
&& !a1->m_isOnSlope
&& !a1->m_wasOnSlope )
{
v6 = v6 * 3.0;
}
sub_140071EF0(v7, a3 * 0.017453292, fminf(a2, v6 * a2));
((void (__fastcall *)(PlayerObject *))a1->setRotation)(a1);
}
}