//
// EnhancedGameObject::createRotateAction from 0x4521fa to 0x45226e (116 bytes)
//
// 6 xrefs:
// > EnhancedGameObject::refreshRotateAction @ 0x452276
// > EnhancedGameObject::customObjectSetup @ 0x45234a
// > EnhancedGameObject::customSetup @ 0x45a39a
// > EnhancedGameObject::customSetup @ 0x45a7a8
// > EnhancedGameObject::customSetup @ 0x45a85a
// > EnhancedGameObject::customSetup @ 0x45a8ee
//
// 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:37 +0000
//
unsigned int __fastcall EnhancedGameObject::createRotateAction(unsigned int this, float a2, int a3)
{
unsigned int v3; // r4
float v4; // s16
v3 = this;
v4 = a2;
if ( a2 != 0.0 )
*(float *)(this + 1216) = a2;
if ( *(float *)(this + 1212) == 0.0 )
{
if ( !a3 )
{
this = rand();
if ( vcvts_n_f32_s32(this, 0x1Fu) <= 0.5 )
a3 = -1;
else
a3 = 1;
}
}
else
{
v4 = *(float *)(this + 1212);
a3 = 1;
}
*(float *)(v3 + 1220) = v4 * (float)a3;
return this;
}