// // GJBaseGameLayer::processAdvancedFollowActions from 0x14022f0e0 to 0x14022f2fd (541 bytes) // // 2 xrefs: // > GJBaseGameLayer::processMoveActionsStep @ 0x14022b739 // > @ 0x1406cde3c // // 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::processAdvancedFollowActions(GJBaseGameLayer *a1, float a2) { std::vector *p_m_advanceFollowInstances; // rsi std::_Vector_val>::pointer *p_Mylast; // r14 std::_Vector_val>::pointer Mylast; // rbp AdvancedFollowInstance *Myfirst; // rbx char m_started; // r8 std::_Vector_val>::pointer v8; // rdx std::_Vector_val>::pointer v9; // rax std::_Vector_val>::pointer i; // rcx std::_List_val>>::_Nodeptr Myhead; // rax _QWORD *j; // rbx _QWORD **v13; // rcx std::_Vector_val>>>>>::pointer v14; // r8 unsigned __int64 v15; // rdx std::_List_unchecked_const_iterator>>, std::_Iterator_base0>::_Nodeptr Ptr; // r9 p_m_advanceFollowInstances = &a1->m_gameState.m_advanceFollowInstances; p_Mylast = &a1->m_gameState.m_advanceFollowInstances._Mypair._Myval2._Mylast; if ( a1->m_gameState.m_unkBool27 ) { sub_140252440( p_m_advanceFollowInstances->_Mypair._Myval2._Myfirst, *p_Mylast, *p_Mylast - p_m_advanceFollowInstances->_Mypair._Myval2._Myfirst, sub_140205270); a1->m_gameState.m_unkBool27 = 0; } Mylast = p_m_advanceFollowInstances->_Mypair._Myval2._Mylast; Myfirst = p_m_advanceFollowInstances->_Mypair._Myval2._Myfirst; if ( p_m_advanceFollowInstances->_Mypair._Myval2._Myfirst != Mylast ) { while ( Myfirst->m_finished ) { if ( Myfirst->m_doStart ) { Myfirst->m_doStart = 0; m_started = 1; goto LABEL_8; } LABEL_9: if ( ++Myfirst == Mylast ) { p_Mylast = &a1->m_gameState.m_advanceFollowInstances._Mypair._Myval2._Mylast; p_m_advanceFollowInstances = &a1->m_gameState.m_advanceFollowInstances; goto LABEL_11; } } m_started = Myfirst->m_started; LABEL_8: GJBaseGameLayer::processAdvancedFollowAction(a1, Myfirst, m_started, a2 * 240.0); goto LABEL_9; } LABEL_11: v8 = *p_Mylast; v9 = p_m_advanceFollowInstances->_Mypair._Myval2._Myfirst; if ( p_m_advanceFollowInstances->_Mypair._Myval2._Myfirst != *p_Mylast ) { do { if ( v9->m_started ) break; ++v9; } while ( v9 != v8 ); if ( v9 != v8 ) { for ( i = v9 + 1; i != v8; ++i ) { if ( !i->m_started ) { *(_OWORD *)&v9->m_gameObject = *(_OWORD *)&i->m_gameObject; *(_OWORD *)&v9->m_controlId = *(_OWORD *)&i->m_controlId; ++v9; } } } } if ( v9 != a1->m_gameState.m_advanceFollowInstances._Mypair._Myval2._Mylast ) a1->m_gameState.m_advanceFollowInstances._Mypair._Myval2._Mylast = v9; Myhead = a1->m_gameState.m_gameObjectPhysics._List._Mypair._Myval2._Myhead; for ( j = *(_QWORD **)Myhead; j != (_QWORD *)Myhead; Myhead = a1->m_gameState.m_gameObjectPhysics._List._Mypair._Myval2._Myhead ) { if ( *((_DWORD *)j + 15) >= (signed int)a1->m_gameState.m_commandIndex ) { j = (_QWORD *)*j; } else { v13 = (_QWORD **)j; v14 = a1->m_gameState.m_gameObjectPhysics._Vec._Mypair._Myval2._Myfirst; v15 = 2 * ((0x100000001B3LL * (*((unsigned __int8 *)j + 19) ^ (0x100000001B3LL * (*((unsigned __int8 *)j + 18) ^ (0x100000001B3LL * (*((unsigned __int8 *)j + 17) ^ (0x100000001B3LL * (*((unsigned __int8 *)j + 16) ^ 0xCBF29CE484222325uLL)))))))) & a1->m_gameState.m_gameObjectPhysics._Mask); Ptr = v14[2 * ((0x100000001B3LL * (*((unsigned __int8 *)j + 19) ^ (0x100000001B3LL * (*((unsigned __int8 *)j + 18) ^ (0x100000001B3LL * (*((unsigned __int8 *)j + 17) ^ (0x100000001B3LL * (*((unsigned __int8 *)j + 16) ^ 0xCBF29CE484222325uLL)))))))) & a1->m_gameState.m_gameObjectPhysics._Mask)]._Ptr; if ( (_QWORD *)v14[2 * ((0x100000001B3LL * (*((unsigned __int8 *)j + 19) ^ (0x100000001B3LL * (*((unsigned __int8 *)j + 18) ^ (0x100000001B3LL * (*((unsigned __int8 *)j + 17) ^ (0x100000001B3LL * (*((unsigned __int8 *)j + 16) ^ 0xCBF29CE484222325uLL)))))))) & a1->m_gameState.m_gameObjectPhysics._Mask) + 1]._Ptr == j ) { if ( Ptr == (std::_List_unchecked_const_iterator>>, std::_Iterator_base0>::_Nodeptr)j ) v14[2 * ((0x100000001B3LL * (*((unsigned __int8 *)j + 19) ^ (0x100000001B3LL * (*((unsigned __int8 *)j + 18) ^ (0x100000001B3LL * (*((unsigned __int8 *)j + 17) ^ (0x100000001B3LL * (*((unsigned __int8 *)j + 16) ^ 0xCBF29CE484222325uLL)))))))) & a1->m_gameState.m_gameObjectPhysics._Mask)]._Ptr = Myhead; else Myhead = (std::_List_val>>::_Nodeptr)j[1]; v14[v15 + 1]._Ptr = Myhead; } else if ( Ptr == (std::_List_unchecked_const_iterator>>, std::_Iterator_base0>::_Nodeptr)j ) { v14[2 * ((0x100000001B3LL * (*((unsigned __int8 *)j + 19) ^ (0x100000001B3LL * (*((unsigned __int8 *)j + 18) ^ (0x100000001B3LL * (*((unsigned __int8 *)j + 17) ^ (0x100000001B3LL * (*((unsigned __int8 *)j + 16) ^ 0xCBF29CE484222325uLL)))))))) & a1->m_gameState.m_gameObjectPhysics._Mask)] = *(std::_Vector_val>>>>>::pointer)j; } j = (_QWORD *)*j; --a1->m_gameState.m_gameObjectPhysics._List._Mypair._Myval2._Mysize; *v13[1] = j; j[1] = v13[1]; j_j_free(v13); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source