//
// GJEffectManager::createMoveCommand from 0x4a51cc to 0x4a52c6 (250 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::triggerMoveCommand @ 0x481bd8
//
// 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 GJEffectManager::createMoveCommand(
GJEffectManager *a1,
cocos2d::CCPoint a2,
int a3,
float a4,
int a5,
float a6,
bool a7,
bool a8,
bool a9,
float a10,
float a11,
float a12,
int a13,
int a14)
{
float y; // r7
float x; // r6
std::vector *p_m_unkVector560; // r4
int v18; // r0
GroupCommandObject2 *v19; // r4
char *v20; // r1 OVERLAPPED
double v21; // r2 OVERLAPPED
double v22; // [sp+0h] [bp-44h]
double v23; // [sp+20h] [bp-24h]
double v24; // [sp+30h] [bp-14h] BYREF
y = a2.y;
x = a2.x;
if ( (*(float *)LODWORD(a2.x) != flt_AC6954
|| *(float *)(LODWORD(a2.x) + 4) != flt_AC6958
|| LOBYTE(a6)
|| a7
|| a8
|| a9)
&& SLODWORD(a2.y) > 0 )
{
p_m_unkVector560 = &a1->m_unkVector560;
std::vector::emplace_back<>((int)&a1->m_unkVector560);
v18 = std::vector::back((int)p_m_unkVector560);
*(float *)(v18 + 344) = a12;
v19 = (GroupCommandObject2 *)v18;
*(float *)(v18 + 40) = y;
*(_DWORD *)(v18 + 348) = a13;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)((char *)&v24 + 4), (const cocos2d::CCPoint *)LODWORD(x));
v20 = (char *)&v24 + 4;
*(float *)&v22 = a4;
v23 = a10;
v21 = *(float *)&a3;
GroupCommandObject2::runMoveCommand(
v19,
*(cocos2d::CCPoint *)&v20,
v22,
COERCE_UNSIGNED_INT64(*(float *)&a5),
COERCE_DOUBLE(__PAIR64__(a7, LOBYTE(a6))),
a8,
a9,
SLOBYTE(v23),
SBYTE4(COERCE_UNSIGNED_INT64(a10)),
a11,
v24);
}
}