//
// GJEffectManager::postMoveActions from 0x140260800 to 0x14026094a (330 bytes)
//
// 5 xrefs:
// > GJBaseGameLayer::loadUpToPosition @ 0x140235bea
// > GJBaseGameLayer::update @ 0x140238394
// > ??> @ 0x140684f00
// > ??> @ 0x140684f10
// > ??> @ 0x1406cff60
//
// 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::postMoveActions(GJEffectManager *a1)
{
std::_Vector_val>::pointer Myfirst; // rbx
std::_Vector_val>::pointer Mylast; // rax
double m_currentXOffset; // xmm6_8
double m_currentYOffset; // xmm7_8
__int64 v6; // rax
__int64 v7; // rax
std::_Vector_val>::pointer v8; // rsi
std::_Simple_types::value_type *i; // rdi
std::_Vector_val>::pointer v10; // rdi
_BYTE v11[16]; // [rsp+20h] [rbp-48h] BYREF
_BYTE v12[16]; // [rsp+30h] [rbp-38h] BYREF
Myfirst = a1->m_unkVector560._Mypair._Myval2._Myfirst;
Mylast = a1->m_unkVector560._Mypair._Myval2._Mylast;
while ( Myfirst != Mylast )
{
if ( Myfirst->m_doUpdate )
{
if ( (Myfirst->m_commandType & 0xFFFFFFFD) == 0 )
{
m_currentXOffset = Myfirst->m_currentXOffset;
m_currentYOffset = Myfirst->m_currentYOffset;
if ( Myfirst->m_lockedInX )
m_currentXOffset = Myfirst->m_lockedCurrentXOffset;
if ( Myfirst->m_lockedInY )
m_currentYOffset = Myfirst->m_lockedCurrentYOffset;
v6 = sub_1402675E0(&a1->m_unkMap578, v11, &Myfirst->m_targetGroupID);
*(double *)(*(_QWORD *)v6 + 24LL) = m_currentXOffset + *(double *)(*(_QWORD *)v6 + 24LL);
v7 = sub_1402675E0(&a1->m_unkMap578, v12, &Myfirst->m_targetGroupID);
*(double *)(*(_QWORD *)v7 + 32LL) = m_currentYOffset + *(double *)(*(_QWORD *)v7 + 32LL);
}
v8 = a1->m_unkVector560._Mypair._Myval2._Mylast;
for ( i = Myfirst + 1; i != v8; ++i )
sub_14026A410(&i[-1], i);
v10 = a1->m_unkVector560._Mypair._Myval2._Mylast;
sub_14005E430((__int64)&v10[-1].m_remapKeys);
sub_140257B50(&v10[-1].m_keyframes._Mypair._Myval2._Myfirst);
Mylast = --a1->m_unkVector560._Mypair._Myval2._Mylast;
}
else
{
++Myfirst;
}
}
}