//
// EnhancedGameObject::createRotateAction from 0x1401a7280 to 0x1401a730c (140 bytes)
//
// 9 xrefs:
// > EnhancedGameObject::customObjectSetup @ 0x1401a4d55
// > EnhancedGameObject::customSetup @ 0x1401a5111
// > EnhancedGameObject::customSetup @ 0x1401a59dc
// > EnhancedGameObject::customSetup @ 0x1401a5bc8
// > EnhancedGameObject::customSetup @ 0x1401a5c8c
// > EnhancedGameObject::customSetup @ 0x1401a5e11
// > EnhancedGameObject::customSetup @ 0x1401a6113
// > SetupRotatePopup::onClose @ 0x140443048
// > ??> @ 0x1406cc0d8
//
// 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
//
void EnhancedGameObject::createRotateAction(EnhancedGameObject *a1, float a2, int a3)
{
float m_rotationSpeed; // xmm6_4
int v5; // eax
m_rotationSpeed = a2;
if ( a2 != 0.0 )
a1->m_rotationAngle = a2;
if ( a1->m_rotationSpeed == 0.0 )
{
if ( !a3 )
{
v5 = rand();
a3 = -1;
if ( (float)((float)v5 / 32767.0) > 0.5 )
a3 = 1;
}
}
else
{
m_rotationSpeed = a1->m_rotationSpeed;
a3 = 1;
}
a1->m_rotationDelta = (float)a3 * m_rotationSpeed;
}