//
// EnhancedGameObject::createRotateAction from 0x1005cc7d0 to 0x1005cc86a (154 bytes)
//
// 2 xrefs:
// > EnhancedGameObject::customSetup @ 0x1005ccd68
// > EnhancedGameObject::customSetup @ 0x1005ccfd3
//
// 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
//
// local variable allocation has failed, the output may be wrong!
void __fastcall EnhancedGameObject::createRotateAction(EnhancedGameObject *a1, float a2, int a3)
{
__m128 v3; // xmm3
__m128 v4; // xmm2
if ( a2 != 0.0 )
a1->m_rotationAngle = a2;
v3.i32[0] = LODWORD(a1->m_rotationSpeed);
if ( v3.f32[0] != 0.0 )
a3 = 1;
if ( !a3 )
a3 = 2 * ((float)((float)rand() * 4.6566129e-10) > 0.5) - 1;
v4 = _mm_cmpneq_ss((__m128)0LL, v3);
a1->m_rotationDelta = (float)a3 * COERCE_FLOAT(_mm_andnot_ps(v4, *(__m128 *)&a2).u32[0] | v3.i32[0] & v4.i32[0]);
}