//
// GJEffectManager::createMoveCommand from 0x5d09c8 to 0x5d0adc (276 bytes)
//
// 1 xrefs:
// > GJBaseGameLayer::triggerMoveCommand @ 0x5a22dc
//
// 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:04 +0000
//
int __fastcall GJEffectManager::createMoveCommand(
int result,
float *a2,
int a3,
float a4,
int a5,
int a6,
char a7,
char a8,
char a9,
char a10,
int a11,
int a12,
int a13,
int a14)
{
int v15; // r4
GroupCommandObject2 *v18; // r0
int v19; // r4
_BYTE v20[8]; // [sp+34h] [bp-10h] BYREF
v15 = result;
if ( (*a2 != flt_D2C490 || a2[1] != flt_D2C494 || a7 || a8 || a9 || a10) && a3 > 0 )
{
v18 = *(GroupCommandObject2 **)(result + 724);
if ( (unsigned int)v18 >= *(_DWORD *)(v15 + 728) )
{
std::vector::__emplace_back_slow_path<>((const GroupCommandObject2 **)(v15 + 720));
}
else
{
if ( v18 )
GroupCommandObject2::GroupCommandObject2(v18);
*(_DWORD *)(v15 + 724) += 488;
}
v19 = *(_DWORD *)(v15 + 724);
*(_DWORD *)(v19 - 448) = a3;
*(_DWORD *)(v19 - 144) = a13;
*(_DWORD *)(v19 - 140) = a14;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, (const cocos2d::CCPoint *)a2);
return ((int (__fastcall *)(int, _BYTE *, _DWORD, _DWORD, int))GroupCommandObject2::runMoveCommand)(
v19 - 488,
v20,
COERCE_UNSIGNED_INT64(a4),
HIDWORD(COERCE_UNSIGNED_INT64(a4)),
a5);
}
return result;
}