//
// PlayerObject::updateSlopeRotation from 0x437588 to 0x4375ee (102 bytes)
//
// 2 xrefs:
// > PlayerObject::updateRotation @ 0x437634
// > PlayerObject::collidedWithSlopeInternal @ 0x4421fa
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:48:19 +0000
//
float *__fastcall PlayerObject::updateSlopeRotation(PlayerObject *this, float a2)
{
float v4; // s15
int v5; // r2
v4 = *((double *)this + 227) * 57.2957802;
v5 = PlayerObject::convertToClosestRotation(this, v4);
if ( *((_BYTE *)this + 2320) && *((double *)this + 288) > 80.0 )
{
if ( *((_BYTE *)this + 2297) )
{
v5 = 0;
}
else if ( *((_BYTE *)this + 2298) )
{
v5 = 0;
}
}
return PlayerObject::updateRotation((float *)this, a2, *(float *)&v5);
}