//
// PlayerObject::updateSlopeRotation from 0x751958 to 0x7519d4 (124 bytes)
//
// 3 xrefs:
// > PlayerObject::updateRotation @ 0x751a20
// > PlayerObject::collidedWithSlopeInternal @ 0x760588
// > ??> @ 0x88270
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:52:55 +0000
//
_BYTE *__fastcall PlayerObject::updateSlopeRotation(PlayerObject *this, float a2)
{
float v4; // s0
float v5; // s1
v4 = *((double *)this + 285) * 57.2957802;
v5 = PlayerObject::convertToClosestRotation(this, v4);
if ( *((_BYTE *)this + 2832) && *((double *)this + 352) > 80.0 )
{
if ( *((_BYTE *)this + 2809) )
{
v5 = 0.0;
}
else if ( *((_BYTE *)this + 2810) )
{
v5 = 0.0;
}
}
return PlayerObject::updateRotation(this, a2, v5);
}