//
// EnhancedGameObject::createRotateAction from 0x10069df10 to 0x10069dfaa (154 bytes)
//
// 2 xrefs:
// > EnhancedGameObject::customSetup @ 0x10069e4a8
// > EnhancedGameObject::customSetup @ 0x10069e713
//
// This function is hookable on this platform (idp: pc, 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:35:17 +0000
//
_BOOL8 __fastcall EnhancedGameObject::createRotateAction(__int64 a1, int a2, __m128 a3)
{
__m128 v3; // xmm3
_BOOL8 result; // rax
__m128 v5; // xmm2
if ( a3.f32[0] != 0.0 )
*(_DWORD *)(a1 + 1396) = a3.i32[0];
v3.i32[0] = *(_DWORD *)(a1 + 1392);
result = 1;
if ( v3.f32[0] != 0.0 )
a2 = 1;
if ( !a2 )
{
result = (float)((float)rand() * 4.6566129e-10) > 0.5;
a2 = 2 * result - 1;
}
v5 = _mm_cmpneq_ss((__m128)0LL, v3);
*(float *)(a1 + 1400) = (float)a2 * COERCE_FLOAT(_mm_andnot_ps(v5, a3).u32[0] | v3.i32[0] & v5.i32[0]);
return result;
}