//
// GJEffectManager::getMoveCommandNode from 0xa05448 to 0xa055b0 (360 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::processDynamicObjectActions @ 0x9d85cc
// > GJEffectManager::prepareMoveActions @ 0xa10e6c
// > GJEffectManager::prepareMoveActions @ 0xa1144c
// > ??> @ 0x1025b0
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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 12:59:21 +0000
//
cocos2d::CCObject *__fastcall GJEffectManager::getMoveCommandNode(GJEffectManager *this, GroupCommandObject2 *a2)
{
char *v2; // x22
__int64 *v4; // x0
__int64 v5; // x2
GroupCommandObject2 **v6; // x1
cocos2d::CCObject *result; // x0
_QWORD *v8; // x0
cocos2d::CCObject **v9; // x0
GroupCommandObject2 *v10; // x0
GroupCommandObject2 *v11; // [xsp+38h] [xbp+38h] BYREF
int v12; // [xsp+4Ch] [xbp+4Ch] BYREF
cocos2d::CCObject *MoveCommandObject; // [xsp+50h] [xbp+50h] BYREF
v2 = (char *)this + 1384;
v12 = *((_DWORD *)a2 + 10);
v11 = a2;
MoveCommandObject = nullptr;
v4 = std::__hash_table,std::__unordered_map_hasher,std::hash,true>,std::__unordered_map_equal,std::equal_to,true>,std::allocator>>::find(
(_QWORD *)this + 173,
&v12);
if ( v4 )
{
v5 = v4[3];
MoveCommandObject = (cocos2d::CCObject *)v5;
}
else
{
v5 = (__int64)MoveCommandObject;
}
if ( !v5 )
{
MoveCommandObject = GJEffectManager::getMoveCommandObject(this);
(*(void (__fastcall **)(cocos2d::CCObject *, _QWORD))(*(_QWORD *)MoveCommandObject + 72LL))(
MoveCommandObject,
*((unsigned int *)v11 + 10));
v12 = *((_DWORD *)v11 + 10);
v8 = (_QWORD *)std::unordered_map::operator[]((unsigned __int64)v2, &v12);
*v8 = MoveCommandObject;
v9 = *((cocos2d::CCObject ***)this + 189);
if ( v9 == *((cocos2d::CCObject ***)this + 190) )
{
std::vector::__push_back_slow_path((__int64)this + 1504, &MoveCommandObject);
v5 = (__int64)MoveCommandObject;
}
else
{
v5 = (__int64)MoveCommandObject;
if ( v9 )
{
*v9 = MoveCommandObject;
v9 = *((cocos2d::CCObject ***)this + 189);
v5 = (__int64)MoveCommandObject;
}
*((_QWORD *)this + 189) = v9 + 1;
}
v10 = v11;
*(_DWORD *)(v5 + 28) = 0;
*(_QWORD *)(v5 + 200) = v10;
}
v6 = *(GroupCommandObject2 ***)(v5 + 224);
if ( *(GroupCommandObject2 ***)(v5 + 232) == v6 )
{
std::vector::__push_back_slow_path(v5 + 216, &v11);
return MoveCommandObject;
}
else
{
if ( v6 )
{
*v6 = v11;
v6 = *(GroupCommandObject2 ***)(v5 + 224);
result = MoveCommandObject;
}
else
{
result = (cocos2d::CCObject *)v5;
}
*(_QWORD *)(v5 + 224) = v6 + 1;
}
return result;
}