//
// GJEffectManager::registerRotationCommand from 0x5cd880 to 0x5cd966 (230 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::processDynamicObjectActions @ 0x5ad676
// > GJEffectManager::prepareMoveActions @ 0x5cdc98
// > GJEffectManager::prepareMoveActions @ 0x5ce2f2
//
// 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:54:00 +0000
//
void __fastcall GJEffectManager::registerRotationCommand(GJEffectManager *this, GroupCommandObject2 *a2, int a3)
{
int v4; // r0
int v5; // r1
int v6; // r0
_DWORD *v7; // r3
_DWORD *v8; // r3
int v9; // r2
int v10; // r2
_DWORD *v11; // r3
int v12; // r2
int v13; // r1
int v14; // r3
_DWORD v15[2]; // [sp+Ch] [bp-28h] BYREF
int *v16; // [sp+18h] [bp-1Ch] BYREF
int v17[2]; // [sp+1Ch] [bp-18h] BYREF
_DWORD v18[2]; // [sp+24h] [bp-10h] BYREF
v15[0] = a2;
v4 = *((_DWORD *)a2 + 10);
v5 = *((_DWORD *)a2 + 11);
v17[0] = v4;
v17[1] = v5;
if ( a3 )
{
v8 = *((_DWORD **)this + 227);
while ( v8 )
{
v9 = v8[4];
if ( v4 < v9 )
goto LABEL_19;
if ( v9 < v4 )
goto LABEL_20;
v10 = v8[5];
if ( v5 < v10 )
{
LABEL_19:
v8 = (_DWORD *)*v8;
}
else
{
if ( v10 >= v5 )
{
v16 = v17;
std::__tree,std::vector>,std::__map_value_compare,std::__value_type,std::vector>,std::less>,true>,std::allocator,std::vector>>>::__emplace_unique_key_args,std::piecewise_construct_t const&,std::tuple const&>,std::tuple<>>(
(int)v18,
(int **)this + 226,
v17,
(int)&unk_BEE13D,
&v16);
v12 = v18[0];
v13 = *(_DWORD *)(v18[0] + 24);
while ( 1 )
{
v14 = *(_DWORD *)(v12 + 28);
if ( v13 == v14 )
break;
*(_DWORD *)(v12 + 28) = v14 - 4;
}
break;
}
LABEL_20:
v8 = (_DWORD *)v8[1];
}
}
}
v16 = v17;
std::__tree,std::vector>,std::__map_value_compare,std::__value_type,std::vector>,std::less>,true>,std::allocator,std::vector>>>::__emplace_unique_key_args,std::piecewise_construct_t const&,std::tuple const&>,std::tuple<>>(
(int)v18,
(int **)this + 226,
v17,
(int)&unk_BEE13D,
&v16);
v6 = v18[0];
v7 = *(_DWORD **)(v18[0] + 28);
if ( v7 == *(_DWORD **)(v18[0] + 32) )
{
std::vector::__push_back_slow_path(v18[0] + 24, v15);
}
else
{
if ( v7 )
*v7 = v15[0];
*(_DWORD *)(v6 + 28) += 4;
}
v11 = *((_DWORD **)this + 189);
if ( v11 == *((_DWORD **)this + 190) )
{
std::vector::__push_back_slow_path((int)this + 752, v15);
}
else
{
if ( v11 )
*v11 = v15[0];
*((_DWORD *)this + 189) += 4;
}
}