//
// GJEffectManager::createMoveCommand from 0x14025c700 to 0x14025c9b0 (688 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::triggerMoveCommand @ 0x14021ef73
// > ??> @ 0x140684bf4
// > ??> @ 0x140684c40
// > ??> @ 0x1406cfe04
//
// 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
//
void GJEffectManager::createMoveCommand(
GJEffectManager *a1,
cocos2d::CCPoint a2,
int a3,
float a4,
int a5,
float a6,
bool a7,
bool a8,
bool a9,
bool a10,
float a11,
float a12,
int a13,
int a14)
{
bool v15; // r14
bool v16; // si
bool v18; // r15
bool v19; // bp
std::_Vector_val>::pointer Mylast; // rdx
std::_Vector_val>::pointer v21; // rbx
float v22; // xmm7_4
float v23; // xmm6_4
double v24; // xmm7_8
double v25; // xmm6_8
float *v26; // rax
float *v27; // rdi
__int64 v28; // xmm0_8
bool v29; // cl
bool v30; // al
cocos2d::CCPoint v31; // [rsp+88h] [rbp+10h] BYREF
v15 = a10;
v16 = a9;
v18 = a8;
v19 = a7;
if ( (**(float **)&a2 != *(float *)&dword_1406C1DA8
|| *(float *)(*(_QWORD *)&a2 + 4LL) != *(float *)&dword_1406C1DAC
|| a7
|| a8
|| a9
|| a10)
&& a3 > 0 )
{
Mylast = a1->m_unkVector560._Mypair._Myval2._Mylast;
if ( Mylast == a1->m_unkVector560._Mypair._Myval2._Myend )
{
sub_14026B310(&a1->m_unkVector560);
}
else
{
GroupCommandObject2::GroupCommandObject2(Mylast);
++a1->m_unkVector560._Mypair._Myval2._Mylast;
}
v21 = a1->m_unkVector560._Mypair._Myval2._Mylast;
v22 = a12;
v23 = a11;
v21[-1].m_triggerUniqueID = a13;
v21[-1].m_controlID = a14;
v21[-1].m_targetGroupID = a3;
v24 = v22;
v25 = v23;
cocos2d::CCPoint::CCPoint(&v31);
v21[-1].m_commandType = 0;
v27 = v26;
cocos2d::CCPoint::operator=(&v21[-1].m_moveOffset, v26);
v21[-1].m_easingType = a5;
v21[-1].m_lockToPlayerX = v19;
v21[-1].m_lockToPlayerY = v18;
v21[-1].m_lockToCameraX = v16;
v21[-1].m_lockToCameraY = v15;
v21[-1].m_duration = a4;
v21[-1].m_easingRate = a6;
v28 = 0x3FF0000000000000LL;
if ( v25 == 0.0 )
v25 = 1.0;
v21[-1].m_moveModX = v25;
if ( v24 != 0.0 )
v28 = *(_QWORD *)&v24;
*(_QWORD *)&v21[-1].m_moveModY = v28;
v29 = v19 || v16;
v21[-1].m_lockedInX = v29;
v30 = v18 || v15;
v21[-1].m_lockedInY = v30;
if ( *v27 != *(float *)&dword_1406C1D88 || v27[1] != *(float *)&dword_1406C1D8C || v29 || v30 )
{
if ( *v27 != 0.0 && !v29 )
{
v21[-1].m_actionType1 = 1;
v21[-1].m_actionValue1 = *v27;
}
if ( v27[1] != 0.0 && !v30 )
{
if ( v21[-1].m_actionType1 )
{
v21[-1].m_actionType2 = 2;
v21[-1].m_actionValue2 = v27[1];
}
else
{
v21[-1].m_actionType1 = 2;
v21[-1].m_actionValue1 = v27[1];
}
}
}
else
{
v21[-1].m_finished = 1;
v21[-1].m_finishRelated = 1;
}
}
}