//
// GJBaseGameLayer::processMoveActionsStep from 0x14022b5d0 to 0x14022b7eb (539 bytes)
//
// 5 xrefs:
// > GJBaseGameLayer::loadUpToPosition @ 0x140235be2
// > GJBaseGameLayer::update @ 0x140238388
// > ??> @ 0x140680894
// > ??> @ 0x1406808c8
// > ??> @ 0x1406cdb90
//
// 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 GJBaseGameLayer::processMoveActionsStep(GJBaseGameLayer *a1, float a2, bool a3)
{
double v3; // xmm0_8
int v4; // edi
std::_Vector_val>::pointer Mylast; // r11
std::_Vector_val>::pointer i; // r10
GJEffectManager *m_effectManager; // r8
unsigned int m_targetGroupID; // r9d
unsigned __int64 v11; // rcx
std::_Vector_val>>>>>::pointer Myfirst; // rdx
std::_List_val>>::_Nodeptr Myhead; // r8
__int64 v14; // rcx
__int64 v15; // rax
__int64 v16; // rcx
__int64 v17; // rcx
__int64 v18; // r14
std::_Simple_types::value_type v19; // rbx
cocos2d::CCSprite *m_colorSprite; // rcx
struct cocos2d::CCPoint v21; // [rsp+50h] [rbp+8h] BYREF
v4 = 0;
*(_QWORD *)&a1->m_unked0 = 0;
*(_QWORD *)&a1->m_unked8 = 0;
Mylast = a1->m_gameState.m_dynamicMoveActions._Mypair._Myval2._Mylast;
for ( i = a1->m_gameState.m_dynamicMoveActions._Mypair._Myval2._Myfirst; i != Mylast; ++i )
{
m_effectManager = a1->m_effectManager;
m_targetGroupID = i->m_gameObject1->m_targetGroupID;
v11 = (0x100000001B3LL
* (((unsigned __int64)m_targetGroupID >> 24)
^ (0x100000001B3LL
* (BYTE2(m_targetGroupID)
^ (0x100000001B3LL
* ((0x100000001B3LL * ((unsigned __int8)m_targetGroupID ^ 0xCBF29CE484222325uLL)) ^ BYTE1(m_targetGroupID)))))))
& m_effectManager->m_unkMap618._Mask;
Myfirst = m_effectManager->m_unkMap618._Vec._Mypair._Myval2._Myfirst;
Myhead = m_effectManager->m_unkMap618._List._Mypair._Myval2._Myhead;
v14 = 2 * v11;
v15 = *((_QWORD *)Myfirst + v14 + 1);
if ( (std::_List_val>>::_Nodeptr)v15 != Myhead )
{
v16 = *((_QWORD *)Myfirst + v14);
if ( m_targetGroupID == *(_DWORD *)(v15 + 16) )
goto LABEL_8;
while ( v15 != v16 )
{
v15 = *(_QWORD *)(v15 + 8);
if ( m_targetGroupID == *(_DWORD *)(v15 + 16) )
goto LABEL_8;
}
}
v15 = 0;
LABEL_8:
if ( v15 )
{
if ( (std::_List_val>>::_Nodeptr)v15 != Myhead )
{
v17 = *(_QWORD *)(v15 + 24);
if ( v17 )
*(_BYTE *)(v17 + 209) = 1;
}
}
}
GJBaseGameLayer::processDynamicObjectActions(a1, 1, a2);
GJBaseGameLayer::processTransformActions(a1, a3);
GJBaseGameLayer::processRotationActions(a1);
GJBaseGameLayer::processDynamicObjectActions(a1, 0, a2);
GJBaseGameLayer::processMoveActions(a1);
GJBaseGameLayer::processPlayerFollowActions(a1, a2);
GJBaseGameLayer::processAdvancedFollowActions(a1, a2);
GJBaseGameLayer::processFollowActions(a1);
GJBaseGameLayer::processAreaActions(a1, a2, a3);
if ( a1->m_isEditor && a1->m_disabledObjectsCount > 0 )
{
v18 = 0;
do
{
v19 = a1->m_disabledObjects._Mypair._Myval2._Myfirst[v18];
v3 = cocos2d::CCPoint::CCPoint(*(float *)&v3, v19->m_positionX);
cocos2d::CCSprite::setPosition(v19, &v21);
m_colorSprite = v19->m_colorSprite;
if ( m_colorSprite )
{
if ( !v19->m_colorSpriteLocked )
m_colorSprite->setPosition_0(m_colorSprite, &v21);
}
++v4;
++v18;
}
while ( v4 < a1->m_disabledObjectsCount );
}
}