//
// EnhancedGameObject::updateRotateAction from 0x77539c to 0x7754a8 (268 bytes)
//
// 4 xrefs:
// > PlayLayer::updateVisibility @ 0x7012f0
// > LevelEditorLayer::updatePreviewAnim @ 0x78d8a4
// > LevelEditorLayer::updateVisibility @ 0x78e904
// > ??> @ 0xfc040
//
// 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:53:14 +0000
//
float *__fastcall EnhancedGameObject::updateRotateAction(float *this, float a2)
{
float *v2; // x23
int v3; // w22
float v4; // s0
int v5; // w24
float v6; // s8
__int64 *v7; // x20
__int64 *i; // x26
__int64 v9; // x19
__int64 v10; // x0
__int64 (__fastcall *v11)(__int64, float); // x21
int v12; // w0
if ( !*((_BYTE *)this + 1388) )
{
v2 = this;
v3 = 1;
v4 = a2 + *(this + 351);
v5 = 0;
v6 = v4 * *(this + 350);
*(this + 351) = v4;
while ( 1 )
{
this = v2;
if ( v5 )
{
if ( v5 == 1 )
{
this = *((float **)v2 + 111);
if ( *((_BYTE *)v2 + 866) || !this )
goto LABEL_12;
}
else
{
this = *((float **)v2 + 94);
if ( !this )
goto LABEL_11;
}
}
this = (float *)(*(__int64 (__fastcall **)(float *))(*(_QWORD *)this + 488LL))(this);
if ( this )
{
this = *((float **)this + 7);
if ( *(_DWORD *)this )
{
v7 = *((__int64 **)this + 2);
for ( i = &v7[*(unsigned int *)this - 1]; i >= v7; this = (float *)v11(v9, (float)v12 + v6) )
{
v9 = *v7;
if ( !*v7 )
break;
v10 = *v7++;
v11 = *(__int64 (__fastcall **)(__int64, float))(*(_QWORD *)v9 + 360LL);
v12 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v9 + 64LL))(v10);
}
}
}
LABEL_11:
if ( v3 == 3 )
return this;
LABEL_12:
++v5;
++v3;
}
}
return this;
}