//
// GJEffectManager::addMoveCalculation from 0x8aa5e0 to 0x8aa6b0 (208 bytes)
//
// 2 xrefs:
// > GJEffectManager::prepareMoveActions @ 0x8b5d58
// > ??> @ 0xb7000
//
// 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::addMoveCalculation(GJEffectManager *a1, CCMoveCNode *a2, cocos2d::CCPoint a3, GameObject *a4)
{
GameObject *v4; // x3
std::vector *p_m_unkVector708; // x20
DynamicMoveCalculation *m_finish; // x19
DynamicMoveCalculation *m_reserveEnd; // x0
GameObject *v8; // [xsp+48h] [xbp+48h]
CCMoveCNode *v9; // [xsp+50h] [xbp+50h] BYREF
cocos2d::CCPoint v10; // [xsp+58h] [xbp+58h] BYREF
GameObject *v11; // [xsp+60h] [xbp+60h]
p_m_unkVector708 = &a1->m_unkVector708;
a2->m_unk0d1 = 1;
v8 = v4;
v9 = a2;
cocos2d::CCPoint::CCPoint(&v10, (const cocos2d::CCPoint *)a4);
m_finish = p_m_unkVector708->m_finish;
m_reserveEnd = p_m_unkVector708->m_reserveEnd;
v11 = v8;
if ( m_finish == m_reserveEnd )
{
std::vector::_M_emplace_back_aux(
(void **)&p_m_unkVector708->m_start,
(__int64)&v9);
}
else
{
if ( m_finish )
{
m_finish->m_moveNode = v9;
cocos2d::CCPoint::CCPoint(&m_finish->m_offset, &v10);
m_finish->m_gameObject = v11;
m_finish = p_m_unkVector708->m_finish;
}
p_m_unkVector708->m_finish = m_finish + 1;
}
}