//
// GJEffectManager::postMoveActions from 0x100013c78 to 0x100013dd0 (344 bytes)
//
// 2 xrefs:
// > GJBaseGameLayer::loadUpToPosition @ 0x1001fce24
// > GJBaseGameLayer::update @ 0x1001feb70
//
// 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 __fastcall GJEffectManager::postMoveActions(GJEffectManager *a1)
{
std::__vector_base::pointer begin; // x20
GroupCommandObject2 *end; // x22
__int64 v4; // x8
double v5; // d8
__int64 v6; // x8
double v7; // d9
__int64 v8; // x0
__int64 v9; // x0
GroupCommandObject2 *v10; // x1
std::__vector_base::pointer v11; // x23
char v12; // [xsp+7h] [xbp-69h] BYREF
int *p_m_targetGroupID; // [xsp+8h] [xbp-68h] BYREF
begin = a1->m_unkVector560.__begin_;
end = a1->m_unkVector560.__end_;
while ( begin != end )
{
if ( begin->m_doUpdate )
{
if ( (begin->m_commandType | 2) == 2 )
{
if ( begin->m_lockedInX )
v4 = 96;
else
v4 = 48;
v5 = *(double *)((char *)&begin->m_groupCommandUniqueID + v4);
if ( begin->m_lockedInY )
v6 = 104;
else
v6 = 56;
v7 = *(double *)((char *)&begin->m_groupCommandUniqueID + v6);
p_m_targetGroupID = &begin->m_targetGroupID;
v8 = sub_10001A558(&a1->m_unkMap578, &begin->m_targetGroupID, &unk_10063553F, &p_m_targetGroupID, &v12);
*(double *)(v8 + 24) = v5 + *(double *)(v8 + 24);
p_m_targetGroupID = &begin->m_targetGroupID;
v9 = sub_10001A558(&a1->m_unkMap578, &begin->m_targetGroupID, &unk_10063553F, &p_m_targetGroupID, &v12);
*(double *)(v9 + 32) = v7 + *(double *)(v9 + 32);
end = a1->m_unkVector560.__end_;
}
sub_10001A778(&p_m_targetGroupID, &begin[1], end, begin);
end = v10;
v11 = a1->m_unkVector560.__end_;
if ( v11 != v10 )
{
do
sub_100018A9C(&a1->m_unkVector560, --v11);
while ( v11 != end );
}
a1->m_unkVector560.__end_ = end;
}
else
{
++begin;
}
}
}