//
// EnhancedGameObject::updateRotateAction from 0x4524b8 to 0x452572 (186 bytes)
//
// 3 xrefs:
// > PlayLayer::updateVisibility @ 0x407046
// > LevelEditorLayer::updatePreviewAnim @ 0x462636
// > LevelEditorLayer::updateVisibility @ 0x462fb8
//
// 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
//
int __fastcall EnhancedGameObject::updateRotateAction(int this, float a2)
{
int v2; // r5
int v3; // r7
float v4; // s15
float v5; // s16
_DWORD *v6; // r2
int *v7; // r6
int *v8; // r4
int v9; // r8
int v10; // t1
int (__fastcall *v11)(int, _DWORD); // r9
int v12; // r0
v2 = this;
if ( !*(_BYTE *)(this + 1208) )
{
v3 = 1;
v4 = a2 + *(float *)(this + 1224);
*(float *)(this + 1224) = v4;
v5 = v4 * *(float *)(this + 1220);
while ( 1 )
{
if ( v3 == 1 )
{
this = v2;
}
else if ( v3 == 2 )
{
this = *(_DWORD *)(v2 + 756);
if ( *(_BYTE *)(v2 + 734) )
goto LABEL_7;
if ( !this )
goto LABEL_8;
}
else
{
this = *(_DWORD *)(v2 + 640);
if ( !this )
goto LABEL_7;
}
this = (*(int (__fastcall **)(int))(*(_DWORD *)this + 244))(this);
if ( this )
{
v6 = *(_DWORD **)(this + 52);
if ( *v6 )
{
v7 = (int *)v6[3];
v8 = &v7[*v6 - 1];
while ( v7 <= v8 )
{
v10 = *v7++;
v9 = v10;
if ( !v10 )
break;
v11 = *(int (__fastcall **)(int, _DWORD))(*(_DWORD *)v9 + 180);
v12 = (*(int (__fastcall **)(int))(*(_DWORD *)v9 + 32))(v9);
this = v11(v9, v5 + (float)v12);
}
}
}
LABEL_7:
if ( v3 == 3 )
return this;
LABEL_8:
++v3;
}
}
return this;
}