//
// GJEffectManager::getMoveCommandNode from 0x5c8f44 to 0x5c900a (198 bytes)
//
// 3 xrefs:
// > GJBaseGameLayer::processDynamicObjectActions @ 0x5ad630
// > GJEffectManager::prepareMoveActions @ 0x5cdae4
// > GJEffectManager::prepareMoveActions @ 0x5ce1d8
//
// 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:53:55 +0000
//
cocos2d::CCObject *__fastcall GJEffectManager::getMoveCommandNode(GJEffectManager *this, GroupCommandObject2 *a2)
{
char *v2; // r7
_DWORD *v4; // r0
cocos2d::CCObject *MoveCommandObject; // r0
int v6; // r1
cocos2d::CCObject **v7; // r3
cocos2d::CCObject *v8; // r3
cocos2d::CCObject *v9; // r0
GroupCommandObject2 **v10; // r3
GroupCommandObject2 *v12; // [sp+4h] [bp-18h] BYREF
cocos2d::CCObject *v13; // [sp+Ch] [bp-10h] BYREF
unsigned int v14; // [sp+10h] [bp-Ch] BYREF
v2 = (char *)this + 796;
v12 = a2;
v13 = nullptr;
v14 = *((_DWORD *)a2 + 10);
v4 = std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find(
(_DWORD *)this + 199,
&v14);
if ( v4 )
v13 = (cocos2d::CCObject *)v4[3];
if ( !v13 )
{
MoveCommandObject = GJEffectManager::getMoveCommandObject(this);
v6 = *((_DWORD *)v12 + 10);
v13 = MoveCommandObject;
(*(void (__fastcall **)(cocos2d::CCObject *, int))(*(_DWORD *)MoveCommandObject + 36))(MoveCommandObject, v6);
v14 = *((_DWORD *)v12 + 10);
*std::unordered_map::operator[]((int)v2, &v14) = v13;
v7 = *((cocos2d::CCObject ***)this + 215);
if ( v7 == *((cocos2d::CCObject ***)this + 216) )
{
std::vector::__push_back_slow_path((int)this + 856, &v13);
}
else
{
if ( v7 )
*v7 = v13;
*((_DWORD *)this + 215) += 4;
}
v8 = v13;
*((_DWORD *)v13 + 6) = 0;
*((_DWORD *)v8 + 50) = v12;
}
v9 = v13;
v10 = *((GroupCommandObject2 ***)v13 + 53);
if ( v10 == *((GroupCommandObject2 ***)v13 + 54) )
{
std::vector::__push_back_slow_path((int)v13 + 208, &v12);
}
else
{
if ( v10 )
*v10 = v12;
*((_DWORD *)v9 + 53) += 4;
}
return v13;
}