//
// snapRotation360 from 0x74f384 to 0x74f3c0 (60 bytes)
//
// 5 xrefs:
// > PlayerObject::limitDashRotation @ 0x74f404
// > PlayerObject::limitDashRotation @ 0x74f44c
// > PlayerObject::limitDashRotation @ 0x74f4f8
// > PlayerObject::startDashing @ 0x7559f0
// > ??> @ 0x925c0
//
// 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:54 +0000
//
float __fastcall snapRotation360(float *a1)
{
float result; // s0
result = *a1;
if ( *a1 > 180.0 )
{
result = result - 360.0;
*a1 = result;
}
else if ( result < -180.0 )
{
result = result + 360.0;
*a1 = result;
}
return result;
}