//
// snapRotation360 from 0x33d824 to 0x33d85c (56 bytes)
//
// 4 xrefs:
// > PlayerObject::limitDashRotation @ 0x33d8aa
// > PlayerObject::limitDashRotation @ 0x33d8e0
// > PlayerObject::limitDashRotation @ 0x33d972
// > PlayerObject::startDashing @ 0x34285e
//
// 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
//
float *__fastcall snapRotation360(float *result)
{
float v1; // s15
float v2; // s15
v1 = *result;
if ( *result <= 180.0 )
{
if ( v1 >= -180.0 )
return result;
v2 = v1 + 360.0;
}
else
{
v2 = v1 - 360.0;
}
*result = v2;
return result;
}