//
// snapRotation360 from 0x4357f4 to 0x43582c (56 bytes)
//
// 4 xrefs:
// > PlayerObject::limitDashRotation @ 0x43587a
// > PlayerObject::limitDashRotation @ 0x4358b0
// > PlayerObject::limitDashRotation @ 0x435942
// > PlayerObject::startDashing @ 0x43a2cc
//
// 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:18 +0000
//
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;
}