//
// GroupCommandObject2::runMoveCommand from 0x1004ed1f0 to 0x1004ed386 (406 bytes)
//
// 1 xrefs:
// > GJEffectManager::createMoveCommand @ 0x1002e0a44
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// local variable allocation has failed, the output may be wrong!
void __fastcall GroupCommandObject2::runMoveCommand(
GroupCommandObject2 *a1,
cocos2d::CCPoint a2,
double a3,
int a4,
double a5,
bool a6,
bool a7,
bool a8,
bool a9,
double a10,
double a11)
{
__m128d v13; // xmm2
bool v14; // r15
unsigned __int8 v15; // r12
float v16; // xmm0_4
float v17; // xmm0_4
__m128i inserted; // [rsp+20h] [rbp-50h] BYREF
double v19; // [rsp+30h] [rbp-40h]
double v20; // [rsp+38h] [rbp-38h]
_BOOL4 v21; // [rsp+40h] [rbp-30h]
EasingType v22; // [rsp+44h] [rbp-2Ch]
unsigned __int8 v23; // [rsp+80h] [rbp+10h]
v21 = a8;
v19 = a3;
v22 = a6;
v20 = *(double *)&a2;
inserted = _mm_insert_epi32(_mm_insert_epi32(_mm_insert_epi32(_mm_cvtsi32_si128(a7), a8, 1), a9, 2), v23, 3);
a1->m_commandType = 0;
sub_10028CC90(&a1->m_moveOffset, *(double **)&a4);
a1->m_duration = v20;
a1->m_easingType = v22;
a1->m_easingRate = v19;
*(_DWORD *)&a1->m_lockToPlayerX = _mm_cvtsi128_si32(_mm_shuffle_epi8(_mm_load_si128(&inserted), (__m128i)xmmword_100818660));
v13 = _mm_unpacklo_pd(*(__m128d *)&a5, *(__m128d *)&a10);
*(__m128d *)&a1->m_moveModX = _mm_blendv_pd((__m128d)xmmword_100815170, v13, _mm_cmpneq_pd((__m128d)0LL, v13));
v14 = a9 || a7;
a1->m_lockedInX = v14;
v15 = v21 | v23;
a1->m_lockedInY = v21 | v23;
v16 = **(float **)&a4;
if ( **(float **)&a4 == *(float *)&dword_1009A2400
&& !((*(float *)(*(_QWORD *)&a4 + 4LL) != *(float *)&dword_1009A2404) | (unsigned __int8)(v15 | v14)) )
{
a1->m_finished = 1;
a1->m_finishRelated = 1;
}
else
{
if ( !v14 && v16 != 0.0 )
{
a1->m_actionType1 = 1;
a1->m_actionValue1 = v16;
}
v17 = *(float *)(*(_QWORD *)&a4 + 4LL);
if ( !((v17 == 0.0) | v15) )
{
if ( a1->m_actionType1 )
{
a1->m_actionType2 = 2;
a1->m_actionValue2 = v17;
}
else
{
a1->m_actionType1 = 2;
a1->m_actionValue1 = v17;
}
}
}
}