//
// EnhancedGameObject::updateRotateAction from 0x1006a2d50 to 0x1006a2edf (399 bytes)
//
// 3 xrefs:
// > PlayLayer::updateVisibility @ 0x1000852db
// > LevelEditorLayer::updateVisibility @ 0x1000bde42
// > LevelEditorLayer::updatePreviewAnim @ 0x1000c8307
//
// 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:18 +0000
//
void __fastcall EnhancedGameObject::updateRotateAction(__int64 a1, float a2)
{
float v3; // xmm0_4
__int64 v4; // rax
unsigned int *v5; // rax
_QWORD *v6; // r15
unsigned __int64 v7; // r12
__int64 v8; // r14
int v9; // eax
__int64 v10; // rdi
__int64 v11; // rax
unsigned int *v12; // rax
_QWORD *v13; // r15
unsigned __int64 v14; // r12
__int64 v15; // r14
int v16; // eax
__int64 v17; // rdi
__int64 v18; // rax
unsigned int *v19; // rax
_QWORD *v20; // r14
unsigned __int64 v21; // r15
__int64 v22; // rbx
int v23; // eax
float v24; // [rsp-2Ch] [rbp-2Ch]
if ( !*(_BYTE *)(a1 + 1388) )
{
v3 = a2 + *(float *)(a1 + 1404);
*(float *)(a1 + 1404) = v3;
v24 = v3 * *(float *)(a1 + 1400);
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 488LL))(a1);
if ( v4 )
{
v5 = *(unsigned int **)(v4 + 56);
if ( *v5 )
{
v6 = *((_QWORD **)v5 + 2);
v7 = (unsigned __int64)&v6[*v5 - 1];
do
{
v8 = *v6;
if ( !*v6 )
break;
v9 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v8 + 64LL))(*v6);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v8 + 360LL))(v8, (float)v9 + v24);
++v6;
}
while ( (unsigned __int64)v6 <= v7 );
}
}
v10 = *(_QWORD *)(a1 + 888);
if ( !(*(_BYTE *)(a1 + 866) | (v10 == 0)) )
{
v11 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v10 + 488LL))(v10);
if ( v11 )
{
v12 = *(unsigned int **)(v11 + 56);
if ( *v12 )
{
v13 = *((_QWORD **)v12 + 2);
v14 = (unsigned __int64)&v13[*v12 - 1];
do
{
v15 = *v13;
if ( !*v13 )
break;
v16 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v15 + 64LL))(*v13);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v15 + 360LL))(v15, (float)v16 + v24);
++v13;
}
while ( (unsigned __int64)v13 <= v14 );
}
}
}
v17 = *(_QWORD *)(a1 + 752);
if ( v17 )
{
v18 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v17 + 488LL))(v17);
if ( v18 )
{
v19 = *(unsigned int **)(v18 + 56);
if ( *v19 )
{
v20 = *((_QWORD **)v19 + 2);
v21 = (unsigned __int64)&v20[*v19 - 1];
do
{
v22 = *v20;
if ( !*v20 )
break;
v23 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)v22 + 64LL))(*v20);
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v22 + 360LL))(v22, (float)v23 + v24);
++v20;
}
while ( (unsigned __int64)v20 <= v21 );
}
}
}
}
}